Home
last modified time | relevance | path

Searched refs:ptrdiff_t (Results 1 – 25 of 37) sorted by relevance

12

/linux-6.6.21/arch/riscv/kernel/
Dmodule.c21 static bool riscv_insn_valid_32bit_offset(ptrdiff_t val) in riscv_insn_valid_32bit_offset()
50 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_branch_rela()
63 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_jal_rela()
76 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_rvc_branch_rela()
91 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_rvc_jump_rela()
109 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_pcrel_hi20_rela()
191 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_got_hi20_rela()
213 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_call_plt_rela()
239 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_riscv_call_rela()
/linux-6.6.21/tools/testing/selftests/rseq/
Drseq.c43 __weak ptrdiff_t __rseq_offset;
47 static const ptrdiff_t *libc_rseq_offset_p = &__rseq_offset;
52 ptrdiff_t rseq_offset;
Drseq.h60 extern ptrdiff_t rseq_offset;
/linux-6.6.21/arch/loongarch/kernel/
Dmodule.c108 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_larch_sop_push_plt_pcrel()
282 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_larch_b26()
320 ptrdiff_t offset_rem = (void *)v - (void *)anchor; in apply_r_larch_pcala()
373 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_larch_32_pcrel()
382 ptrdiff_t offset = (void *)v - (void *)location; in apply_r_larch_64_pcrel()
/linux-6.6.21/tools/build/feature/
Dtest-dwarf_getlocations.c11 ptrdiff_t offset = 0; in main()
/linux-6.6.21/net/bluetooth/
Deir.c82 static u8 *create_uuid16_list(struct hci_dev *hdev, u8 *data, ptrdiff_t len) in create_uuid16_list()
124 static u8 *create_uuid32_list(struct hci_dev *hdev, u8 *data, ptrdiff_t len) in create_uuid32_list()
157 static u8 *create_uuid128_list(struct hci_dev *hdev, u8 *data, ptrdiff_t len) in create_uuid128_list()
/linux-6.6.21/lib/zstd/common/
Dzstd_internal.h208 void ZSTD_wildcopy(void* dst, const void* src, ptrdiff_t length, ZSTD_overlap_e const ovtype) in ZSTD_wildcopy()
210 ptrdiff_t diff = (BYTE*)dst - (const BYTE*)src; in ZSTD_wildcopy()
Dfse.h375 ptrdiff_t value;
516 statePtr->value = (ptrdiff_t)1<<tableLog; in FSE_initCState()
/linux-6.6.21/tools/include/nolibc/
Dstdint.h22 typedef signed long ptrdiff_t; typedef
/linux-6.6.21/drivers/dma/dw-edma/
Ddw-hdma-v0-core.c158 ptrdiff_t ofs = i * sizeof(struct dw_hdma_v0_lli); in dw_hdma_v0_write_ll_data()
180 ptrdiff_t ofs = i * sizeof(struct dw_hdma_v0_lli); in dw_hdma_v0_write_ll_link()
Ddw-edma-v0-core.c282 ptrdiff_t ofs = i * sizeof(struct dw_edma_v0_lli); in dw_edma_v0_write_ll_data()
304 ptrdiff_t ofs = i * sizeof(struct dw_edma_v0_lli); in dw_edma_v0_write_ll_link()
/linux-6.6.21/include/linux/
Dtypes.h71 typedef __kernel_ptrdiff_t ptrdiff_t; typedef
/linux-6.6.21/lib/zstd/decompress/
Dzstd_decompress_block.c792 static void ZSTD_safecopy(BYTE* op, const BYTE* const oend_w, BYTE const* ip, ptrdiff_t length, ZST… in ZSTD_safecopy()
793 ptrdiff_t const diff = op - ip; in ZSTD_safecopy()
832 static void ZSTD_safecopyDstBeforeSrc(BYTE* op, BYTE const* ip, ptrdiff_t length) { in ZSTD_safecopyDstBeforeSrc()
833 ptrdiff_t const diff = op - ip; in ZSTD_safecopyDstBeforeSrc()
1029 ZSTD_wildcopy(op, match, (ptrdiff_t)sequence.matchLength, ZSTD_no_overlap); in ZSTD_execSequence()
1040 ZSTD_wildcopy(op, match, (ptrdiff_t)sequence.matchLength - 8, ZSTD_overlap_src_before_dst); in ZSTD_execSequence()
1120 ZSTD_wildcopy(op, match, (ptrdiff_t)sequence.matchLength, ZSTD_no_overlap); in ZSTD_execSequenceSplitLitBuffer()
1131 ZSTD_wildcopy(op, match, (ptrdiff_t)sequence.matchLength-8, ZSTD_overlap_src_before_dst); in ZSTD_execSequenceSplitLitBuffer()
/linux-6.6.21/fs/ntfs3/lib/
Ddecompress_common.h275 if (bufend - end >= (ptrdiff_t)(WORDBYTES - 1)) { in lz_copy()
/linux-6.6.21/drivers/ntb/hw/idt/
Dntb_hw_idt.c310 iowrite32(data, ndev->cfgspc + (ptrdiff_t)reg); in idt_nt_write()
332 return ioread32(ndev->cfgspc + (ptrdiff_t)reg); in idt_nt_read()
358 iowrite32((u32)reg, ndev->cfgspc + (ptrdiff_t)IDT_NT_GASAADDR); in idt_sw_write()
360 iowrite32(data, ndev->cfgspc + (ptrdiff_t)IDT_NT_GASADATA); in idt_sw_write()
389 iowrite32((u32)reg, ndev->cfgspc + (ptrdiff_t)IDT_NT_GASAADDR); in idt_sw_read()
391 data = ioread32(ndev->cfgspc + (ptrdiff_t)IDT_NT_GASADATA); in idt_sw_read()
/linux-6.6.21/drivers/net/ethernet/ibm/emac/
Dcore.h416 return (u32 *)((ptrdiff_t)p + offset); in emac_xaht_base()
/linux-6.6.21/mm/kfence/
Dreport.c189 const ptrdiff_t object_index = meta ? meta - kfence_metadata : -1; in kfence_report_error()
/linux-6.6.21/tools/testing/selftests/nolibc/
Dnolibc-test.c1004 … EXPECT_EQ(1, PTRDIFF_MIN, sizeof(long) == 8 ? (ptrdiff_t) 0x8000000000000000LL : (ptrdiff_… in run_stdlib()
1005 … EXPECT_EQ(1, PTRDIFF_MAX, sizeof(long) == 8 ? (ptrdiff_t) 0x7fffffffffffffffLL : (ptrdiff_… in run_stdlib()
/linux-6.6.21/lib/zstd/compress/
Dzstd_compress_internal.h615 … ZSTD_wildcopy(seqStorePtr->lit+16, literals+16, (ptrdiff_t)litLength-16, ZSTD_no_overlap); in ZSTD_storeSeq()
1231 ptrdiff_t const highInputIdx = (ip + srcSize) - window->dictBase; in ZSTD_window_update()
1232 …U32 const lowLimitMax = (highInputIdx > (ptrdiff_t)window->dictLimit) ? window->dictLimit : (U32)h… in ZSTD_window_update()
/linux-6.6.21/drivers/gpu/drm/i915/
Di915_utils.h154 static __always_inline ptrdiff_t ptrdiff(const void *a, const void *b) in ptrdiff()
Di915_vma.h212 ptrdiff_t cmp; in i915_vma_compare()
/linux-6.6.21/Documentation/translations/zh_CN/core-api/
Dprintk-formats.rst184 为了打印指针的差异,使用ptrdiff_t的%t修饰符。
/linux-6.6.21/sound/pci/emu10k1/
Dp16v.c424 runtime->private_data = (void *)(ptrdiff_t)running; in snd_p16v_pcm_trigger_playback()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_ptp.c1298 ptrdiff_t offset;
1340 ptrdiff_t offset; in mlxsw_sp1_get_stats()
/linux-6.6.21/drivers/net/dsa/sja1105/
Dsja1105_spi.c102 chunk.len = min_t(size_t, (ptrdiff_t)(buf + len - chunk.buf), in sja1105_xfer()

12