Home
last modified time | relevance | path

Searched refs:dev_num (Results 1 – 18 of 18) sorted by relevance

/third_party/ltp/testcases/kernel/device-drivers/zram/
Dzram_lib.sh51 if [ -z "$dev_num" ]; then
52 dev_num=0
54 dev_num=$((dev_num+1))
58 if [ $dev_num -le 0 ]; then
62 tst_set_timeout $((dev_num*450))
64 tst_res TINFO "create '$dev_num' zram device(s)"
70 dev_end=$(($dev_start + $dev_num - 1))
82 modprobe zram num_devices=$dev_num
90 modprobe zram num_devices=$dev_num
94 dev_end=$(($dev_num - 1))
Dzram03.c33 static int modprobe, dev_num, hot_add_flag; variable
116 sprintf(zram_stat_path, "/sys/block/zram%d/stat", dev_num); in print_stat()
128 sprintf(zram_mm_stat_path, "/sys/block/zram%d/mm_stat", dev_num); in print_mm_stat()
141 sprintf(zram_obsolete_file_path, "/sys/block/zram%d/num_reads", dev_num); in dump_info()
183 SAFE_FILE_SCANF(HOT_ADD_PATH, "%d", &dev_num); in setup()
219 SAFE_FILE_SCANF(zramctl_log_path, "/dev/zram%d", &dev_num); in setup()
223 sprintf(zram_block_path, "/sys/block/zram%d", dev_num); in setup()
224 sprintf(zram_dev_path, "/dev/zram%d", dev_num); in setup()
230 SAFE_FILE_PRINTF(HOT_REMOVE_PATH, "%d", dev_num); in cleanup()
Dzram01.sh40 dev_num=0
53 dev_num=$((dev_num+1))
60 [ $dev_num -eq 0 ] && \
/third_party/ltp/testcases/kernel/uevents/
Duevent01.c32 int pid, fd, dev_num; in verify_uevent() local
53 dev_num = tst_find_free_loopdev(dev_path, sizeof(dev_path)); in verify_uevent()
55 if (dev_num < 0) in verify_uevent()
59 "change@/devices/virtual/block/loop%i", dev_num); in verify_uevent()
62 "DEVPATH=/devices/virtual/block/loop%i", dev_num); in verify_uevent()
64 snprintf(ev_dev_minor, sizeof(ev_dev_minor), "MINOR=%i", dev_num); in verify_uevent()
65 snprintf(ev_dev_name, sizeof(ev_dev_name), "DEVNAME=loop%i", dev_num); in verify_uevent()
/third_party/ltp/testcases/kernel/syscalls/ioctl/
Dioctl_loop01.c31 static int dev_num, attach_flag, dev_fd, parted_sup; variable
104 dev_num = tst_find_free_loopdev(dev_path, sizeof(dev_path)); in setup()
105 if (dev_num < 0) in setup()
123 sprintf(partscan_path, "/sys/block/loop%d/loop/partscan", dev_num); in setup()
124 sprintf(autoclear_path, "/sys/block/loop%d/loop/autoclear", dev_num); in setup()
125 sprintf(backing_path, "/sys/block/loop%d/loop/backing_file", dev_num); in setup()
126 sprintf(sys_loop_partpath, "/sys/block/loop%d/loop%dp1", dev_num, dev_num); in setup()
Dioctl09.c22 static int dev_num, attach_flag, dev_fd; variable
39 dev_num, dev_num, part_num); in check_partition()
92 dev_num = tst_find_free_loopdev(dev_path, sizeof(dev_path)); in setup()
93 if (dev_num < 0) in setup()
Dioctl_loop07.c25 static int dev_num, dev_fd, file_fd, attach_flag, loop_configure_sup = 1; variable
111 dev_num = tst_find_free_loopdev(dev_path, sizeof(dev_path)); in setup()
112 if (dev_num < 0) in setup()
119 sprintf(sys_loop_sizepath, "/sys/block/loop%d/size", dev_num); in setup()
120 sprintf(sys_loop_sizelimitpath, "/sys/block/loop%d/loop/sizelimit", dev_num); in setup()
Dioctl_loop02.c106 int dev_num; in setup() local
110 dev_num = tst_find_free_loopdev(dev_path, sizeof(dev_path)); in setup()
111 if (dev_num < 0) in setup()
118 sprintf(backing_path, "/sys/block/loop%d/loop/backing_file", dev_num); in setup()
121 sprintf(loop_ro_path, "/sys/block/loop%d/ro", dev_num); in setup()
Dioctl_loop04.c24 static int dev_num, dev_fd, file_fd, attach_flag; variable
66 dev_num = tst_find_free_loopdev(dev_path, sizeof(dev_path)); in setup()
67 if (dev_num < 0) in setup()
72 sprintf(sys_loop_sizepath, "/sys/block/loop%d/size", dev_num); in setup()
Dioctl_loop05.c36 static int dev_num, dev_fd, block_devfd, attach_flag, logical_block_size; variable
101 dev_num = tst_find_free_loopdev(dev_path, sizeof(dev_path)); in setup()
102 if (dev_num < 0) in setup()
105 sprintf(sys_loop_diopath, "/sys/block/loop%d/loop/dio", dev_num); in setup()
Dioctl_loop03.c19 static int dev_num, dev_fd, file_fd, attach_flag; variable
39 dev_num = tst_find_free_loopdev(dev_path, sizeof(dev_path)); in setup()
40 if (dev_num < 0) in setup()
Dioctl_loop06.c18 static int dev_num, dev_fd, file_fd, attach_flag, loop_configure_sup = 1; variable
96 dev_num = tst_find_free_loopdev(dev_path, sizeof(dev_path)); in setup()
97 if (dev_num < 0) in setup()
/third_party/alsa-utils/alsaucm/
Ddump.c454 int err = 0, j, dev_num; in render_devlist() local
457 dev_num = snd_use_case_get_list(uc_mgr, buf, &dev_list); in render_devlist()
458 if (dev_num < 0) { in render_devlist()
461 return dev_num; in render_devlist()
463 if (dev_num > 0) { in render_devlist()
467 for (j = 0; j < dev_num; j++) { in render_devlist()
468 err = value(render, dev_list[j], j + 1 == dev_num); in render_devlist()
475 snd_use_case_free_list(dev_list, dev_num); in render_devlist()
550 int i, j, num, dev_num; in render() local
569 dev_num = snd_use_case_get_list(uc_mgr, buf, &dev_list); in render()
[all …]
/third_party/ltp/testcases/kernel/syscalls/ustat/
Dustat01.c20 static dev_t dev_num; variable
26 TEST(tst_syscall(__NR_ustat, (unsigned int)dev_num, &ubuf)); in run()
41 dev_num = buf.st_dev; in setup()
/third_party/pulseaudio/src/modules/alsa/
Dalsa-ucm.c1186 int dev_num, in ucm_check_conformance() argument
1196 pa_proplist_gets(dev->proplist, PA_ALSA_PROP_UCM_NAME), dev_num); in ucm_check_conformance()
1197 if (dev_num == 0) { in ucm_check_conformance()
1204 for (i = 0; i < dev_num; i++) { in ucm_check_conformance()
1212 for (i = 0; i < dev_num; i++) { in ucm_check_conformance()
1223 pa_log_debug("Device added to combination, number %d", dev_num + 1); in ucm_check_conformance()
1243 int dev_num, in ucm_add_ports_combination() argument
1256 if (ucm_check_conformance(context, pdevices, dev_num, dev)) { in ucm_add_ports_combination()
1258 pdevices[dev_num] = dev; in ucm_add_ports_combination()
1260 ucm_add_port_combination(hash, context, is_sink, pdevices, dev_num + 1, ports, cp, core); in ucm_add_ports_combination()
[all …]
/third_party/f2fs-tools/tools/f2fs_io/
Df2fs_io.h210 u32 dev_num; /* device number to flush */ member
/third_party/selinux/libselinux/src/
Dselinux_restorecon.c870 dev_t dev_num; member
910 ftsent->fts_statp->st_dev != state->dev_num) in selinux_restorecon_thread()
1255 state.dev_num = state.ftsent_first->fts_statp->st_dev; in selinux_restorecon_common()
/third_party/libbpf/.github/actions/build-selftests/
Dvmlinux.h54556 int dev_num; member