Home
last modified time | relevance | path

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

123456789

/freebsd-14.2/sys/dev/bnxt/bnxt_en/
H A Dbnxt_sysctl.c82 if (BNXT_PF(softc)) { in bnxt_init_sysctl_ctx()
148 if (BNXT_PF(softc) && softc->nvm_info->nvm_oid != NULL) { in bnxt_free_sysctl_ctx()
1287 bnxt_hwrm_rss_cfg(softc, &softc->vnic_info, in bnxt_rss_key_sysctl()
1342 bnxt_hwrm_rss_cfg(softc, &softc->vnic_info, in bnxt_rss_type_sysctl()
1355 if (softc == NULL) in bnxt_rx_stall_sysctl()
1369 rc = bnxt_hwrm_vnic_cfg(softc, &softc->vnic_info); in bnxt_rx_stall_sysctl()
1380 if (softc == NULL) in bnxt_vlan_strip_sysctl()
1394 rc = bnxt_hwrm_vnic_cfg(softc, &softc->vnic_info); in bnxt_vlan_strip_sysctl()
1405 if (softc == NULL) in bnxt_set_coal_rx_usecs()
1425 if (softc == NULL) in bnxt_set_coal_rx_frames()
[all …]
H A Dif_bnxt.c477 softc->tx_cp_rings[i].ring.softc = softc; in bnxt_tx_queues_alloc()
490 softc->tx_rings[i].softc = softc; in bnxt_tx_queues_alloc()
507 softc->nq_rings[i].ring.softc = softc; in bnxt_tx_queues_alloc()
666 softc->rx_cp_rings[i].ring.softc = softc; in bnxt_rx_queues_alloc()
681 softc->rx_rings[i].softc = softc; in bnxt_rx_queues_alloc()
702 softc->ag_rings[i].softc = softc; in bnxt_rx_queues_alloc()
2107 softc->dev_fn = PCI_DEVFN(softc->slot, softc->function); in bnxt_attach_pre()
2112 softc->list.softc = softc; in bnxt_attach_pre()
2242 softc->rx_max_q = softc->tx_max_q; in bnxt_attach_pre()
2244 memcpy(softc->rx_q_ids, softc->tx_q_ids, sizeof(softc->rx_q_ids)); in bnxt_attach_pre()
[all …]
H A Dbnxt_dcb.c201 int max = softc->max_tc; in bnxt_queue_remap()
227 if (softc->ieee_ets) { in bnxt_queue_remap()
228 rc = bnxt_hwrm_queue_cos2bw_cfg(softc, softc->ieee_ets, softc->max_tc); in bnxt_queue_remap()
233 rc = bnxt_hwrm_queue_pri2cos_cfg(softc, softc->ieee_ets, in bnxt_queue_remap()
460 if (softc->hwrm_spec_code < 0x10800 || BNXT_VF(softc)) in bnxt_hwrm_queue_dscp_qcaps()
594 *tc = softc->max_tc; in bnxt_ets_validate()
807 if (BNXT_VF(softc) || (softc->fw_cap & BNXT_FW_CAP_LLDP_AGENT)) in bnxt_dcb_setdcbx()
829 softc->dcbx_cap = 0; in bnxt_dcb_init()
835 if (!softc->ieee_ets) in bnxt_dcb_init()
839 if (!softc->ieee_pfc) in bnxt_dcb_init()
[all …]
H A Dbnxt_hwrm.c206 bus_space_write_4(softc->hwrm_bar.tag, softc->hwrm_bar.handle, in _hwrm_send_message()
342 softc->max_tc = softc->max_tc ? min(softc->max_tc, max_tc) : max_tc; in bnxt_hwrm_queue_qportcfg()
343 softc->max_lltc = softc->max_lltc ? min(softc->max_lltc, max_lltc) : max_lltc; in bnxt_hwrm_queue_qportcfg()
345 if (softc->max_lltc > softc->max_tc) in bnxt_hwrm_queue_qportcfg()
346 softc->max_lltc = softc->max_tc; in bnxt_hwrm_queue_qportcfg()
393 if (softc->hwrm_spec_code < 0x10902 || softc->ctx_mem) in bnxt_hwrm_func_backing_store_qcaps()
1254 if (!softc->db_size || softc->db_size > pci_resource_len(softc->pdev, 2) || in bnxt_hwrm_func_qcfg()
1256 softc->db_size = pci_resource_len(softc->pdev, 2); in bnxt_hwrm_func_qcfg()
1948 memcpy(softc->rx_pri2cos_idx, softc->tx_pri2cos_idx, sizeof(softc->rx_pri2cos_idx)); in bnxt_hwrm_port_qstats_ext()
2191 softc->hw_lro.enable = min(softc->hw_lro.enable, 1); in bnxt_validate_hw_lro_settings()
[all …]
H A Dbnxt_hwrm.h50 int bnxt_hwrm_ver_get(struct bnxt_softc *softc);
55 int bnxt_hwrm_func_qcaps(struct bnxt_softc *softc);
56 int bnxt_hwrm_func_qcfg(struct bnxt_softc *softc);
57 int bnxt_hwrm_func_reset(struct bnxt_softc *softc);
60 int bnxt_hwrm_set_pause(struct bnxt_softc *softc);
70 int bnxt_hwrm_port_qstats(struct bnxt_softc *softc);
77 int bnxt_hwrm_set_filter(struct bnxt_softc *softc);
78 int bnxt_hwrm_free_filter(struct bnxt_softc *softc);
84 int bnxt_cfg_async_cr(struct bnxt_softc *softc);
123 int bnxt_hwrm_phy_qcaps(struct bnxt_softc *softc);
[all …]
H A Dbnxt_mgmt.c102 struct bnxt_softc *softc = NULL; in bnxt_mgmt_process_dcb() local
115 if (!softc) { in bnxt_mgmt_process_dcb()
123 bnxt_dcb_ieee_getets(softc, &mgmt_dcb.req.ets); in bnxt_mgmt_process_dcb()
166 struct bnxt_softc *softc = NULL; in bnxt_mgmt_process_hwrm() local
182 if (!softc) { in bnxt_mgmt_process_hwrm()
303 struct bnxt_softc *softc = NULL; in bnxt_mgmt_get_dev_info() local
320 if (!softc) { in bnxt_mgmt_get_dev_info()
328 dev_info.pci_info.domain_no = softc->domain; in bnxt_mgmt_get_dev_info()
329 dev_info.pci_info.bus_no = softc->bus; in bnxt_mgmt_get_dev_info()
330 dev_info.pci_info.device_no = softc->slot; in bnxt_mgmt_get_dev_info()
[all …]
/freebsd-14.2/sys/cam/ctl/
H A Dctl_ha.c160 if (softc->ha_connected || softc->ha_disconnect) { in ctl_ha_close()
186 (softc->ha_connect || softc->ha_listen) ? in ctl_ha_close()
224 if (softc->ha_connected == 0 || softc->ha_disconnect || in ctl_ha_rx_thread()
277 softc->ha_sending = mbufq_dequeue(&softc->ha_sendq); in ctl_ha_send()
504 if (softc->ha_disconnect || softc->ha_shutdown) { in ctl_ha_conn_thread()
506 if (softc->ha_disconnect == 2 || softc->ha_shutdown) in ctl_ha_conn_thread()
533 softc, &softc->ha_ctl_softc->ctl_proc, in ctl_ha_conn_thread()
549 msleep(&softc->ha_wakeup, &softc->ha_lock, 0, "-", hz); in ctl_ha_conn_thread()
592 strlcpy(softc->ha_peer, buf, sizeof(softc->ha_peer)); in ctl_ha_peer_sysctl()
593 if (softc->ha_connect || softc->ha_listen) { in ctl_ha_peer_sysctl()
[all …]
H A Dctl_frontend.c80 mtx_lock(&softc->ctl_lock); in ctl_frontend_register()
99 mtx_lock(&softc->ctl_lock); in ctl_frontend_register()
100 softc->num_frontends++; in ctl_frontend_register()
121 mtx_lock(&softc->ctl_lock); in ctl_frontend_deregister()
123 softc->num_frontends--; in ctl_frontend_deregister()
134 mtx_lock(&softc->ctl_lock); in ctl_frontend_find()
155 port->ctl_softc = softc; in ctl_port_register()
157 mtx_lock(&softc->ctl_lock); in ctl_port_register()
162 softc->port_min, softc->port_max); in ctl_port_register()
168 softc->num_ports++; in ctl_port_register()
[all …]
H A Dctl_backend.c73 mtx_lock(&softc->ctl_lock); in ctl_backend_register()
76 mtx_unlock(&softc->ctl_lock); in ctl_backend_register()
80 mtx_unlock(&softc->ctl_lock); in ctl_backend_register()
94 mtx_lock(&softc->ctl_lock); in ctl_backend_register()
96 softc->num_backends++; in ctl_backend_register()
97 mtx_unlock(&softc->ctl_lock); in ctl_backend_register()
116 mtx_lock(&softc->ctl_lock); in ctl_backend_deregister()
118 softc->num_backends--; in ctl_backend_deregister()
119 mtx_unlock(&softc->ctl_lock); in ctl_backend_deregister()
129 mtx_lock(&softc->ctl_lock); in ctl_backend_find()
[all …]
/freebsd-14.2/sys/cam/ata/
H A Data_pmp.c246 softc = (struct pmp_softc *)periph->softc; in pmpcleanup()
303 softc = (struct pmp_softc *)periph->softc; in pmpasync()
347 softc = (struct pmp_softc *)periph->softc; in pmpsysctlinit()
385 periph->softc = softc; in pmpregister()
427 softc = (struct pmp_softc *)periph->softc; in pmpstart()
704 softc->reset |= ~softc->found; in pmpdone()
710 if (softc->pm_step >= softc->pm_ports) { in pmpdone()
725 if (softc->pm_step >= softc->pm_ports) { in pmpdone()
770 softc->found |= (1 << softc->pm_step); in pmpdone()
797 if (softc->pm_step >= softc->pm_ports) { in pmpdone()
[all …]
H A Data_da.c999 softc = (struct ada_softc *)periph->softc; in adaopen()
1016 softc = (struct ada_softc *)periph->softc; in adaclose()
1083 softc = (struct ada_softc *)periph->softc; in adastrategy()
1134 softc = (struct ada_softc *)periph->softc; in adadump()
1251 softc = (struct ada_softc *)periph->softc; in adaoninvalidate()
1281 softc = (struct ada_softc *)periph->softc; in adacleanup()
1362 softc = (struct ada_softc *)periph->softc; in adaasync()
1384 softc = periph->softc; in adaasync()
1494 softc = (struct ada_softc *)periph->softc; in adasysctlinit()
1845 periph->softc = softc; in adaregister()
[all …]
/freebsd-14.2/sys/cam/scsi/
H A Dscsi_target.c172 softc = data; in targcdevdtor()
175 free(softc, M_TARG); in targcdevdtor()
193 free(softc, M_TARG); in targcdevdtor()
207 softc = malloc(sizeof(*softc), M_TARG, in targopen()
211 softc->path = NULL; in targopen()
486 periph->softc = softc; in targctor()
499 softc = (struct targ_softc *)periph->softc; in targdtor()
516 softc->path = NULL; in targdtor()
620 softc = (struct targ_softc *)periph->softc; in targstart()
764 softc = (struct targ_softc *)periph->softc; in targdone()
[all …]
H A Dscsi_da.c1677 struct da_softc *softc = periph->softc; in da_periph_hold() local
1690 struct da_softc *softc = periph->softc; in da_periph_unhold() local
1711 struct da_softc *softc = periph->softc; in da_periph_acquire() local
1724 struct da_softc *softc = periph->softc; in da_periph_release() local
1739 struct da_softc *softc = periph->softc; in da_periph_release_locked() local
1786 softc = (struct da_softc *)periph->softc; in daopen()
2170 softc = periph->softc; in daasync()
2828 periph->softc = softc; in daregister()
2962 softc->disk->d_maxsize = softc->maxio; in daregister()
3045 softc = periph->softc; in da_zone_cmd()
[all …]
H A Dscsi_sa.c1528 &softc->media_density, &softc->media_numblks, &softc->buffer_mode, in sagetparams_common()
2500 periph->softc = softc; in saregister()
3466 softc->max_blk = softc->min_blk = in samount()
4969 softc->partition = softc->fileno = softc->blkno = (daddr_t) 0; in sarewind()
5092 softc->fileno = softc->blkno = softc->partition = (daddr_t) -1; in sawritefilemarks()
5127 softc->bop = softc->eop = softc->bpew = -1; in sagetpos()
5205 softc->bop = softc->eop = softc->bpew = -1; in sagetpos()
5394 softc->partition = softc->fileno = softc->blkno = (daddr_t) 0; in saretension()
5397 softc->partition = softc->fileno = softc->blkno = (daddr_t) -1; in saretension()
5454 softc->partition = softc->fileno = softc->blkno = (daddr_t) -1; in saloadunload()
[all …]
H A Dscsi_pass.c238 softc = (struct pass_softc *)periph->softc; in passrejectios()
298 softc = (struct pass_softc *)periph->softc; in passdevgonecb()
341 softc = (struct pass_softc *)periph->softc; in passoninvalidate()
362 softc = (struct pass_softc *)periph->softc; in passcleanup()
424 softc = periph->softc; in pass_shutdown_kqueue()
448 softc = periph->softc; in pass_add_physpath()
461 &softc->alias_dev, softc->dev, 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 Dscsi_pt.c144 softc = (struct pt_softc *)periph->softc; in ptopen()
174 softc = (struct pt_softc *)periph->softc; in ptclose()
202 softc = (struct pt_softc *)periph->softc; in ptstrategy()
267 bzero(softc, sizeof(*softc)); in ptctor()
274 periph->softc = softc; in ptctor()
325 softc = (struct pt_softc *)periph->softc; in ptoninvalidate()
347 softc = (struct pt_softc *)periph->softc; in ptdtor()
401 softc = (struct pt_softc *)periph->softc; in ptasync()
423 softc = (struct pt_softc *)periph->softc; in ptstart()
476 softc = (struct pt_softc *)periph->softc; in ptdone()
[all …]
H A Dscsi_ch.c254 softc = (struct ch_softc *)periph->softc; in chdevgonecb()
288 softc = (struct ch_softc *)periph->softc; in choninvalidate()
309 softc = (struct ch_softc *)periph->softc; in chcleanup()
386 bzero(softc, sizeof(*softc)); in chregister()
388 periph->softc = softc; in chregister()
468 softc = (struct ch_softc *)periph->softc; in chopen()
514 softc = (struct ch_softc *)periph->softc; in chclose()
541 softc = (struct ch_softc *)periph->softc; in chstart()
600 softc = (struct ch_softc *)periph->softc; in chdone()
750 softc = (struct ch_softc *)periph->softc; in chioctl()
[all …]
H A Dscsi_cd.c373 softc = (struct cd_softc *)periph->softc; in cdoninvalidate()
397 softc = (struct cd_softc *)periph->softc; in cdcleanup()
460 softc = (struct cd_softc *)periph->softc; in cdasync()
477 softc = (struct cd_softc *)periph->softc; in cdasync()
491 softc = (struct cd_softc *)periph->softc; in cdasync()
519 softc = (struct cd_softc *)periph->softc; in cdsysctlinit()
618 periph->softc = softc; in cdregister()
747 softc = (struct cd_softc *)periph->softc; in cdopen()
791 softc = (struct cd_softc *)periph->softc; in cdclose()
1066 bzero(&softc->toc, sizeof(softc->toc)); in cdstart()
[all …]
/freebsd-14.2/sys/amd64/vmm/amd/
H A Damdvi_hw.c128 return (pci_cfgregread(softc->pci_seg, PCI_RID2BUS(softc->pci_rid), in amdvi_pci_read()
129 PCI_RID2SLOT(softc->pci_rid), PCI_RID2FUNC(softc->pci_rid), in amdvi_pci_read()
273 ctrl = softc->ctrl; in amdvi_get_cmd_tail()
378 if (!softc->iotlb) in amdvi_cmd_inv_iotlb()
789 dev = softc->dev; in amdvi_alloc_intr_resources()
866 dev = softc->dev; in amdvi_add_sysctl()
896 dev = softc->dev; in amdvi_setup_hw()
930 dev = softc->dev; in amdvi_teardown_hw()
937 if (softc->cmd) in amdvi_teardown_hw()
940 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-14.2/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 …]
/freebsd-14.2/sys/cam/nvme/
H A Dnvme_da.c310 softc = (struct nda_softc *)periph->softc; in ndaopen()
327 softc = (struct nda_softc *)periph->softc; in ndaclose()
468 softc = (struct nda_softc *)periph->softc; in ndastrategy()
514 softc = (struct nda_softc *)periph->softc; in ndadump()
592 softc = (struct nda_softc *)periph->softc; in ndaoninvalidate()
622 softc = (struct nda_softc *)periph->softc; in ndacleanup()
692 softc = periph->softc; in ndaasync()
720 softc = (struct nda_softc *)periph->softc; in ndasysctlinit()
875 periph->softc = softc; in ndaregister()
1157 softc = (struct nda_softc *)periph->softc; in ndadone()
[all …]
/freebsd-14.2/sys/netpfil/ipfilter/netinet/
H A Dip_lookup.c163 (*backends[i]->ipfl_fini)(softc, in ipf_lookup_soft_fini()
185 WRITE_ENTER(&softc->ipf_poolrw); in ipf_lookup_expire()
188 RWLOCK_EXIT(&softc->ipf_poolrw); in ipf_lookup_expire()
249 WRITE_ENTER(&softc->ipf_poolrw); in ipf_lookup_ioctl()
251 RWLOCK_EXIT(&softc->ipf_poolrw); in ipf_lookup_ioctl()
256 WRITE_ENTER(&softc->ipf_poolrw); in ipf_lookup_ioctl()
258 RWLOCK_EXIT(&softc->ipf_poolrw); in ipf_lookup_ioctl()
705 ipf_token_deref(softc, token); in ipf_lookup_iterate()
833 READ_ENTER(&softc->ipf_poolrw); in ipf_lookup_res_name()
877 READ_ENTER(&softc->ipf_poolrw); in ipf_lookup_find_htable()
[all …]
H A Dfil.c4032 (void) ipf_synclist(softc, softc->ipf_acct[0][softc->ipf_active], ifp); in ipf_sync()
4033 (void) ipf_synclist(softc, softc->ipf_acct[1][softc->ipf_active], ifp); in ipf_sync()
4034 (void) ipf_synclist(softc, softc->ipf_rules[0][softc->ipf_active], ifp); in ipf_sync()
4035 (void) ipf_synclist(softc, softc->ipf_rules[1][softc->ipf_active], ifp); in ipf_sync()
7325 softc = softc; /* gcc -Wextra */
8028 softc->ipf_active = 1 - softc->ipf_active;
8997 bzero((char *)softc, sizeof(*softc));
9005 softc->ipf_tuners = ipf_tune_array_copy(softc,
9024 softc->ipf_token_tail = &softc->ipf_token_head;
9265 softc->ipf_log_soft = ipf_log_soft_create(softc);
[all …]
H A Dip_frag.c287 ipf_frag_clear(softc); in ipf_frag_soft_fini()
512 fra = ipfr_frag_new(softc, softf, fin, pass, softf->ipfr_heads, &softc->ipf_frag); in ipf_frag_new()
521 RWLOCK_EXIT(&softc->ipf_frag); in ipf_frag_new()
873 &softc->ipf_frag); in ipf_frag_known()
999 WRITE_ENTER(&softc->ipf_frag); in ipf_frag_clear()
1005 RWLOCK_EXIT(&softc->ipf_frag); in ipf_frag_clear()
1007 WRITE_ENTER(&softc->ipf_nat); in ipf_frag_clear()
1020 RWLOCK_EXIT(&softc->ipf_nat); in ipf_frag_clear()
1043 WRITE_ENTER(&softc->ipf_frag); in ipf_frag_expire()
1054 RWLOCK_EXIT(&softc->ipf_frag); in ipf_frag_expire()
[all …]

123456789