Lines Matching defs:devid
69 * The pic and MSI/MSI-X device are distinbuished by "devid". The "devid"
94 * This struct managements "devid" to use the same "devid" for the device
106 /* Record devids to use the same devid when the device is re-attached. */
130 * Return new "devid" for the device attached first.
131 * Return the same "devid" for the device re-attached after dettached once.
147 /* if the device was once attached, use same devid */
178 * Set the "devid" unused, but keep reserving the "devid" to reuse when
182 msipic_release_common_msi_devid(int devid)
187 if (devid < 0 || NUM_MSI_DEVS <= devid) {
188 DPRINTF(("%s: invalid devid.\n", __func__));
192 dev_seqs[devid].ds_using = false;
193 /* Keep ds_* to reuse the same devid for the same device. */
197 msipic_find_msi_pic_locked(int devid)
204 if (mpp->mp_devid == devid)
215 msipic_find_msi_pic(int devid)
220 msipic = msipic_find_msi_pic_locked(devid);
235 int devid;
242 devid = msipic_allocate_common_msi_devid(pa);
243 if (devid == -1) {
258 msipic->mp_devid = devid;
310 * Return the MSI/MSI-X devid which is unique for each devices.
521 DPRINTF(("%s: invalid MSI-X table index, devid=%d vecid=%d",
577 DPRINTF(("%s: invalid MSI-X table index, devid=%d vecid=%d",