Lines Matching defs:fbd

15 	struct fbnic_dev *fbd = fbn->fbd;
31 err = fbnic_fw_xmit_ownership_msg(fbd, true);
33 dev_warn(fbd->dev,
43 err = fbnic_fw_init_heartbeat(fbd, false);
47 err = fbnic_pcs_request_irq(fbd);
52 fbnic_bmc_rpc_init(fbd);
53 fbnic_rss_reinit(fbd, fbn);
59 fbnic_fw_xmit_ownership_msg(fbn->fbd, false);
74 fbnic_napi_name_irqs(fbn->fbd);
88 fbnic_pcs_free_irq(fbn->fbd);
91 fbnic_fw_xmit_ownership_msg(fbn->fbd, false);
108 avail_addr = __fbnic_uc_sync(fbn->fbd, addr);
121 struct fbnic_dev *fbd = fbn->fbd;
128 for (i = fbd->mac_addr_boundary, ret = -ENOENT;
130 struct fbnic_mac_addr *mac_addr = &fbd->mac_addr[i];
149 avail_addr = __fbnic_mc_sync(fbn->fbd, addr);
162 struct fbnic_dev *fbd = fbn->fbd;
169 for (i = fbd->mac_addr_boundary, ret = -ENOENT;
171 struct fbnic_mac_addr *mac_addr = &fbd->mac_addr[i];
186 struct fbnic_dev *fbd = fbn->fbd;
191 mac_addr = &fbd->mac_addr[FBNIC_RPC_TCAM_MACDA_HOST_ADDR_IDX];
200 mac_addr = &fbd->mac_addr[FBNIC_RPC_TCAM_MACDA_BROADCAST_IDX];
224 mac_addr = &fbd->mac_addr[FBNIC_RPC_TCAM_MACDA_PROMISC_IDX];
237 (!fbnic_bmc_present(fbd) || !fbd->fw_cap.all_multi)) {
268 fbnic_bmc_rpc_all_multi_config(fbd, mc_promisc);
271 fbnic_sift_macda(fbd);
274 fbnic_write_rules(fbd);
275 fbnic_write_macda(fbd);
276 fbnic_write_tce_tcam(fbd);
303 struct fbnic_dev *fbd = fbn->fbd;
306 for (idx = ARRAY_SIZE(fbd->mac_addr); idx--;) {
307 struct fbnic_mac_addr *mac_addr = &fbd->mac_addr[idx];
322 fbnic_write_macda(fbd);
388 fbnic_rss_reinit(fbn->fbd, fbn);
389 fbnic_write_rules(fbn->fbd);
412 struct fbnic_dev *fbd = fbn->fbd;
417 fbnic_get_hw_stats(fbd);
426 spin_lock(&fbd->hw_stats_lock);
427 tx_dropped += fbd->hw_stats.tmi.drop.frames.value +
428 fbd->hw_stats.tti.cm_drop.frames.value +
429 fbd->hw_stats.tti.frame_drop.frames.value +
430 fbd->hw_stats.tti.tbi_drop.frames.value;
431 spin_unlock(&fbd->hw_stats_lock);
462 spin_lock(&fbd->hw_stats_lock);
470 rx_missed += fbd->hw_stats.rxb.fifo[i].drop.frames.value;
472 rx_missed += fbd->hw_stats.rxb.fifo[i].drop.frames.value;
474 for (i = 0; i < fbd->max_num_queues; i++) {
476 rx_over += fbd->hw_stats.hw_q[i].rde_pkt_cq_drop.value;
477 rx_over += fbd->hw_stats.hw_q[i].rde_pkt_bdq_drop.value;
480 rx_errors += fbd->hw_stats.hw_q[i].rde_pkt_err.value;
482 spin_unlock(&fbd->hw_stats_lock);
529 struct fbnic_dev *fbd = fbn->fbd;
554 fbnic_get_hw_q_stats(fbd, fbd->hw_stats.hw_q);
556 spin_lock(&fbd->hw_stats_lock);
557 rx->hw_drop_overruns = fbd->hw_stats.hw_q[idx].rde_pkt_cq_drop.value +
558 fbd->hw_stats.hw_q[idx].rde_pkt_bdq_drop.value;
559 rx->hw_drops = fbd->hw_stats.hw_q[idx].rde_pkt_err.value +
561 spin_unlock(&fbd->hw_stats_lock);
625 struct fbnic_dev *fbd = fbn->fbd;
628 max_napis = fbd->num_irqs - FBNIC_NON_NAPI_VECTORS;
641 * @fbd: Driver specific structure to free netdev from
646 void fbnic_netdev_free(struct fbnic_dev *fbd)
648 struct fbnic_net *fbn = netdev_priv(fbd->netdev);
653 free_netdev(fbd->netdev);
654 fbd->netdev = NULL;
659 * @fbd: Driver specific structure to associate netdev with
666 struct net_device *fbnic_netdev_alloc(struct fbnic_dev *fbd)
676 SET_NETDEV_DEV(netdev, fbd->dev);
677 fbd->netdev = netdev;
687 fbn->fbd = fbd;
699 if (default_queues > fbd->max_num_queues)
700 default_queues = fbd->max_num_queues;
748 fbnic_netdev_free(fbd);
778 struct fbnic_dev *fbd = fbn->fbd;
779 u64 dsn = fbd->dsn;
792 dev_err(fbd->dev, "MAC addr %pM invalid\n", addr);