Home
last modified time | relevance | path

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

/drivers/net/ethernet/cisco/enic/
A Denic_main.c474 struct enic *enic = data; in enic_isr_msi() local
508 struct enic *enic = data; in enic_isr_msix_err() local
522 struct enic *enic = data; in enic_isr_msix_notify() local
1513 struct enic *enic = timer_container_of(enic, t, notify_timer); in enic_notify_timer() local
1593 enic->msix[intr].devid = enic; in enic_request_intr()
1600 enic->msix[intr].devid = enic; in enic_request_intr()
2128 struct enic *enic = container_of(work, struct enic, reset); in enic_reset() local
2317 enic->cq_count = enic->rq_count + enic->wq_count; in enic_adjust_resources()
2471 enic->napi = kcalloc(enic->wq_avail + enic->rq_avail, in enic_alloc_enic_resources()
2628 struct enic *enic; in enic_probe() local
[all …]
A Denic_dev.c35 int enic_dev_add_station_addr(struct enic *enic) in enic_dev_add_station_addr() argument
49 int enic_dev_del_station_addr(struct enic *enic) in enic_dev_del_station_addr() argument
76 int enic_dev_add_addr(struct enic *enic, const u8 *addr) in enic_dev_add_addr() argument
87 int enic_dev_del_addr(struct enic *enic, const u8 *addr) in enic_dev_del_addr() argument
98 int enic_dev_notify_unset(struct enic *enic) in enic_dev_notify_unset() argument
109 int enic_dev_hang_notify(struct enic *enic) in enic_dev_hang_notify() argument
132 int enic_dev_enable(struct enic *enic) in enic_dev_enable() argument
143 int enic_dev_disable(struct enic *enic) in enic_dev_disable() argument
154 int enic_dev_intr_coal_timer_info(struct enic *enic) in enic_dev_intr_coal_timer_info() argument
168 struct enic *enic = netdev_priv(netdev); in enic_vlan_rx_add_vid() local
[all …]
A Denic_res.c29 int enic_get_vnic_config(struct enic *enic) in enic_get_vnic_config() argument
195 void enic_get_res_counts(struct enic *enic) in enic_get_res_counts() argument
203 enic->wq_count = enic->wq_avail; in enic_get_res_counts()
204 enic->rq_count = enic->rq_avail; in enic_get_res_counts()
205 enic->cq_count = enic->cq_avail; in enic_get_res_counts()
206 enic->intr_count = enic->intr_avail; in enic_get_res_counts()
210 enic->wq_avail, enic->rq_avail, in enic_get_res_counts()
211 enic->cq_avail, enic->intr_avail); in enic_get_res_counts()
330 enic->wq_count, enic->rq_count, in enic_alloc_vnic_resources()
331 enic->cq_count, enic->intr_count, in enic_alloc_vnic_resources()
[all …]
A Denic_dev.h28 int enic_dev_stats_dump(struct enic *enic, struct vnic_stats **vstats);
29 int enic_dev_add_station_addr(struct enic *enic);
30 int enic_dev_del_station_addr(struct enic *enic);
33 int enic_dev_add_addr(struct enic *enic, const u8 *addr);
34 int enic_dev_del_addr(struct enic *enic, const u8 *addr);
37 int enic_dev_notify_unset(struct enic *enic);
38 int enic_dev_hang_notify(struct enic *enic);
39 int enic_dev_set_ig_vlan_rewrite_mode(struct enic *enic);
40 int enic_dev_enable(struct enic *enic);
41 int enic_dev_disable(struct enic *enic);
[all …]
A Denic_clsf.c21 int enic_addfltr_5t(struct enic *enic, struct flow_keys *keys, u16 rq) in enic_addfltr_5t() argument
59 int enic_delfltr(struct enic *enic, u16 filter_id) in enic_delfltr() argument
73 void enic_rfs_flw_tbl_init(struct enic *enic) in enic_rfs_flw_tbl_init() argument
80 enic->rfs_h.max = enic->config.num_arfs; in enic_rfs_flw_tbl_init()
81 enic->rfs_h.free = enic->rfs_h.max; in enic_rfs_flw_tbl_init()
85 void enic_rfs_flw_tbl_free(struct enic *enic) in enic_rfs_flw_tbl_free() argument
101 enic->rfs_h.free++; in enic_rfs_flw_tbl_free()
107 struct enic_rfs_fltr_node *htbl_fltr_search(struct enic *enic, u16 fltr_id) in htbl_fltr_search() argument
128 struct enic *enic = timer_container_of(enic, t, rfs_h.rfs_may_expire); in enic_flow_may_expire() local
138 hhead = &enic->rfs_h.ht_head[enic->rfs_h.toclean++]; in enic_flow_may_expire()
[all …]
A Denic_pp.c23 int enic_is_valid_pp_vf(struct enic *enic, int vf, int *err) in enic_is_valid_pp_vf() argument
54 static int enic_set_port_profile(struct enic *enic, int vf) in enic_set_port_profile() argument
130 static int enic_unset_port_profile(struct enic *enic, int vf) in enic_unset_port_profile() argument
153 static int enic_pp_preassociate(struct enic *enic, int vf,
155 static int enic_pp_disassociate(struct enic *enic, int vf,
159 static int enic_pp_associate(struct enic *enic, int vf,
162 static int (*enic_pp_handlers[])(struct enic *enic, int vf,
174 static int enic_pp_preassociate(struct enic *enic, int vf, in enic_pp_preassociate() argument
180 static int enic_pp_disassociate(struct enic *enic, int vf, in enic_pp_disassociate() argument
241 static int enic_pp_associate(struct enic *enic, int vf, in enic_pp_associate() argument
[all …]
A Denic_ethtool.c132 struct enic *enic = netdev_priv(netdev); in enic_get_ksettings() local
159 struct enic *enic = netdev_priv(netdev); in enic_get_drvinfo() local
181 struct enic *enic = netdev_priv(netdev); in enic_get_strings() local
222 struct enic *enic = netdev_priv(netdev); in enic_get_ringparam() local
236 struct enic *enic = netdev_priv(netdev); in enic_set_ringparam() local
298 struct enic *enic = netdev_priv(netdev); in enic_get_sset_count() local
319 struct enic *enic = netdev_priv(netdev); in enic_get_ethtool_stats() local
361 struct enic *enic = netdev_priv(netdev); in enic_get_msglevel() local
367 struct enic *enic = netdev_priv(netdev); in enic_set_msglevel() local
534 struct enic *enic = netdev_priv(dev); in enic_get_rx_flow_hash() local
[all …]
A Denic.h190 struct enic { struct
248 struct enic *enic = vdev->priv; in vnic_get_netdev() local
269 static inline struct device *enic_get_dev(struct enic *enic) in enic_get_dev() argument
287 return enic->cq[enic_cq_rq(enic, rq)].interrupt_offset; in enic_msix_rq_intr()
293 return enic->cq[enic_cq_wq(enic, wq)].interrupt_offset; in enic_msix_wq_intr()
359 void enic_reset_addr_lists(struct enic *enic);
360 int enic_sriov_enabled(struct enic *enic);
361 int enic_is_valid_vf(struct enic *enic, int vf);
362 int enic_is_dynamic(struct enic *enic);
364 int __enic_set_rsskey(struct enic *enic);
[all …]
A 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
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 timer_delete_sync(&enic->rfs_h.rfs_may_expire); in enic_rfs_timer_stop()
32 static inline void enic_rfs_timer_start(struct enic *enic) {} in enic_rfs_timer_start() argument
[all …]
A Denic_wq.c43 struct enic *enic = vnic_dev_priv(wq->vdev); in enic_free_wq_buf() local
59 struct enic *enic = vnic_dev_priv(wq->vdev); in enic_wq_free_buf() local
61 enic->wq[wq->index].stats.cq_work++; in enic_wq_free_buf()
62 enic->wq[wq->index].stats.cq_bytes += buf->len; in enic_wq_free_buf()
69 struct enic *enic = vnic_dev_priv(vdev); in enic_wq_service() local
71 spin_lock(&enic->wq[q_number].lock); in enic_wq_service()
79 netif_wake_subqueue(enic->netdev, q_number); in enic_wq_service()
80 enic->wq[q_number].stats.wake++; in enic_wq_service()
83 spin_unlock(&enic->wq[q_number].lock); in enic_wq_service()
86 unsigned int enic_wq_cq_service(struct enic *enic, unsigned int cq_index, in enic_wq_cq_service() argument
[all …]
A Denic_res.h31 #define ENIC_SETTING(enic, f) ((enic->config.flags & VENETF_##f) ? 1 : 0) argument
128 struct enic;
130 int enic_get_vnic_config(struct enic *);
131 int enic_add_vlan(struct enic *enic, u16 vlanid);
132 int enic_del_vlan(struct enic *enic, u16 vlanid);
133 int enic_set_nic_cfg(struct enic *enic, u8 rss_default_cpu, u8 rss_hash_type,
136 int enic_set_rss_key(struct enic *enic, dma_addr_t key_pa, u64 len);
137 int enic_set_rss_cpu(struct enic *enic, dma_addr_t cpu_pa, u64 len);
138 void enic_get_res_counts(struct enic *enic);
139 void enic_init_vnic_resources(struct enic *enic);
[all …]
A Denic_rq.c104 struct enic *enic = vnic_dev_priv(vrq->vdev); in enic_rq_set_skb_flags() local
125 if (enic->vxlan.vxlan_udp_port_number) { in enic_rq_set_skb_flags()
126 switch (enic->vxlan.patch_level) { in enic_rq_set_skb_flags()
255 struct enic *enic = vnic_dev_priv(vrq->vdev); in enic_rq_pkt_error() local
272 struct enic *enic = vnic_dev_priv(rq->vdev); in enic_rq_alloc_buf() local
306 struct enic *enic = vnic_dev_priv(rq->vdev); in enic_free_rq_buf() local
316 static void enic_rq_indicate_buf(struct enic *enic, struct vnic_rq *rq, in enic_rq_indicate_buf() argument
321 struct vnic_cq *cq = &enic->cq[enic_cq_rq(enic, rq->index)]; in enic_rq_indicate_buf()
350 napi = &enic->napi[rq->index]; in enic_rq_indicate_buf()
387 static void enic_rq_service(struct enic *enic, void *cq_desc, u8 type, in enic_rq_service() argument
[all …]
A 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);
A 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()
A Denic_wq.h6 unsigned int enic_wq_cq_service(struct enic *enic, unsigned int cq_index,
A Denic_rq.h5 unsigned int enic_rq_cq_service(struct enic *enic, unsigned int cq_index,
A DMakefile2 obj-$(CONFIG_ENIC) := enic.o
4 enic-y := enic_main.o vnic_cq.o vnic_intr.o vnic_wq.o \
/drivers/net/ethernet/cisco/
A DMakefile6 obj-$(CONFIG_ENIC) += enic/
A DKconfig20 source "drivers/net/ethernet/cisco/enic/Kconfig"
/drivers/infiniband/hw/usnic/
A DMakefile2 ccflags-y := -I $(srctree)/drivers/net/ethernet/cisco/enic

Completed in 39 milliseconds