Lines Matching defs:bdf

400 /* Returns whether the "bdf" is in the bus range of a switch/bridge */
402 pf_in_bus_range(pcie_bus_t *bus_p, pcie_req_id_t bdf)
405 uint8_t bus_no = (bdf & PCIE_REQ_ID_BUS_MASK) >>
408 /* check if given bdf falls within bridge's bus range */
1635 * If the addr or bdf from the parent PCIe bridge logs belong to this
1647 * If this device is a PCI-PCI bridge, check if the bdf in the parent
2168 pcie_req_id_t *bdf) {
2179 *bdf = PCIE_INVALID_BDF;
2188 *bdf = PCIE_INVALID_BDF;
2193 *bdf = PCIE_INVALID_BDF;
2223 pcie_req_id_t bdf = PCIE_INVALID_BDF;
2234 bdf = attr->rid;
2245 bdf = attr->rid;
2247 pf_pci_find_trans_type(pfd_p, &addr, &trans_type, &bdf);
2256 bdf = attr->rid;
2265 bdf = attr->rid;
2286 PCIE_ADV_BDG_REG(pfd_p)->pcie_sue_tgt_bdf = bdf;
2297 pcie_req_id_t bdf)
2302 if ((addr == NULL) && !PCIE_CHECK_VALID_BDF(bdf))
2319 return (pf_hdl_child_lookup(dip, &derr, flag, addr, bdf));
2324 uint64_t addr, pcie_req_id_t bdf)
2351 if (!PCIE_IS_RC(bus_p) && (!PCIE_CHECK_VALID_BDF(bdf) ||
2352 dip_bdf == bdf)) {
2360 bdf, fcp);
2371 bdf, fcp);
2375 if (!PCIE_IS_RC(bus_p) && ((dip_bdf == bdf) ||
2390 ((bus_p->bus_bdg_secbus << PCIE_REQ_ID_BUS_SHIFT) == bdf))
2400 if (pf_in_bus_range(bus_p, bdf) ||
2403 bdf);
2418 uint64_t addr, pcie_req_id_t bdf, ndi_fmc_t *fcp) {
2443 (void *)&addr, (void *)&bdf);
2472 if ((addr != NULL) && PCIE_CHECK_VALID_BDF(bdf) && (found == 0)) {
2473 status = pf_hdl_compare(dip, derr, flag, addr, bdf, fcp);
2566 * If the req bdf >= this.bdf, then it means the request is this
2599 * If the cpl bdf < this.bdf, then it means the request is this
2715 "bdf", DATA_TYPE_UINT16, bus_p->bus_bdf,
3146 pf_find_busp_by_bdf(pf_impl_t *impl, pcie_req_id_t bdf)
3156 if (bdf == temp_bus_p->bus_bdf) {
3188 pcie_req_id_t bdf;
3197 bdf = (cpl_tlp->rid > cpl_tlp->cid) ? cpl_tlp->rid :
3199 temp_bus_p = pf_find_busp_by_bdf(impl, bdf);
3205 bdf = reg_p->pcie_ue_tgt_bdf;
3206 temp_bus_p = pf_find_busp_by_bdf(impl, bdf);
3217 pcie_req_id_t bdf;
3221 bdf = reg_p->pcie_sue_tgt_bdf;
3225 } else if (PCIE_CHECK_VALID_BDF(bdf)) {
3226 temp_bus_p = pf_find_busp_by_bdf(impl, bdf);