Home
last modified time | relevance | path

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

123456789

/linux/drivers/video/fbdev/core/
H A Dfb_sys_fops.c22 unsigned long total_size, c; in fb_sys_read() local
31 total_size = info->screen_size; in fb_sys_read()
33 if (total_size == 0) in fb_sys_read()
34 total_size = info->fix.smem_len; in fb_sys_read()
36 if (p >= total_size) in fb_sys_read()
39 if (count >= total_size) in fb_sys_read()
40 count = total_size; in fb_sys_read()
42 if (count + p > total_size) in fb_sys_read()
43 count = total_size - p; in fb_sys_read()
67 unsigned long total_size, c; in fb_sys_write() local
[all …]
H A Dfb_io_fops.c13 unsigned long total_size, trailing; in fb_io_read() local
21 total_size = info->screen_size; in fb_io_read()
23 if (total_size == 0) in fb_io_read()
24 total_size = info->fix.smem_len; in fb_io_read()
26 if (p >= total_size) in fb_io_read()
29 if (count >= total_size) in fb_io_read()
30 count = total_size; in fb_io_read()
32 if (count + p > total_size) in fb_io_read()
33 count = total_size - p; in fb_io_read()
77 unsigned long total_size, trailing; in fb_io_write() local
[all …]
/linux/tools/testing/memblock/tests/
H A 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 …]
H A 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 …]
H A Dalloc_nid_api.c92 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_nid_top_down_simple_check()
145 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_nid_top_down_end_misaligned_check()
195 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_nid_exact_address_generic_check()
244 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_nid_top_down_narrow_range_check()
315 phys_addr_t total_size = r1_size + r2_size; in alloc_nid_min_reserved_generic_check() local
336 ASSERT_EQ(rgn->size, total_size); in alloc_nid_min_reserved_generic_check()
340 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_nid_min_reserved_generic_check()
367 phys_addr_t total_size = r1_size + r2_size; in alloc_nid_max_reserved_generic_check() local
386 ASSERT_EQ(rgn->size, total_size); in alloc_nid_max_reserved_generic_check()
390 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_nid_max_reserved_generic_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()
113 ASSERT_EQ(memblock.reserved.total_size, size + r1.size); in alloc_exact_nid_top_down_numa_part_reserved_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()
284 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_exact_nid_top_down_numa_no_overlap_low_check()
326 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_exact_nid_bottom_up_numa_simple_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()
[all …]
/linux/drivers/acpi/acpica/
H A 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/tools/testing/selftests/kvm/
H A Dguest_memfd_test.c45 static void test_file_size(int fd, size_t page_size, size_t total_size) in test_file_size() argument
52 TEST_ASSERT_EQ(sb.st_size, total_size); in test_file_size()
56 static void test_fallocate(int fd, size_t page_size, size_t total_size) in test_fallocate() argument
60 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE, 0, total_size); in test_fallocate()
67 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE, total_size, page_size); in test_fallocate()
70 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE, total_size + page_size, page_size); in test_fallocate()
74 total_size, page_size); in test_fallocate()
78 total_size + page_size, page_size); in test_fallocate()
93 static void test_invalid_punch_hole(int fd, size_t page_size, size_t total_size) in test_invalid_punch_hole() argument
176 size_t total_size; in main() local
[all …]
/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";
/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_debugdump.c106 u32 total_size; /* output */ member
314 &lev_sz->total_size, nfp_add_tlv_size); in nfp_calc_specific_level_size()
324 lev_sz.total_size = ALIGN8(sizeof(struct nfp_dump_prolog)); in nfp_net_dump_calculate_size()
331 return lev_sz.total_size; in nfp_net_dump_calculate_size()
358 u32 total_spec_size, total_size; in nfp_dump_error_tlv() local
362 total_size = ALIGN8(sizeof(*dump_header) + total_spec_size); in nfp_dump_error_tlv()
364 err = nfp_add_tlv(NFP_DUMPSPEC_TYPE_ERROR, total_size, dump); in nfp_dump_error_tlv()
377 u32 fwname_len, total_size; in nfp_dump_fwname() local
383 total_size = sizeof(*dump_header) + ALIGN8(fwname_len + 1); in nfp_dump_fwname()
385 err = nfp_add_tlv(NFP_DUMPSPEC_TYPE_FWNAME, total_size, dump); in nfp_dump_fwname()
[all …]
/linux/drivers/gpu/drm/vmwgfx/
H A Dvmw_surface_cache.h125 u32 slice_size, total_size; in vmw_surface_get_image_buffer_size() local
130 total_size = clamped_umul32(image_blocks.width, in vmw_surface_get_image_buffer_size()
132 total_size = clamped_umul32(total_size, image_blocks.depth); in vmw_surface_get_image_buffer_size()
133 total_size = clamped_umul32(total_size, desc->bytesPerBlock); in vmw_surface_get_image_buffer_size()
134 return total_size; in vmw_surface_get_image_buffer_size()
141 total_size = clamped_umul32(slice_size, image_blocks.depth); in vmw_surface_get_image_buffer_size()
143 return total_size; in vmw_surface_get_image_buffer_size()
156 u32 total_size = 0; in vmw_surface_get_serialized_size() local
162 total_size += vmw_surface_get_image_buffer_size(desc, in vmw_surface_get_serialized_size()
166 return total_size * num_layers; in vmw_surface_get_serialized_size()
[all …]
/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()
/linux/net/batman-adv/
H A Dfragmentation.c176 chain->total_size = ntohs(frag_packet->total_size); in batadv_frag_insert_packet()
211 chain->total_size != ntohs(frag_packet->total_size) || in batadv_frag_insert_packet()
212 chain->total_size > batadv_frag_size_limit()) { in batadv_frag_insert_packet()
219 } else if (ntohs(frag_packet->total_size) == chain->size) { in batadv_frag_insert_packet()
264 size = ntohs(packet->total_size) + hdr_size; in batadv_frag_merge_packets()
355 u16 total_size; in batadv_frag_skb_fwd() local
367 total_size = ntohs(packet->total_size); in batadv_frag_skb_fwd()
368 if (total_size > neigh_node->if_incoming->net_dev->mtu) { in batadv_frag_skb_fwd()
490 frag_header.total_size = htons(skb->len); in batadv_frag_send_packet()
/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
/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()
/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()
/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()
/linux/drivers/gpu/drm/xe/
H A Dxe_guc_ads.c271 size_t total_size = 0, alloc_size, real_size; in calculate_golden_lrc_size() local
280 total_size += alloc_size; in calculate_golden_lrc_size()
283 return total_size; in calculate_golden_lrc_size()
577 int owner, int type, int class, u32 *total_size, size_t *size, in get_capture_list() argument
583 if (*total_size + *size > ads->capture_size) in get_capture_list()
585 *total_size + *size, ads->capture_size); in get_capture_list()
597 u32 ads_ggtt, capture_offset, null_ggtt, total_size = 0; in guc_capture_prep_lists() local
615 total_size = PAGE_SIZE; in guc_capture_prep_lists()
641 j, &total_size, &size, &ptr); in guc_capture_prep_lists()
647 total_size += size; in guc_capture_prep_lists()
[all …]
/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()
322 if (user_desc->total_size < 0 || in orangefs_bufmap_initialize()
338 if (PAGE_ALIGN(((unsigned long)user_desc->ptr + user_desc->total_size)) in orangefs_bufmap_initialize()
339 != (unsigned long)(user_desc->ptr + user_desc->total_size)) { in orangefs_bufmap_initialize()
342 user_desc->total_size); in orangefs_bufmap_initialize()
346 if (user_desc->total_size != (user_desc->size * user_desc->count)) { in orangefs_bufmap_initialize()
348 user_desc->total_size, in orangefs_bufmap_initialize()
/linux/drivers/video/fbdev/
H A Dsm712fb.c1034 unsigned long total_size; in smtcfb_read() local
1039 total_size = info->screen_size; in smtcfb_read()
1041 if (total_size == 0) in smtcfb_read()
1042 total_size = info->fix.smem_len; 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()
1050 if (count + p > total_size) in smtcfb_read()
1051 count = total_size - p; in smtcfb_read()
1097 unsigned long total_size; in smtcfb_write() local
[all …]
/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()
/linux/drivers/accel/amdxdna/
H A Damdxdna_mailbox.c74 __u32 total_size; member
267 header->opcode, header->total_size, header->id); in mailbox_get_resp()
268 ret = mb_msg->notify_cb(mb_msg->handle, data, header->total_size); in mailbox_get_resp()
306 header.total_size = readl(read_addr); in mailbox_get_msg()
308 if (header.total_size == TOMBSTONE) { in mailbox_get_msg()
318 if (unlikely(!header.total_size || !IS_ALIGNED(header.total_size, 4))) { in mailbox_get_msg()
319 MB_WARN_ONCE(mb_chann, "Invalid total size 0x%x", header.total_size); in mailbox_get_msg()
322 msg_size = sizeof(header) + header.total_size; in mailbox_get_msg()
432 header->total_size = msg->send_size; in xdna_mailbox_send_msg()
446 header->opcode, header->total_size, header->id); in xdna_mailbox_send_msg()
/linux/drivers/gpu/drm/i915/gt/uc/
H A Dintel_guc_ads.c533 u32 total_size = 0, alloc_size, real_size; in guc_prep_golden_context() local
569 total_size += alloc_size; in guc_prep_golden_context()
595 GEM_BUG_ON(guc->ads_golden_ctxt_size != total_size); in guc_prep_golden_context()
597 return total_size; in guc_prep_golden_context()
623 u32 addr_ggtt, total_size = 0, alloc_size, real_size; in guc_init_golden_context() local
645 total_size += alloc_size; in guc_init_golden_context()
667 GEM_BUG_ON(guc->ads_golden_ctxt_size != total_size); in guc_init_golden_context()
707 u32 ads_ggtt, capture_offset, null_ggtt, total_size = 0; in guc_capture_prep_lists() local
728 total_size = PAGE_SIZE; in guc_capture_prep_lists()
755 total_size += size; in guc_capture_prep_lists()
[all …]
/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()

123456789