Lines Matching refs:dev_list
18 sd_device **dev_list, in show_sysfs_one() argument
30 assert(dev_list); in show_sysfs_one()
47 if (sd_device_get_syspath(dev_list[*i_dev], &sysfs) < 0 || in show_sysfs_one()
51 … if (sd_device_get_property_value(dev_list[*i_dev], "ID_SEAT", &sn) < 0 || isempty(sn)) in show_sysfs_one()
56 sd_device_has_current_tag(dev_list[*i_dev], "seat") <= 0 || in show_sysfs_one()
57 sd_device_get_subsystem(dev_list[*i_dev], &subsystem) < 0 || in show_sysfs_one()
58 sd_device_get_sysname(dev_list[*i_dev], &sysname) < 0) { in show_sysfs_one()
63 is_master = sd_device_has_current_tag(dev_list[*i_dev], "master-of-seat") > 0; in show_sysfs_one()
65 if (sd_device_get_sysattr_value(dev_list[*i_dev], "name", &name) < 0) in show_sysfs_one()
66 (void) sd_device_get_sysattr_value(dev_list[*i_dev], "id", &name); in show_sysfs_one()
72 if (sd_device_get_syspath(dev_list[lookahead], &lookahead_sysfs) < 0) in show_sysfs_one()
79 … if (sd_device_get_property_value(dev_list[lookahead], "ID_SEAT", &lookahead_sn) < 0 || in show_sysfs_one()
83 … if (streq(seat, lookahead_sn) && sd_device_has_current_tag(dev_list[lookahead], "seat") > 0) in show_sysfs_one()
115 r = show_sysfs_one(seat, dev_list, i_dev, n_dev, sysfs, p, in show_sysfs_one()
130 sd_device **dev_list; in show_sysfs() local
157 dev_list = device_enumerator_get_devices(e, &n_dev); in show_sysfs()
159 if (dev_list && n_dev > 0) in show_sysfs()
160 show_sysfs_one(seat, dev_list, &i, n_dev, "/", prefix, n_columns, flags); in show_sysfs()