| /freebsd-13.1/sys/dev/bnxt/ |
| H A D | bnxt_sysctl.c | 78 if (BNXT_PF(softc)) { in bnxt_init_sysctl_ctx() 134 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 | 383 softc->tx_cp_rings[i].ring.softc = softc; in bnxt_tx_queues_alloc() 395 softc->tx_rings[i].softc = softc; in bnxt_tx_queues_alloc() 522 softc->rx_cp_rings[i].ring.softc = softc; in bnxt_rx_queues_alloc() 536 softc->rx_rings[i].softc = softc; in bnxt_rx_queues_alloc() 556 softc->ag_rings[i].softc = softc; in bnxt_rx_queues_alloc() 874 softc->def_cp_ring.ring.softc = softc; in bnxt_attach_pre() 1106 rc = bnxt_hwrm_vnic_alloc(softc, &softc->vnic_info); in bnxt_init() 1109 rc = bnxt_hwrm_vnic_cfg(softc, &softc->vnic_info); in bnxt_init() 1112 rc = bnxt_hwrm_set_filter(softc, &softc->vnic_info); in bnxt_init() 1125 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() 446 if (BNXT_PF(softc)) { in bnxt_hwrm_func_qcaps() 990 softc->hw_lro.enable = min(softc->hw_lro.enable, 1); in bnxt_validate_hw_lro_settings() 992 softc->hw_lro.is_mode_gro = min(softc->hw_lro.is_mode_gro, 1); in bnxt_validate_hw_lro_settings() 994 softc->hw_lro.max_agg_segs = min(softc->hw_lro.max_agg_segs, in bnxt_validate_hw_lro_settings() 997 softc->hw_lro.max_aggs = min(softc->hw_lro.max_aggs, in bnxt_validate_hw_lro_settings() 1600 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-13.1/sys/cam/ctl/ |
| H A D | ctl_ha.c | 162 if (softc->ha_connected || softc->ha_disconnect) { in ctl_ha_close() 188 (softc->ha_connect || softc->ha_listen) ? in ctl_ha_close() 226 if (softc->ha_connected == 0 || softc->ha_disconnect || in ctl_ha_rx_thread() 279 softc->ha_sending = mbufq_dequeue(&softc->ha_sendq); in ctl_ha_send() 506 if (softc->ha_disconnect || softc->ha_shutdown) { in ctl_ha_conn_thread() 508 if (softc->ha_disconnect == 2 || softc->ha_shutdown) in ctl_ha_conn_thread() 535 softc, &softc->ha_ctl_softc->ctl_proc, in ctl_ha_conn_thread() 551 msleep(&softc->ha_wakeup, &softc->ha_lock, 0, "-", hz); in ctl_ha_conn_thread() 594 strlcpy(softc->ha_peer, buf, sizeof(softc->ha_peer)); in ctl_ha_peer_sysctl() 595 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() 96 mtx_lock(&softc->ctl_lock); in ctl_backend_register() 98 softc->num_backends++; in ctl_backend_register() 99 mtx_unlock(&softc->ctl_lock); in ctl_backend_register() 118 mtx_lock(&softc->ctl_lock); in ctl_backend_deregister() 120 softc->num_backends--; in ctl_backend_deregister() 121 mtx_unlock(&softc->ctl_lock); in ctl_backend_deregister() 131 mtx_lock(&softc->ctl_lock); in ctl_backend_find() [all …]
|
| /freebsd-13.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 | 975 softc = (struct ada_softc *)periph->softc; in adaopen() 992 softc = (struct ada_softc *)periph->softc; in adaclose() 1059 softc = (struct ada_softc *)periph->softc; in adastrategy() 1110 softc = (struct ada_softc *)periph->softc; in adadump() 1223 softc = (struct ada_softc *)periph->softc; in adaoninvalidate() 1248 softc = (struct ada_softc *)periph->softc; in adacleanup() 1329 softc = (struct ada_softc *)periph->softc; in adaasync() 1352 softc = periph->softc; in adaasync() 1469 softc = (struct ada_softc *)periph->softc; in adasysctlinit() 1820 periph->softc = softc; in adaregister() [all …]
|
| /freebsd-13.1/sys/cam/scsi/ |
| H A D | scsi_target.c | 174 softc = data; in targcdevdtor() 177 free(softc, M_TARG); in targcdevdtor() 195 free(softc, M_TARG); in targcdevdtor() 209 softc = malloc(sizeof(*softc), M_TARG, in targopen() 213 softc->path = NULL; in targopen() 487 periph->softc = softc; in targctor() 500 softc = (struct targ_softc *)periph->softc; in targdtor() 517 softc->path = NULL; in targdtor() 621 softc = (struct targ_softc *)periph->softc; in targstart() 766 softc = (struct targ_softc *)periph->softc; in targdone() [all …]
|
| H A D | scsi_sa.c | 1527 &softc->media_density, &softc->media_numblks, &softc->buffer_mode, in sagetparams_common() 2499 periph->softc = softc; in saregister() 3464 softc->max_blk = softc->min_blk = in samount() 4966 softc->partition = softc->fileno = softc->blkno = (daddr_t) 0; in sarewind() 5089 softc->fileno = softc->blkno = softc->partition = (daddr_t) -1; in sawritefilemarks() 5124 softc->bop = softc->eop = softc->bpew = -1; in sagetpos() 5202 softc->bop = softc->eop = softc->bpew = -1; in sagetpos() 5391 softc->partition = softc->fileno = softc->blkno = (daddr_t) 0; in saretension() 5394 softc->partition = softc->fileno = softc->blkno = (daddr_t) -1; in saretension() 5451 softc->partition = softc->fileno = softc->blkno = (daddr_t) -1; in saloadunload() [all …]
|
| H A D | scsi_da.c | 1659 struct da_softc *softc = periph->softc; in da_periph_hold() local 1672 struct da_softc *softc = periph->softc; in da_periph_unhold() local 1693 struct da_softc *softc = periph->softc; in da_periph_acquire() local 1706 struct da_softc *softc = periph->softc; in da_periph_release() local 1721 struct da_softc *softc = periph->softc; in da_periph_release_locked() local 1768 softc = (struct da_softc *)periph->softc; in daopen() 2147 softc = periph->softc; in daasync() 2801 periph->softc = softc; in daregister() 2930 softc->disk->d_maxsize = softc->maxio; in daregister() 3033 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() 425 softc = periph->softc; in pass_shutdown_kqueue() 449 softc = periph->softc; in pass_add_physpath() 462 softc->dev, softc->alias_dev, physpath); in pass_add_physpath() 579 bzero(softc, sizeof(*softc)); in passregister() 588 periph->softc = softc; in passregister() 779 softc = periph->softc; in passclose() [all …]
|
| H A D | scsi_pt.c | 147 softc = (struct pt_softc *)periph->softc; in ptopen() 177 softc = (struct pt_softc *)periph->softc; in ptclose() 205 softc = (struct pt_softc *)periph->softc; in ptstrategy() 270 bzero(softc, sizeof(*softc)); in ptctor() 277 periph->softc = softc; in ptctor() 328 softc = (struct pt_softc *)periph->softc; in ptoninvalidate() 350 softc = (struct pt_softc *)periph->softc; in ptdtor() 426 softc = (struct pt_softc *)periph->softc; in ptstart() 479 softc = (struct pt_softc *)periph->softc; in ptdone() 568 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() 389 bzero(softc, sizeof(*softc)); in chregister() 391 periph->softc = softc; in chregister() 471 softc = (struct ch_softc *)periph->softc; in chopen() 517 softc = (struct ch_softc *)periph->softc; in chclose() 544 softc = (struct ch_softc *)periph->softc; in chstart() 603 softc = (struct ch_softc *)periph->softc; in chdone() 753 softc = (struct ch_softc *)periph->softc; in chioctl() [all …]
|
| H A D | scsi_cd.c | 380 softc = (struct cd_softc *)periph->softc; in cdoninvalidate() 404 softc = (struct cd_softc *)periph->softc; in cdcleanup() 467 softc = (struct cd_softc *)periph->softc; in cdasync() 484 softc = (struct cd_softc *)periph->softc; in cdasync() 498 softc = (struct cd_softc *)periph->softc; in cdasync() 526 softc = (struct cd_softc *)periph->softc; in cdsysctlinit() 625 periph->softc = softc; in cdregister() 765 softc = (struct cd_softc *)periph->softc; in cdopen() 809 softc = (struct cd_softc *)periph->softc; in cdclose() 1084 bzero(&softc->toc, sizeof(softc->toc)); in cdstart() [all …]
|
| H A D | scsi_sg.c | 185 softc = (struct sg_softc *)periph->softc; in sgdevgonecb() 219 softc = (struct sg_softc *)periph->softc; in sgoninvalidate() 247 softc = (struct sg_softc *)periph->softc; in sgcleanup() 324 periph->softc = softc; in sgregister() 405 softc = (struct sg_softc *)periph->softc; in sgdone() 455 softc = (struct sg_softc *)periph->softc; in sgopen() 480 softc = periph->softc; in sgclose() 515 softc = (struct sg_softc *)periph->softc; in sgioctl() 895 softc = periph->softc; in sgsendccb() 929 softc = periph->softc; in sgsendrdwr() [all …]
|
| H A D | scsi_targ_bh.c | 239 softc = (struct targbh_softc *)periph->softc; in targbhenlun() 349 softc = (struct targbh_softc *)periph->softc; in targbhdislun() 396 softc = (struct targbh_softc *)malloc(sizeof(*softc), in targbhctor() 398 if (softc == NULL) { in targbhctor() 403 bzero(softc, sizeof(*softc)); in targbhctor() 409 periph->softc = softc; in targbhctor() 410 softc->init_level++; in targbhctor() 422 softc = (struct targbh_softc *)periph->softc; in targbhdtor() 436 free(softc, M_SCSIBH); in targbhdtor() 451 softc = (struct targbh_softc *)periph->softc; in targbhstart() [all …]
|
| /freebsd-13.1/sys/amd64/vmm/amd/ |
| H A D | amdvi_hw.c | 131 PCI_RID2SLOT(softc->pci_rid), PCI_RID2FUNC(softc->pci_rid), in amdvi_pci_read() 275 ctrl = softc->ctrl; in amdvi_get_cmd_tail() 296 ctrl = softc->ctrl; in amdvi_update_cmd_tail() 380 if (!softc->iotlb) in amdvi_cmd_inv_iotlb() 790 dev = softc->dev; in amdvi_alloc_intr_resources() 867 dev = softc->dev; in amdvi_add_sysctl() 897 dev = softc->dev; in amdvi_setup_hw() 931 dev = softc->dev; in amdvi_teardown_hw() 938 if (softc->cmd) in amdvi_teardown_hw() 941 if (softc->event) in amdvi_teardown_hw() [all …]
|
| H A D | ivrs_drv.c | 187 KASSERT(softc->dev_cfg_cap >= softc->dev_cfg_cnt, in ivhd_dev_add_entry() 189 if (softc->dev_cfg_cap == softc->dev_cfg_cnt) { in ivhd_dev_add_entry() 191 softc->dev_cfg_cap = 1; in ivhd_dev_add_entry() 193 softc->dev_cfg_cap <<= 2; in ivhd_dev_add_entry() 194 softc->dev_cfg = realloc(softc->dev_cfg, in ivhd_dev_add_entry() 195 sizeof(*softc->dev_cfg) * softc->dev_cfg_cap, M_DEVBUF, in ivhd_dev_add_entry() 199 dev_cfg = &softc->dev_cfg[softc->dev_cfg_cnt++]; in ivhd_dev_add_entry() 616 dev = softc->dev; in ivhd_print_cap() 618 ivhd_print_flag(dev, softc->ivhd_type, softc->ivhd_flag); in ivhd_print_cap() 619 ivhd_print_feature(dev, softc->ivhd_type, softc->ivhd_feature); in ivhd_print_cap() [all …]
|
| /freebsd-13.1/sys/cam/nvme/ |
| H A D | nvme_da.c | 312 softc = (struct nda_softc *)periph->softc; in ndaopen() 329 softc = (struct nda_softc *)periph->softc; in ndaclose() 469 softc = (struct nda_softc *)periph->softc; in ndastrategy() 515 softc = (struct nda_softc *)periph->softc; in ndadump() 593 softc = (struct nda_softc *)periph->softc; in ndaoninvalidate() 618 softc = (struct nda_softc *)periph->softc; in ndacleanup() 688 softc = periph->softc; in ndaasync() 716 softc = (struct nda_softc *)periph->softc; in ndasysctlinit() 871 periph->softc = softc; in ndaregister() 1160 softc = (struct nda_softc *)periph->softc; in ndadone() [all …]
|
| /freebsd-13.1/sys/netpfil/ipfilter/netinet/ |
| H A D | ip_lookup.c | 164 (*backends[i]->ipfl_fini)(softc, in ipf_lookup_soft_fini() 186 WRITE_ENTER(&softc->ipf_poolrw); in ipf_lookup_expire() 189 RWLOCK_EXIT(&softc->ipf_poolrw); in ipf_lookup_expire() 250 WRITE_ENTER(&softc->ipf_poolrw); in ipf_lookup_ioctl() 252 RWLOCK_EXIT(&softc->ipf_poolrw); in ipf_lookup_ioctl() 257 WRITE_ENTER(&softc->ipf_poolrw); in ipf_lookup_ioctl() 259 RWLOCK_EXIT(&softc->ipf_poolrw); in ipf_lookup_ioctl() 706 ipf_token_deref(softc, token); in ipf_lookup_iterate() 834 READ_ENTER(&softc->ipf_poolrw); in ipf_lookup_res_name() 878 READ_ENTER(&softc->ipf_poolrw); in ipf_lookup_find_htable() [all …]
|
| H A D | fil.c | 4023 (void) ipf_synclist(softc, softc->ipf_acct[0][softc->ipf_active], ifp); in ipf_sync() 4024 (void) ipf_synclist(softc, softc->ipf_acct[1][softc->ipf_active], ifp); in ipf_sync() 4025 (void) ipf_synclist(softc, softc->ipf_rules[0][softc->ipf_active], ifp); in ipf_sync() 4026 (void) ipf_synclist(softc, softc->ipf_rules[1][softc->ipf_active], ifp); in ipf_sync() 7316 softc = softc; /* gcc -Wextra */ 8024 softc->ipf_active = 1 - softc->ipf_active; 8993 bzero((char *)softc, sizeof(*softc)); 9001 softc->ipf_tuners = ipf_tune_array_copy(softc, 9020 softc->ipf_token_tail = &softc->ipf_token_head; 9261 softc->ipf_log_soft = ipf_log_soft_create(softc); [all …]
|
| H A D | ip_frag.c | 289 ipf_frag_clear(softc); in ipf_frag_soft_fini() 514 fra = ipfr_frag_new(softc, softf, fin, pass, softf->ipfr_heads, &softc->ipf_frag); in ipf_frag_new() 523 RWLOCK_EXIT(&softc->ipf_frag); in ipf_frag_new() 875 &softc->ipf_frag); in ipf_frag_known() 1001 WRITE_ENTER(&softc->ipf_frag); in ipf_frag_clear() 1007 RWLOCK_EXIT(&softc->ipf_frag); in ipf_frag_clear() 1009 WRITE_ENTER(&softc->ipf_nat); in ipf_frag_clear() 1022 RWLOCK_EXIT(&softc->ipf_nat); in ipf_frag_clear() 1045 WRITE_ENTER(&softc->ipf_frag); in ipf_frag_expire() 1056 RWLOCK_EXIT(&softc->ipf_frag); in ipf_frag_expire() [all …]
|
| /freebsd-13.1/sys/fs/nfsserver/ |
| H A D | nfs_fha_new.c | 75 softc = &fhanew_softc; in fhanew_init() 77 bzero(softc, sizeof(*softc)); in fhanew_init() 79 snprintf(softc->server_name, sizeof(softc->server_name), in fhanew_init() 88 softc->sysctl_tree = SYSCTL_ADD_NODE(&softc->sysctl_ctx, in fhanew_init() 112 SYSCTL_ADD_UINT(&softc->sysctl_ctx, SYSCTL_CHILDREN(softc->sysctl_tree), in fhanew_init() 116 SYSCTL_ADD_UINT(&softc->sysctl_ctx, SYSCTL_CHILDREN(softc->sysctl_tree), in fhanew_init() 120 SYSCTL_ADD_UINT(&softc->sysctl_ctx, SYSCTL_CHILDREN(softc->sysctl_tree), in fhanew_init() 124 SYSCTL_ADD_UINT(&softc->sysctl_ctx, SYSCTL_CHILDREN(softc->sysctl_tree), in fhanew_init() 129 SYSCTL_ADD_UINT(&softc->sysctl_ctx, SYSCTL_CHILDREN(softc->sysctl_tree), in fhanew_init() 134 SYSCTL_ADD_UINT(&softc->sysctl_ctx, SYSCTL_CHILDREN(softc->sysctl_tree), in fhanew_init() [all …]
|