/kernel/linux/linux-6.6/sound/core/ |
H A D | device.c | 48 list_for_each_prev(p, &card->devices) { in snd_device_new() 86 list_for_each_entry(dev, &card->devices, list) in look_for_dev() 165 * but it can be called later if any new devices are created after 186 * register all the devices on the card. 196 list_for_each_entry(dev, &card->devices, list) { in snd_device_register_all() 205 * disconnect all the devices on the card. 214 list_for_each_entry_reverse(dev, &card->devices, list) in snd_device_disconnect_all() 219 * release all the devices on the card. 228 list_for_each_entry_safe_reverse(dev, next, &card->devices, list) { in snd_device_free_all() 237 list_for_each_entry_safe_reverse(dev, next, &card->devices, lis in snd_device_free_all() [all...] |
/third_party/libinput/tools/ |
H A D | libinput-replay.py | 78 # We don't assign this one to virtual devices 199 # immediately regardless. When replaying multiple devices, the first 251 devices = fetch(recording, "devices") 254 filter(lambda x: x is not None, [first_timestamp(d) for d in devices]) 256 # All devices need to start replaying at the same time, so let's find 260 for idx, d in enumerate(devices): 278 for d in devices: 317 devices = fetch(recording, "devices") [all...] |
/kernel/linux/build/test/moduletest/runtest/bin/cpuisolation_t/testcases/bin/ |
H A D | cpuisolation03.sh | 37 dir_name=/sys/devices/system/cpu/cpu0/core_ctl 45 echo 2 > /sys/devices/system/cpu/cpu0/core_ctl/max_cpus 57 echo 4 > /sys/devices/system/cpu/cpu0/core_ctl/max_cpus 88 echo 0 > /sys/devices/system/cpu/cpu${cpu_num}/online 129 echo 1 > /sys/devices/system/cpu/cpu${cpu_num}/online 195 echo 0 > /sys/devices/system/cpu/cpu${cpu_num1}/online 206 echo 1 > /sys/devices/system/cpu/cpu${cpu_num1}/online
|
/kernel/linux/linux-5.10/tools/testing/selftests/memory-hotplug/ |
H A D | mem-on-off-test.sh | 25 if ! ls $SYSFS/devices/system/memory/memory* > /dev/null 2>&1; then 30 if ! grep -q 1 $SYSFS/devices/system/memory/memory*/removable; then 43 for memory in $SYSFS/devices/system/memory/memory*; do 63 grep -q online $SYSFS/devices/system/memory/memory$1/state 68 grep -q offline $SYSFS/devices/system/memory/memory$1/state 73 echo online > $SYSFS/devices/system/memory/memory$1/state 78 echo offline > $SYSFS/devices/system/memory/memory$1/state
|
/kernel/linux/linux-5.10/drivers/md/ |
H A D | md-autodetect.c | 18 * and with MD_BOOT where devices to be collected are given on the boot line 48 * the MD devices (by specifying multiple "md=" lines) 53 * md=n,device-list reads a RAID superblock from the devices 126 dev_t devices[MD_SB_DISKS + 1], mdev; in md_setup_drive() local 162 devices[i] = dev; in md_setup_drive() 165 devices[i] = 0; in md_setup_drive() 205 while (devices[ainfo.raid_disks]) in md_setup_drive() 211 for (i = 0; i <= MD_SB_DISKS && devices[i]; i++) { in md_setup_drive() 213 .major = MAJOR(devices[i]), in md_setup_drive() 214 .minor = MINOR(devices[ in md_setup_drive() [all...] |
/kernel/linux/linux-6.6/drivers/md/ |
H A D | md-autodetect.c | 18 * and with MD_BOOT where devices to be collected are given on the boot line 48 * the MD devices (by specifying multiple "md=" lines) 53 * md=n,device-list reads a RAID superblock from the devices 126 dev_t devices[MD_SB_DISKS + 1], mdev; in md_setup_drive() local 162 devices[i] = dev; in md_setup_drive() 165 devices[i] = 0; in md_setup_drive() 197 while (devices[ainfo.raid_disks]) in md_setup_drive() 203 for (i = 0; i <= MD_SB_DISKS && devices[i]; i++) { in md_setup_drive() 205 .major = MAJOR(devices[i]), in md_setup_drive() 206 .minor = MINOR(devices[ in md_setup_drive() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/memory-hotplug/ |
H A D | mem-on-off-test.sh | 25 if ! ls $SYSFS/devices/system/memory/memory* > /dev/null 2>&1; then 30 if ! grep -q 1 $SYSFS/devices/system/memory/memory*/removable; then 43 for memory in $SYSFS/devices/system/memory/memory*; do 63 grep -q online $SYSFS/devices/system/memory/memory$1/state 68 grep -q offline $SYSFS/devices/system/memory/memory$1/state 73 echo online > $SYSFS/devices/system/memory/memory$1/state 78 echo offline > $SYSFS/devices/system/memory/memory$1/state
|
/device/soc/rockchip/common/hardware/display/src/display_device/ |
H A D | hdi_device_interface.cpp | 28 std::vector<std::shared_ptr<HdiDeviceInterface>> devices; in DiscoveryDevice() local 36 devices.push_back(std::move(drmDevice)); in DiscoveryDevice() 40 return devices; in DiscoveryDevice()
|
/device/soc/rockchip/rk3399/hardware/display/src/display_device/ |
H A D | hdi_device_interface.cpp | 28 std::vector<std::shared_ptr<HdiDeviceInterface>> devices; in DiscoveryDevice() local 36 devices.push_back(std::move(drmDevice)); in DiscoveryDevice() 40 return devices; in DiscoveryDevice()
|
/device/soc/rockchip/rk3566/hardware/display/src/display_device/ |
H A D | hdi_device_interface.cpp | 28 std::vector<std::shared_ptr<HdiDeviceInterface>> devices; in DiscoveryDevice() local 36 devices.push_back(std::move(drmDevice)); in DiscoveryDevice() 40 return devices; in DiscoveryDevice()
|
/device/soc/rockchip/rk3568/hardware/display/src/display_device/ |
H A D | hdi_device_interface.cpp | 28 std::vector<std::shared_ptr<HdiDeviceInterface>> devices; in DiscoveryDevice() local 36 devices.push_back(std::move(drmDevice)); in DiscoveryDevice() 40 return devices; in DiscoveryDevice()
|
/device/soc/rockchip/rk3588/hardware/display/src/display_device/ |
H A D | hdi_device_interface.cpp | 28 std::vector<std::shared_ptr<HdiDeviceInterface>> devices;
in DiscoveryDevice() local 36 devices.push_back(std::move(drmDevice));
in DiscoveryDevice() 40 return devices;
in DiscoveryDevice()
|
/kernel/linux/linux-5.10/drivers/media/usb/dvb-usb/ |
H A D | dvb-usb-init.c | 24 MODULE_PARM_DESC(force_pid_filter_usage, "force all dvb-usb-devices to use a PID filter, if any (default: 0)."); 219 for (j = 0; j < DVB_USB_ID_MAX_NUM && props->devices[i].cold_ids[j] != NULL; j++) { in dvb_usb_find_device() 220 deb_info("check for cold %x %x\n", props->devices[i].cold_ids[j]->idVendor, props->devices[i].cold_ids[j]->idProduct); in dvb_usb_find_device() 221 if (props->devices[i].cold_ids[j]->idVendor == le16_to_cpu(udev->descriptor.idVendor) && in dvb_usb_find_device() 222 props->devices[i].cold_ids[j]->idProduct == le16_to_cpu(udev->descriptor.idProduct)) { in dvb_usb_find_device() 224 desc = &props->devices[i]; in dvb_usb_find_device() 232 for (j = 0; j < DVB_USB_ID_MAX_NUM && props->devices[i].warm_ids[j] != NULL; j++) { in dvb_usb_find_device() 233 deb_info("check for warm %x %x\n", props->devices[i].warm_ids[j]->idVendor, props->devices[ in dvb_usb_find_device() [all...] |
/kernel/linux/linux-6.6/drivers/media/usb/dvb-usb/ |
H A D | dvb-usb-init.c | 24 MODULE_PARM_DESC(force_pid_filter_usage, "force all dvb-usb-devices to use a PID filter, if any (default: 0)."); 219 for (j = 0; j < DVB_USB_ID_MAX_NUM && props->devices[i].cold_ids[j] != NULL; j++) { in dvb_usb_find_device() 220 deb_info("check for cold %x %x\n", props->devices[i].cold_ids[j]->idVendor, props->devices[i].cold_ids[j]->idProduct); in dvb_usb_find_device() 221 if (props->devices[i].cold_ids[j]->idVendor == le16_to_cpu(udev->descriptor.idVendor) && in dvb_usb_find_device() 222 props->devices[i].cold_ids[j]->idProduct == le16_to_cpu(udev->descriptor.idProduct)) { in dvb_usb_find_device() 224 desc = &props->devices[i]; in dvb_usb_find_device() 232 for (j = 0; j < DVB_USB_ID_MAX_NUM && props->devices[i].warm_ids[j] != NULL; j++) { in dvb_usb_find_device() 233 deb_info("check for warm %x %x\n", props->devices[i].warm_ids[j]->idVendor, props->devices[ in dvb_usb_find_device() [all...] |
/kernel/linux/linux-5.10/drivers/pci/hotplug/ |
H A D | rpaphp_pci.c | 85 slot->pci_devs = &bus->devices; in rpaphp_enable_slot() 87 /* if there's an adapter in the slot, go add the pci devices */ in rpaphp_enable_slot() 98 if (list_empty(&bus->devices)) { in rpaphp_enable_slot() 103 if (!list_empty(&bus->devices)) { in rpaphp_enable_slot() 110 list_for_each_entry(dev, &bus->devices, bus_list) in rpaphp_enable_slot()
|
/kernel/linux/linux-5.10/tools/power/cpupower/bench/ |
H A D | cpufreq-bench_script.sh | 30 echo $up_threshold >/sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold 31 echo $sampling_rate >/sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate 32 up_threshold_set=$(cat /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold) 33 sampling_rate_set=$(cat /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate)
|
/kernel/linux/linux-6.6/tools/power/cpupower/bench/ |
H A D | cpufreq-bench_script.sh | 30 echo $up_threshold >/sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold 31 echo $sampling_rate >/sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate 32 up_threshold_set=$(cat /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold) 33 sampling_rate_set=$(cat /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate)
|
/third_party/mesa3d/src/gallium/frontends/clover/api/ |
H A D | memory.cpp | 119 map(std::mem_fn(&device::max_mem_alloc_size), ctx.devices()) in clCreateBufferWithProperties() 177 if (!any_of(std::mem_fn(&device::image_support), ctx.devices())) in clCreateImageWithProperties() 224 }, ctx.devices())) in clCreateImageWithProperties() 238 }, ctx.devices())) in clCreateImageWithProperties() 254 }, ctx.devices())) in clCreateImageWithProperties() 274 }, ctx.devices())) in clCreateImageWithProperties() 291 }, ctx.devices())) in clCreateImageWithProperties() 312 }, ctx.devices())) in clCreateImageWithProperties() 464 // TODO: once we support devices with lower levels of SVM, we have to in clGetMemObjectInfo() 467 mem.context().devices()); in clGetMemObjectInfo() [all...] |
/third_party/libdrm/tests/amdgpu/ |
H A D | amdgpu_stress.c | 76 /* Open AMD devices. 81 drmDevicePtr devices[MAX_CARDS_SUPPORTED]; in amdgpu_open_device() local 85 drm_count = drmGetDevices2(0, devices, MAX_CARDS_SUPPORTED); in amdgpu_open_device() 97 if (devices[i]->bustype != DRM_BUS_PCI) in amdgpu_open_device() 101 if (devices[i]->deviceinfo.pci->vendor_id != 0x1002) in amdgpu_open_device() 104 if (!(devices[i]->available_nodes & 1 << DRM_NODE_RENDER)) in amdgpu_open_device() 107 fd = open(devices[i]->nodes[DRM_NODE_RENDER], O_RDWR | O_CLOEXEC); in amdgpu_open_device() 117 devices[i]->nodes[DRM_NODE_RENDER], in amdgpu_open_device() 131 drmFreeDevices(devices, drm_count); in amdgpu_open_device()
|
/third_party/mesa3d/src/loader/ |
H A D | loader.c | 172 drmDevicePtr devices[MAX_DRM_DEVICES], device; in loader_open_render_node() local 175 num_devices = drmGetDevices2(0, devices, MAX_DRM_DEVICES); in loader_open_render_node() 180 device = devices[i]; in loader_open_render_node() 206 drmFreeDevices(devices, num_devices); in loader_open_render_node() 359 drmDevicePtr devices[MAX_DRM_DEVICES]; in loader_get_user_preferred_fd() local 381 num_devices = drmGetDevices2(0, devices, MAX_DRM_DEVICES); in loader_get_user_preferred_fd() 386 if (!(devices[i]->available_nodes & 1 << DRM_NODE_RENDER)) in loader_get_user_preferred_fd() 395 if (drm_device_matches_tag(devices[i], default_tag)) in loader_get_user_preferred_fd() 398 if (!drm_device_matches_tag(devices[i], prime)) in loader_get_user_preferred_fd() 402 fd = loader_open_device(devices[ in loader_get_user_preferred_fd() [all...] |
/kernel/linux/linux-5.10/arch/arm/mach-pxa/ |
H A D | csb701.c | 53 static struct platform_device *devices[] __initdata = { 63 return platform_add_devices(devices, ARRAY_SIZE(devices)); in csb701_init()
|
/third_party/ffmpeg/libavdevice/ |
H A D | openal-dec.c | 46 /** If true, print a list of capture devices on this system and exit. **/ 106 * Print out a list of OpenAL capture devices on this system. 110 const char *devices; in print_al_capture_devices() local 112 if (!(devices = alcGetString(NULL, ALC_CAPTURE_DEVICE_SPECIFIER))) in print_al_capture_devices() 115 av_log(log_ctx, AV_LOG_INFO, "List of OpenAL capture devices on this system:\n"); in print_al_capture_devices() 117 for (; *devices != '\0'; devices += strlen(devices) + 1) in print_al_capture_devices() 118 av_log(log_ctx, AV_LOG_INFO, " %s\n", devices); in print_al_capture_devices() 237 {"list_devices", "list available devices", OFFSE [all...] |
/kernel/linux/linux-5.10/drivers/base/ |
H A D | isa.c | 104 struct device *dev = isa_driver->devices; in isa_unregister_driver() 121 isa_driver->devices = NULL; in isa_register_driver() 155 isa_dev->next = isa_driver->devices; in isa_register_driver() 156 isa_driver->devices = &isa_dev->dev; in isa_register_driver() 161 if (!error && !isa_driver->devices) in isa_register_driver()
|
/kernel/linux/linux-5.10/drivers/hid/ |
H A D | hid-lgff.c | 3 * Force feedback support for hid-compliant for some of the devices from 47 static const struct dev_type devices[] = { variable 135 for (i = 0; i < ARRAY_SIZE(devices); i++) { in lgff_init() 136 if (dev->id.vendor == devices[i].idVendor && in lgff_init() 137 dev->id.product == devices[i].idProduct) { in lgff_init() 138 ff_bits = devices[i].ff; in lgff_init() 153 pr_info("Force feedback for Logitech force feedback devices by Johann Deneux <johann.deneux@it.uu.se>\n"); in lgff_init()
|
/kernel/linux/linux-5.10/sound/usb/6fire/ |
H A D | chip.c | 35 static struct usb_device *devices[SNDRV_CARDS] = SNDRV_DEFAULT_PTR; variable 94 if (devices[i] == device) { in usb6fire_chip_probe() 100 } else if (!devices[i] && regidx < 0) in usb6fire_chip_probe() 108 devices[regidx] = device; in usb6fire_chip_probe() 179 devices[chip->regidx] = NULL; in usb6fire_chip_disconnect()
|