hso_net 244 drivers/net/usb/hso.c struct hso_net *dev_net; hso_net 324 drivers/net/usb/hso.c static inline struct hso_net *dev2net(struct hso_device *hso_dev) hso_net 697 drivers/net/usb/hso.c struct hso_net *odev = netdev_priv(net); hso_net 727 drivers/net/usb/hso.c struct hso_net *odev = netdev_priv(net); hso_net 743 drivers/net/usb/hso.c struct hso_net *odev = urb->context; hso_net 774 drivers/net/usb/hso.c struct hso_net *odev = netdev_priv(net); hso_net 825 drivers/net/usb/hso.c struct hso_net *odev = netdev_priv(net); hso_net 843 drivers/net/usb/hso.c static void packetizeRx(struct hso_net *odev, unsigned char *ip_pkt, hso_net 985 drivers/net/usb/hso.c struct hso_net *odev = urb->context; hso_net 2092 drivers/net/usb/hso.c struct hso_net *hso_net = dev2net(hso_dev); hso_net 2094 drivers/net/usb/hso.c if (!hso_net) hso_net 2101 drivers/net/usb/hso.c usb_fill_bulk_urb(hso_net->mux_bulk_rx_urb_pool[i], hso_net 2104 drivers/net/usb/hso.c hso_net->in_endp-> hso_net 2106 drivers/net/usb/hso.c hso_net->mux_bulk_rx_buf_pool[i], hso_net 2108 drivers/net/usb/hso.c hso_net); hso_net 2111 drivers/net/usb/hso.c result = usb_submit_urb(hso_net->mux_bulk_rx_urb_pool[i], hso_net 2125 drivers/net/usb/hso.c struct hso_net *hso_net = dev2net(hso_dev); hso_net 2127 drivers/net/usb/hso.c if (!hso_net) hso_net 2131 drivers/net/usb/hso.c if (hso_net->mux_bulk_rx_urb_pool[i]) hso_net 2132 drivers/net/usb/hso.c usb_kill_urb(hso_net->mux_bulk_rx_urb_pool[i]); hso_net 2135 drivers/net/usb/hso.c if (hso_net->mux_bulk_tx_urb) hso_net 2136 drivers/net/usb/hso.c usb_kill_urb(hso_net->mux_bulk_tx_urb); hso_net 2358 drivers/net/usb/hso.c struct hso_net *hso_net = dev2net(hso_dev); hso_net 2360 drivers/net/usb/hso.c if (!hso_net) hso_net 2363 drivers/net/usb/hso.c remove_net_device(hso_net->parent); hso_net 2365 drivers/net/usb/hso.c if (hso_net->net) hso_net 2366 drivers/net/usb/hso.c unregister_netdev(hso_net->net); hso_net 2370 drivers/net/usb/hso.c usb_free_urb(hso_net->mux_bulk_rx_urb_pool[i]); hso_net 2371 drivers/net/usb/hso.c kfree(hso_net->mux_bulk_rx_buf_pool[i]); hso_net 2372 drivers/net/usb/hso.c hso_net->mux_bulk_rx_buf_pool[i] = NULL; hso_net 2374 drivers/net/usb/hso.c usb_free_urb(hso_net->mux_bulk_tx_urb); hso_net 2375 drivers/net/usb/hso.c kfree(hso_net->mux_bulk_tx_buf); hso_net 2376 drivers/net/usb/hso.c hso_net->mux_bulk_tx_buf = NULL; hso_net 2378 drivers/net/usb/hso.c if (hso_net->net) hso_net 2379 drivers/net/usb/hso.c free_netdev(hso_net->net); hso_net 2394 drivers/net/usb/hso.c struct hso_net *hso_net = netdev_priv(net); hso_net 2396 drivers/net/usb/hso.c hso_dbg(0x1, "sizeof hso_net is %zu\n", sizeof(*hso_net)); hso_net 2408 drivers/net/usb/hso.c spin_lock_init(&hso_net->net_lock); hso_net 2452 drivers/net/usb/hso.c struct hso_net *hso_net = dev2net(hso_dev); hso_net 2453 drivers/net/usb/hso.c struct device *dev = &hso_net->net->dev; hso_net 2456 drivers/net/usb/hso.c snprintf(hso_net->name, sizeof(hso_net->name), "hso-%d", hso_net 2459 drivers/net/usb/hso.c hso_net->rfkill = rfkill_alloc(hso_net->name, hso_net 2463 drivers/net/usb/hso.c if (!hso_net->rfkill) { hso_net 2467 drivers/net/usb/hso.c if (rfkill_register(hso_net->rfkill) < 0) { hso_net 2468 drivers/net/usb/hso.c rfkill_destroy(hso_net->rfkill); hso_net 2469 drivers/net/usb/hso.c hso_net->rfkill = NULL; hso_net 2485 drivers/net/usb/hso.c struct hso_net *hso_net; hso_net 2494 drivers/net/usb/hso.c net = alloc_netdev(sizeof(struct hso_net), "hso%d", NET_NAME_UNKNOWN, hso_net 2501 drivers/net/usb/hso.c hso_net = netdev_priv(net); hso_net 2503 drivers/net/usb/hso.c hso_dev->port_data.dev_net = hso_net; hso_net 2504 drivers/net/usb/hso.c hso_net->net = net; hso_net 2505 drivers/net/usb/hso.c hso_net->parent = hso_dev; hso_net 2507 drivers/net/usb/hso.c hso_net->in_endp = hso_get_ep(interface, USB_ENDPOINT_XFER_BULK, hso_net 2509 drivers/net/usb/hso.c if (!hso_net->in_endp) { hso_net 2513 drivers/net/usb/hso.c hso_net->out_endp = hso_get_ep(interface, USB_ENDPOINT_XFER_BULK, hso_net 2515 drivers/net/usb/hso.c if (!hso_net->out_endp) { hso_net 2524 drivers/net/usb/hso.c hso_net->mux_bulk_rx_urb_pool[i] = usb_alloc_urb(0, GFP_KERNEL); hso_net 2525 drivers/net/usb/hso.c if (!hso_net->mux_bulk_rx_urb_pool[i]) hso_net 2527 drivers/net/usb/hso.c hso_net->mux_bulk_rx_buf_pool[i] = kzalloc(MUX_BULK_RX_BUF_SIZE, hso_net 2529 drivers/net/usb/hso.c if (!hso_net->mux_bulk_rx_buf_pool[i]) hso_net 2532 drivers/net/usb/hso.c hso_net->mux_bulk_tx_urb = usb_alloc_urb(0, GFP_KERNEL); hso_net 2533 drivers/net/usb/hso.c if (!hso_net->mux_bulk_tx_urb) hso_net 2535 drivers/net/usb/hso.c hso_net->mux_bulk_tx_buf = kzalloc(MUX_BULK_TX_BUF_SIZE, GFP_KERNEL); hso_net 2536 drivers/net/usb/hso.c if (!hso_net->mux_bulk_tx_buf) hso_net 3047 drivers/net/usb/hso.c struct hso_net *hso_net; hso_net 3066 drivers/net/usb/hso.c hso_net = dev2net(network_table[i]); hso_net 3067 drivers/net/usb/hso.c if (hso_net->flags & IFF_UP) { hso_net 3070 drivers/net/usb/hso.c if (hso_net->skb_tx_buf) { hso_net 3074 drivers/net/usb/hso.c hso_net_start_xmit(hso_net->skb_tx_buf, hso_net 3075 drivers/net/usb/hso.c hso_net->net); hso_net 3076 drivers/net/usb/hso.c hso_net->skb_tx_buf = NULL;