Home
last modified time | relevance | path

Searched refs:bdf (Results 1 – 25 of 47) sorted by relevance

12

/illumos-gate/usr/src/data/consfonts/
H A DMakefile17 GALLANT_SRC= Gallant19.bdf
20 6x12_SRC= ter-u12n.bdf ter-u12b.bdf
23 6x12b_SRC= ter-u12b.bdf
26 8x14_SRC= ter-u14n.bdf ter-u14b.bdf
29 8x14b_SRC= ter-u14b.bdf
32 8x14v_SRC= ter-u14v.bdf
35 8x16_SRC= ter-u16n.bdf ter-u16b.bdf
38 8x16b_SRC= ter-u16b.bdf
41 8x16v_SRC= ter-u16v.bdf
44 10x18_SRC= ter-u18n.bdf ter-u18b.bdf
[all …]
/illumos-gate/usr/src/uts/common/io/pciex/
H A Dpci_cfgacc.c29 {(r).rcdip = (d); (r).bdf = (b); (r).offset = (o); \
47 pci_cfgacc_get8(dev_info_t *rcdip, uint16_t bdf, uint16_t off) in pci_cfgacc_get8() argument
51 PCI_CFGACC_FILLREQ(req, rcdip, bdf, off, 1, B_FALSE, 0); in pci_cfgacc_get8()
57 pci_cfgacc_put8(dev_info_t *rcdip, uint16_t bdf, uint16_t off, uint8_t data) in pci_cfgacc_put8() argument
61 PCI_CFGACC_FILLREQ(req, rcdip, bdf, off, 1, B_TRUE, data); in pci_cfgacc_put8()
66 pci_cfgacc_get16(dev_info_t *rcdip, uint16_t bdf, uint16_t off) in pci_cfgacc_get16() argument
70 PCI_CFGACC_FILLREQ(req, rcdip, bdf, off, 2, B_FALSE, 0); in pci_cfgacc_get16()
76 pci_cfgacc_put16(dev_info_t *rcdip, uint16_t bdf, uint16_t off, uint16_t data) in pci_cfgacc_put16() argument
80 PCI_CFGACC_FILLREQ(req, rcdip, bdf, off, 2, B_TRUE, data); in pci_cfgacc_put16()
85 pci_cfgacc_get32(dev_info_t *rcdip, uint16_t bdf, uint16_t off) in pci_cfgacc_get32() argument
[all …]
H A Dpciev.c49 static void pcie_bdf_list_add(pcie_req_id_t bdf,
51 static void pcie_bdf_list_remove(pcie_req_id_t bdf,
61 pcie_find_dip_by_bdf(dev_info_t *rootp, pcie_req_id_t bdf) in pcie_find_dip_by_bdf() argument
70 if (bus_p && (bus_p->bus_bdf == bdf)) in pcie_find_dip_by_bdf()
73 bus_num = (bdf >> 8) & 0xff; in pcie_find_dip_by_bdf()
77 return (pcie_find_dip_by_bdf(dip, bdf)); in pcie_find_dip_by_bdf()
88 pcie_bdf_list_add(pcie_req_id_t bdf, pcie_req_id_list_t **rlist_p) in pcie_bdf_list_add() argument
92 rl->bdf = bdf; in pcie_bdf_list_add()
101 pcie_bdf_list_remove(pcie_req_id_t bdf, pcie_req_id_list_t **rlist_p) in pcie_bdf_list_remove() argument
106 if (rl_pre->bdf == bdf) { in pcie_bdf_list_remove()
[all …]
H A Dpcie_fault.c437 pf_in_bus_range(pcie_bus_t *bus_p, pcie_req_id_t bdf) in pf_in_bus_range() argument
440 uint8_t bus_no = (bdf & PCIE_REQ_ID_BUS_MASK) >> in pf_in_bus_range()
2278 pcie_req_id_t *bdf) in pf_pci_find_trans_type() argument
2290 *bdf = PCIE_INVALID_BDF; in pf_pci_find_trans_type()
2299 *bdf = PCIE_INVALID_BDF; in pf_pci_find_trans_type()
2304 *bdf = PCIE_INVALID_BDF; in pf_pci_find_trans_type()
2335 pcie_req_id_t bdf = PCIE_INVALID_BDF; in pf_pci_decode() local
2346 bdf = attr->rid; in pf_pci_decode()
2357 bdf = attr->rid; in pf_pci_decode()
2359 pf_pci_find_trans_type(pfd_p, &addr, &trans_type, &bdf); in pf_pci_decode()
[all …]
H A Dpcie.c1915 pcie_init_bus(dev_info_t *dip, pcie_req_id_t bdf, uint8_t flags) in pcie_init_bus() argument
1931 bus_p->bus_bdf = bdf; in pcie_init_bus()
1937 bus_p->bus_dev_ven_id = pci_cfgacc_get32(rcdip, bdf, PCI_CONF_VENID); in pcie_init_bus()
1938 bus_p->bus_rev_id = pci_cfgacc_get8(rcdip, bdf, PCI_CONF_REVID); in pcie_init_bus()
1940 bus_p->bus_hdr_type = pci_cfgacc_get8(rcdip, bdf, PCI_CONF_HEADER); in pcie_init_bus()
1949 status = pci_cfgacc_get16(rcdip, bdf, PCI_CONF_STAT); in pcie_init_bus()
1975 for (base = pci_cfgacc_get8(rcdip, bdf, base); base && num_cap; in pcie_init_bus()
1976 base = pci_cfgacc_get8(rcdip, bdf, base + PCI_CAP_NEXT_PTR)) { in pcie_init_bus()
1977 capid = pci_cfgacc_get8(rcdip, bdf, base); in pcie_init_bus()
1983 pcap = pci_cfgacc_get16(rcdip, bdf, base + in pcie_init_bus()
[all …]
/illumos-gate/usr/src/uts/sun4v/io/px/
H A Dpx_libhv.c48 static uint64_t hvio_rp_mps(devhandle_t dev_hdl, pci_device_t bdf, int32_t *mps,
52 hvio_get_rp_mps_cap(devhandle_t dev_hdl, pci_device_t bdf, int32_t *mps_cap) in hvio_get_rp_mps_cap() argument
54 return (hvio_rp_mps(dev_hdl, bdf, mps_cap, MPS_GET)); in hvio_get_rp_mps_cap()
58 hvio_set_rp_mps(devhandle_t dev_hdl, pci_device_t bdf, int32_t mps) in hvio_set_rp_mps() argument
60 return (hvio_rp_mps(dev_hdl, bdf, &mps, MPS_SET)); in hvio_set_rp_mps()
64 hvio_rp_mps(devhandle_t dev_hdl, pci_device_t bdf, int32_t *mps, int op) in hvio_rp_mps() argument
71 if ((hvio_config_get(dev_hdl, bdf, PCI_CONF_VENID, 4, in hvio_rp_mps()
78 if ((hvio_config_get(dev_hdl, bdf, PCI_CONF_COMM, 4, in hvio_rp_mps()
85 (void) hvio_config_get(dev_hdl, bdf, PCI_CONF_CAP_PTR, 4, in hvio_rp_mps()
99 (void) hvio_config_get(dev_hdl, bdf, hdr_next_ptr, 4, in hvio_rp_mps()
[all …]
H A Dpx_lib4v.h182 pci_device_t bdf);
209 uint64_t data, pci_device_t bdf, uint32_t *wrt_stat);
210 extern uint64_t hvio_get_rp_mps_cap(devhandle_t dev_hdl, pci_device_t bdf,
212 extern uint64_t hvio_set_rp_mps(devhandle_t dev_hdl, pci_device_t bdf,
H A Dpx_lib4v.c1253 px_lib_config_get(dev_info_t *dip, pci_device_t bdf, pci_config_offset_t off, in px_lib_config_get() argument
1259 "off 0x%x size 0x%x\n", dip, bdf, off, size); in px_lib_config_get()
1261 if ((ret = hvio_config_get(DIP_TO_HANDLE(dip), bdf, off, in px_lib_config_get()
1274 px_lib_config_put(dev_info_t *dip, pci_device_t bdf, pci_config_offset_t off, in px_lib_config_put() argument
1280 "off 0x%x size 0x%x data 0x%llx\n", dip, bdf, off, size, data.qw); in px_lib_config_put()
1282 if ((ret = hvio_config_put(DIP_TO_HANDLE(dip), bdf, off, in px_lib_config_put()
1653 pcie_req_id_t bdf = PCIE_INVALID_BDF; in px_lib_log_safeacc_err() local
1683 bdf = (pcie_req_id_t)(addr_low >> 12); in px_lib_log_safeacc_err()
1686 bdf = PCIE_INVALID_BDF; in px_lib_log_safeacc_err()
1693 (void) px_rp_en_q(px_p, bdf, addr, 0); in px_lib_log_safeacc_err()
[all …]
H A Dpx_tools_4v.c248 req.bdf = PCI_GETBDF(prg_p->bus_no, prg_p->dev_no, prg_p->func_no); in pxtool_pcicfg_access()
377 pci_device_t bdf = PX_GET_BDF(prg_p); in pxtool_pciiomem_access() local
387 size, *data_p, bdf, &io_stat); in pxtool_pciiomem_access()
395 "rval:%d, io_stat:%d\n", prg_p->phys_addr, bdf, in pxtool_pciiomem_access()
/illumos-gate/usr/src/uts/i86pc/os/
H A Dpci_cfgacc_x86.c40 #define PCI_BDF_BUS(bdf) ((((uint16_t)bdf) & 0xff00) >> 8) argument
41 #define PCI_BDF_DEV(bdf) ((((uint16_t)bdf) & 0xf8) >> 3) argument
42 #define PCI_BDF_FUNC(bdf) (((uint16_t)bdf) & 0x7) argument
110 bus = PCI_BDF_BUS(req->bdf); in pci_cfgacc_io()
111 dev = PCI_BDF_DEV(req->bdf); in pci_cfgacc_io()
112 func = PCI_BDF_FUNC(req->bdf); in pci_cfgacc_io()
162 paddr = (paddr_t)req->bdf << 12; in pci_cfgacc_mmio()
218 bus = PCI_BDF_BUS(req->bdf); in pci_cfgacc_check_io()
222 pci_cfgacc_find_workaround(req->bdf)) in pci_cfgacc_check_io()
245 uint16_t bdf; member
[all …]
/illumos-gate/usr/src/uts/sun4u/io/pciex/
H A Dpci_cfgacc_4u.c40 #define RC_BDF_TO_CFGADDR(bdf, offset) (((bdf) << RC_PA_BDF_SHIFT) + (offset)) argument
61 pci_cfgacc_get(dev_info_t *dip, uint16_t bdf, uint16_t offset, uint8_t size) in pci_cfgacc_get() argument
71 base_addr += RC_BDF_TO_CFGADDR(bdf, offset); in pci_cfgacc_get()
94 pci_cfgacc_set(dev_info_t *dip, uint16_t bdf, uint16_t offset, uint8_t size, in pci_cfgacc_set() argument
104 base_addr += RC_BDF_TO_CFGADDR(bdf, offset); in pci_cfgacc_set()
136 pci_cfgacc_set(req->rcdip, req->bdf, req->offset, in pci_cfgacc_acc()
139 VAL64(req) = pci_cfgacc_get(req->rcdip, req->bdf, in pci_cfgacc_acc()
/illumos-gate/usr/src/uts/sun4v/io/pciex/
H A Dpci_cfgacc_4v.c66 pci_cfgacc_get(dev_info_t *dip, uint16_t bdf, uint16_t offset, uint8_t size) in pci_cfgacc_get() argument
77 devaddr = ((uint64_t)bdf) << RC_RA_BDF_SHIFT; in pci_cfgacc_get()
86 pci_cfgacc_set(dev_info_t *dip, uint16_t bdf, uint16_t offset, uint8_t size, in pci_cfgacc_set() argument
98 devaddr = ((uint64_t)bdf) << RC_RA_BDF_SHIFT; in pci_cfgacc_set()
114 pci_cfgacc_set(req->rcdip, req->bdf, req->offset, in pci_cfgacc_acc()
117 VAL64(req) = pci_cfgacc_get(req->rcdip, req->bdf, in pci_cfgacc_acc()
/illumos-gate/usr/src/uts/sun4/io/px/
H A Dpx_fm.c299 pcie_req_id_t bdf = PCIE_INVALID_BDF; in px_fm_callback() local
333 bdf = (pcie_req_id_t)((fault_addr >> 12) & in px_fm_callback()
341 bdf = PCIE_INVALID_BDF; in px_fm_callback()
357 bdf); in px_fm_callback()
359 pfd_p = px_rp_en_q(px_p, bdf, addr, in px_fm_callback()
366 } else if (PCIE_CHECK_VALID_BDF(bdf)) { in px_fm_callback()
368 PFD_AFFECTED_DEV(pfd_p)->pe_affected_bdf = bdf; in px_fm_callback()
669 pcie_req_id_t bdf; in px_pcie_ptlp() local
692 bdf = adv_reg.pcie_ue_tgt_bdf; in px_pcie_ptlp()
719 bdf); in px_pcie_ptlp()
[all …]
H A Dpx_ioapi.h227 #define PX_ADD_ATTR_EXTNS(attr, bdf) \ argument
228 (attr | (PCIE_CHECK_VALID_BDF(bdf) ? (bdf << PCI_MAP_ATTR_BDF) : 0))
/illumos-gate/usr/src/compat/bhyve/dev/pci/
H A Dpcivar.h29 pcie_req_id_t bdf; in pci_get_bdf() local
31 VERIFY(pcie_get_bdf_from_dip(dev, &bdf) == DDI_SUCCESS); in pci_get_bdf()
33 return (bdf); in pci_get_bdf()
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/x86pi/
H A Dx86pi_bay.c72 bay_bdf(topo_mod_t *mod, smbios_port_ext_t *epp, uint16_t *bdf) in bay_bdf() argument
111 *bdf = BDF(bus, dev_funct); in bay_bdf()
197 bay_update_tnode(topo_mod_t *mod, tnode_t *tnodep, uint16_t bdf, int phy) in bay_update_tnode() argument
218 if (bdf == x86pi_bdf(mod, dnode)) { in bay_update_tnode()
275 uint16_t bdf; in x86pi_gen_bay() local
328 rv = bay_bdf(mod, eport, &bdf); in x86pi_gen_bay()
333 topo_mod_dprintf(mod, "%s: BDF(0x%04x)\n", f, bdf); in x86pi_gen_bay()
338 rv = bay_update_tnode(mod, tn_bay, bdf, eport->smbporte_phy); in x86pi_gen_bay()
H A Dx86pi_hostbridge.c189 x86pi_gen_pci_pciexrc(topo_mod_t *mod, tnode_t *tn_hbr, uint16_t bdf, in x86pi_gen_pci_pciexrc() argument
195 (int)bdf); in x86pi_gen_pci_pciexrc()
205 if (x86pi_bdf(mod, pnode) == bdf) in x86pi_gen_pci_pciexrc()
213 x86pi_bdf(mod, cnode) != bdf) in x86pi_gen_pci_pciexrc()
224 "bdf = %#x\n", (int)bdf); in x86pi_gen_pci_pciexrc()
229 topo_mod_dprintf(mod, "no matching bdf found: bdf = %#x\n", (int)bdf); in x86pi_gen_pci_pciexrc()
/illumos-gate/usr/src/uts/common/sys/
H A Dpciev.h74 pcie_req_id_t bdf; member
184 #define PCIE_BDF_LIST_ADD(bus_p, bdf) \ argument
186 pcie_bdf_list_add(bdf, &PCIE_BUS2DOM(bus_p)->domain.ids.bdfs)
187 #define PCIE_BDF_LIST_REMOVE(bus_p, bdf) \ argument
189 pcie_bdf_list_remove(bdf, &PCIE_BUS2DOM(bus_p)->domain.ids.bdfs)
H A Dpcie_impl.h174 #define PFD_SET_AFFECTED_BDF(pfd_p, bdf) \ argument
175 PFD_AFFECTED_DEV(pfd_p)->pe_affected_bdf = bdf
656 extern pcie_bus_t *pcie_init_bus(dev_info_t *dip, pcie_req_id_t bdf,
666 extern int pcie_get_bdf_from_dip(dev_info_t *dip, pcie_req_id_t *bdf);
724 extern dev_info_t *pcie_find_dip_by_bdf(dev_info_t *rootp, pcie_req_id_t bdf);
/illumos-gate/usr/src/cmd/fm/modules/common/fabric-xlate/
H A Dfx_subr.c396 fab_find_rppath_by_devbdf(fmd_hdl_t *hdl, nvlist_t *nvl, pcie_req_id_t bdf) in fab_find_rppath_by_devbdf() argument
407 if (bdf != (uint16_t)-1) { in fab_find_rppath_by_devbdf()
408 bus = (bdf & PCIE_REQ_ID_BUS_MASK) >> PCIE_REQ_ID_BUS_SHIFT; in fab_find_rppath_by_devbdf()
409 dev = (bdf & PCIE_REQ_ID_DEV_MASK) >> PCIE_REQ_ID_DEV_SHIFT; in fab_find_rppath_by_devbdf()
410 fn = (bdf & PCIE_REQ_ID_FUNC_MASK) >> PCIE_REQ_ID_FUNC_SHIFT; in fab_find_rppath_by_devbdf()
582 fab_find_bdf(fmd_hdl_t *hdl, nvlist_t *nvl, pcie_req_id_t bdf) in fab_find_bdf() argument
589 if (bdf != (uint16_t)-1) { in fab_find_bdf()
590 bus = (bdf & PCIE_REQ_ID_BUS_MASK) >> PCIE_REQ_ID_BUS_SHIFT; in fab_find_bdf()
591 dev = (bdf & PCIE_REQ_ID_DEV_MASK) >> PCIE_REQ_ID_DEV_SHIFT; in fab_find_bdf()
592 fn = (bdf & PCIE_REQ_ID_FUNC_MASK) >> PCIE_REQ_ID_FUNC_SHIFT; in fab_find_bdf()
H A Dfabric-xlate.h70 uint16_t bdf; member
194 extern char *fab_find_bdf(fmd_hdl_t *hdl, nvlist_t *nvl, pcie_req_id_t bdf);
/illumos-gate/usr/src/cmd/pcieadm/
H A Dpcieadm.c223 char dinst[128], bdf[128], altbdf[128]; in pcieadm_find_dip_cb() local
244 (void) snprintf(bdf, sizeof (bdf), "%x/%x/%x", PCI_REG_BUS_G(regs[0]), in pcieadm_find_dip_cb()
251 strcmp(pia->pia_devstr, bdf) == 0 || in pcieadm_find_dip_cb()
/illumos-gate/usr/src/uts/i86pc/io/amd_iommu/
H A Damd_iommu_page_tables.c64 amd_iommu_get_src_bdf(amd_iommu_t *iommu, int32_t bdf, int32_t *src_bdfp) in amd_iommu_get_src_bdf() argument
68 hinfop = amd_iommu_lookup_ivhd(bdf); in amd_iommu_get_src_bdf()
70 if (bdf == -1) { in amd_iommu_get_src_bdf()
71 *src_bdfp = bdf; in amd_iommu_get_src_bdf()
73 cmn_err(CE_WARN, "No IVHD entry for 0x%x", bdf); in amd_iommu_get_src_bdf()
77 *src_bdfp = bdf; in amd_iommu_get_src_bdf()
243 uint16_t bdf; in amd_iommu_get_deviceid() local
305 bdf = ((uint8_t)bus << 8) | ((uint8_t)device << 3) | (uint8_t)func; in amd_iommu_get_deviceid()
307 if (amd_iommu_get_src_bdf(iommu, bdf, &src_bdf) != DDI_SUCCESS) { in amd_iommu_get_deviceid()
321 *aliasp = (src_bdf != bdf); in amd_iommu_get_deviceid()
/illumos-gate/usr/src/uts/i86pc/sys/
H A Damd_iommu.h51 int amd_iommu_lookup_src_bdf(uint16_t bdf, uint16_t *src_bdfp);
/illumos-gate/usr/src/uts/intel/io/pciex/
H A Dpcieb_x86.c470 uint16_t bdf = bus_p->bus_bdf; in pcieb_intel_serr_workaround() local
480 vid, did, rid, bdf); in pcieb_intel_serr_workaround()
535 "0x%x\n", bdf, mcheck, reg->size, reg->offset, in pcieb_intel_serr_workaround()

12