Home
last modified time | relevance | path

Searched refs:streq (Results 1 – 25 of 95) sorted by relevance

1234

/third_party/eudev/src/udev/
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(name, "PART_ENTRY_TYPE")) { in print_property()
[all …]
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(subsys, "serio")) { in builtin_path_id()
617 } else if (streq(subsys, "pci")) { in builtin_path_id()
[all …]
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()
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(value, "class")) { in add_rule()
[all …]
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()
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()
/third_party/libinput/src/
Dquirks.c478 if (streq(key, "MatchName")) { in parse_match()
481 } else if (streq(key, "MatchBus")) { in parse_match()
483 if (streq(value, "usb")) in parse_match()
485 else if (streq(value, "bluetooth")) in parse_match()
487 else if (streq(value, "ps2")) in parse_match()
489 else if (streq(value, "rmi")) in parse_match()
491 else if (streq(value, "i2c")) in parse_match()
495 } else if (streq(key, "MatchVendor")) { in parse_match()
503 } else if (streq(key, "MatchProduct")) { in parse_match()
511 } else if (streq(key, "MatchVersion")) { in parse_match()
[all …]
Dbuilddir.h44 if (streq(MESON_BUILD_ROOT, "")) in builddir_lookup()
60 if (!streq(execdir, MESON_BUILD_ROOT)) in builddir_lookup()
Dudev-seat.c65 if (syspath && new_syspath && streq(syspath, new_syspath)) in filter_duplicates()
90 if (!streq(device_seat, input->seat_id)) in device_added()
158 if (streq(syspath, in device_removed()
232 if (streq(action, "add")) in evdev_udev_handler()
234 else if (streq(action, "remove")) in evdev_udev_handler()
360 if (streq(seat->base.logical_name, seat_name)) in udev_seat_get_named()
Dutil-prop-parsers.c216 if (streq(prop, "reliable")) in parse_switch_reliability_property()
218 else if (streq(prop, "write_open")) in parse_switch_reliability_property()
242 if (streq(prop, "below")) { in parse_tpkbcombo_layout_poperty()
268 if (streq(prop, "none")) { in parse_range_property()
/third_party/uboot/u-boot-2020.01/scripts/dtc/
Ddtc.c233 if (streq(optarg, "legacy")) in main()
235 else if (streq(optarg, "epapr")) in main()
237 else if (streq(optarg, "both")) in main()
294 if (streq(inform, "dts")) in main()
300 if (streq(inform, "dts")) in main()
302 else if (streq(inform, "fs")) in main()
304 else if(streq(inform, "dtb")) in main()
342 if (streq(outname, "-")) { in main()
351 if (streq(outform, "dts")) { in main()
353 } else if (streq(outform, "dtb")) { in main()
[all …]
Dlivetree.c33 if (streq(new->label, label)) { in add_label()
165 if (streq(old_prop->name, new_prop->name)) { in merge_nodes()
200 if (streq(old_child->name, new_child->name)) { in merge_nodes()
268 if (streq(prop->name, name)) { in delete_property_by_name()
301 if (streq(node->name, name)) { in delete_node_by_name()
410 if (streq(prop->name, propname)) in get_property()
440 if (streq(l->label, label)) in get_property_by_label()
467 if (streq(m->ref, label)) in get_marker_label()
487 if (streq(child->name, nodename)) in get_subnode()
513 else if (!p && streq(path, child->name)) in get_node_by_path()
[all …]
Dfstree.c42 if (streq(de->d_name, ".") in read_fstree()
43 || streq(de->d_name, "..")) in read_fstree()
Dchecks.c257 if (streq(child->name, child2->name)) in check_duplicate_node_names()
271 if (streq(prop->name, prop2->name)) in check_duplicate_property_names()
365 if (streq(name, "device_type")) in check_property_name_chars_strict()
527 if (streq((*pp)->name, "name")) { in check_name_properties()
638 if (!s || !streq(s, "-names")) in check_names_is_string_list()
652 if (!streq(node->name, "aliases")) in check_alias_paths()
771 if (!prop || !streq(prop->val.val, "pci")) in check_pci_bridge()
869 if (streq(unitname, unit_addr)) in check_pci_device_reg()
874 if (streq(unitname, unit_addr)) in check_pci_device_reg()
943 if (!streq(unitname, unit_addr)) in check_simple_bus_reg()
[all …]
/third_party/libinput/test/
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()
/third_party/libinput/tools/
Dptraccel-debug.c267 if (streq(optarg, "accel")) in main()
269 else if (streq(optarg, "motion")) in main()
271 else if (streq(optarg, "delta")) in main()
273 else if (streq(optarg, "sequence")) in main()
317 if (streq(filter_type, "linear")) { in main()
321 } else if (streq(filter_type, "low-dpi")) { in main()
325 } else if (streq(filter_type, "touchpad")) { in main()
330 } else if (streq(filter_type, "x230")) { in main()
334 } else if (streq(filter_type, "trackpoint")) { in main()
Dshared.c107 if (streq(optarg, "lrm")) { in tools_parse_option()
109 } else if (streq(optarg, "lmr")) { in tools_parse_option()
155 if (streq(optarg, "none")) { in tools_parse_option()
158 } else if (streq(optarg, "clickfinger")) { in tools_parse_option()
161 } else if (streq(optarg, "buttonareas")) { in tools_parse_option()
172 if (streq(optarg, "none")) { in tools_parse_option()
175 } else if (streq(optarg, "twofinger")) { in tools_parse_option()
178 } else if (streq(optarg, "edge")) { in tools_parse_option()
181 } else if (streq(optarg, "button")) { in tools_parse_option()
217 if (streq(optarg, "adaptive")) in tools_parse_option()
[all …]
/third_party/eudev/src/shared/
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()
/third_party/libxkbcommon/test/
Drules-file-includes.c78 passed = streq(kccgst.keycodes, data->keycodes) && in test_rules()
79 streq(kccgst.types, data->types) && in test_rules()
80 streq(kccgst.compat, data->compat) && in test_rules()
81 streq(kccgst.symbols, data->symbols); in test_rules()
Drules-file.c76 passed = streq(kccgst.keycodes, data->keycodes) && in test_rules()
77 streq(kccgst.types, data->types) && in test_rules()
78 streq(kccgst.compat, data->compat) && in test_rules()
79 streq(kccgst.symbols, data->symbols); in test_rules()
Dregistry.c154 if (next->name && streq(next->name, l->name)) { in test_create_rules()
163 } while (next->name && streq(next->name, l->name)); in test_create_rules()
264 if (streq(rxkb_model_get_name(m), model)) in fetch_model()
306 if (streq(rxkb_layout_get_name(l), layout) && in fetch_layout()
308 (v != NULL && variant != NULL && streq(v, variant)))) in fetch_layout()
351 if (streq(grp, rxkb_option_group_get_name(g))) in fetch_option_group()
371 if (streq(grp, rxkb_option_group_get_name(g))) { in fetch_option()
375 if (streq(opt, rxkb_option_get_name(o))) in fetch_option()
422 if (!streq(tm->name, rxkb_model_get_name(m))) in cmp_models()
440 if (!streq(tl->name, rxkb_layout_get_name(l))) in cmp_layouts()
[all …]
Dkeymap.c98 assert(streq(keyname, "AE09")); in test_keymap()
103 assert(streq(keyname, "COMP")); in test_keymap()
108 assert(streq(keyname, "COMP")); in test_keymap()
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/
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(optionname, "sched_load_balance")) { in cpuset_set_iopt()
[all …]
/third_party/eudev/src/scsi_id/
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/nghttp2/src/
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(StringRef::from_lit("alpha"), StringRef::from_lit("alphA"))); in test_util_streq()
[all …]

1234