Home
last modified time | relevance | path

Searched refs:ptr2 (Results 1 – 25 of 32) sorted by relevance

12

/linux-6.6.21/arch/ia64/lib/
Dmemset.S33 #define ptr2 r27 macro
72 and ptr2 = -(MIN1+1), dest // aligned address
88 (p_unalgn) add ptr1 = (MIN1+1), ptr2 // after alignment
89 (p_unalgn) add ptr2 = MIN1P1HALF, ptr2 // after alignment
96 (p_y) st8 [ptr2] = value,-4 //
97 (p_n) add ptr2 = 4, ptr2 //
103 (p_yy) st4 [ptr2] = value,-2 //
104 (p_nn) add ptr2 = 2, ptr2 //
112 (p_y) st2 [ptr2] = value,-1 //
113 (p_n) add ptr2 = 1, ptr2 //
[all …]
/linux-6.6.21/mm/kasan/
Dkasan_test.c319 char *ptr1, *ptr2; in krealloc_more_oob_helper() local
328 ptr2 = krealloc(ptr1, size2, GFP_KERNEL); in krealloc_more_oob_helper()
329 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, ptr2); in krealloc_more_oob_helper()
332 OPTIMIZER_HIDE_VAR(ptr2); in krealloc_more_oob_helper()
335 ptr2[size1 - 1] = 'x'; in krealloc_more_oob_helper()
336 ptr2[size1] = 'x'; in krealloc_more_oob_helper()
337 ptr2[middle] = 'x'; in krealloc_more_oob_helper()
338 ptr2[size2 - 1] = 'x'; in krealloc_more_oob_helper()
342 KUNIT_EXPECT_KASAN_FAIL(test, ptr2[size2] = 'x'); in krealloc_more_oob_helper()
346 ptr2[round_up(size2, KASAN_GRANULE_SIZE)] = 'x'); in krealloc_more_oob_helper()
[all …]
/linux-6.6.21/tools/testing/selftests/bpf/progs/
Ddynptr_success.c376 struct bpf_dynptr ptr2; in test_dynptr_is_null() local
395 if (bpf_ringbuf_reserve_dynptr(&ringbuf, size, 0, &ptr2)) { in test_dynptr_is_null()
401 if (bpf_dynptr_is_null(&ptr2)) { in test_dynptr_is_null()
407 bpf_ringbuf_discard_dynptr(&ptr2, 0); in test_dynptr_is_null()
417 struct bpf_dynptr ptr2; in test_dynptr_is_rdonly() local
433 if (bpf_dynptr_from_skb(skb, 0, &ptr2)) { in test_dynptr_is_rdonly()
439 if (!bpf_dynptr_is_rdonly(&ptr2)) { in test_dynptr_is_rdonly()
465 struct bpf_dynptr ptr2; in test_dynptr_clone() local
480 if (bpf_dynptr_clone(&ptr1, &ptr2)) { in test_dynptr_clone()
488 if (bpf_dynptr_size(&ptr2) != size) { in test_dynptr_clone()
[all …]
Ddynptr_fail.c96 struct bpf_dynptr ptr1, ptr2; in ringbuf_missing_release2() local
100 bpf_ringbuf_reserve_dynptr(&ringbuf, sizeof(*sample), 0, &ptr2); in ringbuf_missing_release2()
105 bpf_ringbuf_discard_dynptr(&ptr2, 0); in ringbuf_missing_release2()
328 struct bpf_dynptr ptr1, ptr2; in data_slice_use_after_release2() local
332 bpf_ringbuf_reserve_dynptr(&ringbuf, sizeof(*sample), 0, &ptr2); in data_slice_use_after_release2()
334 sample = bpf_dynptr_data(&ptr2, 0, sizeof(*sample)); in data_slice_use_after_release2()
340 bpf_ringbuf_submit_dynptr(&ptr2, 0); in data_slice_use_after_release2()
350 bpf_ringbuf_discard_dynptr(&ptr2, 0); in data_slice_use_after_release2()
577 struct bpf_dynptr ptr1, ptr2; in invalid_read3() local
580 bpf_ringbuf_reserve_dynptr(&ringbuf, 16, 0, &ptr2); in invalid_read3()
[all …]
/linux-6.6.21/arch/hexagon/lib/
Dchecksum.c90 unsigned short *ptr2; in do_csum() local
108 ptr2 = (unsigned short *) &ptr[start & 1]; in do_csum()
110 sum1 += (u64) ptr2[0]; in do_csum()
155 ptr2 = (unsigned short *) &ptr[start + (mid * 16) + (end & 12)]; in do_csum()
157 sum0 += (u64) ptr2[0]; in do_csum()
/linux-6.6.21/drivers/media/platform/amphion/
Dvpu_rpc.c34 u32 ptr2; in vpu_rpc_check_buffer_space() local
40 ptr2 = desc->rptr; in vpu_rpc_check_buffer_space()
43 ptr2 = desc->wptr; in vpu_rpc_check_buffer_space()
46 if (ptr1 == ptr2) { in vpu_rpc_check_buffer_space()
53 return (ptr2 + size - ptr1) % size; in vpu_rpc_check_buffer_space()
/linux-6.6.21/fs/nilfs2/
Ddirect.c55 __u64 ptr, ptr2; in nilfs_direct_lookup_contig() local
76 (ptr2 = nilfs_direct_get_ptr(direct, key + cnt)) != in nilfs_direct_lookup_contig()
80 ret = nilfs_dat_translate(dat, ptr2, &blocknr); in nilfs_direct_lookup_contig()
83 ptr2 = blocknr; in nilfs_direct_lookup_contig()
85 if (ptr2 != ptr + cnt) in nilfs_direct_lookup_contig()
Dbtree.c499 __u64 ptr2; in __nilfs_btree_get_block() local
504 ptr2 = nilfs_btree_node_get_ptr(ra->node, i, ra->ncmax); in __nilfs_btree_get_block()
506 ret = nilfs_btnode_submit_block(btnc, ptr2, 0, in __nilfs_btree_get_block()
709 __u64 ptr, ptr2; in nilfs_btree_lookup_contig() local
742 ptr2 = nilfs_btree_node_get_ptr(node, index, ncmax); in nilfs_btree_lookup_contig()
744 ret = nilfs_dat_translate(dat, ptr2, &blocknr); in nilfs_btree_lookup_contig()
747 ptr2 = blocknr; in nilfs_btree_lookup_contig()
749 if (ptr2 != ptr + cnt || ++cnt == maxblocks) in nilfs_btree_lookup_contig()
763 ptr2 = nilfs_btree_node_get_ptr(p.node, p.index, p.ncmax); in nilfs_btree_lookup_contig()
769 ret = __nilfs_btree_get_block(btree, ptr2, &path[level].bp_bh, in nilfs_btree_lookup_contig()
/linux-6.6.21/sound/isa/gus/
Dgus_mem.c136 unsigned int ptr1, ptr2; in snd_gf1_mem_find() local
152 ptr2 = boundary; in snd_gf1_mem_find()
157 ptr2 = pblock->next->ptr; in snd_gf1_mem_find()
160 if (ptr1 >= ptr2) in snd_gf1_mem_find()
162 size1 = ptr2 - ptr1; in snd_gf1_mem_find()
/linux-6.6.21/sound/pci/emu10k1/
Dp16v.c482 snd_pcm_uframes_t ptr, ptr1, ptr2,ptr3,ptr4 = 0; in snd_p16v_pcm_pointer_playback() local
492 ptr2 = bytes_to_frames(runtime, ptr1); in snd_p16v_pcm_pointer_playback()
493 ptr2+= (ptr4 >> 3) * runtime->period_size; in snd_p16v_pcm_pointer_playback()
494 ptr=ptr2; in snd_p16v_pcm_pointer_playback()
507 snd_pcm_uframes_t ptr, ptr1, ptr2 = 0; in snd_p16v_pcm_pointer_capture() local
514 ptr2 = bytes_to_frames(runtime, ptr1); in snd_p16v_pcm_pointer_capture()
515 ptr=ptr2; in snd_p16v_pcm_pointer_capture()
Demu10k1x.c511 snd_pcm_uframes_t ptr = 0, ptr1 = 0, ptr2= 0,ptr3 = 0,ptr4 = 0; in snd_emu10k1x_pcm_pointer() local
525 ptr2 = bytes_to_frames(runtime, ptr1); in snd_emu10k1x_pcm_pointer()
526 ptr2 += (ptr4 >> 3) * runtime->period_size; in snd_emu10k1x_pcm_pointer()
527 ptr = ptr2; in snd_emu10k1x_pcm_pointer()
/linux-6.6.21/drivers/media/common/saa7146/
Dsaa7146_video.c103 __le32 *ptr1, *ptr2, *ptr3; in saa7146_pgtable_build() local
138 ptr2 = pt2->cpu; in saa7146_pgtable_build()
152 for (i = m1; i <= m2; i++, ptr2++) in saa7146_pgtable_build()
153 *ptr2 = ptr1[i]; in saa7146_pgtable_build()
154 fill = *(ptr2 - 1); in saa7146_pgtable_build()
155 for (; i < 1024; i++, ptr2++) in saa7146_pgtable_build()
156 *ptr2 = fill; in saa7146_pgtable_build()
/linux-6.6.21/lib/
Dhexdump.c179 const u16 *ptr2 = buf; in hex_dump_to_buffer() local
184 get_unaligned(ptr2 + j)); in hex_dump_to_buffer()
Dtest_maple_tree.c3050 void *ptr2 = &ptr; in check_state_handling() local
3051 void *ptr3 = &ptr2; in check_state_handling()
3247 mtree_store_range(mt, 0x2000, 0x2500, ptr2, GFP_KERNEL); in check_state_handling()
3281 MT_BUG_ON(mt, entry != ptr2); in check_state_handling()
3334 MT_BUG_ON(mt, entry != ptr2); in check_state_handling()
3394 MT_BUG_ON(mt, entry != ptr2); in check_state_handling()
3440 MT_BUG_ON(mt, entry != ptr2); in check_state_handling()
3476 MT_BUG_ON(mt, entry != ptr2); in check_state_handling()
/linux-6.6.21/drivers/crypto/cavium/cpt/
Drequest_manager.h86 __be64 ptr2; member
Dcptvf_reqmanager.c82 sg_ptr->ptr2 = cpu_to_be64(list[i * 4 + 2].dma_addr); in setup_sgio_components()
92 sg_ptr->ptr2 = cpu_to_be64(list[i * 4 + 2].dma_addr); in setup_sgio_components()
/linux-6.6.21/tools/testing/selftests/kvm/lib/
Dkvm_util.c794 uintptr_t ptr2 = (uintptr_t)addr_gva2hva(vm, gva + offset); in kvm_memcmp_hva_gva() local
803 if ((ptr2 >> vm->page_shift) != ((ptr2 + amt) >> vm->page_shift)) in kvm_memcmp_hva_gva()
804 amt = vm->page_size - (ptr2 % vm->page_size); in kvm_memcmp_hva_gva()
807 assert((ptr2 >> vm->page_shift) == ((ptr2 + amt - 1) >> vm->page_shift)); in kvm_memcmp_hva_gva()
814 int ret = memcmp((void *)ptr1, (void *)ptr2, amt); in kvm_memcmp_hva_gva()
/linux-6.6.21/drivers/crypto/marvell/octeontx2/
Dotx2_cpt_reqmgr.h156 __be64 ptr2; member
Dotx2_cptvf_reqmgr.c121 sg_ptr->ptr2 = cpu_to_be64(list[i * 4 + 2].dma_addr); in setup_sgio_components()
130 sg_ptr->ptr2 = cpu_to_be64(list[i * 4 + 2].dma_addr); in setup_sgio_components()
/linux-6.6.21/drivers/crypto/marvell/octeontx/
Dotx_cptvf_reqmgr.h134 __be64 ptr2; member
Dotx_cptvf_reqmgr.c133 sg_ptr->ptr2 = cpu_to_be64(list[i * 4 + 2].dma_addr); in setup_sgio_components()
142 sg_ptr->ptr2 = cpu_to_be64(list[i * 4 + 2].dma_addr); in setup_sgio_components()
/linux-6.6.21/drivers/target/sbp/
Dsbp_target.h107 struct sbp2_pointer ptr2; member
/linux-6.6.21/include/media/
Dv4l2-ctrls.h140 union v4l2_ctrl_ptr ptr1, union v4l2_ctrl_ptr ptr2);
1558 union v4l2_ctrl_ptr ptr1, union v4l2_ctrl_ptr ptr2);
/linux-6.6.21/tools/perf/util/
Dprobe-event.c205 char *ptr1, *ptr2, *exec_copy; in convert_exec_to_group() local
219 for (ptr2 = ptr1; *ptr2 != '\0'; ptr2++) { in convert_exec_to_group()
220 if (!isalnum(*ptr2) && *ptr2 != '_') { in convert_exec_to_group()
221 *ptr2 = '\0'; in convert_exec_to_group()
/linux-6.6.21/drivers/gpu/drm/i915/
Di915_gpu_error.c2318 char *ptr2 = ptr; in intel_klog_error_capture() local
2325 l_count, line++, ptr2); in intel_klog_error_capture()
2327 ptr2 = ptr + pos; in intel_klog_error_capture()
2337 if (ptr2 < (ptr + count)) in intel_klog_error_capture()
2339 l_count, line++, tag[0], ptr2, tag[1]); in intel_klog_error_capture()

12