Lines Matching refs:capture_dev
19 static const struct device *capture_dev; variable
63 PR("%s\t%c %d %s\t%s\n", info->capture_dev->name, in capture_cb()
78 if (capture_dev == NULL) { in cmd_net_capture()
79 capture_dev = device_get_binding(DEFAULT_DEV_NAME); in cmd_net_capture()
82 if (capture_dev == NULL) { in cmd_net_capture()
88 ret = net_capture_is_enabled(capture_dev); in cmd_net_capture()
131 if (capture_dev != NULL) { in cmd_net_capture_setup()
133 net_capture_cleanup(capture_dev); in cmd_net_capture_setup()
134 capture_dev = NULL; in cmd_net_capture_setup()
137 ret = net_capture_setup(remote, local, peer, &capture_dev); in cmd_net_capture_setup()
164 if (capture_dev == NULL) { in cmd_net_capture_cleanup()
168 ret = net_capture_cleanup(capture_dev); in cmd_net_capture_cleanup()
174 capture_dev = NULL; in cmd_net_capture_cleanup()
192 if (capture_dev == NULL) { in cmd_net_capture_enable()
214 ret = net_capture_enable(capture_dev, iface); in cmd_net_capture_enable()
235 if (capture_dev == NULL) { in cmd_net_capture_disable()
239 ret = net_capture_disable(capture_dev); in cmd_net_capture_disable()