Home
last modified time | relevance | path

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

/linux/include/linux/
H A Dbsearch.h10 const char *pivot; in __inline_bsearch() local
14 pivot = base + (num >> 1) * size; in __inline_bsearch()
15 result = cmp(key, pivot); in __inline_bsearch()
18 return (void *)pivot; in __inline_bsearch()
21 base = pivot + size; in __inline_bsearch()
H A Dmaple_tree.h94 * In regular B-Tree terms, pivots are called keys. The term pivot is used to
103 unsigned long pivot[MAPLE_RANGE64_SLOTS - 1];
124 unsigned long pivot[MAPLE_ARANGE64_SLOTS - 1];
132 struct maple_enode *next; /* Overlaps the pivot */
180 unsigned long pivot[3];
457 * every time a node is walked down or up. The offset is the slot/pivot of
476 unsigned long min; /* The minimum index of this node - implied pivot min */
477 unsigned long max; /* The maximum index of this node - implied pivot max */
503 unsigned long end_piv; /* The pivot at the offset end */
102 unsigned long pivot[MAPLE_RANGE64_SLOTS - 1]; global() member
123 unsigned long pivot[MAPLE_ARANGE64_SLOTS - 1]; global() member
179 unsigned long pivot[3]; global() member
/linux/drivers/infiniband/hw/usnic/
H A Dusnic_uiom_interval_tree.c127 long int pivot = start; in usnic_uiom_get_intervals_diff() local
136 if (pivot < interval->start) { in usnic_uiom_get_intervals_diff()
137 MAKE_NODE_AND_APPEND(tmp, pivot, interval->start - 1, in usnic_uiom_get_intervals_diff()
140 pivot = interval->start; in usnic_uiom_get_intervals_diff()
148 if (pivot > interval->last) { in usnic_uiom_get_intervals_diff()
150 } else if (pivot <= interval->last && in usnic_uiom_get_intervals_diff()
153 pivot = interval->last + 1; in usnic_uiom_get_intervals_diff()
157 if (pivot <= last) in usnic_uiom_get_intervals_diff()
158 MAKE_NODE_AND_APPEND(tmp, pivot, last, 1, flags, err, err_out, in usnic_uiom_get_intervals_diff()
/linux/tools/perf/scripts/python/
H A Dnet_dropmonitor.py
/linux/fs/smb/client/
H A Dsmb1maperror.c25 const struct smb_to_posix_error *pivot = _pivot; in smb1_posix_error_cmp() local
27 if (key < pivot->smb_err) in smb1_posix_error_cmp()
29 if (key > pivot->smb_err) in smb1_posix_error_cmp()
57 const struct ntstatus_to_dos_err *pivot = _pivot; in ntstatus_to_dos_cmp() local
59 if (key < pivot->ntstatus) in ntstatus_to_dos_cmp()
61 if (key > pivot->ntstatus) in ntstatus_to_dos_cmp()
H A Dsmb2maperror.c32 const struct status_to_posix_error *pivot = _pivot; in cmp_smb2_status() local
34 if (key < pivot->smb2_status) in cmp_smb2_status()
36 if (key > pivot->smb2_status) in cmp_smb2_status()
/linux/fs/xfs/scrub/
H A Dxfarray.c363 /* Size of each element in the quicksort pivot array. */ in xfarray_load_next()
385 * The median-of-nine pivot algorithm doesn't work if a subset has
405 /* Scratchpad for in-memory sort, or finding the pivot */ in xfarray_sort_store()
536 /* Return a pointer to the xfarray pivot record within the sortinfo struct. */
542 /* Return a pointer to the start of the pivot array. */ in xfarray_isort()
550 /* The xfarray record is stored at the start of each pivot array element. */ in xfarray_isort()
560 /* The xfarray index is stored at the end of each pivot array element. */ in xfarray_isort()
572 * Find a pivot value for quicksort partitioning, swap it with a[lo], and save in xfarray_foliosort()
573 * the cached pivot record for the next step. in xfarray_foliosort()
576 * and choose the pivot fro in xfarray_foliosort()
653 void *pivot = xfarray_sortinfo_pivot(si); xfarray_qsort_pivot() local
910 void *pivot; xfarray_sort() local
[all...]
/linux/arch/s390/boot/
H A Dphysmem_info.c146 unsigned long pivot; in search_mem_end() local
150 pivot = offset + range; in search_mem_end()
151 if (!tprot(pivot << 20)) in search_mem_end()
152 offset = pivot; in search_mem_end()
/linux/lib/
H A Dmaple_tree.c18 * In regular B-Tree terms, pivots are called keys. The term pivot is used to
45 * a slot, but the last offset has an implied pivot from the node above (or
537 return node->ma64.pivot; in ma_pivots()
540 return node->mr64.pivot; in ma_pivots()
542 return node->cp.pivot; in ma_pivots()
573 * mas_safe_pivot() - get the pivot at @piv or mas->max.
576 * @piv: The pivot to fetch
579 * Return: The pivot at @piv within the limit of the @pivots array, @mas->max
596 * @offset: The offset into the pivot array
610 * mte_set_pivot() - Set a pivot t
4036 unsigned long pivot; mas_prev_slot() local
4206 unsigned long pivot; mas_next_slot() local
4385 unsigned long pivot, min, gap = 0; mas_anode_descend() local
[all...]
/linux/drivers/pinctrl/sophgo/
H A Dpinctrl-sophgo-common.c33 static int sophgo_cmp_pin(const void *key, const void *pivot) in sophgo_cmp_pin() argument
35 const struct sophgo_pin *pin = pivot; in sophgo_cmp_pin()
/linux/arch/x86/net/
H A Dbpf_jit_comp.c4706 int pivot, err, jg_bytes = 1;
4734 /* Not a leaf node, so we pivot, and recursively descend into
4737 pivot = (b - a) / 2;
4739 if (!is_simm32(progs[a + pivot]))
4741 EMIT2_off32(0x81, add_1reg(0xF8, BPF_REG_3), progs[a + pivot]);
4743 if (pivot > 2) { /* jg upper_part */
4752 err = emit_bpf_dispatcher(&prog, a, a + pivot, /* emit lower_part */
4766 err = emit_bpf_dispatcher(&prog, a + pivot + 1, /* emit upper_part */
3844 int pivot, err, jg_bytes = 1; emit_bpf_dispatcher() local
/linux/lib/zstd/compress/
H A Dhuf_compress.c573 U32 const pivot = arr[high].count; in HUF_quickSortPartition() local
577 if (arr[j].count > pivot) { in HUF_quickSortPartition()
/linux/Documentation/admin-guide/cgroup-v1/
H A Dblkio-controller.rst77 pivot
/linux/kernel/trace/
H A Dtrace.c4834 static int cmp_mod_entry(const void *key, const void *pivot)
4837 const struct trace_mod_entry *ent = pivot;
4823 cmp_mod_entry(const void * key,const void * pivot) cmp_mod_entry() argument
/linux/tools/testing/radix-tree/
H A Dmaple.c[all...]