Home
last modified time | relevance | path

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

12345678910>>...26

/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, u6 argument
111 nicvf_queue_reg_read(struct nicvf * nic,u64 offset,u64 qidx) nicvf_queue_reg_read() argument
119 nicvf_write_to_mbx(struct nicvf * nic,union nic_mbx * mbx) nicvf_write_to_mbx() argument
127 nicvf_send_msg_to_pf(struct nicvf * nic,union nic_mbx * mbx) nicvf_send_msg_to_pf() argument
167 nicvf_check_pf_ready(struct nicvf * nic) nicvf_check_pf_ready() argument
181 nicvf_send_cfg_done(struct nicvf * nic) nicvf_send_cfg_done() argument
192 nicvf_read_bgx_stats(struct nicvf * nic,struct bgx_stats_msg * bgx) nicvf_read_bgx_stats() argument
200 nicvf_handle_mbx_intr(struct nicvf * nic) nicvf_handle_mbx_intr() argument
301 nicvf_hw_set_mac_addr(struct nicvf * nic,struct net_device * netdev) nicvf_hw_set_mac_addr() argument
312 nicvf_config_cpi(struct nicvf * nic) nicvf_config_cpi() argument
324 nicvf_get_rss_size(struct nicvf * nic) nicvf_get_rss_size() argument
333 nicvf_config_rss(struct nicvf * nic) nicvf_config_rss() argument
358 nicvf_set_rss_key(struct nicvf * nic) nicvf_set_rss_key() argument
370 nicvf_rss_init(struct nicvf * nic) nicvf_rss_init() argument
401 nicvf_request_sqs(struct nicvf * nic) nicvf_request_sqs() argument
473 nicvf_send_vf_struct(struct nicvf * nic) nicvf_send_vf_struct() argument
483 nicvf_get_primary_vf_struct(struct nicvf * nic) nicvf_get_primary_vf_struct() argument
510 nicvf_init_resources(struct nicvf * nic) nicvf_init_resources() argument
528 nicvf_xdp_rx(struct nicvf * nic,struct bpf_prog * prog,struct cqe_rx_t * cqe_rx,struct snd_queue * sq,struct rcv_queue * rq,struct sk_buff ** skb) nicvf_xdp_rx() argument
620 struct nicvf *nic = netdev_priv(netdev); nicvf_snd_ptp_handler() local
662 struct nicvf *nic = netdev_priv(netdev); nicvf_snd_pkt_handler() local
755 nicvf_set_rxtstamp(struct nicvf * nic,struct sk_buff * skb) nicvf_set_rxtstamp() argument
776 struct nicvf *nic = netdev_priv(netdev); nicvf_rcv_pkt_handler() local
851 struct nicvf *nic = netdev_priv(netdev); nicvf_cq_intr_handler() local
961 struct nicvf *nic = netdev_priv(netdev); nicvf_poll() local
987 struct nicvf *nic = from_tasklet(nic, t, qs_err_task); nicvf_handle_qs_err() local
1016 nicvf_dump_intr_status(struct nicvf * nic) nicvf_dump_intr_status() argument
1024 struct nicvf *nic = (struct nicvf *)nicvf_irq; nicvf_misc_intr_handler() local
1042 struct nicvf *nic = cq_poll->nicvf; nicvf_intr_handler() local
1061 struct nicvf *nic = (struct nicvf *)nicvf_irq; nicvf_rbdr_intr_handler() local
1082 struct nicvf *nic = (struct nicvf *)nicvf_irq; nicvf_qs_err_intr_handler() local
1094 nicvf_set_irq_affinity(struct nicvf * nic) nicvf_set_irq_affinity() argument
1118 nicvf_register_interrupts(struct nicvf * nic) nicvf_register_interrupts() argument
1181 nicvf_unregister_interrupts(struct nicvf * nic) nicvf_unregister_interrupts() argument
1210 nicvf_register_misc_interrupt(struct nicvf * nic) nicvf_register_misc_interrupt() argument
1253 struct nicvf *nic = netdev_priv(netdev); nicvf_xmit() local
1310 nicvf_free_cq_poll(struct nicvf * nic) nicvf_free_cq_poll() argument
1327 struct nicvf *nic = netdev_priv(netdev); nicvf_stop() local
1416 nicvf_config_hw_rx_tstamp(struct nicvf * nic,bool enable) nicvf_config_hw_rx_tstamp() argument
1426 nicvf_update_hw_max_frs(struct nicvf * nic,int mtu) nicvf_update_hw_max_frs() argument
1439 struct nicvf *nic = container_of(work_arg, nicvf_link_status_check_task() local
1452 struct nicvf *nic = netdev_priv(netdev); nicvf_open() local
1580 struct nicvf *nic = netdev_priv(netdev); nicvf_change_mtu() local
1602 struct nicvf *nic = netdev_priv(netdev); nicvf_set_mac_address() local
1619 nicvf_update_lmac_stats(struct nicvf * nic) nicvf_update_lmac_stats() argument
1650 nicvf_update_stats(struct nicvf * nic) nicvf_update_stats() argument
1716 struct nicvf *nic = netdev_priv(netdev); nicvf_get_stats64() local
1734 struct nicvf *nic = netdev_priv(dev); nicvf_tx_timeout() local
1744 struct nicvf *nic; nicvf_reset_task() local
1756 nicvf_config_loopback(struct nicvf * nic,netdev_features_t features) nicvf_config_loopback() argument
1771 struct nicvf *nic = netdev_priv(netdev); nicvf_fix_features() local
1783 struct nicvf *nic = netdev_priv(netdev); nicvf_set_features() local
1795 nicvf_set_xdp_queues(struct nicvf * nic,bool bpf_attached) nicvf_set_xdp_queues() argument
1826 nicvf_xdp_setup(struct nicvf * nic,struct bpf_prog * prog) nicvf_xdp_setup() argument
1885 struct nicvf *nic = netdev_priv(netdev); nicvf_xdp() local
1906 struct nicvf *nic = netdev_priv(netdev); nicvf_hwtstamp_set() local
1955 struct nicvf *nic = netdev_priv(netdev); nicvf_hwtstamp_get() local
1970 __nicvf_set_rx_mode_task(u8 mode,struct xcast_addr_list * mc_addrs,struct nicvf * nic) __nicvf_set_rx_mode_task() argument
2020 struct nicvf *nic = container_of(vf_work, struct nicvf, rx_mode_work); nicvf_set_rx_mode_task() local
2038 struct nicvf *nic = netdev_priv(netdev); nicvf_set_rx_mode() local
2097 struct nicvf *nic; nicvf_probe() local
2273 struct nicvf *nic; nicvf_remove() local
[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_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.c539 struct nic {
544 u16 (*mdio_ctrl)(struct nic *nic, u32 addr, u32 dir, u32 reg, u16 data); argument
608 static inline void e100_write_flush(struct nic *nic) in e100_write_flush()
612 (void)ioread8(&nic->csr->scb.status); in e100_enable_irq() argument
615 static void e100_enable_irq(struct nic *nic) in e100_enable_irq()
619 spin_lock_irqsave(&nic->cmd_lock, flags); in e100_enable_irq()
620 iowrite8(irq_mask_none, &nic in e100_enable_irq()
536 struct nic { global() struct
541 mdio_ctrlnic global() argument
543 ____cacheline_alignednic global() argument
545 rx_to_cleannic global() argument
546 blank_rfdnic global() argument
547 ru_runningnic global() argument
549 ____cacheline_alignednic global() argument
550 cmd_locknic global() argument
551 csrnic global() argument
552 cuc_cmdnic global() argument
553 cbs_availnic global() argument
554 napinic global() argument
555 cbsnic global() argument
556 cb_to_usenic global() argument
557 cb_to_sendnic global() argument
558 cb_to_cleannic global() argument
559 tx_commandnic global() argument
562 __anonfa21695a0603nic global() argument
568 ____cacheline_alignednic global() argument
570 macnic global() argument
571 phynic global() argument
572 paramsnic global() argument
573 watchdognic global() argument
574 miinic global() argument
575 tx_timeout_tasknic global() argument
576 loopbacknic global() argument
578 memnic global() argument
579 dma_addrnic global() argument
581 cbs_poolnic global() argument
605 e100_write_flush(struct nic * nic) e100_write_flush() argument
622 e100_disable_irq(struct nic * nic) e100_disable_irq() argument
632 e100_hw_reset(struct nic * nic) e100_hw_reset() argument
647 e100_self_test(struct nic * nic) e100_self_test() argument
680 e100_eeprom_write(struct nic * nic,u16 addr_len,u16 addr,__le16 data) e100_eeprom_write() argument
718 e100_eeprom_read(struct nic * nic,u16 * addr_len,u16 addr) e100_eeprom_read() argument
759 e100_eeprom_load(struct nic * nic) e100_eeprom_load() argument
785 e100_eeprom_save(struct nic * nic,u16 start,u16 count) e100_eeprom_save() argument
812 e100_exec_cmd(struct nic * nic,u8 cmd,dma_addr_t dma_addr) e100_exec_cmd() argument
843 e100_exec_cb(struct nic * nic,struct sk_buff * skb,int (* cb_prepare)(struct nic *,struct cb *,struct sk_buff *)) e100_exec_cb() argument
844 e100_exec_cb(struct nic * nic,struct sk_buff * skb,int (* cb_prepare)(struct nic *,struct cb *,struct sk_buff *)) e100_exec_cb() argument
903 struct nic *nic = netdev_priv(netdev); mdio_read() local
909 struct nic *nic = netdev_priv(netdev); mdio_write() local
915 mdio_ctrl_hw(struct nic * nic,u32 addr,u32 dir,u32 reg,u16 data) mdio_ctrl_hw() argument
955 mdio_ctrl_phy_82552_v(struct nic * nic,u32 addr,u32 dir,u32 reg,u16 data) mdio_ctrl_phy_82552_v() argument
985 mdio_ctrl_phy_mii_emulated(struct nic * nic,u32 addr,u32 dir,u32 reg,u16 data) mdio_ctrl_phy_mii_emulated() argument
1027 e100_phy_supports_mii(struct nic * nic) e100_phy_supports_mii() argument
1035 e100_get_defaults(struct nic * nic) e100_get_defaults() argument
1068 e100_configure(struct nic * nic,struct cb * cb,struct sk_buff * skb) e100_configure() argument
1218 e100_request_firmware(struct nic * nic) e100_request_firmware() argument
1306 e100_setup_ucode(struct nic * nic,struct cb * cb,struct sk_buff * skb) e100_setup_ucode() argument
1336 e100_load_ucode_wait(struct nic * nic) e100_load_ucode_wait() argument
1376 e100_setup_iaaddr(struct nic * nic,struct cb * cb,struct sk_buff * skb) e100_setup_iaaddr() argument
1384 e100_dump(struct nic * nic,struct cb * cb,struct sk_buff * skb) e100_dump() argument
1392 e100_phy_check_without_mii(struct nic * nic) e100_phy_check_without_mii() argument
1432 e100_phy_init(struct nic * nic) e100_phy_init() argument
1525 e100_hw_init(struct nic * nic) e100_hw_init() argument
1558 e100_multi(struct nic * nic,struct cb * cb,struct sk_buff * skb) e100_multi() argument
1578 struct nic *nic = netdev_priv(netdev); e100_set_multicast_list() local
1599 e100_update_stats(struct nic * nic) e100_update_stats() argument
1661 e100_adjust_adaptive_ifs(struct nic * nic,int speed,int duplex) e100_adjust_adaptive_ifs() argument
1685 struct nic *nic = timer_container_of(nic, t, watchdog); e100_watchdog() local
1734 e100_xmit_prepare(struct nic * nic,struct cb * cb,struct sk_buff * skb) e100_xmit_prepare() argument
1771 struct nic *nic = netdev_priv(netdev); e100_xmit_frame() local
1804 e100_tx_clean(struct nic * nic) e100_tx_clean() argument
1847 e100_clean_cbs(struct nic * nic) e100_clean_cbs() argument
1871 e100_alloc_cbs(struct nic * nic) e100_alloc_cbs() argument
1900 e100_start_receiver(struct nic * nic,struct rx * rx) e100_start_receiver() argument
1916 e100_rx_alloc_skb(struct nic * nic,struct rx * rx) e100_rx_alloc_skb() argument
1948 e100_rx_indicate(struct nic * nic,struct rx * rx,unsigned int * work_done,unsigned int work_to_do) e100_rx_indicate() argument
2047 e100_rx_clean(struct nic * nic,unsigned int * work_done,unsigned int work_to_do) e100_rx_clean() argument
2127 e100_rx_clean_list(struct nic * nic) e100_rx_clean_list() argument
2150 e100_rx_alloc_list(struct nic * nic) e100_rx_alloc_list() argument
2193 struct nic *nic = netdev_priv(netdev); e100_intr() local
2220 struct nic *nic = container_of(napi, struct nic, napi); e100_poll() local
2240 struct nic *nic = netdev_priv(netdev); e100_netpoll() local
2251 struct nic *nic = netdev_priv(netdev); e100_set_mac_address() local
2263 e100_asf(struct nic * nic) e100_asf() argument
2272 e100_up(struct nic * nic) e100_up() argument
2304 e100_down(struct nic * nic) e100_down() argument
2319 struct nic *nic = netdev_priv(netdev); e100_tx_timeout() local
2328 struct nic *nic = container_of(work, struct nic, tx_timeout_task); e100_tx_timeout_task() local
2342 e100_loopback_test(struct nic * nic,enum loopback loopback_mode) e100_loopback_test() argument
2406 struct nic *nic = netdev_priv(netdev); e100_get_link_ksettings() local
2416 struct nic *nic = netdev_priv(netdev); e100_set_link_ksettings() local
2429 struct nic *nic = netdev_priv(netdev); e100_get_drvinfo() local
2438 struct nic *nic = netdev_priv(netdev); e100_get_regs_len() local
2449 struct nic *nic = netdev_priv(netdev); e100_get_regs() local
2473 struct nic *nic = netdev_priv(netdev); e100_get_wol() local
2480 struct nic *nic = netdev_priv(netdev); e100_set_wol() local
2500 struct nic *nic = netdev_priv(netdev); e100_get_msglevel() local
2506 struct nic *nic = netdev_priv(netdev); e100_set_msglevel() local
2512 struct nic *nic = netdev_priv(netdev); e100_nway_reset() local
2518 struct nic *nic = netdev_priv(netdev); e100_get_link() local
2524 struct nic *nic = netdev_priv(netdev); e100_get_eeprom_len() local
2532 struct nic *nic = netdev_priv(netdev); e100_get_eeprom() local
2543 struct nic *nic = netdev_priv(netdev); e100_set_eeprom() local
2559 struct nic *nic = netdev_priv(netdev); e100_get_ringparam() local
2574 struct nic *nic = netdev_priv(netdev); e100_set_ringparam() local
2608 struct nic *nic = netdev_priv(netdev); e100_diag_test() local
2640 struct nic *nic = netdev_priv(netdev); e100_set_phys_id() local
2703 struct nic *nic = netdev_priv(netdev); e100_get_ethtool_stats() local
2760 struct nic *nic = netdev_priv(netdev); e100_do_ioctl() local
2765 e100_alloc(struct nic * nic) e100_alloc() argument
2772 e100_free(struct nic * nic) e100_free() argument
2783 struct nic *nic = netdev_priv(netdev); e100_open() local
2801 struct nic *nic = netdev_priv(netdev); e100_set_features() local
2830 struct nic *nic; e100_probe() local
2986 struct nic *nic = netdev_priv(netdev); e100_remove() local
3003 struct nic *nic = netdev_priv(netdev); __e100_shutdown() local
3051 struct nic *nic = netdev_priv(netdev); e100_resume() local
3096 struct nic *nic = netdev_priv(netdev); e100_io_error_detected() local
3120 struct nic *nic = netdev_priv(netdev); e100_io_slot_reset() local
3147 struct nic *nic = netdev_priv(netdev); e100_io_resume() local
[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_pci_func.c383 struct aq_nic_s *nic = pci_get_drvdata(to_pci_dev(dev)); in aq_suspend_common()
387 nic->power_state = AQ_HW_POWER_STATE_D3; in aq_suspend_common()
388 netif_device_detach(nic->ndev); in aq_suspend_common()
389 netif_tx_stop_all_queues(nic->ndev); in aq_suspend_common()
391 if (netif_running(nic->ndev)) in aq_suspend_common()
392 aq_nic_stop(nic); in aq_suspend_common()
394 aq_nic_deinit(nic, !nic->aq_hw->aq_nic_cfg->wol); in aq_suspend_common()
395 aq_nic_set_power(nic); in aq_suspend_common()
405 struct aq_nic_s *nic; in atl_resume_common()
382 struct aq_nic_s *nic = pci_get_drvdata(to_pci_dev(dev)); aq_suspend_common() local
404 struct aq_nic_s *nic; atl_resume_common() local
[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 …]
H A Dcn20k.c270 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/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 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()
[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"
11 Say Y here to be able to choose driver support for CZ.NIC's Turris
22 microcontroller on the CZ.NIC's Turris Omnia SOHO router.
38 MCU interrupts on CZ.NIC's Turris Omnia.
57 Say Y here to add support for CZ.NIC's Turris Omnia board poweroff
67 Say Y here to add support for watchdog provided by CZ.NIC's Turris
77 provided by CZ.NIC's Turris Omnia MCU.
/linux/tools/testing/selftests/drivers/net/netdevsim/
H A Dudp_tunnel_nic.sh274 msg="new NIC device created"
308 msg="NIC device goes down"
315 msg="NIC device goes up again"
424 overflow_table0 "overflow NIC table"
425 overflow_table1 "overflow NIC table"
455 msg="destroy NIC"
481 overflow_table0 "overflow NIC table"
482 overflow_table1 "overflow NIC table"
512 msg="destroy NIC"
522 # 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/drivers/net/ethernet/3com/
H A Dtyphoon.h57 * txLoCleared: entry the NIC has cleared to in the Lo transmit ring
58 * txHiCleared: entry the NIC has cleared to in the Hi transmit ring
59 * rxLoReady: entry the NIC has filled to in the Lo receive ring
60 * rxBuffCleared: entry the NIC has cleared in the free buffer ring
61 * cmdCleared: entry the NIC has cleared in the command ring
62 * respReady: entry the NIC has filled to in the response ring
63 * rxHiReady: entry the NIC has filled to in the Hi receive ring
66 /* The first four are written by the host, and read by the NIC */
72 /* The remaining are written by the NIC, and read by the host */
232 /* The Typhoon receive descriptor (Updated by NIC)
[all …]
/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/
H A Dhclgevf_main.c107 return container_of(handle, struct hclgevf_dev, nic); in hclgevf_ae_get_hdev()
111 return container_of(handle, struct hclgevf_dev, nic); in hclgevf_update_stats()
189 struct hnae3_handle *nic = &hdev->nic; in hclgevf_get_port_base_vlan_filter_state()
205 nic->port_base_vlan_state = resp_msg;
355 struct hnae3_handle *nic = &hdev->nic; in hclgevf_knic_setup()
361 kinfo = &nic->kinfo; in hclgevf_knic_setup()
381 hdev->htqp[i].q.handle = &hdev->nic; in hclgevf_knic_setup()
411 struct hnae3_handle *handle = &hdev->nic; in hclgevf_update_link_status()
185 struct hnae3_handle *nic = &hdev->nic; hclgevf_get_port_base_vlan_filter_state() local
351 struct hnae3_handle *nic = &hdev->nic; hclgevf_knic_setup() local
445 struct hnae3_handle *nic = &hdev->nic; hclgevf_set_handle_info() local
2143 struct hnae3_handle *nic = &hdev->nic; hclgevf_init_roce_base_info() local
2222 struct hnae3_handle *nic = &hdev->nic; hclgevf_init_vlan_config() local
3305 struct hnae3_handle *nic = &hdev->nic; hclgevf_update_port_base_vlan_info() local
[all...]
/linux/drivers/net/ethernet/myricom/myri10ge/
H A Dmyri10ge_mcp.h172 * the nic. Note that increasing the mtu "live" should
229 * 0 indicates that the NIC consumes as many buffers as they are required
231 * A power of 2 number indicates that the NIC always uses the specified
234 * the NIC to be able to receive maximum-sized packets.
263 /* tell nic that the secret key's been updated */
266 * 0: disable rss. nic does not distribute receive packets.
267 * 1: enable rss. nic distributes receive packets among queues.
286 * For IPv4 TSO, the maximum size of the headers is fixed, and the NIC
292 * 0: Linux/FreeBSD style (NIC default)
324 /* Return data = NIC memory offset of mcp_vpump_public_global */
/linux/drivers/net/ethernet/marvell/octeon_ep/
H A DKconfig3 # Marvell's Octeon PCI Endpoint NIC Driver Configuration
7 tristate "Marvell Octeon PCI Endpoint NIC Driver"
13 Octeon PCI Endpoint NIC.
/linux/drivers/net/ethernet/marvell/octeon_ep_vf/
H A DKconfig3 # Marvell's Octeon PCI Endpoint NIC VF Driver Configuration
7 tristate "Marvell Octeon PCI Endpoint NIC VF Driver"
12 Octeon PCI Endpoint NIC VF.

12345678910>>...26