Lines Matching refs:item

103 	struct config_item	item;  member
135 if (config_item_name(&nt->item)) in netconsole_target_get()
136 config_item_get(&nt->item); in netconsole_target_get()
141 if (config_item_name(&nt->item)) in netconsole_target_put()
142 config_item_put(&nt->item); in netconsole_target_put()
268 static struct netconsole_target *to_target(struct config_item *item) in to_target() argument
270 return item ? in to_target()
271 container_of(item, struct netconsole_target, item) : in to_target()
279 static ssize_t enabled_show(struct config_item *item, char *buf) in enabled_show() argument
281 return sysfs_emit(buf, "%d\n", to_target(item)->enabled); in enabled_show()
284 static ssize_t extended_show(struct config_item *item, char *buf) in extended_show() argument
286 return sysfs_emit(buf, "%d\n", to_target(item)->extended); in extended_show()
289 static ssize_t release_show(struct config_item *item, char *buf) in release_show() argument
291 return sysfs_emit(buf, "%d\n", to_target(item)->release); in release_show()
294 static ssize_t dev_name_show(struct config_item *item, char *buf) in dev_name_show() argument
296 return sysfs_emit(buf, "%s\n", to_target(item)->np.dev_name); in dev_name_show()
299 static ssize_t local_port_show(struct config_item *item, char *buf) in local_port_show() argument
301 return sysfs_emit(buf, "%d\n", to_target(item)->np.local_port); in local_port_show()
304 static ssize_t remote_port_show(struct config_item *item, char *buf) in remote_port_show() argument
306 return sysfs_emit(buf, "%d\n", to_target(item)->np.remote_port); in remote_port_show()
309 static ssize_t local_ip_show(struct config_item *item, char *buf) in local_ip_show() argument
311 struct netconsole_target *nt = to_target(item); in local_ip_show()
319 static ssize_t remote_ip_show(struct config_item *item, char *buf) in remote_ip_show() argument
321 struct netconsole_target *nt = to_target(item); in remote_ip_show()
329 static ssize_t local_mac_show(struct config_item *item, char *buf) in local_mac_show() argument
331 struct net_device *dev = to_target(item)->np.dev; in local_mac_show()
337 static ssize_t remote_mac_show(struct config_item *item, char *buf) in remote_mac_show() argument
339 return sysfs_emit(buf, "%pM\n", to_target(item)->np.remote_mac); in remote_mac_show()
349 static ssize_t enabled_store(struct config_item *item, in enabled_store() argument
352 struct netconsole_target *nt = to_target(item); in enabled_store()
409 static ssize_t release_store(struct config_item *item, const char *buf, in release_store() argument
412 struct netconsole_target *nt = to_target(item); in release_store()
419 config_item_name(&nt->item)); in release_store()
437 static ssize_t extended_store(struct config_item *item, const char *buf, in extended_store() argument
440 struct netconsole_target *nt = to_target(item); in extended_store()
447 config_item_name(&nt->item)); in extended_store()
465 static ssize_t dev_name_store(struct config_item *item, const char *buf, in dev_name_store() argument
468 struct netconsole_target *nt = to_target(item); in dev_name_store()
474 config_item_name(&nt->item)); in dev_name_store()
490 static ssize_t local_port_store(struct config_item *item, const char *buf, in local_port_store() argument
493 struct netconsole_target *nt = to_target(item); in local_port_store()
499 config_item_name(&nt->item)); in local_port_store()
513 static ssize_t remote_port_store(struct config_item *item, in remote_port_store() argument
516 struct netconsole_target *nt = to_target(item); in remote_port_store()
522 config_item_name(&nt->item)); in remote_port_store()
536 static ssize_t local_ip_store(struct config_item *item, const char *buf, in local_ip_store() argument
539 struct netconsole_target *nt = to_target(item); in local_ip_store()
544 config_item_name(&nt->item)); in local_ip_store()
572 static ssize_t remote_ip_store(struct config_item *item, const char *buf, in remote_ip_store() argument
575 struct netconsole_target *nt = to_target(item); in remote_ip_store()
580 config_item_name(&nt->item)); in remote_ip_store()
608 static ssize_t remote_mac_store(struct config_item *item, const char *buf, in remote_mac_store() argument
611 struct netconsole_target *nt = to_target(item); in remote_mac_store()
617 config_item_name(&nt->item)); in remote_mac_store()
663 static void netconsole_target_release(struct config_item *item) in netconsole_target_release() argument
665 kfree(to_target(item)); in netconsole_target_release()
693 config_item_init_type_name(&nt->item, name, &netconsole_target_type); in make_netconsole_target()
700 return &nt->item; in make_netconsole_target()
704 struct config_item *item) in drop_netconsole_target() argument
707 struct netconsole_target *nt = to_target(item); in drop_netconsole_target()
720 config_item_put(&nt->item); in drop_netconsole_target()