| /linux/lib/ |
| H A D | bsearch.c | 31 void *bsearch(const void *key, const void *base, size_t num, size_t size, cmp_func_t cmp) in bsearch() function 35 EXPORT_SYMBOL(bsearch); 36 NOKPROBE_SYMBOL(bsearch);
|
| H A D | extable.c | 116 return bsearch(&value, base, num, in search_extable()
|
| H A D | Makefile | 58 bsearch.o find_bit.o llist.o lwq.o memweight.o kfifo.o \
|
| /linux/tools/perf/util/annotate-arch/ |
| H A D | annotate-powerpc.c | 308 …ret = bsearch(&mem_insns_31_opcode, ins_array, ARRAY_SIZE(ins_array), sizeof(ins_array[0]), cmp_of… in check_ppc_insn() 315 ret = bsearch(&mem_insns_31_opcode, arithmetic_ins_op_31, ARRAY_SIZE(arithmetic_ins_op_31), in check_ppc_insn() 325 ret = bsearch(&mem_insns_31_opcode, arithmetic_two_ops, ARRAY_SIZE(arithmetic_two_ops), in check_ppc_insn()
|
| /linux/tools/perf/util/ |
| H A D | comm.c | 112 entry = bsearch(comm_str__str(cs), comm_strs->strs, comm_strs->num_strs, in comm_strs__remove_if_last() 127 result = bsearch(str, comm_strs->strs, comm_strs->num_strs, sizeof(struct comm_str *), in __comm_strs__find()
|
| H A D | maps.c | 416 bsearch(&map, maps__maps_by_address(maps), maps__nr_maps(maps), in maps__by_address_index() 437 bsearch(&map, maps_by_name, maps__nr_maps(maps), in maps__by_name_index() 1142 mapp = bsearch(&ip, maps_by_address, nr_maps, sizeof(*mapp), in maps__find() 1187 bsearch(name, maps__maps_by_name(maps), maps__nr_maps(maps), in maps__find_by_name()
|
| H A D | hwmon_pmu.c | 189 elem = bsearch(&fn_type, hwmon_type_strs + 1, ARRAY_SIZE(hwmon_type_strs) - 1, in parse_hwmon_filename() 209 elem = bsearch(fn_item, hwmon_item_strs + 1, ARRAY_SIZE(hwmon_item_strs) - 1, in parse_hwmon_filename()
|
| H A D | disasm.c | 165 tmp = bsearch(&key, archs, num_archs, sizeof(*archs), arch__key_cmp); in arch__find() 784 ins = bsearch(name, arch->instructions, nmemb, sizeof(struct ins), ins__key_cmp); in __ins__find() 803 ins = bsearch(tmp, arch->instructions, nmemb, sizeof(struct ins), ins__key_cmp); in __ins__find()
|
| H A D | dsos.c | 189 res = bsearch(&key, dsos->dsos, dsos->cnt, sizeof(struct dso *), in __dsos__find_by_longname_id()
|
| /linux/include/linux/ |
| H A D | bsearch.h | 30 extern void *bsearch(const void *key, const void *base, size_t num, size_t size, cmp_func_t cmp);
|
| /linux/drivers/comedi/drivers/ |
| H A D | ni_routes.c | 381 return bsearch(&destination, valid_routes->routes, in ni_find_route_set() 396 if (!bsearch(&source, routes->src, routes->n_src, sizeof(int), in ni_route_set_has_source()
|
| /linux/tools/perf/tests/ |
| H A D | dwarf-unwind.c | 147 void *fp = &bsearch; in test_dwarf_unwind__krava_3()
|
| /linux/drivers/sh/intc/ |
| H A D | chip.c | 126 return bsearch(&key, hp, nr_hp, sizeof(*hp), intc_handle_int_cmp); in intc_find_irq()
|
| /linux/scripts/ |
| H A D | tracepoint-update.c | 114 return bsearch(&str, array, size, sizeof(char *), compare_strings) != NULL; in find_event()
|
| H A D | asn1_compiler.c | 442 dir = bsearch(&tokens[tix], directives, in tokenise() 1012 ref = bsearch(cursor, type_index, nr_types, sizeof(type_index[0]), in parse_type()
|
| /linux/kernel/kcsan/ |
| H A D | debugfs.c | 117 ret = !!bsearch(&func_addr, report_filterlist.addrs, in kcsan_skip_report_debugfs()
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | jit_disasm_helpers.c | 144 label_pc = bsearch(&pc, labels.pcs, labels.cnt, sizeof(*labels.pcs), cmp_u32); in disasm_one_func()
|
| /linux/net/netfilter/ |
| H A D | nft_set_rbtree.c | 122 interval = bsearch(&ctx, array->intervals, array->num_intervals, in nft_rbtree_lookup() 182 interval = bsearch(&ctx, array->intervals, array->num_intervals, in nft_rbtree_get()
|
| /linux/tools/bpf/bpftool/ |
| H A D | xlated_dumper.c | 85 bsearch(&sym, dd->sym_mapping, dd->sym_count, in kernel_syms_search()
|
| /linux/drivers/pinctrl/sophgo/ |
| H A D | pinctrl-sophgo-common.c | 45 return bsearch((void *)pin_id, pctrl->data->pindata, pctrl->data->npins, in sophgo_get_pin()
|
| /linux/tools/perf/ |
| H A D | builtin-kmem.c | 429 caller = bsearch(&key, alloc_func_list, nr_alloc_funcs, in find_callsite() 747 gfp = bsearch(&key, gfps, nr_gfps, sizeof(*gfps), gfpcmp); in compact_gfp_string() 771 if (bsearch(&key, gfps, nr_gfps, sizeof(*gfps), gfpcmp)) in parse_gfp_flags()
|
| /linux/drivers/md/persistent-data/ |
| H A D | dm-btree.c | 44 static int bsearch(struct btree_node *n, uint64_t key, int want_hi) in bsearch() function 66 return bsearch(n, key, 0); in lower_bound() 71 return bsearch(n, key, 1); in upper_bound()
|
| /linux/kernel/ |
| H A D | user_namespace.c | 290 return bsearch(&key, map->forward, extents, in map_id_range_down_max() 380 return bsearch(&key, map->reverse, extents, in map_id_range_up_max()
|
| /linux/kernel/module/ |
| H A D | kallsyms.c | 12 #include <linux/bsearch.h> 20 return bsearch(name, start, stop - start, in lookup_exported_symbol()
|
| /linux/drivers/clk/keystone/ |
| H A D | sci-clk.c | 390 clk = bsearch(&key, provider->clocks, provider->num_clocks, in sci_clk_get()
|