Lines Matching defs:fbd
118 struct fbnic_dev *fbd = fbn->fbd;
120 fbnic_get_fw_ver_commit_str(fbd, drvinfo->fw_version,
128 return fbnic_csr_regs_len(fbn->fbd) * sizeof(u32);
136 fbnic_csr_get_regs(fbn->fbd, data, ®s->version);
186 struct fbnic_dev *fbd = orig->fbd;
190 fbnic_synchronize_irq(fbd, FBNIC_NON_NAPI_VECTORS + i);
339 err = fbnic_wait_all_queues_idle(fbn->fbd, true);
447 struct fbnic_dev *fbd = fbn->fbd;
450 fbnic_get_hw_stats(fbn->fbd);
452 spin_lock(&fbd->hw_stats_lock);
453 fbnic_report_hw_stats(fbnic_gstrings_hw_stats, &fbd->hw_stats,
459 enq = &fbd->hw_stats.rxb.enq[i];
468 fifo = &fbd->hw_stats.rxb.fifo[i];
477 deq = &fbd->hw_stats.rxb.deq[i];
484 const struct fbnic_hw_q_stats *hw_q = &fbd->hw_stats.hw_q[i];
489 spin_unlock(&fbd->hw_stats_lock);
538 struct fbnic_dev *fbd = fbn->fbd;
548 act_tcam = &fbd->act_tcam[idx];
568 struct fbnic_dev *fbd = fbn->fbd;
578 act_tcam = &fbd->act_tcam[idx];
595 mac_addr = &fbd->mac_addr[idx];
614 ip_addr = &fbd->ipo_src[idx];
631 ip_addr = &fbd->ipo_dst[idx];
666 ip_addr = &fbd->ip_src[idx];
683 ip_addr = &fbd->ip_dst[idx];
718 ip_addr = &fbd->ip_src[idx];
732 ip_addr = &fbd->ip_dst[idx];
789 static int fbnic_cls_rule_any_loc(struct fbnic_dev *fbd)
796 if (fbd->act_tcam[idx].state != FBNIC_TCAM_S_VALID)
814 struct fbnic_dev *fbd = fbn->fbd;
826 location = fbnic_cls_rule_any_loc(fbd);
846 act_tcam = &fbd->act_tcam[idx];
888 ip_src = __fbnic_ip4_sync(fbd, fbd->ip_src,
896 ip_src - fbd->ip_src);
904 ip_dst = __fbnic_ip4_sync(fbd, fbd->ip_dst,
915 ip_dst - fbd->ip_dst);
956 ip_src = __fbnic_ip6_sync(fbd, fbd->ipo_src,
965 ip_src - fbd->ipo_src);
974 ip_dst = __fbnic_ip6_sync(fbd, fbd->ipo_dst,
986 ip_dst - fbd->ipo_dst);
997 ip_src = __fbnic_ip6_sync(fbd, fbd->ip_src,
1005 ip_src - fbd->ip_src);
1013 ip_dst = __fbnic_ip6_sync(fbd, fbd->ip_dst,
1024 ip_dst - fbd->ip_dst);
1052 mac_addr = __fbnic_mc_sync(fbd, addr);
1054 mac_addr = __fbnic_uc_sync(fbd, addr);
1062 mac_addr - fbd->mac_addr);
1102 fbnic_write_rules(fbd);
1104 fbnic_write_ip_addr(fbd);
1106 fbnic_write_macda(fbd);
1115 struct fbnic_dev *fbd = fbn->fbd;
1118 for (idx = ARRAY_SIZE(fbd->mac_addr); idx--;)
1119 __fbnic_xc_unsync(&fbd->mac_addr[idx], tcam_idx);
1123 fbnic_write_macda(fbd);
1129 struct fbnic_dev *fbd = fbn->fbd;
1132 for (idx = ARRAY_SIZE(fbd->ip_src); idx--;)
1133 __fbnic_ip_unsync(&fbd->ip_src[idx], tcam_idx);
1134 for (idx = ARRAY_SIZE(fbd->ip_dst); idx--;)
1135 __fbnic_ip_unsync(&fbd->ip_dst[idx], tcam_idx);
1136 for (idx = ARRAY_SIZE(fbd->ipo_src); idx--;)
1137 __fbnic_ip_unsync(&fbd->ipo_src[idx], tcam_idx);
1138 for (idx = ARRAY_SIZE(fbd->ipo_dst); idx--;)
1139 __fbnic_ip_unsync(&fbd->ipo_dst[idx], tcam_idx);
1143 fbnic_write_ip_addr(fbd);
1150 struct fbnic_dev *fbd = fbn->fbd;
1160 act_tcam = &fbd->act_tcam[idx];
1184 fbnic_write_rules(fbd);
1289 fbnic_rss_reinit_hw(fbn->fbd, fbn);
1341 fbnic_rss_reinit(fbn->fbd, fbn);
1342 fbnic_write_rules(fbn->fbd);
1363 fbnic_rss_reinit_hw(fbn->fbd, fbn);
1407 struct fbnic_dev *fbd = fbn->fbd;
1409 ch->max_rx = fbd->max_num_queues;
1410 ch->max_tx = fbd->max_num_queues;
1440 struct fbnic_dev *fbd = fbn->fbd;
1444 max_napis = fbd->num_irqs - FBNIC_NON_NAPI_VECTORS;
1453 ch->rx_count + ch->combined_count > fbd->max_num_queues ||
1454 ch->tx_count + ch->combined_count > fbd->max_num_queues ||
1479 err = fbnic_wait_all_queues_idle(fbn->fbd, true);
1520 tsinfo->phc_index = ptp_clock_index(fbn->fbd->ptp);
1578 struct fbnic_dev *fbd = fbn->fbd;
1581 mac_stats = &fbd->hw_stats.mac;
1582 mac = fbd->mac;
1584 mac->get_eth_mac_stats(fbd, false, &mac_stats->eth_mac);
1620 struct fbnic_dev *fbd = fbn->fbd;
1622 mac_stats = &fbd->hw_stats.mac;
1624 fbd->mac->get_eth_ctrl_stats(fbd, false, &mac_stats->eth_ctrl);
1654 struct fbnic_dev *fbd = fbn->fbd;
1657 mac_stats = &fbd->hw_stats.mac;
1659 fbd->mac->get_rmon_stats(fbd, false, &mac_stats->rmon);