/Linux-v4.19/drivers/net/ethernet/huawei/hinic/ |
D | hinic_main.c | 64 #define VLAN_BITMAP_SIZE(nic_dev) (ALIGN(VLAN_N_VID, 8) / 8) argument 116 struct hinic_dev *nic_dev = netdev_priv(netdev); in hinic_get_link_ksettings() local 129 err = hinic_port_get_cap(nic_dev, &port_cap); in hinic_get_link_ksettings() 131 netif_err(nic_dev, drv, netdev, in hinic_get_link_ksettings() 136 err = hinic_port_link_state(nic_dev, &link_state); in hinic_get_link_ksettings() 138 netif_err(nic_dev, drv, netdev, in hinic_get_link_ksettings() 144 netif_info(nic_dev, drv, netdev, "No link\n"); in hinic_get_link_ksettings() 165 struct hinic_dev *nic_dev = netdev_priv(netdev); in hinic_get_drvinfo() local 166 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_get_drvinfo() 185 struct hinic_dev *nic_dev = netdev_priv(netdev); in hinic_get_channels() local [all …]
|
D | hinic_port.c | 46 static int change_mac(struct hinic_dev *nic_dev, const u8 *addr, in change_mac() argument 49 struct net_device *netdev = nic_dev->netdev; in change_mac() 50 struct hinic_hwdev *hwdev = nic_dev->hwdev; in change_mac() 59 netif_err(nic_dev, drv, netdev, "Invalid VLAN number\n"); in change_mac() 92 int hinic_port_add_mac(struct hinic_dev *nic_dev, in hinic_port_add_mac() argument 95 return change_mac(nic_dev, addr, vlan_id, MAC_SET); in hinic_port_add_mac() 106 int hinic_port_del_mac(struct hinic_dev *nic_dev, const u8 *addr, in hinic_port_del_mac() argument 109 return change_mac(nic_dev, addr, vlan_id, MAC_DEL); in hinic_port_del_mac() 119 int hinic_port_get_mac(struct hinic_dev *nic_dev, u8 *addr) in hinic_port_get_mac() argument 121 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_get_mac() [all …]
|
D | hinic_port.h | 170 int hinic_port_add_mac(struct hinic_dev *nic_dev, const u8 *addr, 173 int hinic_port_del_mac(struct hinic_dev *nic_dev, const u8 *addr, 176 int hinic_port_get_mac(struct hinic_dev *nic_dev, u8 *addr); 178 int hinic_port_set_mtu(struct hinic_dev *nic_dev, int new_mtu); 180 int hinic_port_add_vlan(struct hinic_dev *nic_dev, u16 vlan_id); 182 int hinic_port_del_vlan(struct hinic_dev *nic_dev, u16 vlan_id); 184 int hinic_port_set_rx_mode(struct hinic_dev *nic_dev, u32 rx_mode); 186 int hinic_port_link_state(struct hinic_dev *nic_dev, 189 int hinic_port_set_state(struct hinic_dev *nic_dev, 192 int hinic_port_set_func_state(struct hinic_dev *nic_dev, [all …]
|
D | hinic_tx.c | 111 static int tx_map_skb(struct hinic_dev *nic_dev, struct sk_buff *skb, in tx_map_skb() argument 114 struct hinic_hwdev *hwdev = nic_dev->hwdev; in tx_map_skb() 162 static void tx_unmap_skb(struct hinic_dev *nic_dev, struct sk_buff *skb, in tx_unmap_skb() argument 165 struct hinic_hwdev *hwdev = nic_dev->hwdev; in tx_unmap_skb() 180 struct hinic_dev *nic_dev = netdev_priv(netdev); in hinic_xmit_frame() local 189 txq = &nic_dev->txqs[skb->queue_mapping]; in hinic_xmit_frame() 207 err = tx_map_skb(nic_dev, skb, txq->sges); in hinic_xmit_frame() 222 netif_wake_subqueue(nic_dev->netdev, qp->q_id); in hinic_xmit_frame() 226 tx_unmap_skb(nic_dev, skb, txq->sges); in hinic_xmit_frame() 264 static void tx_free_skb(struct hinic_dev *nic_dev, struct sk_buff *skb, in tx_free_skb() argument [all …]
|
D | hinic_rx.c | 102 struct hinic_dev *nic_dev = netdev_priv(rxq->netdev); in rx_alloc_skb() local 103 struct hinic_hwdev *hwdev = nic_dev->hwdev; in rx_alloc_skb() 139 struct hinic_dev *nic_dev = netdev_priv(rxq->netdev); in rx_unmap_skb() local 140 struct hinic_hwdev *hwdev = nic_dev->hwdev; in rx_unmap_skb() 169 struct hinic_dev *nic_dev = netdev_priv(rxq->netdev); in rx_alloc_pkts() local 181 if (free_wqebbs > nic_dev->rx_weight) in rx_alloc_pkts() 182 free_wqebbs = nic_dev->rx_weight; in rx_alloc_pkts() 383 struct hinic_dev *nic_dev = netdev_priv(rxq->netdev); in rx_add_napi() local 385 netif_napi_add(rxq->netdev, &rxq->napi, rx_poll, nic_dev->rx_weight); in rx_add_napi() 399 struct hinic_dev *nic_dev; in rx_irq() local [all …]
|
/Linux-v4.19/drivers/infiniband/hw/mlx5/ |
D | main.c | 5723 struct mlx5_ib_dev *nic_dev; in mlx5_ib_stage_rep_flow_db_init() local 5725 nic_dev = mlx5_ib_get_uplink_ibdev(dev->mdev->priv.eswitch); in mlx5_ib_stage_rep_flow_db_init() 5727 if (!nic_dev) in mlx5_ib_stage_rep_flow_db_init() 5730 dev->flow_db = nic_dev->flow_db; in mlx5_ib_stage_rep_flow_db_init()
|