/drivers/infiniband/hw/usnic/ |
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 …]
|
D | usnic_uiom_interval_tree.h | 43 unsigned long last; member 58 unsigned long last); 61 unsigned long start, unsigned long last); 67 unsigned long start, unsigned long last, 75 unsigned long start, unsigned long last, 82 unsigned long last, int flags,
|
/drivers/video/fbdev/core/ |
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 …]
|
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 …]
|
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 …]
|
D | fbsysfs.c | 146 char ** last = NULL; in store_bpp() local 150 var.bits_per_pixel = simple_strtoul(buf, last, 0); in store_bpp() 169 char **last = NULL; in store_rotate() local 173 var.rotate = simple_strtoul(buf, last, 0); in store_rotate() 196 char *last = NULL; in store_virtual() local 200 var.xres_virtual = simple_strtoul(buf, &last, 0); in store_virtual() 201 last++; in store_virtual() 202 if (last - buf >= count) in store_virtual() 204 var.yres_virtual = simple_strtoul(last, &last, 0); in store_virtual() 231 char *last = NULL; in store_blank() local [all …]
|
D | cfbcopyarea.c | 50 unsigned long first, last; in bitcpy() local 64 last = ~fb_shifted_pixels_mask_long(p, (dst_idx+n) % bits, bswapmask); in bitcpy() 71 if (last) in bitcpy() 72 first &= last; in bitcpy() 102 if (last) in bitcpy() 103 FB_WRITEL( comp( FB_READL(src), FB_READL(dst), last), dst); in bitcpy() 115 if (last) in bitcpy() 116 first &= last; in bitcpy() 201 FB_WRITEL(comp(d0, FB_READL(dst), last), dst); in bitcpy() 216 unsigned long first, last; in bitcpy_rev() local [all …]
|
/drivers/vhost/ |
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 …]
|
/drivers/gpu/drm/amd/amdkfd/ |
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 …]
|
/drivers/memory/tegra/ |
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 …]
|
/drivers/gpu/drm/i915/gt/uc/ |
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 …]
|
/drivers/iommu/iommufd/ |
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 …]
|
/drivers/base/regmap/ |
D | regcache-maple.c | 44 unsigned long index, last; in regcache_maple_write() local 60 last = reg; in regcache_maple_write() 65 lower_sz = (mas.last - mas.index + 1) * sizeof(unsigned long); in regcache_maple_write() 70 last = mas.last; in regcache_maple_write() 71 upper_sz = (mas.last - mas.index + 1) * sizeof(unsigned long); in regcache_maple_write() 76 entry = kmalloc((last - index + 1) * sizeof(unsigned long), in regcache_maple_write() 94 mas_set_range(&mas, index, last); in regcache_maple_write() 144 if (mas.last > max) { in regcache_maple_drop() 146 upper_last = mas.last; in regcache_maple_drop() 149 ((mas.last - max) * in regcache_maple_drop() [all …]
|
/drivers/crypto/marvell/cesa/ |
D | tdma.c | 76 dreq->chain.last = NULL; in mv_cesa_dma_cleanup() 99 if (engine->chain.first == NULL && engine->chain.last == NULL) { in mv_cesa_tdma_chain() 101 engine->chain.last = dreq->chain.last; in mv_cesa_tdma_chain() 103 struct mv_cesa_tdma_desc *last; in mv_cesa_tdma_chain() local 105 last = engine->chain.last; in mv_cesa_tdma_chain() 106 last->next = dreq->chain.first; in mv_cesa_tdma_chain() 107 engine->chain.last = dreq->chain.last; in mv_cesa_tdma_chain() 115 if (!(last->flags & CESA_TDMA_BREAK_CHAIN) && in mv_cesa_tdma_chain() 117 last->next_dma = cpu_to_le32(dreq->chain.first->cur_dma); in mv_cesa_tdma_chain() 157 engine->chain.last = NULL; in mv_cesa_tdma_process() [all …]
|
/drivers/infiniband/hw/cxgb4/ |
D | id_table.c | 51 obj = find_next_zero_bit(alloc->table, alloc->max, alloc->last); in c4iw_id_alloc() 57 alloc->last += get_random_u32_below(RANDOM_SKIP); in c4iw_id_alloc() 59 alloc->last = obj + 1; in c4iw_id_alloc() 60 if (alloc->last >= alloc->max) in c4iw_id_alloc() 61 alloc->last = 0; in c4iw_id_alloc() 88 alloc->last = get_random_u32_below(RANDOM_SKIP); in c4iw_id_table_alloc() 90 alloc->last = 0; in c4iw_id_table_alloc()
|
/drivers/staging/media/ipu3/ |
D | ipu3-css-pool.c | 49 pool->last = IPU3_CSS_POOL_SIZE; in imgu_css_pool_init() 64 u32 n = (pool->last + 1) % IPU3_CSS_POOL_SIZE; in imgu_css_pool_get() 67 pool->last = n; in imgu_css_pool_get() 75 pool->entry[pool->last].valid = false; in imgu_css_pool_put() 76 pool->last = (pool->last + IPU3_CSS_POOL_SIZE - 1) % IPU3_CSS_POOL_SIZE; in imgu_css_pool_put() 92 int i = (pool->last + IPU3_CSS_POOL_SIZE - n) % IPU3_CSS_POOL_SIZE; in imgu_css_pool_last()
|
/drivers/net/team/ |
D | team_mode_broadcast.c | 17 struct team_port *last = NULL; in bc_transmit() local 24 if (last) { in bc_transmit() 27 ret = !team_dev_queue_xmit(team, last, in bc_transmit() 33 last = cur; in bc_transmit() 36 if (last) { in bc_transmit() 37 ret = !team_dev_queue_xmit(team, last, skb); in bc_transmit()
|
/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
D | image.c | 54 image->last = pcir.last; in nvbios_imagen() 60 image->last = npde.last; in nvbios_imagen() 62 image->last = true; in nvbios_imagen() 76 if (image->last || !nvbios_imagen(bios, image)) { in nvbios_image()
|
/drivers/vdpa/vdpa_user/ |
D | iova_domain.c | 21 u64 start, u64 last, in vduse_iotlb_add_range() argument 35 ret = vhost_iotlb_add_range_ctx(domain->iotlb, start, last, in vduse_iotlb_add_range() 46 u64 start, u64 last) in vduse_iotlb_del_range() argument 51 while ((map = vhost_iotlb_itree_first(domain->iotlb, start, last))) { in vduse_iotlb_del_range() 64 u64 start = 0ULL, last = ULLONG_MAX; in vduse_domain_set_map() local 68 vduse_iotlb_del_range(domain, start, last); in vduse_domain_set_map() 70 for (map = vhost_iotlb_itree_first(iotlb, start, last); map; in vduse_domain_set_map() 71 map = vhost_iotlb_itree_next(map, start, last)) { in vduse_domain_set_map() 73 ret = vduse_iotlb_add_range(domain, map->start, map->last, in vduse_domain_set_map() 84 vduse_iotlb_del_range(domain, start, last); in vduse_domain_set_map() [all …]
|
/drivers/infiniband/hw/qib/ |
D | qib_tx.c | 65 unsigned last; in qib_disarm_piobufs() local 67 last = first + cnt; in qib_disarm_piobufs() 69 for (i = first; i < last; i++) { in qib_disarm_piobufs() 84 unsigned last; in qib_disarm_piobufs_ifneeded() local 86 last = rcd->pio_base + rcd->piocnt; in qib_disarm_piobufs_ifneeded() 103 for (i = rcd->pio_base; i < last; i++) { in qib_disarm_piobufs_ifneeded() 279 u32 first, u32 last) in qib_getsendbuf_range() argument 290 nbufs = last - first + 1; /* number in range to check */ in qib_getsendbuf_range() 308 if (dd->last_pio >= first && dd->last_pio <= last) in qib_getsendbuf_range() 312 nbufs = last - dd->min_kernel_pio + 1; in qib_getsendbuf_range() [all …]
|
/drivers/pwm/ |
D | core.c | 120 pwm->last = pwm->state; in pwm_device_request() 388 struct pwm_state *last = &pwm->last; in pwm_apply_debug() local 430 last->polarity == state->polarity && in pwm_apply_debug() 431 last->period > s2.period && in pwm_apply_debug() 432 last->period <= state->period) in pwm_apply_debug() 435 state->period, s2.period, last->period); in pwm_apply_debug() 443 last->polarity == state->polarity && in pwm_apply_debug() 444 last->period == s2.period && in pwm_apply_debug() 445 last->duty_cycle > s2.duty_cycle && in pwm_apply_debug() 446 last->duty_cycle <= state->duty_cycle) in pwm_apply_debug() [all …]
|
/drivers/video/fbdev/omap2/omapfb/dss/ |
D | overlay-sysfs.c | 139 char *last; in overlay_position_store() local 144 info.pos_x = simple_strtoul(buf, &last, 10); in overlay_position_store() 145 ++last; in overlay_position_store() 146 if (last - buf >= size) in overlay_position_store() 149 info.pos_y = simple_strtoul(last, &last, 10); in overlay_position_store() 178 char *last; in overlay_output_size_store() local 183 info.out_width = simple_strtoul(buf, &last, 10); in overlay_output_size_store() 184 ++last; in overlay_output_size_store() 185 if (last - buf >= size) in overlay_output_size_store() 188 info.out_height = simple_strtoul(last, &last, 10); in overlay_output_size_store()
|
/drivers/md/bcache/ |
D | util.c | 165 uint64_t now, duration, last; in bch_time_stats_update() local 172 last = time_after64(now, stats->last) in bch_time_stats_update() 173 ? now - stats->last : 0; in bch_time_stats_update() 177 if (stats->last) { in bch_time_stats_update() 181 ewma_add(stats->average_frequency, last, 8, 8); in bch_time_stats_update() 183 stats->average_frequency = last << 8; in bch_time_stats_update() 188 stats->last = now ?: 1; in bch_time_stats_update()
|
/drivers/scsi/sym53c8xx_2/ |
D | sym_misc.h | 80 struct sym_quehead *last = list->blink; in sym_que_splice() local 86 last->flink = at; in sym_que_splice() 87 at->blink = last; in sym_que_splice() 94 struct sym_quehead *first, *last; in sym_que_move() local 100 last = orig->blink; in sym_que_move() 101 last->flink = dest; in sym_que_move() 102 dest->blink = last; in sym_que_move()
|
/drivers/video/fbdev/ |
D | c2p_iplan2.c | 92 u32 dst_idx, first, last, w; in c2p_iplan2() local 100 last = 0xffffU ^ (0xffffU >> ((dst_idx+width) % 16)); in c2p_iplan2() 101 last |= last << 16; in c2p_iplan2() 108 first &= last; in c2p_iplan2() 144 store_iplan2_masked(p, bpp, d.words, last); in c2p_iplan2()
|