Home
last modified time | relevance | path

Searched refs:roundup (Results 1 – 25 of 366) sorted by relevance

12345678910>>...15

/OK3568_Linux_fs/u-boot/arch/arm/mach-omap2/
H A Dsec-common.c85 roundup(sizeof(secure_rom_call_args), ARCH_DMA_MINALIGN)); in secure_rom_call()
116 roundup((u32)*image + *size, ARCH_DMA_MINALIGN)); in secure_boot_verify_image()
155 roundup((u32)*image + *size, ARCH_DMA_MINALIGN)); in secure_boot_verify_image()
338 roundup((u32)loadptr + tee_file_size, ARCH_DMA_MINALIGN)); in secure_tee_install()
341 roundup(sizeof(tee_info), ARCH_DMA_MINALIGN)); in secure_tee_install()
360 roundup(sizeof(u32), ARCH_DMA_MINALIGN)); in secure_tee_install()
/OK3568_Linux_fs/kernel/arch/sh/kernel/cpu/shmobile/
H A Dpm.c105 vp += roundup(n, 4); in sh_mobile_register_self_refresh()
111 vp += roundup(n, 4); in sh_mobile_register_self_refresh()
117 vp += roundup(n, 4); in sh_mobile_register_self_refresh()
/OK3568_Linux_fs/u-boot/drivers/crypto/fsl/
H A Dfsl_blob.c92 size = roundup(sizeof(uint32_t) * DEK_BLOB_DESCSIZE, in blob_dek()
96 size = roundup(sizeof(uint8_t) * out_sz, ARCH_DMA_MINALIGN); in blob_dek()
108 size = roundup(out_sz, ARCH_DMA_MINALIGN); in blob_dek()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/chelsio/inline_crypto/chtls/
H A Dchtls_hw.c49 wrlen = roundup(sizeof(*req) + sizeof(*sc), 16); in __set_tcb_field()
71 wrlen = roundup(sizeof(*req) + sizeof(*sc), 16); in chtls_set_tcb_field()
99 wrlen = roundup(wrlen, 16); in chtls_set_tcb_field_rpl_skb()
142 wrlen = roundup(wrlen, 16); in chtls_set_quiesce_ctrl()
263 roundup(keylen, 16) + AEAD_H_SIZE; in chtls_key_info()
373 klen = roundup((keylen + AEAD_H_SIZE) + sizeof(*kctx), 32); in chtls_setkey()
374 wrlen = roundup(sizeof(*kwr), 16); in chtls_setkey()
/OK3568_Linux_fs/kernel/arch/parisc/math-emu/
H A Dsfrem.c43 register boolean roundup = FALSE; in sgl_frem() local
217 roundup = TRUE; in sgl_frem()
238 else if (Sgl_isequal(opnd1,opnd2) && roundup) { in sgl_frem()
H A Ddfrem.c44 register boolean roundup = FALSE; in dbl_frem() local
222 roundup = TRUE; in dbl_frem()
244 else if (Dbl_isequal(opnd1p1,opnd1p2,opnd2p1,opnd2p2) && roundup) { in dbl_frem()
/OK3568_Linux_fs/kernel/arch/sh/kernel/
H A Dio_trapped.c57 len += roundup(resource_size(res), PAGE_SIZE); in register_trapped_io()
84 len += roundup(resource_size(res), PAGE_SIZE); in register_trapped_io()
127 voffs += roundup(len, PAGE_SIZE); in match_trapped_io_handler()
175 len = roundup(resource_size(res), PAGE_SIZE); in lookup_address()
/OK3568_Linux_fs/kernel/arch/powerpc/platforms/cell/spufs/
H A Dcoredump.c37 total += roundup(strlen(fullname) + 1, 4); in spufs_ctx_note_size()
38 total += roundup(sz, 4); in spufs_ctx_note_size()
152 if (!dump_skip(cprm, roundup(cprm->pos - ret + sz, 4) - cprm->pos)) in spufs_arch_write_note()
/OK3568_Linux_fs/kernel/tools/perf/pmu-events/
H A Djson.h30 #ifndef roundup
31 #define roundup(x, y) ( \ macro
/OK3568_Linux_fs/kernel/drivers/cpufreq/
H A Draspberrypi-cpufreq.c43 min = roundup(clk_round_rate(clk, 0), RASPBERRYPI_FREQ_INTERVAL); in raspberrypi_cpufreq_probe()
44 max = roundup(clk_round_rate(clk, ULONG_MAX), RASPBERRYPI_FREQ_INTERVAL); in raspberrypi_cpufreq_probe()
/OK3568_Linux_fs/kernel/fs/proc/
H A Dvmcore.c847 *notes_sz = roundup(phdr_sz, PAGE_SIZE); in merge_note_headers_elf64()
861 phdr.p_offset = roundup(note_off, PAGE_SIZE); in merge_note_headers_elf64()
876 *elfsz = roundup(*elfsz, PAGE_SIZE); in merge_note_headers_elf64()
1038 *notes_sz = roundup(phdr_sz, PAGE_SIZE); in merge_note_headers_elf32()
1052 phdr.p_offset = roundup(note_off, PAGE_SIZE); in merge_note_headers_elf32()
1067 *elfsz = roundup(*elfsz, PAGE_SIZE); in merge_note_headers_elf32()
1107 end = roundup(paddr + phdr_ptr->p_memsz, PAGE_SIZE); in process_ptload_program_headers_elf64()
1150 end = roundup(paddr + phdr_ptr->p_memsz, PAGE_SIZE); in process_ptload_program_headers_elf32()
1395 end = roundup(phdr->p_offset + phdr->p_memsz, in vmcoredd_update_program_headers()
1415 end = roundup(phdr->p_offset + phdr->p_memsz, in vmcoredd_update_program_headers()
[all …]
/OK3568_Linux_fs/u-boot/arch/arm/cpu/armv8/fsl-layerscape/
H A Dppa.c91 fitp = malloc(roundup(fdt_header_len, 512)); in ppa_init()
94 roundup(fdt_header_len, 512)); in ppa_init()
140 fw_length = roundup(fw_length, 512); in ppa_init()
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/sys/
H A Dparam.h93 # define roundup(x, y) (__builtin_constant_p (y) && powerof2 (y) \ macro
97 # define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y)) macro
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/sys/
H A Dparam.h93 # define roundup(x, y) (__builtin_constant_p (y) && powerof2 (y) \ macro
97 # define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y)) macro
/OK3568_Linux_fs/u-boot/drivers/net/
H A Dfec_mxc.c298 size = roundup(dsize, ARCH_DMA_MINALIGN); in fec_rbd_init()
331 unsigned size = roundup(2 * sizeof(struct fec_bd), in fec_tbd_init()
444 size = roundup(FEC_RBD_NUM * sizeof(struct fec_bd), in fec_open()
680 end = roundup(addr + length, ARCH_DMA_MINALIGN); in fecmxc_send()
704 size = roundup(2 * sizeof(struct fec_bd), ARCH_DMA_MINALIGN); in fecmxc_send()
863 size = roundup(sizeof(struct fec_bd), ARCH_DMA_MINALIGN); in fecmxc_recv()
876 end = roundup(addr + frame_length, ARCH_DMA_MINALIGN); in fecmxc_recv()
931 size = roundup(2 * sizeof(struct fec_bd), ARCH_DMA_MINALIGN); in fec_alloc_descs()
937 size = roundup(FEC_RBD_NUM * sizeof(struct fec_bd), ARCH_DMA_MINALIGN); in fec_alloc_descs()
947 size = roundup(FEC_MAX_PKT_SIZE, FEC_DMA_RX_MINALIGN); in fec_alloc_descs()
H A Dsun8i_emac.c506 roundup(sizeof(*desc_p), ARCH_DMA_MINALIGN); in _sun8i_eth_recv()
529 roundup(data_end, in _sun8i_eth_recv()
552 roundup(sizeof(*desc_p), ARCH_DMA_MINALIGN); in _sun8i_emac_eth_send()
556 roundup(len, ARCH_DMA_MINALIGN); in _sun8i_emac_eth_send()
703 roundup(sizeof(u32), ARCH_DMA_MINALIGN); in _sun8i_free_pkt()
H A Ddesignware.c353 roundup(sizeof(*desc_p), ARCH_DMA_MINALIGN); in _dw_eth_send()
355 ulong data_end = data_start + roundup(length, ARCH_DMA_MINALIGN); in _dw_eth_send()
414 roundup(sizeof(*desc_p), ARCH_DMA_MINALIGN); in _dw_eth_recv()
430 data_end = data_start + roundup(length, ARCH_DMA_MINALIGN); in _dw_eth_recv()
444 roundup(sizeof(*desc_p), ARCH_DMA_MINALIGN); in _dw_free_pkt()
/OK3568_Linux_fs/kernel/drivers/pinctrl/pxa/
H A Dpinctrl-pxa2xx.c388 pctl->base_gafr = devm_kcalloc(&pdev->dev, roundup(maxpin, 16), in pxa2xx_pinctrl_init()
390 pctl->base_gpdr = devm_kcalloc(&pdev->dev, roundup(maxpin, 32), in pxa2xx_pinctrl_init()
392 pctl->base_pgsr = devm_kcalloc(&pdev->dev, roundup(maxpin, 32), in pxa2xx_pinctrl_init()
405 for (i = 0; i < roundup(maxpin, 16); i += 16) in pxa2xx_pinctrl_init()
407 for (i = 0; i < roundup(maxpin, 32); i += 32) { in pxa2xx_pinctrl_init()
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/cxgb4/
H A Dresource.c271 rdev->stats.pbl.cur += roundup(size, 1 << MIN_PBL_SHIFT); in c4iw_pblpool_alloc()
294 rdev->stats.pbl.cur -= roundup(size, 1 << MIN_PBL_SHIFT); in c4iw_pblpool_free()
353 rdev->stats.rqt.cur += roundup(size << 6, 1 << MIN_RQT_SHIFT); in c4iw_rqtpool_alloc()
376 rdev->stats.rqt.cur -= roundup(size << 6, 1 << MIN_RQT_SHIFT); in c4iw_rqtpool_free()
464 rdev->stats.ocqp.cur += roundup(size, 1 << MIN_OCQP_SHIFT); in c4iw_ocqp_pool_alloc()
476 rdev->stats.ocqp.cur -= roundup(size, 1 << MIN_OCQP_SHIFT); in c4iw_ocqp_pool_free()
/OK3568_Linux_fs/u-boot/arch/arm/mach-bcm283x/
H A Dmbox.c116 roundup(buffer->buf_size, ARCH_DMA_MINALIGN))); in bcm2835_mbox_call_prop()
126 roundup(buffer->buf_size, ARCH_DMA_MINALIGN))); in bcm2835_mbox_call_prop()
/OK3568_Linux_fs/kernel/tools/include/linux/
H A Dkernel.h55 #ifndef roundup
56 #define roundup(x, y) ( \ macro
/OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/csf/
H A Dmali_kbase_csf_firmware_core_dump.c303 return sizeof(struct elf32_note) + roundup(strlen(name) + 1, 4) + in fw_core_dump_get_prstatus_note_size()
360 note_sz = sizeof(struct elf32_note) + roundup(note_name_sz, 4) + in fw_core_dump_create_prstatus_note()
371 memcpy((char *)(note + 1) + roundup(note_name_sz, 4), prs, sizeof(*prs)); in fw_core_dump_create_prstatus_note()
446 padding_size = roundup(elf_memory_sections_data_offset, ELF_EXEC_PAGESIZE) - in fw_core_dump_write_elf_header()
/OK3568_Linux_fs/u-boot/drivers/usb/gadget/
H A Dci_udc.c42 #define ILIST_ALIGN roundup(ARCH_DMA_MINALIGN, 32)
49 #define ILIST_ENT_SZ roundup(ILIST_ENT_RAW_SZ, ILIST_ALIGN)
383 ci_req->b_len = roundup(req->length, ARCH_DMA_MINALIGN); in ci_bounce()
396 aligned_used_len = roundup(req->length, ARCH_DMA_MINALIGN); in ci_bounce()
412 aligned_used_len = roundup(req->actual, ARCH_DMA_MINALIGN); in ci_debounce()
920 const int eplist_align = roundup(eplist_min_align, ARCH_DMA_MINALIGN); in ci_udc_probe()
922 const int eplist_sz = roundup(eplist_raw_sz, ARCH_DMA_MINALIGN); in ci_udc_probe()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/stm/
H A Ddrv.c48 args->pitch = roundup(min_pitch, 128); in stm_gem_cma_dumb_create()
49 args->height = roundup(args->height, 4); in stm_gem_cma_dumb_create()
/OK3568_Linux_fs/kernel/arch/powerpc/platforms/pseries/
H A Dvio.c487 if (vio_cmo_alloc(viodev, roundup(size, PAGE_SIZE))) { in vio_dma_iommu_alloc_coherent()
496 vio_cmo_dealloc(viodev, roundup(size, PAGE_SIZE)); in vio_dma_iommu_alloc_coherent()
510 vio_cmo_dealloc(viodev, roundup(size, PAGE_SIZE)); in vio_dma_iommu_free_coherent()
522 if (vio_cmo_alloc(viodev, roundup(size, IOMMU_PAGE_SIZE(tbl)))) in vio_dma_iommu_map_page()
531 vio_cmo_dealloc(viodev, roundup(size, IOMMU_PAGE_SIZE(tbl))); in vio_dma_iommu_map_page()
546 vio_cmo_dealloc(viodev, roundup(size, IOMMU_PAGE_SIZE(tbl))); in vio_dma_iommu_unmap_page()
560 alloc_size += roundup(sgl->length, IOMMU_PAGE_SIZE(tbl)); in vio_dma_iommu_map_sg()
570 alloc_size -= roundup(sgl->dma_length, IOMMU_PAGE_SIZE(tbl)); in vio_dma_iommu_map_sg()
594 alloc_size += roundup(sgl->dma_length, IOMMU_PAGE_SIZE(tbl)); in vio_dma_iommu_unmap_sg()

12345678910>>...15