Home
last modified time | relevance | path

Searched refs:bnge_dev (Results 1 – 19 of 19) sorted by relevance

/linux/drivers/net/ethernet/broadcom/bnge/
H A Dbnge_hwrm_lib.h14 int bnge_hwrm_ver_get(struct bnge_dev *bd);
15 int bnge_hwrm_func_reset(struct bnge_dev *bd);
16 int bnge_hwrm_fw_set_time(struct bnge_dev *bd);
17 int bnge_hwrm_func_drv_rgtr(struct bnge_dev *bd);
18 int bnge_hwrm_func_drv_unrgtr(struct bnge_dev *bd);
19 int bnge_hwrm_vnic_qcaps(struct bnge_dev *bd);
20 int bnge_hwrm_nvm_dev_info(struct bnge_dev *bd,
22 int bnge_hwrm_func_backing_store(struct bnge_dev *bd,
25 int bnge_hwrm_func_backing_store_qcaps(struct bnge_dev *bd);
26 int bnge_hwrm_reserve_rings(struct bnge_dev *bd,
[all …]
H A Dbnge_resc.c15 static u16 bnge_num_tx_to_cp(struct bnge_dev *bd, u16 tx) in bnge_num_tx_to_cp()
25 static u16 bnge_get_max_func_irqs(struct bnge_dev *bd) in bnge_get_max_func_irqs()
32 static unsigned int bnge_get_max_func_stat_ctxs(struct bnge_dev *bd) in bnge_get_max_func_stat_ctxs()
37 bool bnge_aux_has_enough_resources(struct bnge_dev *bd) in bnge_aux_has_enough_resources()
49 static unsigned int bnge_get_max_func_cp_rings(struct bnge_dev *bd) in bnge_get_max_func_cp_rings()
54 static int bnge_aux_get_dflt_msix(struct bnge_dev *bd) in bnge_aux_get_dflt_msix()
61 u16 bnge_aux_get_msix(struct bnge_dev *bd) in bnge_aux_get_msix()
69 static void bnge_aux_set_msix_num(struct bnge_dev *bd, u16 num) in bnge_aux_set_msix_num()
75 static u16 bnge_aux_get_stat_ctxs(struct bnge_dev *bd) in bnge_aux_get_stat_ctxs()
83 static void bnge_aux_set_stat_ctxs(struct bnge_dev *bd, u16 num_aux_ctx) in bnge_aux_set_stat_ctxs()
[all …]
H A Dbnge_hwrm.h91 void bnge_cleanup_hwrm_resources(struct bnge_dev *bd);
92 int bnge_init_hwrm_resources(struct bnge_dev *bd);
94 int bnge_hwrm_req_create(struct bnge_dev *bd, void **req, u16 req_type,
99 void *bnge_hwrm_req_hold(struct bnge_dev *bd, void *req);
100 void bnge_hwrm_req_drop(struct bnge_dev *bd, void *req);
101 void bnge_hwrm_req_flags(struct bnge_dev *bd, void *req,
103 void bnge_hwrm_req_timeout(struct bnge_dev *bd, void *req,
105 int bnge_hwrm_req_send(struct bnge_dev *bd, void *req);
106 int bnge_hwrm_req_send_silent(struct bnge_dev *bd, void *req);
107 void bnge_hwrm_req_alloc_flags(struct bnge_dev *bd, void *req, gfp_t flags);
[all …]
H A Dbnge_resc.h68 int bnge_reserve_rings(struct bnge_dev *bd);
70 int bnge_alloc_irqs(struct bnge_dev *bd);
71 void bnge_free_irqs(struct bnge_dev *bd);
72 int bnge_net_init_dflt_config(struct bnge_dev *bd);
73 void bnge_net_uninit_dflt_config(struct bnge_dev *bd);
74 void bnge_aux_init_dflt_config(struct bnge_dev *bd);
75 u32 bnge_get_rxfh_indir_size(struct bnge_dev *bd);
77 bool bnge_aux_has_enough_resources(struct bnge_dev *bd);
H A Dbnge_hwrm.c21 int bnge_hwrm_req_create(struct bnge_dev *bd, void **req, u16 req_type, in bnge_hwrm_req_create()
59 static struct bnge_hwrm_ctx *__hwrm_ctx_get(struct bnge_dev *bd, u8 *req_addr) in __hwrm_ctx_get()
84 void bnge_hwrm_req_timeout(struct bnge_dev *bd, in bnge_hwrm_req_timeout()
93 void bnge_hwrm_req_alloc_flags(struct bnge_dev *bd, void *req, gfp_t gfp) in bnge_hwrm_req_alloc_flags()
101 int bnge_hwrm_req_replace(struct bnge_dev *bd, void *req, void *new_req, in bnge_hwrm_req_replace()
141 void bnge_hwrm_req_flags(struct bnge_dev *bd, void *req, in bnge_hwrm_req_flags()
150 void *bnge_hwrm_req_hold(struct bnge_dev *bd, void *req) in bnge_hwrm_req_hold()
169 static void __hwrm_ctx_invalidate(struct bnge_dev *bd, in __hwrm_ctx_invalidate()
188 void bnge_hwrm_req_drop(struct bnge_dev *bd, void *req) in bnge_hwrm_req_drop()
228 bnge_hwrm_create_token(struct bnge_dev *bd, enum bnge_hwrm_chnl dst) in bnge_hwrm_create_token()
[all …]
H A Dbnge_core.c42 bool bnge_aux_registered(struct bnge_dev *bd) in bnge_aux_registered()
52 static void bnge_nvm_cfg_ver_get(struct bnge_dev *bd) in bnge_nvm_cfg_ver_get()
62 static int bnge_func_qcaps(struct bnge_dev *bd) in bnge_func_qcaps()
97 static void bnge_fw_unregister_dev(struct bnge_dev *bd) in bnge_fw_unregister_dev()
104 static void bnge_set_dflt_rss_hash_type(struct bnge_dev *bd) in bnge_set_dflt_rss_hash_type()
114 static int bnge_fw_register_dev(struct bnge_dev *bd) in bnge_fw_register_dev()
207 struct bnge_dev *bd = pci_get_drvdata(pdev); in bnge_unmap_bars()
220 static void bnge_set_max_func_irqs(struct bnge_dev *bd, in bnge_set_max_func_irqs()
234 static int bnge_map_db_bar(struct bnge_dev *bd) in bnge_map_db_bar()
249 struct bnge_dev *bd; in bnge_probe_one()
[all …]
H A Dbnge_auxr.c25 static void bnge_fill_msix_vecs(struct bnge_dev *bd, in bnge_fill_msix_vecs()
46 struct bnge_dev *bd = pci_get_drvdata(auxr_dev->pdev); in bnge_register_dev()
79 struct bnge_dev *bd = pci_get_drvdata(auxr_dev->pdev); in bnge_unregister_dev()
96 struct bnge_dev *bd = pci_get_drvdata(auxr_dev->pdev); in bnge_send_msg()
126 void bnge_rdma_aux_device_uninit(struct bnge_dev *bd) in bnge_rdma_aux_device_uninit()
144 struct bnge_dev *bd = pci_get_drvdata(aux_priv->auxr_dev->pdev); in bnge_aux_dev_release()
154 void bnge_rdma_aux_device_del(struct bnge_dev *bd) in bnge_rdma_aux_device_del()
163 struct bnge_dev *bd) in bnge_set_auxr_dev_info()
183 void bnge_rdma_aux_device_add(struct bnge_dev *bd) in bnge_rdma_aux_device_add()
202 void bnge_rdma_aux_device_init(struct bnge_dev *bd) in bnge_rdma_aux_device_init()
H A Dbnge_hwrm_lib.c18 int bnge_hwrm_ver_get(struct bnge_dev *bd) in bnge_hwrm_ver_get()
113 bnge_hwrm_nvm_dev_info(struct bnge_dev *bd, in bnge_hwrm_nvm_dev_info()
132 int bnge_hwrm_func_reset(struct bnge_dev *bd) in bnge_hwrm_func_reset()
146 int bnge_hwrm_fw_set_time(struct bnge_dev *bd) in bnge_hwrm_fw_set_time()
167 int bnge_hwrm_func_drv_rgtr(struct bnge_dev *bd) in bnge_hwrm_func_drv_rgtr()
205 int bnge_hwrm_func_drv_unrgtr(struct bnge_dev *bd) in bnge_hwrm_func_drv_unrgtr()
231 static int bnge_alloc_all_ctx_pg_info(struct bnge_dev *bd, int ctx_max) in bnge_alloc_all_ctx_pg_info()
257 int bnge_hwrm_func_backing_store_qcaps(struct bnge_dev *bd) in bnge_hwrm_func_backing_store_qcaps()
337 int bnge_hwrm_func_backing_store(struct bnge_dev *bd, in bnge_hwrm_func_backing_store()
386 static int bnge_hwrm_get_rings(struct bnge_dev *bd) in bnge_hwrm_get_rings()
[all …]
H A Dbnge_devlink.h13 void bnge_devlink_free(struct bnge_dev *bd);
14 struct bnge_dev *bnge_devlink_alloc(struct pci_dev *pdev);
15 void bnge_devlink_register(struct bnge_dev *bd);
16 void bnge_devlink_unregister(struct bnge_dev *bd);
H A Dbnge.h97 struct bnge_dev { struct
212 static inline bool bnge_is_roce_en(struct bnge_dev *bd) in bnge_is_roce_en() argument
217 static inline bool bnge_is_agg_reqd(struct bnge_dev *bd) in bnge_is_agg_reqd()
232 static inline void bnge_writeq(struct bnge_dev *bd, u64 val, in bnge_writeq()
245 static inline void bnge_db_write(struct bnge_dev *bd, struct bnge_db_info *db, in bnge_db_write()
252 bool bnge_aux_registered(struct bnge_dev *bd);
253 u16 bnge_aux_get_msix(struct bnge_dev *bd);
H A Dbnge_auxr.h75 void bnge_rdma_aux_device_uninit(struct bnge_dev *bdev);
76 void bnge_rdma_aux_device_del(struct bnge_dev *bdev);
77 void bnge_rdma_aux_device_add(struct bnge_dev *bdev);
78 void bnge_rdma_aux_device_init(struct bnge_dev *bdev);
H A Dbnge_devlink.c13 static int bnge_dl_info_put(struct bnge_dev *bd, struct devlink_info_req *req, in bnge_dl_info_put()
36 static void bnge_vpd_read_info(struct bnge_dev *bd) in bnge_vpd_read_info()
78 struct bnge_dev *bd = devlink_priv(devlink); in bnge_devlink_info_get()
266 void bnge_devlink_free(struct bnge_dev *bd) in bnge_devlink_free()
273 struct bnge_dev *bnge_devlink_alloc(struct pci_dev *pdev) in bnge_devlink_alloc()
276 struct bnge_dev *bd; in bnge_devlink_alloc()
296 void bnge_devlink_register(struct bnge_dev *bd) in bnge_devlink_register()
302 void bnge_devlink_unregister(struct bnge_dev *bd) in bnge_devlink_unregister()
H A Dbnge_rmem.h8 struct bnge_dev;
196 int bnge_alloc_ring(struct bnge_dev *bd, struct bnge_ring_mem_info *rmem);
197 void bnge_free_ring(struct bnge_dev *bd, struct bnge_ring_mem_info *rmem);
198 int bnge_alloc_ctx_mem(struct bnge_dev *bd);
199 void bnge_free_ctx_mem(struct bnge_dev *bd);
H A Dbnge_netdev.c40 struct bnge_dev *bd = bn->bd; in bnge_free_stats_mem()
52 struct bnge_dev *bd = bn->bd; in bnge_alloc_stats_mem()
64 struct bnge_dev *bd = bn->bd; in bnge_free_ring_stats()
80 struct bnge_dev *bd = bn->bd; in bnge_alloc_ring_stats()
164 struct bnge_dev *bd = bn->bd; in bnge_free_nq_arrays()
176 struct bnge_dev *bd = bn->bd; in bnge_alloc_nq_arrays()
195 struct bnge_dev *bd = bn->bd; in bnge_free_nq_tree()
230 struct bnge_dev *bd = bn->bd; in alloc_one_cp_ring()
255 struct bnge_dev *bd = bn->bd; in bnge_alloc_nq_tree()
413 struct bnge_dev *bd = bn->bd; in bnge_free_rx_ring_pair_bufs()
[all …]
H A Dbnge_rmem.c36 void bnge_free_ring(struct bnge_dev *bd, struct bnge_ring_mem_info *rmem) in bnge_free_ring()
69 int bnge_alloc_ring(struct bnge_dev *bd, struct bnge_ring_mem_info *rmem) in bnge_alloc_ring()
128 static int bnge_alloc_ctx_one_lvl(struct bnge_dev *bd, in bnge_alloc_ctx_one_lvl()
142 static int bnge_alloc_ctx_pg_tbls(struct bnge_dev *bd, in bnge_alloc_ctx_pg_tbls()
203 static void bnge_free_ctx_pg_tbls(struct bnge_dev *bd, in bnge_free_ctx_pg_tbls()
232 static int bnge_setup_ctxm_pg_tbls(struct bnge_dev *bd, in bnge_setup_ctxm_pg_tbls()
257 static int bnge_backing_store_cfg(struct bnge_dev *bd, u32 ena) in bnge_backing_store_cfg()
284 void bnge_free_ctx_mem(struct bnge_dev *bd) in bnge_free_ctx_mem()
320 int bnge_alloc_ctx_mem(struct bnge_dev *bd) in bnge_alloc_ctx_mem()
444 struct bnge_dev *bd = bn->bd; in bnge_init_ring_struct()
H A Dbnge_netdev.h228 struct bnge_dev *bd;
296 int bnge_netdev_alloc(struct bnge_dev *bd, int max_irqs);
297 void bnge_netdev_free(struct bnge_dev *bd);
298 void bnge_set_ring_params(struct bnge_dev *bd);
H A Dbnge_ethtool.c19 struct bnge_dev *bd = bn->bd; in bnge_get_drvinfo()
H A Dbnge_txrx.c480 struct bnge_dev *bd = bn->bd; in bnge_copy_skb()
775 struct bnge_dev *bd = bn->bd; in bnge_rx_skb()
1044 struct bnge_dev *bd = bn->bd; in __bnge_tx_int()
1132 bnge_hwrm_update_token(struct bnge_dev *bd, u16 seq_id, in bnge_hwrm_update_token()
1149 static int bnge_hwrm_handler(struct bnge_dev *bd, struct tx_cmp *txcmp) in bnge_hwrm_handler()
1305 struct bnge_dev *bd = bn->bd; in bnge_napi_poll()
1438 struct bnge_dev *bd = bn->bd; in bnge_start_xmit()
H A Dbnge_txrx.h18 static inline void bnge_writeq_relaxed(struct bnge_dev *bd, u64 val, in bnge_writeq_relaxed()