Home
last modified time | relevance | path

Searched refs:total_size (Results 1 - 25 of 415) sorted by relevance

12345678910>>...17

/kernel/linux/linux-5.10/drivers/video/fbdev/core/
H A 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...]
/kernel/linux/linux-6.6/drivers/video/fbdev/core/
H A Dfb_sys_fops.c22 unsigned long total_size, c; in fb_sys_read() local
28 total_size = info->screen_size; in fb_sys_read()
30 if (total_size == 0) in fb_sys_read()
31 total_size = info->fix.smem_len; 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()
39 if (count + p > total_size) in fb_sys_read()
40 count = total_size - p; in fb_sys_read()
64 unsigned long total_size, in fb_sys_write() local
[all...]
H A Dfb_io_fops.c13 unsigned long total_size, trailing; in fb_io_read() local
18 total_size = info->screen_size; in fb_io_read()
20 if (total_size == 0) in fb_io_read()
21 total_size = info->fix.smem_len; 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()
74 unsigned long total_size, trailin in fb_io_write() local
[all...]
/kernel/linux/linux-6.6/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 in memblock_add_overlap_bottom_check()
345 phys_addr_t total_size; memblock_add_between_check() local
399 phys_addr_t total_size; memblock_add_near_max_check() local
638 phys_addr_t total_size; memblock_reserve_overlap_top_check() local
691 phys_addr_t total_size; memblock_reserve_overlap_bottom_check() local
814 phys_addr_t total_size; memblock_reserve_between_check() local
868 phys_addr_t total_size; memblock_reserve_near_max_check() local
1125 phys_addr_t r1_end, r2_end, total_size; memblock_remove_overlap_top_check() local
1179 phys_addr_t total_size; memblock_remove_overlap_bottom_check() local
1233 phys_addr_t r1_size, r2_size, total_size; memblock_remove_within_check() local
1324 phys_addr_t total_size; memblock_remove_near_max_check() local
1375 phys_addr_t new_r1_size, new_r2_size, r2_end, r3_end, total_size; memblock_remove_overlap_two_check() local
1558 phys_addr_t total_size; memblock_free_overlap_top_check() local
1607 phys_addr_t total_size; memblock_free_overlap_bottom_check() local
1661 phys_addr_t r1_size, r2_size, total_size; memblock_free_within_check() local
1751 phys_addr_t total_size; memblock_free_near_max_check() local
1802 phys_addr_t new_r1_size, new_r2_size, r2_end, r3_end, total_size; memblock_free_overlap_two_check() local
[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_siz in alloc_top_down_before_check()
172 phys_addr_t total_size; alloc_top_down_after_check() local
221 phys_addr_t total_size; alloc_top_down_second_fit_check() local
275 phys_addr_t total_size; alloc_in_between_generic_check() local
557 phys_addr_t total_size; alloc_bottom_up_disjoint_check() local
606 phys_addr_t total_size = r1_size + r2_size; alloc_bottom_up_before_check() local
645 phys_addr_t total_size; alloc_bottom_up_after_check() local
695 phys_addr_t total_size; alloc_bottom_up_second_fit_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()
422 phys_addr_t total_size; alloc_nid_top_down_reserved_with_space_check() local
485 phys_addr_t total_size; alloc_nid_reserved_full_merge_generic_check() local
549 phys_addr_t total_size; alloc_nid_top_down_reserved_no_space_check() local
895 phys_addr_t total_size; alloc_nid_bottom_up_reserved_with_space_check() local
965 phys_addr_t total_size; alloc_nid_bottom_up_reserved_no_space_check() local
1955 phys_addr_t total_size; alloc_nid_bottom_up_numa_part_reserved_check() local
2398 phys_addr_t total_size; alloc_nid_numa_reserved_full_merge_generic_check() local
[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_siz in alloc_from_bottom_up_no_space_above_check()
[all...]
/kernel/linux/linux-5.10/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()
[all...]
/kernel/linux/linux-6.6/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()
[all...]
/kernel/linux/linux-5.10/scripts/
H A Dcheckstack.pl138 my ($func, $file, $lastslash, $total_size, $addr, $intro);
140 $total_size = 0;
146 if ($total_size > $min_stack) {
147 push @stack, "$intro$total_size\n";
157 $total_size = 0;
178 $total_size += $size;
184 $total_size += $size;
189 $total_size += $size;
192 if ($total_size > $min_stack) {
193 push @stack, "$intro$total_size\
[all...]
/kernel/linux/linux-6.6/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\
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/
H A 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, dum in nfp_dump_fwname()
394 u32 hwinfo_size, total_size; nfp_dump_hwinfo() local
417 u32 total_size; nfp_dump_hwinfo_field() local
453 u32 reg_sz, header_size, total_size; nfp_dump_csr_range() local
556 u32 reg_sz, header_size, total_size; nfp_dump_indirect_csr_range() local
603 u32 header_size, total_size, sym_size; nfp_dump_single_rtsym() local
723 u32 total_size; nfp_dump_populate_prolog() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/netronome/nfp/
H A 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, dum in nfp_dump_fwname()
394 u32 hwinfo_size, total_size; nfp_dump_hwinfo() local
417 u32 total_size; nfp_dump_hwinfo_field() local
453 u32 reg_sz, header_size, total_size; nfp_dump_csr_range() local
556 u32 reg_sz, header_size, total_size; nfp_dump_indirect_csr_range() local
603 u32 header_size, total_size, sym_size; nfp_dump_single_rtsym() local
723 u32 total_size; nfp_dump_populate_prolog() local
[all...]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/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()
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 in vmw_surface_get_serialized_size() local
174 uint64_t total_size = vmw_surface_get_serialized_size_extended() local
[all...]
/kernel/linux/linux-5.10/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()
168 u32 size, min_size, total_size = 0; in cxgb4_cudbg_collect() local
218 total_size = dbg_buff.offset; in cxgb4_cudbg_collect()
225 &total_size); in cxgb4_cudbg_collect()
232 &total_size); in cxgb4_cudbg_collect()
239 &total_size); in cxgb4_cudbg_collect()
242 cudbg_hdr->data_len = total_size; in cxgb4_cudbg_collect()
246 *buf_size = total_size; in cxgb4_cudbg_collect()
[all...]
/kernel/linux/linux-6.6/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()
[all...]
/kernel/linux/linux-5.10/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
/kernel/linux/linux-6.6/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
/kernel/linux/linux-5.10/drivers/infiniband/hw/mthca/
H A Dmthca_profile.c78 s64 total_size = 0; in mthca_make_profile() local
144 profile[i].start = mem_base + total_size; in mthca_make_profile()
145 total_size += profile[i].size; in mthca_make_profile()
147 if (total_size > mem_avail) { in mthca_make_profile()
150 (unsigned long long) total_size, in mthca_make_profile()
166 (int) (total_size >> 10)); in mthca_make_profile()
169 (int) (total_size >> 10), (int) (mem_avail >> 10), in mthca_make_profile()
170 (int) ((mem_avail - total_size) >> 10)); in mthca_make_profile()
280 return total_size; in mthca_make_profile()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/drivers/video/fbdev/
H A Dhecubafb.c165 unsigned long total_size; in hecubafb_write() local
170 total_size = info->fix.smem_len; in hecubafb_write()
172 if (p > total_size) in hecubafb_write()
175 if (count > total_size) { in hecubafb_write()
177 count = total_size; in hecubafb_write()
180 if (count + p > total_size) { in hecubafb_write()
184 count = total_size - p; in hecubafb_write()

Completed in 13 milliseconds

12345678910>>...17