Lines Matching refs:i2400mu

105 	struct i2400mu *i2400mu = container_of(i2400m, struct i2400mu, i2400m);  in i2400mu_bus_dev_start()  local
106 struct device *dev = &i2400mu->usb_iface->dev; in i2400mu_bus_dev_start()
109 result = i2400mu_tx_setup(i2400mu); in i2400mu_bus_dev_start()
112 result = i2400mu_rx_setup(i2400mu); in i2400mu_bus_dev_start()
115 result = i2400mu_notification_setup(i2400mu); in i2400mu_bus_dev_start()
122 i2400mu_rx_release(i2400mu); in i2400mu_bus_dev_start()
124 i2400mu_tx_release(i2400mu); in i2400mu_bus_dev_start()
134 struct i2400mu *i2400mu = container_of(i2400m, struct i2400mu, i2400m); in i2400mu_bus_dev_stop() local
135 struct device *dev = &i2400mu->usb_iface->dev; in i2400mu_bus_dev_stop()
138 i2400mu_notification_release(i2400mu); in i2400mu_bus_dev_stop()
139 i2400mu_rx_release(i2400mu); in i2400mu_bus_dev_stop()
140 i2400mu_tx_release(i2400mu); in i2400mu_bus_dev_stop()
156 int __i2400mu_send_barker(struct i2400mu *i2400mu, in __i2400mu_send_barker() argument
163 struct device *dev = &i2400mu->usb_iface->dev; in __i2400mu_send_barker()
167 ret = usb_autopm_get_interface(i2400mu->usb_iface); in __i2400mu_send_barker()
176 epd = usb_get_epd(i2400mu->usb_iface, endpoint); in __i2400mu_send_barker()
177 pipe = usb_sndbulkpipe(i2400mu->usb_dev, epd->bEndpointAddress); in __i2400mu_send_barker()
180 ret = usb_bulk_msg(i2400mu->usb_dev, pipe, buffer, barker_size, in __i2400mu_send_barker()
202 if (edc_inc(&i2400mu->urb_edc, in __i2400mu_send_barker()
206 usb_queue_reset_device(i2400mu->usb_iface); in __i2400mu_send_barker()
209 usb_clear_halt(i2400mu->usb_dev, pipe); in __i2400mu_send_barker()
221 if (edc_inc(&i2400mu->urb_edc, in __i2400mu_send_barker()
226 usb_queue_reset_device(i2400mu->usb_iface); in __i2400mu_send_barker()
236 usb_autopm_put_interface(i2400mu->usb_iface); in __i2400mu_send_barker()
278 struct i2400mu *i2400mu = in i2400mu_bus_reset() local
279 container_of(i2400m, struct i2400mu, i2400m); in i2400mu_bus_reset()
297 i2400mu, i2400m_WARM_BOOT_BARKER, in i2400mu_bus_reset()
299 i2400mu->endpoint_cfg.bulk_out); in i2400mu_bus_reset()
302 i2400mu, i2400m_COLD_BOOT_BARKER, in i2400mu_bus_reset()
304 i2400mu->endpoint_cfg.reset_cold); in i2400mu_bus_reset()
306 result = usb_reset_device(i2400mu->usb_dev); in i2400mu_bus_reset()
335 usb_queue_reset_device(i2400mu->usb_iface); in i2400mu_bus_reset()
346 struct i2400mu *i2400mu = container_of(i2400m, struct i2400mu, i2400m); in i2400mu_get_drvinfo() local
347 struct usb_device *udev = i2400mu->usb_dev; in i2400mu_get_drvinfo()
364 struct i2400mu *i2400mu = container_of(i2400m, struct i2400mu, i2400m); in i2400mu_netdev_setup() local
365 i2400mu_init(i2400mu); in i2400mu_netdev_setup()
393 int i2400mu_debugfs_add(struct i2400mu *i2400mu) in i2400mu_debugfs_add() argument
396 struct device *dev = &i2400mu->usb_iface->dev; in i2400mu_debugfs_add()
397 struct dentry *dentry = i2400mu->i2400m.wimax_dev.debugfs_dentry; in i2400mu_debugfs_add()
407 i2400mu->debugfs_dentry = dentry; in i2400mu_debugfs_add()
416 &i2400mu->rx_size_auto_shrink); in i2400mu_debugfs_add()
425 &i2400mu->rx_size); in i2400mu_debugfs_add()
436 debugfs_remove_recursive(i2400mu->debugfs_dentry); in i2400mu_debugfs_add()
467 struct i2400mu *i2400mu; in i2400mu_probe() local
475 net_dev = alloc_netdev(sizeof(*i2400mu), "wmx%d", in i2400mu_probe()
484 i2400mu = container_of(i2400m, struct i2400mu, i2400m); in i2400mu_probe()
486 i2400mu->usb_dev = usb_get_dev(usb_dev); in i2400mu_probe()
487 i2400mu->usb_iface = iface; in i2400mu_probe()
488 usb_set_intfdata(iface, i2400mu); in i2400mu_probe()
517 i2400mu->i6050 = 1; in i2400mu_probe()
523 if (i2400mu->i6050) { in i2400mu_probe()
525 i2400mu->endpoint_cfg.bulk_out = 0; in i2400mu_probe()
526 i2400mu->endpoint_cfg.notification = 3; in i2400mu_probe()
527 i2400mu->endpoint_cfg.reset_cold = 2; in i2400mu_probe()
528 i2400mu->endpoint_cfg.bulk_in = 1; in i2400mu_probe()
531 i2400mu->endpoint_cfg.bulk_out = 0; in i2400mu_probe()
532 i2400mu->endpoint_cfg.notification = 1; in i2400mu_probe()
533 i2400mu->endpoint_cfg.reset_cold = 2; in i2400mu_probe()
534 i2400mu->endpoint_cfg.bulk_in = 3; in i2400mu_probe()
548 result = i2400mu_debugfs_add(i2400mu); in i2400mu_probe()
559 usb_put_dev(i2400mu->usb_dev); in i2400mu_probe()
576 struct i2400mu *i2400mu = usb_get_intfdata(iface); in i2400mu_disconnect() local
577 struct i2400m *i2400m = &i2400mu->i2400m; in i2400mu_disconnect()
583 debugfs_remove_recursive(i2400mu->debugfs_dentry); in i2400mu_disconnect()
586 usb_put_dev(i2400mu->usb_dev); in i2400mu_disconnect()
635 struct i2400mu *i2400mu = usb_get_intfdata(iface); in i2400mu_suspend() local
637 struct i2400m *i2400m = &i2400mu->i2400m; in i2400mu_suspend()
669 atomic_dec(&i2400mu->do_autopm); in i2400mu_suspend()
671 atomic_inc(&i2400mu->do_autopm); in i2400mu_suspend()
679 i2400mu_notification_release(i2400mu); in i2400mu_suspend()
695 struct i2400mu *i2400mu = usb_get_intfdata(iface); in i2400mu_resume() local
696 struct i2400m *i2400m = &i2400mu->i2400m; in i2400mu_resume()
705 i2400mu_notification_setup(i2400mu); in i2400mu_resume()
720 struct i2400mu *i2400mu = usb_get_intfdata(iface); in i2400mu_reset_resume() local
721 struct i2400m *i2400m = &i2400mu->i2400m; in i2400mu_reset_resume()
741 struct i2400mu *i2400mu = usb_get_intfdata(iface); in i2400mu_pre_reset() local
742 return i2400m_pre_reset(&i2400mu->i2400m); in i2400mu_pre_reset()
756 struct i2400mu *i2400mu = usb_get_intfdata(iface); in i2400mu_post_reset() local
757 return i2400m_post_reset(&i2400mu->i2400m); in i2400mu_post_reset()