Lines Matching defs:BusID
208 * Compare two busid strings
549 * \param busid bus ID.
560 static int drmOpenByBusid(const char *busid, int type)
571 drmMsg("drmOpenByBusid: Searching for BusID %s\n", busid);
596 if (buf && drmMatchBusID(buf, busid, pci_domain_ok)) {
637 * already in use. If it's in use it will have a busid assigned already.
681 if (*pt) { /* Found busid */
683 } else { /* No busid */
704 * \param busid bus ID. Zero if not known.
709 * It calls drmOpenByBusid() if \p busid is specified or drmOpenByName()
712 int drmOpen(const char *name, const char *busid)
714 return drmOpenWithType(name, busid, DRM_NODE_PRIMARY);
724 * \param busid bus ID. Zero if not known.
730 * It calls drmOpenByBusid() if \p busid is specified or drmOpenByName()
733 int drmOpenWithType(const char *name, const char *busid, int type)
744 if (busid) {
745 int fd = drmOpenByBusid(busid, type);
906 * modified drmOpen to handle both busid and name
946 * \param busid bus ID information string as given by drmGetBusid().
949 * This function is just frees the memory pointed by \p busid.
951 void drmFreeBusid(const char *busid)
953 drmFree((void *)busid);
990 * \param busid bus ID string.
998 int drmSetBusid(int fd, const char *busid)
1003 u.unique = (char *)busid;
1004 u.unique_len = strlen(busid);
2606 char *BusID;
2615 const char *BusID,
2618 return drmOpenOnceWithType(BusID, newlyopened, DRM_NODE_PRIMARY);
2621 int drmOpenOnceWithType(const char *BusID, int *newlyopened, int type)
2627 if ((strcmp(BusID, connection[i].BusID) == 0) &&
2634 fd = drmOpenWithType(NULL, BusID, type);
2638 connection[nr_fds].BusID = strdup(BusID);
2646 nr_fds, connection[nr_fds].BusID,
2647 strcmp(BusID, connection[nr_fds].BusID));
2662 free(connection[i].BusID);