Home
last modified time | relevance | path

Searched refs:total_size (Results 1 – 25 of 212) sorted by relevance

123456789

/Linux-v6.1/drivers/video/fbdev/core/
Dfb_sys_fops.c22 unsigned long total_size; in fb_sys_read() local
27 total_size = info->screen_size; in fb_sys_read()
29 if (total_size == 0) in fb_sys_read()
30 total_size = info->fix.smem_len; in fb_sys_read()
32 if (p >= total_size) in fb_sys_read()
35 if (count >= total_size) in fb_sys_read()
36 count = total_size; in fb_sys_read()
38 if (count + p > total_size) in fb_sys_read()
39 count = total_size - p; in fb_sys_read()
62 unsigned long total_size; in fb_sys_write() local
[all …]
/Linux-v6.1/tools/testing/memblock/tests/
Dbasic_api.c61 ASSERT_EQ(memblock.memory.total_size, r.size); in memblock_add_simple_check()
98 ASSERT_EQ(memblock.memory.total_size, r.size); in memblock_add_node_simple_check()
146 ASSERT_EQ(memblock.memory.total_size, r1.size + r2.size); in memblock_add_disjoint_check()
173 phys_addr_t total_size; in memblock_add_overlap_top_check() local
188 total_size = (r1.base - r2.base) + r1.size; in memblock_add_overlap_top_check()
195 ASSERT_EQ(rgn->size, total_size); in memblock_add_overlap_top_check()
198 ASSERT_EQ(memblock.memory.total_size, total_size); in memblock_add_overlap_top_check()
225 phys_addr_t total_size; in memblock_add_overlap_bottom_check() local
240 total_size = (r2.base - r1.base) + r2.size; in memblock_add_overlap_bottom_check()
247 ASSERT_EQ(rgn->size, total_size); in memblock_add_overlap_bottom_check()
[all …]
Dalloc_api.c45 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_top_down_simple_check()
80 phys_addr_t total_size; in alloc_top_down_disjoint_check() local
89 total_size = r1.size + r2_size; in alloc_top_down_disjoint_check()
106 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_top_down_disjoint_check()
132 phys_addr_t total_size = r1_size + r2_size; in alloc_top_down_before_check() local
137 memblock_reserve(memblock_end_of_DRAM() - total_size, r1_size); in alloc_top_down_before_check()
144 ASSERT_EQ(rgn->size, total_size); in alloc_top_down_before_check()
145 ASSERT_EQ(rgn->base, memblock_end_of_DRAM() - total_size); in alloc_top_down_before_check()
148 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_top_down_before_check()
172 phys_addr_t total_size; in alloc_top_down_after_check() local
[all …]
Dalloc_nid_api.c81 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_try_nid_top_down_simple_check()
134 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_try_nid_top_down_end_misaligned_check()
184 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_try_nid_exact_address_generic_check()
233 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_try_nid_top_down_narrow_range_check()
304 phys_addr_t total_size = r1_size + r2_size; in alloc_try_nid_min_reserved_generic_check() local
325 ASSERT_EQ(rgn->size, total_size); in alloc_try_nid_min_reserved_generic_check()
329 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_try_nid_min_reserved_generic_check()
356 phys_addr_t total_size = r1_size + r2_size; in alloc_try_nid_max_reserved_generic_check() local
375 ASSERT_EQ(rgn->size, total_size); in alloc_try_nid_max_reserved_generic_check()
379 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_try_nid_max_reserved_generic_check()
[all …]
Dalloc_helpers_api.c39 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_from_simple_generic_check()
83 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_from_misaligned_generic_check()
128 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_from_top_down_high_addr_check()
157 phys_addr_t total_size = r1_size + r2_size; in alloc_from_top_down_no_space_above_check() local
172 ASSERT_EQ(rgn->size, total_size); in alloc_from_top_down_no_space_above_check()
175 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_from_top_down_no_space_above_check()
211 ASSERT_EQ(memblock.reserved.total_size, MEM_SIZE); in alloc_from_top_down_min_addr_cap_check()
254 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_from_bottom_up_high_addr_check()
300 ASSERT_EQ(memblock.reserved.total_size, r1_size + r2_size); in alloc_from_bottom_up_no_space_above_check()
333 ASSERT_EQ(memblock.reserved.total_size, r1_size); in alloc_from_bottom_up_min_addr_cap_check()
/Linux-v6.1/drivers/acpi/acpica/
Drscalc.c159 acpi_rs_length total_size; in acpi_rs_get_aml_length() local
183 total_size = acpi_gbl_aml_resource_sizes[resource->type]; in acpi_rs_get_aml_length()
195 total_size--; in acpi_rs_get_aml_length()
204 total_size--; in acpi_rs_get_aml_length()
219 total_size = in acpi_rs_get_aml_length()
225 total_size = (acpi_rs_length) in acpi_rs_get_aml_length()
226 (total_size + resource->data.vendor.byte_length); in acpi_rs_get_aml_length()
234 *size_needed = aml_size_needed + total_size; in acpi_rs_get_aml_length()
245 total_size = (acpi_rs_length)(total_size + in acpi_rs_get_aml_length()
257 total_size = (acpi_rs_length)(total_size + in acpi_rs_get_aml_length()
[all …]
/Linux-v6.1/scripts/
Dcheckstack.pl142 my ($func, $file, $lastslash, $total_size, $addr, $intro);
144 $total_size = 0;
150 if ($total_size > $min_stack) {
151 push @stack, "$intro$total_size\n";
165 $total_size = 0;
186 $total_size += $size;
192 $total_size += $size;
197 $total_size += $size;
200 if ($total_size > $min_stack) {
201 push @stack, "$intro$total_size\n";
/Linux-v6.1/drivers/net/ethernet/netronome/nfp/
Dnfp_net_debugdump.c101 u32 total_size; /* output */ member
309 &lev_sz->total_size, nfp_add_tlv_size); in nfp_calc_specific_level_size()
319 lev_sz.total_size = ALIGN8(sizeof(struct nfp_dump_prolog)); in nfp_net_dump_calculate_size()
326 return lev_sz.total_size; in nfp_net_dump_calculate_size()
353 u32 total_spec_size, total_size; in nfp_dump_error_tlv() local
357 total_size = ALIGN8(sizeof(*dump_header) + total_spec_size); in nfp_dump_error_tlv()
359 err = nfp_add_tlv(NFP_DUMPSPEC_TYPE_ERROR, total_size, dump); in nfp_dump_error_tlv()
372 u32 fwname_len, total_size; in nfp_dump_fwname() local
378 total_size = sizeof(*dump_header) + ALIGN8(fwname_len + 1); in nfp_dump_fwname()
380 err = nfp_add_tlv(NFP_DUMPSPEC_TYPE_FWNAME, total_size, dump); in nfp_dump_fwname()
[all …]
/Linux-v6.1/drivers/gpu/drm/vmwgfx/
Dvmw_surface_cache.h119 u32 slice_size, total_size; in vmw_surface_get_image_buffer_size() local
124 total_size = clamped_umul32(image_blocks.width, in vmw_surface_get_image_buffer_size()
126 total_size = clamped_umul32(total_size, image_blocks.depth); in vmw_surface_get_image_buffer_size()
127 total_size = clamped_umul32(total_size, desc->bytesPerBlock); in vmw_surface_get_image_buffer_size()
128 return total_size; in vmw_surface_get_image_buffer_size()
135 total_size = clamped_umul32(slice_size, image_blocks.depth); in vmw_surface_get_image_buffer_size()
137 return total_size; in vmw_surface_get_image_buffer_size()
150 u32 total_size = 0; in vmw_surface_get_serialized_size() local
156 total_size += vmw_surface_get_image_buffer_size(desc, in vmw_surface_get_serialized_size()
160 return total_size * num_layers; in vmw_surface_get_serialized_size()
[all …]
/Linux-v6.1/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_cudbg.c111 u32 i, total_size = 0; in cxgb4_cudbg_collect_entity() local
136 total_size += entity_hdr->size; in cxgb4_cudbg_collect_entity()
139 *tot_size += total_size; in cxgb4_cudbg_collect_entity()
167 u32 size, min_size, total_size = 0; in cxgb4_cudbg_collect() local
217 total_size = dbg_buff.offset; in cxgb4_cudbg_collect()
224 &total_size); in cxgb4_cudbg_collect()
231 &total_size); in cxgb4_cudbg_collect()
238 &total_size); in cxgb4_cudbg_collect()
241 cudbg_hdr->data_len = total_size; in cxgb4_cudbg_collect()
245 *buf_size = total_size; in cxgb4_cudbg_collect()
/Linux-v6.1/tools/testing/selftests/bpf/progs/
Dtest_get_stack_rawtp.c60 int max_len, max_buildid_len, total_size; in bpf_prog1() local
95 total_size = usize + ksize; in bpf_prog1()
96 if (total_size > 0 && total_size <= max_len) in bpf_prog1()
97 bpf_perf_event_output(ctx, &perfmap, 0, raw_data, total_size); in bpf_prog1()
/Linux-v6.1/tools/bootconfig/
Dtest-bootconfig.sh63 total_size=$(expr $bconf_size + $initrd_size + 9 + 12 + $ALIGN - 1 )
64 total_size=$(expr $total_size / $ALIGN)
65 total_size=$(expr $total_size \* $ALIGN)
66 xpass test $new_size -eq $total_size
/Linux-v6.1/net/batman-adv/
Dfragmentation.c177 chain->total_size = ntohs(frag_packet->total_size); in batadv_frag_insert_packet()
212 chain->total_size != ntohs(frag_packet->total_size) || in batadv_frag_insert_packet()
213 chain->total_size > batadv_frag_size_limit()) { in batadv_frag_insert_packet()
220 } else if (ntohs(frag_packet->total_size) == chain->size) { in batadv_frag_insert_packet()
265 size = ntohs(packet->total_size) + hdr_size; in batadv_frag_merge_packets()
357 u16 total_size; in batadv_frag_skb_fwd() local
372 total_size = ntohs(packet->total_size); in batadv_frag_skb_fwd()
373 if (total_size > neigh_node->if_incoming->net_dev->mtu) { in batadv_frag_skb_fwd()
496 frag_header.total_size = htons(skb->len); in batadv_frag_send_packet()
/Linux-v6.1/drivers/gpu/drm/vboxvideo/
Dvbox_hgsmi.c52 size_t total_size; in hgsmi_buffer_alloc() local
55 total_size = size + sizeof(*h) + sizeof(*t); in hgsmi_buffer_alloc()
56 h = gen_pool_dma_alloc(guest_pool, total_size, &offset); in hgsmi_buffer_alloc()
78 size_t total_size = h->data_size + sizeof(*h) + in hgsmi_buffer_free() local
81 gen_pool_free(guest_pool, (unsigned long)h, total_size); in hgsmi_buffer_free()
/Linux-v6.1/drivers/infiniband/hw/mthca/
Dmthca_profile.c76 s64 total_size = 0; in mthca_make_profile() local
142 profile[i].start = mem_base + total_size; in mthca_make_profile()
143 total_size += profile[i].size; in mthca_make_profile()
145 if (total_size > mem_avail) { in mthca_make_profile()
148 (unsigned long long) total_size, in mthca_make_profile()
164 (int) (total_size >> 10)); in mthca_make_profile()
167 (int) (total_size >> 10), (int) (mem_avail >> 10), in mthca_make_profile()
168 (int) ((mem_avail - total_size) >> 10)); in mthca_make_profile()
278 return total_size; in mthca_make_profile()
/Linux-v6.1/drivers/video/fbdev/
Dhecubafb.c164 unsigned long total_size; in hecubafb_write() local
169 total_size = info->fix.smem_len; in hecubafb_write()
171 if (p > total_size) in hecubafb_write()
174 if (count > total_size) { in hecubafb_write()
176 count = total_size; in hecubafb_write()
179 if (count + p > total_size) { in hecubafb_write()
183 count = total_size - p; in hecubafb_write()
Dsm712fb.c1029 unsigned long total_size; in smtcfb_read() local
1037 total_size = info->screen_size; in smtcfb_read()
1039 if (total_size == 0) in smtcfb_read()
1040 total_size = info->fix.smem_len; in smtcfb_read()
1042 if (p >= total_size) in smtcfb_read()
1045 if (count >= total_size) in smtcfb_read()
1046 count = total_size; in smtcfb_read()
1048 if (count + p > total_size) in smtcfb_read()
1049 count = total_size - p; in smtcfb_read()
1095 unsigned long total_size; in smtcfb_write() local
[all …]
/Linux-v6.1/drivers/gpu/drm/i915/gt/uc/
Dintel_guc_ads.c476 u32 total_size = 0, alloc_size, real_size; in guc_prep_golden_context() local
515 total_size += alloc_size; in guc_prep_golden_context()
541 GEM_BUG_ON(guc->ads_golden_ctxt_size != total_size); in guc_prep_golden_context()
543 return total_size; in guc_prep_golden_context()
569 u32 addr_ggtt, total_size = 0, alloc_size, real_size; in guc_init_golden_context() local
594 total_size += alloc_size; in guc_init_golden_context()
616 GEM_BUG_ON(guc->ads_golden_ctxt_size != total_size); in guc_init_golden_context()
624 u32 ads_ggtt, capture_offset, null_ggtt, total_size = 0; in guc_capture_prep_lists() local
645 total_size = PAGE_SIZE; in guc_capture_prep_lists()
671 total_size += size; in guc_capture_prep_lists()
[all …]
/Linux-v6.1/drivers/platform/x86/intel/ifs/
Dload.c20 u32 total_size; member
175 unsigned long total_size, data_size; in ifs_sanity_check() local
178 total_size = get_totalsize(mc_header); in ifs_sanity_check()
181 if ((data_size + MC_HEADER_SIZE > total_size) || (total_size % sizeof(u32))) { in ifs_sanity_check()
193 for (int i = 0; i < total_size / sizeof(u32); i++) in ifs_sanity_check()
/Linux-v6.1/fs/orangefs/
Dorangefs-bufmap.c151 int total_size; member
224 bufmap->total_size = user_desc->total_size; in orangefs_bufmap_alloc()
239 bufmap->page_count = bufmap->total_size / PAGE_SIZE; in orangefs_bufmap_alloc()
324 if (user_desc->total_size < 0 || in orangefs_bufmap_initialize()
340 if (PAGE_ALIGN(((unsigned long)user_desc->ptr + user_desc->total_size)) in orangefs_bufmap_initialize()
341 != (unsigned long)(user_desc->ptr + user_desc->total_size)) { in orangefs_bufmap_initialize()
344 user_desc->total_size); in orangefs_bufmap_initialize()
348 if (user_desc->total_size != (user_desc->size * user_desc->count)) { in orangefs_bufmap_initialize()
350 user_desc->total_size, in orangefs_bufmap_initialize()
/Linux-v6.1/drivers/mtd/devices/
Dmtdram.c21 static unsigned long total_size = CONFIG_MTDRAM_TOTAL_SIZE; variable
24 #define MTDRAM_TOTAL_SIZE (total_size * 1024)
27 module_param(total_size, ulong, 0);
28 MODULE_PARM_DESC(total_size, "Total device size in KiB");
157 if (!total_size) in init_mtdram()
/Linux-v6.1/drivers/net/ethernet/rocker/
Drocker_tlv.c36 int total_size = rocker_tlv_total_size(attrlen); in rocker_tlv_put() local
39 if (unlikely(tail_room < total_size)) in rocker_tlv_put()
43 desc_info->tlv_size += total_size; in rocker_tlv_put()
/Linux-v6.1/drivers/usb/usbip/
Dvhci_tx.c62 size_t total_size = 0; in vhci_send_cmd_submit() local
156 total_size += txsize; in vhci_send_cmd_submit()
159 return total_size; in vhci_send_cmd_submit()
194 size_t total_size = 0; in vhci_send_cmd_unlink() local
229 total_size += txsize; in vhci_send_cmd_unlink()
232 return total_size; in vhci_send_cmd_unlink()
/Linux-v6.1/drivers/gpu/drm/tests/
Ddrm_mm_test.c1233 unsigned int total_size, struct evict_node *nodes) in evict_nothing() argument
1242 for (n = 0; n < total_size; n++) { in evict_nothing()
1250 for (n = 0; n < total_size; n++) { in evict_nothing()
1266 for (n = 0; n < total_size; n++) { in evict_nothing()
1279 unsigned int total_size, struct evict_node *nodes) in evict_everything() argument
1287 drm_mm_scan_init(&scan, mm, total_size, 0, 0, 0); in evict_everything()
1288 for (n = 0; n < total_size; n++) { in evict_everything()
1311 if (!assert_one_hole(test, mm, 0, total_size)) in evict_everything()
2048 const unsigned int total_size = min(8192u, max_iterations); in drm_test_mm_color_evict() local
2062 nodes = vzalloc(array_size(total_size, sizeof(*nodes))); in drm_test_mm_color_evict()
[all …]
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx4/
Dprofile.c83 u64 total_size = 0; in mlx4_make_profile() local
158 profile[i].start = total_size; in mlx4_make_profile()
159 total_size += profile[i].size; in mlx4_make_profile()
162 if (total_size > dev_cap->max_icm_sz) { in mlx4_make_profile()
164 (unsigned long long) total_size, in mlx4_make_profile()
179 (int) (total_size >> 10)); in mlx4_make_profile()
269 return total_size; in mlx4_make_profile()

123456789