/linux-master/drivers/net/ethernet/cavium/thunder/ |
H A D | nic_main.c | 14 #include "nic.h" 88 static void nic_reg_write(struct nicpf *nic, u64 offset, u64 val) argument 90 writeq_relaxed(val, nic->reg_base + offset); 93 static u64 nic_reg_read(struct nicpf *nic, u64 offset) argument 95 return readq_relaxed(nic->reg_base + offset); 99 static void nic_enable_mbx_intr(struct nicpf *nic) argument 101 int vf_cnt = pci_sriov_get_totalvfs(nic->pdev); 106 nic_reg_write(nic, NIC_PF_MAILBOX_INT, INTR_MASK(vf_cnt)); 109 nic_reg_write(nic, NIC_PF_MAILBOX_ENA_W1S, INTR_MASK(vf_cnt)); 112 nic_reg_write(nic, NIC_PF_MAILBOX_IN 119 nic_clear_mbx_intr(struct nicpf *nic, int vf, int mbx_reg) argument 133 nic_send_msg_to_vf(struct nicpf *nic, int vf, union nic_mbx *mbx) argument 158 nic_mbx_send_ready(struct nicpf *nic, int vf) argument 188 nic_mbx_send_ack(struct nicpf *nic, int vf) argument 200 nic_mbx_send_nack(struct nicpf *nic, int vf) argument 211 nic_rcv_queue_sw_sync(struct nicpf *nic) argument 231 nic_get_bgx_stats(struct nicpf *nic, struct bgx_stats_msg *bgx) argument 253 nic_update_hw_frs(struct nicpf *nic, int new_frs, int vf) argument 284 nic_set_tx_pkt_pad(struct nicpf *nic, int size) argument 317 nic_set_lmac_vf_mapping(struct nicpf *nic) argument 357 nic_get_hw_info(struct nicpf *nic) argument 411 nic_init_hw(struct nicpf *nic) argument 472 nic_config_cpi(struct nicpf *nic, struct cpi_cfg_msg *cfg) argument 550 nic_send_rss_size(struct nicpf *nic, int vf) argument 565 nic_config_rss(struct nicpf *nic, struct rss_cfg_msg *cfg) argument 611 nic_tx_channel_cfg(struct nicpf *nic, u8 vnic, struct sq_cfg_msg *sq) argument 696 nic_send_pnicvf(struct nicpf *nic, int sqs) argument 706 nic_send_snicvf(struct nicpf *nic, struct nicvf_ptr *nicvf) argument 720 nic_nxt_avail_sqs(struct nicpf *nic) argument 735 nic_alloc_sqs(struct nicpf *nic, struct sqs_alloc *sqs) argument 760 nic_config_loopback(struct nicpf *nic, struct set_loopback *lbk) argument 785 nic_reset_stat_counters(struct nicpf *nic, int vf, struct reset_stat_cfg *cfg) argument 827 nic_enable_tunnel_parsing(struct nicpf *nic, int vf) argument 846 nic_enable_vf(struct nicpf *nic, int vf, bool enable) argument 861 nic_pause_frame(struct nicpf *nic, int vf, struct pfc *cfg) argument 886 nic_config_timestamp(struct nicpf *nic, int vf, struct set_ptp *ptp) argument 927 nic_link_status_get(struct nicpf *nic, u8 vf) argument 953 nic_handle_mbx_intr(struct nicpf *nic, int vf) argument 1148 struct nicpf *nic = (struct nicpf *)nic_irq; local 1173 nic_free_all_interrupts(struct nicpf *nic) argument 1184 nic_register_interrupts(struct nicpf *nic) argument 1225 nic_unregister_interrupts(struct nicpf *nic) argument 1232 nic_num_sqs_en(struct nicpf *nic, int vf_en) argument 1252 nic_sriov_init(struct pci_dev *pdev, struct nicpf *nic) argument 1294 struct nicpf *nic; local 1381 struct nicpf *nic = pci_get_drvdata(pdev); local [all...] |
H A D | nicvf_main.c | 24 #include "nic.h" 75 static inline u8 nicvf_netdev_qidx(struct nicvf *nic, u8 qidx) argument 77 if (nic->sqs_mode) 78 return qidx + ((nic->sqs_id + 1) * MAX_CMP_QUEUES_PER_QS); 93 void nicvf_reg_write(struct nicvf *nic, u64 offset, u64 val) argument 95 writeq_relaxed(val, nic->reg_base + offset); 98 u64 nicvf_reg_read(struct nicvf *nic, u64 offset) argument 100 return readq_relaxed(nic->reg_base + offset); 103 void nicvf_queue_reg_write(struct nicvf *nic, u64 offset, argument 106 void __iomem *addr = nic 111 nicvf_queue_reg_read(struct nicvf *nic, u64 offset, u64 qidx) argument 119 nicvf_write_to_mbx(struct nicvf *nic, union nic_mbx *mbx) argument 127 nicvf_send_msg_to_pf(struct nicvf *nic, union nic_mbx *mbx) argument 167 nicvf_check_pf_ready(struct nicvf *nic) argument 181 nicvf_send_cfg_done(struct nicvf *nic) argument 192 nicvf_read_bgx_stats(struct nicvf *nic, struct bgx_stats_msg *bgx) argument 200 nicvf_handle_mbx_intr(struct nicvf *nic) argument 301 nicvf_hw_set_mac_addr(struct nicvf *nic, struct net_device *netdev) argument 312 nicvf_config_cpi(struct nicvf *nic) argument 324 nicvf_get_rss_size(struct nicvf *nic) argument 333 nicvf_config_rss(struct nicvf *nic) argument 358 nicvf_set_rss_key(struct nicvf *nic) argument 370 nicvf_rss_init(struct nicvf *nic) argument 401 nicvf_request_sqs(struct nicvf *nic) argument 473 nicvf_send_vf_struct(struct nicvf *nic) argument 483 nicvf_get_primary_vf_struct(struct nicvf *nic) argument 510 nicvf_init_resources(struct nicvf *nic) 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) argument 620 struct nicvf *nic = netdev_priv(netdev); local 662 struct nicvf *nic = netdev_priv(netdev); local 755 nicvf_set_rxtstamp(struct nicvf *nic, struct sk_buff *skb) argument 776 struct nicvf *nic = netdev_priv(netdev); local 851 struct nicvf *nic = netdev_priv(netdev); local 961 struct nicvf *nic = netdev_priv(netdev); local 987 struct nicvf *nic = from_tasklet(nic, t, qs_err_task); local 1016 nicvf_dump_intr_status(struct nicvf *nic) argument 1024 struct nicvf *nic = (struct nicvf *)nicvf_irq; local 1042 struct nicvf *nic = cq_poll->nicvf; local 1061 struct nicvf *nic = (struct nicvf *)nicvf_irq; local 1082 struct nicvf *nic = (struct nicvf *)nicvf_irq; local 1094 nicvf_set_irq_affinity(struct nicvf *nic) argument 1118 nicvf_register_interrupts(struct nicvf *nic) argument 1181 nicvf_unregister_interrupts(struct nicvf *nic) argument 1197 free_irq(pci_irq_vector(pdev, irq), nic); local 1210 nicvf_register_misc_interrupt(struct nicvf *nic) argument 1253 struct nicvf *nic = netdev_priv(netdev); local 1310 nicvf_free_cq_poll(struct nicvf *nic) argument 1327 struct nicvf *nic = netdev_priv(netdev); local 1416 nicvf_config_hw_rx_tstamp(struct nicvf *nic, bool enable) argument 1426 nicvf_update_hw_max_frs(struct nicvf *nic, int mtu) argument 1439 struct nicvf *nic = container_of(work_arg, local 1452 struct nicvf *nic = netdev_priv(netdev); local 1580 struct nicvf *nic = netdev_priv(netdev); local 1608 struct nicvf *nic = netdev_priv(netdev); local 1625 nicvf_update_lmac_stats(struct nicvf *nic) argument 1656 nicvf_update_stats(struct nicvf *nic) argument 1722 struct nicvf *nic = netdev_priv(netdev); local 1740 struct nicvf *nic = netdev_priv(dev); local 1750 struct nicvf *nic; local 1762 nicvf_config_loopback(struct nicvf *nic, netdev_features_t features) argument 1777 struct nicvf *nic = netdev_priv(netdev); local 1789 struct nicvf *nic = netdev_priv(netdev); local 1801 nicvf_set_xdp_queues(struct nicvf *nic, bool bpf_attached) argument 1832 nicvf_xdp_setup(struct nicvf *nic, struct bpf_prog *prog) argument 1891 struct nicvf *nic = netdev_priv(netdev); local 1911 struct nicvf *nic = netdev_priv(netdev); local 1971 __nicvf_set_rx_mode_task(u8 mode, struct xcast_addr_list *mc_addrs, struct nicvf *nic) argument 2022 struct nicvf *nic = container_of(vf_work, struct nicvf, rx_mode_work); local 2040 struct nicvf *nic = netdev_priv(netdev); local 2098 struct nicvf *nic; local 2274 struct nicvf *nic; local [all...] |
H A D | nicvf_queues.c | 16 #include "nic.h" 22 static void nicvf_get_page(struct nicvf *nic) argument 24 if (!nic->rb_pageref || !nic->rb_page) 27 page_ref_add(nic->rb_page, nic->rb_pageref); 28 nic->rb_pageref = 0; 32 static int nicvf_poll_reg(struct nicvf *nic, int qidx, argument 43 reg_val = nicvf_queue_reg_read(nic, reg, qidx); 49 netdev_err(nic 54 nicvf_alloc_q_desc_mem(struct nicvf *nic, struct q_desc_mem *dmem, int q_len, int desc_size, int align_bytes) argument 72 nicvf_free_q_desc_mem(struct nicvf *nic, struct q_desc_mem *dmem) argument 93 nicvf_alloc_page(struct nicvf *nic, struct rbdr *rbdr, gfp_t gfp) argument 176 nicvf_alloc_rcv_buffer(struct nicvf *nic, struct rbdr *rbdr, gfp_t gfp, u32 buf_len, u64 *rbuf) argument 233 nicvf_rb_ptr_to_skb(struct nicvf *nic, u64 rb_ptr, int len) argument 253 nicvf_init_rbdr(struct nicvf *nic, struct rbdr *rbdr, int ring_len, int buf_size) argument 319 nicvf_free_rbdr(struct nicvf *nic, struct rbdr *rbdr) argument 380 nicvf_refill_rbdr(struct nicvf *nic, gfp_t gfp) argument 454 struct nicvf *nic = container_of(work, struct nicvf, rbdr_work.work); local 466 struct nicvf *nic = from_tasklet(nic, t, rbdr_task); local 476 nicvf_init_cmp_queue(struct nicvf *nic, struct cmp_queue *cq, int q_len) argument 493 nicvf_free_cmp_queue(struct nicvf *nic, struct cmp_queue *cq) argument 504 nicvf_init_snd_queue(struct nicvf *nic, struct snd_queue *sq, int q_len, int qidx) argument 554 nicvf_unmap_sndq_buffers(struct nicvf *nic, struct snd_queue *sq, int hdr_sqe, u8 subdesc_cnt) argument 572 nicvf_free_snd_queue(struct nicvf *nic, struct snd_queue *sq) argument 627 nicvf_reclaim_snd_queue(struct nicvf *nic, struct queue_set *qs, int qidx) argument 639 nicvf_reclaim_rcv_queue(struct nicvf *nic, struct queue_set *qs, int qidx) argument 649 nicvf_reclaim_cmp_queue(struct nicvf *nic, struct queue_set *qs, int qidx) argument 660 nicvf_reclaim_rbdr(struct nicvf *nic, struct rbdr *rbdr, int qidx) argument 710 nicvf_config_vlan_stripping(struct nicvf *nic, netdev_features_t features) argument 731 nicvf_reset_rcv_queue_stats(struct nicvf *nic) argument 745 nicvf_rcv_queue_config(struct nicvf *nic, struct queue_set *qs, int qidx, bool enable) argument 818 nicvf_cmp_queue_config(struct nicvf *nic, struct queue_set *qs, int qidx, bool enable) argument 859 nicvf_snd_queue_config(struct nicvf *nic, struct queue_set *qs, int qidx, bool enable) argument 917 nicvf_rbdr_config(struct nicvf *nic, struct queue_set *qs, int qidx, bool enable) argument 954 nicvf_qset_config(struct nicvf *nic, bool enable) argument 989 nicvf_free_resources(struct nicvf *nic) argument 1007 nicvf_alloc_resources(struct nicvf *nic) argument 1037 nicvf_set_qset_resources(struct nicvf *nic) argument 1064 nicvf_config_data_transfer(struct nicvf *nic, bool enable) argument 1160 nicvf_sq_enable(struct nicvf *nic, struct snd_queue *sq, int qidx) argument 1171 nicvf_sq_disable(struct nicvf *nic, int qidx) argument 1185 struct nicvf *nic = netdev_priv(netdev); local 1206 nicvf_xdp_sq_doorbell(struct nicvf *nic, struct snd_queue *sq, int sq_num) argument 1236 nicvf_xdp_sq_append_pkt(struct nicvf *nic, struct snd_queue *sq, u64 bufaddr, u64 dma_addr, u16 len) argument 1307 nicvf_sq_subdesc_required(struct nicvf *nic, struct sk_buff *skb) argument 1330 nicvf_sq_add_hdr_subdesc(struct nicvf *nic, struct snd_queue *sq, int qentry, int subdesc_cnt, struct sk_buff *skb, int len) argument 1465 nicvf_sq_doorbell(struct nicvf *nic, struct sk_buff *skb, int sq_num, int desc_cnt) argument 1486 nicvf_sq_append_tso(struct nicvf *nic, struct snd_queue *sq, int sq_num, int qentry, struct sk_buff *skb) argument 1550 nicvf_sq_append_skb(struct nicvf *nic, struct snd_queue *sq, struct sk_buff *skb, u8 sq_num) argument 1638 nicvf_unmap_rcv_buffer(struct nicvf *nic, u64 dma_addr, u64 buf_addr, bool xdp) argument 1663 nicvf_get_rcv_skb(struct nicvf *nic, struct cqe_rx_t *cqe_rx, bool xdp) argument 1757 nicvf_enable_intr(struct nicvf *nic, int int_type, int q_idx) argument 1771 nicvf_disable_intr(struct nicvf *nic, int int_type, int q_idx) argument 1785 nicvf_clear_intr(struct nicvf *nic, int int_type, int q_idx) argument 1799 nicvf_is_intr_enabled(struct nicvf *nic, int int_type, int q_idx) argument 1812 nicvf_update_rq_stats(struct nicvf *nic, int rq_idx) argument 1825 nicvf_update_sq_stats(struct nicvf *nic, int sq_idx) argument 1839 nicvf_check_cqe_rx_errs(struct nicvf *nic, struct cqe_rx_t *cqe_rx) argument 1924 nicvf_check_cqe_tx_errs(struct nicvf *nic, struct cqe_send_t *cqe_tx) argument [all...] |
H A D | nicvf_ethtool.c | 13 #include "nic.h" 122 struct nicvf *nic = netdev_priv(netdev); local 128 if (!nic->link_up) { 134 switch (nic->speed) { 154 if (nic->mac_type == BGX_MODE_RXAUI) { 171 cmd->base.duplex = nic->duplex; 172 cmd->base.speed = nic->speed; 184 struct nicvf *nic = netdev_priv(netdev); local 186 return nic->link_up; 192 struct nicvf *nic local 200 struct nicvf *nic = netdev_priv(netdev); local 207 struct nicvf *nic = netdev_priv(netdev); local 212 nicvf_get_qset_strings(struct nicvf *nic, u8 **data, int qset) argument 236 struct nicvf *nic = netdev_priv(netdev); local 274 struct nicvf *nic = netdev_priv(netdev); local 298 nicvf_get_qset_stats(struct nicvf *nic, struct ethtool_stats *stats, u64 **data) argument 324 struct nicvf *nic = netdev_priv(netdev); local 366 struct nicvf *nic = netdev_priv(dev); local 463 struct nicvf *nic = netdev_priv(netdev); local 474 struct nicvf *nic = netdev_priv(netdev); local 488 struct nicvf *nic = netdev_priv(netdev); local 519 nicvf_get_rss_hash_opts(struct nicvf *nic, struct ethtool_rxnfc *info) argument 547 struct nicvf *nic = netdev_priv(dev); local 563 nicvf_set_rss_hash_opts(struct nicvf *nic, struct ethtool_rxnfc *info) argument 633 struct nicvf *nic = netdev_priv(dev); local 651 struct nicvf *nic = netdev_priv(dev); local 659 struct nicvf *nic = netdev_priv(dev); local 680 struct nicvf *nic = netdev_priv(dev); local 712 struct nicvf *nic = netdev_priv(dev); local 727 struct nicvf *nic = netdev_priv(dev); local 792 struct nicvf *nic = netdev_priv(dev); local 813 struct nicvf *nic = netdev_priv(dev); local 841 struct nicvf *nic = netdev_priv(netdev); local [all...] |
H A D | nicvf_queues.h | 320 static inline u64 nicvf_iova_to_phys(struct nicvf *nic, dma_addr_t dma_addr) argument 323 if (nic->iommu_domain) 324 return iommu_iova_to_phys(nic->iommu_domain, dma_addr); 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, struc [all...] |
/linux-master/drivers/net/ethernet/intel/ |
H A D | e100.c | 537 struct nic { struct 542 u16 (*mdio_ctrl)(struct nic *nic, u32 addr, u32 dir, u32 reg, u16 data); 606 static inline void e100_write_flush(struct nic *nic) argument 610 (void)ioread8(&nic->csr->scb.status); 613 static void e100_enable_irq(struct nic *nic) argument 617 spin_lock_irqsave(&nic->cmd_lock, flags); 618 iowrite8(irq_mask_none, &nic 623 e100_disable_irq(struct nic *nic) argument 633 e100_hw_reset(struct nic *nic) argument 648 e100_self_test(struct nic *nic) argument 681 e100_eeprom_write(struct nic *nic, u16 addr_len, u16 addr, __le16 data) argument 719 e100_eeprom_read(struct nic *nic, u16 *addr_len, u16 addr) argument 760 e100_eeprom_load(struct nic *nic) argument 786 e100_eeprom_save(struct nic *nic, u16 start, u16 count) argument 813 e100_exec_cmd(struct nic *nic, u8 cmd, dma_addr_t dma_addr) argument 844 e100_exec_cb(struct nic *nic, struct sk_buff *skb, int (*cb_prepare)(struct nic *, struct cb *, struct sk_buff *)) argument 904 struct nic *nic = netdev_priv(netdev); local 910 struct nic *nic = netdev_priv(netdev); local 916 mdio_ctrl_hw(struct nic *nic, u32 addr, u32 dir, u32 reg, u16 data) argument 956 mdio_ctrl_phy_82552_v(struct nic *nic, u32 addr, u32 dir, u32 reg, u16 data) argument 986 mdio_ctrl_phy_mii_emulated(struct nic *nic, u32 addr, u32 dir, u32 reg, u16 data) argument 1028 e100_phy_supports_mii(struct nic *nic) argument 1036 e100_get_defaults(struct nic *nic) argument 1069 e100_configure(struct nic *nic, struct cb *cb, struct sk_buff *skb) argument 1219 e100_request_firmware(struct nic *nic) argument 1307 e100_setup_ucode(struct nic *nic, struct cb *cb, struct sk_buff *skb) argument 1337 e100_load_ucode_wait(struct nic *nic) argument 1377 e100_setup_iaaddr(struct nic *nic, struct cb *cb, struct sk_buff *skb) argument 1385 e100_dump(struct nic *nic, struct cb *cb, struct sk_buff *skb) argument 1393 e100_phy_check_without_mii(struct nic *nic) argument 1433 e100_phy_init(struct nic *nic) argument 1526 e100_hw_init(struct nic *nic) argument 1559 e100_multi(struct nic *nic, struct cb *cb, struct sk_buff *skb) argument 1579 struct nic *nic = netdev_priv(netdev); local 1600 e100_update_stats(struct nic *nic) argument 1662 e100_adjust_adaptive_ifs(struct nic *nic, int speed, int duplex) argument 1686 struct nic *nic = from_timer(nic, t, watchdog); local 1735 e100_xmit_prepare(struct nic *nic, struct cb *cb, struct sk_buff *skb) argument 1772 struct nic *nic = netdev_priv(netdev); local 1805 e100_tx_clean(struct nic *nic) argument 1848 e100_clean_cbs(struct nic *nic) argument 1872 e100_alloc_cbs(struct nic *nic) argument 1901 e100_start_receiver(struct nic *nic, struct rx *rx) argument 1917 e100_rx_alloc_skb(struct nic *nic, struct rx *rx) argument 1949 e100_rx_indicate(struct nic *nic, struct rx *rx, unsigned int *work_done, unsigned int work_to_do) argument 2048 e100_rx_clean(struct nic *nic, unsigned int *work_done, unsigned int work_to_do) argument 2128 e100_rx_clean_list(struct nic *nic) argument 2151 e100_rx_alloc_list(struct nic *nic) argument 2194 struct nic *nic = netdev_priv(netdev); local 2221 struct nic *nic = container_of(napi, struct nic, napi); local 2241 struct nic *nic = netdev_priv(netdev); local 2252 struct nic *nic = netdev_priv(netdev); local 2264 e100_asf(struct nic *nic) argument 2273 e100_up(struct nic *nic) argument 2305 e100_down(struct nic *nic) argument 2320 struct nic *nic = netdev_priv(netdev); local 2329 struct nic *nic = container_of(work, struct nic, tx_timeout_task); local 2343 e100_loopback_test(struct nic *nic, enum loopback loopback_mode) argument 2407 struct nic *nic = netdev_priv(netdev); local 2417 struct nic *nic = netdev_priv(netdev); local 2430 struct nic *nic = netdev_priv(netdev); local 2439 struct nic *nic = netdev_priv(netdev); local 2450 struct nic *nic = netdev_priv(netdev); local 2474 struct nic *nic = netdev_priv(netdev); local 2481 struct nic *nic = netdev_priv(netdev); local 2501 struct nic *nic = netdev_priv(netdev); local 2507 struct nic *nic = netdev_priv(netdev); local 2513 struct nic *nic = netdev_priv(netdev); local 2519 struct nic *nic = netdev_priv(netdev); local 2525 struct nic *nic = netdev_priv(netdev); local 2533 struct nic *nic = netdev_priv(netdev); local 2544 struct nic *nic = netdev_priv(netdev); local 2560 struct nic *nic = netdev_priv(netdev); local 2575 struct nic *nic = netdev_priv(netdev); local 2609 struct nic *nic = netdev_priv(netdev); local 2641 struct nic *nic = netdev_priv(netdev); local 2704 struct nic *nic = netdev_priv(netdev); local 2761 struct nic *nic = netdev_priv(netdev); local 2766 e100_alloc(struct nic *nic) argument 2773 e100_free(struct nic *nic) argument 2784 struct nic *nic = netdev_priv(netdev); local 2802 struct nic *nic = netdev_priv(netdev); local 2831 struct nic *nic; local 2987 struct nic *nic = netdev_priv(netdev); local 3004 struct nic *nic = netdev_priv(netdev); local 3052 struct nic *nic = netdev_priv(netdev); local 3097 struct nic *nic = netdev_priv(netdev); local 3121 struct nic *nic = netdev_priv(netdev); local 3148 struct nic *nic = netdev_priv(netdev); local [all...] |
/linux-master/drivers/net/ethernet/marvell/octeontx2/ |
H A D | Makefile | 8 obj-$(CONFIG_OCTEONTX2_PF) += nic/
|
/linux-master/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_tc.c | 58 static void otx2_get_egress_burst_cfg(struct otx2_nic *nic, u32 burst, argument 64 if (is_dev_otx2(nic->pdev)) { 122 u64 otx2_get_txschq_rate_regval(struct otx2_nic *nic, argument 130 otx2_get_egress_burst_cfg(nic, burst, &burst_exp, &burst_mantissa); 133 if (is_dev_otx2(nic->pdev)) { 150 static int otx2_set_matchall_egress_rate(struct otx2_nic *nic, argument 153 struct otx2_hw *hw = &nic->hw; 160 mutex_lock(&nic->mbox.lock); 161 req = otx2_mbox_alloc_msg_nix_txschq_cfg(&nic->mbox); 163 mutex_unlock(&nic 177 otx2_tc_validate_flow(struct otx2_nic *nic, struct flow_action *actions, struct netlink_ext_ack *extack) argument 233 otx2_tc_egress_matchall_install(struct otx2_nic *nic, struct tc_cls_matchall_offload *cls) argument 277 otx2_tc_egress_matchall_delete(struct otx2_nic *nic, struct tc_cls_matchall_offload *cls) argument 293 otx2_tc_act_set_hw_police(struct otx2_nic *nic, struct otx2_tc_flow *node) argument 328 otx2_tc_act_set_police(struct otx2_nic *nic, struct otx2_tc_flow *node, struct flow_cls_offload *f, u64 rate, u32 burst, u32 mark, struct npc_install_flow_req *req, bool pps) argument 361 otx2_tc_update_mcast(struct otx2_nic *nic, struct npc_install_flow_req *req, struct netlink_ext_ack *extack, struct otx2_tc_flow *node, struct nix_mcast_grp_update_req *ureq, u8 num_intf) argument 434 otx2_tc_parse_actions(struct otx2_nic *nic, struct flow_action *flow_action, struct npc_install_flow_req *req, struct flow_cls_offload *f, struct otx2_tc_flow *node) argument 559 otx2_tc_process_vlan(struct otx2_nic *nic, struct flow_msg *flow_spec, struct flow_msg *flow_mask, struct flow_rule *rule, struct npc_install_flow_req *req, bool is_inner) argument 615 otx2_tc_prepare_flow(struct otx2_nic *nic, struct otx2_tc_flow *node, struct flow_cls_offload *f, struct npc_install_flow_req *req) argument 1027 otx2_add_mcam_flow_entry(struct otx2_nic *nic, struct npc_install_flow_req *req) argument 1053 otx2_del_mcam_flow_entry(struct otx2_nic *nic, u16 entry, u16 *cntr_val) argument 1094 otx2_tc_update_mcam_table_del_req(struct otx2_nic *nic, struct otx2_flow_config *flow_cfg, struct otx2_tc_flow *node) argument 1133 otx2_tc_update_mcam_table_add_req(struct otx2_nic *nic, struct otx2_flow_config *flow_cfg, struct otx2_tc_flow *node) argument 1164 otx2_tc_update_mcam_table(struct otx2_nic *nic, struct otx2_flow_config *flow_cfg, struct otx2_tc_flow *node, bool add_req) argument 1175 otx2_tc_del_flow(struct otx2_nic *nic, struct flow_cls_offload *tc_flow_cmd) argument 1231 otx2_tc_add_flow(struct otx2_nic *nic, struct flow_cls_offload *tc_flow_cmd) argument 1333 otx2_tc_get_flow_stats(struct otx2_nic *nic, struct flow_cls_offload *tc_flow_cmd) argument 1390 otx2_setup_tc_cls_flower(struct otx2_nic *nic, struct flow_cls_offload *cls_flower) argument 1405 otx2_tc_ingress_matchall_install(struct otx2_nic *nic, struct tc_cls_matchall_offload *cls) argument 1454 otx2_tc_ingress_matchall_delete(struct otx2_nic *nic, struct tc_cls_matchall_offload *cls) argument 1470 otx2_setup_tc_ingress_matchall(struct otx2_nic *nic, struct tc_cls_matchall_offload *cls_matchall) argument 1489 struct otx2_nic *nic = cb_priv; local 1514 otx2_setup_tc_egress_matchall(struct otx2_nic *nic, struct tc_cls_matchall_offload *cls_matchall) argument 1533 struct otx2_nic *nic = cb_priv; local 1553 struct otx2_nic *nic = netdev_priv(netdev); local 1588 otx2_init_tc(struct otx2_nic *nic) argument 1603 otx2_shutdown_tc(struct otx2_nic *nic) argument 1609 otx2_tc_config_ingress_rule(struct otx2_nic *nic, struct otx2_tc_flow *node) argument 1632 otx2_tc_apply_ingress_police_rules(struct otx2_nic *nic) argument [all...] |
H A D | otx2_ptp.c | 19 if (!ptp->nic) 22 mutex_lock(&ptp->nic->mbox.lock); 23 req = otx2_mbox_alloc_msg_ptp_get_cap(&ptp->nic->mbox); 25 mutex_unlock(&ptp->nic->mbox.lock); 29 err = otx2_sync_mbox_msg(&ptp->nic->mbox); 31 mutex_unlock(&ptp->nic->mbox.lock); 34 rsp = (struct ptp_get_cap_rsp *)otx2_mbox_get_rsp(&ptp->nic->mbox.mbox, 0, 36 mutex_unlock(&ptp->nic->mbox.lock); 51 struct otx2_nic *pfvf = ptp->nic; 55 if (!ptp->nic) [all...] |
/linux-master/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); local 295 if (netif_carrier_ok(nic->ndev)) 296 ret = aq_apply_secy_cfg(nic, ct 303 struct aq_nic_s *nic = macsec_netdev_priv(ctx->netdev); local 315 aq_set_txsc(struct aq_nic_s *nic, const int txsc_idx) argument 442 struct aq_nic_s *nic = macsec_netdev_priv(ctx->netdev); local 477 struct aq_nic_s *nic = macsec_netdev_priv(ctx->netdev); local 492 aq_clear_txsc(struct aq_nic_s *nic, const int txsc_idx, enum aq_clear_type clear_type) argument 531 struct aq_nic_s *nic = macsec_netdev_priv(ctx->netdev); local 542 aq_update_txsa(struct aq_nic_s *nic, const unsigned int sc_idx, const struct macsec_secy *secy, const struct macsec_tx_sa *tx_sa, const unsigned char *key, const unsigned char an) argument 579 struct aq_nic_s *nic = macsec_netdev_priv(ctx->netdev); local 606 struct aq_nic_s *nic = macsec_netdev_priv(ctx->netdev); local 625 aq_clear_txsa(struct aq_nic_s *nic, struct aq_macsec_txsc *aq_txsc, const int sa_num, enum aq_clear_type clear_type) argument 655 struct aq_nic_s *nic = macsec_netdev_priv(ctx->netdev); local 686 aq_set_rxsc(struct aq_nic_s *nic, const u32 rxsc_idx) argument 747 struct aq_nic_s *nic = macsec_netdev_priv(ctx->netdev); local 778 struct aq_nic_s *nic = macsec_netdev_priv(ctx->netdev); local 792 aq_clear_rxsc(struct aq_nic_s *nic, const int rxsc_idx, enum aq_clear_type clear_type) argument 841 struct aq_nic_s *nic = macsec_netdev_priv(ctx->netdev); local 858 aq_update_rxsa(struct aq_nic_s *nic, const unsigned int sc_idx, const struct macsec_secy *secy, const struct macsec_rx_sa *rx_sa, const unsigned char *key, const unsigned char an) argument 909 struct aq_nic_s *nic = macsec_netdev_priv(ctx->netdev); local 936 struct aq_nic_s *nic = macsec_netdev_priv(ctx->netdev); local 955 aq_clear_rxsa(struct aq_nic_s *nic, struct aq_macsec_rxsc *aq_rxsc, const int sa_num, enum aq_clear_type clear_type) argument 985 struct aq_nic_s *nic = macsec_netdev_priv(ctx->netdev); local 1003 struct aq_nic_s *nic = macsec_netdev_priv(ctx->netdev); local 1023 struct aq_nic_s *nic = macsec_netdev_priv(ctx->netdev); local 1047 struct aq_nic_s *nic = macsec_netdev_priv(ctx->netdev); local 1087 struct aq_nic_s *nic = macsec_netdev_priv(ctx->netdev); local 1132 struct aq_nic_s *nic = macsec_netdev_priv(ctx->netdev); local 1171 apply_txsc_cfg(struct aq_nic_s *nic, const int txsc_idx) argument 1199 apply_rxsc_cfg(struct aq_nic_s *nic, const int rxsc_idx) argument 1227 aq_clear_secy(struct aq_nic_s *nic, const struct macsec_secy *secy, enum aq_clear_type clear_type) argument 1256 aq_apply_secy_cfg(struct aq_nic_s *nic, const struct macsec_secy *secy) argument 1282 aq_apply_macsec_cfg(struct aq_nic_s *nic) argument 1337 aq_check_txsa_expiration(struct aq_nic_s *nic) argument 1452 aq_macsec_init(struct aq_nic_s *nic) argument 1476 aq_macsec_free(struct aq_nic_s *nic) argument 1482 aq_macsec_enable(struct aq_nic_s *nic) argument 1548 aq_macsec_work(struct aq_nic_s *nic) argument 1561 aq_macsec_rx_sa_cnt(struct aq_nic_s *nic) argument 1581 aq_macsec_tx_sc_cnt(struct aq_nic_s *nic) argument 1595 aq_macsec_tx_sa_cnt(struct aq_nic_s *nic) argument 1615 aq_macsec_update_stats(struct aq_nic_s *nic) argument 1667 aq_macsec_get_stats(struct aq_nic_s *nic, u64 *data) argument [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_pci_func.c | 385 struct aq_nic_s *nic = pci_get_drvdata(to_pci_dev(dev)); local 389 nic->power_state = AQ_HW_POWER_STATE_D3; 390 netif_device_detach(nic->ndev); 391 netif_tx_stop_all_queues(nic->ndev); 393 if (netif_running(nic->ndev)) 394 aq_nic_stop(nic); 396 aq_nic_deinit(nic, !nic->aq_hw->aq_nic_cfg->wol); 397 aq_nic_set_power(nic); 407 struct aq_nic_s *nic; local [all...] |
H A D | aq_drvinfo.c | 90 const struct aq_nic_s *nic = data; local 95 if (channel == 0 && !nic->aq_fw_ops->get_phy_temp) 97 else if (channel == 1 && !nic->aq_fw_ops->get_mac_temp && 98 !nic->aq_hw_ops->hw_get_mac_temp)
|
H A D | aq_ethtool.c | 186 struct aq_nic_s *nic = netdev_priv(ndev); local 187 struct aq_nic_cfg_s *cfg = aq_nic_get_cfg(nic); 192 n_stats += rx_stat_cnt * aq_ptp_get_ring_cnt(nic, ATL_RING_RX) + 193 tx_stat_cnt * aq_ptp_get_ring_cnt(nic, ATL_RING_TX); 197 if (nic->macsec_cfg) { 200 aq_macsec_tx_sc_cnt(nic) + 202 aq_macsec_tx_sa_cnt(nic) + 204 aq_macsec_rx_sa_cnt(nic); 254 struct aq_nic_s *nic = netdev_priv(ndev); local 262 cfg = aq_nic_get_cfg(nic); [all...] |
/linux-master/drivers/staging/gdm724x/ |
H A D | gdm_lte.c | 71 struct nic *nic = arg; local 73 if (netif_queue_stopped(nic->netdev)) 74 netif_wake_queue(nic->netdev); 77 static int gdm_lte_rx(struct sk_buff *skb, struct nic *nic, int nic_type) argument 84 nic->stats.rx_dropped++; 86 nic->stats.rx_packets++; 87 nic->stats.rx_bytes += len; 95 struct nic *ni local 214 struct nic *nic = netdev_priv(skb_in->dev); local 337 struct nic *nic = netdev_priv(dev); local 403 struct nic *nic = netdev_priv(dev); local 497 struct nic *nic = netdev_priv(dev); local 522 struct nic *nic = netdev_priv(dev); local 565 struct nic *nic; local 730 struct nic *nic = netdev_priv(dev); local 867 struct nic *nic; local [all...] |
H A D | gdm_lte.h | 34 struct nic; 52 struct nic { struct
|
/linux-master/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-master/drivers/firmware/ |
H A D | iscsi_ibft.c | 175 struct ibft_nic *nic; member in union:ibft_kobject::__anon43 294 struct ibft_nic *nic = entry->nic; local 299 if (!nic) 304 str += sprintf(str, "%d\n", nic->hdr.index); 307 str += sprintf(str, "%d\n", nic->hdr.flags); 310 str += sprintf_ipaddr(str, nic->ip_addr); 313 val = cpu_to_be32(~((1 << (32-nic->subnet_mask_prefix))-1)); 317 str += sprintf(str, "%d\n", nic->subnet_mask_prefix); 320 str += sprintf(str, "%d\n", nic 473 struct ibft_nic *nic = entry->nic; local 630 struct ibft_nic *nic = (struct ibft_nic *)hdr; local [all...] |
/linux-master/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_trace.h | 27 __string(devname, hdev->vport[0].nic.kinfo.netdev->name) 36 __assign_str(devname, hdev->vport[0].nic.kinfo.netdev->name); 59 __string(devname, hdev->vport[0].nic.kinfo.netdev->name) 67 __assign_str(devname, hdev->vport[0].nic.kinfo.netdev->name);
|
H A D | hclge_devlink.c | 39 struct hnae3_handle *h = &hdev->vport->nic; 74 struct hnae3_handle *h = &hdev->vport->nic;
|
/linux-master/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
H A D | hclgevf_trace.h | 26 __string(devname, hdev->nic.kinfo.netdev->name) 34 __assign_str(devname, hdev->nic.kinfo.netdev->name); 58 __string(devname, hdev->nic.kinfo.netdev->name) 67 __assign_str(devname, hdev->nic.kinfo.netdev->name);
|
H A D | hclgevf_devlink.c | 40 struct hnae3_handle *h = &hdev->nic; 75 struct hnae3_handle *h = &hdev->nic;
|
/linux-master/drivers/net/ethernet/neterion/ |
H A D | s2io.c | 558 * @nic: Device private variable. 564 static int init_shared_mem(struct s2io_nic *nic) argument 572 struct net_device *dev = nic->dev; 575 struct config_param *config = &nic->config; 576 struct mac_info *mac_control = &nic->mac_control; 636 fifo->nic = nic; 644 tmp_v = dma_alloc_coherent(&nic->pdev->dev, PAGE_SIZE, 662 tmp_v = dma_alloc_coherent(&nic->pdev->dev, 702 if (rx_cfg->num_rxd % (rxd_count[nic 870 free_shared_mem(struct s2io_nic *nic) argument 1008 s2io_verify_pci_mode(struct s2io_nic *nic) argument 1042 s2io_print_pci_mode(struct s2io_nic *nic) argument 1112 init_tti(struct s2io_nic *nic, int link, bool may_sleep) argument 1188 init_nic(struct s2io_nic *nic) argument 1821 s2io_link_fault_indication(struct s2io_nic *nic) argument 1851 en_dis_err_alarms(struct s2io_nic *nic, u16 mask, int flag) argument 1989 en_dis_able_nic_intrs(struct s2io_nic *nic, u16 mask, int flag) argument 2210 start_nic(struct s2io_nic *nic) argument 2323 struct s2io_nic *nic = fifo_data->nic; local 2367 free_tx_buffers(struct s2io_nic *nic) argument 2413 stop_nic(struct s2io_nic *nic) argument 2454 fill_rx_buffers(struct s2io_nic *nic, struct ring_info *ring, int from_card_up) argument 2739 s2io_chk_rx_buffers(struct s2io_nic *nic, struct ring_info *ring) argument 2768 struct s2io_nic *nic = netdev_priv(dev); local 2792 struct s2io_nic *nic = container_of(napi, struct s2io_nic, napi); local 2833 struct s2io_nic *nic = netdev_priv(dev); local 2999 struct s2io_nic *nic = fifo_data->nic; local 3656 wait_for_msix_trans(struct s2io_nic *nic, int i) argument 3677 restore_xmsi_data(struct s2io_nic *nic) argument 3698 store_xmsi_data(struct s2io_nic *nic) argument 3726 s2io_enable_msi_x(struct s2io_nic *nic) argument 5677 s2io_vpd_read(struct s2io_nic *nic) argument 6669 struct s2io_nic *nic = container_of(work, struct s2io_nic, local 7606 rts_ds_steer(struct s2io_nic *nic, u8 ds_codepoint, u8 ring) argument [all...] |
/linux-master/drivers/net/ethernet/sfc/siena/ |
H A D | Makefile | 3 efx.o efx_common.o efx_channels.o nic.o \
|
/linux-master/tools/testing/selftests/rcutorture/bin/ |
H A D | functions.sh | 322 # instead "-net nic -net user". 329 echo $1 -net nic -net user
|