Lines Matching refs:item

100 	struct config_item	item;  member
131 if (config_item_name(&nt->item)) in netconsole_target_get()
132 config_item_get(&nt->item); in netconsole_target_get()
137 if (config_item_name(&nt->item)) in netconsole_target_put()
138 config_item_put(&nt->item); in netconsole_target_put()
236 static struct netconsole_target *to_target(struct config_item *item) in to_target() argument
238 return item ? in to_target()
239 container_of(item, struct netconsole_target, item) : in to_target()
247 static ssize_t enabled_show(struct config_item *item, char *buf) in enabled_show() argument
249 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->enabled); in enabled_show()
252 static ssize_t extended_show(struct config_item *item, char *buf) in extended_show() argument
254 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->extended); in extended_show()
257 static ssize_t dev_name_show(struct config_item *item, char *buf) in dev_name_show() argument
259 return snprintf(buf, PAGE_SIZE, "%s\n", to_target(item)->np.dev_name); in dev_name_show()
262 static ssize_t local_port_show(struct config_item *item, char *buf) in local_port_show() argument
264 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->np.local_port); in local_port_show()
267 static ssize_t remote_port_show(struct config_item *item, char *buf) in remote_port_show() argument
269 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->np.remote_port); in remote_port_show()
272 static ssize_t local_ip_show(struct config_item *item, char *buf) in local_ip_show() argument
274 struct netconsole_target *nt = to_target(item); in local_ip_show()
282 static ssize_t remote_ip_show(struct config_item *item, char *buf) in remote_ip_show() argument
284 struct netconsole_target *nt = to_target(item); in remote_ip_show()
292 static ssize_t local_mac_show(struct config_item *item, char *buf) in local_mac_show() argument
294 struct net_device *dev = to_target(item)->np.dev; in local_mac_show()
300 static ssize_t remote_mac_show(struct config_item *item, char *buf) in remote_mac_show() argument
302 return snprintf(buf, PAGE_SIZE, "%pM\n", to_target(item)->np.remote_mac); in remote_mac_show()
312 static ssize_t enabled_store(struct config_item *item, in enabled_store() argument
315 struct netconsole_target *nt = to_target(item); in enabled_store()
371 static ssize_t extended_store(struct config_item *item, const char *buf, in extended_store() argument
374 struct netconsole_target *nt = to_target(item); in extended_store()
381 config_item_name(&nt->item)); in extended_store()
403 static ssize_t dev_name_store(struct config_item *item, const char *buf, in dev_name_store() argument
406 struct netconsole_target *nt = to_target(item); in dev_name_store()
412 config_item_name(&nt->item)); in dev_name_store()
428 static ssize_t local_port_store(struct config_item *item, const char *buf, in local_port_store() argument
431 struct netconsole_target *nt = to_target(item); in local_port_store()
437 config_item_name(&nt->item)); in local_port_store()
451 static ssize_t remote_port_store(struct config_item *item, in remote_port_store() argument
454 struct netconsole_target *nt = to_target(item); in remote_port_store()
460 config_item_name(&nt->item)); in remote_port_store()
474 static ssize_t local_ip_store(struct config_item *item, const char *buf, in local_ip_store() argument
477 struct netconsole_target *nt = to_target(item); in local_ip_store()
482 config_item_name(&nt->item)); in local_ip_store()
510 static ssize_t remote_ip_store(struct config_item *item, const char *buf, in remote_ip_store() argument
513 struct netconsole_target *nt = to_target(item); in remote_ip_store()
518 config_item_name(&nt->item)); in remote_ip_store()
546 static ssize_t remote_mac_store(struct config_item *item, const char *buf, in remote_mac_store() argument
549 struct netconsole_target *nt = to_target(item); in remote_mac_store()
555 config_item_name(&nt->item)); in remote_mac_store()
599 static void netconsole_target_release(struct config_item *item) in netconsole_target_release() argument
601 kfree(to_target(item)); in netconsole_target_release()
639 config_item_init_type_name(&nt->item, name, &netconsole_target_type); in make_netconsole_target()
646 return &nt->item; in make_netconsole_target()
650 struct config_item *item) in drop_netconsole_target() argument
653 struct netconsole_target *nt = to_target(item); in drop_netconsole_target()
666 config_item_put(&nt->item); in drop_netconsole_target()