Lines Matching refs:item

99 	struct config_item	item;  member
130 if (config_item_name(&nt->item)) in netconsole_target_get()
131 config_item_get(&nt->item); in netconsole_target_get()
136 if (config_item_name(&nt->item)) in netconsole_target_put()
137 config_item_put(&nt->item); in netconsole_target_put()
235 static struct netconsole_target *to_target(struct config_item *item) in to_target() argument
237 return item ? in to_target()
238 container_of(item, struct netconsole_target, item) : in to_target()
246 static ssize_t enabled_show(struct config_item *item, char *buf) in enabled_show() argument
248 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->enabled); in enabled_show()
251 static ssize_t extended_show(struct config_item *item, char *buf) in extended_show() argument
253 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->extended); in extended_show()
256 static ssize_t dev_name_show(struct config_item *item, char *buf) in dev_name_show() argument
258 return snprintf(buf, PAGE_SIZE, "%s\n", to_target(item)->np.dev_name); in dev_name_show()
261 static ssize_t local_port_show(struct config_item *item, char *buf) in local_port_show() argument
263 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->np.local_port); in local_port_show()
266 static ssize_t remote_port_show(struct config_item *item, char *buf) in remote_port_show() argument
268 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->np.remote_port); in remote_port_show()
271 static ssize_t local_ip_show(struct config_item *item, char *buf) in local_ip_show() argument
273 struct netconsole_target *nt = to_target(item); in local_ip_show()
281 static ssize_t remote_ip_show(struct config_item *item, char *buf) in remote_ip_show() argument
283 struct netconsole_target *nt = to_target(item); in remote_ip_show()
291 static ssize_t local_mac_show(struct config_item *item, char *buf) in local_mac_show() argument
293 struct net_device *dev = to_target(item)->np.dev; in local_mac_show()
299 static ssize_t remote_mac_show(struct config_item *item, char *buf) in remote_mac_show() argument
301 return snprintf(buf, PAGE_SIZE, "%pM\n", to_target(item)->np.remote_mac); in remote_mac_show()
311 static ssize_t enabled_store(struct config_item *item, in enabled_store() argument
314 struct netconsole_target *nt = to_target(item); in enabled_store()
370 static ssize_t extended_store(struct config_item *item, const char *buf, in extended_store() argument
373 struct netconsole_target *nt = to_target(item); in extended_store()
380 config_item_name(&nt->item)); in extended_store()
402 static ssize_t dev_name_store(struct config_item *item, const char *buf, in dev_name_store() argument
405 struct netconsole_target *nt = to_target(item); in dev_name_store()
411 config_item_name(&nt->item)); in dev_name_store()
427 static ssize_t local_port_store(struct config_item *item, const char *buf, in local_port_store() argument
430 struct netconsole_target *nt = to_target(item); in local_port_store()
436 config_item_name(&nt->item)); in local_port_store()
450 static ssize_t remote_port_store(struct config_item *item, in remote_port_store() argument
453 struct netconsole_target *nt = to_target(item); in remote_port_store()
459 config_item_name(&nt->item)); in remote_port_store()
473 static ssize_t local_ip_store(struct config_item *item, const char *buf, in local_ip_store() argument
476 struct netconsole_target *nt = to_target(item); in local_ip_store()
481 config_item_name(&nt->item)); in local_ip_store()
509 static ssize_t remote_ip_store(struct config_item *item, const char *buf, in remote_ip_store() argument
512 struct netconsole_target *nt = to_target(item); in remote_ip_store()
517 config_item_name(&nt->item)); in remote_ip_store()
545 static ssize_t remote_mac_store(struct config_item *item, const char *buf, in remote_mac_store() argument
548 struct netconsole_target *nt = to_target(item); in remote_mac_store()
554 config_item_name(&nt->item)); in remote_mac_store()
598 static void netconsole_target_release(struct config_item *item) in netconsole_target_release() argument
600 kfree(to_target(item)); in netconsole_target_release()
638 config_item_init_type_name(&nt->item, name, &netconsole_target_type); in make_netconsole_target()
645 return &nt->item; in make_netconsole_target()
649 struct config_item *item) in drop_netconsole_target() argument
652 struct netconsole_target *nt = to_target(item); in drop_netconsole_target()
665 config_item_put(&nt->item); in drop_netconsole_target()