Lines Matching refs:compat
26 const char *type, *compat; in vio_match_device() local
30 compat = dev->compat; in vio_match_device()
33 while (matches->type[0] || matches->compat[0]) { in vio_match_device()
38 if (matches->compat[0]) { in vio_match_device()
40 of_find_in_proplist(compat, matches->compat, len); in vio_match_device()
53 add_uevent_var(env, "MODALIAS=vio:T%sS%s", vio_dev->type, vio_dev->compat); in vio_hotplug()
140 return sprintf(buf, "vio:T%sS%s\n", vdev->type, vdev->compat); in modalias_show()
294 const char *type, *compat; in vio_create_one() local
318 compat = mdesc_get_property(hp, mp, "device-type", &clen); in vio_create_one()
319 if (!compat) { in vio_create_one()
335 if (compat) in vio_create_one()
336 memcpy(vdev->compat, compat, clen); in vio_create_one()
338 memset(vdev->compat, 0, sizeof(vdev->compat)); in vio_create_one()
503 const char *compat; in vio_init() local
533 compat = mdesc_get_property(hp, root, "compatible", &len); in vio_init()
534 if (!compat) { in vio_init()
539 if (!of_find_in_proplist(compat, channel_devices_compat, len)) { in vio_init()