Home
last modified time | relevance | path

Searched refs:ELEMENTSOF (Results 1 – 15 of 15) sorted by relevance

/third_party/eudev/src/udev/
Dudev-builtin.c54 for (i = 0; i < ELEMENTSOF(builtins); i++) in udev_builtin_init()
67 for (i = 0; i < ELEMENTSOF(builtins); i++) in udev_builtin_exit()
77 for (i = 0; i < ELEMENTSOF(builtins); i++) in udev_builtin_validate()
86 for (i = 0; i < ELEMENTSOF(builtins); i++) in udev_builtin_list()
107 for (i = 0; i < ELEMENTSOF(builtins); i++) in udev_builtin_lookup()
Dudevadm.c67 for (i = 0; i < ELEMENTSOF(udevadm_cmds); i++) in adm_help()
121 for (i = 0; i < ELEMENTSOF(udevadm_cmds); i++) in main()
Dudev-builtin-keyboard.c224 if (release_count < ELEMENTSOF(release)-1) in builtin_keyboard()
Dudevadm-monitor.c250 fdcount = epoll_wait(fd_ep, ev, ELEMENTSOF(ev), -1); in adm_monitor()
Dudev-event.c138 for (i = 0; i < ELEMENTSOF(map); i++) { in udev_event_apply_format()
154 for (i = 0; i < ELEMENTSOF(map); i++) { in udev_event_apply_format()
513 fdcount = epoll_wait(fd_ep, ev, ELEMENTSOF(ev), timeout); in spawn_read()
Dudevadm-info.c49 for (i = 0; i < ELEMENTSOF(skip); i++) in skip_attribute()
Dudevd.c383 fdcount = epoll_wait(fd_ep, ev, ELEMENTSOF(ev), -1); in worker_spawn()
1405 fdcount = epoll_wait(fd_ep, ev, ELEMENTSOF(ev), timeout); in main()
Dudev-rules.c1006 if (rule_tmp->token_cur >= ELEMENTSOF(rule_tmp->token)) { in rule_add_key()
1277 for (i = 0; i < ELEMENTSOF(blacklist); i++) { in add_rule()
/third_party/eudev/src/shared/
Dutil.h158 if (i < 0 || i >= (type) ELEMENTSOF(name##_table)) \
168 for (i = 0; i < (type)ELEMENTSOF(name##_table); i++) \
192 if (i < (type) ELEMENTSOF(name##_table)) { \
208 for (i = 0; i < (type)ELEMENTSOF(name##_table); i++) \
230 …intf(buf, fmt, ...) assert_se((size_t) snprintf(buf, ELEMENTSOF(buf), fmt, __VA_ARGS__) < ELEMENTS…
378 for (_i_ = 0; _i_ < ELEMENTSOF(_appendees_) && _appendees_[_i_]; _i_++) \
381 for (_i_ = 0; _i_ < ELEMENTSOF(_appendees_) && _appendees_[_i_]; _i_++) \
Dlog.c314 .msg_iovlen = ELEMENTSOF(iovec), in write_to_syslog()
354 (size_t) n >= IOVEC_TOTAL_SIZE(iovec, ELEMENTSOF(iovec))) in write_to_syslog()
357 IOVEC_INCREMENT(iovec, ELEMENTSOF(iovec), n); in write_to_syslog()
391 if (writev(kmsg_fd, iovec, ELEMENTSOF(iovec)) < 0) in write_to_kmsg()
Dtime-util.c117 for (i = 0; i < ELEMENTSOF(table); i++) { in format_timespan()
Dmacro.h77 #define ELEMENTSOF(x) (sizeof(x)/sizeof((x)[0])) macro
Dselinux-util.c93 label_hnd = selabel_open(SELABEL_CTX_FILE, options, ELEMENTSOF(options)); in mac_selinux_init()
/third_party/eudev/test/
Dtest-udev.c77 for (i = 0; i < ELEMENTSOF(fakefss); i++) { in fake_filesystems()
/third_party/eudev/src/libudev/
Dlibudev-monitor.c324 if (i+1 >= ELEMENTSOF(ins)) in udev_monitor_filter_update()