Home
last modified time | relevance | path

Searched refs:round_up (Results 1 – 25 of 75) sorted by relevance

123

/drivers/firmware/efi/libstub/
Drandom.c51 start = round_up(md->phys_addr, align); in get_entry_num_slots()
122 target = round_up(md->phys_addr, align) + target_slot * align; in efi_random_alloc()
123 pages = round_up(size, EFI_PAGE_SIZE) / EFI_PAGE_SIZE; in efi_random_alloc()
Defi-stub-helper.c172 nr_pages = round_up(size, EFI_ALLOC_ALIGN) / EFI_PAGE_SIZE; in efi_high_alloc()
257 nr_pages = round_up(size, EFI_ALLOC_ALIGN) / EFI_PAGE_SIZE; in efi_low_alloc()
282 start = round_up(start, align); in efi_low_alloc()
311 nr_pages = round_up(size, EFI_ALLOC_ALIGN) / EFI_PAGE_SIZE; in efi_free()
584 nr_pages = round_up(alloc_size, EFI_ALLOC_ALIGN) / EFI_PAGE_SIZE; in efi_relocate_kernel()
Darm64-stub.c95 *reserve_size = round_up(kernel_memsize, EFI_ALLOC_ALIGN); in handle_kernel_image()
Darm-stub.c405 efi_virt_base = round_up(efi_virt_base, SZ_2M); in efi_get_virtmap()
407 efi_virt_base = round_up(efi_virt_base, SZ_64K); in efi_get_virtmap()
/drivers/net/wireless/mediatek/mt7601u/
Ddma.h82 MT76_SET(MT_TXD_INFO_LEN, round_up(skb->len, 4)) | in mt7601u_dma_skb_wrap()
87 return skb_put_padto(skb, round_up(skb->len, 4) + 4); in mt7601u_dma_skb_wrap()
/drivers/staging/rtl8192e/rtl8192e/
Dr8192E_firmware.c115 if (round_up(fw->size, 4) > MAX_FW_SIZE - padding) { in _rtl92e_fw_prepare()
128 blob->size = round_up(fw->size, 4) + padding; in _rtl92e_fw_prepare()
/drivers/media/platform/s5p-tv/
Dmixer_vp_layer.c176 src->width = clamp(src->width, round_up(dst->width / 16, 4), in mxr_vp_fix_geometry()
178 src->height = clamp(src->height, round_up(dst->height / 16, 4), in mxr_vp_fix_geometry()
Dmixer_grp_layer.c171 dst->width = round_up(dst->width, 2); in mxr_graph_fix_geometry()
172 dst->height = round_up(dst->height, 2); in mxr_graph_fix_geometry()
/drivers/gpu/drm/radeon/
Dr600_cs.c651 nbx = round_up(nbx, 16 * 8); in r600_cs_track_validate_db()
653 nby = round_up(nby, track->npipes * 8); in r600_cs_track_validate_db()
662 nbx = round_up(nbx, 64 * 8); in r600_cs_track_validate_db()
663 nby = round_up(nby, 64 * 8); in r600_cs_track_validate_db()
667 nbx = round_up(nbx, 64 * 8); in r600_cs_track_validate_db()
668 nby = round_up(nby, 32 * 8); in r600_cs_track_validate_db()
672 nbx = round_up(nbx, 32 * 8); in r600_cs_track_validate_db()
673 nby = round_up(nby, 32 * 8); in r600_cs_track_validate_db()
677 nbx = round_up(nbx, 32 * 8); in r600_cs_track_validate_db()
678 nby = round_up(nby, 16 * 8); in r600_cs_track_validate_db()
[all …]
Devergreen_cs.c509 nbx = round_up(nbx, 16 * 8); in evergreen_cs_track_validate_htile()
511 nby = round_up(nby, track->npipes * 8); in evergreen_cs_track_validate_htile()
520 nbx = round_up(nbx, 64 * 8); in evergreen_cs_track_validate_htile()
521 nby = round_up(nby, 64 * 8); in evergreen_cs_track_validate_htile()
525 nbx = round_up(nbx, 64 * 8); in evergreen_cs_track_validate_htile()
526 nby = round_up(nby, 32 * 8); in evergreen_cs_track_validate_htile()
530 nbx = round_up(nbx, 32 * 8); in evergreen_cs_track_validate_htile()
531 nby = round_up(nby, 32 * 8); in evergreen_cs_track_validate_htile()
535 nbx = round_up(nbx, 32 * 8); in evergreen_cs_track_validate_htile()
536 nby = round_up(nby, 16 * 8); in evergreen_cs_track_validate_htile()
/drivers/media/platform/coda/
Dcoda-bit.c357 width = round_up(q_data->width, 16); in coda_alloc_framebuffers()
358 height = round_up(q_data->height, 16); in coda_alloc_framebuffers()
360 width = round_up(q_data->width, 8); in coda_alloc_framebuffers()
371 size = round_up(ysize, 4096) + ysize / 2; in coda_alloc_framebuffers()
396 cb = round_up(cb, 4096); in coda_alloc_framebuffers()
530 size = round_up(size, 1024); in coda_iram_alloc()
583 iram_info->search_ram_size = round_up(mb_width * 16 * in coda_setup_iram()
875 value = (round_up(q_data_src->width, 16) & in coda_start_encoding()
877 value |= (round_up(q_data_src->height, 16) & in coda_start_encoding()
1615 width = round_up(width, 16); in __coda_start_decoding()
[all …]
/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
Dnv25.c34 u32 tags = round_up(tiles / fb->ram->parts, 0x40); in nv25_fb_tile_comp()
Dnv36.c34 u32 tags = round_up(tiles / fb->ram->parts, 0x40); in nv36_fb_tile_comp()
Dnv35.c34 u32 tags = round_up(tiles / fb->ram->parts, 0x40); in nv35_fb_tile_comp()
Dnv40.c34 u32 tags = round_up(tiles / fb->ram->parts, 0x100); in nv40_fb_tile_comp()
Dnv20.c47 u32 tags = round_up(tiles / fb->ram->parts, 0x40); in nv20_fb_tile_comp()
Dnv30.c53 u32 tags = round_up(tiles / fb->ram->parts, 0x40); in nv30_fb_tile_comp()
/drivers/staging/rtl8188eu/hal/
Drtl8188eu_xmit.c403 mem_addr = (u8 *)round_up((size_t)mem_addr, 4); in rtw_dump_xframe()
495 pbuf = round_up(pbuf_tail, 8); in rtl8188eu_xmitframe_complete()
546 if (round_up(pbuf + len, 8) > MAX_XMITBUF_SZ) { in rtl8188eu_xmitframe_complete()
569 pbuf = round_up(pbuf_tail, 8); in rtl8188eu_xmitframe_complete()
/drivers/staging/fwserial/
Ddma_fifo.c75 size = round_up(size, align); in dma_fifo_alloc()
221 fifo->out += round_up(n, fifo->align); in dma_fifo_out_pend()
/drivers/crypto/qat/qat_common/
Dqat_algs.c223 offset = round_up(qat_get_inter_state_size(ctx->qat_hash_alg), 8); in qat_alg_do_precomputes()
330 round_up(ICP_QAT_HW_SHA1_STATE1_SZ, 8); in qat_alg_aead_init_enc_session()
332 round_up(ICP_QAT_HW_SHA1_STATE2_SZ, 8); in qat_alg_aead_init_enc_session()
347 round_up(hash_cd_ctrl->inner_state1_sz, 8)) >> 3); in qat_alg_aead_init_enc_session()
420 round_up(ICP_QAT_HW_SHA1_STATE1_SZ, 8); in qat_alg_aead_init_dec_session()
422 round_up(ICP_QAT_HW_SHA1_STATE2_SZ, 8); in qat_alg_aead_init_dec_session()
438 round_up(hash_cd_ctrl->inner_state1_sz, 8)) >> 3); in qat_alg_aead_init_dec_session()
/drivers/gpu/drm/omapdrm/
Domap_dmm_tiler.c89 txn->current_pa = round_up(txn->current_pa, 16); in alloc_dma()
90 txn->current_va = (void *)round_up((long)txn->current_va, 16); in alloc_dma()
530 *w = round_up(*w, geom[fmt].slot_w); in tiler_align()
531 *h = round_up(*h, geom[fmt].slot_h); in tiler_align()
553 return round_up(geom[fmt].cpp * w, PAGE_SIZE) * h; in tiler_vsize()
/drivers/iio/adc/
Dat91_adc.c800 return round_up((startup_time * adc_clk_khz / 1000) - 1, 8) / 8; in calc_startup_ticks_9260()
1021 st->ts_pendbc = round_up(TOUCH_PEN_DETECT_DEBOUNCE_US * adc_clk_khz / in at91_ts_hw_init()
1041 st->ts_sample_period_val = round_up((TOUCH_SAMPLE_PERIOD_US_RL * in at91_ts_hw_init()
1070 st->ts_sample_period_val = round_up((TOUCH_SAMPLE_PERIOD_US * in at91_ts_hw_init()
1254 shtim = round_up((st->sample_hold_time * adc_clk_khz / 1000) in at91_adc_probe()
/drivers/staging/rtl8188eu/os_dep/
Dmon.c134 data = (u8 *)round_up((size_t)data, 4); in rtl88eu_mon_xmit_hook()
/drivers/crypto/nx/
Dnx-842.c187 adj_slen = round_up(slen, c->multiple); in compress()
371 adj_slen = round_up(slen, c->multiple); in decompress()
/drivers/net/wireless/ath/ath10k/
Dhtt_rx.c1035 len = round_up(len, 4); in ath10k_htt_rx_nwifi_hdrlen()
1163 (void *)hdr + round_up(hdr_len, bytes_aligned), in ath10k_htt_rx_h_undecap_nwifi()
1203 rfc1042 += round_up(hdr_len, bytes_aligned) + in ath10k_htt_rx_h_find_rfc1042()
1204 round_up(crypto_len, bytes_aligned); in ath10k_htt_rx_h_find_rfc1042()
1253 (void *)hdr + round_up(hdr_len, bytes_aligned), in ath10k_htt_rx_h_undecap_eth()
1291 (void *)hdr + round_up(hdr_len, bytes_aligned), in ath10k_htt_rx_h_undecap_snap()

123