| /freebsd-12.1/sys/dev/bnxt/ |
| H A D | bnxt_sysctl.c | 77 if (BNXT_PF(softc)) { in bnxt_init_sysctl_ctx() 132 if (BNXT_PF(softc) && softc->nvm_info->nvm_oid != NULL) { in bnxt_free_sysctl_ctx() 927 bnxt_hwrm_rss_cfg(softc, &softc->vnic_info, in bnxt_rss_key_sysctl() 982 bnxt_hwrm_rss_cfg(softc, &softc->vnic_info, in bnxt_rss_type_sysctl() 995 if (softc == NULL) in bnxt_rx_stall_sysctl() 1009 rc = bnxt_hwrm_vnic_cfg(softc, &softc->vnic_info); in bnxt_rx_stall_sysctl() 1020 if (softc == NULL) in bnxt_vlan_strip_sysctl() 1034 rc = bnxt_hwrm_vnic_cfg(softc, &softc->vnic_info); in bnxt_vlan_strip_sysctl() 1045 if (softc == NULL) in bnxt_set_coal_rx_usecs() 1065 if (softc == NULL) in bnxt_set_coal_rx_frames() [all …]
|
| H A D | if_bnxt.c | 384 softc->tx_cp_rings[i].ring.softc = softc; in bnxt_tx_queues_alloc() 396 softc->tx_rings[i].softc = softc; in bnxt_tx_queues_alloc() 523 softc->rx_cp_rings[i].ring.softc = softc; in bnxt_rx_queues_alloc() 537 softc->rx_rings[i].softc = softc; in bnxt_rx_queues_alloc() 557 softc->ag_rings[i].softc = softc; in bnxt_rx_queues_alloc() 874 softc->def_cp_ring.ring.softc = softc; in bnxt_attach_pre() 1107 rc = bnxt_hwrm_vnic_alloc(softc, &softc->vnic_info); in bnxt_init() 1110 rc = bnxt_hwrm_vnic_cfg(softc, &softc->vnic_info); in bnxt_init() 1113 rc = bnxt_hwrm_set_filter(softc, &softc->vnic_info); in bnxt_init() 1126 rc = bnxt_hwrm_rss_cfg(softc, &softc->vnic_info, in bnxt_init() [all …]
|
| H A D | bnxt_hwrm.c | 89 rc = iflib_dma_alloc(softc->ctx, PAGE_SIZE, &softc->hwrm_cmd_resp, in bnxt_alloc_hwrm_dma_mem() 166 bus_space_write_4(softc->hwrm_bar.tag, softc->hwrm_bar.handle, in _hwrm_send_message() 224 BNXT_HWRM_LOCK(softc); in hwrm_send_message() 242 BNXT_HWRM_LOCK(softc); in bnxt_hwrm_queue_qportcfg() 449 if (BNXT_PF(softc)) { in bnxt_hwrm_func_qcaps() 997 softc->hw_lro.enable = min(softc->hw_lro.enable, 1); in bnxt_validate_hw_lro_settings() 999 softc->hw_lro.is_mode_gro = min(softc->hw_lro.is_mode_gro, 1); in bnxt_validate_hw_lro_settings() 1001 softc->hw_lro.max_agg_segs = min(softc->hw_lro.max_agg_segs, in bnxt_validate_hw_lro_settings() 1004 softc->hw_lro.max_aggs = min(softc->hw_lro.max_aggs, in bnxt_validate_hw_lro_settings() 1607 snprintf(softc->ver_info->phy_ver, sizeof(softc->ver_info->phy_ver), in bnxt_hwrm_port_phy_qcfg() [all …]
|
| H A D | bnxt_hwrm.h | 42 int bnxt_alloc_hwrm_dma_mem(struct bnxt_softc *softc); 43 void bnxt_free_hwrm_dma_mem(struct bnxt_softc *softc); 47 int bnxt_hwrm_ver_get(struct bnxt_softc *softc); 49 int bnxt_hwrm_func_drv_rgtr(struct bnxt_softc *softc); 51 int bnxt_hwrm_func_qcaps(struct bnxt_softc *softc); 52 int bnxt_hwrm_func_qcfg(struct bnxt_softc *softc); 53 int bnxt_hwrm_func_reset(struct bnxt_softc *softc); 56 int bnxt_hwrm_set_pause(struct bnxt_softc *softc); 61 int bnxt_hwrm_port_qstats(struct bnxt_softc *softc); 70 int bnxt_cfg_async_cr(struct bnxt_softc *softc); [all …]
|
| /freebsd-12.1/sys/cam/ctl/ |
| H A D | ctl_ha.c | 225 if (softc->ha_connected || softc->ha_disconnect) { in ctl_ha_close() 251 (softc->ha_connect || softc->ha_listen) ? in ctl_ha_close() 287 if (softc->ha_connected == 0 || softc->ha_disconnect || in ctl_ha_rx_thread() 340 softc->ha_sending = mbufq_dequeue(&softc->ha_sendq); in ctl_ha_send() 567 if (softc->ha_disconnect || softc->ha_shutdown) { in ctl_ha_conn_thread() 569 if (softc->ha_disconnect == 2 || softc->ha_shutdown) in ctl_ha_conn_thread() 596 softc, &softc->ha_ctl_softc->ctl_proc, in ctl_ha_conn_thread() 612 msleep(&softc->ha_wakeup, &softc->ha_lock, 0, "-", hz); in ctl_ha_conn_thread() 655 strlcpy(softc->ha_peer, buf, sizeof(softc->ha_peer)); in ctl_ha_peer_sysctl() 656 if (softc->ha_connect || softc->ha_listen) { in ctl_ha_peer_sysctl() [all …]
|
| H A D | ctl_frontend.c | 82 mtx_lock(&softc->ctl_lock); in ctl_frontend_register() 101 mtx_lock(&softc->ctl_lock); in ctl_frontend_register() 102 softc->num_frontends++; in ctl_frontend_register() 123 mtx_lock(&softc->ctl_lock); in ctl_frontend_deregister() 125 softc->num_frontends--; in ctl_frontend_deregister() 136 mtx_lock(&softc->ctl_lock); in ctl_frontend_find() 157 port->ctl_softc = softc; in ctl_port_register() 159 mtx_lock(&softc->ctl_lock); in ctl_port_register() 164 softc->port_min, softc->port_max); in ctl_port_register() 170 softc->num_ports++; in ctl_port_register() [all …]
|
| H A D | ctl_backend.c | 75 mtx_lock(&softc->ctl_lock); in ctl_backend_register() 78 mtx_unlock(&softc->ctl_lock); in ctl_backend_register() 82 mtx_unlock(&softc->ctl_lock); in ctl_backend_register() 97 mtx_lock(&softc->ctl_lock); in ctl_backend_register() 99 softc->num_backends++; in ctl_backend_register() 100 mtx_unlock(&softc->ctl_lock); in ctl_backend_register() 119 mtx_lock(&softc->ctl_lock); in ctl_backend_deregister() 121 softc->num_backends--; in ctl_backend_deregister() 122 mtx_unlock(&softc->ctl_lock); in ctl_backend_deregister() 132 mtx_lock(&softc->ctl_lock); in ctl_backend_find() [all …]
|
| H A D | ctl_frontend_cam_sim.c | 136 softc = &cfcs_softc; in cfcs_init() 137 bzero(softc, sizeof(*softc)); in cfcs_init() 139 port = &softc->port; in cfcs_init() 145 snprintf(softc->port_name, sizeof(softc->port_name), "camsim"); in cfcs_init() 173 softc->wwpn = softc->wwnn + port->targ_port + 1; in cfcs_init() 174 ctl_port_set_wwns(port, true, softc->wwnn, true, softc->wwpn); in cfcs_init() 180 mtx_lock(&softc->lock); in cfcs_init() 188 softc->sim = cam_sim_alloc(cfcs_action, cfcs_poll, softc->port_name, in cfcs_init() 189 softc, /*unit*/ 0, &softc->lock, 1, in cfcs_init() 218 if (softc->sim) in cfcs_init() [all …]
|
| /freebsd-12.1/sys/cam/ata/ |
| H A D | ata_pmp.c | 248 softc = (struct pmp_softc *)periph->softc; in pmpcleanup() 305 softc = (struct pmp_softc *)periph->softc; in pmpasync() 349 softc = (struct pmp_softc *)periph->softc; in pmpsysctlinit() 387 periph->softc = softc; in pmpregister() 429 softc = (struct pmp_softc *)periph->softc; in pmpstart() 706 softc->reset |= ~softc->found; in pmpdone() 712 if (softc->pm_step >= softc->pm_ports) { in pmpdone() 727 if (softc->pm_step >= softc->pm_ports) { in pmpdone() 772 softc->found |= (1 << softc->pm_step); in pmpdone() 799 if (softc->pm_step >= softc->pm_ports) { in pmpdone() [all …]
|
| H A D | ata_da.c | 946 softc = (struct ada_softc *)periph->softc; in adaopen() 963 softc = (struct ada_softc *)periph->softc; in adaclose() 1031 softc = (struct ada_softc *)periph->softc; in adastrategy() 1082 softc = (struct ada_softc *)periph->softc; in adadump() 1196 softc = (struct ada_softc *)periph->softc; in adaoninvalidate() 1221 softc = (struct ada_softc *)periph->softc; in adacleanup() 1302 softc = (struct ada_softc *)periph->softc; in adaasync() 1325 softc = periph->softc; in adaasync() 1443 softc = (struct ada_softc *)periph->softc; in adasysctlinit() 1737 periph->softc = softc; in adaregister() [all …]
|
| /freebsd-12.1/sys/amd64/vmm/amd/ |
| H A D | amdvi_hw.c | 129 PCI_RID2SLOT(softc->pci_rid), PCI_RID2FUNC(softc->pci_rid), in amdvi_pci_read() 381 if (!softc->iotlb) in amdvi_cmd_inv_iotlb() 781 bus_teardown_intr(dev, softc->event_res, softc->event_tag); in amdvi_free_evt_intr_res() 802 dev = softc->dev; in amdvi_alloc_intr_resources() 843 softc, &softc->event_tag)) { in amdvi_alloc_intr_resources() 846 softc->event_rid, softc->event_res); in amdvi_alloc_intr_resources() 851 bus_describe_intr(dev, softc->event_res, softc->event_tag, in amdvi_alloc_intr_resources() 937 dev = softc->dev; in amdvi_add_sysctl() 971 dev = softc->dev; in amdvi_setup_hw() 1012 if (softc->cmd) in amdvi_teardown_hw() [all …]
|
| H A D | ivrs_drv.c | 187 dev_cfg = &softc->dev_cfg[softc->dev_cfg_cnt++]; in ivhd_dev_add_entry() 230 softc->start_dev_rid = MIN(softc->start_dev_rid, de->Id); in ivhd_dev_parse() 231 softc->end_dev_rid = MAX(softc->end_dev_rid, de->Id); in ivhd_dev_parse() 287 (sizeof(softc->dev_cfg) / sizeof(softc->dev_cfg[0]))) { in ivhd_dev_parse() 303 KASSERT((softc->end_dev_rid >= softc->start_dev_rid), in ivhd_dev_parse() 305 softc->end_dev_rid, softc->start_dev_rid)); in ivhd_dev_parse() 590 dev = softc->dev; in ivhd_print_cap() 592 ivhd_print_flag(dev, softc->ivhd_type, softc->ivhd_flag); in ivhd_print_cap() 593 ivhd_print_feature(dev, softc->ivhd_type, softc->ivhd_feature); in ivhd_print_cap() 607 softc->start_dev_rid, softc->end_dev_rid); in ivhd_print_cap() [all …]
|
| /freebsd-12.1/sys/cam/scsi/ |
| H A D | scsi_target.c | 177 softc = data; in targcdevdtor() 180 free(softc, M_TARG); in targcdevdtor() 198 free(softc, M_TARG); in targcdevdtor() 212 softc = malloc(sizeof(*softc), M_TARG, in targopen() 216 softc->path = NULL; in targopen() 490 periph->softc = softc; in targctor() 503 softc = (struct targ_softc *)periph->softc; in targdtor() 520 softc->path = NULL; in targdtor() 624 softc = (struct targ_softc *)periph->softc; in targstart() 770 softc = (struct targ_softc *)periph->softc; in targdone() [all …]
|
| H A D | scsi_sa.c | 1469 &softc->media_density, &softc->media_numblks, &softc->buffer_mode, in sagetparams_common() 2378 periph->softc = softc; in saregister() 3162 softc->max_blk = softc->min_blk = in samount() 4663 softc->partition = softc->fileno = softc->blkno = (daddr_t) 0; in sarewind() 4786 softc->fileno = softc->blkno = softc->partition = (daddr_t) -1; in sawritefilemarks() 4821 softc->bop = softc->eop = softc->bpew = -1; in sagetpos() 4898 softc->bop = softc->eop = softc->bpew = -1; in sagetpos() 5083 softc->partition = softc->fileno = softc->blkno = (daddr_t) 0; in saretension() 5086 softc->partition = softc->fileno = softc->blkno = (daddr_t) -1; in saretension() 5141 softc->partition = softc->fileno = softc->blkno = (daddr_t) -1; in saloadunload() [all …]
|
| H A D | scsi_da.c | 1617 struct da_softc *softc = periph->softc; in da_periph_hold() local 1630 struct da_softc *softc = periph->softc; in da_periph_unhold() local 1651 struct da_softc *softc = periph->softc; in da_periph_acquire() local 1664 struct da_softc *softc = periph->softc; in da_periph_release() local 1679 struct da_softc *softc = periph->softc; in da_periph_release_locked() local 1726 softc = (struct da_softc *)periph->softc; in daopen() 2105 softc = periph->softc; in daasync() 2718 periph->softc = softc; in daregister() 2836 softc->disk->d_maxsize = softc->maxio; in daregister() 2936 softc = periph->softc; in da_zone_cmd() [all …]
|
| H A D | scsi_pass.c | 239 softc = (struct pass_softc *)periph->softc; in passrejectios() 299 softc = (struct pass_softc *)periph->softc; in passdevgonecb() 342 softc = (struct pass_softc *)periph->softc; in passoninvalidate() 363 softc = (struct pass_softc *)periph->softc; in passcleanup() 413 softc = periph->softc; in pass_shutdown_kqueue() 437 softc = periph->softc; in pass_add_physpath() 451 softc->dev, softc->alias_dev, physpath); in pass_add_physpath() 568 bzero(softc, sizeof(*softc)); in passregister() 577 periph->softc = softc; in passregister() 767 softc = periph->softc; in passclose() [all …]
|
| H A D | scsi_pt.c | 148 softc = (struct pt_softc *)periph->softc; in ptopen() 178 softc = (struct pt_softc *)periph->softc; in ptclose() 206 softc = (struct pt_softc *)periph->softc; in ptstrategy() 271 bzero(softc, sizeof(*softc)); in ptctor() 278 periph->softc = softc; in ptctor() 329 softc = (struct pt_softc *)periph->softc; in ptoninvalidate() 351 softc = (struct pt_softc *)periph->softc; in ptdtor() 427 softc = (struct pt_softc *)periph->softc; in ptstart() 480 softc = (struct pt_softc *)periph->softc; in ptdone() 569 softc = (struct pt_softc *)periph->softc; in pterror() [all …]
|
| H A D | scsi_ch.c | 257 softc = (struct ch_softc *)periph->softc; in chdevgonecb() 291 softc = (struct ch_softc *)periph->softc; in choninvalidate() 312 softc = (struct ch_softc *)periph->softc; in chcleanup() 390 bzero(softc, sizeof(*softc)); in chregister() 392 periph->softc = softc; in chregister() 473 softc = (struct ch_softc *)periph->softc; in chopen() 519 softc = (struct ch_softc *)periph->softc; in chclose() 546 softc = (struct ch_softc *)periph->softc; in chstart() 605 softc = (struct ch_softc *)periph->softc; in chdone() 746 softc = (struct ch_softc *)periph->softc; in cherror() [all …]
|
| H A D | scsi_sg.c | 185 softc = (struct sg_softc *)periph->softc; in sgdevgonecb() 220 softc = (struct sg_softc *)periph->softc; in sgoninvalidate() 248 softc = (struct sg_softc *)periph->softc; in sgcleanup() 325 periph->softc = softc; in sgregister() 406 softc = (struct sg_softc *)periph->softc; in sgdone() 456 softc = (struct sg_softc *)periph->softc; in sgopen() 481 softc = periph->softc; in sgclose() 516 softc = (struct sg_softc *)periph->softc; in sgioctl() 896 softc = periph->softc; in sgsendccb() 930 softc = periph->softc; in sgsendrdwr() [all …]
|
| H A D | scsi_cd.c | 355 softc = (struct cd_softc *)periph->softc; in cdoninvalidate() 379 softc = (struct cd_softc *)periph->softc; in cdcleanup() 442 softc = (struct cd_softc *)periph->softc; in cdasync() 459 softc = (struct cd_softc *)periph->softc; in cdasync() 472 softc = (struct cd_softc *)periph->softc; in cdasync() 499 softc = (struct cd_softc *)periph->softc; in cdsysctlinit() 594 periph->softc = softc; in cdregister() 731 softc = (struct cd_softc *)periph->softc; in cdopen() 775 softc = (struct cd_softc *)periph->softc; in cdclose() 819 softc = (struct cd_softc *)periph->softc; in cdrunccb() [all …]
|
| /freebsd-12.1/sys/contrib/ipfilter/netinet/ |
| H A D | ip_lookup.c | 100 ipf_main_softc_t *softc; in ipf_lookup_soft_create() 134 ipf_main_softc_t *softc; in ipf_lookup_soft_init() 161 ipf_main_softc_t *softc; in ipf_lookup_soft_fini() 186 ipf_lookup_expire(softc) in ipf_lookup_expire() argument 187 ipf_main_softc_t *softc; in ipf_lookup_expire() 211 ipf_main_softc_t *softc; in ipf_lookup_soft_destroy() 245 ipf_main_softc_t *softc; in ipf_lookup_ioctl() 329 ipf_main_softc_t *softc; in ipf_lookup_addnode() 382 ipf_main_softc_t *softc; in ipf_lookup_delnode() 433 ipf_main_softc_t *softc; in ipf_lookup_addtable() [all …]
|
| H A D | fil.c | 4131 (void) ipf_synclist(softc, softc->ipf_acct[0][softc->ipf_active], ifp); 4132 (void) ipf_synclist(softc, softc->ipf_acct[1][softc->ipf_active], ifp); 4133 (void) ipf_synclist(softc, softc->ipf_rules[0][softc->ipf_active], ifp); 4134 (void) ipf_synclist(softc, softc->ipf_rules[1][softc->ipf_active], ifp); 7556 softc = softc; /* gcc -Wextra */ 8296 softc->ipf_active = 1 - softc->ipf_active; 9289 bzero((char *)softc, sizeof(*softc)); 9297 softc->ipf_tuners = ipf_tune_array_copy(softc, 9316 softc->ipf_token_tail = &softc->ipf_token_head; 9556 softc->ipf_log_soft = ipf_log_soft_create(softc); [all …]
|
| H A D | ip_frag.c | 166 ipf_frag_soft_create(softc) in ipf_frag_soft_create() argument 167 ipf_main_softc_t *softc; in ipf_frag_soft_create() 214 ipf_main_softc_t *softc; in ipf_frag_soft_destroy() 244 ipf_main_softc_t *softc; in ipf_frag_soft_init() 288 ipf_main_softc_t *softc; in ipf_frag_soft_fini() 296 ipf_frag_clear(softc); 377 ipf_main_softc_t *softc; in ipfr_frag_new() 520 ipf_main_softc_t *softc; in ipf_frag_new() 557 ipf_main_softc_t *softc; in ipf_frag_natnew() 1032 ipf_frag_clear(softc) in ipf_frag_clear() argument [all …]
|
| /freebsd-12.1/sys/cam/nvme/ |
| H A D | nvme_da.c | 295 softc = (struct nda_softc *)periph->softc; in ndaopen() 312 softc = (struct nda_softc *)periph->softc; in ndaclose() 369 softc = (struct nda_softc *)periph->softc; in ndastrategy() 415 softc = (struct nda_softc *)periph->softc; in ndadump() 494 softc = (struct nda_softc *)periph->softc; in ndaoninvalidate() 519 softc = (struct nda_softc *)periph->softc; in ndacleanup() 589 softc = periph->softc; in ndaasync() 617 softc = (struct nda_softc *)periph->softc; in ndasysctlinit() 737 periph->softc = softc; in ndaregister() 1008 softc = (struct nda_softc *)periph->softc; in ndadone() [all …]
|
| /freebsd-12.1/sys/nfs/ |
| H A D | nfs_fha.c | 74 SYSCTL_ADD_UINT(&softc->sysctl_ctx, SYSCTL_CHILDREN(softc->sysctl_tree), in fha_init() 78 SYSCTL_ADD_UINT(&softc->sysctl_ctx, SYSCTL_CHILDREN(softc->sysctl_tree), in fha_init() 82 SYSCTL_ADD_UINT(&softc->sysctl_ctx, SYSCTL_CHILDREN(softc->sysctl_tree), in fha_init() 86 SYSCTL_ADD_UINT(&softc->sysctl_ctx, SYSCTL_CHILDREN(softc->sysctl_tree), in fha_init() 90 SYSCTL_ADD_UINT(&softc->sysctl_ctx, SYSCTL_CHILDREN(softc->sysctl_tree), in fha_init() 95 SYSCTL_ADD_UINT(&softc->sysctl_ctx, SYSCTL_CHILDREN(softc->sysctl_tree), in fha_init() 100 SYSCTL_ADD_OID(&softc->sysctl_ctx, SYSCTL_CHILDREN(softc->sysctl_tree), in fha_init() 377 struct fha_params *softc) in fha_assign() argument 384 cb = &softc->callbacks; in fha_assign() 387 if (softc->ctls.enable == 0) in fha_assign() [all …]
|