Searched refs:to_target (Results 1 – 1 of 1) sorted by relevance
| /OK3568_Linux_fs/kernel/drivers/net/ |
| H A D | netconsole.c | 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() [all …]
|