Home
last modified time | relevance | path

Searched full:nic (Results 1 – 25 of 707) sorted by relevance

12345678910>>...29

/linux/drivers/net/ethernet/cavium/thunder/
H A Dnicvf_main.c24 #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 …]
H A Dnic_main.c14 #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 …]
H A Dnicvf_ethtool.c13 #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 …]
H A Dnicvf_queues.c16 #include "nic.h"
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()
[all …]
H A Dnicvf_queues.h320 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/drivers/net/ethernet/intel/
H A De100.c536 struct nic { struct
541 u16 (*mdio_ctrl)(struct nic *nic, u32 addr, u32 dir, u32 reg, u16 data); argument
605 static inline void e100_write_flush(struct nic *nic) in e100_write_flush() argument
609 (void)ioread8(&nic->csr->scb.status); in e100_write_flush()
612 static void e100_enable_irq(struct nic *nic) in e100_enable_irq() argument
616 spin_lock_irqsave(&nic->cmd_lock, flags); in e100_enable_irq()
617 iowrite8(irq_mask_none, &nic->csr->scb.cmd_hi); in e100_enable_irq()
618 e100_write_flush(nic); in e100_enable_irq()
619 spin_unlock_irqrestore(&nic->cmd_lock, flags); in e100_enable_irq()
622 static void e100_disable_irq(struct nic *nic) in e100_disable_irq() argument
[all …]
/linux/drivers/net/ethernet/aquantia/atlantic/
H A Daq_macsec.c24 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 Daq_macsec.h122 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 Daq_ethtool.c187 struct aq_nic_s *nic = netdev_priv(ndev); in aq_ethtool_n_stats() local
188 struct aq_nic_cfg_s *cfg = aq_nic_get_cfg(nic); in aq_ethtool_n_stats()
193 n_stats += rx_stat_cnt * aq_ptp_get_ring_cnt(nic, ATL_RING_RX) + in aq_ethtool_n_stats()
194 tx_stat_cnt * aq_ptp_get_ring_cnt(nic, ATL_RING_TX); in aq_ethtool_n_stats()
198 if (nic->macsec_cfg) { in aq_ethtool_n_stats()
201 aq_macsec_tx_sc_cnt(nic) + in aq_ethtool_n_stats()
203 aq_macsec_tx_sa_cnt(nic) + in aq_ethtool_n_stats()
205 aq_macsec_rx_sa_cnt(nic); in aq_ethtool_n_stats()
255 struct aq_nic_s *nic = netdev_priv(ndev); in aq_ethtool_get_strings() local
263 cfg = aq_nic_get_cfg(nic); in aq_ethtool_get_strings()
[all …]
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_ptp.c19 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 …]
/linux/drivers/net/ethernet/netronome/
H A DKconfig20 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
63 Enable driver support IPsec crypto offload on NFP NIC.
65 offload. NOTE that IPsec crypto offload on NFP NIC
69 bool "Debug support for Netronome(R) NFP4000/NFP6000 NIC drivers"
73 Netronome(R) NFP4000/NFP6000 NIC drivers.
/linux/drivers/firmware/
H A Discsi_ibft.c43 * 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/drivers/net/ethernet/mellanox/mlx5/core/
H A DKconfig36 Ethernet support in Mellanox Technologies ConnectX-4 NIC.
62 support in ConnectX NIC. MPFs is required for when multi-PF configuration
71 Mellanox Technologies Ethernet SRIOV E-Switch support in ConnectX NIC.
93 works in both native NIC mode and Switchdev SRIOV mode.
99 If set to N, TC offloads in both NIC and switchdev modes will be disabled.
149 Build support for MACsec cryptography-offload acceleration in the NIC.
157 Build support for IPsec cryptography-offload acceleration in the NIC.
165 Build support for TLS cryptography-offload acceleration in the NIC.
173 Build support for software-managed steering in the NIC.
180 Build support for Hardware-Managed Flow Steering (HMFS) in the NIC.
[all …]
/linux/Documentation/devicetree/bindings/net/
H A Dhisilicon-hns-nic.txt1 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/drivers/net/ethernet/cavium/
H A DKconfig21 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/drivers/platform/cznic/
H A DKconfig8 bool "Platform support for CZ.NIC's Turris hardware"
10 Say Y here to be able to choose driver support for CZ.NIC's Turris
21 microcontroller on the CZ.NIC's Turris Omnia SOHO router.
37 MCU interrupts on CZ.NIC's Turris Omnia.
56 Say Y here to add support for CZ.NIC's Turris Omnia board poweroff
66 Say Y here to add support for watchdog provided by CZ.NIC's Turris
76 provided by CZ.NIC's Turris Omnia MCU.
/linux/tools/testing/selftests/drivers/net/netdevsim/
H A Dudp_tunnel_nic.sh275 msg="new NIC device created"
309 msg="NIC device goes down"
316 msg="NIC device goes up again"
438 overflow_table0 "overflow NIC table"
439 overflow_table1 "overflow NIC table"
469 msg="destroy NIC"
496 overflow_table0 "overflow NIC table"
497 overflow_table1 "overflow NIC table"
527 msg="destroy NIC"
537 # Destroy full NIC
[all …]
/linux/Documentation/devicetree/bindings/interconnect/
H A Dfsl,imx8m-noc.yaml20 The buses are based on externally licensed IPs such as ARM NIC-301 and
29 - fsl,imx8mm-nic
30 - fsl,imx8mn-nic
31 - fsl,imx8mp-nic
32 - fsl,imx8mq-nic
33 - const: fsl,imx8m-nic
41 - const: fsl,imx8m-nic
/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_hw_dev.c45 * parse_capability - convert device capabilities to NIC capabilities
118 * @hwdev: the NIC HW device to get capabilities for
150 * @hwdev: the NIC HW device
187 * @hwdev: the NIC HW device
199 * @hwdev: the NIC HW device
235 * @hwdev: the NIC HW device
264 * @hwdev: the NIC HW device
342 * clear_io_resources - set the IO resources as not active in the NIC
343 * @hwdev: the NIC HW device
375 * set_resources_state - set the state of the resources in the NIC
[all …]
/linux/drivers/net/ethernet/tehuti/
H A Dtehuti.c11 * 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/Documentation/networking/device_drivers/ethernet/microsoft/
H A Dnetvsc.rst73 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/drivers/net/ethernet/cavium/liquidio/
H A Docteon_nic.h21 * \brief Host NIC Driver: Routine to send network data &
28 /* Maximum number of 8-byte words can be sent in a NIC control message.
34 /* Structure of control information passed by the NIC module to the OSI
66 /** Structure of data information passed by the NIC module to the OSI
70 /** Pointer to information maintained by NIC module for this packet. The
89 /** Structure passed by NIC module to OSI layer to prepare a command to send
235 /** Utility function to prepare a 64B NIC instruction based on a setup command
267 /** Send a NIC data packet to the device
278 /** Send a NIC control packet to the device
/linux/Documentation/networking/device_drivers/ethernet/mellanox/mlx5/
H A Dkconfig.rst52 | Works in both native NIC mode and Switchdev SRIOV mode.
72 | Build support for MACsec cryptography-offload acceleration in the NIC.
88 | Ethernet SRIOV E-Switch support in ConnectX NIC. E-Switch provides internal SRIOV packet steer…
109 | Ethernet Multi-Physical Function Switch (MPFS) support in ConnectX NIC.
123 | Build support for subfuction port in the NIC. A Mellanox subfunction
131 | Build support for software-managed steering in the NIC.
135 | Build support for hardware-managed steering in the NIC.
/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/
H A Dhclgevf_main.c103 return container_of(handle, struct hclgevf_dev, nic); in hclgevf_ae_get_hdev()
107 return container_of(handle, struct hclgevf_dev, nic); in hclgevf_ae_get_hdev()
185 struct hnae3_handle *nic = &hdev->nic; in hclgevf_get_port_base_vlan_filter_state() local
201 nic->port_base_vlan_state = resp_msg; in hclgevf_get_port_base_vlan_filter_state()
351 struct hnae3_handle *nic = &hdev->nic; in hclgevf_knic_setup() local
357 kinfo = &nic->kinfo; in hclgevf_knic_setup()
377 hdev->htqp[i].q.handle = &hdev->nic; in hclgevf_knic_setup()
407 struct hnae3_handle *handle = &hdev->nic; in hclgevf_update_link_status()
445 struct hnae3_handle *nic = &hdev->nic; in hclgevf_set_handle_info() local
448 nic->ae_algo = &ae_algovf; in hclgevf_set_handle_info()
[all …]
/linux/Documentation/networking/
H A Ddevmem.rst39 Packet payloads go directly from the NIC to device memory.
42 normally. The NIC must support header split to achieve this.
76 NIC Setup
102 The user must bind a dmabuf to any number of RX queues on a given NIC using
105 /* Bind dmabuf to NIC RX queue 15 */
157 Devmem data is received directly into the dmabuf bound to the NIC in 'NIC
206 This typically happens when the NIC is unable to split the packet at the

12345678910>>...29