Lines Matching refs:id
29 int compare_pnp_id(struct pnp_id *pos, const char *id) in compare_pnp_id() argument
31 if (!pos || !id || (strlen(id) != 7)) in compare_pnp_id()
33 if (memcmp(id, "ANYDEVS", 7) == 0) in compare_pnp_id()
36 if (memcmp(pos->id, id, 3) == 0) in compare_pnp_id()
37 if (compare_func(pos->id, id) == 1) in compare_pnp_id()
52 while (*drv_id->id) { in match_device()
53 if (compare_pnp_id(dev->id, drv_id->id)) in match_device()
289 struct pnp_id *pnp_add_id(struct pnp_dev *dev, const char *id) in pnp_add_id() argument
297 dev_id->id[0] = id[0]; in pnp_add_id()
298 dev_id->id[1] = id[1]; in pnp_add_id()
299 dev_id->id[2] = id[2]; in pnp_add_id()
300 dev_id->id[3] = tolower(id[3]); in pnp_add_id()
301 dev_id->id[4] = tolower(id[4]); in pnp_add_id()
302 dev_id->id[5] = tolower(id[5]); in pnp_add_id()
303 dev_id->id[6] = tolower(id[6]); in pnp_add_id()
304 dev_id->id[7] = '\0'; in pnp_add_id()
307 ptr = dev->id; in pnp_add_id()
313 dev->id = dev_id; in pnp_add_id()