Home
last modified time | relevance | path

Searched refs:devices (Results 76 - 100 of 1354) sorted by relevance

12345678910>>...55

/kernel/linux/linux-6.6/drivers/md/
H A Dmd-autodetect.c18 * 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 Dmem-on-off-test.sh25 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
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/test/
H A Dwifi_p2p_group_info_proxy_test.cpp77 std::vector<WifiP2pDevice> devices; in HWTEST_F() local
78 devices.push_back(device1); in HWTEST_F()
79 devices.push_back(device2); in HWTEST_F()
80 pWifiP2pGroupInfoProxy->SetClientDevices(devices); in HWTEST_F()
/kernel/linux/linux-5.10/drivers/pci/hotplug/
H A Drpaphp_pci.c85 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 Dcpufreq-bench_script.sh30 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 Dcpufreq-bench_script.sh30 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)
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/communicator/test/unittest/
H A Ddevice_manager_adapter_test.cpp299 std::vector<std::string> devices; in HWTEST_F() local
300 devices.emplace_back(EMPTY_DEVICE_ID); in HWTEST_F()
301 devices.emplace_back(INVALID_DEVICE_ID); in HWTEST_F()
303 devices.emplace_back(dvInfo.uuid); in HWTEST_F()
304 devices.emplace_back(dvInfo.udid); in HWTEST_F()
305 devices.emplace_back(dvInfo.networkId); in HWTEST_F()
306 auto uuids = DeviceManagerAdapter::GetInstance().ToUUID(devices); in HWTEST_F()
322 std::vector<DeviceInfo> devices; in HWTEST_F() local
324 devices.emplace_back(dvInfo); in HWTEST_F()
326 devices in HWTEST_F()
[all...]
/kernel/linux/linux-5.10/drivers/media/usb/dvb-usb/
H A Ddvb-usb-init.c24 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 Ddvb-usb-init.c24 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...]
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/rdb/src/
H A Dnapi_rdb_store_observer.cpp33 void NapiRdbStoreObserver::OnChange(const std::vector<std::string> &devices) in OnChange() argument
36 CallFunction([devices](napi_env env, int &argc, napi_value *argv) { in OnChange()
42 argv[0] = JSUtils::Convert2JSValue(env, devices); in OnChange()
/third_party/mesa3d/src/gallium/frontends/clover/api/
H A Dmemory.cpp119 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 Damdgpu_stress.c76 /* 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()
/kernel/linux/linux-5.10/arch/arm/mach-pxa/
H A Dcsb701.c53 static struct platform_device *devices[] __initdata = {
63 return platform_add_devices(devices, ARRAY_SIZE(devices)); in csb701_init()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/cloud/
H A Ddistributeddb_cloud_syncer_progress_manager_test.cpp69 std::vector<DeviceID> devices = {"cloud"}; in HWTEST_F() local
90 int errCode = cloudSyncer.Sync(devices, SYNC_MODE_CLOUD_FORCE_PUSH, tables, [&res]( in HWTEST_F()
101 errCode = cloudSyncer2.Sync(devices, SYNC_MODE_CLOUD_FORCE_PULL, tables, [&res]( in HWTEST_F()
130 std::vector<DeviceID> devices = {"cloud"}; in HWTEST_F() local
147 int errCode = cloudSyncer3.Sync(devices, SYNC_MODE_CLOUD_MERGE, tables, [&res]( in HWTEST_F()
158 errCode = cloudSyncer4.Sync(devices, SYNC_MODE_PULL_ONLY, tables, [&res]( in HWTEST_F()
205 std::vector<DeviceID> devices = {}; in HWTEST_F() local
206 int errCode = cloudSyncer5.Sync(devices, SYNC_MODE_CLOUD_MERGE, tables, [&res]( in HWTEST_F()
212 devices.emplace_back(invalidDevice); in HWTEST_F()
213 EXPECT_EQ(cloudSyncer5.Sync(devices, SYNC_MODE_CLOUD_MERG in HWTEST_F()
278 std::vector<string> devices = {"cloud"}; HWTEST_F() local
[all...]
/third_party/mesa3d/src/loader/
H A Dloader.c172 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/drivers/base/
H A Disa.c104 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 Dhid-lgff.c3 * 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 Dchip.c35 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()
/kernel/linux/linux-6.6/drivers/base/
H A Disa.c102 struct device *dev = isa_driver->devices; in isa_unregister_driver()
119 isa_driver->devices = NULL; in isa_register_driver()
152 isa_dev->next = isa_driver->devices; in isa_register_driver()
153 isa_driver->devices = &isa_dev->dev; in isa_register_driver()
156 if (!error && !isa_driver->devices) in isa_register_driver()
/kernel/linux/linux-6.6/drivers/hid/
H A Dhid-lgff.c3 * 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-6.6/sound/usb/6fire/
H A Dchip.c34 static struct usb_device *devices[SNDRV_CARDS] = SNDRV_DEFAULT_PTR; variable
93 if (devices[i] == device) { in usb6fire_chip_probe()
99 } else if (!devices[i] && regidx < 0) in usb6fire_chip_probe()
107 devices[regidx] = device; in usb6fire_chip_probe()
178 devices[chip->regidx] = NULL; in usb6fire_chip_disconnect()
/third_party/ffmpeg/libavdevice/
H A Dopenal-dec.c46 /** 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...]
/third_party/eudev/src/libudev/
H A Dlibudev-enumerate.c38 * @short_description: lookup and sort sys devices
40 * Lookup devices in the sys filesystem, filter devices by properties,
41 * and return a sorted list of devices.
66 struct syspath *devices; member
147 free(udev_enumerate->devices[i].syspath); in udev_enumerate_unref()
148 free(udev_enumerate->devices); in udev_enumerate_unref()
181 buf = realloc(udev_enumerate->devices, (udev_enumerate->devices_max + add) * sizeof(struct syspath)); in syspath_add()
184 udev_enumerate->devices = buf; in syspath_add()
191 entry = &udev_enumerate->devices[udev_enumerat in syspath_add()
[all...]
/third_party/f2fs-tools/lib/
H A Dlibf2fs_io.c62 if (c.devices[i].start_blkaddr <= blk_addr && in __get_device_fd()
63 c.devices[i].end_blkaddr >= blk_addr) { in __get_device_fd()
65 c.devices[i].start_blkaddr << F2FS_BLKSIZE_BITS; in __get_device_fd()
66 return c.devices[i].fd; in __get_device_fd()
638 if (fsync(c.devices[i].fd) < 0) { in f2fs_fsync_device()
655 f2fs_sparse_file = sparse_file_import(c.devices[0].fd, in f2fs_init_sparse_file()
723 ret = ftruncate(c.devices[0].fd, 0); in f2fs_finalize_device()
725 lseek(c.devices[0].fd, 0, SEEK_SET); in f2fs_finalize_device()
772 sparse_file_write(f2fs_sparse_file, c.devices[0].fd, in f2fs_finalize_device()
784 ret = fsync(c.devices[ in f2fs_finalize_device()
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/
H A Ddistributeddb_single_ver_p2p_subscribe_sync_test.cpp512 * @tc.steps: step1. test mutil device limit 32 devices in remote map and check each device has one subscribe in HWTEST_F()
562 * @tc.steps: step1. test mutil device limit 32 devices in remote map and check each device has one subscribe in HWTEST_F()
616 * @tc.steps: step1. test one devices has 4 subscribes and another has 2 in local map, put into unfinished map in HWTEST_F()
749 std::vector<std::string> devices; in HWTEST_F() local
750 devices.push_back(g_deviceB->GetDeviceId()); in HWTEST_F()
801 * @tc.desc: test subscribe sync over 32 devices,limit,orderBy
813 std::vector<std::string> devices; in HWTEST_F() local
818 * @tc.steps: step2. deviceA subscribe query to 33 devices, and return overlimit in HWTEST_F()
822 devices.push_back(device + std::to_string(i)); in HWTEST_F()
824 EXPECT_TRUE(g_schemaKvDelegatePtr->SubscribeRemoteQuery(devices, nullpt in HWTEST_F()
857 std::vector<std::string> devices; HWTEST_F() local
909 std::vector<std::string> devices; HWTEST_F() local
955 std::vector<std::string> devices; HWTEST_F() local
1001 std::vector<std::string> devices; HWTEST_F() local
1056 std::vector<std::string> devices = {"DEVICE_B"}; HWTEST_F() local
1084 std::vector<std::string> devices; HWTEST_F() local
1158 std::vector<KvVirtualDevice *> devices; HWTEST_F() local
1313 std::vector<std::string> devices; HWTEST_F() local
1429 std::vector<std::string> devices; HWTEST_F() local
1475 std::vector<std::string> devices = {"DEVICE_B"}; HWTEST_F() local
[all...]

Completed in 13 milliseconds

12345678910>>...55