/linux-6.6.21/drivers/firmware/efi/ |
D | unaccepted_memory.c | 37 u64 unit_size; in accept_memory() local 43 unit_size = unaccepted->unit_size; in accept_memory() 83 if (!(end % unit_size)) in accept_memory() 84 end += unit_size; in accept_memory() 87 if (end > unaccepted->size * unit_size * BITS_PER_BYTE) in accept_memory() 88 end = unaccepted->size * unit_size * BITS_PER_BYTE; in accept_memory() 90 range.start = start / unit_size; in accept_memory() 91 range.end = DIV_ROUND_UP(end, unit_size); in accept_memory() 129 phys_start = range_start * unit_size + unaccepted->phys_base; in accept_memory() 130 phys_end = range_end * unit_size + unaccepted->phys_base; in accept_memory() [all …]
|
/linux-6.6.21/drivers/firmware/efi/libstub/ |
D | unaccepted_memory.c | 74 unaccepted_table->unit_size = EFI_UNACCEPTED_UNIT_SIZE; in allocate_unaccepted_bitmap() 99 u64 unit_size = unaccepted_table->unit_size; in process_unaccepted_memory() local 100 u64 unit_mask = unaccepted_table->unit_size - 1; in process_unaccepted_memory() 120 if (end - start < 2 * unit_size) { in process_unaccepted_memory() 132 arch_accept_memory(start, round_up(start, unit_size)); in process_unaccepted_memory() 133 start = round_up(start, unit_size); in process_unaccepted_memory() 138 arch_accept_memory(round_down(end, unit_size), end); in process_unaccepted_memory() 139 end = round_down(end, unit_size); in process_unaccepted_memory() 161 if (end > bitmap_size * unit_size * BITS_PER_BYTE) { in process_unaccepted_memory() 164 phys_start = bitmap_size * unit_size * BITS_PER_BYTE + in process_unaccepted_memory() [all …]
|
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/ |
D | nfp_shared_buf.c | 34 unsigned int unit_size; in nfp_shared_buf_pool_get() local 37 unit_size = nfp_shared_buf_pool_unit(pf, sb); in nfp_shared_buf_pool_get() 38 if (!unit_size) in nfp_shared_buf_pool_get() 50 pool_info->size = le32_to_cpu(get_data.size) * unit_size; in nfp_shared_buf_pool_get() 51 pool_info->cell_size = unit_size; in nfp_shared_buf_pool_get() 67 unsigned int unit_size; in nfp_shared_buf_pool_set() local 69 unit_size = nfp_shared_buf_pool_unit(pf, sb); in nfp_shared_buf_pool_set() 70 if (!unit_size || size % unit_size) in nfp_shared_buf_pool_set() 72 set_data.size = cpu_to_le32(size / unit_size); in nfp_shared_buf_pool_set()
|
/linux-6.6.21/kernel/bpf/ |
D | memalloc.c | 96 int unit_size; member 140 void *pptr = __alloc_percpu_gfp(c->unit_size, 8, flags); in __alloc() 151 return kmalloc_node(c->unit_size, flags | __GFP_ZERO, node); in __alloc() 342 WARN_ON_ONCE(tgt->unit_size != c->unit_size); in free_bulk() 465 if (c->unit_size <= 256) { in init_refill_work() 474 c->low_watermark = max(32 * 256 / c->unit_size, 1); in init_refill_work() 475 c->high_watermark = max(96 * 256 / c->unit_size, 3); in init_refill_work() 486 alloc_bulk(c, c->unit_size <= 256 ? 4 : 1, cpu_to_node(cpu), false); in prefill_mem_cache() 502 int cpu, i, unit_size, percpu_size = 0; in bpf_mem_alloc_init() local 516 unit_size = size; in bpf_mem_alloc_init() [all …]
|
/linux-6.6.21/drivers/crypto/ccp/ |
D | ccp-crypto-aes-xts.c | 113 u32 unit_size; in ccp_aes_xts_crypt() local 128 unit_size = CCP_XTS_AES_UNIT_SIZE__LAST; in ccp_aes_xts_crypt() 131 unit_size = unit; in ccp_aes_xts_crypt() 139 if (unit_size == CCP_XTS_AES_UNIT_SIZE__LAST) in ccp_aes_xts_crypt() 173 rctx->cmd.u.xts.unit_size = unit_size; in ccp_aes_xts_crypt()
|
D | ccp-ops.c | 1099 unsigned int unit_size, dm_offset; in ccp_run_xts_aes_cmd() local 1105 switch (xts->unit_size) { in ccp_run_xts_aes_cmd() 1107 unit_size = 16; in ccp_run_xts_aes_cmd() 1110 unit_size = 512; in ccp_run_xts_aes_cmd() 1113 unit_size = 1024; in ccp_run_xts_aes_cmd() 1116 unit_size = 2048; in ccp_run_xts_aes_cmd() 1119 unit_size = 4096; in ccp_run_xts_aes_cmd() 1154 op.u.xts.unit_size = xts->unit_size; in ccp_run_xts_aes_cmd() 1233 unit_size, in ccp_run_xts_aes_cmd() 1242 unit_size, DMA_FROM_DEVICE); in ccp_run_xts_aes_cmd() [all …]
|
D | ccp-dev.h | 503 enum ccp_xts_aes_unit_size unit_size; member
|
D | ccp-dev-v3.c | 186 | (op->u.xts.unit_size << REQ1_XTS_AES_SIZE_SHIFT) in ccp_perform_xts_aes()
|
/linux-6.6.21/mm/ |
D | percpu.c | 2495 upa = ai->alloc_size / ai->unit_size; in pcpu_dump_alloc_info() 2501 ai->unit_size, ai->alloc_size / ai->atom_size, ai->atom_size); in pcpu_dump_alloc_info() 2613 PCPU_SETUP_BUG_ON(ai->unit_size < size_sum); in pcpu_setup_first_chunk() 2614 PCPU_SETUP_BUG_ON(offset_in_page(ai->unit_size)); in pcpu_setup_first_chunk() 2615 PCPU_SETUP_BUG_ON(ai->unit_size < PCPU_MIN_UNIT_SIZE); in pcpu_setup_first_chunk() 2616 PCPU_SETUP_BUG_ON(!IS_ALIGNED(ai->unit_size, PCPU_BITMAP_BLOCK_SIZE)); in pcpu_setup_first_chunk() 2658 group_sizes[group] = gi->nr_units * ai->unit_size; in pcpu_setup_first_chunk() 2670 unit_off[cpu] = gi->base_offset + i * ai->unit_size; in pcpu_setup_first_chunk() 2697 pcpu_unit_pages = ai->unit_size >> PAGE_SHIFT; in pcpu_setup_first_chunk() 2954 ai->unit_size = alloc_size / upa; in pcpu_build_alloc_info() [all …]
|
D | percpu-km.c | 117 nr_pages = (ai->groups[0].nr_units * ai->unit_size) >> PAGE_SHIFT; in pcpu_verify_alloc_info()
|
D | percpu-internal.h | 169 pcpu_stats.min_alloc_size = pcpu_stats_ai.unit_size; in pcpu_stats_save_ai()
|
D | percpu-stats.c | 167 PL(unit_size); in percpu_stats_show()
|
/linux-6.6.21/drivers/media/i2c/ |
D | imx214.c | 50 struct v4l2_ctrl *unit_size; member 952 static const struct v4l2_area unit_size = { in imx214_probe() local 1037 imx214->unit_size = v4l2_ctrl_new_std_compound(&imx214->ctrls, in imx214_probe() 1040 v4l2_ctrl_ptr_create((void *)&unit_size)); in imx214_probe()
|
/linux-6.6.21/arch/x86/kvm/ |
D | mtrr.c | 223 u64 unit_size = fixed_mtrr_seg_unit_size(seg); in fixed_mtrr_seg_unit_range() local 225 *start = mtrr_seg->start + unit * unit_size; in fixed_mtrr_seg_unit_range() 226 *end = *start + unit_size; in fixed_mtrr_seg_unit_range()
|
/linux-6.6.21/drivers/media/platform/mediatek/vcodec/decoder/vdec/ |
D | vdec_h264_req_common.c | 307 int unit_size = (width / MB_UNIT_LEN) * (height / MB_UNIT_LEN) + 8; in mtk_vdec_h264_get_mv_buf_size() local 309 return HW_MB_STORE_SZ * unit_size; in mtk_vdec_h264_get_mv_buf_size()
|
D | vdec_hevc_req_multi_if.c | 377 const unsigned int unit_size = (width / 16) * (height / 16) + 8; in vdec_hevc_get_mv_buf_size() local 379 return 64 * unit_size; in vdec_hevc_get_mv_buf_size()
|
/linux-6.6.21/include/linux/ |
D | percpu.h | 84 size_t unit_size; member
|
D | ccp.h | 234 enum ccp_xts_aes_unit_size unit_size; member
|
D | efi.h | 545 u32 unit_size; member
|
/linux-6.6.21/arch/x86/boot/compressed/ |
D | efi.h | 111 u32 unit_size; member
|
/linux-6.6.21/arch/ia64/mm/ |
D | contig.c | 128 ai->unit_size = PERCPU_PAGE_SIZE; in setup_per_cpu_areas()
|
D | discontig.c | 222 ai->unit_size = PERCPU_PAGE_SIZE; in setup_per_cpu_areas()
|
/linux-6.6.21/drivers/target/ |
D | target_core_file.c | 868 int unit_size = FDBD_FORMAT_UNIT_SIZE * dev->dev_attrib.block_size; in fd_format_prot() local 876 buf = vzalloc(unit_size); in fd_format_prot() 887 buf, unit_size); in fd_format_prot()
|
/linux-6.6.21/drivers/memstick/core/ |
D | mspro_block.c | 88 __be16 unit_size; member 322 rc += sysfs_emit_at(buffer, rc, "unit size: %x\n", be16_to_cpu(x_sys->unit_size)); in mspro_block_attr_show_sysinfo() 1128 msb->page_size = be16_to_cpu(sys_info->unit_size); in mspro_block_init_disk()
|
/linux-6.6.21/drivers/scsi/csiostor/ |
D | csio_scsi.c | 2327 uint32_t unit_size = 0; in csio_scsi_alloc_ddp_bufs() local 2342 unit_size = buf_size; in csio_scsi_alloc_ddp_bufs() 2353 ddp_desc->vaddr = dma_alloc_coherent(&hw->pdev->dev, unit_size, in csio_scsi_alloc_ddp_bufs() 2363 ddp_desc->len = unit_size; in csio_scsi_alloc_ddp_bufs()
|