| /linux/drivers/net/ethernet/cavium/thunder/ |
| H A D | nic_main.c | 88 static void nic_reg_write(struct nicpf *nic, u64 offset, u64 val) in nic_reg_write() argument 90 writeq_relaxed(val, nic->reg_base + offset); in nic_reg_write() 93 static u64 nic_reg_read(struct nicpf *nic, u64 offset) in nic_reg_read() argument 95 return readq_relaxed(nic->reg_base + offset); in nic_reg_read() 99 static void nic_enable_mbx_intr(struct nicpf *nic) in nic_enable_mbx_intr() argument 101 int vf_cnt = pci_sriov_get_totalvfs(nic->pdev); in nic_enable_mbx_intr() 106 nic_reg_write(nic, NIC_PF_MAILBOX_INT, INTR_MASK(vf_cnt)); in nic_enable_mbx_intr() 109 nic_reg_write(nic, NIC_PF_MAILBOX_ENA_W1S, INTR_MASK(vf_cnt)); in nic_enable_mbx_intr() 112 nic_reg_write(nic, NIC_PF_MAILBOX_INT + sizeof(u64), in nic_enable_mbx_intr() 114 nic_reg_write(nic, NIC_PF_MAILBOX_ENA_W1S + sizeof(u64), in nic_enable_mbx_intr() [all …]
|
| H A D | nicvf_queues.c | 22 static void nicvf_get_page(struct nicvf *nic) in nicvf_get_page() argument 24 if (!nic->rb_pageref || !nic->rb_page) in nicvf_get_page() 27 page_ref_add(nic->rb_page, nic->rb_pageref); in nicvf_get_page() 28 nic->rb_pageref = 0; in nicvf_get_page() 32 static int nicvf_poll_reg(struct nicvf *nic, int qidx, in nicvf_poll_reg() argument 43 reg_val = nicvf_queue_reg_read(nic, reg, qidx); in nicvf_poll_reg() 49 netdev_err(nic->netdev, "Poll on reg 0x%llx failed\n", reg); in nicvf_poll_reg() 54 static int nicvf_alloc_q_desc_mem(struct nicvf *nic, struct q_desc_mem *dmem, in nicvf_alloc_q_desc_mem() argument 60 dmem->unalign_base = dma_alloc_coherent(&nic->pdev->dev, dmem->size, in nicvf_alloc_q_desc_mem() 72 static void nicvf_free_q_desc_mem(struct nicvf *nic, struct q_desc_mem *dmem) in nicvf_free_q_desc_mem() argument [all …]
|
| H A D | nicvf_queues.h | 320 static inline u64 nicvf_iova_to_phys(struct nicvf *nic, dma_addr_t dma_addr) in nicvf_iova_to_phys() argument 323 if (nic->iommu_domain) in nicvf_iova_to_phys() 324 return iommu_iova_to_phys(nic->iommu_domain, dma_addr); in nicvf_iova_to_phys() 328 void nicvf_unmap_sndq_buffers(struct nicvf *nic, struct snd_queue *sq, 330 void nicvf_config_vlan_stripping(struct nicvf *nic, 332 int nicvf_set_qset_resources(struct nicvf *nic); 333 int nicvf_config_data_transfer(struct nicvf *nic, bool enable); 334 void nicvf_qset_config(struct nicvf *nic, bool enable); 335 void nicvf_cmp_queue_config(struct nicvf *nic, struct queue_set *qs, 338 void nicvf_sq_enable(struct nicvf *nic, struct snd_queue *sq, int qidx); [all …]
|
| H A D | nic.h | 632 void nicvf_config_rss(struct nicvf *nic); 633 void nicvf_set_rss_key(struct nicvf *nic); 635 void nicvf_update_stats(struct nicvf *nic); 636 void nicvf_update_lmac_stats(struct nicvf *nic);
|
| /linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
| H A D | otx2_tc.c | 35 static void otx2_get_egress_burst_cfg(struct otx2_nic *nic, u32 burst, in otx2_get_egress_burst_cfg() argument 41 if (is_dev_otx2(nic->pdev)) { in otx2_get_egress_burst_cfg() 103 u64 otx2_get_txschq_rate_regval(struct otx2_nic *nic, in otx2_get_txschq_rate_regval() argument 111 otx2_get_egress_burst_cfg(nic, burst, &burst_exp, &burst_mantissa); in otx2_get_txschq_rate_regval() 114 if (is_dev_otx2(nic->pdev)) { in otx2_get_txschq_rate_regval() 131 static int otx2_set_matchall_egress_rate(struct otx2_nic *nic, in otx2_set_matchall_egress_rate() argument 134 struct otx2_hw *hw = &nic->hw; in otx2_set_matchall_egress_rate() 141 mutex_lock(&nic->mbox.lock); in otx2_set_matchall_egress_rate() 142 req = otx2_mbox_alloc_msg_nix_txschq_cfg(&nic->mbox); in otx2_set_matchall_egress_rate() 144 mutex_unlock(&nic->mbox.lock); in otx2_set_matchall_egress_rate() [all …]
|
| H A D | otx2_ptp.c | 19 if (!ptp->nic) in is_tstmp_atomic_update_supported() 22 mutex_lock(&ptp->nic->mbox.lock); in is_tstmp_atomic_update_supported() 23 req = otx2_mbox_alloc_msg_ptp_get_cap(&ptp->nic->mbox); in is_tstmp_atomic_update_supported() 25 mutex_unlock(&ptp->nic->mbox.lock); in is_tstmp_atomic_update_supported() 29 err = otx2_sync_mbox_msg(&ptp->nic->mbox); in is_tstmp_atomic_update_supported() 31 mutex_unlock(&ptp->nic->mbox.lock); in is_tstmp_atomic_update_supported() 34 rsp = (struct ptp_get_cap_rsp *)otx2_mbox_get_rsp(&ptp->nic->mbox.mbox, 0, in is_tstmp_atomic_update_supported() 36 mutex_unlock(&ptp->nic->mbox.lock); in is_tstmp_atomic_update_supported() 51 struct otx2_nic *pfvf = ptp->nic; in otx2_ptp_hw_adjtime() 55 if (!ptp->nic) in otx2_ptp_hw_adjtime() [all …]
|
| H A D | cn20k.c | 270 int cn20k_tc_free_mcam_entry(struct otx2_nic *nic, u16 entry) in cn20k_tc_free_mcam_entry() argument 275 mutex_lock(&nic->mbox.lock); in cn20k_tc_free_mcam_entry() 276 req = otx2_mbox_alloc_msg_npc_mcam_free_entry(&nic->mbox); in cn20k_tc_free_mcam_entry() 278 mutex_unlock(&nic->mbox.lock); in cn20k_tc_free_mcam_entry() 284 err = otx2_sync_mbox_msg(&nic->mbox); in cn20k_tc_free_mcam_entry() 286 mutex_unlock(&nic->mbox.lock); in cn20k_tc_free_mcam_entry() 290 mutex_unlock(&nic->mbox.lock); in cn20k_tc_free_mcam_entry() 295 static bool cn20k_tc_check_entry_shiftable(struct otx2_nic *nic, in cn20k_tc_check_entry_shiftable() argument 321 dev_err(nic->dev, "Rule %d cannot be shifted to %d\n", in cn20k_tc_check_entry_shiftable() 334 void cn20k_tc_update_mcam_table_del_req(struct otx2_nic *nic, in cn20k_tc_update_mcam_table_del_req() argument [all …]
|
| /linux/drivers/net/ethernet/aquantia/atlantic/ |
| H A D | aq_macsec.c | 24 static int aq_clear_txsc(struct aq_nic_s *nic, const int txsc_idx, 26 static int aq_clear_txsa(struct aq_nic_s *nic, struct aq_macsec_txsc *aq_txsc, 28 static int aq_clear_rxsc(struct aq_nic_s *nic, const int rxsc_idx, 30 static int aq_clear_rxsa(struct aq_nic_s *nic, struct aq_macsec_rxsc *aq_rxsc, 32 static int aq_clear_secy(struct aq_nic_s *nic, const struct macsec_secy *secy, 34 static int aq_apply_macsec_cfg(struct aq_nic_s *nic); 35 static int aq_apply_secy_cfg(struct aq_nic_s *nic, 292 struct aq_nic_s *nic = macsec_netdev_priv(ctx->netdev); in aq_mdo_dev_open() local 295 if (netif_carrier_ok(nic->ndev)) in aq_mdo_dev_open() 296 ret = aq_apply_secy_cfg(nic, ctx->secy); in aq_mdo_dev_open() [all …]
|
| H A D | aq_macsec.h | 122 int aq_macsec_init(struct aq_nic_s *nic); 123 void aq_macsec_free(struct aq_nic_s *nic); 124 int aq_macsec_enable(struct aq_nic_s *nic); 125 void aq_macsec_work(struct aq_nic_s *nic); 126 u64 *aq_macsec_get_stats(struct aq_nic_s *nic, u64 *data); 127 int aq_macsec_rx_sa_cnt(struct aq_nic_s *nic); 128 int aq_macsec_tx_sc_cnt(struct aq_nic_s *nic); 129 int aq_macsec_tx_sa_cnt(struct aq_nic_s *nic);
|
| H A D | aq_drvinfo.c | 90 const struct aq_nic_s *nic = data; in aq_hwmon_is_visible() local 95 if (channel == 0 && !nic->aq_fw_ops->get_phy_temp) in aq_hwmon_is_visible() 97 else if (channel == 1 && !nic->aq_fw_ops->get_mac_temp && in aq_hwmon_is_visible() 98 !nic->aq_hw_ops->hw_get_mac_temp) in aq_hwmon_is_visible()
|
| /linux/drivers/firmware/ |
| H A D | iscsi_ibft.c | 175 struct ibft_nic *nic; member 294 struct ibft_nic *nic = entry->nic; in ibft_attr_show_nic() local 299 if (!nic) in ibft_attr_show_nic() 304 str += sprintf(str, "%d\n", nic->hdr.index); in ibft_attr_show_nic() 307 str += sprintf(str, "%d\n", nic->hdr.flags); in ibft_attr_show_nic() 310 str += sprintf_ipaddr(str, nic->ip_addr); in ibft_attr_show_nic() 313 if (nic->subnet_mask_prefix > 32) in ibft_attr_show_nic() 316 val = cpu_to_be32(~((1 << (32-nic->subnet_mask_prefix))-1)); in ibft_attr_show_nic() 320 str += sprintf(str, "%d\n", nic->subnet_mask_prefix); in ibft_attr_show_nic() 323 str += sprintf(str, "%d\n", nic->origin); in ibft_attr_show_nic() [all …]
|
| /linux/drivers/net/ethernet/tehuti/ |
| H A D | tehuti.c | 99 struct pci_nic *nic = pci_get_drvdata(pdev); in print_hw_id() local 107 nic->port_num == 1 ? "" : ", 2-Port"); in print_hw_id() 109 readl(nic->regs + SROM_VER), readl(nic->regs + FPGA_VER) & 0xFFF, in print_hw_id() 110 readl(nic->regs + FPGA_SEED), in print_hw_id() 115 static void print_fw_id(struct pci_nic *nic) in print_fw_id() argument 117 pr_info("fw 0x%x\n", readl(nic->regs + FW_VER)); in print_fw_id() 426 #define BDX_IRQ_TYPE ((priv->nic->irq_type == IRQ_MSI) ? 0 : IRQF_SHARED) in bdx_hw_start() 625 print_fw_id(priv->nic); in bdx_open() 636 return (offset > (u32) (BDX_REGS_SIZE / priv->nic->port_num)) ? in bdx_range_check() 1889 struct pci_nic *nic; in bdx_probe() local [all …]
|
| /linux/Documentation/devicetree/bindings/net/ |
| H A D | hisilicon-hns-nic.txt | 4 - compatible: "hisilicon,hns-nic-v1" or "hisilicon,hns-nic-v2". 5 "hisilicon,hns-nic-v1" is for hip05. 6 "hisilicon,hns-nic-v2" is for Hi1610 and Hi1612. 72 compatible = "hisilicon,hns-nic-v1";
|
| /linux/arch/arm/boot/dts/aspeed/ |
| H A D | aspeed-bmc-facebook-greatlakes.dts | 247 /*B0-B7*/ "power-bmc-nic","presence-ocp-debug", 250 /*C0-C7*/ "presence-ocp-nic","","","reset-cause-nic-primary", 251 "reset-cause-nic-secondary","","","", 265 /*M0-M7*/ "","power-nic-bmc-enable","","usb-bmc-enable","","reset-cause-usb-hub","","",
|
| /linux/drivers/net/ethernet/qlogic/qlcnic/ |
| H A D | qlcnic_ctx.c | 905 struct qlcnic_info *nic) in qlcnic_82xx_set_nic_info() argument 924 nic_info->pci_func = cpu_to_le16(nic->pci_func); in qlcnic_82xx_set_nic_info() 925 nic_info->op_mode = cpu_to_le16(nic->op_mode); in qlcnic_82xx_set_nic_info() 926 nic_info->phys_port = cpu_to_le16(nic->phys_port); in qlcnic_82xx_set_nic_info() 927 nic_info->switch_mode = cpu_to_le16(nic->switch_mode); in qlcnic_82xx_set_nic_info() 928 nic_info->capabilities = cpu_to_le32(nic->capabilities); in qlcnic_82xx_set_nic_info() 929 nic_info->max_mac_filters = nic->max_mac_filters; in qlcnic_82xx_set_nic_info() 930 nic_info->max_tx_ques = cpu_to_le16(nic->max_tx_ques); in qlcnic_82xx_set_nic_info() 931 nic_info->max_rx_ques = cpu_to_le16(nic->max_rx_ques); in qlcnic_82xx_set_nic_info() 932 nic_info->min_tx_bw = cpu_to_le16(nic->min_tx_bw); in qlcnic_82xx_set_nic_info() [all …]
|
| /linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
| H A D | hclge_tm.c | 273 hdev->vport[0].nic.kinfo.tc_map_mode = HNAE3_TC_MAP_MODE_PRIO; in hclge_dscp_to_prio_map_init() 274 hdev->vport[0].nic.kinfo.dscp_app_cnt = 0; in hclge_dscp_to_prio_map_init() 276 hdev->vport[0].nic.kinfo.dscp_prio[i] = HNAE3_PRIO_ID_INVALID; in hclge_dscp_to_prio_map_init() 292 pri_id = hdev->vport[0].nic.kinfo.dscp_prio[i]; in hclge_dscp_to_tc_map() 301 pri_id = hdev->vport[0].nic.kinfo.dscp_prio[j]; in hclge_dscp_to_tc_map() 589 struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo; in hclge_tm_qs_shaper_cfg() 637 struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo; in hclge_vport_get_max_rss_size() 658 struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo; in hclge_vport_get_tqp_num() 677 struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo; in hclge_tm_update_kinfo_rss_size() 717 struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo; in hclge_tm_vport_tc_info_update() [all …]
|
| H A D | hclge_mbx.c | 196 if (req->msg.param[i].tqp_index >= vport->nic.kinfo.num_tqps) { in hclge_get_ring_chain_from_mbx() 199 vport->nic.kinfo.num_tqps - 1U); in hclge_get_ring_chain_from_mbx() 207 hclge_get_queue_id(vport->nic.kinfo.tqp in hclge_get_ring_chain_from_mbx() 223 hclge_get_queue_id(vport->nic.kinfo.tqp in hclge_get_ring_chain_from_mbx() 337 struct hnae3_handle *handle = &vport->nic; in hclge_set_vf_promisc_mode() 442 struct hnae3_handle *handle = &vport->nic; in hclge_set_vf_vlan_cfg() 493 struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo; in hclge_get_basic_info() 522 queue_info->rss_size = cpu_to_le16(vport->nic.kinfo.rss_size); in hclge_get_vf_queue_info() 627 struct hnae3_handle *handle = &vport->nic; in hclge_mbx_reset_vf_queue() 728 struct hnae3_handle *handle = &vport->nic; in hclge_get_queue_id_in_pf() [all …]
|
| H A D | hclge_devlink.c | 77 struct hnae3_handle *h = &hdev->vport->nic; in hclge_devlink_reload_down() 112 struct hnae3_handle *h = &hdev->vport->nic; in hclge_devlink_reload_up()
|
| H A D | hclge_main.c | 547 handle = &hdev->vport[0].nic; in hclge_update_stats_for_all() 1635 struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo; in hclge_assign_tqp() 1642 hdev->htqp[i].q.handle = &vport->nic; in hclge_assign_tqp() 1666 struct hnae3_handle *nic = &vport->nic; in hclge_knic_setup() local 1667 struct hnae3_knic_private_info *kinfo = &nic->kinfo; in hclge_knic_setup() 1692 struct hnae3_handle *nic = &vport->nic; in hclge_map_tqp_to_vport() local 1696 kinfo = &nic->kinfo; in hclge_map_tqp_to_vport() 1734 struct hnae3_handle *nic = &vport->nic; in hclge_vport_setup() local 1738 nic->pdev = hdev->pdev; in hclge_vport_setup() 1739 nic->ae_algo = &ae_algo; in hclge_vport_setup() [all …]
|
| /linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
| H A D | hclgevf_devlink.c | 40 struct hnae3_handle *h = &hdev->nic; in hclgevf_devlink_reload_down() 75 struct hnae3_handle *h = &hdev->nic; in hclgevf_devlink_reload_up()
|
| /linux/drivers/net/ethernet/netronome/nfp/ |
| H A D | Makefile | 45 nic/main.o 87 nfp-$(CONFIG_DCB) += nic/dcb.o
|
| /linux/drivers/net/ethernet/marvell/octeontx2/ |
| H A D | Makefile | 8 obj-$(CONFIG_OCTEONTX2_PF) += nic/
|
| /linux/drivers/net/ethernet/sfc/falcon/ |
| H A D | Makefile | 2 sfc-falcon-y += efx.o nic.o farch.o falcon.o tx.o rx.o selftest.o \
|
| /linux/Documentation/networking/device_drivers/ethernet/wangxun/ |
| H A D | txgbe.rst | 19 If you got any problem, contact Wangxun support team via nic-support@net-swift.com
|
| /linux/drivers/net/ethernet/sfc/siena/ |
| H A D | Makefile | 3 efx.o efx_common.o efx_channels.o nic.o \
|