Home
last modified time | relevance | path

Searched refs:bnxt_softc (Results 1 – 15 of 15) sorted by relevance

/freebsd/sys/dev/bnxt/bnxt_en/
H A Dbnxt_hwrm.h43 hwrm_send_message(struct bnxt_softc *softc, void *msg, uint32_t msg_len);
44 int bnxt_alloc_hwrm_dma_mem(struct bnxt_softc *softc);
45 void bnxt_free_hwrm_dma_mem(struct bnxt_softc *softc);
46 int bnxt_hwrm_ring_alloc(struct bnxt_softc *softc, uint8_t type,
48 int bnxt_hwrm_ring_free(struct bnxt_softc *softc, uint32_t type,
50 int bnxt_hwrm_ver_get(struct bnxt_softc *softc);
51 int bnxt_hwrm_queue_qportcfg(struct bnxt_softc *softc, uint32_t path_dir);
52 int bnxt_hwrm_func_drv_rgtr(struct bnxt_softc *bp, unsigned long *bmap, int bmap_size,
54 int bnxt_hwrm_func_drv_unrgtr(struct bnxt_softc *softc, bool shutdown);
55 int bnxt_hwrm_func_qcaps(struct bnxt_softc *softc);
[all …]
H A Dbnxt_sysctl.h32 int bnxt_init_sysctl_ctx(struct bnxt_softc *softc);
33 int bnxt_free_sysctl_ctx(struct bnxt_softc *softc);
34 int bnxt_create_port_stats_sysctls(struct bnxt_softc *softc);
35 int bnxt_create_tx_sysctls(struct bnxt_softc *softc, int txr);
36 int bnxt_create_rx_sysctls(struct bnxt_softc *softc, int rxr);
37 int bnxt_create_ver_sysctls(struct bnxt_softc *softc);
39 int bnxt_create_config_sysctls_pre(struct bnxt_softc *softc);
40 int bnxt_create_config_sysctls_post(struct bnxt_softc *softc);
41 int bnxt_create_hw_lro_sysctls(struct bnxt_softc *softc);
42 int bnxt_create_pause_fc_sysctls(struct bnxt_softc *softc);
[all …]
H A Dbnxt_sriov.h49 struct bnxt_softc;
95 void bnxt_sriov_attach(struct bnxt_softc *softc);
99 int bnxt_hwrm_func_vf_resource_free(struct bnxt_softc *softc, int num_vfs);
100 void bnxt_free_vf_resources(struct bnxt_softc *softc);
101 int bnxt_create_trusted_vf_sysctls(struct bnxt_softc *softc, uint16_t num_vfs);
102 int bnxt_create_spoofchk_vf_sysctls(struct bnxt_softc *softc, uint16_t num_vfs);
103 bool bnxt_is_trusted_vf(struct bnxt_softc *bp, struct bnxt_vf_info *vf);
104 void bnxt_hwrm_exec_fwd_req(struct bnxt_softc *bp);
105 void bnxt_destroy_trusted_vf_sysctls(struct bnxt_softc *softc);
106 int bnxt_set_vf_trust(struct bnxt_softc *softc, int vf_id, bool trusted);
[all …]
H A Dbnxt_ulp.h43 struct bnxt_softc;
83 struct bnxt_softc *softc;
155 int bnxt_get_ulp_msix_num(struct bnxt_softc *bp);
156 int bnxt_get_ulp_msix_base(struct bnxt_softc *bp);
157 int bnxt_get_ulp_stat_ctxs(struct bnxt_softc *bp);
158 void bnxt_ulp_stop(struct bnxt_softc *bp);
159 void bnxt_ulp_start(struct bnxt_softc *bp, int err);
160 void bnxt_ulp_sriov_cfg(struct bnxt_softc *bp, int num_vfs);
161 void bnxt_ulp_shutdown(struct bnxt_softc *bp);
162 void bnxt_ulp_irq_stop(struct bnxt_softc *bp);
[all …]
H A Dbnxt_ulp.c52 void bnxt_destroy_irq(struct bnxt_softc *softc);
57 struct bnxt_softc *bp = edev->softc; in bnxt_register_dev()
89 struct bnxt_softc *bp = edev->softc; in bnxt_unregister_dev()
117 static void bnxt_fill_msix_vecs(struct bnxt_softc *bp, struct bnxt_msix_entry *ent) in bnxt_fill_msix_vecs()
138 struct bnxt_softc *bp = edev->softc; in bnxt_req_msix_vecs()
162 struct bnxt_softc *bp = edev->softc; in bnxt_free_msix_vecs()
182 int bnxt_get_ulp_msix_num(struct bnxt_softc *bp) in bnxt_get_ulp_msix_num()
192 int bnxt_get_ulp_msix_base(struct bnxt_softc *bp) in bnxt_get_ulp_msix_base()
206 struct bnxt_softc *softc = edev->softc; in bnxt_send_msg()
227 void bnxt_ulp_stop(struct bnxt_softc *bp) in bnxt_ulp_stop()
[all …]
H A Dbnxt_sriov.c11 bnxt_set_vf_admin_mac(struct bnxt_softc *softc, struct bnxt_vf_info *vf, in bnxt_set_vf_admin_mac()
34 bnxt_vf_parse_schema(struct bnxt_softc *softc, struct bnxt_vf_info *vf, in bnxt_vf_parse_schema()
70 struct bnxt_softc *softc = iflib_get_softc(ctx); in bnxt_iov_vf_add()
95 void bnxt_free_vf_resources(struct bnxt_softc *softc) in bnxt_free_vf_resources()
122 bnxt_hwrm_func_vf_resource_free(struct bnxt_softc *softc, int num_vfs) in bnxt_hwrm_func_vf_resource_free()
149 struct bnxt_softc *softc = iflib_get_softc(ctx); in bnxt_iov_uninit()
185 static int bnxt_set_vf_params(struct bnxt_softc *softc, int vf_id) in bnxt_set_vf_params()
219 int bnxt_approve_mac(struct bnxt_softc *sc) in bnxt_approve_mac()
248 bnxt_update_vf_mac(struct bnxt_softc *sc) in bnxt_update_vf_mac()
282 bnxt_hwrm_fwd_err_resp(struct bnxt_softc *softc, struct bnxt_vf_info *vf, in bnxt_hwrm_fwd_err_resp()
[all …]
H A Dbnxt_dcb.c39 bnxt_tx_queue_to_tc(struct bnxt_softc *softc, uint8_t queue_id) in bnxt_tx_queue_to_tc()
55 bnxt_hwrm_queue_pri2cos_cfg(struct bnxt_softc *softc, in bnxt_hwrm_queue_pri2cos_cfg()
85 bnxt_hwrm_queue_pri2cos_qcfg(struct bnxt_softc *softc, struct bnxt_ieee_ets *ets) in bnxt_hwrm_queue_pri2cos_qcfg()
113 bnxt_hwrm_queue_cos2bw_cfg(struct bnxt_softc *softc, struct bnxt_ieee_ets *ets, in bnxt_hwrm_queue_cos2bw_cfg()
159 bnxt_hwrm_queue_cos2bw_qcfg(struct bnxt_softc *softc, struct bnxt_ieee_ets *ets) in bnxt_hwrm_queue_cos2bw_qcfg()
198 bnxt_queue_remap(struct bnxt_softc *softc, unsigned int lltc_mask) in bnxt_queue_remap()
244 bnxt_hwrm_queue_pfc_cfg(struct bnxt_softc *softc, struct bnxt_ieee_pfc *pfc) in bnxt_hwrm_queue_pfc_cfg()
295 bnxt_hwrm_queue_pfc_qcfg(struct bnxt_softc *softc, struct bnxt_ieee_pfc *pfc) in bnxt_hwrm_queue_pfc_qcfg()
316 bnxt_hwrm_get_dcbx_app(struct bnxt_softc *softc, struct bnxt_dcb_app *app, in bnxt_hwrm_get_dcbx_app()
370 bnxt_hwrm_set_dcbx_app(struct bnxt_softc *softc, struct bnxt_dcb_app *app, in bnxt_hwrm_set_dcbx_app()
[all …]
H A Dif_bnxt.c198 process_nq(struct bnxt_softc *softc, uint16_t nqid);
244 static int bnxt_probe_phy(struct bnxt_softc *softc);
245 static void bnxt_add_media_types(struct bnxt_softc *softc);
246 static int bnxt_pci_mapping(struct bnxt_softc *softc);
247 static void bnxt_pci_mapping_free(struct bnxt_softc *softc);
248 static int bnxt_update_link(struct bnxt_softc *softc, bool chng_link_state);
251 static void bnxt_clear_ids(struct bnxt_softc *softc);
256 static void bnxt_handle_async_event(struct bnxt_softc *softc,
259 static void bnxt_get_wol_settings(struct bnxt_softc *softc);
263 static void bnxt_get_port_module_status(struct bnxt_softc *softc);
[all …]
H A Dbnxt_txrx.c91 struct bnxt_softc *softc = (struct bnxt_softc *)sc; in bnxt_isc_txd_encap()
212 struct bnxt_softc *softc = (struct bnxt_softc *)sc; in bnxt_isc_txd_flush()
223 struct bnxt_softc *softc = (struct bnxt_softc *)sc; in bnxt_isc_txd_credits_update()
295 struct bnxt_softc *softc = (struct bnxt_softc *)sc; in bnxt_isc_rxd_refill()
348 struct bnxt_softc *softc = (struct bnxt_softc *)sc; in bnxt_isc_rxd_flush()
369 struct bnxt_softc *softc = (struct bnxt_softc *)sc; in bnxt_isc_rxd_available()
493 bnxt_pkt_get_l2(struct bnxt_softc *softc, if_rxd_info_t ri, in bnxt_pkt_get_l2()
572 bnxt_pkt_get_tpa(struct bnxt_softc *softc, if_rxd_info_t ri, in bnxt_pkt_get_tpa()
660 struct bnxt_softc *softc = (struct bnxt_softc *)sc; in bnxt_isc_rxd_pkt_get()
723 struct bnxt_softc *softc = (struct bnxt_softc *)sc; in bnxt_intr()
H A Dbnxt_hwrm.c40 static void bnxt_hwrm_set_link_common(struct bnxt_softc *softc,
42 static void bnxt_hwrm_set_pause_common(struct bnxt_softc *softc,
44 static void bnxt_hwrm_set_eee(struct bnxt_softc *softc,
120 bnxt_alloc_hwrm_dma_mem(struct bnxt_softc *softc) in bnxt_alloc_hwrm_dma_mem()
130 bnxt_free_hwrm_dma_mem(struct bnxt_softc *softc) in bnxt_free_hwrm_dma_mem()
139 bnxt_hwrm_cmd_hdr_init(struct bnxt_softc *softc, void *request, in bnxt_hwrm_cmd_hdr_init()
151 _hwrm_send_message(struct bnxt_softc *softc, void *msg, uint32_t msg_len) in _hwrm_send_message()
268 hwrm_send_message(struct bnxt_softc *softc, void *msg, uint32_t msg_len) in hwrm_send_message()
279 bnxt_hwrm_queue_qportcfg(struct bnxt_softc *softc, uint32_t path_dir) in bnxt_hwrm_queue_qportcfg()
361 static int bnxt_alloc_all_ctx_pg_info(struct bnxt_softc *softc, int ctx_max) in bnxt_alloc_all_ctx_pg_info()
[all …]
H A Dbnxt_sysctl.c39 extern void bnxt_fw_reset(struct bnxt_softc *bp);
40 extern void bnxt_queue_sp_work(struct bnxt_softc *bp);
42 process_nq(struct bnxt_softc *softc, uint16_t nqid);
56 bnxt_init_sysctl_ctx(struct bnxt_softc *softc) in bnxt_init_sysctl_ctx()
128 bnxt_free_sysctl_ctx(struct bnxt_softc *softc) in bnxt_free_sysctl_ctx()
182 bnxt_create_tx_sysctls(struct bnxt_softc *softc, int txr) in bnxt_create_tx_sysctls()
226 bnxt_create_port_stats_sysctls(struct bnxt_softc *softc) in bnxt_create_port_stats_sysctls()
990 bnxt_create_rx_sysctls(struct bnxt_softc *softc, int rxr) in bnxt_create_rx_sysctls()
1098 struct bnxt_softc *softc = arg1; in bnxt_package_ver_sysctl()
1139 struct bnxt_softc *softc = arg1; in bnxt_hwrm_min_ver_sysctl()
[all …]
H A Dbnxt.h591 struct bnxt_softc *softc;
896 struct bnxt_softc *softc;
1048 struct bnxt_softc { struct
1381 void bnxt_report_link(struct bnxt_softc *softc);
1382 bool bnxt_check_hwrm_version(struct bnxt_softc *softc);
1383 struct bnxt_softc *bnxt_find_dev(uint32_t domain, uint32_t bus, uint32_t dev_fn, char *name);
1384 int bnxt_read_sfp_module_eeprom_info(struct bnxt_softc *bp, uint16_t i2c_addr,
1387 void bnxt_dcb_init(struct bnxt_softc *softc);
1388 void bnxt_dcb_free(struct bnxt_softc *softc);
1389 uint8_t bnxt_dcb_setdcbx(struct bnxt_softc *softc, uint8_t mode);
[all …]
H A Dbnxt_mgmt.c102 struct bnxt_softc *softc = NULL; in bnxt_mgmt_process_dcb()
167 struct bnxt_softc *softc = NULL; in bnxt_mgmt_process_hwrm()
304 struct bnxt_softc *softc = NULL; in bnxt_mgmt_get_dev_info()
/freebsd/sys/dev/bnxt/bnxt_re/
H A Dbnxt_re.h1052 void writel_fbsd(struct bnxt_softc *bp, u32, u8, u32);
1053 u32 readl_fbsd(struct bnxt_softc *bp, u32, u8);
H A Dmain.c115 void writel_fbsd(struct bnxt_softc *bp, u32, u8, u32);
116 u32 readl_fbsd(struct bnxt_softc *bp, u32, u8);
158 u32 readl_fbsd(struct bnxt_softc *bp, u32 reg_off, u8 bar_idx) in readl_fbsd()
167 void writel_fbsd(struct bnxt_softc *bp, u32 reg_off, u8 bar_idx, u32 val) in writel_fbsd()