Lines Matching refs:device
24 #define FOREACH_DEVICE_PROPERTY(device, key, value) \
25 for (key = sd_device_get_property_first(device, &(value)); \
27 key = sd_device_get_property_next(device, &(value)))
29 #define FOREACH_DEVICE_TAG(device, tag) \
30 for (tag = sd_device_get_tag_first(device); \
32 tag = sd_device_get_tag_next(device))
34 #define FOREACH_DEVICE_SYSATTR(device, attr) \
35 for (attr = sd_device_get_sysattr_first(device); \
37 attr = sd_device_get_sysattr_next(device))
39 #define FOREACH_DEVICE_DEVLINK(device, devlink) \
40 for (devlink = sd_device_get_devlink_first(device); \
42 devlink = sd_device_get_devlink_next(device))
44 #define FOREACH_DEVICE(enumerator, device) \
45 for (device = sd_device_enumerator_get_device_first(enumerator); \
46 device; \
47 device = sd_device_enumerator_get_device_next(enumerator))
49 #define FOREACH_SUBSYSTEM(enumerator, device) \
50 for (device = sd_device_enumerator_get_subsystem_first(enumerator); \
51 device; \
52 device = sd_device_enumerator_get_subsystem_next(enumerator))