Home
last modified time | relevance | path

Searched refs:boundary (Results 1 – 25 of 224) sorted by relevance

123456789

/kernel/linux/linux-5.10/include/media/
Dv4l2-rect.h59 const struct v4l2_rect *boundary) in v4l2_rect_map_inside() argument
61 v4l2_rect_set_max_size(r, boundary); in v4l2_rect_map_inside()
62 if (r->left < boundary->left) in v4l2_rect_map_inside()
63 r->left = boundary->left; in v4l2_rect_map_inside()
64 if (r->top < boundary->top) in v4l2_rect_map_inside()
65 r->top = boundary->top; in v4l2_rect_map_inside()
66 if (r->left + r->width > boundary->left + boundary->width) in v4l2_rect_map_inside()
67 r->left = boundary->left + boundary->width - r->width; in v4l2_rect_map_inside()
68 if (r->top + r->height > boundary->top + boundary->height) in v4l2_rect_map_inside()
69 r->top = boundary->top + boundary->height - r->height; in v4l2_rect_map_inside()
/kernel/linux/linux-5.10/kernel/
Dstackleak.c55 unsigned long boundary = (unsigned long)end_of_stack(current); in stackleak_erase() local
63 if (unlikely(kstack_ptr - boundary >= THREAD_SIZE)) in stackleak_erase()
64 kstack_ptr = boundary; in stackleak_erase()
67 while (kstack_ptr > boundary && poison_count <= depth) { in stackleak_erase()
80 if (kstack_ptr == boundary) in stackleak_erase()
93 boundary = current_stack_pointer; in stackleak_erase()
95 boundary = current_top_of_stack(); in stackleak_erase()
97 while (kstack_ptr < boundary) { in stackleak_erase()
/kernel/linux/linux-5.10/drivers/gpio/
Dgpio-104-idi-48.c118 unsigned boundary; in idi_48_irq_mask() local
124 boundary = i / 8; in idi_48_irq_mask()
126 idi48gpio->irq_mask[boundary] &= ~mask; in idi_48_irq_mask()
128 if (!idi48gpio->irq_mask[boundary]) { in idi_48_irq_mask()
129 idi48gpio->cos_enb &= ~BIT(boundary); in idi_48_irq_mask()
150 unsigned boundary; in idi_48_irq_unmask() local
157 boundary = i / 8; in idi_48_irq_unmask()
158 prev_irq_mask = idi48gpio->irq_mask[boundary]; in idi_48_irq_unmask()
160 idi48gpio->irq_mask[boundary] |= mask; in idi_48_irq_unmask()
163 idi48gpio->cos_enb |= BIT(boundary); in idi_48_irq_unmask()
[all …]
/kernel/liteos_a/kernel/base/misc/
Dlos_misc.c35 LITE_OS_SEC_TEXT UINTPTR LOS_Align(UINTPTR addr, UINT32 boundary) in LOS_Align() argument
37 if ((addr + boundary - 1) > addr) { in LOS_Align()
38 return (addr + boundary - 1) & ~((UINTPTR)(boundary - 1)); in LOS_Align()
40 return addr & ~((UINTPTR)(boundary - 1)); in LOS_Align()
/kernel/liteos_m/testsuites/sample/kernel/lms/
DIt_los_lms_002.c37 UINT32 boundary; in TestCase() local
42 boundary = 1 << i; in TestCase()
43 str = (CHAR *)LOS_MemAllocAlign(m_aucSysMem0, size, boundary); in TestCase()
45 PRINTK("str = 0x%x, boundary = %d\n", str, boundary); in TestCase()
DIt_los_lms_003.c37 UINT32 boundary; in TestCase() local
42 boundary = 1 << i; in TestCase()
43 str = (CHAR *)LOS_MemAllocAlign(m_aucSysMem0, size, boundary); in TestCase()
45 PRINTK("str = 0x%x, boundary = %d\n", str, boundary); in TestCase()
DIt_los_lms_004.c43 UINT32 boundary; in TestCase() local
48 boundary = 1 << i; in TestCase()
49 PRINT_DEBUG("size = %d, boundary = %d\n", size[k], boundary); in TestCase()
50 str[index] = (char *)LOS_MemAllocAlign(m_aucSysMem0, size[k], boundary); in TestCase()
/kernel/linux/linux-5.10/arch/powerpc/mm/nohash/
D8xx.c153 unsigned long boundary = strict_boundary ? sinittext : etext8; in mmu_mapin_ram() local
163 mmu_mapin_ram_chunk(0, boundary, PAGE_KERNEL_TEXT, true); in mmu_mapin_ram()
165 top = boundary; in mmu_mapin_ram()
167 mmu_mapin_ram_chunk(boundary, einittext8, PAGE_KERNEL_TEXT, true); in mmu_mapin_ram()
183 unsigned long boundary = strict_kernel_rwx_enabled() ? sinittext : etext8; in mmu_mark_initmem_nx() local
186 mmu_mapin_ram_chunk(0, boundary, PAGE_KERNEL_TEXT, false); in mmu_mark_initmem_nx()
187 mmu_mapin_ram_chunk(boundary, einittext8, PAGE_KERNEL, false); in mmu_mark_initmem_nx()
/kernel/linux/linux-5.10/mm/
Ddmapool.c48 size_t boundary; member
131 size_t size, size_t align, size_t boundary) in dma_pool_create() argument
150 if (!boundary) in dma_pool_create()
151 boundary = allocation; in dma_pool_create()
152 else if ((boundary < size) || (boundary & (boundary - 1))) in dma_pool_create()
166 retval->boundary = boundary; in dma_pool_create()
206 unsigned int next_boundary = pool->boundary; in pool_initialise_page()
212 next_boundary += pool->boundary; in pool_initialise_page()
/kernel/linux/linux-5.10/sound/core/
Dpcm_compat.c80 u32 boundary; member
90 snd_pcm_uframes_t boundary; in snd_pcm_ioctl_sw_params_compat() local
110 boundary = recalculate_boundary(substream->runtime); in snd_pcm_ioctl_sw_params_compat()
111 if (boundary && params.silence_size >= boundary) in snd_pcm_ioctl_sw_params_compat()
112 params.silence_size = substream->runtime->boundary; in snd_pcm_ioctl_sw_params_compat()
116 if (boundary && put_user(boundary, &src->boundary)) in snd_pcm_ioctl_sw_params_compat()
270 runtime->boundary = new_boundary; in snd_pcm_ioctl_hw_params_compat()
418 snd_pcm_uframes_t boundary; in snd_pcm_ioctl_sync_ptr_x32() local
435 boundary = recalculate_boundary(runtime); in snd_pcm_ioctl_sync_ptr_x32()
436 if (!boundary) in snd_pcm_ioctl_sync_ptr_x32()
[all …]
/kernel/linux/linux-5.10/arch/arm64/include/asm/
Dstage2_pgtable.h48 phys_addr_t boundary = (addr + stage2_pgdir_size(kvm)) & stage2_pgdir_mask(kvm); in stage2_pgd_addr_end() local
50 return (boundary - 1 < end - 1) ? boundary : end; in stage2_pgd_addr_end()
/kernel/liteos_m/utils/
Dlos_compiler.h384 #define ALIGN(addr, boundary) LOS_Align(addr, boundary) argument
413 static inline UINT32 LOS_Align(UINT32 addr, UINT32 boundary) in LOS_Align() argument
415 return (addr + (((addr + (boundary - 1)) > addr) ? (boundary - 1) : 0)) & ~(boundary - 1); in LOS_Align()
/kernel/uniproton/src/include/uapi/
Dprt_typedef.h51 #define ALIGN(addr, boundary) (((uintptr_t)(addr) + (boundary) - 1) & ~((uintptr_t)(boundary) - 1)) argument
/kernel/liteos_m/components/dynlink/
Dlos_dynlink.c292 STATIC INT32 OsReserveSpace(const DynLinkInfo *dlInfo, UINT32 *boundary) in OsReserveSpace() argument
311 if (*boundary == 0) { in OsReserveSpace()
312 *boundary = elfPhdrTemp->p_align; in OsReserveSpace()
327 …size = ELF_ALIGN_UP(addrMax, *boundary) - ELF_ALIGN_DOWN(addrMin, *boundary) + ELF_ALIGN_DOWN(offS… in OsReserveSpace()
332 STATIC UINTPTR OsDoLoadFile(INT32 fd, UINTPTR addr, const LD_ELF_PHDR *elfPhdr, UINT32 boundary) in OsDoLoadFile() argument
335 UINT32 offset = elfPhdr->p_offset - ELF_ALIGN_OFFSET(elfPhdr->p_vaddr, boundary); in OsDoLoadFile()
336 UINT32 size = elfPhdr->p_filesz + ELF_ALIGN_OFFSET(elfPhdr->p_vaddr, boundary); in OsDoLoadFile()
341 addr = ELF_ALIGN_DOWN(addr, boundary); in OsDoLoadFile()
350 STATIC INT32 OsLoadELFFile(DynSharedObj *dso, UINT32 boundary) in OsLoadELFFile() argument
369 loadAddr = OsDoLoadFile(dso->fd, (vAddr + loadBase), elfPhdrTemp, boundary); in OsLoadELFFile()
[all …]
/kernel/linux/linux-5.10/drivers/mtd/tests/
Dpagetest.c31 static unsigned char *boundary; variable
99 memcpy(boundary, writebuf + mtd->erasesize - pgsize, pgsize); in verify_eraseblock()
100 prandom_bytes_state(&rnd_state, boundary + pgsize, pgsize); in verify_eraseblock()
101 if (memcmp(twopages, boundary, bufsize)) { in verify_eraseblock()
368 boundary = kmalloc(bufsize, GFP_KERNEL); in mtd_pagetest_init()
369 if (!boundary) in mtd_pagetest_init()
442 kfree(boundary); in mtd_pagetest_init()
/kernel/liteos_a/kernel/include/
Dlos_base.h83 #define ALIGN(addr, boundary) LOS_Align(addr, boundary) argument
211 extern UINTPTR LOS_Align(UINTPTR addr, UINT32 boundary);
/kernel/linux/linux-5.10/include/sound/
Dpcm-indirect.h44 if (diff < -(snd_pcm_sframes_t) (runtime->boundary / 2)) in snd_pcm_indirect_playback_transfer()
45 diff += runtime->boundary; in snd_pcm_indirect_playback_transfer()
112 if (diff < -(snd_pcm_sframes_t) (runtime->boundary / 2)) in snd_pcm_indirect_capture_transfer()
113 diff += runtime->boundary; in snd_pcm_indirect_capture_transfer()
/kernel/liteos_m/kal/libc/musl/
Dmalloc.c87 void *memalign(size_t boundary, size_t size) in memalign() argument
93 return LOS_MemAllocAlign(OS_SYS_MEM_ADDR, size, boundary); in memalign()
/kernel/liteos_a/compat/posix/src/
Dmalloc.c109 void *memalign(size_t boundary, size_t size) in memalign() argument
115 return LOS_KernelMallocAlign((UINT32) size, (UINT32) boundary); in memalign()
/kernel/linux/linux-5.10/Documentation/filesystems/ext4/
Dverity.rst14 - Zero-padding to the next 65536-byte boundary. This padding need not
23 - Zero-padding to the next filesystem block boundary.
30 block boundary.
/kernel/linux/linux-5.10/drivers/mtd/nand/onenand/
Donenand_base.c303 unsigned boundary, blk, die = 0; in flexonenand_block() local
310 boundary = this->boundary[die]; in flexonenand_block()
313 if (blk > boundary) in flexonenand_block()
314 blk = (blk + boundary + 1) >> 1; in flexonenand_block()
337 int die = 0, boundary; in flexonenand_addr() local
345 boundary = this->boundary[die]; in flexonenand_addr()
347 if (block > (boundary + 1)) in flexonenand_addr()
348 ofs += (loff_t)(block - boundary - 1) << (this->erase_shift - 1); in flexonenand_addr()
1226 int ret = 0, boundary = 0; in onenand_read_ops_nolock() local
1277 boundary = 1; in onenand_read_ops_nolock()
[all …]
/kernel/linux/linux-5.10/arch/arm/plat-omap/
Dsram.c29 #define ROUND_DOWN(value,boundary) ((value) & (~((boundary)-1))) argument
/kernel/linux/linux-5.10/drivers/acpi/acpica/
Dacmacros.h201 #define ACPI_ROUND_DOWN(value, boundary) (((acpi_size)(value)) & \ argument
202 (~(((acpi_size) boundary)-1)))
204 #define ACPI_ROUND_UP(value, boundary) ((((acpi_size)(value)) + \ argument
205 (((acpi_size) boundary)-1)) & \
206 (~(((acpi_size) boundary)-1)))
225 #define ACPI_ROUND_UP_TO(value, boundary) (((value) + ((boundary)-1)) / (boundary)) argument
/kernel/linux/linux-5.10/sound/isa/gus/
Dgus_mem.c126 unsigned int idx, boundary; in snd_gf1_mem_find() local
141 while (pblock->ptr >= (boundary = info[idx].address + info[idx].size)) in snd_gf1_mem_find()
143 while (pblock->ptr + pblock->size >= (boundary = info[idx].address + info[idx].size)) in snd_gf1_mem_find()
145 ptr2 = boundary; in snd_gf1_mem_find()
149 if (pblock->next->ptr < boundary) in snd_gf1_mem_find()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn30/
DMakefile59 CFLAGS_$(AMDDALPATH)/dc/dcn30/dcn30_resource.o += -mpreferred-stack-boundary=4
60 CFLAGS_$(AMDDALPATH)/dc/dcn30/dcn30_optc.o += -mpreferred-stack-boundary=4

123456789