/kernel/linux/linux-5.10/drivers/net/ethernet/cisco/enic/ |
H A D | enic_main.c | 56 #include "enic.h" 114 static void enic_init_affinity_hint(struct enic *enic) in enic_init_affinity_hint() argument 116 int numa_node = dev_to_node(&enic->pdev->dev); in enic_init_affinity_hint() 119 for (i = 0; i < enic->intr_count; i++) { in enic_init_affinity_hint() 120 if (enic_is_err_intr(enic, i) || enic_is_notify_intr(enic, i) || in enic_init_affinity_hint() 121 (cpumask_available(enic->msix[i].affinity_mask) && in enic_init_affinity_hint() 122 !cpumask_empty(enic->msix[i].affinity_mask))) in enic_init_affinity_hint() 124 if (zalloc_cpumask_var(&enic in enic_init_affinity_hint() 131 enic_free_affinity_hint(struct enic *enic) enic_free_affinity_hint() argument 142 enic_set_affinity_hint(struct enic *enic) enic_set_affinity_hint() argument 171 enic_unset_affinity_hint(struct enic *enic) enic_unset_affinity_hint() argument 183 struct enic *enic = netdev_priv(netdev); enic_udp_tunnel_set_port() local 210 struct enic *enic = netdev_priv(netdev); enic_udp_tunnel_unset_port() local 248 struct enic *enic = netdev_priv(dev); enic_features_check() local 300 enic_is_dynamic(struct enic *enic) enic_is_dynamic() argument 305 enic_sriov_enabled(struct enic *enic) enic_sriov_enabled() argument 310 enic_is_sriov_vf(struct enic *enic) enic_is_sriov_vf() argument 315 enic_is_valid_vf(struct enic *enic, int vf) enic_is_valid_vf() argument 326 struct enic *enic = vnic_dev_priv(wq->vdev); enic_free_wq_buf() local 348 struct enic *enic = vnic_dev_priv(vdev); enic_wq_service() local 366 enic_log_q_error(struct enic *enic) enic_log_q_error() argument 391 enic_msglvl_check(struct enic *enic) enic_msglvl_check() argument 402 enic_mtu_check(struct enic *enic) enic_mtu_check() argument 424 enic_link_check(struct enic *enic) enic_link_check() argument 438 enic_notify_check(struct enic *enic) enic_notify_check() argument 450 struct enic *enic = netdev_priv(netdev); enic_isr_legacy() local 487 struct enic *enic = data; enic_isr_msi() local 521 struct enic *enic = data; enic_isr_msix_err() local 535 struct enic *enic = data; enic_isr_msix_notify() local 544 enic_queue_wq_skb_cont(struct enic *enic, struct vnic_wq *wq, struct sk_buff *skb, unsigned int len_left, int loopback) enic_queue_wq_skb_cont() argument 567 enic_queue_wq_skb_vlan(struct enic *enic, struct vnic_wq *wq, struct sk_buff *skb, int vlan_tag_insert, unsigned int vlan_tag, int loopback) enic_queue_wq_skb_vlan() argument 596 enic_queue_wq_skb_csum_l4(struct enic *enic, struct vnic_wq *wq, struct sk_buff *skb, int vlan_tag_insert, unsigned int vlan_tag, int loopback) enic_queue_wq_skb_csum_l4() argument 668 enic_queue_wq_skb_tso(struct enic *enic, struct vnic_wq *wq, struct sk_buff *skb, unsigned int mss, int vlan_tag_insert, unsigned int vlan_tag, int loopback) enic_queue_wq_skb_tso() argument 739 enic_queue_wq_skb_encap(struct enic *enic, struct vnic_wq *wq, struct sk_buff *skb, int vlan_tag_insert, unsigned int vlan_tag, int loopback) enic_queue_wq_skb_encap() argument 771 enic_queue_wq_skb(struct enic *enic, struct vnic_wq *wq, struct sk_buff *skb) enic_queue_wq_skb() argument 824 struct enic *enic = netdev_priv(netdev); enic_hard_start_xmit() local 880 struct enic *enic = netdev_priv(netdev); enic_get_stats() local 908 struct enic *enic = netdev_priv(netdev); enic_mc_sync() local 927 struct enic *enic = netdev_priv(netdev); enic_mc_unsync() local 937 struct enic *enic = netdev_priv(netdev); enic_uc_sync() local 956 struct enic *enic = netdev_priv(netdev); enic_uc_unsync() local 964 enic_reset_addr_lists(struct enic *enic) enic_reset_addr_lists() argument 978 struct enic *enic = netdev_priv(netdev); enic_set_mac_addr() local 995 struct enic *enic = netdev_priv(netdev); enic_set_mac_address_dynamic() local 1023 struct enic *enic = netdev_priv(netdev); enic_set_mac_address() local 1040 struct enic *enic = netdev_priv(netdev); enic_set_rx_mode() local 1068 struct enic *enic = netdev_priv(netdev); enic_tx_timeout() local 1074 struct enic *enic = netdev_priv(netdev); enic_set_vf_mac() local 1101 struct enic *enic = netdev_priv(netdev); enic_set_vf_port() local 1190 struct enic *enic = netdev_priv(netdev); enic_get_vf_port() local 1224 struct enic *enic = vnic_dev_priv(rq->vdev); enic_free_rq_buf() local 1237 struct enic *enic = vnic_dev_priv(rq->vdev); enic_rq_alloc_buf() local 1280 struct enic *enic = netdev_priv(netdev); enic_rxcopybreak() local 1300 struct enic *enic = vnic_dev_priv(rq->vdev); enic_rq_indicate_buf() local 1437 struct enic *enic = vnic_dev_priv(vdev); enic_rq_service() local 1446 enic_set_int_moderation(struct enic *enic, struct vnic_rq *rq) enic_set_int_moderation() argument 1458 enic_calc_int_moderation(struct enic *enic, struct vnic_rq *rq) enic_calc_int_moderation() argument 1507 struct enic *enic = netdev_priv(netdev); enic_poll() local 1565 enic_free_rx_cpu_rmap(struct enic *enic) enic_free_rx_cpu_rmap() argument 1571 enic_set_rx_cpu_rmap(struct enic *enic) enic_set_rx_cpu_rmap() argument 1592 enic_free_rx_cpu_rmap(struct enic *enic) enic_free_rx_cpu_rmap() argument 1596 enic_set_rx_cpu_rmap(struct enic *enic) enic_set_rx_cpu_rmap() argument 1605 struct enic *enic = netdev_priv(netdev); enic_poll_msix_wq() local 1635 struct enic *enic = netdev_priv(netdev); enic_poll_msix_rq() local 1691 struct enic *enic = from_timer(enic, t, notify_timer); enic_notify_timer() local 1699 enic_free_intr(struct enic *enic) enic_free_intr() argument 1723 enic_request_intr(struct enic *enic) enic_request_intr() argument 1804 enic_synchronize_irqs(struct enic *enic) enic_synchronize_irqs() argument 1822 enic_set_rx_coal_setting(struct enic *enic) enic_set_rx_coal_setting() argument 1852 enic_dev_notify_set(struct enic *enic) enic_dev_notify_set() argument 1875 enic_notify_timer_start(struct enic *enic) enic_notify_timer_start() argument 1890 struct enic *enic = netdev_priv(netdev); enic_open() local 1964 struct enic *enic = netdev_priv(netdev); enic_stop() local 2044 struct enic *enic = netdev_priv(netdev); enic_change_mtu() local 2059 struct enic *enic = container_of(work, struct enic, change_mtu_work); enic_change_mtu_work() local 2073 struct enic *enic = netdev_priv(netdev); enic_poll_controller() local 2137 enic_dev_open(struct enic *enic) enic_dev_open() argument 2151 enic_dev_soft_reset(struct enic *enic) enic_dev_soft_reset() argument 2164 enic_dev_hang_reset(struct enic *enic) enic_dev_hang_reset() argument 2177 __enic_set_rsskey(struct enic *enic) __enic_set_rsskey() argument 2206 enic_set_rsskey(struct enic *enic) enic_set_rsskey() argument 2213 enic_set_rsscpu(struct enic *enic, u8 rss_hash_bits) enic_set_rsscpu() argument 2241 enic_set_niccfg(struct enic *enic, u8 rss_default_cpu, u8 rss_hash_type, u8 rss_hash_bits, u8 rss_base_cpu, u8 rss_enable) enic_set_niccfg() argument 2262 enic_set_rss_nic_cfg(struct enic *enic) enic_set_rss_nic_cfg() argument 2301 enic_set_api_busy(struct enic *enic, bool busy) enic_set_api_busy() argument 2310 struct enic *enic = container_of(work, struct enic, reset); enic_reset() local 2338 struct enic *enic = container_of(work, struct enic, tx_hang_reset); enic_tx_hang_reset() local 2362 enic_set_intr_mode(struct enic *enic) enic_set_intr_mode() argument 2478 enic_clear_intr_mode(struct enic *enic) enic_clear_intr_mode() argument 2546 enic_dev_deinit(struct enic *enic) enic_dev_deinit() argument 2565 enic_kdump_kernel_config(struct enic *enic) enic_kdump_kernel_config() argument 2577 enic_dev_init(struct enic *enic) enic_dev_init() argument 2663 enic_iounmap(struct enic *enic) enic_iounmap() argument 2676 struct enic *enic; enic_probe() local 3021 struct enic *enic = netdev_priv(netdev); enic_remove() local [all...] |
H A D | enic_dev.c | 25 #include "enic.h" 28 int enic_dev_fw_info(struct enic *enic, struct vnic_devcmd_fw_info **fw_info) in enic_dev_fw_info() argument 32 spin_lock_bh(&enic->devcmd_lock); in enic_dev_fw_info() 33 err = vnic_dev_fw_info(enic->vdev, fw_info); in enic_dev_fw_info() 34 spin_unlock_bh(&enic->devcmd_lock); in enic_dev_fw_info() 39 int enic_dev_stats_dump(struct enic *enic, struct vnic_stats **vstats) in enic_dev_stats_dump() argument 43 spin_lock_bh(&enic->devcmd_lock); in enic_dev_stats_dump() 44 err = vnic_dev_stats_dump(enic in enic_dev_stats_dump() 50 enic_dev_add_station_addr(struct enic *enic) enic_dev_add_station_addr() argument 64 enic_dev_del_station_addr(struct enic *enic) enic_dev_del_station_addr() argument 78 enic_dev_packet_filter(struct enic *enic, int directed, int multicast, int broadcast, int promisc, int allmulti) enic_dev_packet_filter() argument 91 enic_dev_add_addr(struct enic *enic, const u8 *addr) enic_dev_add_addr() argument 102 enic_dev_del_addr(struct enic *enic, const u8 *addr) enic_dev_del_addr() argument 113 enic_dev_notify_unset(struct enic *enic) enic_dev_notify_unset() argument 124 enic_dev_hang_notify(struct enic *enic) enic_dev_hang_notify() argument 135 enic_dev_set_ig_vlan_rewrite_mode(struct enic *enic) enic_dev_set_ig_vlan_rewrite_mode() argument 147 enic_dev_enable(struct enic *enic) enic_dev_enable() argument 158 enic_dev_disable(struct enic *enic) enic_dev_disable() argument 169 enic_dev_intr_coal_timer_info(struct enic *enic) enic_dev_intr_coal_timer_info() argument 183 struct enic *enic = netdev_priv(netdev); enic_vlan_rx_add_vid() local 196 struct enic *enic = netdev_priv(netdev); enic_vlan_rx_kill_vid() local [all...] |
H A D | enic_res.c | 40 #include "enic.h" 42 int enic_get_vnic_config(struct enic *enic) in enic_get_vnic_config() argument 44 struct vnic_enet_config *c = &enic->config; in enic_get_vnic_config() 47 err = vnic_dev_get_mac_addr(enic->vdev, enic->mac_addr); in enic_get_vnic_config() 49 dev_err(enic_get_dev(enic), in enic_get_vnic_config() 56 err = vnic_dev_spec(enic->vdev, \ in enic_get_vnic_config() 60 dev_err(enic_get_dev(enic), \ in enic_get_vnic_config() 95 vnic_dev_get_intr_coal_timer_max(enic in enic_get_vnic_config() 122 enic_add_vlan(struct enic *enic, u16 vlanid) enic_add_vlan() argument 135 enic_del_vlan(struct enic *enic, u16 vlanid) enic_del_vlan() argument 148 enic_set_nic_cfg(struct enic *enic, u8 rss_default_cpu, u8 rss_hash_type, u8 rss_hash_bits, u8 rss_base_cpu, u8 rss_enable, u8 tso_ipid_split_en, u8 ig_vlan_strip_en) enic_set_nic_cfg() argument 171 enic_set_rss_key(struct enic *enic, dma_addr_t key_pa, u64 len) enic_set_rss_key() argument 179 enic_set_rss_cpu(struct enic *enic, dma_addr_t cpu_pa, u64 len) enic_set_rss_cpu() argument 187 enic_free_vnic_resources(struct enic *enic) enic_free_vnic_resources() argument 201 enic_get_res_counts(struct enic *enic) enic_get_res_counts() argument 215 enic_init_vnic_resources(struct enic *enic) enic_init_vnic_resources() argument 317 enic_alloc_vnic_resources(struct enic *enic) enic_alloc_vnic_resources() argument [all...] |
H A D | enic_dev.h | 29 #define ENIC_DEVCMD_PROXY_BY_INDEX(vf, err, enic, vnicdevcmdfn, ...) \ 31 spin_lock_bh(&enic->devcmd_lock); \ 32 if (enic_is_valid_vf(enic, vf)) { \ 33 vnic_dev_cmd_proxy_by_index_start(enic->vdev, vf); \ 34 err = vnicdevcmdfn(enic->vdev, ##__VA_ARGS__); \ 35 vnic_dev_cmd_proxy_end(enic->vdev); \ 37 err = vnicdevcmdfn(enic->vdev, ##__VA_ARGS__); \ 39 spin_unlock_bh(&enic->devcmd_lock); \ 42 int enic_dev_fw_info(struct enic *enic, struc [all...] |
H A D | enic.h | 34 #define DRV_NAME "enic" 86 /* enic port profile set flags */ 145 struct enic { struct 206 struct enic *enic = vdev->priv; in vnic_get_netdev() local 208 return enic->netdev; in vnic_get_netdev() 227 static inline struct device *enic_get_dev(struct enic *enic) in enic_get_dev() argument 229 return &(enic->pdev->dev); in enic_get_dev() 232 static inline unsigned int enic_cq_rq(struct enic *eni argument 237 enic_cq_wq(struct enic *enic, unsigned int wq) enic_cq_wq() argument 257 enic_msix_rq_intr(struct enic *enic, unsigned int rq) enic_msix_rq_intr() argument 263 enic_msix_wq_intr(struct enic *enic, unsigned int wq) enic_msix_wq_intr() argument 269 enic_msix_err_intr(struct enic *enic) enic_msix_err_intr() argument 274 enic_msix_notify_intr(struct enic *enic) enic_msix_notify_intr() argument 279 enic_is_err_intr(struct enic *enic, int intr) enic_is_err_intr() argument 292 enic_is_notify_intr(struct enic *enic, int intr) enic_is_notify_intr() argument 305 enic_dma_map_check(struct enic *enic, dma_addr_t dma_addr) enic_dma_map_check() argument [all...] |
H A D | enic_clsf.c | 14 * @enic: enic struct of vnic 21 int enic_addfltr_5t(struct enic *enic, struct flow_keys *keys, u16 rq) in enic_addfltr_5t() argument 44 spin_lock_bh(&enic->devcmd_lock); in enic_addfltr_5t() 45 res = vnic_dev_classifier(enic->vdev, CLSF_ADD, &rq, &data); in enic_addfltr_5t() 46 spin_unlock_bh(&enic->devcmd_lock); in enic_addfltr_5t() 53 * @enic: enic struct of vnic 59 int enic_delfltr(struct enic *eni argument 73 enic_rfs_flw_tbl_init(struct enic *enic) enic_rfs_flw_tbl_init() argument 85 enic_rfs_flw_tbl_free(struct enic *enic) enic_rfs_flw_tbl_free() argument 107 htbl_fltr_search(struct enic *enic, u16 fltr_id) htbl_fltr_search() argument 128 struct enic *enic = from_timer(enic, t, rfs_h.rfs_may_expire); enic_flow_may_expire() local 176 struct enic *enic; enic_rx_flow_steer() local [all...] |
H A D | enic_pp.c | 30 #include "enic.h" 38 int enic_is_valid_pp_vf(struct enic *enic, int vf, int *err) in enic_is_valid_pp_vf() argument 42 if (enic_sriov_enabled(enic)) { in enic_is_valid_pp_vf() 43 if (vf < 0 || vf >= enic->num_vfs) { in enic_is_valid_pp_vf() 57 if (vf == PORT_SELF_VF && !enic_is_dynamic(enic)) { in enic_is_valid_pp_vf() 69 static int enic_set_port_profile(struct enic *enic, int vf) in enic_set_port_profile() argument 71 struct net_device *netdev = enic->netdev; in enic_set_port_profile() 81 ENIC_PP_BY_INDEX(enic, v in enic_set_port_profile() 145 enic_unset_port_profile(struct enic *enic, int vf) enic_unset_port_profile() argument 189 enic_pp_preassociate(struct enic *enic, int vf, struct enic_port_profile *prev_pp, int *restore_pp) enic_pp_preassociate() argument 195 enic_pp_disassociate(struct enic *enic, int vf, struct enic_port_profile *prev_pp, int *restore_pp) enic_pp_disassociate() argument 217 enic_pp_preassociate_rr(struct enic *enic, int vf, struct enic_port_profile *prev_pp, int *restore_pp) enic_pp_preassociate_rr() argument 256 enic_pp_associate(struct enic *enic, int vf, struct enic_port_profile *prev_pp, int *restore_pp) enic_pp_associate() argument 304 enic_process_set_pp_request(struct enic *enic, int vf, struct enic_port_profile *prev_pp, int *restore_pp) enic_process_set_pp_request() argument 321 enic_process_get_pp_request(struct enic *enic, int vf, int request, u16 *response) enic_process_get_pp_request() argument [all...] |
H A D | enic_clsf.h | 6 #include "enic.h" 10 int enic_addfltr_5t(struct enic *enic, struct flow_keys *keys, u16 rq); 11 int enic_delfltr(struct enic *enic, u16 filter_id); 12 void enic_rfs_flw_tbl_init(struct enic *enic); 13 void enic_rfs_flw_tbl_free(struct enic *enic); 14 struct enic_rfs_fltr_node *htbl_fltr_search(struct enic *eni 21 enic_rfs_timer_start(struct enic *enic) enic_rfs_timer_start() argument 27 enic_rfs_timer_stop(struct enic *enic) enic_rfs_timer_stop() argument 32 enic_rfs_timer_start(struct enic *enic) enic_rfs_timer_start() argument 33 enic_rfs_timer_stop(struct enic *enic) enic_rfs_timer_stop() argument [all...] |
H A D | enic_ethtool.c | 24 #include "enic.h" 96 static void enic_intr_coal_set_rx(struct enic *enic, u32 timer) in enic_intr_coal_set_rx() argument 101 for (i = 0; i < enic->rq_count; i++) { in enic_intr_coal_set_rx() 102 intr = enic_msix_rq_intr(enic, i); in enic_intr_coal_set_rx() 103 vnic_intr_coalescing_timer_set(&enic->intr[intr], timer); in enic_intr_coal_set_rx() 110 struct enic *enic = netdev_priv(netdev); in enic_get_ksettings() local 122 base->speed = vnic_dev_port_speed(enic->vdev); in enic_get_ksettings() 137 struct enic *eni in enic_get_drvinfo() local 182 struct enic *enic = netdev_priv(netdev); enic_get_ringparam() local 194 struct enic *enic = netdev_priv(netdev); enic_set_ringparam() local 267 struct enic *enic = netdev_priv(netdev); enic_get_ethtool_stats() local 290 struct enic *enic = netdev_priv(netdev); enic_get_msglevel() local 296 struct enic *enic = netdev_priv(netdev); enic_set_msglevel() local 303 struct enic *enic = netdev_priv(netdev); enic_get_coalesce() local 317 enic_coalesce_valid(struct enic *enic, struct ethtool_coalesce *ec) enic_coalesce_valid() argument 348 struct enic *enic = netdev_priv(netdev); enic_set_coalesce() local 395 enic_grxclsrlall(struct enic *enic, struct ethtool_rxnfc *cmd, u32 *rule_locs) enic_grxclsrlall() argument 419 enic_grxclsrule(struct enic *enic, struct ethtool_rxnfc *cmd) enic_grxclsrule() argument 456 enic_get_rx_flow_hash(struct enic *enic, struct ethtool_rxnfc *cmd) enic_get_rx_flow_hash() argument 502 struct enic *enic = netdev_priv(dev); enic_get_rxnfc() local 539 struct enic *enic = netdev_priv(dev); enic_get_tunable() local 558 struct enic *enic = netdev_priv(dev); enic_set_tunable() local 581 struct enic *enic = netdev_priv(netdev); enic_get_rxfh() local 595 struct enic *enic = netdev_priv(netdev); enic_set_rxfh() local [all...] |
H A D | enic_res.h | 41 #define ENIC_SETTING(enic, f) ((enic->config.flags & VENETF_##f) ? 1 : 0) 138 struct enic; 140 int enic_get_vnic_config(struct enic *); 141 int enic_add_vlan(struct enic *enic, u16 vlanid); 142 int enic_del_vlan(struct enic *enic, u16 vlanid); 143 int enic_set_nic_cfg(struct enic *enic, u [all...] |
H A D | enic_pp.h | 22 #define ENIC_PP_BY_INDEX(enic, vf, pp, err) \ 24 if (enic_is_valid_pp_vf(enic, vf, err)) \ 25 pp = (vf == PORT_SELF_VF) ? enic->pp : enic->pp + vf; \ 30 int enic_process_set_pp_request(struct enic *enic, int vf, 32 int enic_process_get_pp_request(struct enic *enic, int vf, 34 int enic_is_valid_pp_vf(struct enic *enic, in [all...] |
H A D | enic_api.c | 26 #include "enic.h" 33 struct enic *enic = netdev_priv(netdev); in enic_api_devcmd_proxy_by_index() local 34 struct vnic_dev *vdev = enic->vdev; in enic_api_devcmd_proxy_by_index() 36 spin_lock(&enic->enic_api_lock); in enic_api_devcmd_proxy_by_index() 37 while (enic->enic_api_busy) { in enic_api_devcmd_proxy_by_index() 38 spin_unlock(&enic->enic_api_lock); in enic_api_devcmd_proxy_by_index() 40 spin_lock(&enic->enic_api_lock); in enic_api_devcmd_proxy_by_index() 43 spin_lock_bh(&enic->devcmd_lock); in enic_api_devcmd_proxy_by_index() 49 spin_unlock_bh(&enic in enic_api_devcmd_proxy_by_index() [all...] |
H A D | Makefile | 2 obj-$(CONFIG_ENIC) := enic.o 4 enic-y := enic_main.o vnic_cq.o vnic_intr.o vnic_wq.o \
|
/kernel/linux/linux-6.6/drivers/net/ethernet/cisco/enic/ |
H A D | enic_main.c | 56 #include "enic.h" 114 static void enic_init_affinity_hint(struct enic *enic) in enic_init_affinity_hint() argument 116 int numa_node = dev_to_node(&enic->pdev->dev); in enic_init_affinity_hint() 119 for (i = 0; i < enic->intr_count; i++) { in enic_init_affinity_hint() 120 if (enic_is_err_intr(enic, i) || enic_is_notify_intr(enic, i) || in enic_init_affinity_hint() 121 (cpumask_available(enic->msix[i].affinity_mask) && in enic_init_affinity_hint() 122 !cpumask_empty(enic->msix[i].affinity_mask))) in enic_init_affinity_hint() 124 if (zalloc_cpumask_var(&enic in enic_init_affinity_hint() 131 enic_free_affinity_hint(struct enic *enic) enic_free_affinity_hint() argument 142 enic_set_affinity_hint(struct enic *enic) enic_set_affinity_hint() argument 171 enic_unset_affinity_hint(struct enic *enic) enic_unset_affinity_hint() argument 183 struct enic *enic = netdev_priv(netdev); enic_udp_tunnel_set_port() local 210 struct enic *enic = netdev_priv(netdev); enic_udp_tunnel_unset_port() local 248 struct enic *enic = netdev_priv(dev); enic_features_check() local 300 enic_is_dynamic(struct enic *enic) enic_is_dynamic() argument 305 enic_sriov_enabled(struct enic *enic) enic_sriov_enabled() argument 310 enic_is_sriov_vf(struct enic *enic) enic_is_sriov_vf() argument 315 enic_is_valid_vf(struct enic *enic, int vf) enic_is_valid_vf() argument 326 struct enic *enic = vnic_dev_priv(wq->vdev); enic_free_wq_buf() local 348 struct enic *enic = vnic_dev_priv(vdev); enic_wq_service() local 366 enic_log_q_error(struct enic *enic) enic_log_q_error() argument 391 enic_msglvl_check(struct enic *enic) enic_msglvl_check() argument 402 enic_mtu_check(struct enic *enic) enic_mtu_check() argument 424 enic_link_check(struct enic *enic) enic_link_check() argument 438 enic_notify_check(struct enic *enic) enic_notify_check() argument 450 struct enic *enic = netdev_priv(netdev); enic_isr_legacy() local 487 struct enic *enic = data; enic_isr_msi() local 521 struct enic *enic = data; enic_isr_msix_err() local 535 struct enic *enic = data; enic_isr_msix_notify() local 544 enic_queue_wq_skb_cont(struct enic *enic, struct vnic_wq *wq, struct sk_buff *skb, unsigned int len_left, int loopback) enic_queue_wq_skb_cont() argument 567 enic_queue_wq_skb_vlan(struct enic *enic, struct vnic_wq *wq, struct sk_buff *skb, int vlan_tag_insert, unsigned int vlan_tag, int loopback) enic_queue_wq_skb_vlan() argument 596 enic_queue_wq_skb_csum_l4(struct enic *enic, struct vnic_wq *wq, struct sk_buff *skb, int vlan_tag_insert, unsigned int vlan_tag, int loopback) enic_queue_wq_skb_csum_l4() argument 668 enic_queue_wq_skb_tso(struct enic *enic, struct vnic_wq *wq, struct sk_buff *skb, unsigned int mss, int vlan_tag_insert, unsigned int vlan_tag, int loopback) enic_queue_wq_skb_tso() argument 738 enic_queue_wq_skb_encap(struct enic *enic, struct vnic_wq *wq, struct sk_buff *skb, int vlan_tag_insert, unsigned int vlan_tag, int loopback) enic_queue_wq_skb_encap() argument 770 enic_queue_wq_skb(struct enic *enic, struct vnic_wq *wq, struct sk_buff *skb) enic_queue_wq_skb() argument 823 struct enic *enic = netdev_priv(netdev); enic_hard_start_xmit() local 879 struct enic *enic = netdev_priv(netdev); enic_get_stats() local 907 struct enic *enic = netdev_priv(netdev); enic_mc_sync() local 926 struct enic *enic = netdev_priv(netdev); enic_mc_unsync() local 936 struct enic *enic = netdev_priv(netdev); enic_uc_sync() local 955 struct enic *enic = netdev_priv(netdev); enic_uc_unsync() local 963 enic_reset_addr_lists(struct enic *enic) enic_reset_addr_lists() argument 977 struct enic *enic = netdev_priv(netdev); enic_set_mac_addr() local 994 struct enic *enic = netdev_priv(netdev); enic_set_mac_address_dynamic() local 1022 struct enic *enic = netdev_priv(netdev); enic_set_mac_address() local 1039 struct enic *enic = netdev_priv(netdev); enic_set_rx_mode() local 1067 struct enic *enic = netdev_priv(netdev); enic_tx_timeout() local 1073 struct enic *enic = netdev_priv(netdev); enic_set_vf_mac() local 1101 struct enic *enic = netdev_priv(netdev); enic_set_vf_port() local 1190 struct enic *enic = netdev_priv(netdev); enic_get_vf_port() local 1224 struct enic *enic = vnic_dev_priv(rq->vdev); enic_free_rq_buf() local 1237 struct enic *enic = vnic_dev_priv(rq->vdev); enic_rq_alloc_buf() local 1280 struct enic *enic = netdev_priv(netdev); enic_rxcopybreak() local 1300 struct enic *enic = vnic_dev_priv(rq->vdev); enic_rq_indicate_buf() local 1437 struct enic *enic = vnic_dev_priv(vdev); enic_rq_service() local 1446 enic_set_int_moderation(struct enic *enic, struct vnic_rq *rq) enic_set_int_moderation() argument 1458 enic_calc_int_moderation(struct enic *enic, struct vnic_rq *rq) enic_calc_int_moderation() argument 1507 struct enic *enic = netdev_priv(netdev); enic_poll() local 1565 enic_free_rx_cpu_rmap(struct enic *enic) enic_free_rx_cpu_rmap() argument 1571 enic_set_rx_cpu_rmap(struct enic *enic) enic_set_rx_cpu_rmap() argument 1592 enic_free_rx_cpu_rmap(struct enic *enic) enic_free_rx_cpu_rmap() argument 1596 enic_set_rx_cpu_rmap(struct enic *enic) enic_set_rx_cpu_rmap() argument 1605 struct enic *enic = netdev_priv(netdev); enic_poll_msix_wq() local 1635 struct enic *enic = netdev_priv(netdev); enic_poll_msix_rq() local 1691 struct enic *enic = from_timer(enic, t, notify_timer); enic_notify_timer() local 1699 enic_free_intr(struct enic *enic) enic_free_intr() argument 1723 enic_request_intr(struct enic *enic) enic_request_intr() argument 1804 enic_synchronize_irqs(struct enic *enic) enic_synchronize_irqs() argument 1822 enic_set_rx_coal_setting(struct enic *enic) enic_set_rx_coal_setting() argument 1852 enic_dev_notify_set(struct enic *enic) enic_dev_notify_set() argument 1874 enic_notify_timer_start(struct enic *enic) enic_notify_timer_start() argument 1889 struct enic *enic = netdev_priv(netdev); enic_open() local 1963 struct enic *enic = netdev_priv(netdev); enic_stop() local 2043 struct enic *enic = netdev_priv(netdev); enic_change_mtu() local 2058 struct enic *enic = container_of(work, struct enic, change_mtu_work); enic_change_mtu_work() local 2072 struct enic *enic = netdev_priv(netdev); enic_poll_controller() local 2136 enic_dev_open(struct enic *enic) enic_dev_open() argument 2150 enic_dev_soft_reset(struct enic *enic) enic_dev_soft_reset() argument 2163 enic_dev_hang_reset(struct enic *enic) enic_dev_hang_reset() argument 2176 __enic_set_rsskey(struct enic *enic) __enic_set_rsskey() argument 2205 enic_set_rsskey(struct enic *enic) enic_set_rsskey() argument 2212 enic_set_rsscpu(struct enic *enic, u8 rss_hash_bits) enic_set_rsscpu() argument 2240 enic_set_niccfg(struct enic *enic, u8 rss_default_cpu, u8 rss_hash_type, u8 rss_hash_bits, u8 rss_base_cpu, u8 rss_enable) enic_set_niccfg() argument 2261 enic_set_rss_nic_cfg(struct enic *enic) enic_set_rss_nic_cfg() argument 2300 enic_set_api_busy(struct enic *enic, bool busy) enic_set_api_busy() argument 2309 struct enic *enic = container_of(work, struct enic, reset); enic_reset() local 2337 struct enic *enic = container_of(work, struct enic, tx_hang_reset); enic_tx_hang_reset() local 2361 enic_set_intr_mode(struct enic *enic) enic_set_intr_mode() argument 2477 enic_clear_intr_mode(struct enic *enic) enic_clear_intr_mode() argument 2541 enic_dev_deinit(struct enic *enic) enic_dev_deinit() argument 2560 enic_kdump_kernel_config(struct enic *enic) enic_kdump_kernel_config() argument 2572 enic_dev_init(struct enic *enic) enic_dev_init() argument 2659 enic_iounmap(struct enic *enic) enic_iounmap() argument 2672 struct enic *enic; enic_probe() local 3005 struct enic *enic = netdev_priv(netdev); enic_remove() local [all...] |
H A D | enic_dev.c | 10 #include "enic.h" 13 int enic_dev_fw_info(struct enic *enic, struct vnic_devcmd_fw_info **fw_info) in enic_dev_fw_info() argument 17 spin_lock_bh(&enic->devcmd_lock); in enic_dev_fw_info() 18 err = vnic_dev_fw_info(enic->vdev, fw_info); in enic_dev_fw_info() 19 spin_unlock_bh(&enic->devcmd_lock); in enic_dev_fw_info() 24 int enic_dev_stats_dump(struct enic *enic, struct vnic_stats **vstats) in enic_dev_stats_dump() argument 28 spin_lock_bh(&enic->devcmd_lock); in enic_dev_stats_dump() 29 err = vnic_dev_stats_dump(enic in enic_dev_stats_dump() 35 enic_dev_add_station_addr(struct enic *enic) enic_dev_add_station_addr() argument 49 enic_dev_del_station_addr(struct enic *enic) enic_dev_del_station_addr() argument 63 enic_dev_packet_filter(struct enic *enic, int directed, int multicast, int broadcast, int promisc, int allmulti) enic_dev_packet_filter() argument 76 enic_dev_add_addr(struct enic *enic, const u8 *addr) enic_dev_add_addr() argument 87 enic_dev_del_addr(struct enic *enic, const u8 *addr) enic_dev_del_addr() argument 98 enic_dev_notify_unset(struct enic *enic) enic_dev_notify_unset() argument 109 enic_dev_hang_notify(struct enic *enic) enic_dev_hang_notify() argument 120 enic_dev_set_ig_vlan_rewrite_mode(struct enic *enic) enic_dev_set_ig_vlan_rewrite_mode() argument 132 enic_dev_enable(struct enic *enic) enic_dev_enable() argument 143 enic_dev_disable(struct enic *enic) enic_dev_disable() argument 154 enic_dev_intr_coal_timer_info(struct enic *enic) enic_dev_intr_coal_timer_info() argument 168 struct enic *enic = netdev_priv(netdev); enic_vlan_rx_add_vid() local 181 struct enic *enic = netdev_priv(netdev); enic_vlan_rx_kill_vid() local [all...] |
H A D | enic_res.c | 27 #include "enic.h" 29 int enic_get_vnic_config(struct enic *enic) in enic_get_vnic_config() argument 31 struct vnic_enet_config *c = &enic->config; in enic_get_vnic_config() 34 err = vnic_dev_get_mac_addr(enic->vdev, enic->mac_addr); in enic_get_vnic_config() 36 dev_err(enic_get_dev(enic), in enic_get_vnic_config() 43 err = vnic_dev_spec(enic->vdev, \ in enic_get_vnic_config() 47 dev_err(enic_get_dev(enic), \ in enic_get_vnic_config() 82 vnic_dev_get_intr_coal_timer_max(enic in enic_get_vnic_config() 109 enic_add_vlan(struct enic *enic, u16 vlanid) enic_add_vlan() argument 122 enic_del_vlan(struct enic *enic, u16 vlanid) enic_del_vlan() argument 135 enic_set_nic_cfg(struct enic *enic, u8 rss_default_cpu, u8 rss_hash_type, u8 rss_hash_bits, u8 rss_base_cpu, u8 rss_enable, u8 tso_ipid_split_en, u8 ig_vlan_strip_en) enic_set_nic_cfg() argument 158 enic_set_rss_key(struct enic *enic, dma_addr_t key_pa, u64 len) enic_set_rss_key() argument 166 enic_set_rss_cpu(struct enic *enic, dma_addr_t cpu_pa, u64 len) enic_set_rss_cpu() argument 174 enic_free_vnic_resources(struct enic *enic) enic_free_vnic_resources() argument 188 enic_get_res_counts(struct enic *enic) enic_get_res_counts() argument 202 enic_init_vnic_resources(struct enic *enic) enic_init_vnic_resources() argument 304 enic_alloc_vnic_resources(struct enic *enic) enic_alloc_vnic_resources() argument [all...] |
H A D | enic_dev.h | 14 #define ENIC_DEVCMD_PROXY_BY_INDEX(vf, err, enic, vnicdevcmdfn, ...) \ 16 spin_lock_bh(&enic->devcmd_lock); \ 17 if (enic_is_valid_vf(enic, vf)) { \ 18 vnic_dev_cmd_proxy_by_index_start(enic->vdev, vf); \ 19 err = vnicdevcmdfn(enic->vdev, ##__VA_ARGS__); \ 20 vnic_dev_cmd_proxy_end(enic->vdev); \ 22 err = vnicdevcmdfn(enic->vdev, ##__VA_ARGS__); \ 24 spin_unlock_bh(&enic->devcmd_lock); \ 27 int enic_dev_fw_info(struct enic *enic, struc [all...] |
H A D | enic.h | 21 #define DRV_NAME "enic" 73 /* enic port profile set flags */ 132 struct enic { struct 193 struct enic *enic = vdev->priv; in vnic_get_netdev() local 195 return enic->netdev; in vnic_get_netdev() 214 static inline struct device *enic_get_dev(struct enic *enic) in enic_get_dev() argument 216 return &(enic->pdev->dev); in enic_get_dev() 219 static inline unsigned int enic_cq_rq(struct enic *eni argument 224 enic_cq_wq(struct enic *enic, unsigned int wq) enic_cq_wq() argument 229 enic_msix_rq_intr(struct enic *enic, unsigned int rq) enic_msix_rq_intr() argument 235 enic_msix_wq_intr(struct enic *enic, unsigned int wq) enic_msix_wq_intr() argument 241 enic_msix_err_intr(struct enic *enic) enic_msix_err_intr() argument 250 enic_msix_notify_intr(struct enic *enic) enic_msix_notify_intr() argument 255 enic_is_err_intr(struct enic *enic, int intr) enic_is_err_intr() argument 268 enic_is_notify_intr(struct enic *enic, int intr) enic_is_notify_intr() argument 281 enic_dma_map_check(struct enic *enic, dma_addr_t dma_addr) enic_dma_map_check() argument [all...] |
H A D | enic_clsf.c | 14 * @enic: enic struct of vnic 21 int enic_addfltr_5t(struct enic *enic, struct flow_keys *keys, u16 rq) in enic_addfltr_5t() argument 44 spin_lock_bh(&enic->devcmd_lock); in enic_addfltr_5t() 45 res = vnic_dev_classifier(enic->vdev, CLSF_ADD, &rq, &data); in enic_addfltr_5t() 46 spin_unlock_bh(&enic->devcmd_lock); in enic_addfltr_5t() 53 * @enic: enic struct of vnic 59 int enic_delfltr(struct enic *eni argument 73 enic_rfs_flw_tbl_init(struct enic *enic) enic_rfs_flw_tbl_init() argument 85 enic_rfs_flw_tbl_free(struct enic *enic) enic_rfs_flw_tbl_free() argument 107 htbl_fltr_search(struct enic *enic, u16 fltr_id) htbl_fltr_search() argument 128 struct enic *enic = from_timer(enic, t, rfs_h.rfs_may_expire); enic_flow_may_expire() local 176 struct enic *enic; enic_rx_flow_steer() local [all...] |
H A D | enic_pp.c | 15 #include "enic.h" 23 int enic_is_valid_pp_vf(struct enic *enic, int vf, int *err) in enic_is_valid_pp_vf() argument 27 if (enic_sriov_enabled(enic)) { in enic_is_valid_pp_vf() 28 if (vf < 0 || vf >= enic->num_vfs) { in enic_is_valid_pp_vf() 42 if (vf == PORT_SELF_VF && !enic_is_dynamic(enic)) { in enic_is_valid_pp_vf() 54 static int enic_set_port_profile(struct enic *enic, int vf) in enic_set_port_profile() argument 56 struct net_device *netdev = enic->netdev; in enic_set_port_profile() 66 ENIC_PP_BY_INDEX(enic, v in enic_set_port_profile() 130 enic_unset_port_profile(struct enic *enic, int vf) enic_unset_port_profile() argument 174 enic_pp_preassociate(struct enic *enic, int vf, struct enic_port_profile *prev_pp, int *restore_pp) enic_pp_preassociate() argument 180 enic_pp_disassociate(struct enic *enic, int vf, struct enic_port_profile *prev_pp, int *restore_pp) enic_pp_disassociate() argument 202 enic_pp_preassociate_rr(struct enic *enic, int vf, struct enic_port_profile *prev_pp, int *restore_pp) enic_pp_preassociate_rr() argument 241 enic_pp_associate(struct enic *enic, int vf, struct enic_port_profile *prev_pp, int *restore_pp) enic_pp_associate() argument 289 enic_process_set_pp_request(struct enic *enic, int vf, struct enic_port_profile *prev_pp, int *restore_pp) enic_process_set_pp_request() argument 306 enic_process_get_pp_request(struct enic *enic, int vf, int request, u16 *response) enic_process_get_pp_request() argument [all...] |
H A D | enic_clsf.h | 6 #include "enic.h" 10 int enic_addfltr_5t(struct enic *enic, struct flow_keys *keys, u16 rq); 11 int enic_delfltr(struct enic *enic, u16 filter_id); 12 void enic_rfs_flw_tbl_init(struct enic *enic); 13 void enic_rfs_flw_tbl_free(struct enic *enic); 14 struct enic_rfs_fltr_node *htbl_fltr_search(struct enic *eni 21 enic_rfs_timer_start(struct enic *enic) enic_rfs_timer_start() argument 27 enic_rfs_timer_stop(struct enic *enic) enic_rfs_timer_stop() argument 32 enic_rfs_timer_start(struct enic *enic) enic_rfs_timer_start() argument 33 enic_rfs_timer_stop(struct enic *enic) enic_rfs_timer_stop() argument [all...] |
H A D | enic_ethtool.c | 9 #include "enic.h" 81 static void enic_intr_coal_set_rx(struct enic *enic, u32 timer) in enic_intr_coal_set_rx() argument 86 for (i = 0; i < enic->rq_count; i++) { in enic_intr_coal_set_rx() 87 intr = enic_msix_rq_intr(enic, i); in enic_intr_coal_set_rx() 88 vnic_intr_coalescing_timer_set(&enic->intr[intr], timer); in enic_intr_coal_set_rx() 95 struct enic *enic = netdev_priv(netdev); in enic_get_ksettings() local 107 base->speed = vnic_dev_port_speed(enic->vdev); in enic_get_ksettings() 122 struct enic *eni in enic_get_drvinfo() local 169 struct enic *enic = netdev_priv(netdev); enic_get_ringparam() local 183 struct enic *enic = netdev_priv(netdev); enic_set_ringparam() local 256 struct enic *enic = netdev_priv(netdev); enic_get_ethtool_stats() local 279 struct enic *enic = netdev_priv(netdev); enic_get_msglevel() local 285 struct enic *enic = netdev_priv(netdev); enic_set_msglevel() local 294 struct enic *enic = netdev_priv(netdev); enic_get_coalesce() local 308 enic_coalesce_valid(struct enic *enic, struct ethtool_coalesce *ec) enic_coalesce_valid() argument 341 struct enic *enic = netdev_priv(netdev); enic_set_coalesce() local 388 enic_grxclsrlall(struct enic *enic, struct ethtool_rxnfc *cmd, u32 *rule_locs) enic_grxclsrlall() argument 412 enic_grxclsrule(struct enic *enic, struct ethtool_rxnfc *cmd) enic_grxclsrule() argument 449 enic_get_rx_flow_hash(struct enic *enic, struct ethtool_rxnfc *cmd) enic_get_rx_flow_hash() argument 495 struct enic *enic = netdev_priv(dev); enic_get_rxnfc() local 532 struct enic *enic = netdev_priv(dev); enic_get_tunable() local 551 struct enic *enic = netdev_priv(dev); enic_set_tunable() local 574 struct enic *enic = netdev_priv(netdev); enic_get_rxfh() local 588 struct enic *enic = netdev_priv(netdev); enic_set_rxfh() local [all...] |
H A D | enic_res.h | 28 #define ENIC_SETTING(enic, f) ((enic->config.flags & VENETF_##f) ? 1 : 0) 125 struct enic; 127 int enic_get_vnic_config(struct enic *); 128 int enic_add_vlan(struct enic *enic, u16 vlanid); 129 int enic_del_vlan(struct enic *enic, u16 vlanid); 130 int enic_set_nic_cfg(struct enic *enic, u [all...] |
H A D | enic_pp.h | 7 #define ENIC_PP_BY_INDEX(enic, vf, pp, err) \ 9 if (enic_is_valid_pp_vf(enic, vf, err)) \ 10 pp = (vf == PORT_SELF_VF) ? enic->pp : enic->pp + vf; \ 15 int enic_process_set_pp_request(struct enic *enic, int vf, 17 int enic_process_get_pp_request(struct enic *enic, int vf, 19 int enic_is_valid_pp_vf(struct enic *enic, in [all...] |
H A D | enic_api.c | 11 #include "enic.h" 18 struct enic *enic = netdev_priv(netdev); in enic_api_devcmd_proxy_by_index() local 19 struct vnic_dev *vdev = enic->vdev; in enic_api_devcmd_proxy_by_index() 21 spin_lock(&enic->enic_api_lock); in enic_api_devcmd_proxy_by_index() 22 while (enic->enic_api_busy) { in enic_api_devcmd_proxy_by_index() 23 spin_unlock(&enic->enic_api_lock); in enic_api_devcmd_proxy_by_index() 25 spin_lock(&enic->enic_api_lock); in enic_api_devcmd_proxy_by_index() 28 spin_lock_bh(&enic->devcmd_lock); in enic_api_devcmd_proxy_by_index() 34 spin_unlock_bh(&enic in enic_api_devcmd_proxy_by_index() [all...] |