Home
last modified time | relevance | path

Searched refs:streq (Results 1 - 25 of 63) sorted by relevance

123

/third_party/eudev/src/udev/
H A Dudev-builtin-blkid.c39 if (streq(name, "TYPE")) { in print_property()
42 } else if (streq(name, "USAGE")) { in print_property()
45 } else if (streq(name, "VERSION")) { in print_property()
48 } else if (streq(name, "UUID")) { in print_property()
54 } else if (streq(name, "UUID_SUB")) { in print_property()
60 } else if (streq(name, "LABEL")) { in print_property()
66 } else if (streq(name, "PTTYPE")) { in print_property()
69 } else if (streq(name, "PTUUID")) { in print_property()
72 } else if (streq(name, "PART_ENTRY_NAME")) { in print_property()
76 } else if (streq(nam in print_property()
[all...]
H A Dudev-rules.c482 if (streq(rules_str(rules, off), owner)) { in add_uid()
529 if (streq(rules_str(rules, off), group)) { in add_gid()
973 if (streq(value, "?*")) in rule_add_key()
1089 if (streq(key, "ACTION")) { in add_rule()
1098 if (streq(key, "DEVPATH")) { in add_rule()
1107 if (streq(key, "KERNEL")) { in add_rule()
1116 if (streq(key, "SUBSYSTEM")) { in add_rule()
1122 if (streq(value, "subsystem") || in add_rule()
1123 streq(value, "bus") || in add_rule()
1124 streq(valu in add_rule()
[all...]
H A Dudev-builtin-path_id.c84 if (subsystem == NULL || !streq(subsystem, subsys)) in skip_subsystem()
435 if (devtype == NULL || !streq(devtype, "scsi_device")) in handle_scsi()
529 if (!streq(devtype, "usb_interface") && !streq(devtype, "usb_device")) in handle_usb()
600 } else if (streq(subsys, "scsi_tape")) { in builtin_path_id()
602 } else if (streq(subsys, "scsi")) { in builtin_path_id()
605 } else if (streq(subsys, "cciss")) { in builtin_path_id()
608 } else if (streq(subsys, "usb")) { in builtin_path_id()
611 } else if (streq(subsys, "bcma")) { in builtin_path_id()
614 } else if (streq(subsy in builtin_path_id()
[all...]
H A Dudev-node.c78 if (streq(target, buf)) { in node_symlink()
157 if (streq(dent->d_name, udev_device_get_id_filename(dev))) in link_find_prioritized()
238 if (streq(name, name_current)) { in udev_node_update_old_links()
261 if (streq(udev_device_get_subsystem(dev), "block")) in node_permissions_apply()
303 if (streq(name, "selinux")) { in node_permissions_apply()
312 } else if (streq(name, "smack")) { in node_permissions_apply()
352 streq(udev_device_get_subsystem(dev), "block") ? "block" : "char", in udev_node_add()
371 streq(udev_device_get_subsystem(dev), "block") ? "block" : "char", in udev_node_remove()
H A Dudevadm-info.c50 if (streq(name, skip[i])) in skip_attribute()
353 if (streq(optarg, "property") || streq(optarg, "env")) in uinfo()
355 else if (streq(optarg, "name")) in uinfo()
357 else if (streq(optarg, "symlink")) in uinfo()
359 else if (streq(optarg, "path")) in uinfo()
361 else if (streq(optarg, "all")) in uinfo()
H A Dudevadm-test.c72 if (streq (optarg, "early")) { in adm_test()
74 } else if (streq (optarg, "late")) { in adm_test()
76 } else if (streq (optarg, "never")) { in adm_test()
H A Dudev-builtin-net_id.c336 if (!streq(config, "1")) in names_usb()
340 if (!streq(interf, "0")) in names_usb()
487 if (!streq(s, p)) in builtin_net_id()
492 if (streq("wlan", devtype)) in builtin_net_id()
494 else if (streq("wwan", devtype)) in builtin_net_id()
H A Dudevadm-trigger.c145 if (streq(optarg, "devices")) in adm_trigger()
147 else if (streq(optarg, "subsystems")) in adm_trigger()
H A Dudev-builtin-hwdb.c103 if (subsystem && !streq(dsubsys, subsystem)) in udev_builtin_hwdb_search()
108 if (streq(dsubsys, "usb") && streq_ptr(udev_device_get_devtype(d), "usb_device")) { in udev_builtin_hwdb_search()
/third_party/libinput/src/
H A Dquirks.c560 if (streq(key, "MatchName")) { in parse_match()
563 } else if (streq(key, "MatchBus")) { in parse_match()
565 if (streq(value, "usb")) in parse_match()
567 else if (streq(value, "bluetooth")) in parse_match()
569 else if (streq(value, "ps2")) in parse_match()
571 else if (streq(value, "rmi")) in parse_match()
573 else if (streq(value, "i2c")) in parse_match()
575 else if (streq(value, "spi")) in parse_match()
579 } else if (streq(key, "MatchVendor")) { in parse_match()
587 } else if (streq(ke in parse_match()
[all...]
H A Dutil-prop-parsers.c215 if (streq(prop, "reliable")) in parse_switch_reliability_property()
217 else if (streq(prop, "unreliable")) in parse_switch_reliability_property()
219 else if (streq(prop, "write_open")) in parse_switch_reliability_property()
243 if (streq(prop, "below")) { in parse_tpkbcombo_layout_poperty()
269 if (streq(prop, "none")) { in parse_range_property()
293 if (streq(prop, "1")) in parse_boolean_property()
295 else if (streq(prop, "0")) in parse_boolean_property()
H A Dudev-seat.c64 if (syspath && new_syspath && streq(syspath, new_syspath)) in filter_duplicates()
89 if (!streq(device_seat, input->seat_id)) in device_added()
159 if (streq(syspath, in device_removed()
233 if (streq(action, "add")) in evdev_udev_handler()
235 else if (streq(action, "remove")) in evdev_udev_handler()
364 if (streq(seat->base.logical_name, seat_name)) in udev_seat_get_named()
H A Dbuilddir.h44 if (streq(MESON_BUILD_ROOT, "")) in builddir_lookup()
60 if (!streq(execdir, MESON_BUILD_ROOT)) in builddir_lookup()
/third_party/libinput/test/
H A Dtest-builddir-lookup.c38 if (streq(mode, "--builddir-is-null")) { in main()
40 } else if (streq(mode, "--builddir-is-set")) { in main()
43 if (streq(MESON_BUILD_ROOT, "")) { in main()
47 assert(streq(MESON_BUILD_ROOT, builddir)); in main()
H A Dtest-misc.c828 if (streq(key, "EVDEV_ABS_00")) { in START_TEST()
830 ck_assert(streq(value, "1:1000:100:10")); in START_TEST()
832 if (streq(key, "EVDEV_ABS_01")) { in START_TEST()
834 ck_assert(streq(value, "2:2000:200:20")); in START_TEST()
836 if (streq(key, "EVDEV_ABS_35")) { in START_TEST()
838 ck_assert(streq(value, "3:3000:300:30")); in START_TEST()
840 if (streq(key, "EVDEV_ABS_36")) { in START_TEST()
842 ck_assert(streq(value, "4:4000:400:40")); in START_TEST()
/third_party/libinput/tools/
H A Dptraccel-debug.c282 if (streq(optarg, "accel")) in main()
284 else if (streq(optarg, "motion")) in main()
286 else if (streq(optarg, "delta")) in main()
288 else if (streq(optarg, "sequence")) in main()
357 if (streq(filter_type, "linear")) { in main()
361 } else if (streq(filter_type, "low-dpi")) { in main()
365 } else if (streq(filter_type, "touchpad")) { in main()
370 } else if (streq(filter_type, "x230")) { in main()
374 } else if (streq(filter_type, "trackpoint")) { in main()
378 } else if (streq(filter_typ in main()
[all...]
H A Dshared.c141 if (streq(optarg, "lrm")) { in tools_parse_option()
143 } else if (streq(optarg, "lmr")) { in tools_parse_option()
195 if (streq(optarg, "none")) { in tools_parse_option()
198 } else if (streq(optarg, "clickfinger")) { in tools_parse_option()
201 } else if (streq(optarg, "buttonareas")) { in tools_parse_option()
212 if (streq(optarg, "none")) { in tools_parse_option()
215 } else if (streq(optarg, "twofinger")) { in tools_parse_option()
218 } else if (streq(optarg, "edge")) { in tools_parse_option()
221 } else if (streq(optarg, "button")) { in tools_parse_option()
257 if (streq(optar in tools_parse_option()
[all...]
H A Dlibinput-quirks.c149 if (streq(argv[optind], "list")) { in main()
155 } else if (streq(argv[optind], "validate")) { in main()
/third_party/eudev/src/shared/
H A Dvirt.c84 if (streq(e, "lxc")) in detect_container()
86 else if (streq(e, "lxc-libvirt")) in detect_container()
88 else if (streq(e, "systemd-nspawn")) in detect_container()
90 else if (streq(e, "docker")) in detect_container()
H A Dutil.c94 /* Like streq(), but tries to make sense of NULL pointers */ in streq_ptr()
97 return streq(a, b); in streq_ptr()
796 streq(filename, "lost+found") || in hidden_file_allow_backup()
797 streq(filename, "aquota.user") || in hidden_file_allow_backup()
798 streq(filename, "aquota.group") || in hidden_file_allow_backup()
1086 if (streq(i, needle)) in nulstr_contains()
1184 if (streq(*username, "root") || streq(*username, "0")) { in get_user_creds()
1245 if (streq(*groupname, "root") || streq(*groupnam in get_group_creds()
[all...]
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/
H A Dlibcpuset.c292 static int streq(const char *s1, const char *s2) in streq() function
696 if (streq(optionname, "cpu_exclusive")) { in cpuset_set_iopt()
700 } else if (streq(optionname, "mem_exclusive")) { in cpuset_set_iopt()
704 } else if (streq(optionname, "mem_hardwall")) { in cpuset_set_iopt()
708 } else if (streq(optionname, "notify_on_release")) { in cpuset_set_iopt()
712 } else if (streq(optionname, "memory_pressure_enabled")) { in cpuset_set_iopt()
716 } else if (streq(optionname, "memory_migrate")) { in cpuset_set_iopt()
720 } else if (streq(optionname, "memory_spread_page")) { in cpuset_set_iopt()
724 } else if (streq(optionname, "memory_spread_slab")) { in cpuset_set_iopt()
728 } else if (streq(optionnam in cpuset_set_iopt()
[all...]
/third_party/nghttp2/src/
H A Dutil_test.cc44 util::streq(StringRef::from_lit("alpha"), StringRef::from_lit("alpha"))); in test_util_streq()
45 CU_ASSERT(!util::streq(StringRef::from_lit("alpha"), in test_util_streq()
47 CU_ASSERT(!util::streq(StringRef::from_lit("alphabravo"), in test_util_streq()
50 !util::streq(StringRef::from_lit("alpha"), StringRef::from_lit("alphA"))); in test_util_streq()
51 CU_ASSERT(!util::streq(StringRef{}, StringRef::from_lit("a"))); in test_util_streq()
52 CU_ASSERT(util::streq(StringRef{}, StringRef{})); in test_util_streq()
53 CU_ASSERT(!util::streq(StringRef::from_lit("alpha"), StringRef{})); in test_util_streq()
56 !util::streq(StringRef::from_lit("alph"), StringRef::from_lit("alpha"))); in test_util_streq()
58 !util::streq(StringRef::from_lit("alpha"), StringRef::from_lit("alph"))); in test_util_streq()
60 !util::streq(StringRe in test_util_streq()
[all...]
/third_party/eudev/src/scsi_id/
H A Dscsi_id.c364 if (streq(optarg, "0x80")) in set_options()
366 else if (streq(optarg, "0x83")) in set_options()
368 else if (streq(optarg, "pre-spc3-83")) in set_options()
446 if (streq(optarg, "0x80")) { in per_dev_options()
448 } else if (streq(optarg, "0x83")) { in per_dev_options()
450 } else if (streq(optarg, "pre-spc3-83")) { in per_dev_options()
/third_party/eudev/test/
H A Dtest-udev.c148 if (streq(udev_device_get_subsystem(dev), "block")) in main()
153 if (!streq(action, "remove")) { in main()
/third_party/eudev/src/collect/
H A Dcollect.c224 if (streq(him->name, us)) { in invite()
252 if (streq(him->name, us)) { in reject()
445 if (streq(him->name, argv[i])) in main()

Completed in 22 milliseconds

123