Home
last modified time | relevance | path

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

123456789

/freebsd/sys/dev/bnxt/
H A Dbnxt_sysctl.c75 if (BNXT_PF(softc)) { in bnxt_init_sysctl_ctx()
131 if (BNXT_PF(softc) && softc->nvm_info->nvm_oid != NULL) { in bnxt_free_sysctl_ctx()
1167 bnxt_hwrm_rss_cfg(softc, &softc->vnic_info, in bnxt_rss_key_sysctl()
1222 bnxt_hwrm_rss_cfg(softc, &softc->vnic_info, in bnxt_rss_type_sysctl()
1235 if (softc == NULL) in bnxt_rx_stall_sysctl()
1249 rc = bnxt_hwrm_vnic_cfg(softc, &softc->vnic_info); in bnxt_rx_stall_sysctl()
1260 if (softc == NULL) in bnxt_vlan_strip_sysctl()
1274 rc = bnxt_hwrm_vnic_cfg(softc, &softc->vnic_info); in bnxt_vlan_strip_sysctl()
1285 if (softc == NULL) in bnxt_set_coal_rx_usecs()
1305 if (softc == NULL) in bnxt_set_coal_rx_frames()
[all …]
H A Dif_bnxt.c428 softc->tx_cp_rings[i].ring.softc = softc; in bnxt_tx_queues_alloc()
441 softc->tx_rings[i].softc = softc; in bnxt_tx_queues_alloc()
458 softc->nq_rings[i].ring.softc = softc; in bnxt_tx_queues_alloc()
617 softc->rx_cp_rings[i].ring.softc = softc; in bnxt_rx_queues_alloc()
632 softc->rx_rings[i].softc = softc; in bnxt_rx_queues_alloc()
654 softc->ag_rings[i].softc = softc; in bnxt_rx_queues_alloc()
1305 softc->bus = pci_get_bus(softc->dev); in bnxt_attach_pre()
1306 softc->slot = pci_get_slot(softc->dev); in bnxt_attach_pre()
1308 softc->dev_fn = PCI_DEVFN(softc->slot, softc->function); in bnxt_attach_pre()
1313 softc->list.softc = softc; in bnxt_attach_pre()
[all …]
H A Dbnxt_hwrm.c86 rc = iflib_dma_alloc(softc->ctx, PAGE_SIZE, &softc->hwrm_cmd_resp, in bnxt_alloc_hwrm_dma_mem()
172 bus_space_write_4(softc->hwrm_bar.tag, softc->hwrm_bar.handle, in _hwrm_send_message()
275 softc->max_q = softc->max_tc; in bnxt_hwrm_queue_qportcfg()
279 softc->max_tc = 1; in bnxt_hwrm_queue_qportcfg()
281 if (softc->max_lltc > softc->max_tc) in bnxt_hwrm_queue_qportcfg()
282 softc->max_lltc = softc->max_tc; in bnxt_hwrm_queue_qportcfg()
296 if (softc->hwrm_spec_code < 0x10902 || BNXT_VF(softc) || softc->ctx_mem) in bnxt_hwrm_func_backing_store_qcaps()
556 softc->hwrm_cmd_timeo = max(app_timeout, softc->hwrm_cmd_timeo); in bnxt_hwrm_passthrough()
1662 softc->hw_lro.enable = min(softc->hw_lro.enable, 1); in bnxt_validate_hw_lro_settings()
1666 softc->hw_lro.max_agg_segs = min(softc->hw_lro.max_agg_segs, in bnxt_validate_hw_lro_settings()
[all …]
H A Dbnxt_hwrm.h47 int bnxt_hwrm_ver_get(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);
66 int bnxt_hwrm_port_qstats(struct bnxt_softc *softc);
73 int bnxt_hwrm_set_filter(struct bnxt_softc *softc);
74 int bnxt_hwrm_free_filter(struct bnxt_softc *softc);
80 int bnxt_cfg_async_cr(struct bnxt_softc *softc);
119 int bnxt_hwrm_phy_qcaps(struct bnxt_softc *softc);
[all …]
H A Dbnxt_mgmt.c102 struct bnxt_softc *softc = NULL; in bnxt_mgmt_process_hwrm() local
118 if (!softc) { in bnxt_mgmt_process_hwrm()
184 device_printf(softc->dev, "%s:%d Failed to copy" in bnxt_mgmt_process_hwrm()
194 device_printf(softc->dev, "%s:%d iflib_dma_alloc" in bnxt_mgmt_process_hwrm()
257 struct bnxt_softc *softc = NULL; in bnxt_mgmt_get_dev_info() local
274 if (!softc) { in bnxt_mgmt_get_dev_info()
282 dev_info.pci_info.domain_no = softc->domain; in bnxt_mgmt_get_dev_info()
283 dev_info.pci_info.bus_no = softc->bus; in bnxt_mgmt_get_dev_info()
284 dev_info.pci_info.device_no = softc->slot; in bnxt_mgmt_get_dev_info()
285 dev_info.pci_info.function_no = softc->function; in bnxt_mgmt_get_dev_info()
[all …]
/freebsd/sys/cam/ctl/
H A Dctl_ha.c159 if (softc->ha_connected || softc->ha_disconnect) { in ctl_ha_close()
185 (softc->ha_connect || softc->ha_listen) ? in ctl_ha_close()
223 if (softc->ha_connected == 0 || softc->ha_disconnect || in ctl_ha_rx_thread()
276 softc->ha_sending = mbufq_dequeue(&softc->ha_sendq); in ctl_ha_send()
498 if (softc->ha_disconnect || softc->ha_shutdown) { in ctl_ha_conn_thread()
500 if (softc->ha_disconnect == 2 || softc->ha_shutdown) in ctl_ha_conn_thread()
527 softc, &softc->ha_ctl_softc->ctl_proc, in ctl_ha_conn_thread()
543 msleep(&softc->ha_wakeup, &softc->ha_lock, 0, "-", hz); in ctl_ha_conn_thread()
586 strlcpy(softc->ha_peer, buf, sizeof(softc->ha_peer)); in ctl_ha_peer_sysctl()
587 if (softc->ha_connect || softc->ha_listen) { in ctl_ha_peer_sysctl()
[all …]
H A Dctl_frontend.c79 mtx_lock(&softc->ctl_lock); in ctl_frontend_register()
98 mtx_lock(&softc->ctl_lock); in ctl_frontend_register()
99 softc->num_frontends++; in ctl_frontend_register()
120 mtx_lock(&softc->ctl_lock); in ctl_frontend_deregister()
122 softc->num_frontends--; in ctl_frontend_deregister()
133 mtx_lock(&softc->ctl_lock); in ctl_frontend_find()
154 port->ctl_softc = softc; in ctl_port_register()
156 mtx_lock(&softc->ctl_lock); in ctl_port_register()
161 softc->port_min, softc->port_max); in ctl_port_register()
167 softc->num_ports++; in ctl_port_register()
[all …]
H A Dctl_backend.c72 mtx_lock(&softc->ctl_lock); in ctl_backend_register()
75 mtx_unlock(&softc->ctl_lock); in ctl_backend_register()
79 mtx_unlock(&softc->ctl_lock); in ctl_backend_register()
93 mtx_lock(&softc->ctl_lock); in ctl_backend_register()
95 softc->num_backends++; in ctl_backend_register()
96 mtx_unlock(&softc->ctl_lock); in ctl_backend_register()
115 mtx_lock(&softc->ctl_lock); in ctl_backend_deregister()
117 softc->num_backends--; in ctl_backend_deregister()
118 mtx_unlock(&softc->ctl_lock); in ctl_backend_deregister()
128 mtx_lock(&softc->ctl_lock); in ctl_backend_find()
[all …]
/freebsd/sys/cam/ata/
H A Data_pmp.c245 softc = (struct pmp_softc *)periph->softc; in pmpcleanup()
302 softc = (struct pmp_softc *)periph->softc; in pmpasync()
346 softc = (struct pmp_softc *)periph->softc; in pmpsysctlinit()
384 periph->softc = softc; in pmpregister()
426 softc = (struct pmp_softc *)periph->softc; in pmpstart()
703 softc->reset |= ~softc->found; in pmpdone()
709 if (softc->pm_step >= softc->pm_ports) { in pmpdone()
724 if (softc->pm_step >= softc->pm_ports) { in pmpdone()
769 softc->found |= (1 << softc->pm_step); in pmpdone()
796 if (softc->pm_step >= softc->pm_ports) { in pmpdone()
[all …]
H A Data_da.c998 softc = (struct ada_softc *)periph->softc; in adaopen()
1015 softc = (struct ada_softc *)periph->softc; in adaclose()
1082 softc = (struct ada_softc *)periph->softc; in adastrategy()
1133 softc = (struct ada_softc *)periph->softc; in adadump()
1250 softc = (struct ada_softc *)periph->softc; in adaoninvalidate()
1280 softc = (struct ada_softc *)periph->softc; in adacleanup()
1361 softc = (struct ada_softc *)periph->softc; in adaasync()
1383 softc = periph->softc; in adaasync()
1493 softc = (struct ada_softc *)periph->softc; in adasysctlinit()
1844 periph->softc = softc; in adaregister()
[all …]
/freebsd/sys/cam/scsi/
H A Dscsi_target.c171 softc = data; in targcdevdtor()
174 free(softc, M_TARG); in targcdevdtor()
192 free(softc, M_TARG); in targcdevdtor()
206 softc = malloc(sizeof(*softc), M_TARG, in targopen()
210 softc->path = NULL; in targopen()
485 periph->softc = softc; in targctor()
498 softc = (struct targ_softc *)periph->softc; in targdtor()
515 softc->path = NULL; in targdtor()
619 softc = (struct targ_softc *)periph->softc; in targstart()
763 softc = (struct targ_softc *)periph->softc; in targdone()
[all …]
H A Dscsi_da.c1676 struct da_softc *softc = periph->softc; in da_periph_hold() local
1689 struct da_softc *softc = periph->softc; in da_periph_unhold() local
1710 struct da_softc *softc = periph->softc; in da_periph_acquire() local
1723 struct da_softc *softc = periph->softc; in da_periph_release() local
1738 struct da_softc *softc = periph->softc; in da_periph_release_locked() local
1785 softc = (struct da_softc *)periph->softc; in daopen()
2169 softc = periph->softc; in daasync()
2827 periph->softc = softc; in daregister()
2961 softc->disk->d_maxsize = softc->maxio; in daregister()
3044 softc = periph->softc; in da_zone_cmd()
[all …]
H A Dscsi_sa.c1527 &softc->media_density, &softc->media_numblks, &softc->buffer_mode, in sagetparams_common()
2499 periph->softc = softc; in saregister()
3465 softc->max_blk = softc->min_blk = in samount()
4968 softc->partition = softc->fileno = softc->blkno = (daddr_t) 0; in sarewind()
5091 softc->fileno = softc->blkno = softc->partition = (daddr_t) -1; in sawritefilemarks()
5126 softc->bop = softc->eop = softc->bpew = -1; in sagetpos()
5204 softc->bop = softc->eop = softc->bpew = -1; in sagetpos()
5393 softc->partition = softc->fileno = softc->blkno = (daddr_t) 0; in saretension()
5396 softc->partition = softc->fileno = softc->blkno = (daddr_t) -1; in saretension()
5453 softc->partition = softc->fileno = softc->blkno = (daddr_t) -1; in saloadunload()
[all …]
H A Dscsi_pass.c237 softc = (struct pass_softc *)periph->softc; in passrejectios()
297 softc = (struct pass_softc *)periph->softc; in passdevgonecb()
340 softc = (struct pass_softc *)periph->softc; in passoninvalidate()
361 softc = (struct pass_softc *)periph->softc; in passcleanup()
423 softc = periph->softc; in pass_shutdown_kqueue()
447 softc = periph->softc; in pass_add_physpath()
460 &softc->alias_dev, softc->dev, in pass_add_physpath()
578 bzero(softc, sizeof(*softc)); in passregister()
587 periph->softc = softc; in passregister()
778 softc = periph->softc; in passclose()
[all …]
H A Dscsi_pt.c143 softc = (struct pt_softc *)periph->softc; in ptopen()
173 softc = (struct pt_softc *)periph->softc; in ptclose()
201 softc = (struct pt_softc *)periph->softc; in ptstrategy()
266 bzero(softc, sizeof(*softc)); in ptctor()
273 periph->softc = softc; in ptctor()
324 softc = (struct pt_softc *)periph->softc; in ptoninvalidate()
346 softc = (struct pt_softc *)periph->softc; in ptdtor()
400 softc = (struct pt_softc *)periph->softc; in ptasync()
422 softc = (struct pt_softc *)periph->softc; in ptstart()
475 softc = (struct pt_softc *)periph->softc; in ptdone()
[all …]
H A Dscsi_ch.c253 softc = (struct ch_softc *)periph->softc; in chdevgonecb()
287 softc = (struct ch_softc *)periph->softc; in choninvalidate()
308 softc = (struct ch_softc *)periph->softc; in chcleanup()
385 bzero(softc, sizeof(*softc)); in chregister()
387 periph->softc = softc; in chregister()
467 softc = (struct ch_softc *)periph->softc; in chopen()
513 softc = (struct ch_softc *)periph->softc; in chclose()
540 softc = (struct ch_softc *)periph->softc; in chstart()
599 softc = (struct ch_softc *)periph->softc; in chdone()
749 softc = (struct ch_softc *)periph->softc; in chioctl()
[all …]
H A Dscsi_cd.c372 softc = (struct cd_softc *)periph->softc; in cdoninvalidate()
396 softc = (struct cd_softc *)periph->softc; in cdcleanup()
459 softc = (struct cd_softc *)periph->softc; in cdasync()
476 softc = (struct cd_softc *)periph->softc; in cdasync()
490 softc = (struct cd_softc *)periph->softc; in cdasync()
518 softc = (struct cd_softc *)periph->softc; in cdsysctlinit()
617 periph->softc = softc; in cdregister()
746 softc = (struct cd_softc *)periph->softc; in cdopen()
790 softc = (struct cd_softc *)periph->softc; in cdclose()
1065 bzero(&softc->toc, sizeof(softc->toc)); in cdstart()
[all …]
/freebsd/sys/amd64/vmm/amd/
H A Damdvi_hw.c127 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()
272 ctrl = softc->ctrl; in amdvi_get_cmd_tail()
377 if (!softc->iotlb) in amdvi_cmd_inv_iotlb()
788 dev = softc->dev; in amdvi_alloc_intr_resources()
865 dev = softc->dev; in amdvi_add_sysctl()
895 dev = softc->dev; in amdvi_setup_hw()
929 dev = softc->dev; in amdvi_teardown_hw()
936 if (softc->cmd) in amdvi_teardown_hw()
939 if (softc->event) in amdvi_teardown_hw()
[all …]
H A Divrs_drv.c185 KASSERT(softc->dev_cfg_cap >= softc->dev_cfg_cnt, in ivhd_dev_add_entry()
187 if (softc->dev_cfg_cap == softc->dev_cfg_cnt) { in ivhd_dev_add_entry()
189 softc->dev_cfg_cap = 1; in ivhd_dev_add_entry()
191 softc->dev_cfg_cap <<= 2; in ivhd_dev_add_entry()
192 softc->dev_cfg = realloc(softc->dev_cfg, in ivhd_dev_add_entry()
193 sizeof(*softc->dev_cfg) * softc->dev_cfg_cap, M_DEVBUF, in ivhd_dev_add_entry()
197 dev_cfg = &softc->dev_cfg[softc->dev_cfg_cnt++]; in ivhd_dev_add_entry()
614 dev = softc->dev; in ivhd_print_cap()
616 ivhd_print_flag(dev, softc->ivhd_type, softc->ivhd_flag); in ivhd_print_cap()
617 ivhd_print_feature(dev, softc->ivhd_type, softc->ivhd_feature); in ivhd_print_cap()
[all …]
/freebsd/sys/dev/enic/
H A Dif_enic.c277 enic->softc = softc; in enic_attach_pre()
279 vdev->softc = softc; in enic_attach_pre()
410 softc->enic.cq->ntxqsets = softc->enic.wq_count + softc->enic.rq_count; in enic_attach_pre()
552 iflib_irq_free(softc->ctx, &softc->enic_err_intr_irq); in enic_free_irqs()
777 softc = vsc; in enic_event_intr()
1400 rc = enic_map_bar(softc, &softc->mem, 0, true); in enic_pci_mapping()
1404 rc = enic_map_bar(softc, &softc->io, 2, false); in enic_pci_mapping()
1414 softc->mem.rid, softc->mem.res); in enic_pci_mapping_free()
1419 softc->io.rid, softc->io.res); in enic_pci_mapping_free()
1558 struct enic_softc *softc = enic->softc; in enic_update_packet_filter() local
[all …]
H A Denic_txrx.c104 softc = vsc; in enic_isc_txd_encap()
110 ENIC_LOCK(softc); in enic_isc_txd_encap()
153 softc = vsc; in enic_isc_txd_flush()
156 ENIC_LOCK(softc); in enic_isc_txd_flush()
177 softc = vsc; in enic_isc_txd_credits_update()
184 ENIC_LOCK(softc); in enic_isc_txd_credits_update()
216 softc = vsc; in enic_isc_rxd_available()
236 softc = vsc; in enic_isc_rxd_pkt_get()
275 softc = vsc; in enic_isc_rxd_refill()
306 softc = vsc; in enic_isc_rxd_flush()
[all …]
/freebsd/sys/cam/nvme/
H A Dnvme_da.c309 softc = (struct nda_softc *)periph->softc; in ndaopen()
326 softc = (struct nda_softc *)periph->softc; in ndaclose()
467 softc = (struct nda_softc *)periph->softc; in ndastrategy()
513 softc = (struct nda_softc *)periph->softc; in ndadump()
591 softc = (struct nda_softc *)periph->softc; in ndaoninvalidate()
621 softc = (struct nda_softc *)periph->softc; in ndacleanup()
691 softc = periph->softc; in ndaasync()
719 softc = (struct nda_softc *)periph->softc; in ndasysctlinit()
874 periph->softc = softc; in ndaregister()
1156 softc = (struct nda_softc *)periph->softc; in ndadone()
[all …]
/freebsd/sys/netpfil/ipfilter/netinet/
H A Dip_lookup.c160 (*backends[i]->ipfl_fini)(softc, in ipf_lookup_soft_fini()
182 WRITE_ENTER(&softc->ipf_poolrw); in ipf_lookup_expire()
185 RWLOCK_EXIT(&softc->ipf_poolrw); in ipf_lookup_expire()
246 WRITE_ENTER(&softc->ipf_poolrw); in ipf_lookup_ioctl()
248 RWLOCK_EXIT(&softc->ipf_poolrw); in ipf_lookup_ioctl()
253 WRITE_ENTER(&softc->ipf_poolrw); in ipf_lookup_ioctl()
255 RWLOCK_EXIT(&softc->ipf_poolrw); in ipf_lookup_ioctl()
702 ipf_token_deref(softc, token); in ipf_lookup_iterate()
830 READ_ENTER(&softc->ipf_poolrw); in ipf_lookup_res_name()
874 READ_ENTER(&softc->ipf_poolrw); in ipf_lookup_find_htable()
[all …]
H A Dfil.c4028 (void) ipf_synclist(softc, softc->ipf_acct[0][softc->ipf_active], ifp); in ipf_sync()
4029 (void) ipf_synclist(softc, softc->ipf_acct[1][softc->ipf_active], ifp); in ipf_sync()
4030 (void) ipf_synclist(softc, softc->ipf_rules[0][softc->ipf_active], ifp); in ipf_sync()
4031 (void) ipf_synclist(softc, softc->ipf_rules[1][softc->ipf_active], ifp); in ipf_sync()
7321 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 Dip_frag.c283 ipf_frag_clear(softc); in ipf_frag_soft_fini()
508 fra = ipfr_frag_new(softc, softf, fin, pass, softf->ipfr_heads, &softc->ipf_frag); in ipf_frag_new()
517 RWLOCK_EXIT(&softc->ipf_frag); in ipf_frag_new()
869 &softc->ipf_frag); in ipf_frag_known()
995 WRITE_ENTER(&softc->ipf_frag); in ipf_frag_clear()
1001 RWLOCK_EXIT(&softc->ipf_frag); in ipf_frag_clear()
1003 WRITE_ENTER(&softc->ipf_nat); in ipf_frag_clear()
1016 RWLOCK_EXIT(&softc->ipf_nat); in ipf_frag_clear()
1039 WRITE_ENTER(&softc->ipf_frag); in ipf_frag_expire()
1050 RWLOCK_EXIT(&softc->ipf_frag); in ipf_frag_expire()
[all …]

123456789