Lines Matching refs:pDev
380 struct usbnet * pDev = netdev_priv( pNet ); in bridge_mode_show() local
381 sGobiUSBNet * pGobiDev = (sGobiUSBNet *)pDev->data[0]; in bridge_mode_show()
404 struct usbnet * pDev = netdev_priv( pNet ); in bridge_mode_store() local
405 sGobiUSBNet * pGobiDev = (sGobiUSBNet *)pDev->data[0]; in bridge_mode_store()
427 struct usbnet * pDev = netdev_priv( pNet ); in bridge_ipv4_show() local
428 sGobiUSBNet * pGobiDev = (sGobiUSBNet *)pDev->data[0]; in bridge_ipv4_show()
448 struct usbnet * pDev = netdev_priv( pNet ); in bridge_ipv4_store() local
449 sGobiUSBNet * pGobiDev = (sGobiUSBNet *)pDev->data[0]; in bridge_ipv4_store()
907 static int qmap_register_device(sGobiUSBNet * pDev, u8 offset_id) in qmap_register_device() argument
909 struct net_device *real_dev = pDev->mpNetDev->net; in qmap_register_device()
922 priv->qmap_version = pDev->qmap_version; in qmap_register_device()
950 priv->m_bridge_mode = !!(pDev->m_bridge_mode & BIT(offset_id)); in qmap_register_device()
961 pDev->mpQmapNetDev[offset_id] = qmap_net; in qmap_register_device()
974 static void qmap_unregister_device(sGobiUSBNet * pDev, u8 offset_id) { in qmap_unregister_device() argument
981 qmap_net = pDev->mpQmapNetDev[offset_id]; in qmap_unregister_device()
1005 struct usbnet * pDev = netdev_priv( pNet ); in qmap_mode_show() local
1006 sGobiUSBNet * pGobiDev = (sGobiUSBNet *)pDev->data[0]; in qmap_mode_show()
1015 struct usbnet * pDev = netdev_priv( pNet ); in qmap_size_show() local
1016 sGobiUSBNet * pGobiDev = (sGobiUSBNet *)pDev->data[0]; in qmap_size_show()
1213 struct usbnet * pDev; in GobiNetSuspend() local
1222 pDev = usb_get_intfdata( pIntf ); in GobiNetSuspend()
1224 pDev = (struct usbnet *)pIntf->dev.platform_data; in GobiNetSuspend()
1227 if (pDev == NULL || pDev->net == NULL) in GobiNetSuspend()
1233 pGobiDev = (sGobiUSBNet *)pDev->data[0]; in GobiNetSuspend()
1250 if (pDev->udev->auto_pm == 0) in GobiNetSuspend()
1275 pDev->udev->reset_resume = 0; in GobiNetSuspend()
1285 pDev->udev->reset_resume = 1; in GobiNetSuspend()
1312 struct usbnet * pDev; in GobiNetResume() local
1323 pDev = usb_get_intfdata( pIntf ); in GobiNetResume()
1325 pDev = (struct usbnet *)pIntf->dev.platform_data; in GobiNetResume()
1328 if (pDev == NULL || pDev->net == NULL) in GobiNetResume()
1334 pGobiDev = (sGobiUSBNet *)pDev->data[0]; in GobiNetResume()
1377 if ((!netif_queue_stopped(pDev->net)) && (pGobiDev->qmap_mode > 1)) { in GobiNetResume()
1427 struct usbnet * pDev, in GobiNetDriverBind() argument
1444 if ( !test_bit(pIntf->cur_altsetting->desc.bInterfaceNumber, &pDev->driver_info->data)) in GobiNetDriverBind()
1497 if (usb_set_interface( pDev->udev, in GobiNetDriverBind()
1505 pDev->in = usb_rcvbulkpipe( pDev->udev, in GobiNetDriverBind()
1507 pDev->out = usb_sndbulkpipe( pDev->udev, in GobiNetDriverBind()
1511 if (rx_packets && pDev->udev->descriptor.idVendor == cpu_to_le16(0x2C7C)) { in GobiNetDriverBind()
1531 pDev->rx_urb_size = le32_to_cpu(rx_config.package_max_len); in GobiNetDriverBind()
1540 if ((pDev->net->dev_addr[0] & 0xd0) == 0x40) { in GobiNetDriverBind()
1542 pDev->net->dev_addr[0] |= 0x02; /* set local assignment bit */ in GobiNetDriverBind()
1543 pDev->net->dev_addr[0] &= 0xbf; /* clear "IP" bit */ in GobiNetDriverBind()
1545 memcpy (pDev->net->dev_addr, node_id, sizeof node_id); in GobiNetDriverBind()
1546 pDev->net->flags &= ~(IFF_BROADCAST | IFF_MULTICAST); in GobiNetDriverBind()
1547 pDev->net->features |= (NETIF_F_VLAN_CHALLENGED); in GobiNetDriverBind()
1550 ql_net_ethtool_ops = *pDev->net->ethtool_ops; in GobiNetDriverBind()
1552 pDev->net->ethtool_ops = &ql_net_ethtool_ops; in GobiNetDriverBind()
1560 pIntf->dev.platform_data = (void *)pDev; in GobiNetDriverBind()
1563 …if (qcrmcall_mode == 0 && pDev->net->sysfs_groups[0] == NULL && gobinet_sysfs_attr_group.attrs[0] … in GobiNetDriverBind()
1565 pDev->net->sysfs_groups[1] = &gobinet_sysfs_attr_group; //see netdev_register_sysfs() in GobiNetDriverBind()
1567 pDev->net->sysfs_groups[0] = &gobinet_sysfs_attr_group; in GobiNetDriverBind()
1571 if (!pDev->rx_urb_size) { in GobiNetDriverBind()
1574 pDev->rx_urb_size = ETH_DATA_LEN + ETH_HLEN + 6; in GobiNetDriverBind()
1595 struct usbnet * pDev, in GobiNetDriverUnbind() argument
1598 sGobiUSBNet * pGobiDev = (sGobiUSBNet *)pDev->data[0]; in GobiNetDriverUnbind()
1601 netif_carrier_off( pDev->net ); in GobiNetDriverUnbind()
1609 kfree( pDev->net->netdev_ops ); in GobiNetDriverUnbind()
1610 pDev->net->netdev_ops = NULL; in GobiNetDriverUnbind()
2185 struct usbnet * pDev = netdev_priv( pNet ); in GobiUSBNetTXTimeout() local
2188 if (pDev == NULL || pDev->net == NULL) in GobiUSBNetTXTimeout()
2194 pGobiDev = (sGobiUSBNet *)pDev->data[0]; in GobiUSBNetTXTimeout()
2439 struct usbnet * pDev = netdev_priv( pNet ); in GobiUSBNetStartXmit() local
2443 if (pDev == NULL || pDev->net == NULL) in GobiUSBNetStartXmit()
2449 pGobiDev = (sGobiUSBNet *)pDev->data[0]; in GobiUSBNetStartXmit()
2509 GobiNetDriverTxFixup(pDev, pSKB, GFP_ATOMIC); in GobiUSBNetStartXmit()
2571 struct usbnet * pDev = netdev_priv( pNet ); in GobiUSBNetStartXmit2() local
2575 if (pDev == NULL || pDev->net == NULL) in GobiUSBNetStartXmit2()
2581 pGobiDev = (sGobiUSBNet *)pDev->data[0]; in GobiUSBNetStartXmit2()
2636 struct usbnet * pDev = netdev_priv( pNet ); in GobiUSBNetOpen() local
2638 if (pDev == NULL) in GobiUSBNetOpen()
2644 pGobiDev = (sGobiUSBNet *)pDev->data[0]; in GobiUSBNetOpen()
2721 struct usbnet * pDev = netdev_priv( pNet ); in GobiUSBNetStop() local
2723 if (pDev == NULL || pDev->net == NULL) in GobiUSBNetStop()
2729 pGobiDev = (sGobiUSBNet *)pDev->data[0]; in GobiUSBNetStop()
2765 static int GobiNetDriver_check_connect(struct usbnet *pDev) { in GobiNetDriver_check_connect() argument
2770 pGobiDev = (sGobiUSBNet *)pDev->data[0]; in GobiNetDriver_check_connect()
2859 struct usbnet * pDev; in GobiUSBNetProbe() local
2877 pDev = usb_get_intfdata( pIntf ); in GobiUSBNetProbe()
2879 pDev = (struct usbnet *)pIntf->dev.platform_data; in GobiUSBNetProbe()
2882 if (pDev == NULL || pDev->net == NULL) in GobiUSBNetProbe()
2899 pDev->data[0] = (unsigned long)pGobiDev; in GobiUSBNetProbe()
2901 pGobiDev->mpNetDev = pDev; in GobiUSBNetProbe()
2905 usb_clear_halt( pGobiDev->mpNetDev->udev, pDev->out ); in GobiUSBNetProbe()
2909 pGobiDev->mpUSBNetOpen = pDev->net->open; in GobiUSBNetProbe()
2910 pDev->net->open = GobiUSBNetOpen; in GobiUSBNetProbe()
2911 pGobiDev->mpUSBNetStop = pDev->net->stop; in GobiUSBNetProbe()
2912 pDev->net->stop = GobiUSBNetStop; in GobiUSBNetProbe()
2914 pDev->net->hard_start_xmit = GobiUSBNetStartXmit; in GobiUSBNetProbe()
2915 pDev->net->tx_timeout = GobiUSBNetTXTimeout; in GobiUSBNetProbe()
2917 local_usbnet_start_xmit = pDev->net->hard_start_xmit; in GobiUSBNetProbe()
2918 pDev->net->hard_start_xmit = GobiUSBNetStartXmit2; in GobiUSBNetProbe()
2928 memcpy( pNetDevOps, pDev->net->netdev_ops, sizeof( struct net_device_ops ) ); in GobiUSBNetProbe()
2945 pDev->net->netdev_ops = pNetDevOps; in GobiUSBNetProbe()
2982 pGobiDev->mbMdm9x07 |= (pDev->udev->descriptor.idVendor == cpu_to_le16(0x2c7c)); in GobiUSBNetProbe()
2983 …pGobiDev->mbMdm9x06 |= (pDev->udev->descriptor.idVendor == cpu_to_le16(0x2c7c) && pDev->udev->desc… in GobiUSBNetProbe()
2988 memcpy(pGobiDev->mHostMAC, pDev->net->dev_addr, 6); in GobiUSBNetProbe()
3031 unsigned idProduct = le16_to_cpu(pDev->udev->descriptor.idProduct); in GobiUSBNetProbe()
3047 netif_carrier_off(pDev->net); in GobiUSBNetProbe()
3053 netdev_rx_handler_register(pDev->net, rmnet_usb_rx_handler, NULL); in GobiUSBNetProbe()
3089 pGobiDev->mpQmapNetDev[0] = pDev->net; in GobiUSBNetProbe()
3100 struct usbnet *pDev = usb_get_intfdata(intf); in GobiUSBNetDisconnect() local
3101 sGobiUSBNet * pGobiDev = (sGobiUSBNet *)pDev->data[0]; in GobiUSBNetDisconnect()