/openbmc/linux/net/netfilter/ |
H A D | nft_last.c | 17 struct nft_last *last; member 29 struct nft_last *last; in nft_last_init() local 33 last = kzalloc(sizeof(*last), GFP_KERNEL_ACCOUNT); in nft_last_init() 34 if (!last) in nft_last_init() 38 last->set = ntohl(nla_get_be32(tb[NFTA_LAST_SET])); in nft_last_init() 40 if (last->set && tb[NFTA_LAST_MSECS]) { in nft_last_init() 45 last->jiffies = jiffies - (unsigned long)last_jiffies; in nft_last_init() 47 priv->last = last; in nft_last_init() 51 kfree(last); in nft_last_init() 60 struct nft_last *last = priv->last; in nft_last_eval() local [all …]
|
/openbmc/qemu/accel/tcg/ |
H A D | user-exec.c | 157 static PageFlagsNode *pageflags_find(target_ulong start, target_ulong last) in pageflags_find() argument 161 n = interval_tree_iter_first(&pageflags_root, start, last); in pageflags_find() 166 target_ulong last) in pageflags_next() argument 170 n = interval_tree_iter_next(&p->itree, start, last); in pageflags_next() 185 rc = fn(priv, n->start, n->last + 1, p->flags); in walk_memory_regions() 241 static void pageflags_create(target_ulong start, target_ulong last, int flags) in pageflags_create() argument 246 p->itree.last = last; in pageflags_create() 252 static bool pageflags_unset(target_ulong start, target_ulong last) in pageflags_unset() argument 257 PageFlagsNode *p = pageflags_find(start, last); in pageflags_unset() 269 p_last = p->itree.last; in pageflags_unset() [all …]
|
/openbmc/linux/drivers/infiniband/hw/usnic/ |
H A D | usnic_uiom_interval_tree.c | 43 #define LAST(node) ((node)->last) 70 usnic_uiom_interval_node_alloc(long int start, long int last, int ref_cnt, in usnic_uiom_interval_node_alloc() argument 79 interval->last = last; in usnic_uiom_interval_node_alloc() 105 unsigned long start, unsigned long last, in find_intervals_intersection_sorted() argument 112 for (node = usnic_uiom_interval_tree_iter_first(root, start, last); in find_intervals_intersection_sorted() 114 node = usnic_uiom_interval_tree_iter_next(node, start, last)) in find_intervals_intersection_sorted() 120 int usnic_uiom_get_intervals_diff(unsigned long start, unsigned long last, in usnic_uiom_get_intervals_diff() argument 132 find_intervals_intersection_sorted(root, start, last, 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() [all …]
|
/openbmc/linux/arch/mips/sibyte/common/ |
H A D | cfe_console.c | 16 int i, last, written; in cfe_console_write() local 18 for (i=0, last=0; i<count; i++) { in cfe_console_write() 24 written = cfe_write(cfe_cons_handle, &str[last], i-last); in cfe_console_write() 27 last += written; in cfe_console_write() 28 } while (last < i); in cfe_console_write() 33 if (last != count) { in cfe_console_write() 35 written = cfe_write(cfe_cons_handle, &str[last], count-last); in cfe_console_write() 38 last += written; in cfe_console_write() 39 } while (last < count); in cfe_console_write()
|
/openbmc/linux/arch/um/kernel/ |
H A D | tlb.c | 125 struct host_vm_op *last; in add_mmap() local 133 last = &hvc->ops[hvc->index - 1]; in add_mmap() 134 if ((last->type == MMAP) && in add_mmap() 135 (last->u.mmap.addr + last->u.mmap.len == virt) && in add_mmap() 136 (last->u.mmap.prot == prot) && (last->u.mmap.fd == fd) && in add_mmap() 137 (last->u.mmap.offset + last->u.mmap.len == offset)) { in add_mmap() 138 last->u.mmap.len += len; in add_mmap() 162 struct host_vm_op *last; in add_munmap() local 166 last = &hvc->ops[hvc->index - 1]; in add_munmap() 167 if ((last->type == MUNMAP) && in add_munmap() [all …]
|
/openbmc/linux/drivers/video/fbdev/core/ |
H A D | sysfillrect.c | 28 unsigned long first, last; in bitfill_aligned() local 34 last = ~(FB_SHIFT_HIGH(p, ~0UL, (dst_idx+n) % bits)); in bitfill_aligned() 38 if (last) in bitfill_aligned() 39 first &= last; in bitfill_aligned() 57 if (last) in bitfill_aligned() 58 *dst = comp(pat, *dst, last); in bitfill_aligned() 74 unsigned long first, last; in bitfill_unaligned() local 80 last = ~(FB_SHIFT_HIGH(p, ~0UL, (dst_idx+n) % bits)); in bitfill_unaligned() 84 if (last) in bitfill_unaligned() 85 first &= last; in bitfill_unaligned() [all …]
|
H A D | cfbfillrect.c | 38 unsigned long first, last; in bitfill_aligned() local 44 last = ~fb_shifted_pixels_mask_long(p, (dst_idx+n) % bits, bswapmask); in bitfill_aligned() 48 if (last) in bitfill_aligned() 49 first &= last; in bitfill_aligned() 78 if (last) in bitfill_aligned() 79 FB_WRITEL(comp(pat, FB_READL(dst), last), dst); in bitfill_aligned() 95 unsigned long first, last; in bitfill_unaligned() local 101 last = ~(FB_SHIFT_HIGH(p, ~0UL, (dst_idx+n) % bits)); in bitfill_unaligned() 105 if (last) in bitfill_unaligned() 106 first &= last; in bitfill_unaligned() [all …]
|
H A D | syscopyarea.c | 31 unsigned long first, last; in bitcpy() local 36 last = ~(FB_SHIFT_HIGH(p, ~0UL, (dst_idx+n) % bits)); in bitcpy() 42 if (last) in bitcpy() 43 first &= last; in bitcpy() 72 if (last) in bitcpy() 73 *dst = comp(*src, *dst, last); in bitcpy() 85 if (last) in bitcpy() 86 first &= last; in bitcpy() 159 *dst = comp(d0, *dst, last); in bitcpy() 174 unsigned long first, last; in bitcpy_rev() local [all …]
|
/openbmc/linux/drivers/vhost/ |
H A D | iotlb.c | 17 #define LAST(map) ((map)->last) 51 u64 start, u64 last, in vhost_iotlb_add_range_ctx() argument 57 if (last < start) in vhost_iotlb_add_range_ctx() 63 if (start == 0 && last == ULONG_MAX) { in vhost_iotlb_add_range_ctx() 64 u64 mid = last / 2; in vhost_iotlb_add_range_ctx() 87 map->size = last - start + 1; in vhost_iotlb_add_range_ctx() 88 map->last = last; in vhost_iotlb_add_range_ctx() 104 u64 start, u64 last, in vhost_iotlb_add_range() argument 107 return vhost_iotlb_add_range_ctx(iotlb, start, last, in vhost_iotlb_add_range() 118 void vhost_iotlb_del_range(struct vhost_iotlb *iotlb, u64 start, u64 last) in vhost_iotlb_del_range() argument [all …]
|
/openbmc/linux/io_uring/ |
H A D | slist.h | 30 list->last = node; in wq_list_add_after() 38 list->last = node; in wq_list_add_tail() 41 list->last->next = node; in wq_list_add_tail() 42 list->last = node; in wq_list_add_tail() 51 list->last = node; in wq_list_add_head() 56 struct io_wq_work_node *last, in wq_list_cut() argument 61 WRITE_ONCE(list->first, last->next); in wq_list_cut() 63 prev->next = last->next; in wq_list_cut() 65 if (last == list->last) in wq_list_cut() 66 list->last = prev; in wq_list_cut() [all …]
|
/openbmc/qemu/linux-user/ |
H A D | mmap.c | 77 static void shm_region_add(abi_ptr start, abi_ptr last) in shm_region_add() argument 82 i->last = last; in shm_region_add() 93 return i->last; in shm_region_find() 99 static void shm_region_rm_complete(abi_ptr start, abi_ptr last) in shm_region_rm_complete() argument 103 for (i = interval_tree_iter_first(&shm_regions, start, last); i; i = n) { in shm_region_rm_complete() 104 n = interval_tree_iter_next(i, start, last); in shm_region_rm_complete() 105 if (i->start >= start && i->last <= last) { in shm_region_rm_complete() 173 abi_ulong host_start, host_last, last; in target_mprotect() local 193 last = start + len - 1; in target_mprotect() 195 host_last = ROUND_UP(last, host_page_size) - 1; in target_mprotect() [all …]
|
/openbmc/linux/lib/math/ |
H A D | prime_numbers.c | 11 unsigned long last, sz; member 17 .last = 61, 42 .last = 31, 133 if (x < p->last) { in expand_to_next_prime() 145 new->last = clear_multiples(y, new->primes, p->sz, sz); in expand_to_next_prime() 148 BUG_ON(new->last <= x); in expand_to_next_prime() 192 while (x >= p->last) { in next_prime_number() 201 x = find_next_bit(p->primes, p->last, x + 1); in next_prime_number() 255 p->last, p->sz, p->primes[BITS_TO_LONGS(p->sz) - 1], buf); in dump_primes() 264 unsigned long x, last; in selftest() local [all …]
|
/openbmc/linux/include/trace/events/ |
H A D | maple_tree.h | 24 __field(unsigned long, last) 33 __entry->last = mas->last; 43 (unsigned long) __entry->last 57 __field(unsigned long, last) 66 __entry->last = mas->last; 76 (unsigned long) __entry->last 92 __field(unsigned long, last) 103 __entry->last = mas->last; 115 (unsigned long) __entry->last,
|
/openbmc/linux/arch/um/drivers/ |
H A D | umcast_kern.c | 74 char *last; in mcast_setup() local 90 init->lport = simple_strtoul(port_str, &last, 10); in mcast_setup() 91 if ((*last != '\0') || (last == port_str)) { in mcast_setup() 99 init->ttl = simple_strtoul(ttl_str, &last, 10); in mcast_setup() 100 if ((*last != '\0') || (last == ttl_str)) { in mcast_setup() 120 char *last; in ucast_setup() local 136 init->lport = simple_strtoul(lport_str, &last, 10); in ucast_setup() 137 if ((*last != '\0') || (last == lport_str)) { in ucast_setup() 145 init->rport = simple_strtoul(rport_str, &last, 10); in ucast_setup() 146 if ((*last != '\0') || (last == rport_str)) { in ucast_setup()
|
/openbmc/linux/fs/xfs/scrub/ |
H A D | bitmap.c | 49 uint64_t last); 53 uint64_t last); 75 uint64_t last = start + len - 1; local 77 while ((bn = xbitmap_tree_iter_first(&bitmap->xb_root, start, last))) { 78 if (bn->bn_start < start && bn->bn_last > last) { 91 new_bn->bn_start = last + 1; 99 } else if (bn->bn_last > last) { 102 bn->bn_start = last + 1; 124 uint64_t last = start + len - 1; in xbitmap_set() local 128 left = xbitmap_tree_iter_first(&bitmap->xb_root, start, last); in xbitmap_set() [all …]
|
/openbmc/linux/tools/perf/util/ |
H A D | ordered-events.c | 20 struct ordered_event *last = oe->last; in queue_event() local 25 oe->last = new; in queue_event() 29 if (!last) { in queue_event() 40 if (last->timestamp <= timestamp) { in queue_event() 41 while (last->timestamp <= timestamp) { in queue_event() 42 p = last->list.next; in queue_event() 48 last = list_entry(p, struct ordered_event, list); in queue_event() 50 list_add_tail(&new->list, &last->list); in queue_event() 52 while (last->timestamp > timestamp) { in queue_event() 53 p = last->list.prev; in queue_event() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_svm.c | 77 svm_range_check_vm(struct kfd_process *p, uint64_t start, uint64_t last, 95 prange, prange->start, prange->last); in svm_range_unlink() 104 if (prange->it_node.start != 0 && prange->it_node.last != 0) in svm_range_unlink() 112 prange, prange->start, prange->last); in svm_range_add_notifier_locked() 131 prange, prange->start, prange->last); in svm_range_add_to_svms() 135 prange->it_node.last = prange->last; in svm_range_add_to_svms() 144 prange->notifier.interval_tree.last >> PAGE_SHIFT); in svm_range_remove_notifier() 147 prange->notifier.interval_tree.last != 0) in svm_range_remove_notifier() 282 uint64_t size = (prange->last - prange->start + 1) << PAGE_SHIFT; in svm_range_free() 286 prange->start, prange->last); in svm_range_free() [all …]
|
/openbmc/linux/include/linux/ |
H A D | interval_tree_generic.h | 42 ITTYPE start = ITSTART(node), last = ITLAST(node); \ 49 if (parent->ITSUBTREE < last) \ 50 parent->ITSUBTREE = last; \ 59 node->ITSUBTREE = last; \ 81 ITPREFIX ## _subtree_search(ITSTRUCT *node, ITTYPE start, ITTYPE last) \ 104 if (ITSTART(node) <= last) { /* Cond1 */ \ 120 ITTYPE start, ITTYPE last) \ 145 if (ITSTART(leftmost) > last) \ 148 return ITPREFIX ## _subtree_search(node, start, last); \ 152 ITPREFIX ## _iter_next(ITSTRUCT *node, ITTYPE start, ITTYPE last) \ [all …]
|
/openbmc/linux/tools/include/linux/ |
H A D | interval_tree_generic.h | 42 ITTYPE start = ITSTART(node), last = ITLAST(node); \ 49 if (parent->ITSUBTREE < last) \ 50 parent->ITSUBTREE = last; \ 59 node->ITSUBTREE = last; \ 81 ITPREFIX ## _subtree_search(ITSTRUCT *node, ITTYPE start, ITTYPE last) \ 104 if (ITSTART(node) <= last) { /* Cond1 */ \ 120 ITTYPE start, ITTYPE last) \ 145 if (ITSTART(leftmost) > last) \ 148 return ITPREFIX ## _subtree_search(node, start, last); \ 152 ITPREFIX ## _iter_next(ITSTRUCT *node, ITTYPE start, ITTYPE last) \ [all …]
|
/openbmc/linux/scripts/ |
H A D | decode_stacktrace.sh | 262 local last=$(( ${#words[@]} - 1 )) 277 if [[ ${words[$last]} =~ ^[0-9a-f]+\] ]]; then 278 words[$last-1]="${words[$last-1]} ${words[$last]}" 279 unset words[$last] 280 last=$(( $last - 1 )) 283 if [[ ${words[$last]} =~ \[([^]]+)\] ]]; then 284 module=${words[$last]} 292 symbol=${words[$last-1]} 293 unset words[$last-1] 296 symbol=${words[$last]} [all …]
|
/openbmc/u-boot/board/keymile/km83xx/ |
H A D | km83xx_i2c.c | 29 uchar last; in i2c_make_abort() local 41 last = in_8(&base->dr); in i2c_make_abort() 48 while (((last & 0x01) != 0x01) && in i2c_make_abort() 51 last = in_8(&base->dr); in i2c_make_abort() 54 if ((last & 0x01) != 0x01) in i2c_make_abort() 56 if ((last != 0xff) || (nbr_read > 1)) in i2c_make_abort() 58 nbr_read, last); in i2c_make_abort() 69 nbr_read, last); in i2c_make_abort()
|
/openbmc/linux/mm/ |
H A D | interval_tree.c | 34 unsigned long last = vma_last_pgoff(node); in vma_interval_tree_insert_after() local 44 if (parent->shared.rb_subtree_last < last) in vma_interval_tree_insert_after() 45 parent->shared.rb_subtree_last = last; in vma_interval_tree_insert_after() 49 if (parent->shared.rb_subtree_last < last) in vma_interval_tree_insert_after() 50 parent->shared.rb_subtree_last = last; in vma_interval_tree_insert_after() 55 node->shared.rb_subtree_last = last; in vma_interval_tree_insert_after() 93 unsigned long first, unsigned long last) in anon_vma_interval_tree_iter_first() argument 95 return __anon_vma_interval_tree_iter_first(root, first, last); in anon_vma_interval_tree_iter_first() 100 unsigned long first, unsigned long last) in anon_vma_interval_tree_iter_next() argument 102 return __anon_vma_interval_tree_iter_next(node, first, last); in anon_vma_interval_tree_iter_next()
|
/openbmc/linux/drivers/gpu/drm/i915/gt/uc/ |
H A D | selftest_guc.c | 54 struct i915_request *last[3] = {NULL, NULL, NULL}, *rq; in intel_guc_scrub_ctbs() local 95 last[i] = rq; in intel_guc_scrub_ctbs() 99 ret = i915_request_wait(last[i], 0, HZ); in intel_guc_scrub_ctbs() 104 i915_request_put(last[i]); in intel_guc_scrub_ctbs() 105 last[i] = NULL; in intel_guc_scrub_ctbs() 124 if (last[i]) in intel_guc_scrub_ctbs() 125 i915_request_put(last[i]); in intel_guc_scrub_ctbs() 153 struct i915_request *spin_rq = NULL, *rq, *last = NULL; in intel_guc_steal_guc_ids() local 207 if ((ret != -EAGAIN) || !last) { in intel_guc_steal_guc_ids() 209 last ? "" : "first ", context_index, ERR_PTR(ret)); in intel_guc_steal_guc_ids() [all …]
|
/openbmc/linux/drivers/memory/tegra/ |
H A D | tegra210-emc-cc-r21021.c | 119 struct tegra210_emc_timing *last = emc->last; in update_clock_tree_delay() local 121 u32 last_timing_rate_mhz = last->rate / 1000; in update_clock_tree_delay() 155 cval = tegra210_emc_actual_osc_clocks(last->run_clocks); in update_clock_tree_delay() 180 cval = tegra210_emc_actual_osc_clocks(last->run_clocks); in update_clock_tree_delay() 208 cval = tegra210_emc_actual_osc_clocks(last->run_clocks); in update_clock_tree_delay() 235 cval = tegra210_emc_actual_osc_clocks(last->run_clocks); in update_clock_tree_delay() 290 cval = tegra210_emc_actual_osc_clocks(last->run_clocks); in update_clock_tree_delay() 317 cval = tegra210_emc_actual_osc_clocks(last->run_clocks); in update_clock_tree_delay() 345 cval = tegra210_emc_actual_osc_clocks(last->run_clocks); in update_clock_tree_delay() 372 cval = tegra210_emc_actual_osc_clocks(last->run_clocks); in update_clock_tree_delay() [all …]
|
/openbmc/linux/drivers/iommu/iommufd/ |
H A D | io_pagetable.h | 78 return area->pages_node.last; in iopt_area_last_index() 88 return area->node.last; in iopt_area_last_iova() 93 return (area->node.last - area->node.start) + 1; in iopt_area_length() 120 unsigned long last) \ 126 last); \ 133 unsigned long last) \ 137 node = interval_tree_iter_next(&last_node->node, start, last); \ 218 unsigned long last, struct page **out_pages); 220 unsigned long last, struct page **out_pages); 222 unsigned long last); [all …]
|