Home
last modified time | relevance | path

Searched refs:enic (Results 1 – 17 of 17) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/cisco/enic/
Denic_main.c115 static void enic_init_affinity_hint(struct enic *enic) in enic_init_affinity_hint() argument
117 int numa_node = dev_to_node(&enic->pdev->dev); in enic_init_affinity_hint()
120 for (i = 0; i < enic->intr_count; i++) { in enic_init_affinity_hint()
121 if (enic_is_err_intr(enic, i) || enic_is_notify_intr(enic, i) || in enic_init_affinity_hint()
122 (cpumask_available(enic->msix[i].affinity_mask) && in enic_init_affinity_hint()
123 !cpumask_empty(enic->msix[i].affinity_mask))) in enic_init_affinity_hint()
125 if (zalloc_cpumask_var(&enic->msix[i].affinity_mask, in enic_init_affinity_hint()
128 enic->msix[i].affinity_mask); in enic_init_affinity_hint()
132 static void enic_free_affinity_hint(struct enic *enic) in enic_free_affinity_hint() argument
136 for (i = 0; i < enic->intr_count; i++) { in enic_free_affinity_hint()
[all …]
Denic_dev.c13 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->vdev, vstats); in enic_dev_stats_dump()
30 spin_unlock_bh(&enic->devcmd_lock); in enic_dev_stats_dump()
35 int enic_dev_add_station_addr(struct enic *enic) in enic_dev_add_station_addr() argument
39 if (!is_valid_ether_addr(enic->netdev->dev_addr)) in enic_dev_add_station_addr()
[all …]
Denic_res.c29 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->vdev)); in enic_get_vnic_config()
84 dev_info(enic_get_dev(enic), in enic_get_vnic_config()
86 enic->mac_addr, c->wq_desc_count, c->rq_desc_count, c->mtu); in enic_get_vnic_config()
88 dev_info(enic_get_dev(enic), "vNIC csum tx/rx %s/%s " in enic_get_vnic_config()
[all …]
Denic_dev.h14 #define ENIC_DEVCMD_PROXY_BY_INDEX(vf, err, enic, vnicdevcmdfn, ...) \ argument
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, struct vnic_devcmd_fw_info **fw_info);
28 int enic_dev_stats_dump(struct enic *enic, struct vnic_stats **vstats);
[all …]
Denic_clsf.c21 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()
59 int enic_delfltr(struct enic *enic, u16 filter_id) in enic_delfltr() argument
63 spin_lock_bh(&enic->devcmd_lock); in enic_delfltr()
64 ret = vnic_dev_classifier(enic->vdev, CLSF_DEL, &filter_id, NULL); in enic_delfltr()
65 spin_unlock_bh(&enic->devcmd_lock); in enic_delfltr()
73 void enic_rfs_flw_tbl_init(struct enic *enic) in enic_rfs_flw_tbl_init() argument
77 spin_lock_init(&enic->rfs_h.lock); in enic_rfs_flw_tbl_init()
[all …]
Denic_pp.c23 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, vf, pp, &err); in enic_set_port_profile()
120 ENIC_DEVCMD_PROXY_BY_INDEX(vf, err, enic, vnic_dev_init_prov2, (u8 *)vp, in enic_set_port_profile()
130 static int enic_unset_port_profile(struct enic *enic, int vf) in enic_unset_port_profile() argument
134 ENIC_DEVCMD_PROXY_BY_INDEX(vf, err, enic, vnic_dev_deinit); in enic_unset_port_profile()
[all …]
Denic.h166 struct enic { struct
227 struct enic *enic = vdev->priv; in vnic_get_netdev() argument
229 return enic->netdev; in vnic_get_netdev()
248 static inline struct device *enic_get_dev(struct enic *enic) in enic_get_dev() argument
250 return &(enic->pdev->dev); in enic_get_dev()
253 static inline unsigned int enic_cq_rq(struct enic *enic, unsigned int rq) in enic_cq_rq() argument
258 static inline unsigned int enic_cq_wq(struct enic *enic, unsigned int wq) in enic_cq_wq() argument
260 return enic->rq_count + wq; in enic_cq_wq()
263 static inline unsigned int enic_msix_rq_intr(struct enic *enic, in enic_msix_rq_intr() argument
266 return enic->cq[enic_cq_rq(enic, rq)].interrupt_offset; in enic_msix_rq_intr()
[all …]
Denic_ethtool.c118 static void enic_intr_coal_set_rx(struct enic *enic, u32 timer) in enic_intr_coal_set_rx() argument
123 for (i = 0; i < enic->rq_count; i++) { in enic_intr_coal_set_rx()
124 intr = enic_msix_rq_intr(enic, i); in enic_intr_coal_set_rx()
125 vnic_intr_coalescing_timer_set(&enic->intr[intr], timer); in enic_intr_coal_set_rx()
132 struct enic *enic = netdev_priv(netdev); in enic_get_ksettings() local
144 base->speed = vnic_dev_port_speed(enic->vdev); in enic_get_ksettings()
159 struct enic *enic = netdev_priv(netdev); in enic_get_drvinfo() local
163 err = enic_dev_fw_info(enic, &fw_info); in enic_get_drvinfo()
174 strscpy(drvinfo->bus_info, pci_name(enic->pdev), in enic_get_drvinfo()
181 struct enic *enic = netdev_priv(netdev); in enic_get_strings() local
[all …]
Denic_clsf.h10 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 *enic, u16 fltr_id);
21 static inline void enic_rfs_timer_start(struct enic *enic) in enic_rfs_timer_start() argument
23 timer_setup(&enic->rfs_h.rfs_may_expire, enic_flow_may_expire, 0); in enic_rfs_timer_start()
24 mod_timer(&enic->rfs_h.rfs_may_expire, jiffies + HZ/4); in enic_rfs_timer_start()
27 static inline void enic_rfs_timer_stop(struct enic *enic) in enic_rfs_timer_stop() argument
29 del_timer_sync(&enic->rfs_h.rfs_may_expire); in enic_rfs_timer_stop()
[all …]
Denic_res.h28 #define ENIC_SETTING(enic, f) ((enic->config.flags & VENETF_##f) ? 1 : 0) argument
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, u8 rss_default_cpu, u8 rss_hash_type,
133 int enic_set_rss_key(struct enic *enic, dma_addr_t key_pa, u64 len);
134 int enic_set_rss_cpu(struct enic *enic, dma_addr_t cpu_pa, u64 len);
135 void enic_get_res_counts(struct enic *enic);
136 void enic_init_vnic_resources(struct enic *enic);
[all …]
Denic_pp.h7 #define ENIC_PP_BY_INDEX(enic, vf, pp, err) \ argument
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, int vf, int *err);
Denic_api.c18 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->devcmd_lock); in enic_api_devcmd_proxy_by_index()
35 spin_unlock(&enic->enic_api_lock); in enic_api_devcmd_proxy_by_index()
DMakefile2 obj-$(CONFIG_ENIC) := enic.o
4 enic-y := enic_main.o vnic_cq.o vnic_intr.o vnic_wq.o \
/linux-6.12.1/drivers/net/ethernet/cisco/
DMakefile6 obj-$(CONFIG_ENIC) += enic/
DKconfig20 source "drivers/net/ethernet/cisco/enic/Kconfig"
/linux-6.12.1/drivers/infiniband/hw/usnic/
DMakefile2 ccflags-y := -I $(srctree)/drivers/net/ethernet/cisco/enic
/linux-6.12.1/
DMAINTAINERS5511 F: drivers/net/ethernet/cisco/enic/