Home
last modified time | relevance | path

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

123456789

/drivers/net/ethernet/chelsio/inline_crypto/chtls/
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()
/drivers/cpufreq/
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()
/drivers/pinctrl/pxa/
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()
/drivers/infiniband/hw/cxgb4/
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()
Dmem.c75 wr_len = roundup(sizeof(*req) + sizeof(*sgl), 16); in _c4iw_write_mem_dma_aligned()
133 wr_len = roundup(sizeof(*req) + sizeof(*sc) + in _c4iw_write_mem_inline()
134 roundup(copy_len, T4_ULPTX_MIN_IO), in _c4iw_write_mem_inline()
165 sc->len = cpu_to_be32(roundup(copy_len, T4_ULPTX_MIN_IO)); in _c4iw_write_mem_inline()
691 int length = roundup(max_num_sg * sizeof(u64), 32); in c4iw_alloc_mr()
/drivers/gpu/drm/stm/
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()
/drivers/gpu/drm/nouveau/nvkm/core/
Dmm.c131 s = roundup(s, mm->block_size); in nvkm_mm_head()
205 s = roundup(s, mm->block_size); in nvkm_mm_tail()
270 node->offset = roundup(offset, mm->block_size); in nvkm_mm_init()
/drivers/gpu/drm/amd/amdkfd/
Dkfd_doorbell.c51 return roundup(kfd->device_info->doorbell_size * in kfd_doorbell_process_slice()
70 roundup(kfd->shared_resources.doorbell_start_offset, in kfd_doorbell_init()
/drivers/crypto/chelsio/
Dchcr_algo.c830 kctx_len = roundup(ablkctx->enckey_len, 16); in create_cipher_wr()
834 temp = reqctx->imm ? roundup(wrparam->bytes, 16) : in create_cipher_wr()
837 transhdr_len = roundup(transhdr_len, 16); in create_cipher_wr()
1295 kctx_len = roundup(ablkctx->enckey_len, 16); in process_cipher()
1592 transhdr_len += req_ctx->hctx_wr.imm ? roundup(param->bfr_len + in create_hash_wr()
1594 transhdr_len = roundup(transhdr_len, 16); in create_hash_wr()
1712 params.kctx_len = roundup(params.alg_prm.result_size, 16); in chcr_ahash_update()
1794 params.kctx_len = roundup(params.alg_prm.result_size, 16); in chcr_ahash_final()
1871 params.kctx_len = roundup(params.alg_prm.result_size, 16); in chcr_ahash_finup()
1968 params.kctx_len = roundup(params.alg_prm.result_size, 16); in chcr_ahash_digest()
[all …]
/drivers/ide/
Dtx4938ide.c83 __ide_flush_dcache_range((unsigned long)buf, roundup(len, 2)); in tx4938ide_input_data_swap()
97 __ide_flush_dcache_range((unsigned long)buf, roundup(len, 2)); in tx4938ide_output_data_swap()
/drivers/net/ethernet/brocade/bna/
Dbfa_cee.c53 return roundup(sizeof(struct bfa_cee_attr), BFA_DMA_ALIGN_SZ); in bfa_cee_attr_meminfo()
61 return roundup(sizeof(struct bfa_cee_stats), BFA_DMA_ALIGN_SZ); in bfa_cee_stats_meminfo()
Dbfa_msgq.c585 return roundup(BFA_MSGQ_CMDQ_SIZE, BFA_DMA_ALIGN_SZ) + in bfa_msgq_meminfo()
586 roundup(BFA_MSGQ_RSPQ_SIZE, BFA_DMA_ALIGN_SZ); in bfa_msgq_meminfo()
595 kva += roundup(BFA_MSGQ_CMDQ_SIZE, BFA_DMA_ALIGN_SZ); in bfa_msgq_memclaim()
596 pa += roundup(BFA_MSGQ_CMDQ_SIZE, BFA_DMA_ALIGN_SZ); in bfa_msgq_memclaim()
/drivers/net/wireless/mediatek/mt76/mt7615/
Dsdio_txrx.c99 len = roundup(len, sdio->func->cur_blksize); in mt7663s_rx_run_queue()
181 len = roundup(len, sdio->func->cur_blksize); in __mt7663s_xmit_queue()
216 pad = roundup(e->skb->len, 4) - e->skb->len; in mt7663s_tx_run_queue()
/drivers/nvmem/
Drockchip-efuse.c113 addr_end = roundup(offset + bytes, RK3399_NBYTES) / RK3399_NBYTES; in rockchip_rk3328_efuse_read()
166 addr_end = roundup(offset + bytes, RK3399_NBYTES) / RK3399_NBYTES; in rockchip_rk3399_efuse_read()
/drivers/gpu/drm/vc4/
Dvc4_validate.c343 roundup(gl_shader_rec_size(exec->shader_state[i].addr), 16); in validate_gl_shader_state()
403 exec->tile_alloc_offset = bin_addr + roundup(tile_state_size, 4096); in validate_tile_binning_config()
791 BUG_ON(roundup(packet_size, 16) - packet_size > nr_relocs * 4); in validate_gl_shader_rec()
792 exec->shader_rec_v += roundup(packet_size, 16); in validate_gl_shader_rec()
/drivers/net/wireless/broadcom/b43/
Dpio.c483 q->buffer_used += roundup(skb->len + hdrlen, 4); in pio_tx_frame()
511 total_len = roundup(skb->len + hdrlen, 4); in b43_pio_tx()
552 if (((q->buffer_size - q->buffer_used) < roundup(2 + 2 + 6, 4)) || in b43_pio_tx()
581 total_len = roundup(total_len, 4); in b43_pio_handle_txstatus()
/drivers/gpu/drm/i915/gt/
Dintel_gt_clock_utils.c99 val = roundup(val, 25); in intel_gt_ns_to_pm_interval()
/drivers/misc/
Dhpilo.c284 dma_va = (char *)roundup((unsigned long)dma_va, ILO_START_ALIGN); in ilo_ccb_setup()
285 dma_pa = roundup(dma_pa, ILO_START_ALIGN); in ilo_ccb_setup()
300 dma_va = (char *)roundup((unsigned long)dma_va, ILO_CACHE_SZ); in ilo_ccb_setup()
301 dma_pa = roundup(dma_pa, ILO_CACHE_SZ); in ilo_ccb_setup()
/drivers/target/iscsi/cxgbit/
Dcxgbit_cm.c625 u32 len = roundup(sizeof(struct cpl_close_con_req), 16); in cxgbit_send_halfclose()
661 u32 len = roundup(sizeof(struct cpl_abort_req), 16); in cxgbit_send_abort_req()
1014 u32 len = roundup(sizeof(struct cpl_tid_release), 16); in cxgbit_release_tid()
1061 u32 len = roundup(sizeof(struct cpl_rx_data_ack), 16); in cxgbit_rx_data_ack()
1105 len = roundup(len, 16); in cxgbit_alloc_csk_skb()
1134 unsigned int len = roundup(sizeof(*rpl5), 16); in cxgbit_pass_accept_rpl()
1513 unsigned int len = roundup(sizeof(*req), 16); in cxgbit_setup_conn_digest()
1548 unsigned int len = roundup(sizeof(*req), 16); in cxgbit_setup_conn_pgidx()
1732 u32 len = roundup(sizeof(struct cpl_abort_rpl), 16); in cxgbit_abort_req_rss()
/drivers/watchdog/
Debc-c384_wdt.c65 wdev->timeout = roundup(t, 60); in ebc_c384_wdt_set_timeout()
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dsdio.c449 uint roundup; /* Max roundup limit */ member
658 datalign = roundup(datalign, (align)) - datalign; in pkt_align()
1387 (roundup(len, bus->blocksize) != rd->len)) { in brcmf_sdio_hdparse()
1553 (roundup(totlen, bus->blocksize) - totlen); in brcmf_sdio_rxglom()
1554 totlen = roundup(totlen, bus->blocksize); in brcmf_sdio_rxglom()
1769 if (bus->roundup && bus->blocksize && (rdlen > bus->blocksize)) { in brcmf_sdio_read_control()
1771 if ((pad <= bus->roundup) && (pad < bus->blocksize) && in brcmf_sdio_read_control()
1834 if (bus->roundup && bus->blocksize && *rdlen > bus->blocksize) { in brcmf_sdio_pad()
1836 if (*pad <= bus->roundup && *pad < bus->blocksize && in brcmf_sdio_pad()
1968 if (rd->len != roundup(rd_new.len, 16)) { in brcmf_sdio_readframes()
[all …]
/drivers/iio/
Dindustrialio-buffer.c870 in_loc = roundup(in_loc, length) + length; in iio_buffer_update_demux()
876 out_loc = roundup(out_loc, length); in iio_buffer_update_demux()
877 in_loc = roundup(in_loc, length); in iio_buffer_update_demux()
887 out_loc = roundup(out_loc, length); in iio_buffer_update_demux()
888 in_loc = roundup(in_loc, length); in iio_buffer_update_demux()
/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_param.c451 tx_ring->count = roundup(tx_ring->count, in pch_gbe_check_options()
467 rx_ring->count = roundup(rx_ring->count, in pch_gbe_check_options()
/drivers/gpu/drm/gma500/
Dgem.c57 size = roundup(size, PAGE_SIZE); in psb_gem_create()
/drivers/media/i2c/
Daptina-pll.c138 mf_low = roundup(max(mf_min, DIV_ROUND_UP(pll->ext_clock * p1, in aptina_pll_calculate()

123456789