/linux-master/drivers/firmware/efi/libstub/ |
H A D | unaccepted_memory.c | 74 unaccepted_table->unit_size = EFI_UNACCEPTED_UNIT_SIZE; 90 * The accepted memory bitmap only works at unit_size granularity. Take 99 u64 unit_size = unaccepted_table->unit_size; local 100 u64 unit_mask = unaccepted_table->unit_size - 1; 105 * immediately accepting all regions under 2*unit_size. This is 110 * Consider case like this (assuming unit_size == 2MB): 117 * the bitmap. But, the 0MB->4MB region is <2*unit_size and will be 120 if (end - start < 2 * unit_size) { 127 * unit_size are 184 u64 unit_size; local [all...] |
/linux-master/drivers/firmware/efi/ |
H A D | unaccepted_memory.c | 38 u64 unit_size; local 44 unit_size = unaccepted->unit_size; 77 * checks up to end+unit_size if 'end' is aligned on a unit_size 80 * 2. Implicitly extend accept_memory(start, end) to end+unit_size if 81 * 'end' is aligned on a unit_size boundary. (immediately following 84 if (!(end % unit_size)) 85 end += unit_size; 88 if (end > unaccepted->size * unit_size * BITS_PER_BYT 160 u64 unit_size; local [all...] |
/linux-master/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_shared_buf.c | 34 unsigned int unit_size; local 37 unit_size = nfp_shared_buf_pool_unit(pf, sb); 38 if (!unit_size) 50 pool_info->size = le32_to_cpu(get_data.size) * unit_size; 51 pool_info->cell_size = unit_size; 67 unsigned int unit_size; local 69 unit_size = nfp_shared_buf_pool_unit(pf, sb); 70 if (!unit_size || size % unit_size) 72 set_data.size = cpu_to_le32(size / unit_size); [all...] |
/linux-master/fs/btrfs/ |
H A D | accessors.c | 67 const int unit_size = token->eb->folio_size; \ 71 const int part = unit_size - oil; \ 77 member_offset + size <= token->offset + unit_size) { \ 82 if (INLINE_EXTENT_BUFFER_PAGES == 1 || oil + size <= unit_size) \ 98 const int unit_size = eb->folio_size; \ 101 const int part = unit_size - oil; \ 105 if (INLINE_EXTENT_BUFFER_PAGES == 1 || oil + size <= unit_size) \ 121 const int unit_size = token->eb->folio_size; \ 125 const int part = unit_size - oil; \ 131 member_offset + size <= token->offset + unit_size) { \ [all...] |
H A D | extent_io.c | 4411 const int unit_size = eb->folio_size; local 4436 cur = min(len, unit_size - offset); 4451 const int unit_size = eb->folio_size; local 4472 cur = min(len, unit_size - offset); 4491 const int unit_size = eb->folio_size; local 4508 cur = min(len, unit_size - offset); 4562 const int unit_size = eb->folio_size; local 4588 cur = min(len, unit_size - offset); 4611 const int unit_size = eb->folio_size; local 4622 unsigned int cur_len = min(start + len - cur, unit_size 4642 const int unit_size = src->folio_size; local 4664 const int unit_size = dst->folio_size; local 4837 const int unit_size = dst->folio_size; local [all...] |
/linux-master/kernel/bpf/ |
H A D | memalloc.c | 80 /* per-cpu list of free objects of size 'unit_size'. 96 int unit_size; member in struct:bpf_mem_cache 142 void *pptr = __alloc_percpu_gfp(c->unit_size, 8, flags); 153 return kmalloc_node(c->unit_size, flags | __GFP_ZERO, node); 344 WARN_ON_ONCE(tgt->unit_size != c->unit_size); 371 WARN_ON_ONCE(tgt->unit_size != c->unit_size); 477 } else if (c->unit_size <= 256) { 486 c->low_watermark = max(32 * 256 / c->unit_size, 518 int cpu, i, unit_size, percpu_size = 0; local 598 int cpu, i, unit_size, percpu_size; local [all...] |
/linux-master/drivers/crypto/ccp/ |
H A D | ccp-crypto-aes-xts.c | 113 u32 unit_size; local 124 * of the unit_size, bug the crypto implementation only supports 125 * the unit_size being equal to the input length. This limits the 128 unit_size = CCP_XTS_AES_UNIT_SIZE__LAST; 131 unit_size = unit; 139 if (unit_size == CCP_XTS_AES_UNIT_SIZE__LAST) 173 rctx->cmd.u.xts.unit_size = unit_size;
|
H A D | ccp-ops.c | 1099 unsigned int unit_size, dm_offset; local 1105 switch (xts->unit_size) { 1107 unit_size = 16; 1110 unit_size = 512; 1113 unit_size = 1024; 1116 unit_size = 2048; 1119 unit_size = 4096; 1154 op.u.xts.unit_size = xts->unit_size; 1233 unit_size, [all...] |
H A D | ccp-dev.h | 503 enum ccp_xts_aes_unit_size unit_size; member in struct:ccp_xts_aes_op
|
H A D | ccp-dev-v3.c | 186 | (op->u.xts.unit_size << REQ1_XTS_AES_SIZE_SHIFT)
|
/linux-master/mm/ |
H A D | percpu-km.c | 117 nr_pages = (ai->groups[0].nr_units * ai->unit_size) >> PAGE_SHIFT;
|
H A D | percpu.c | 2522 upa = ai->alloc_size / ai->unit_size; 2528 ai->unit_size, ai->alloc_size / ai->atom_size, ai->atom_size); 2578 * @ai->reserved_size + @ai->dyn_size and @ai->unit_size is unused. 2580 * @ai->unit_size specifies unit size and must be aligned to PAGE_SIZE 2589 * @ai->unit_size is larger than @ai->atom_size. 2640 PCPU_SETUP_BUG_ON(ai->unit_size < size_sum); 2641 PCPU_SETUP_BUG_ON(offset_in_page(ai->unit_size)); 2642 PCPU_SETUP_BUG_ON(ai->unit_size < PCPU_MIN_UNIT_SIZE); 2643 PCPU_SETUP_BUG_ON(!IS_ALIGNED(ai->unit_size, PCPU_BITMAP_BLOCK_SIZE)); 2685 group_sizes[group] = gi->nr_units * ai->unit_size; 3409 const size_t unit_size = local [all...] |
H A D | percpu-internal.h | 168 /* initialize min_alloc_size to unit_size */ 169 pcpu_stats.min_alloc_size = pcpu_stats_ai.unit_size;
|
H A D | percpu-stats.c | 167 PL(unit_size);
|
/linux-master/include/linux/ |
H A D | percpu.h | 84 size_t unit_size; member in struct:pcpu_alloc_info
|
H A D | ccp.h | 215 * @unit_size: unit size of the XTS operation 226 * - action, unit_size, key, key_len, iv, iv_len, src, dst, src_len, final 234 enum ccp_xts_aes_unit_size unit_size; member in struct:ccp_xts_aes_engine
|
/linux-master/arch/x86/boot/compressed/ |
H A D | efi.h | 102 u32 unit_size; member in struct:efi_unaccepted_memory
|
/linux-master/drivers/media/platform/mediatek/vcodec/decoder/vdec/ |
H A D | vdec_h264_req_common.c | 307 int unit_size = (width / MB_UNIT_LEN) * (height / MB_UNIT_LEN) + 8; local 309 return HW_MB_STORE_SZ * unit_size;
|
H A D | vdec_hevc_req_multi_if.c | 377 const unsigned int unit_size = (width / 16) * (height / 16) + 8; local 379 return 64 * unit_size;
|
/linux-master/arch/x86/kvm/ |
H A D | mtrr.c | 223 u64 unit_size = fixed_mtrr_seg_unit_size(seg); local 225 *start = mtrr_seg->start + unit * unit_size; 226 *end = *start + unit_size;
|
/linux-master/drivers/media/i2c/ |
H A D | imx214.c | 69 struct v4l2_ctrl *unit_size; member in struct:imx214 728 static const struct v4l2_area unit_size = { local 774 imx214->unit_size = v4l2_ctrl_new_std_compound(ctrl_hdlr, 777 v4l2_ctrl_ptr_create((void *)&unit_size));
|
/linux-master/drivers/target/ |
H A D | target_core_file.c | 864 int unit_size = FDBD_FORMAT_UNIT_SIZE * dev->dev_attrib.block_size; local 872 buf = vzalloc(unit_size); 883 buf, unit_size);
|
/linux-master/drivers/memstick/core/ |
H A D | mspro_block.c | 88 __be16 unit_size; member in struct:mspro_sys_info 322 rc += sysfs_emit_at(buffer, rc, "unit size: %x\n", be16_to_cpu(x_sys->unit_size)); 1134 msb->page_size = be16_to_cpu(sys_info->unit_size);
|
/linux-master/drivers/scsi/csiostor/ |
H A D | csio_scsi.c | 2327 uint32_t unit_size = 0; local 2342 unit_size = buf_size; 2353 ddp_desc->vaddr = dma_alloc_coherent(&hw->pdev->dev, unit_size, 2363 ddp_desc->len = unit_size;
|
/linux-master/drivers/net/wireless/ath/ath10k/ |
H A D | wmi.c | 5376 u32 req_id, num_units, unit_size, num_unit_info; local 5387 unit_size = __le32_to_cpu(mem_reqs[i]->unit_size); 5404 pool_size = num_units * round_up(unit_size, 4); 5512 u32 num_units, req_id, unit_size, num_mem_reqs, num_unit_info, i; local 5617 unit_size = __le32_to_cpu(arg.mem_reqs[i]->unit_size); 5641 unit_size, 5645 unit_size);
|