Home
last modified time | relevance | path

Searched refs:rounddown (Results 1 – 25 of 89) sorted by relevance

1234

/OK3568_Linux_fs/kernel/security/selinux/ss/
H A Debitmap.c485 if (rounddown(bit, (int)BITS_PER_U64) > last_startbit) { in ebitmap_write()
487 last_startbit = rounddown(bit, BITS_PER_U64); in ebitmap_write()
501 if (rounddown(bit, (int)BITS_PER_U64) > last_startbit) { in ebitmap_write()
506 last_startbit = rounddown(bit, BITS_PER_U64); in ebitmap_write()
524 last_startbit = rounddown(bit, BITS_PER_U64); in ebitmap_write()
/OK3568_Linux_fs/u-boot/arch/arm/mach-omap2/
H A Dsec-common.c115 rounddown((u32)*image, ARCH_DMA_MINALIGN), in secure_boot_verify_image()
154 rounddown((u32)*image, ARCH_DMA_MINALIGN), in secure_boot_verify_image()
337 rounddown((u32)loadptr, ARCH_DMA_MINALIGN), in secure_tee_install()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/core/
H A Dmm.c135 e = rounddown(e, mm->block_size); in nvkm_mm_head()
209 e = rounddown(e, mm->block_size); in nvkm_mm_tail()
271 node->length = rounddown(offset + length, mm->block_size); in nvkm_mm_init()
/OK3568_Linux_fs/kernel/arch/um/kernel/
H A Dmaccess.c12 void *psrc = (void *)rounddown((unsigned long)src, PAGE_SIZE); in copy_from_kernel_nofault_allowed()
/OK3568_Linux_fs/u-boot/common/init/
H A Dboard_init.c53 top = rounddown(top-sizeof(struct global_data), 16); in board_init_f_alloc_reserve()
/OK3568_Linux_fs/u-boot/drivers/misc/
H A Drockchip-otp.c198 addr_start = rounddown(offset, RK3308BS_NBYTES) / RK3308BS_NBYTES; in rockchip_rk3308bs_otp_read()
240 addr_start = rounddown(offset, RK3568_NBYTES) / RK3568_NBYTES; in rockchip_rk3568_otp_read()
296 addr_start = rounddown(offset, RK3588_NBYTES) / RK3588_NBYTES; in rockchip_rk3588_otp_read()
H A Drockchip-efuse.c148 addr_start = rounddown(offset, RK1808_NBYTES) / RK1808_NBYTES; in rockchip_rk1808_efuse_read()
382 addr_start = rounddown(offset, RK3399_BYTES_PER_FUSE) / in rockchip_rk3328_efuse_read()
/OK3568_Linux_fs/kernel/drivers/staging/comedi/drivers/
H A Dcomedi_test.c318 rounddown(UINT_MAX, (unsigned int)NSEC_PER_USEC)); in waveform_ai_cmdtest()
323 limit = rounddown(limit, (unsigned int)NSEC_PER_SEC); in waveform_ai_cmdtest()
333 rounddown(UINT_MAX, (unsigned int)NSEC_PER_USEC)); in waveform_ai_cmdtest()
574 arg = min(arg, rounddown(UINT_MAX, (unsigned int)NSEC_PER_USEC)); in waveform_ao_cmdtest()
/OK3568_Linux_fs/kernel/drivers/media/platform/xilinx/
H A Dxilinx-dma.c564 max_width = rounddown(XVIP_DMA_MAX_WIDTH, align); in __xvip_dma_try_format()
565 width = rounddown(pix->width * info->bpp, align); in __xvip_dma_try_format()
576 max_bpl = rounddown(XVIP_DMA_MAX_WIDTH, dma->align); in __xvip_dma_try_format()
577 bpl = rounddown(pix->bytesperline, dma->align); in __xvip_dma_try_format()
/OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/pci/
H A Datomisp_subdev.c395 r->width = rounddown(r->width, ATOM_ISP_STEP_WIDTH); in atomisp_subdev_set_selection()
396 r->height = rounddown(r->height, ATOM_ISP_STEP_HEIGHT); in atomisp_subdev_set_selection()
464 dvs_w = rounddown(crop[pad]->width / 5, in atomisp_subdev_set_selection()
466 dvs_h = rounddown(crop[pad]->height / 5, in atomisp_subdev_set_selection()
525 rounddown(crop[ATOMISP_SUBDEV_PAD_SINK]-> in atomisp_subdev_set_selection()
533 rounddown(crop[ATOMISP_SUBDEV_PAD_SINK]-> in atomisp_subdev_set_selection()
/OK3568_Linux_fs/kernel/drivers/tty/vt/
H A Dselection.c262 new_sel_start = rounddown(ps, vc->vc_size_row); in vc_do_selection()
263 new_sel_end = rounddown(pe, vc->vc_size_row) + in vc_do_selection()
/OK3568_Linux_fs/kernel/drivers/nvmem/
H A Drockchip-efuse.c160 addr_start = rounddown(offset, RK1808_NBYTES) / RK1808_NBYTES; in rockchip_rk1808_efuse_read()
345 addr_start = rounddown(offset, RK3399_NBYTES) / RK3399_NBYTES; in rockchip_rk3328_efuse_read()
443 addr_start = rounddown(offset, RK3399_NBYTES) / RK3399_NBYTES; in rockchip_rk3399_efuse_read()
H A Drockchip-otp.c394 addr_start = rounddown(offset, PX30S_NBYTES) / PX30S_NBYTES; in px30s_otp_read()
440 addr_start = rounddown(offset, RK3568_NBYTES) / RK3568_NBYTES; in rk3568_otp_read()
533 addr_start = rounddown(offset, RK3588_NBYTES) / RK3588_NBYTES; in rk3588_otp_read()
H A Dstm32-romem.c78 roffset = rounddown(offset, 4); in stm32_bsec_read()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/
H A Di915_scatterlist.h117 size = rounddown(size, PAGE_SIZE); in i915_sg_segment_size()
/OK3568_Linux_fs/kernel/crypto/
H A Dcts.c167 offset = rounddown(nbytes - 1, bsize); in crypto_cts_encrypt()
267 offset = rounddown(nbytes - 1, bsize); in crypto_cts_decrypt()
/OK3568_Linux_fs/kernel/drivers/gpio/
H A Dgpio-menz127.c58 debounce = rounddown(debounce, MEN_Z127_DB_MIN_US); in men_z127_debounce()
/OK3568_Linux_fs/kernel/fs/proc/
H A Dvmcore.c1106 start = rounddown(paddr, PAGE_SIZE); in process_ptload_program_headers_elf64()
1149 start = rounddown(paddr, PAGE_SIZE); in process_ptload_program_headers_elf32()
1394 start = rounddown(phdr->p_offset, PAGE_SIZE); in vmcoredd_update_program_headers()
1414 start = rounddown(phdr->p_offset, PAGE_SIZE); in vmcoredd_update_program_headers()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_doorbell.c74 rounddown(kfd->shared_resources.doorbell_aperture_size, in kfd_doorbell_init()
/OK3568_Linux_fs/kernel/drivers/firmware/efi/
H A Dearlycon.c238 efi_y = rounddown(yres, font->height) - font->height; in efi_earlycon_setup()
/OK3568_Linux_fs/kernel/drivers/iio/buffer/
H A Dindustrialio-buffer-dmaengine.c70 block->bytes_used = rounddown(block->bytes_used, in iio_dmaengine_buffer_submit_block()
/OK3568_Linux_fs/kernel/lib/
H A Dtest_hexdump.c217 test_hexdump_overflow(buflen, rounddown(len, gs), rs, gs, ascii); in test_hexdump_overflow_set()
/OK3568_Linux_fs/kernel/drivers/iio/adc/
H A Dti_am335x_adc.c264 dma->fifo_thresh = rounddown(FIFO1_THRESHOLD + 1, in tiadc_start_dma()
267 dma->period_size = rounddown(DMA_BUFFER_SIZE / 2, in tiadc_start_dma()
/OK3568_Linux_fs/kernel/drivers/staging/media/ipu3/
H A Dipu3-css-params.c577 rounddown(stripe_offset_out_y, in imgu_css_osys_calc_frame_and_stripe_params()
616 chunk_floor_y = rounddown(stripe_offset_inp_y, in imgu_css_osys_calc_frame_and_stripe_params()
619 rounddown(stripe_offset_inp_uv, in imgu_css_osys_calc_frame_and_stripe_params()
672 rounddown(stripe_offset_inp_y, in imgu_css_osys_calc_frame_and_stripe_params()
675 rounddown(stripe_offset_inp_uv, in imgu_css_osys_calc_frame_and_stripe_params()
696 next_offset = rounddown(next_offset, 64); in imgu_css_osys_calc_frame_and_stripe_params()
765 rounddown(stripe_output_width_y, in imgu_css_osys_calc_frame_and_stripe_params()
1199 rounddown(css_pipe->rect[IPU3_CSS_RECT_GDC].width - in imgu_css_osys_calc()
/OK3568_Linux_fs/kernel/sound/firewire/tascam/
H A Dtascam-hwdep.c73 length = rounddown(remained, sizeof(*entries)); in tscm_hwdep_read_queue()

1234