Lines Matching refs:cfg_prg
513 pcitool_reg_t cfg_prg = *prg_p; /* Make local copy. */
523 cfg_prg.acc_attr =
528 * sun4v acc function doesn't use phys_addr but uses cfg_prg.offset.
530 cfg_prg.offset = PCI_BAR_OFFSET((*prg_p));
531 off_in_space = PX_GET_BDF(prg_p) + cfg_prg.offset;
532 cfg_prg.phys_addr = pxtool_get_phys_addr(px_p, PCI_CONFIG_SPACE,
537 off_in_space, cfg_prg.phys_addr, cfg_prg.barnum);
541 * cfg_prg.offset is the offset into config space of the
544 rval = pxtool_pcicfg_access(px_p, &cfg_prg, bar_p, PX_ISREAD);
547 prg_p->status = cfg_prg.status;
558 (cfg_prg.offset != PCI_CONF_ROM)) {
572 (cfg_prg.offset != PCI_CONF_ROM)) {
577 if (cfg_prg.offset >= PCI_CONF_BASE5) {
583 cfg_prg.phys_addr += sizeof (uint32_t);
584 cfg_prg.offset += sizeof (uint32_t);
586 rval = pxtool_pcicfg_access(px_p, &cfg_prg, bar_p, PX_ISREAD);
588 prg_p->status = cfg_prg.status;
602 } else if (cfg_prg.offset == PCI_CONF_ROM) { /* ROM requested */