Lines Matching refs:to_target
235 static struct netconsole_target *to_target(struct config_item *item) in to_target() function
248 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->enabled); in enabled_show()
253 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->extended); in extended_show()
258 return snprintf(buf, PAGE_SIZE, "%s\n", to_target(item)->np.dev_name); in dev_name_show()
263 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->np.local_port); in local_port_show()
268 return snprintf(buf, PAGE_SIZE, "%d\n", to_target(item)->np.remote_port); in remote_port_show()
273 struct netconsole_target *nt = to_target(item); in local_ip_show()
283 struct netconsole_target *nt = to_target(item); in remote_ip_show()
293 struct net_device *dev = to_target(item)->np.dev; in local_mac_show()
301 return snprintf(buf, PAGE_SIZE, "%pM\n", to_target(item)->np.remote_mac); in remote_mac_show()
314 struct netconsole_target *nt = to_target(item); in enabled_store()
373 struct netconsole_target *nt = to_target(item); in extended_store()
405 struct netconsole_target *nt = to_target(item); in dev_name_store()
430 struct netconsole_target *nt = to_target(item); in local_port_store()
453 struct netconsole_target *nt = to_target(item); in remote_port_store()
476 struct netconsole_target *nt = to_target(item); in local_ip_store()
512 struct netconsole_target *nt = to_target(item); in remote_ip_store()
548 struct netconsole_target *nt = to_target(item); in remote_mac_store()
600 kfree(to_target(item)); in netconsole_target_release()
652 struct netconsole_target *nt = to_target(item); in drop_netconsole_target()