Home
last modified time | relevance | path

Searched refs:boundary (Results 1 - 25 of 157) sorted by relevance

1234567

/kernel/linux/linux-5.10/include/media/
H A Dv4l2-rect.h54 * v4l2_rect_map_inside()- r should be inside boundary.
56 * @boundary: rect containing the boundary for @r
59 const struct v4l2_rect *boundary) in v4l2_rect_map_inside()
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 in v4l2_rect_map_inside()
58 v4l2_rect_map_inside(struct v4l2_rect *r, const struct v4l2_rect *boundary) v4l2_rect_map_inside() argument
[all...]
/kernel/linux/linux-6.6/include/media/
H A Dv4l2-rect.h54 * v4l2_rect_map_inside()- r should be inside boundary.
56 * @boundary: rect containing the boundary for @r
59 const struct v4l2_rect *boundary) in v4l2_rect_map_inside()
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 in v4l2_rect_map_inside()
58 v4l2_rect_map_inside(struct v4l2_rect *r, const struct v4l2_rect *boundary) v4l2_rect_map_inside() argument
[all...]
/kernel/linux/linux-5.10/kernel/
H A Dstackleak.c53 /* It would be nice not to have 'kstack_ptr' and 'boundary' on stack */ in stackleak_erase()
55 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()
89 * 'kstack_ptr' and move up till the new 'boundary'. We assume that 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()
[all...]
/kernel/liteos_a/kernel/base/misc/
H A 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/linux/linux-6.6/mm/
H A Ddmapool_test.c19 size_t boundary; member
23 { .size = 16, .align = 16, .boundary = 0 },
24 { .size = 64, .align = 64, .boundary = 0 },
25 { .size = 256, .align = 256, .boundary = 0 },
26 { .size = 1024, .align = 1024, .boundary = 0 },
27 { .size = 4096, .align = 4096, .boundary = 0 },
28 { .size = 68, .align = 32, .boundary = 4096 },
74 parms->align, parms->boundary); in dmapool_test_block()
H A Ddmapool.c58 unsigned int boundary; member
207 * @boundary: returned blocks won't cross this power of two boundary
216 * If @boundary is nonzero, objects returned from dma_pool_alloc() won't
217 * cross that size boundary. This is useful for devices which have
225 size_t size, size_t align, size_t boundary) in dma_pool_create()
247 if (!boundary) in dma_pool_create()
248 boundary = allocation; in dma_pool_create()
249 else if ((boundary < size) || (boundary in dma_pool_create()
224 dma_pool_create(const char *name, struct device *dev, size_t size, size_t align, size_t boundary) dma_pool_create() argument
[all...]
/kernel/linux/linux-5.10/drivers/gpio/
H A 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()
199 unsigned long boundary; idi_48_irq_handler() local
[all...]
/kernel/liteos_m/testsuites/sample/kernel/lms/
H A DIt_los_lms_003.c37 UINT32 boundary; in TestCase() local
41 for (i = 2; i < 8; i++) { /* boundary loop from 2 to 8 */ in TestCase()
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()
H A DIt_los_lms_002.c37 UINT32 boundary; in TestCase() local
41 for (i = 2; i < 8; i++) { /* boundary loop from 2 to 8 */ in TestCase()
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()
H A DIt_los_lms_004.c43 UINT32 boundary; in TestCase() local
47 for (i = 2; i < 8; i++, index++) { /* boundary loop from 2 to 8 */ in TestCase()
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/sound/core/
H A Dpcm_compat.c80 u32 boundary; member
90 snd_pcm_uframes_t boundary; in snd_pcm_ioctl_sw_params_compat() local
107 * Check silent_size parameter. Since we have 64bit boundary, in snd_pcm_ioctl_sw_params_compat()
108 * silence_size must be compared with the 32bit boundary. in snd_pcm_ioctl_sw_params_compat()
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, in snd_pcm_ioctl_sw_params_compat()
422 snd_pcm_uframes_t boundary; snd_pcm_ioctl_sync_ptr_x32() local
[all...]
/kernel/linux/linux-6.6/sound/core/
H A Dpcm_compat.c80 u32 boundary; member
90 snd_pcm_uframes_t boundary; in snd_pcm_ioctl_sw_params_compat() local
107 * Check silent_size parameter. Since we have 64bit boundary, in snd_pcm_ioctl_sw_params_compat()
108 * silence_size must be compared with the 32bit boundary. in snd_pcm_ioctl_sw_params_compat()
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, in snd_pcm_ioctl_sw_params_compat()
424 snd_pcm_uframes_t boundary; snd_pcm_ioctl_sync_ptr_x32() local
[all...]
/kernel/linux/linux-5.10/arch/powerpc/mm/nohash/
H A 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/arch/arm64/include/asm/
H A 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/uniproton/src/include/uapi/
H A Dprt_typedef.h51 #define ALIGN(addr, boundary) (((uintptr_t)(addr) + (boundary) - 1) & ~((uintptr_t)(boundary) - 1))
/kernel/liteos_m/components/dynlink/
H A 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(offStart, *boundary); 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 OsLoadELFFile(DynSharedObj *dso, UINT32 boundary) OsLoadELFFile() argument
387 UINT32 boundary = 0; OsLoadLibrary() local
[all...]
/kernel/linux/linux-5.10/mm/
H A Ddmapool.c48 size_t boundary; member
113 * @boundary: returned blocks won't cross this power of two boundary
122 * If @boundary is nonzero, objects returned from dma_pool_alloc() won't
123 * cross that size boundary. This is useful for devices which have
131 size_t size, size_t align, size_t boundary) in dma_pool_create()
150 if (!boundary) in dma_pool_create()
151 boundary = allocation; in dma_pool_create()
152 else if ((boundary < size) || (boundary in dma_pool_create()
130 dma_pool_create(const char *name, struct device *dev, size_t size, size_t align, size_t boundary) dma_pool_create() argument
[all...]
/kernel/linux/linux-6.6/arch/powerpc/mm/nohash/
H A D8xx.c144 unsigned long boundary = strict_boundary ? sinittext : etext8; in mmu_mapin_ram() local
151 mmu_mapin_ram_chunk(0, boundary, PAGE_KERNEL_TEXT, true); in mmu_mapin_ram()
153 top = boundary; in mmu_mapin_ram()
155 mmu_mapin_ram_chunk(boundary, einittext8, PAGE_KERNEL_TEXT, true); in mmu_mapin_ram()
171 unsigned long boundary = strict_kernel_rwx_enabled() ? sinittext : etext8; in mmu_mark_initmem_nx() local
175 mmu_mapin_ram_chunk(boundary, einittext8, PAGE_KERNEL, false); in mmu_mark_initmem_nx()
H A De500.c169 unsigned long boundary; in map_mem_in_cams_addr() local
172 boundary = (unsigned long)(_sinittext - _stext); in map_mem_in_cams_addr()
174 boundary = ram; in map_mem_in_cams_addr()
177 for (i = 0; boundary && i < max_cam_idx; i++) { in map_mem_in_cams_addr()
181 cam_sz = calc_cam_sz(boundary, virt, phys); in map_mem_in_cams_addr()
185 boundary -= cam_sz; in map_mem_in_cams_addr()
/kernel/liteos_m/utils/
H A Dlos_compiler.h381 * with boundary bytes being the smallest unit of alignment.
384 #define ALIGN(addr, boundary) LOS_Align(addr, boundary)
395 * @brief Align the value (addr) by some bytes (boundary) you specify.
398 * This API is used to align the value (addr) by some bytes (boundary) you specify.
402 * <li>the value of boundary usually is 4,8,16,32.</li>
406 * @param boundary [IN] The align size what you want to align.
413 static inline UINT32 LOS_Align(UINT32 addr, UINT32 boundary) in LOS_Align() argument
415 return (addr + (((addr + (boundary - 1)) > addr) ? (boundary in LOS_Align()
[all...]
/kernel/liteos_m/kal/posix/src/
H A Dmalloc.c118 void *__wrap__memalign_r(struct _reent *reent, size_t boundary, size_t size) in __wrap__memalign_r() argument
120 void *memalign(size_t boundary, size_t size) in __wrap__memalign_r()
130 return LOS_MemAllocAlign(OS_SYS_MEM_ADDR, size, boundary); in __wrap__memalign_r()
/kernel/liteos_a/kernel/include/
H A Dlos_base.h79 * Align the beginning of the object with the base address addr, with boundary bytes being the smallest unit of
83 #define ALIGN(addr, boundary) LOS_Align(addr, boundary)
193 * @brief Align the value (addr) by some bytes (boundary) you specify.
196 * This API is used to align the value (addr) by some bytes (boundary) you specify.
200 * <li>the value of boundary usually is 4,8,16,32.</li>
204 * @param boundary [IN] The align size what you want to align.
211 extern UINTPTR LOS_Align(UINTPTR addr, UINT32 boundary);
/kernel/linux/linux-5.10/include/sound/
H A 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/linux/linux-6.6/include/sound/
H A 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()
117 if (diff < -(snd_pcm_sframes_t) (runtime->boundary / 2)) in snd_pcm_indirect_capture_transfer()
118 diff += runtime->boundary; in snd_pcm_indirect_capture_transfer()
/kernel/linux/linux-5.10/drivers/mtd/tests/
H A Dpagetest.c31 static unsigned char *boundary; variable
84 /* Check boundary between eraseblocks */ in verify_eraseblock()
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()

Completed in 11 milliseconds

1234567