| /Linux-v5.15/drivers/net/ethernet/cavium/thunder/ |
| D | nicvf_main.c | 24 #include "nic.h" 61 MODULE_DESCRIPTION("Cavium Thunder NIC Virtual Function Driver"); 75 static inline u8 nicvf_netdev_qidx(struct nicvf *nic, u8 qidx) in nicvf_netdev_qidx() argument 77 if (nic->sqs_mode) in nicvf_netdev_qidx() 78 return qidx + ((nic->sqs_id + 1) * MAX_CMP_QUEUES_PER_QS); in nicvf_netdev_qidx() 93 void nicvf_reg_write(struct nicvf *nic, u64 offset, u64 val) in nicvf_reg_write() argument 95 writeq_relaxed(val, nic->reg_base + offset); in nicvf_reg_write() 98 u64 nicvf_reg_read(struct nicvf *nic, u64 offset) in nicvf_reg_read() argument 100 return readq_relaxed(nic->reg_base + offset); in nicvf_reg_read() 103 void nicvf_queue_reg_write(struct nicvf *nic, u64 offset, in nicvf_queue_reg_write() argument [all …]
|
| D | nic_main.c | 14 #include "nic.h" 73 MODULE_DESCRIPTION("Cavium Thunder NIC Physical Function Driver"); 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() [all …]
|
| D | nicvf_ethtool.c | 13 #include "nic.h" 122 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_link_ksettings() local 128 if (!nic->link_up) { in nicvf_get_link_ksettings() 134 switch (nic->speed) { in nicvf_get_link_ksettings() 154 if (nic->mac_type == BGX_MODE_RXAUI) { in nicvf_get_link_ksettings() 171 cmd->base.duplex = nic->duplex; in nicvf_get_link_ksettings() 172 cmd->base.speed = nic->speed; in nicvf_get_link_ksettings() 184 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_link() local 186 return nic->link_up; in nicvf_get_link() 192 struct nicvf *nic = netdev_priv(netdev); in nicvf_get_drvinfo() local [all …]
|
| D | nicvf_queues.c | 15 #include "nic.h" 21 static void nicvf_get_page(struct nicvf *nic) in nicvf_get_page() argument 23 if (!nic->rb_pageref || !nic->rb_page) in nicvf_get_page() 26 page_ref_add(nic->rb_page, nic->rb_pageref); in nicvf_get_page() 27 nic->rb_pageref = 0; in nicvf_get_page() 31 static int nicvf_poll_reg(struct nicvf *nic, int qidx, in nicvf_poll_reg() argument 42 reg_val = nicvf_queue_reg_read(nic, reg, qidx); in nicvf_poll_reg() 48 netdev_err(nic->netdev, "Poll on reg 0x%llx failed\n", reg); in nicvf_poll_reg() 53 static int nicvf_alloc_q_desc_mem(struct nicvf *nic, struct q_desc_mem *dmem, in nicvf_alloc_q_desc_mem() argument 59 dmem->unalign_base = dma_alloc_coherent(&nic->pdev->dev, dmem->size, in nicvf_alloc_q_desc_mem() [all …]
|
| 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 …]
|
| /Linux-v5.15/drivers/net/ethernet/intel/ |
| D | e100.c | 537 struct nic { struct 542 u16 (*mdio_ctrl)(struct nic *nic, u32 addr, u32 dir, u32 reg, u16 data); argument 606 static inline void e100_write_flush(struct nic *nic) in e100_write_flush() argument 610 (void)ioread8(&nic->csr->scb.status); in e100_write_flush() 613 static void e100_enable_irq(struct nic *nic) in e100_enable_irq() argument 617 spin_lock_irqsave(&nic->cmd_lock, flags); in e100_enable_irq() 618 iowrite8(irq_mask_none, &nic->csr->scb.cmd_hi); in e100_enable_irq() 619 e100_write_flush(nic); in e100_enable_irq() 620 spin_unlock_irqrestore(&nic->cmd_lock, flags); in e100_enable_irq() 623 static void e100_disable_irq(struct nic *nic) in e100_disable_irq() argument [all …]
|
| /Linux-v5.15/drivers/net/ethernet/marvell/octeontx2/nic/ |
| D | otx2_tc.c | 57 int otx2_tc_alloc_ent_bitmap(struct otx2_nic *nic) in otx2_tc_alloc_ent_bitmap() argument 59 struct otx2_tc_info *tc = &nic->tc_info; in otx2_tc_alloc_ent_bitmap() 61 if (!nic->flow_cfg->max_flows || is_otx2_vf(nic->pcifunc)) in otx2_tc_alloc_ent_bitmap() 68 kcalloc(BITS_TO_LONGS(nic->flow_cfg->max_flows), in otx2_tc_alloc_ent_bitmap() 71 netdev_err(nic->netdev, in otx2_tc_alloc_ent_bitmap() 135 static int otx2_set_matchall_egress_rate(struct otx2_nic *nic, u32 burst, u32 maxrate) in otx2_set_matchall_egress_rate() argument 137 struct otx2_hw *hw = &nic->hw; in otx2_set_matchall_egress_rate() 150 mutex_lock(&nic->mbox.lock); in otx2_set_matchall_egress_rate() 151 req = otx2_mbox_alloc_msg_nix_txschq_cfg(&nic->mbox); in otx2_set_matchall_egress_rate() 153 mutex_unlock(&nic->mbox.lock); in otx2_set_matchall_egress_rate() [all …]
|
| D | otx2_ptp.c | 17 if (!ptp->nic) in otx2_ptp_adjfine() 20 req = otx2_mbox_alloc_msg_ptp_op(&ptp->nic->mbox); in otx2_ptp_adjfine() 27 return otx2_sync_mbox_msg(&ptp->nic->mbox); in otx2_ptp_adjfine() 37 if (!ptp->nic) in ptp_cc_read() 40 req = otx2_mbox_alloc_msg_ptp_op(&ptp->nic->mbox); in ptp_cc_read() 46 err = otx2_sync_mbox_msg(&ptp->nic->mbox); in ptp_cc_read() 50 rsp = (struct ptp_rsp *)otx2_mbox_get_rsp(&ptp->nic->mbox.mbox, 0, in ptp_cc_read() 62 struct otx2_nic *pfvf = ptp->nic; in otx2_ptp_adjtime() 76 struct otx2_nic *pfvf = ptp->nic; in otx2_ptp_gettime() 93 struct otx2_nic *pfvf = ptp->nic; in otx2_ptp_settime() [all …]
|
| /Linux-v5.15/drivers/net/ethernet/aquantia/atlantic/ |
| 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 = netdev_priv(ctx->netdev); in aq_mdo_dev_open() local 298 if (netif_carrier_ok(nic->ndev)) in aq_mdo_dev_open() 299 ret = aq_apply_secy_cfg(nic, ctx->secy); in aq_mdo_dev_open() [all …]
|
| 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);
|
| D | aq_pci_func.c | 379 struct aq_nic_s *nic = pci_get_drvdata(to_pci_dev(dev)); in aq_suspend_common() local 383 nic->power_state = AQ_HW_POWER_STATE_D3; in aq_suspend_common() 384 netif_device_detach(nic->ndev); in aq_suspend_common() 385 netif_tx_stop_all_queues(nic->ndev); in aq_suspend_common() 387 if (netif_running(nic->ndev)) in aq_suspend_common() 388 aq_nic_stop(nic); in aq_suspend_common() 391 aq_nic_deinit(nic, !nic->aq_hw->aq_nic_cfg->wol); in aq_suspend_common() 392 aq_nic_set_power(nic); in aq_suspend_common() 403 struct aq_nic_s *nic; in atl_resume_common() local 406 nic = pci_get_drvdata(pdev); in atl_resume_common() [all …]
|
| /Linux-v5.15/drivers/staging/gdm724x/ |
| D | gdm_lte.c | 71 struct nic *nic = arg; in tx_complete() local 73 if (netif_queue_stopped(nic->netdev)) in tx_complete() 74 netif_wake_queue(nic->netdev); in tx_complete() 77 static int gdm_lte_rx(struct sk_buff *skb, struct nic *nic, int nic_type) in gdm_lte_rx() argument 83 nic->stats.rx_dropped++; in gdm_lte_rx() 85 nic->stats.rx_packets++; in gdm_lte_rx() 86 nic->stats.rx_bytes += skb->len + ETH_HLEN; in gdm_lte_rx() 94 struct nic *nic = netdev_priv(skb_in->dev); in gdm_lte_emulate_arp() local 150 /* Fill the source mac with nic's source mac */ in gdm_lte_emulate_arp() 151 memcpy(mac_header_data + ETH_ALEN, nic->src_mac_addr, ETH_ALEN); in gdm_lte_emulate_arp() [all …]
|
| /Linux-v5.15/Documentation/devicetree/bindings/net/ |
| D | hisilicon-hns-nic.txt | 1 Hisilicon Network Subsystem NIC controller 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. 16 In NIC mode of DSAF, all 6 PHYs are taken as ethernet ports to the CPU. The 27 LAN Switch while the CPU side assume itself have one single NIC connect to 43 In NIC mode of DSAF, all 6 PHYs of service DSAF are taken as ethernet ports 55 single NIC connected to this switch. In this case, the port-idx-in-ae 72 compatible = "hisilicon,hns-nic-v1";
|
| /Linux-v5.15/drivers/firmware/ |
| D | iscsi_ibft.c | 43 * Created 'device' sysfs link to the NIC and style cleanup. (v0.4.1) 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 val = cpu_to_be32(~((1 << (32-nic->subnet_mask_prefix))-1)); in ibft_attr_show_nic() 317 str += sprintf(str, "%d\n", nic->subnet_mask_prefix); in ibft_attr_show_nic() 320 str += sprintf(str, "%d\n", nic->origin); in ibft_attr_show_nic() [all …]
|
| /Linux-v5.15/drivers/net/ethernet/netronome/ |
| D | Kconfig | 20 tristate "Netronome(R) NFP4000/NFP6000 NIC driver" 29 cards working as a advanced Ethernet NIC. It works with both 45 bool "NFP4000/NFP6000 Advanced buffer management NIC support" 50 Enable driver support for Advanced buffer management NIC on NFP. 51 ABM NIC allows advanced configuration of queuing and scheduling 58 bool "Debug support for Netronome(R) NFP4000/NFP6000 NIC drivers" 62 Netronome(R) NFP4000/NFP6000 NIC drivers.
|
| /Linux-v5.15/drivers/net/ethernet/cavium/ |
| D | Kconfig | 21 This driver supports Thunder's NIC physical function. 22 The NIC provides the controller and DMA engines to 23 move network traffic to/from the memory. The NIC 26 standalone PCIe NIC chip. 33 This driver supports Thunder's NIC virtual function 43 interface from NIC physical function driver. 63 BGX, TNS, GTI, and NIC blocks.
|
| /Linux-v5.15/drivers/net/ethernet/neterion/ |
| D | s2io.c | 2 * s2io.c: A Linux PCI-X Ethernet driver for Neterion 10GbE Server NIC 557 * @nic: Device private variable. 559 * between the NIC and the driver. This includes Tx descriptors, 563 static int init_shared_mem(struct s2io_nic *nic) in init_shared_mem() argument 571 struct net_device *dev = nic->dev; in init_shared_mem() 574 struct config_param *config = &nic->config; in init_shared_mem() 575 struct mac_info *mac_control = &nic->mac_control; in init_shared_mem() 635 fifo->nic = nic; in init_shared_mem() 643 tmp_v = dma_alloc_coherent(&nic->pdev->dev, PAGE_SIZE, in init_shared_mem() 661 tmp_v = dma_alloc_coherent(&nic->pdev->dev, in init_shared_mem() [all …]
|
| /Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/ |
| D | Kconfig | 39 Ethernet support in Mellanox Technologies ConnectX-4 NIC. 65 support in ConnectX NIC. MPFs is required for when multi-PF configuration 74 Mellanox Technologies Ethernet SRIOV E-Switch support in ConnectX NIC. 96 works in both native NIC mode and Switchdev SRIOV mode. 102 If set to N, TC offloads in both NIC and switchdev modes will be disabled. 175 Build support for IPsec cryptography-offload acceleration in the NIC. 207 Build support for TLS cryptography-offload acceleration in the NIC. 217 Build support for software-managed steering in the NIC. 223 Build support for subfuction device in the NIC. A Mellanox subfunction 232 Build support for subfuction port in the NIC. A Mellanox subfunction
|
| /Linux-v5.15/tools/testing/selftests/drivers/net/netdevsim/ |
| D | udp_tunnel_nic.sh | 273 msg="new NIC device created" 307 msg="NIC device goes down" 314 msg="NIC device goes up again" 435 overflow_table0 "overflow NIC table" 436 overflow_table1 "overflow NIC table" 466 msg="destroy NIC" 492 overflow_table0 "overflow NIC table" 493 overflow_table1 "overflow NIC table" 523 msg="destroy NIC" 533 # Destroy full NIC [all …]
|
| /Linux-v5.15/drivers/net/ethernet/huawei/hinic/ |
| D | hinic_hw_dev.c | 51 * parse_capability - convert device capabilities to NIC capabilities 124 * @hwdev: the NIC HW device to get capabilities for 156 * @hwdev: the NIC HW device 194 * @hwdev: the NIC HW device 206 * @hwdev: the NIC HW device 242 * @hwdev: the NIC HW device 271 * @hwdev: the NIC HW device 349 * clear_io_resources - set the IO resources as not active in the NIC 350 * @hwdev: the NIC HW device 382 * set_resources_state - set the state of the resources in the NIC [all …]
|
| /Linux-v5.15/Documentation/devicetree/bindings/interconnect/ |
| D | fsl,imx8m-noc.yaml | 20 The buses are based on externally licensed IPs such as ARM NIC-301 and 29 - fsl,imx8mn-nic 30 - fsl,imx8mm-nic 31 - fsl,imx8mq-nic 32 - const: fsl,imx8m-nic 39 - const: fsl,imx8m-nic
|
| /Linux-v5.15/Documentation/networking/device_drivers/ethernet/microsoft/ |
| D | netvsc.rst | 73 visible in the guest OS and both NIC's have the same MAC address. 103 stage when packets arrive at a NIC card. The goal is to increase performance 108 program on the associated VF NIC as well. 110 Setting / unsetting XDP program on synthetic NIC (netvsc) propagates to 111 VF NIC automatically. Setting / unsetting XDP program on VF NIC directly 112 is not recommended, also not propagated to synthetic NIC, and may be 113 overwritten by setting of synthetic NIC.
|
| /Linux-v5.15/drivers/net/ethernet/tehuti/ |
| D | tehuti.c | 11 * There are 2 types of RX communication channels between driver and NIC. 22 * Current NIC configuration (registers + firmware) makes NIC use 2 RXF Fifos. 42 * NIC sees that there is no RXF buffers and raises 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() 137 * bdx_fifo_init - create TX/RX descriptor fifo for host-NIC communication. [all …]
|
| /Linux-v5.15/drivers/net/ethernet/marvell/octeontx2/ |
| D | Kconfig | 32 tristate "Marvell OcteonTX2 NIC Physical Function driver" 38 This driver supports Marvell's OcteonTX2 NIC physical function. 41 tristate "Marvell OcteonTX2 NIC Virtual Function driver" 44 This driver supports Marvell's OcteonTX2 NIC virtual function.
|
| /Linux-v5.15/drivers/misc/habanalabs/include/common/ |
| D | cpucp_if.h | 297 * Fetch information from the device regarding the NIC. the host's driver 341 * Enable/Disable the NIC PFC feature. The packet's arguments specify the 342 * NIC port, relevant lanes to configure and one bit indication for 346 * Fetch the current indication for local/remote faults from the NIC MAC. 351 * the NIC port, relevant lanes to configure and one bit indication for 355 * Configure the NIC MAC channels. The packet's arguments specify the 356 * NIC port and the speed. 363 * Fetch the un/correctable counters values from the NIC MAC. 366 * Fetch various NIC MAC counters from the NIC STAT. 369 * Clear the various NIC MAC counters in the NIC STAT. [all …]
|