Lines Matching refs:tag
130 pcitag_t tag;
135 tag = (bus << 16) | (device << 11) | (function << 8);
137 return tag;
141 prep_pci_direct_decompose_tag(void *v, pcitag_t tag, int *bp, int *dp,
146 *bp = (tag >> 16) & 0xff;
148 *dp = (tag >> 11) & 0x1f;
150 *fp = (tag >> 8) & 0x7;
155 prep_pci_direct_conf_read(void *v, pcitag_t tag, int reg)
161 prep_pci_direct_decompose_tag(v, tag, &bus, &device, &function);
169 tag = (1 << device) | (function << PCI_DCONF_FUNC_SHIFT);
173 data = in32rb(PCI_DCONF_BASE | tag | reg);
181 prep_pci_direct_conf_write(void *v, pcitag_t tag, int reg, pcireg_t data)
187 (unsigned long)v, tag, reg, (unsigned long)data));
189 prep_pci_direct_decompose_tag(v, tag, &bus, &device, &function);
198 tag = (1 << device) | (function << PCI_DCONF_FUNC_SHIFT);
202 out32rb(PCI_DCONF_BASE | tag | reg, data);