Lines Matching refs:nic

71 	struct nic *nic = arg;
73 if (netif_queue_stopped(nic->netdev))
74 netif_wake_queue(nic->netdev);
77 static int gdm_lte_rx(struct sk_buff *skb, struct nic *nic, int nic_type)
84 nic->stats.rx_dropped++;
86 nic->stats.rx_packets++;
87 nic->stats.rx_bytes += len;
95 struct nic *nic = netdev_priv(skb_in->dev);
151 /* Fill the source mac with nic's source mac */
152 memcpy(mac_header_data + ETH_ALEN, nic->src_mac_addr, ETH_ALEN);
169 gdm_lte_rx(skb_out, nic, nic_type);
214 struct nic *nic = netdev_priv(skb_in->dev);
311 /* Fill the source mac with nic's source mac */
312 memcpy(mac_header_data + ETH_ALEN, nic->src_mac_addr, ETH_ALEN);
330 gdm_lte_rx(skb_out, nic, nic_type);
337 struct nic *nic = netdev_priv(dev);
347 nic_type = 0x00000010 | nic->nic_id;
361 /* Process packet for nic type */
403 struct nic *nic = netdev_priv(dev);
440 nic->vlan_id = ntohs(vlan_eth->h_vlan_TCI) & VLAN_VID_MASK;
444 nic->vlan_id = 0;
467 ret = nic->phy_dev->send_sdu_func(nic->phy_dev->priv_dev,
469 nic->pdn_table.dft_eps_id, 0,
470 tx_complete, nic, idx,
485 nic->stats.tx_dropped++;
487 nic->stats.tx_packets++;
488 nic->stats.tx_bytes += data_len;
497 struct nic *nic = netdev_priv(dev);
499 return &nic->stats;
504 struct phy_dev *phy_dev = ((struct nic *)netdev_priv(dev))->phy_dev;
522 struct nic *nic = netdev_priv(dev);
524 nic->phy_dev->send_hci_func(nic->phy_dev->priv_dev, msg, len, NULL,
565 struct nic *nic;
574 nic = netdev_priv(dev);
619 ether_addr_copy(nic->dest_mac_addr, buf + offset);
623 if (nic->vlan_id > 0) {
632 ether_addr_copy(mac_header_data, nic->dest_mac_addr);
633 memcpy(mac_header_data + ETH_ALEN, nic->src_mac_addr, ETH_ALEN);
635 vlan_eth.h_vlan_TCI = htons(nic->vlan_id);
672 gdm_lte_rx(skb, nic, nic_type);
730 struct nic *nic = netdev_priv(dev);
732 u8 ed = nic->phy_dev->get_endian(nic->phy_dev->priv_dev);
735 memset(&nic->pdn_table, 0x00, sizeof(struct pdn_table));
741 nic->pdn_table.activate = pdn_table->activate;
742 nic->pdn_table.dft_eps_id = gdm_dev32_to_cpu(ed, pdn_table->dft_eps_id);
743 nic->pdn_table.nic_type = gdm_dev32_to_cpu(ed, pdn_table->nic_type);
746 nic->pdn_table.nic_type);
845 /* Create random nic src and copy the first
867 struct nic *nic;
881 net = alloc_netdev(sizeof(struct nic), pdn_dev_name,
891 nic = netdev_priv(net);
892 memset(nic, 0, sizeof(struct nic));
893 nic->netdev = net;
894 nic->phy_dev = phy_dev;
895 nic->nic_id = index;
898 nic->src_mac_addr,
899 nic->dest_mac_addr,