Home
last modified time | relevance | path

Searched refs:softc (Results 1 – 25 of 210) sorted by relevance

123456789

/freebsd/sys/dev/bnxt/bnxt_en/
H A Dbnxt_sysctl.c42 process_nq(struct bnxt_softc *softc, uint16_t nqid);
56 bnxt_init_sysctl_ctx(struct bnxt_softc *softc) in bnxt_init_sysctl_ctx() argument
60 sysctl_ctx_init(&softc->hw_stats); in bnxt_init_sysctl_ctx()
61 ctx = device_get_sysctl_ctx(softc->dev); in bnxt_init_sysctl_ctx()
62 softc->hw_stats_oid = SYSCTL_ADD_NODE(ctx, in bnxt_init_sysctl_ctx()
63 SYSCTL_CHILDREN(device_get_sysctl_tree(softc->dev)), OID_AUTO, in bnxt_init_sysctl_ctx()
65 if (!softc->hw_stats_oid) { in bnxt_init_sysctl_ctx()
66 sysctl_ctx_free(&softc->hw_stats); in bnxt_init_sysctl_ctx()
70 sysctl_ctx_init(&softc->ver_info->ver_ctx); in bnxt_init_sysctl_ctx()
71 ctx = device_get_sysctl_ctx(softc in bnxt_init_sysctl_ctx()
128 bnxt_free_sysctl_ctx(struct bnxt_softc * softc) bnxt_free_sysctl_ctx() argument
182 bnxt_create_tx_sysctls(struct bnxt_softc * softc,int txr) bnxt_create_tx_sysctls() argument
226 bnxt_create_port_stats_sysctls(struct bnxt_softc * softc) bnxt_create_port_stats_sysctls() argument
990 bnxt_create_rx_sysctls(struct bnxt_softc * softc,int rxr) bnxt_create_rx_sysctls() argument
1098 struct bnxt_softc *softc = arg1; bnxt_package_ver_sysctl() local
1139 struct bnxt_softc *softc = arg1; bnxt_hwrm_min_ver_sysctl() local
1162 bnxt_create_ver_sysctls(struct bnxt_softc * softc) bnxt_create_ver_sysctls() argument
1264 struct bnxt_softc *softc = arg1; bnxt_rss_key_sysctl() local
1310 struct bnxt_softc *softc = arg1; bnxt_rss_type_sysctl() local
1351 struct bnxt_softc *softc = arg1; bnxt_rx_stall_sysctl() local
1376 struct bnxt_softc *softc = arg1; bnxt_vlan_strip_sysctl() local
1401 struct bnxt_softc *softc = arg1; bnxt_set_coal_rx_usecs() local
1421 struct bnxt_softc *softc = arg1; bnxt_set_coal_rx_frames() local
1441 struct bnxt_softc *softc = arg1; bnxt_set_coal_rx_usecs_irq() local
1461 struct bnxt_softc *softc = arg1; bnxt_set_coal_rx_frames_irq() local
1481 struct bnxt_softc *softc = arg1; bnxt_set_coal_tx_usecs() local
1501 struct bnxt_softc *softc = arg1; bnxt_set_coal_tx_frames() local
1521 struct bnxt_softc *softc = arg1; bnxt_set_coal_tx_usecs_irq() local
1541 struct bnxt_softc *softc = arg1; bnxt_set_coal_tx_frames_irq() local
1582 struct bnxt_softc *softc = arg1; bnxt_reset_ctrl() local
1600 bnxt_create_config_sysctls_pre(struct bnxt_softc * softc) bnxt_create_config_sysctls_pre() argument
1752 bnxt_create_hw_lro_sysctls(struct bnxt_softc * softc) bnxt_create_hw_lro_sysctls() argument
1792 struct bnxt_softc *softc = arg1; bnxt_dcb_dcbx_cap() local
1807 bnxt_ets_tsa_to_str(struct bnxt_softc * softc,uint32_t tc) bnxt_ets_tsa_to_str() argument
1834 bnxt_ets_get_val(struct bnxt_softc * softc,uint32_t type,uint32_t tc) bnxt_ets_get_val() argument
1857 bnxt_pfc_get_string(struct bnxt_softc * softc,char * buf,struct bnxt_ieee_pfc * pfc) bnxt_pfc_get_string() argument
1911 bnxt_ets_get_string(struct bnxt_softc * softc,char * buf) bnxt_ets_get_string() argument
1941 struct bnxt_softc *softc = arg1; bnxt_dcb_list_app() local
1955 struct bnxt_softc *softc = arg1; bnxt_dcb_del_app() local
1979 struct bnxt_softc *softc = arg1; bnxt_dcb_set_app() local
2004 struct bnxt_softc *softc = arg1; bnxt_dcb_pfc() local
2060 struct bnxt_softc *softc = arg1; bnxt_dcb_ets() local
2097 bnxt_create_dcb_sysctls(struct bnxt_softc * softc) bnxt_create_dcb_sysctls() argument
2133 bnxt_create_config_sysctls_post(struct bnxt_softc * softc) bnxt_create_config_sysctls_post() argument
[all...]
H A Dif_bnxt.c202 process_nq(struct bnxt_softc *softc, uint16_t nqid);
223 static void bnxt_led_restore(struct bnxt_softc *softc);
252 static int bnxt_probe_phy(struct bnxt_softc *softc);
253 static void bnxt_add_media_types(struct bnxt_softc *softc);
254 static int bnxt_pci_mapping(struct bnxt_softc *softc);
255 static void bnxt_pci_mapping_free(struct bnxt_softc *softc);
256 static int bnxt_update_link(struct bnxt_softc *softc, bool chng_link_state);
259 static void bnxt_clear_ids(struct bnxt_softc *softc);
264 static void bnxt_handle_async_event(struct bnxt_softc *softc,
267 static void bnxt_get_wol_settings(struct bnxt_softc *softc);
500 bnxt_set_flags_by_devid(struct bnxt_softc * softc) bnxt_set_flags_by_devid() argument
555 bnxt_nq_alloc(struct bnxt_softc * softc,int nqsets) bnxt_nq_alloc() argument
566 bnxt_nq_free(struct bnxt_softc * softc) bnxt_nq_free() argument
595 struct bnxt_softc *softc; bnxt_tx_queues_alloc() local
707 struct bnxt_softc *softc = iflib_get_softc(ctx); bnxt_queues_free() local
737 struct bnxt_softc *softc; bnxt_rx_queues_alloc() local
981 bnxt_free_hwrm_short_cmd_req(struct bnxt_softc * softc) bnxt_free_hwrm_short_cmd_req() argument
988 bnxt_alloc_hwrm_short_cmd_req(struct bnxt_softc * softc) bnxt_alloc_hwrm_short_cmd_req() argument
998 bnxt_free_ring(struct bnxt_softc * softc,struct bnxt_ring_mem_info * rmem) bnxt_free_ring() argument
1037 bnxt_alloc_ring(struct bnxt_softc * softc,struct bnxt_ring_mem_info * rmem) bnxt_alloc_ring() argument
1098 bnxt_alloc_ctx_mem_blk(struct bnxt_softc * softc,struct bnxt_ctx_pg_info * ctx_pg) bnxt_alloc_ctx_mem_blk() argument
1113 bnxt_alloc_ctx_pg_tbls(struct bnxt_softc * softc,struct bnxt_ctx_pg_info * ctx_pg,uint32_t mem_size,uint8_t depth,struct bnxt_ctx_mem_type * ctxm) bnxt_alloc_ctx_pg_tbls() argument
1173 bnxt_free_ctx_pg_tbls(struct bnxt_softc * softc,struct bnxt_ctx_pg_info * ctx_pg) bnxt_free_ctx_pg_tbls() argument
1202 bnxt_setup_ctxm_pg_tbls(struct bnxt_softc * softc,struct bnxt_ctx_mem_type * ctxm,u32 entries,u8 pg_lvl) bnxt_setup_ctxm_pg_tbls() argument
1228 bnxt_free_ctx_mem(struct bnxt_softc * softc) bnxt_free_ctx_mem() argument
1316 bnxt_backing_store_cfg_v2(struct bnxt_softc * softc,u32 ena) bnxt_backing_store_cfg_v2() argument
1363 bnxt_alloc_ctx_mem(struct bnxt_softc * softc) bnxt_alloc_ctx_mem() argument
1804 bnxt_verify_asym_queues(struct bnxt_softc * softc) bnxt_verify_asym_queues() argument
1860 bnxt_fw_fatal_close(struct bnxt_softc * softc) bnxt_fw_fatal_close() argument
2517 bnxt_hwrm_reserve_rings(struct bnxt_softc * softc) bnxt_hwrm_reserve_rings() argument
2536 bnxt_crash_dump_init(struct bnxt_softc * softc) bnxt_crash_dump_init() argument
2561 struct bnxt_softc *softc = iflib_get_softc(ctx); bnxt_attach_pre() local
2970 struct bnxt_softc *softc = iflib_get_softc(ctx); bnxt_attach_post() local
3011 struct bnxt_softc *softc = iflib_get_softc(ctx); bnxt_detach() local
3073 bnxt_hwrm_resource_free(struct bnxt_softc * softc) bnxt_hwrm_resource_free() argument
3161 bnxt_func_reset(struct bnxt_softc * softc) bnxt_func_reset() argument
3175 bnxt_rss_grp_tbl_init(struct bnxt_softc * softc) bnxt_rss_grp_tbl_init() argument
3192 bnxt_get_port_module_status(struct bnxt_softc * softc) bnxt_get_port_module_status() argument
3219 bnxt_aux_dev_free(struct bnxt_softc * softc) bnxt_aux_dev_free() argument
3225 bnxt_aux_dev_init(struct bnxt_softc * softc) bnxt_aux_dev_init() argument
3237 bnxt_rdma_aux_device_uninit(struct bnxt_softc * softc) bnxt_rdma_aux_device_uninit() argument
3256 bnxt_rdma_aux_device_init(struct bnxt_softc * softc) bnxt_rdma_aux_device_init() argument
3302 struct bnxt_softc *softc = iflib_get_softc(ctx); bnxt_init_hw() local
3497 struct bnxt_softc *softc = iflib_get_softc(ctx); bnxt_stop() local
3509 struct bnxt_softc *softc = iflib_get_softc(ctx); bnxt_if_led_func() local
3520 bnxt_led_restore(struct bnxt_softc * softc) bnxt_led_restore() argument
3532 struct bnxt_softc *softc = iflib_get_softc(ctx); bnxt_if_led_supported() local
3553 struct bnxt_softc *softc = iflib_get_softc(ctx); bnxt_multi_set() local
3583 struct bnxt_softc *softc = iflib_get_softc(ctx); bnxt_mtu_set() local
3596 struct bnxt_softc *softc = iflib_get_softc(ctx); bnxt_media_status() local
3640 struct bnxt_softc *softc = iflib_get_softc(ctx); bnxt_media_change() local
3902 struct bnxt_softc *softc = iflib_get_softc(ctx); bnxt_promisc_set() local
3943 struct bnxt_softc *softc = iflib_get_softc(ctx); bnxt_update_admin_status() local
3974 struct bnxt_softc *softc = iflib_get_softc(ctx); bnxt_if_timer() local
3989 struct bnxt_softc *softc = cpr->ring.softc; bnxt_do_enable_intr() local
4004 struct bnxt_softc *softc = cpr->ring.softc; bnxt_do_disable_intr() local
4019 struct bnxt_softc *softc = iflib_get_softc(ctx); bnxt_intr_enable() local
4036 struct bnxt_softc *softc = iflib_get_softc(ctx); bnxt_tx_queue_intr_enable() local
4047 bnxt_process_cmd_cmpl(struct bnxt_softc * softc,hwrm_cmpl_t * cmd_cmpl) bnxt_process_cmd_cmpl() argument
4057 struct bnxt_softc *softc = cpr->ring.softc; bnxt_process_async_msg() local
4092 process_nq(struct bnxt_softc * softc,uint16_t nqid) process_nq() argument
4132 struct bnxt_softc *softc = iflib_get_softc(ctx); bnxt_rx_queue_intr_enable() local
4146 struct bnxt_softc *softc = iflib_get_softc(ctx); bnxt_disable_intr() local
4166 struct bnxt_softc *softc = iflib_get_softc(ctx); bnxt_msix_intr_assign() local
4227 struct bnxt_softc *softc = iflib_get_softc(ctx); bnxt_vlan_register() local
4241 struct bnxt_softc *softc = iflib_get_softc(ctx); bnxt_vlan_unregister() local
4257 struct bnxt_softc *softc = iflib_get_softc(ctx); bnxt_wol_config() local
4310 struct bnxt_softc *softc = iflib_get_softc(ctx); bnxt_resume() local
4319 struct bnxt_softc *softc = iflib_get_softc(ctx); bnxt_priv_ioctl() local
4622 struct bnxt_softc *softc = iflib_get_softc(ctx); bnxt_i2c_req() local
4650 bnxt_probe_phy(struct bnxt_softc * softc) bnxt_probe_phy() argument
4694 add_media(struct bnxt_softc * softc,u8 media_type,u16 supported_NRZ_speeds,u16 supported_pam4_speeds,u16 supported_speeds2) add_media() argument
4860 bnxt_add_media_types(struct bnxt_softc * softc) bnxt_add_media_types() argument
5006 bnxt_map_bar(struct bnxt_softc * softc,struct bnxt_bar_info * bar,int bar_num,bool shareable) bnxt_map_bar() argument
5037 bnxt_pci_mapping(struct bnxt_softc * softc) bnxt_pci_mapping() argument
5051 bnxt_pci_mapping_free(struct bnxt_softc * softc) bnxt_pci_mapping_free() argument
5065 bnxt_update_link(struct bnxt_softc * softc,bool chng_link_state) bnxt_update_link() argument
5129 bnxt_report_link(struct bnxt_softc * softc) bnxt_report_link() argument
5211 struct bnxt_softc *softc = cpr->ring.softc; bnxt_handle_isr() local
5224 struct bnxt_softc *softc = arg; bnxt_handle_def_cp() local
5232 bnxt_clear_ids(struct bnxt_softc * softc) bnxt_clear_ids() argument
5276 bnxt_event_error_report(struct bnxt_softc * softc,u32 data1,u32 data2) bnxt_event_error_report() argument
5359 bnxt_handle_async_event(struct bnxt_softc * softc,struct cmpl_base * cmpl) bnxt_handle_async_event() argument
5490 struct bnxt_softc *softc = iflib_get_softc(ctx); bnxt_def_cp_task() local
5552 get_phy_type(struct bnxt_softc * softc) get_phy_type() argument
5583 bnxt_check_hwrm_version(struct bnxt_softc * softc) bnxt_check_hwrm_version() argument
5653 bnxt_get_wol_settings(struct bnxt_softc * softc) bnxt_get_wol_settings() argument
[all...]
H A Dbnxt_hwrm.c41 static void bnxt_hwrm_set_link_common(struct bnxt_softc *softc,
43 static void bnxt_hwrm_set_pause_common(struct bnxt_softc *softc,
45 static void bnxt_hwrm_set_eee(struct bnxt_softc *softc,
146 bnxt_alloc_hwrm_dma_mem(struct bnxt_softc *softc) in bnxt_alloc_hwrm_dma_mem() argument
150 rc = iflib_dma_alloc(softc->ctx, PAGE_SIZE, &softc->hwrm_cmd_resp, in bnxt_alloc_hwrm_dma_mem()
156 bnxt_free_hwrm_dma_mem(struct bnxt_softc *softc) in bnxt_free_hwrm_dma_mem() argument
158 if (softc->hwrm_cmd_resp.idi_vaddr) in bnxt_free_hwrm_dma_mem()
159 iflib_dma_free(&softc->hwrm_cmd_resp); in bnxt_free_hwrm_dma_mem()
160 softc->hwrm_cmd_resp.idi_vaddr = NULL; in bnxt_free_hwrm_dma_mem()
165 bnxt_hwrm_cmd_hdr_init(struct bnxt_softc *softc, void *request, in bnxt_hwrm_cmd_hdr_init() argument
[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() argument
43 for (i = 0; i < softc->max_tc; i++) { in bnxt_tx_queue_to_tc()
44 if (softc->tx_q_info[i].queue_id == queue_id) { in bnxt_tx_queue_to_tc()
45 for (j = 0; j < softc->max_tc; j++) { in bnxt_tx_queue_to_tc()
46 if (softc->tc_to_qidx[j] == i) in bnxt_tx_queue_to_tc()
55 bnxt_hwrm_queue_pri2cos_cfg(struct bnxt_softc *softc, in bnxt_hwrm_queue_pri2cos_cfg() argument
64 bnxt_hwrm_cmd_hdr_init(softc, &req, HWRM_QUEUE_PRI2COS_CFG); in bnxt_hwrm_queue_pri2cos_cfg()
69 q_info = softc->tx_q_info; in bnxt_hwrm_queue_pri2cos_cfg()
71 q_info = softc->rx_q_info; in bnxt_hwrm_queue_pri2cos_cfg()
78 qidx = softc->tc_to_qidx[ets->prio_tc[i]]; in bnxt_hwrm_queue_pri2cos_cfg()
[all …]
H A Dbnxt_sriov.c13 bnxt_set_vf_admin_mac(struct bnxt_softc *softc, struct bnxt_vf_info *vf, in bnxt_set_vf_admin_mac() argument
19 if (!BNXT_PF(softc)) in bnxt_set_vf_admin_mac()
22 bnxt_hwrm_cmd_hdr_init(softc, &req, HWRM_FUNC_CFG); in bnxt_set_vf_admin_mac()
28 BNXT_HWRM_LOCK(softc); in bnxt_set_vf_admin_mac()
29 rc = _hwrm_send_message(softc, &req, sizeof(req)); in bnxt_set_vf_admin_mac()
30 BNXT_HWRM_UNLOCK(softc); in bnxt_set_vf_admin_mac()
36 bnxt_vf_parse_schema(struct bnxt_softc *softc, struct bnxt_vf_info *vf, in bnxt_vf_parse_schema() argument
72 struct bnxt_softc *softc = iflib_get_softc(ctx); in bnxt_iov_vf_add() local
73 struct bnxt_vf_info *vf = &softc->pf.vf[vfnum]; in bnxt_iov_vf_add()
76 vf->fw_fid = softc in bnxt_iov_vf_add()
97 bnxt_free_vf_resources(struct bnxt_softc * softc) bnxt_free_vf_resources() argument
124 bnxt_hwrm_func_vf_resource_free(struct bnxt_softc * softc,int num_vfs) bnxt_hwrm_func_vf_resource_free() argument
151 struct bnxt_softc *softc = iflib_get_softc(ctx); bnxt_iov_uninit() local
187 bnxt_set_vf_params(struct bnxt_softc * softc,int vf_id) bnxt_set_vf_params() argument
284 bnxt_hwrm_fwd_err_resp(struct bnxt_softc * softc,struct bnxt_vf_info * vf,u32 msg_size) bnxt_hwrm_fwd_err_resp() argument
308 bnxt_hwrm_exec_fwd_resp(struct bnxt_softc * softc,struct bnxt_vf_info * vf,u32 msg_size) bnxt_hwrm_exec_fwd_resp() argument
332 bnxt_hwrm_func_qcfg_flags(struct bnxt_softc * softc,struct bnxt_vf_info * vf) bnxt_hwrm_func_qcfg_flags() argument
352 bnxt_is_trusted_vf(struct bnxt_softc * softc,struct bnxt_vf_info * vf) bnxt_is_trusted_vf() argument
358 bnxt_promisc_ok(struct bnxt_softc * softc) bnxt_promisc_ok() argument
366 bnxt_hwrm_set_trusted_vf(struct bnxt_softc * softc,struct bnxt_vf_info * vf) bnxt_hwrm_set_trusted_vf() argument
393 bnxt_set_vf_trust(struct bnxt_softc * softc,int vf_id,bool trusted) bnxt_set_vf_trust() argument
428 bnxt_vf_configure_mac(struct bnxt_softc * softc,struct bnxt_vf_info * vf) bnxt_vf_configure_mac() argument
452 bnxt_vf_validate_set_mac(struct bnxt_softc * softc,struct bnxt_vf_info * vf) bnxt_vf_validate_set_mac() argument
484 bnxt_vf_req_validate_snd(struct bnxt_softc * softc,struct bnxt_vf_info * vf) bnxt_vf_req_validate_snd() argument
514 bnxt_hwrm_exec_fwd_req(struct bnxt_softc * softc) bnxt_hwrm_exec_fwd_req() argument
532 bnxt_destroy_trusted_vf_sysctls(struct bnxt_softc * softc) bnxt_destroy_trusted_vf_sysctls() argument
541 struct bnxt_softc *softc = (struct bnxt_softc *)arg1; bnxt_sysctl_vf_trusted() local
574 bnxt_create_trusted_vf_sysctls(struct bnxt_softc * softc,uint16_t num_vfs) bnxt_create_trusted_vf_sysctls() argument
684 bnxt_create_spoofchk_vf_sysctls(struct bnxt_softc * softc,uint16_t num_vfs) bnxt_create_spoofchk_vf_sysctls() argument
711 bnxt_hwrm_func_vf_resc_cfg(struct bnxt_softc * softc,int num_vfs,bool reset) bnxt_hwrm_func_vf_resc_cfg() argument
786 bnxt_hwrm_func_buf_rgtr(struct bnxt_softc * softc) bnxt_hwrm_func_buf_rgtr() argument
809 bnxt_set_vf_attr(struct bnxt_softc * softc,int num_vfs) bnxt_set_vf_attr() argument
821 bnxt_alloc_vf_resources(struct bnxt_softc * softc,int num_vfs) bnxt_alloc_vf_resources() argument
876 bnxt_cfg_hw_sriov(struct bnxt_softc * softc,uint16_t * num_vfs,bool reset) bnxt_cfg_hw_sriov() argument
900 struct bnxt_softc *softc = iflib_get_softc(ctx); bnxt_iov_init() local
958 bnxt_sriov_attach(struct bnxt_softc * softc) bnxt_sriov_attach() argument
[all...]
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);
54 int bnxt_hwrm_func_drv_unrgtr(struct bnxt_softc *softc, bool shutdown);
55 int bnxt_hwrm_func_qcaps(struct bnxt_softc *softc);
56 int bnxt_hwrm_func_qcfg(struct bnxt_softc *softc);
[all …]
H A Dbnxt_coredump.c37 bnxt_free_crash_dump_mem(struct bnxt_softc *softc) in bnxt_free_crash_dump_mem() argument
39 if (softc->fw_crash_mem) { in bnxt_free_crash_dump_mem()
40 bnxt_free_ctx_pg_tbls(softc, softc->fw_crash_mem); in bnxt_free_crash_dump_mem()
41 free(softc->fw_crash_mem, M_DEVBUF); in bnxt_free_crash_dump_mem()
42 softc->fw_crash_len = 0; in bnxt_free_crash_dump_mem()
43 softc->fw_crash_mem = NULL; in bnxt_free_crash_dump_mem()
49 bnxt_alloc_crash_dump_mem(struct bnxt_softc *softc) in bnxt_alloc_crash_dump_mem() argument
54 if (!(softc->fw_dbg_cap & BNXT_FW_DBG_CAP_CRASHDUMP_HOST)) in bnxt_alloc_crash_dump_mem()
57 rc = bnxt_hwrm_get_dump_len(softc, BNXT_DUMP_CRASH, &mem_size); in bnxt_alloc_crash_dump_mem()
63 if (softc->fw_crash_mem && mem_size == softc->fw_crash_len) in bnxt_alloc_crash_dump_mem()
[all …]
H A Dbnxt_mgmt.c61 bnxt_get_driver_coredump_len(struct bnxt_softc *softc) in bnxt_get_driver_coredump_len() argument
71 struct bnxt_ctx_mem_info *ctx = softc->ctx_mem; in bnxt_get_driver_coredump_len()
180 bnxt_retrieve_driver_coredump(struct bnxt_softc *softc, void *buf, in bnxt_retrieve_driver_coredump() argument
184 struct bnxt_ctx_mem_info *ctx = softc->ctx_mem; in bnxt_retrieve_driver_coredump()
196 bnxt_fill_driver_segment_record(softc, &drv_seg_rec, ctxm, in bnxt_retrieve_driver_coredump()
239 bnxt_get_ctx_coredump(struct bnxt_softc *softc, void *buf) in bnxt_get_ctx_coredump() argument
241 struct bnxt_ctx_mem_info *ctx = softc->ctx_mem; in bnxt_get_ctx_coredump()
260 bnxt_retrieve_driver_coredump(softc, buf, type, &seg_len); in bnxt_get_ctx_coredump()
262 bnxt_fill_coredump_seg_hdr(softc, &seg_hdr, NULL, seg_len, in bnxt_get_ctx_coredump()
275 struct bnxt_softc *softc = NULL; in bnxt_mgmt_crash_dump() local
[all …]
/freebsd/sys/dev/aq/
H A Daq_main.c185 static int aq_hw_capabilities(struct aq_dev *softc);
186 static void aq_add_stats_sysctls(struct aq_dev *softc);
196 static bool aq_is_vlan_promisc_required(struct aq_dev *softc);
197 static void aq_update_vlan_filters(struct aq_dev *softc);
331 struct aq_dev *softc;
337 softc = iflib_get_softc(ctx); in aq_if_attach_pre()
340 sysctl_ctx_init(&softc->aq_sysctl_ctx); in aq_if_attach_pre()
342 softc->ctx = ctx; in aq_if_attach_pre()
343 softc->dev = iflib_get_dev(ctx); in aq_if_attach_pre()
344 softc in aq_if_attach_pre()
334 struct aq_dev *softc; aq_if_attach_pre() local
476 struct aq_dev *softc; aq_if_attach_post() local
527 struct aq_dev *softc; aq_if_detach() local
564 struct aq_dev *softc = iflib_get_softc(ctx); aq_if_suspend() local
582 struct aq_dev *softc = iflib_get_softc(ctx); aq_if_resume() local
632 struct aq_dev *softc; aq_if_tx_queues_alloc() local
678 struct aq_dev *softc; aq_if_rx_queues_alloc() local
723 struct aq_dev *softc; aq_if_queues_free() local
754 struct aq_dev *softc; aq_if_init() local
863 struct aq_dev *softc; aq_if_stop() local
904 struct aq_dev *softc = iflib_get_softc(ctx); aq_if_get_counter() local
922 struct aq_dev *softc = arg; aq_mc_filter_apply() local
941 aq_is_mc_promisc_required(struct aq_dev * softc) aq_is_mc_promisc_required() argument
949 struct aq_dev *softc = iflib_get_softc(ctx); aq_if_multi_set() local
1008 struct aq_dev *softc = iflib_get_softc(ctx); aq_if_media_change() local
1032 struct aq_dev *softc; aq_if_promisc_set() local
1050 struct aq_dev *softc; aq_if_timer() local
1071 struct aq_dev *softc = iflib_get_softc(ctx); aq_if_enable_intr() local
1085 struct aq_dev *softc = iflib_get_softc(ctx); aq_if_disable_intr() local
1099 struct aq_dev *softc = iflib_get_softc(ctx); aq_if_rx_queue_intr_enable() local
1113 struct aq_dev *softc = iflib_get_softc(ctx); aq_if_tx_queue_intr_enable() local
1127 struct aq_dev *softc; aq_if_msix_intr_assign() local
1188 aq_is_vlan_promisc_required(struct aq_dev * softc) aq_is_vlan_promisc_required() argument
1200 aq_update_vlan_filters(struct aq_dev * softc) aq_update_vlan_filters() argument
1237 struct aq_dev *softc = iflib_get_softc(ctx); aq_if_vlan_register() local
1251 struct aq_dev *softc = iflib_get_softc(ctx); aq_if_vlan_unregister() local
1265 struct aq_dev *softc = iflib_get_softc(ctx); aq_if_led_func() local
1276 aq_hw_capabilities(struct aq_dev * softc) aq_hw_capabilities() argument
1351 struct aq_dev *softc = (struct aq_dev *)arg1; aq_sysctl_print_rss_config() local
1422 struct aq_dev *softc = arg1; aq_sysctl_temperature() local
1442 struct aq_dev *softc = arg1; aq_sysctl_fw_link_counter() local
1458 aq_add_stats_sysctls(struct aq_dev * softc) aq_add_stats_sysctls() argument
[all...]
/freebsd/sys/cam/ata/
H A Data_pmp.c177 struct pmp_softc *softc = (struct pmp_softc *)periph->softc; in pmpfreeze() local
181 mask &= ~softc->frozen; in pmpfreeze()
188 softc->frozen |= (1 << i); in pmpfreeze()
199 struct pmp_softc *softc = (struct pmp_softc *)periph->softc; in pmprelease() local
203 mask &= softc->frozen; in pmprelease()
210 softc->frozen &= ~(1 << i); in pmprelease()
243 struct pmp_softc *softc; in pmpcleanup() local
245 softc = (struct pmp_softc *)periph->softc; in pmpcleanup()
252 if ((softc->flags & PMP_FLAG_SCTX_INIT) != 0 in pmpcleanup()
253 && sysctl_ctx_free(&softc->sysctl_ctx) != 0) { in pmpcleanup()
[all …]
H A Data_da.c865 static void adasetflags(struct ada_softc *softc,
867 static void adasetgeom(struct ada_softc *softc,
870 static void ada_dsmtrim(struct ada_softc *softc, struct bio *bp,
872 static void ada_cfaerase(struct ada_softc *softc, struct bio *bp,
917 #define ADA_RA (softc->read_ahead >= 0 ? \
918 softc->read_ahead : ada_read_ahead)
919 #define ADA_WC (softc->write_cache >= 0 ? \
920 softc->write_cache : ada_write_cache)
985 struct ada_softc *softc; in adaopen()
1003 softc in adaopen()
981 struct ada_softc *softc; adaopen() local
1011 struct ada_softc *softc; adaclose() local
1063 struct ada_softc *softc = (struct ada_softc *)periph->softc; adaschedule() local
1080 struct ada_softc *softc; adastrategy() local
1124 struct ada_softc *softc; adadump() local
1249 struct ada_softc *softc; adaoninvalidate() local
1279 struct ada_softc *softc; adacleanup() local
1308 adasetdeletemethod(struct ada_softc * softc) adasetdeletemethod() argument
1327 struct ada_softc *softc; adaasync() local
1379 struct ada_softc *softc; adaasync() local
1418 struct ada_softc *softc; adazonemodesysctl() local
1447 struct ada_softc *softc; adazonesupsysctl() local
1480 struct ada_softc *softc; adasysctlinit() local
1641 struct ada_softc *softc; adadeletemethodsysctl() local
1692 struct ada_softc *softc = arg1; adaflagssysctl() local
1707 adasetflags(struct ada_softc * softc,struct ccb_getdev * cgd) adasetflags() argument
1809 struct ada_softc *softc; adaregister() local
1990 ada_dsmtrim_req_create(struct ada_softc * softc,struct bio * bp,struct trim_request * req) ada_dsmtrim_req_create() argument
2056 ada_dsmtrim(struct ada_softc * softc,struct bio * bp,struct ccb_ataio * ataio) ada_dsmtrim() argument
2075 ada_ncq_dsmtrim(struct ada_softc * softc,struct bio * bp,struct ccb_ataio * ataio) ada_ncq_dsmtrim() argument
2099 ada_cfaerase(struct ada_softc * softc,struct bio * bp,struct ccb_ataio * ataio) ada_cfaerase() argument
2144 struct ada_softc *softc; ada_zone_cmd() local
2329 struct ada_softc *softc = (struct ada_softc *)periph->softc; adastart() local
2748 struct ada_softc *softc; adaprobedone() local
2922 struct ada_softc *softc; adadone() local
3483 struct ada_softc *softc; adaerror() local
3510 adasetgeom(struct ada_softc * softc,struct ccb_getdev * cgd) adasetgeom() argument
3624 struct ada_softc *softc = arg; adasendorderedtag() local
3648 struct ada_softc *softc; adaflush() local
3701 struct ada_softc *softc; adaspindown() local
3839 struct ada_softc *softc; adaresume() local
[all...]
/freebsd/sys/cam/scsi/
H A Dscsi_target.c127 static cam_status targenable(struct targ_softc *softc,
130 static cam_status targdisable(struct targ_softc *softc);
134 static int targusermerge(struct targ_softc *softc,
137 static int targsendccb(struct targ_softc *softc, union ccb *ccb,
141 static int targreturnccb(struct targ_softc *softc,
143 static union ccb * targgetccb(struct targ_softc *softc, xpt_opcode type,
145 static void targfreeccb(struct targ_softc *softc, union ccb *ccb);
147 targgetdescr(struct targ_softc *softc);
151 static void abort_all_pending(struct targ_softc *softc);
152 static void notify_user(struct targ_softc *softc);
[all …]
H A Dscsi_da.c404 #define dadeleteflag(softc, delete_method, enable) \
406 softc->delete_available |= (1 << delete_method); \
408 softc->delete_available &= ~(1 << delete_method); \
1511 static void dadeletemethodset(struct da_softc *softc,
1513 static off_t dadeletemaxsize(struct da_softc *softc,
1515 static void dadeletemethodchoose(struct da_softc *softc,
1692 struct da_softc *softc = periph->softc; in da_periph_hold()
1694 cnt = atomic_fetchadd_int(&softc->ref_flags[token], 1); in da_periph_hold()
1705 struct da_softc *softc in da_periph_unhold()
400 dadeleteflag(softc,delete_method,enable) global() argument
1688 struct da_softc *softc = periph->softc; da_periph_hold() local
1701 struct da_softc *softc = periph->softc; da_periph_unhold() local
1722 struct da_softc *softc = periph->softc; da_periph_acquire() local
1735 struct da_softc *softc = periph->softc; da_periph_release() local
1750 struct da_softc *softc = periph->softc; da_periph_release_locked() local
1779 struct da_softc *softc; daopen() local
1841 struct da_softc *softc; daclose() local
1894 struct da_softc *softc = (struct da_softc *)periph->softc; daschedule() local
1911 struct da_softc *softc; dastrategy() local
1963 struct da_softc *softc; dadump() local
2089 struct da_softc *softc; daoninvalidate() local
2122 struct da_softc *softc; dacleanup() local
2156 struct da_softc *softc; daasync() local
2202 struct da_softc *softc; daasync() local
2296 struct da_softc *softc; dasysctlinit() local
2494 struct da_softc *softc; dadeletemaxsysctl() local
2565 dadeletemethodset(struct da_softc * softc,da_delete_methods delete_method) dadeletemethodset() argument
2579 dadeletemaxsize(struct da_softc * softc,da_delete_methods delete_method) dadeletemaxsize() argument
2608 struct da_softc *softc; daprobedone() local
2673 dadeletemethodchoose(struct da_softc * softc,da_delete_methods default_method) dadeletemethodchoose() argument
2718 struct da_softc *softc = arg1; daflagssysctl() local
2736 struct da_softc *softc = arg1; daquirkssysctl() local
2755 struct da_softc *softc; dadeletemethodsysctl() local
2784 struct da_softc *softc; dazonemodesysctl() local
2813 struct da_softc *softc; dazonesupsysctl() local
2845 struct da_softc *softc; daregister() local
3095 struct da_softc *softc; da_zone_cmd() local
3370 struct da_softc *softc; dastart() local
4117 struct da_softc *softc = (struct da_softc *)periph->softc; da_delete_unmap() local
4256 struct da_softc *softc = (struct da_softc *)periph->softc; da_delete_trim() local
4348 struct da_softc *softc; da_delete_ws() local
4408 struct da_softc *softc; cmd6workaround() local
4510 struct da_softc *softc; dazonedone() local
4657 struct da_softc *softc; dadone() local
4832 struct da_softc *softc; dadone_probewp() local
4914 struct da_softc *softc; dadone_proberc() local
5186 struct da_softc *softc; dadone_probelbp() local
5244 struct da_softc *softc; dadone_probeblklimits() local
5338 struct da_softc *softc; dadone_probebdc() local
5436 struct da_softc *softc; dadone_probecache() local
5605 struct da_softc *softc; dadone_probeata() local
5743 struct da_softc *softc; dadone_probeatalogdir() local
5824 struct da_softc *softc; dadone_probeataiddir() local
5915 struct da_softc *softc; dadone_probeatasup() local
6028 struct da_softc *softc; dadone_probeatazone() local
6122 struct da_softc *softc; dadone_probezone() local
6199 struct da_softc *softc; dadone_tur() local
6227 struct da_softc *softc; dareprobe() local
6248 struct da_softc *softc; daerror() local
6355 struct da_softc *softc = periph->softc; damediapoll() local
6377 struct da_softc *softc; daprevent() local
6419 struct da_softc *softc; dasetgeom() local
6547 struct da_softc *softc = periph->softc; dasendorderedtag() local
6572 struct da_softc *softc; dashutdown() local
[all...]
H A Dscsi_sa.c371 #define SA_PROT_ENABLED(softc) ((softc->flags & SA_FLAG_PROTECT_SUPP) \ argument
372 && (softc->prot_info.cur_prot_state.initialized != 0) \
373 && (softc->prot_info.cur_prot_state.prot_method != 0))
375 #define SA_PROT_LEN(softc) softc->prot_info.cur_prot_state.pi_length argument
626 static void safillprot(struct sa_softc *softc, int *indent,
640 static int saparamget(struct sa_softc *softc, struct sbuf *sb);
646 static void sasetupdev(struct sa_softc *softc, struct cdev *dev);
647 static void saloadtotunables(struct sa_softc *softc);
664 static void safilldensitysb(struct sa_softc *softc, int *indent,
666 static void saloadtimeouts(struct sa_softc *softc, union ccb *ccb);
[all …]
H A Dscsi_pass.c173 static void passiocleanup(struct pass_softc *softc,
239 struct pass_softc *softc; in passrejectios() local
241 softc = (struct pass_softc *)periph->softc; in passrejectios()
247 TAILQ_FOREACH_SAFE(io_req, &softc->done_queue, links, io_req2) { in passrejectios()
248 TAILQ_REMOVE(&softc->done_queue, io_req, links); in passrejectios()
249 passiocleanup(softc, io_req); in passrejectios()
250 uma_zfree(softc->pass_zone, io_req); in passrejectios()
258 TAILQ_FOREACH_SAFE(io_req, &softc->incoming_queue, links, io_req2) { in passrejectios()
259 TAILQ_REMOVE(&softc->incoming_queue, io_req, links); in passrejectios()
260 passiocleanup(softc, io_req); in passrejectios()
[all …]
H A Dscsi_pt.c136 struct pt_softc *softc; in ptopen() local
143 softc = (struct pt_softc *)periph->softc; in ptopen()
146 if (softc->flags & PT_FLAG_DEVICE_INVALID) { in ptopen()
152 if ((softc->flags & PT_FLAG_OPEN) == 0) in ptopen()
153 softc->flags |= PT_FLAG_OPEN; in ptopen()
170 struct pt_softc *softc; in ptclose() local
173 softc = (struct pt_softc *)periph->softc; in ptclose()
177 softc->flags &= ~PT_FLAG_OPEN; in ptclose()
192 struct pt_softc *softc; in ptstrategy() local
201 softc = (struct pt_softc *)periph->softc; in ptstrategy()
[all …]
H A Dscsi_ch.c244 struct ch_softc *softc; in chdevgonecb() local
253 softc = (struct ch_softc *)periph->softc; in chdevgonecb()
254 KASSERT(softc->open_count >= 0, ("Negative open count %d", in chdevgonecb()
255 softc->open_count)); in chdevgonecb()
262 for (i = 0; i < softc->open_count; i++) in chdevgonecb()
265 softc->open_count = 0; in chdevgonecb()
285 struct ch_softc *softc; in choninvalidate() local
287 softc = (struct ch_softc *)periph->softc; in choninvalidate()
294 softc->flags |= CH_FLAG_INVALID; in choninvalidate()
300 destroy_dev_sched_cb(softc->dev, chdevgonecb, periph); in choninvalidate()
[all …]
H A Dscsi_cd.c367 struct cd_softc *softc; in cdoninvalidate() local
370 softc = (struct cd_softc *)periph->softc; in cdoninvalidate()
382 bioq_flush(&softc->bio_queue, NULL, ENXIO); in cdoninvalidate()
384 disk_gone(softc->disk); in cdoninvalidate()
390 struct cd_softc *softc; in cdcleanup() local
392 softc = (struct cd_softc *)periph->softc; in cdcleanup()
395 if ((softc->flags & CD_FLAG_SCTX_INIT) != 0 in cdcleanup()
396 && sysctl_ctx_free(&softc->sysctl_ctx) != 0) { in cdcleanup()
400 callout_drain(&softc->mediapoll_c); in cdcleanup()
401 disk_destroy(softc->disk); in cdcleanup()
[all …]
/freebsd/sys/amd64/vmm/amd/
H A Damdvi_hw.c68 static void amdvi_dump_cmds(struct amdvi_softc *softc, int count);
69 static void amdvi_print_dev_cap(struct amdvi_softc *softc);
124 amdvi_pci_read(struct amdvi_softc *softc, int off) in amdvi_pci_read() argument
127 return (pci_cfgregread(softc->pci_seg, PCI_RID2BUS(softc->pci_rid), in amdvi_pci_read()
128 PCI_RID2SLOT(softc->pci_rid), PCI_RID2FUNC(softc->pci_rid), in amdvi_pci_read()
172 amdvi_dev_support_iotlb(struct amdvi_softc *softc, uint16_t devid) in amdvi_dev_support_iotlb() argument
182 KASSERT(softc, ("softc is NULL")); in amdvi_dev_support_iotlb()
183 cfg = softc->dev_cfg; in amdvi_dev_support_iotlb()
186 for (i = 0; i < softc->dev_cfg_cnt; i++) { in amdvi_dev_support_iotlb()
196 device_printf(softc->dev, in amdvi_dev_support_iotlb()
[all …]
/freebsd/sys/dev/enic/
H A Dif_enic.c239 enic_allocate_msix(struct enic_softc *softc) { in enic_allocate_msix() argument
248 dev = softc->dev; in enic_allocate_msix()
249 ctx = softc->ctx; in enic_allocate_msix()
250 scctx = softc->scctx; in enic_allocate_msix()
335 struct enic_softc *softc; in enic_attach_pre() local
349 softc = iflib_get_softc(ctx); in enic_attach_pre()
350 softc->dev = dev; in enic_attach_pre()
351 softc->ctx = ctx; in enic_attach_pre()
352 softc->sctx = iflib_get_sctx(ctx); in enic_attach_pre()
353 softc in enic_attach_pre()
524 struct enic_softc *softc; enic_msix_intr_assign() local
625 enic_free_irqs(struct enic_softc * softc) enic_free_irqs() argument
654 struct enic_softc *softc; enic_attach_post() local
675 struct enic_softc *softc; enic_detach() local
713 struct enic_softc *softc; enic_tx_queues_alloc() local
793 struct enic_softc *softc; enic_rx_queues_alloc() local
865 struct enic_softc *softc; enic_queues_free() local
893 struct enic_softc *softc; enic_event_intr() local
913 struct enic_softc *softc; enic_err_intr() local
926 struct enic_softc *softc; enic_stop() local
985 struct enic_softc *softc; enic_init() local
1020 enic_del_mcast(struct enic_softc * softc) enic_del_mcast() argument
1033 enic_add_mcast(struct enic_softc * softc) enic_add_mcast() argument
1060 struct enic_softc *softc; enic_multi_set() local
1089 struct enic_softc *softc; enic_mtu_set() local
1109 struct enic_softc *softc; enic_media_status() local
1146 struct enic_softc *softc; enic_promisc_set() local
1179 struct enic_softc *softc; enic_update_admin_status() local
1189 struct enic_softc *softc; enic_txq_timer() local
1206 enic_link_is_up(struct enic_softc * softc) enic_link_is_up() argument
1212 enic_link_status(struct enic_softc * softc) enic_link_status() argument
1236 enic_set_lladdr(struct enic_softc * softc) enic_set_lladdr() argument
1342 enic_setup_queue_sysctl(struct enic_softc * softc,struct sysctl_ctx_list * ctx,struct sysctl_oid_list * child) enic_setup_queue_sysctl() argument
1350 enic_setup_sysctl(struct enic_softc * softc) enic_setup_sysctl() argument
1366 enic_enable_intr(struct enic_softc * softc,int irq) enic_enable_intr() argument
1375 enic_disable_intr(struct enic_softc * softc,int irq) enic_disable_intr() argument
1386 struct enic_softc *softc; enic_tx_queue_intr_enable() local
1400 struct enic_softc *softc; enic_rx_queue_intr_enable() local
1411 struct enic_softc *softc; enic_intr_enable_all() local
1426 struct enic_softc *softc; enic_intr_disable_all() local
1550 enic_pci_mapping(struct enic_softc * softc) enic_pci_mapping() argument
1564 enic_pci_mapping_free(struct enic_softc * softc) enic_pci_mapping_free() argument
1602 enic_map_bar(struct enic_softc * softc,struct enic_bar_info * bar,int bar_num,bool shareable) enic_map_bar() argument
1710 struct enic_softc *softc = enic->softc; enic_update_packet_filter() local
1735 struct enic_softc *softc = enic->softc; enic_setup_finish() local
[all...]
/freebsd/sys/cam/nvme/
H A Dnvme_da.c225 nda_nvme_flush(struct nda_softc *softc, struct ccb_nvmeio *nvmeio) in nda_nvme_flush()
234 nvme_ns_flush_cmd(&nvmeio->cmd, softc->nsid); in nda_nvme_trim() argument
238 nda_nvme_trim(struct nda_softc *softc, struct ccb_nvmeio *nvmeio, in nda_nvme_trim()
248 nvme_ns_trim_cmd(&nvmeio->cmd, softc->nsid, num_ranges); in nda_nvme_write() argument
252 nda_nvme_write(struct nda_softc *softc, struct ccb_nvmeio *nvmeio, in nda_nvme_write()
262 nvme_ns_write_cmd(&nvmeio->cmd, softc->nsid, lba, count); in nda_nvme_rw_bio() argument
266 nda_nvme_rw_bio(struct nda_softc *softc, struct ccb_nvmeio *nvmeio, in nda_nvme_rw_bio()
282 count = bp->bio_bcount / softc->disk->d_sectorsize; in nda_nvme_rw_bio()
291 nvme_ns_rw_cmd(&nvmeio->cmd, rwcmd, softc->nsid, lba, count); in ndasetgeom() argument
295 ndasetgeom(struct nda_softc *softc, struc in ndasetgeom()
221 nda_nvme_flush(struct nda_softc * softc,struct ccb_nvmeio * nvmeio) nda_nvme_flush() argument
326 struct nda_softc *softc; ndaopen_rescan_done() local
342 struct nda_softc *softc; ndaopen() local
400 struct nda_softc *softc; ndaclose() local
441 struct nda_softc *softc = (struct nda_softc *)periph->softc; ndaschedule() local
543 struct nda_softc *softc; ndastrategy() local
582 struct nda_softc *softc; ndadump() local
668 struct nda_softc *softc; ndaoninvalidate() local
698 struct nda_softc *softc; ndacleanup() local
729 struct nda_softc *softc; ndaasync() local
812 struct nda_softc *softc; ndasysctlinit() local
911 struct nda_softc *softc = arg1; ndaflagssysctl() local
947 struct nda_softc *softc; ndaregister() local
1098 struct nda_softc *softc = (struct nda_softc *)periph->softc; ndastart() local
1257 struct nda_softc *softc; ndadone() local
1375 struct nda_softc *softc; ndaerror() local
1409 struct nda_softc *softc; ndaflush() local
[all...]
/freebsd/sys/netpfil/ipfilter/netinet/
H A Dip_lookup.c95 ipf_lookup_soft_create(ipf_main_softc_t *softc) in ipf_lookup_soft_create() argument
108 softl->ipf_back[i] = (*(*l)->ipfl_create)(softc); in ipf_lookup_soft_create()
110 ipf_lookup_soft_destroy(softc, softl); in ipf_lookup_soft_create()
128 ipf_lookup_soft_init(ipf_main_softc_t *softc, void *arg) in ipf_lookup_soft_init() argument
135 err = (*backends[i]->ipfl_init)(softc, softl->ipf_back[i]); in ipf_lookup_soft_init()
153 ipf_lookup_soft_fini(ipf_main_softc_t *softc, void *arg) in ipf_lookup_soft_fini() argument
160 (*backends[i]->ipfl_fini)(softc, in ipf_lookup_soft_fini()
177 ipf_lookup_expire(ipf_main_softc_t *softc) in ipf_lookup_expire() argument
179 ipf_lookup_softc_t *softl = softc->ipf_lookup_soft; in ipf_lookup_expire()
182 WRITE_ENTER(&softc->ipf_poolrw); in ipf_lookup_expire()
[all …]
H A Dfil.c114 #define LBUMP(x) softc->x++
115 #define LBUMPD(x, y) do { softc->x.y++; DT(y); } while (0)
576 ipf_main_softc_t *softc = fin->fin_main_soft; in ipf_pr_ipv6hdr() local
589 ipf_main_softc_t *softc = fin->fin_main_soft; in ipf_pr_ipv6hdr() local
617 ipf_main_softc_t *softc = fin->fin_main_soft; in ipf_pr_ipv6exthdr() local
748 ipf_main_softc_t *softc = fin->fin_main_soft; in ipf_pr_routing6() local
797 ipf_main_softc_t *softc = fin->fin_main_soft; in ipf_pr_fragment6() local
855 ipf_main_softc_t *softc = fin->fin_main_soft; in ipf_pr_dstopts6() local
883 ipf_main_softc_t *softc = fin->fin_main_soft; in ipf_pr_icmp6() local
1022 ipf_main_softc_t *softc = fin->fin_main_soft; in ipf_pr_esp6() local
[all …]
/freebsd/sys/cam/ctl/
H A Dctl_frontend.c70 struct ctl_softc *softc = control_softc; in ctl_frontend_register() local
74 KASSERT(softc != NULL, ("CTL is not initialized")); in ctl_frontend_register()
77 mtx_lock(&softc->ctl_lock); in ctl_frontend_register()
78 STAILQ_FOREACH(fe_tmp, &softc->fe_list, links) { in ctl_frontend_register()
80 mtx_unlock(&softc->ctl_lock); in ctl_frontend_register()
84 mtx_unlock(&softc->ctl_lock); in ctl_frontend_register()
96 mtx_lock(&softc->ctl_lock); in ctl_frontend_register()
97 softc->num_frontends++; in ctl_frontend_register()
98 STAILQ_INSERT_TAIL(&softc->fe_list, fe, links); in ctl_frontend_register()
99 mtx_unlock(&softc->ctl_lock); in ctl_frontend_register()
[all …]
H A Dctl_backend.c65 struct ctl_softc *softc = control_softc; in ctl_backend_register() local
70 mtx_lock(&softc->ctl_lock); in ctl_backend_register()
71 STAILQ_FOREACH(be_tmp, &softc->be_list, links) { in ctl_backend_register()
73 mtx_unlock(&softc->ctl_lock); in ctl_backend_register()
77 mtx_unlock(&softc->ctl_lock); in ctl_backend_register()
91 mtx_lock(&softc->ctl_lock); in ctl_backend_register()
92 STAILQ_INSERT_TAIL(&softc->be_list, be, links); in ctl_backend_register()
93 softc->num_backends++; in ctl_backend_register()
94 mtx_unlock(&softc->ctl_lock); in ctl_backend_register()
101 struct ctl_softc *softc = control_softc; in ctl_backend_deregister() local
[all …]

123456789