Lines Matching defs:vid
62 u16 vid;
174 val = FIELD_PREP(PCI_DOE_DATA_OBJECT_HEADER_1_VID, task->prot.vid) |
222 if ((FIELD_GET(PCI_DOE_DATA_OBJECT_HEADER_1_VID, val) != task->prot.vid) ||
225 doe_mb->cap_offset, task->prot.vid, task->prot.type,
386 static int pci_doe_discovery(struct pci_doe_mb *doe_mb, u8 *index, u16 *vid,
406 *vid = FIELD_GET(PCI_DOE_DATA_OBJECT_DISC_RSP_3_VID, response_pl);
415 static void *pci_doe_xa_prot_entry(u16 vid, u8 prot)
417 return xa_mk_value((vid << 8) | prot);
427 u16 vid;
430 rc = pci_doe_discovery(doe_mb, &index, &vid, &prot);
435 "[%x] Found protocol %d vid: %x prot: %x\n",
436 doe_mb->cap_offset, xa_idx, vid, prot);
439 pci_doe_xa_prot_entry(vid, prot), GFP_KERNEL);
545 * @vid: Protocol Vendor ID
550 static bool pci_doe_supports_prot(struct pci_doe_mb *doe_mb, u16 vid, u8 type)
556 if (vid == PCI_VENDOR_ID_PCI_SIG && type == PCI_DOE_PROTOCOL_DISCOVERY)
560 if (entry == pci_doe_xa_prot_entry(vid, type))
588 if (!pci_doe_supports_prot(doe_mb, task->prot.vid, task->prot.type))
634 .prot.vid = vendor,