• Home
  • Raw
  • Download

Lines Matching refs:nic_dev

130 	struct hinic_dev *nic_dev = netdev_priv(rxq->netdev);  in rx_alloc_skb()  local
131 struct hinic_hwdev *hwdev = nic_dev->hwdev; in rx_alloc_skb()
165 struct hinic_dev *nic_dev = netdev_priv(rxq->netdev); in rx_unmap_skb() local
166 struct hinic_hwdev *hwdev = nic_dev->hwdev; in rx_unmap_skb()
195 struct hinic_dev *nic_dev = netdev_priv(rxq->netdev); in rx_alloc_pkts() local
207 if (free_wqebbs > nic_dev->rx_weight) in rx_alloc_pkts()
208 free_wqebbs = nic_dev->rx_weight; in rx_alloc_pkts()
314 static void hinic_copy_lp_data(struct hinic_dev *nic_dev, in hinic_copy_lp_data() argument
317 struct net_device *netdev = nic_dev->netdev; in hinic_copy_lp_data()
318 u8 *lb_buf = nic_dev->lb_test_rx_buf; in hinic_copy_lp_data()
319 int lb_len = nic_dev->lb_pkt_len; in hinic_copy_lp_data()
323 if (nic_dev->lb_test_rx_idx == LP_PKT_CNT) { in hinic_copy_lp_data()
324 nic_dev->lb_test_rx_idx = 0; in hinic_copy_lp_data()
325 netif_warn(nic_dev, drv, netdev, "Loopback test warning, receive too more test pkts\n"); in hinic_copy_lp_data()
328 if (skb->len != nic_dev->lb_pkt_len) { in hinic_copy_lp_data()
329 netif_warn(nic_dev, drv, netdev, "Wrong packet length\n"); in hinic_copy_lp_data()
330 nic_dev->lb_test_rx_idx++; in hinic_copy_lp_data()
334 pkt_offset = nic_dev->lb_test_rx_idx * lb_len; in hinic_copy_lp_data()
344 nic_dev->lb_test_rx_idx++; in hinic_copy_lp_data()
361 struct hinic_dev *nic_dev; in rxq_recv() local
374 nic_dev = netdev_priv(netdev); in rxq_recv()
418 if (unlikely(nic_dev->flags & HINIC_LP_TEST)) in rxq_recv()
419 hinic_copy_lp_data(nic_dev, skb); in rxq_recv()
460 struct hinic_dev *nic_dev = netdev_priv(rxq->netdev); in rx_poll() local
470 if (!HINIC_IS_VF(nic_dev->hwdev->hwif)) in rx_poll()
471 hinic_hwdev_set_msix_state(nic_dev->hwdev, in rx_poll()
480 struct hinic_dev *nic_dev = netdev_priv(rxq->netdev); in rx_add_napi() local
482 netif_napi_add(rxq->netdev, &rxq->napi, rx_poll, nic_dev->rx_weight); in rx_add_napi()
496 struct hinic_dev *nic_dev; in rx_irq() local
499 nic_dev = netdev_priv(rxq->netdev); in rx_irq()
500 if (!HINIC_IS_VF(nic_dev->hwdev->hwif)) in rx_irq()
501 hinic_hwdev_set_msix_state(nic_dev->hwdev, in rx_irq()
505 nic_dev = netdev_priv(rxq->netdev); in rx_irq()
506 hinic_hwdev_msix_cnt_set(nic_dev->hwdev, rq->msix_entry); in rx_irq()
514 struct hinic_dev *nic_dev = netdev_priv(rxq->netdev); in rx_request_irq() local
517 struct hinic_hwdev *hwdev = nic_dev->hwdev; in rx_request_irq()
531 intr_coal = &nic_dev->rx_intr_coalesce[qp->q_id]; in rx_request_irq()
539 netif_err(nic_dev, drv, rxq->netdev, in rx_request_irq()