Home
last modified time | relevance | path

Searched refs:bnge_dev (Results 1 – 12 of 12) 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_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_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_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_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()
145 struct bnge_dev *bd = pci_get_drvdata(to_pci_dev(dev->parent)); in bnge_aux_dev_release()
157 void bnge_rdma_aux_device_del(struct bnge_dev *bd) in bnge_rdma_aux_device_del()
166 struct bnge_dev *bd) in bnge_set_auxr_dev_info()
186 void bnge_rdma_aux_device_add(struct bnge_dev *bd) in bnge_rdma_aux_device_add()
206 void bnge_rdma_aux_device_init(struct bnge_dev *bd) in bnge_rdma_aux_device_init()
H A Dbnge_hwrm_lib.c26 int bnge_hwrm_ver_get(struct bnge_dev *bd) in bnge_hwrm_ver_get()
121 bnge_hwrm_nvm_dev_info(struct bnge_dev *bd, in bnge_hwrm_nvm_dev_info()
140 int bnge_hwrm_func_reset(struct bnge_dev *bd) in bnge_hwrm_func_reset()
154 int bnge_hwrm_fw_set_time(struct bnge_dev *bd) in bnge_hwrm_fw_set_time()
175 int bnge_hwrm_func_drv_rgtr(struct bnge_dev *bd) in bnge_hwrm_func_drv_rgtr()
223 int bnge_hwrm_func_drv_unrgtr(struct bnge_dev *bd) in bnge_hwrm_func_drv_unrgtr()
249 static int bnge_alloc_all_ctx_pg_info(struct bnge_dev *bd, int ctx_max) in bnge_alloc_all_ctx_pg_info()
275 int bnge_hwrm_func_backing_store_qcaps(struct bnge_dev *bd) in bnge_hwrm_func_backing_store_qcaps()
361 int bnge_hwrm_func_backing_store(struct bnge_dev *bd, in bnge_hwrm_func_backing_store()
410 static int bnge_hwrm_get_rings(struct bnge_dev *bd) in bnge_hwrm_get_rings()
[all …]
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.h103 struct bnge_dev { struct
223 static inline bool bnge_is_roce_en(struct bnge_dev *bd) in bnge_is_roce_en() argument
228 static inline bool bnge_is_agg_reqd(struct bnge_dev *bd) in bnge_is_agg_reqd()
243 static inline void bnge_writeq(struct bnge_dev *bd, u64 val, in bnge_writeq()
256 static inline void bnge_db_write(struct bnge_dev *bd, struct bnge_db_info *db, in bnge_db_write()
263 bool bnge_aux_registered(struct bnge_dev *bd);
264 u16 bnge_aux_get_msix(struct bnge_dev *bd);
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.c41 struct bnge_dev *bd = bn->bd; in bnge_free_stats_mem()
57 struct bnge_dev *bd = bn->bd; in bnge_alloc_stats_mem()
85 struct bnge_dev *bd = bn->bd; in bnge_free_ring_stats()
120 struct bnge_dev *bd = bn->bd; in bnge_init_stats()
202 struct bnge_dev *bd = bn->bd; in bnge_alloc_ring_stats()
229 struct bnge_dev *bd = bn->bd; in bnge_alloc_port_ext_stats()
286 struct bnge_dev *bd = bn->bd; in bnge_timer()
346 static void bnge_accumulate_all_stats(struct bnge_dev *bd) in bnge_accumulate_all_stats()
397 struct bnge_dev *bd = bn->bd; in bnge_sp_task()
508 struct bnge_dev *bd = bn->bd; in bnge_free_nq_arrays()
[all …]
H A Dbnge_netdev.h287 struct bnge_dev *bd;
378 int bnge_netdev_alloc(struct bnge_dev *bd, int max_irqs);
379 void bnge_netdev_free(struct bnge_dev *bd);
380 void bnge_set_ring_params(struct bnge_dev *bd);