Home
last modified time | relevance | path

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

12345678910>>...13

/openbmc/linux/drivers/video/fbdev/core/
H A Dfb_sys_fops.c22 unsigned long total_size, c; in fb_sys_read() local
30 if (total_size == 0) in fb_sys_read()
33 if (p >= total_size) in fb_sys_read()
36 if (count >= total_size) in fb_sys_read()
37 count = total_size; in fb_sys_read()
40 count = total_size - p; in fb_sys_read()
72 if (total_size == 0) in fb_sys_write()
75 if (p > total_size) in fb_sys_write()
78 if (count > total_size) { in fb_sys_write()
80 count = total_size; in fb_sys_write()
[all …]
H A Dfb_io_fops.c20 if (total_size == 0) in fb_io_read()
23 if (p >= total_size) in fb_io_read()
26 if (count >= total_size) in fb_io_read()
27 count = total_size; in fb_io_read()
29 if (count + p > total_size) in fb_io_read()
30 count = total_size - p; in fb_io_read()
81 if (total_size == 0) in fb_io_write()
84 if (p > total_size) in fb_io_write()
87 if (count > total_size) { in fb_io_write()
89 count = total_size; in fb_io_write()
[all …]
/openbmc/linux/drivers/acpi/acpica/
H A Drscalc.c245 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()
269 total_size = (acpi_rs_length)(total_size + in acpi_rs_get_aml_length()
282 total_size = (acpi_rs_length)(total_size + in acpi_rs_get_aml_length()
296 total_size = (acpi_rs_length)(total_size + in acpi_rs_get_aml_length()
309 total_size = (acpi_rs_length)(total_size + in acpi_rs_get_aml_length()
325 total_size = (acpi_rs_length)(total_size + in acpi_rs_get_aml_length()
341 total_size = (acpi_rs_length)(total_size + in acpi_rs_get_aml_length()
354 total_size = (acpi_rs_length)(total_size + in acpi_rs_get_aml_length()
368 total_size = (acpi_rs_length)(total_size + in acpi_rs_get_aml_length()
[all …]
/openbmc/linux/tools/testing/memblock/tests/
H A Dbasic_api.c198 ASSERT_EQ(memblock.memory.total_size, total_size); in memblock_add_overlap_top_check()
250 ASSERT_EQ(memblock.memory.total_size, total_size); in memblock_add_overlap_bottom_check()
375 ASSERT_EQ(memblock.memory.total_size, total_size); in memblock_add_between_check()
419 ASSERT_EQ(memblock.memory.total_size, total_size); in memblock_add_near_max_check()
663 ASSERT_EQ(memblock.reserved.total_size, total_size); in memblock_reserve_overlap_top_check()
716 ASSERT_EQ(memblock.reserved.total_size, total_size); in memblock_reserve_overlap_bottom_check()
1152 ASSERT_EQ(memblock.memory.total_size, total_size); in memblock_remove_overlap_top_check()
1204 ASSERT_EQ(memblock.memory.total_size, total_size); in memblock_remove_overlap_bottom_check()
1264 ASSERT_EQ(memblock.memory.total_size, total_size); in memblock_remove_within_check()
1350 ASSERT_EQ(memblock.memory.total_size, total_size); in memblock_remove_near_max_check()
[all …]
H A Dalloc_api.c80 phys_addr_t total_size; in alloc_top_down_disjoint_check() local
106 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_top_down_disjoint_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
196 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_top_down_after_check()
246 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_top_down_second_fit_check()
300 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_in_between_generic_check()
583 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_bottom_up_disjoint_check()
622 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_bottom_up_before_check()
669 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_bottom_up_after_check()
[all …]
H A Dalloc_nid_api.c340 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_nid_min_reserved_generic_check()
390 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_nid_max_reserved_generic_check()
422 phys_addr_t total_size; in alloc_nid_top_down_reserved_with_space_check() local
456 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_nid_top_down_reserved_with_space_check()
485 phys_addr_t total_size; in alloc_nid_reserved_full_merge_generic_check() local
516 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_nid_reserved_full_merge_generic_check()
583 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_nid_top_down_reserved_no_space_check()
929 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_nid_bottom_up_reserved_with_space_check()
1002 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_nid_bottom_up_reserved_no_space_check()
1980 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_nid_bottom_up_numa_part_reserved_check()
[all …]
H A 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()
H A Dalloc_exact_nid_api.c57 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_exact_nid_top_down_numa_simple_check()
170 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_exact_nid_top_down_numa_split_range_low_check()
227 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_exact_nid_top_down_numa_no_overlap_split_check()
358 phys_addr_t total_size; in alloc_exact_nid_bottom_up_numa_part_reserved_check() local
369 total_size = size + r1.size; in alloc_exact_nid_bottom_up_numa_part_reserved_check()
379 ASSERT_EQ(new_rgn->size, total_size); in alloc_exact_nid_bottom_up_numa_part_reserved_check()
384 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_exact_nid_bottom_up_numa_part_reserved_check()
847 phys_addr_t total_size; in alloc_exact_nid_numa_reserved_full_merge_generic_check() local
860 total_size = r1.size + r2.size + size; in alloc_exact_nid_numa_reserved_full_merge_generic_check()
874 ASSERT_EQ(new_rgn->size, total_size); in alloc_exact_nid_numa_reserved_full_merge_generic_check()
[all …]
/openbmc/linux/scripts/
H A Dcheckstack.pl134 my ($func, $file, $lastslash, $total_size, $addr, $intro);
136 $total_size = 0;
142 if ($total_size > $min_stack) {
143 push @stack, "$intro$total_size\n";
153 $total_size = 0;
174 $total_size += $size;
180 $total_size += $size;
185 $total_size += $size;
188 if ($total_size > $min_stack) {
189 push @stack, "$intro$total_size\n";
/openbmc/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_debugdump.c101 u32 total_size; /* output */ member
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
372 u32 fwname_len, total_size; in nfp_dump_fwname() local
394 u32 hwinfo_size, total_size; in nfp_dump_hwinfo() local
417 u32 total_size; in nfp_dump_hwinfo_field() local
453 u32 reg_sz, header_size, total_size; in nfp_dump_csr_range() local
465 total_size = header_size + in nfp_dump_csr_range()
556 u32 reg_sz, header_size, total_size; in nfp_dump_indirect_csr_range() local
723 u32 total_size; in nfp_dump_populate_prolog() local
[all …]
/openbmc/linux/drivers/gpu/drm/vmwgfx/
H A 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()
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()
174 uint64_t total_size = in vmw_surface_get_serialized_size_extended() local
[all …]
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A 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()
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/
H A 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()
/openbmc/qemu/tests/qemu-iotests/
H A D31369 total_size=$(( ${total_data_clusters} * ${cluster_size} ))
74 TEST_IMG_FILE=$TEST_IMG.base _make_test_img -o $options $total_size | _filter_img_create_size
79 $QEMU_IO -c "write -P 1 0 $total_size" $TEST_IMG.base | _filter_qemu_io
89 $QEMU_IO -c "write -z 0 $total_size" $TEST_IMG | _filter_qemu_io
/openbmc/linux/tools/bootconfig/
H A 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
/openbmc/linux/drivers/gpu/drm/vboxvideo/
H A 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()
/openbmc/linux/net/batman-adv/
H A 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()
/openbmc/qemu/linux-user/aarch64/
H A Dsignal.c525 int total_size; member
538 int this_loc = l->total_size; in alloc_sigframe_space()
550 l->std_end_ofs = l->total_size; in alloc_sigframe_space()
554 l->extra_base = this_loc = l->total_size; in alloc_sigframe_space()
557 l->total_size += this_size; in alloc_sigframe_space()
568 .total_size = offsetof(struct target_rt_sigframe, in target_setup_frame()
608 layout.std_end_ofs = layout.total_size; in target_setup_frame()
615 layout.total_size = MAX(layout.total_size, in target_setup_frame()
622 fr_ofs = layout.total_size; in target_setup_frame()
678 unlock_user(frame, frame_addr, layout.total_size); in target_setup_frame()
[all …]
/openbmc/linux/drivers/infiniband/hw/mthca/
H A 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()
/openbmc/linux/drivers/net/ethernet/rocker/
H A 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()
/openbmc/linux/drivers/mtd/devices/
H A 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()
/openbmc/linux/fs/orangefs/
H A 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()
/openbmc/linux/drivers/video/fbdev/
H A Dsm712fb.c1034 unsigned long total_size; in smtcfb_read() local
1041 if (total_size == 0) in smtcfb_read()
1044 if (p >= total_size) in smtcfb_read()
1047 if (count >= total_size) in smtcfb_read()
1048 count = total_size; in smtcfb_read()
1051 count = total_size - p; in smtcfb_read()
1097 unsigned long total_size; in smtcfb_write() local
1104 if (total_size == 0) in smtcfb_write()
1107 if (p > total_size) in smtcfb_write()
1112 count = total_size; in smtcfb_write()
[all …]
/openbmc/linux/drivers/gpu/drm/i915/gt/uc/
H A Dintel_guc_ads.c509 u32 total_size = 0, alloc_size, real_size; in guc_prep_golden_context() local
545 total_size += alloc_size; in guc_prep_golden_context()
573 return total_size; in guc_prep_golden_context()
621 total_size += alloc_size; in guc_init_golden_context()
704 total_size = PAGE_SIZE; in guc_capture_prep_lists()
731 total_size += size; in guc_capture_prep_lists()
733 if (total_size > guc->ads_capture_size || in guc_capture_prep_lists()
753 total_size += size; in guc_capture_prep_lists()
773 total_size += size; in guc_capture_prep_lists()
775 if (total_size > guc->ads_capture_size || in guc_capture_prep_lists()
[all …]
/openbmc/linux/drivers/usb/usbip/
H A 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()

12345678910>>...13