Home
last modified time | relevance | path

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

1234567

/Linux-v4.19/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-v4.19/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-v4.19/drivers/net/ethernet/netronome/nfp/
Dnfp_net_debugdump.c131 u32 total_size; /* output */ member
349 &lev_sz->total_size, nfp_add_tlv_size); in nfp_calc_specific_level_size()
359 lev_sz.total_size = ALIGN8(sizeof(struct nfp_dump_prolog)); in nfp_net_dump_calculate_size()
366 return lev_sz.total_size; in nfp_net_dump_calculate_size()
393 u32 total_spec_size, total_size; in nfp_dump_error_tlv() local
397 total_size = ALIGN8(sizeof(*dump_header) + total_spec_size); in nfp_dump_error_tlv()
399 err = nfp_add_tlv(NFP_DUMPSPEC_TYPE_ERROR, total_size, dump); in nfp_dump_error_tlv()
412 u32 fwname_len, total_size; in nfp_dump_fwname() local
418 total_size = sizeof(*dump_header) + ALIGN8(fwname_len + 1); in nfp_dump_fwname()
420 err = nfp_add_tlv(NFP_DUMPSPEC_TYPE_FWNAME, total_size, dump); in nfp_dump_fwname()
[all …]
/Linux-v4.19/tools/testing/selftests/zram/
Dzram01.sh62 local total_size=0
65 total_size=$(($total_size + $s))
68 echo "zram used ${used_mem}M, zram disk sizes ${total_size}M"
70 local v=$((100 * $total_size / $used_mem))
/Linux-v4.19/tools/testing/selftests/bpf/
Dtest_get_stack_rawtp.c60 int max_len, max_buildid_len, usize, ksize, total_size; in bpf_prog1() local
94 total_size = usize + ksize; in bpf_prog1()
95 if (total_size > 0 && total_size <= max_len) in bpf_prog1()
96 bpf_perf_event_output(ctx, &perfmap, 0, raw_data, total_size); in bpf_prog1()
/Linux-v4.19/drivers/staging/vboxvideo/
Dvbox_hgsmi.c72 size_t total_size; in hgsmi_buffer_alloc() local
75 total_size = size + sizeof(*h) + sizeof(*t); in hgsmi_buffer_alloc()
76 h = gen_pool_dma_alloc(guest_pool, total_size, &offset); in hgsmi_buffer_alloc()
98 size_t total_size = h->data_size + sizeof(*h) + in hgsmi_buffer_free() local
101 gen_pool_free(guest_pool, (unsigned long)h, total_size); in hgsmi_buffer_free()
/Linux-v4.19/net/batman-adv/
Dfragmentation.c190 chain->total_size = ntohs(frag_packet->total_size); in batadv_frag_insert_packet()
225 chain->total_size != ntohs(frag_packet->total_size) || in batadv_frag_insert_packet()
226 chain->total_size > batadv_frag_size_limit()) { in batadv_frag_insert_packet()
233 } else if (ntohs(frag_packet->total_size) == chain->size) { in batadv_frag_insert_packet()
278 size = ntohs(packet->total_size); in batadv_frag_merge_packets()
370 u16 total_size; in batadv_frag_skb_fwd() local
385 total_size = ntohs(packet->total_size); in batadv_frag_skb_fwd()
386 if (total_size > neigh_node->if_incoming->net_dev->mtu) { in batadv_frag_skb_fwd()
495 frag_header.total_size = htons(skb->len); in batadv_frag_send_packet()
/Linux-v4.19/drivers/gpu/drm/vmwgfx/device_include/
Dsvga3d_surfacedefs.h1194 u32 slice_size, total_size; in svga3dsurface_get_image_buffer_size() local
1199 total_size = clamped_umul32(image_blocks.width, in svga3dsurface_get_image_buffer_size()
1201 total_size = clamped_umul32(total_size, image_blocks.depth); in svga3dsurface_get_image_buffer_size()
1202 total_size = clamped_umul32(total_size, desc->bytes_per_block); in svga3dsurface_get_image_buffer_size()
1203 return total_size; in svga3dsurface_get_image_buffer_size()
1210 total_size = clamped_umul32(slice_size, image_blocks.depth); in svga3dsurface_get_image_buffer_size()
1212 return total_size; in svga3dsurface_get_image_buffer_size()
1225 u32 total_size = 0; in svga3dsurface_get_serialized_size() local
1231 total_size += svga3dsurface_get_image_buffer_size(desc, in svga3dsurface_get_serialized_size()
1235 return total_size * num_layers; in svga3dsurface_get_serialized_size()
[all …]
/Linux-v4.19/drivers/infiniband/hw/mthca/
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()
/Linux-v4.19/drivers/video/fbdev/
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()
Dsm712fb.c956 unsigned long total_size; in smtcfb_read() local
964 total_size = info->screen_size; in smtcfb_read()
966 if (total_size == 0) in smtcfb_read()
967 total_size = info->fix.smem_len; in smtcfb_read()
969 if (p >= total_size) in smtcfb_read()
972 if (count >= total_size) in smtcfb_read()
973 count = total_size; in smtcfb_read()
975 if (count + p > total_size) in smtcfb_read()
976 count = total_size - p; in smtcfb_read()
1033 unsigned long total_size; in smtcfb_write() local
[all …]
/Linux-v4.19/drivers/usb/usbip/
Dvhci_tx.c59 size_t total_size = 0; in vhci_send_cmd_submit() local
118 total_size += txsize; in vhci_send_cmd_submit()
121 return total_size; in vhci_send_cmd_submit()
150 size_t total_size = 0; in vhci_send_cmd_unlink() local
186 total_size += txsize; in vhci_send_cmd_unlink()
189 return total_size; in vhci_send_cmd_unlink()
Dstub_tx.c156 size_t total_size = 0; in stub_send_ret_submit() local
276 total_size += txsize; in stub_send_ret_submit()
285 return total_size; in stub_send_ret_submit()
315 size_t total_size = 0; in stub_send_ret_unlink() local
347 total_size += txsize; in stub_send_ret_unlink()
359 return total_size; in stub_send_ret_unlink()
/Linux-v4.19/fs/orangefs/
Dorangefs-bufmap.c151 int total_size; member
227 bufmap->total_size = user_desc->total_size; in orangefs_bufmap_alloc()
243 bufmap->page_count = bufmap->total_size / PAGE_SIZE; in orangefs_bufmap_alloc()
328 if (user_desc->total_size < 0 || in orangefs_bufmap_initialize()
344 if (PAGE_ALIGN(((unsigned long)user_desc->ptr + user_desc->total_size)) in orangefs_bufmap_initialize()
345 != (unsigned long)(user_desc->ptr + user_desc->total_size)) { in orangefs_bufmap_initialize()
348 user_desc->total_size); in orangefs_bufmap_initialize()
352 if (user_desc->total_size != (user_desc->size * user_desc->count)) { in orangefs_bufmap_initialize()
354 user_desc->total_size, in orangefs_bufmap_initialize()
/Linux-v4.19/drivers/mtd/devices/
Dmtdram.c21 static unsigned long total_size = CONFIG_MTDRAM_TOTAL_SIZE; variable
24 #define MTDRAM_TOTAL_SIZE (total_size * 1024)
28 module_param(total_size, ulong, 0);
29 MODULE_PARM_DESC(total_size, "Total device size in KiB");
159 if (!total_size) in init_mtdram()
/Linux-v4.19/drivers/net/ethernet/rocker/
Drocker_tlv.c40 int total_size = rocker_tlv_total_size(attrlen); in rocker_tlv_put() local
43 if (unlikely(tail_room < total_size)) in rocker_tlv_put()
47 desc_info->tlv_size += total_size; in rocker_tlv_put()
/Linux-v4.19/drivers/gpu/drm/selftests/
Dtest-drm_mm.c1234 unsigned int total_size, in evict_nothing() argument
1244 for (n = 0; n < total_size; n++) { in evict_nothing()
1252 for (n = 0; n < total_size; n++) { in evict_nothing()
1268 for (n = 0; n < total_size; n++) { in evict_nothing()
1281 unsigned int total_size, in evict_everything() argument
1290 drm_mm_scan_init(&scan, mm, total_size, 0, 0, 0); in evict_everything()
1291 for (n = 0; n < total_size; n++) { in evict_everything()
1314 if (!assert_one_hole(mm, 0, total_size)) in evict_everything()
2156 const unsigned int total_size = min(8192u, max_iterations); in igt_color_evict() local
2172 nodes = vzalloc(array_size(total_size, sizeof(*nodes))); in igt_color_evict()
[all …]
/Linux-v4.19/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()
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_cudbg.c356 u32 i, total_size = 0; in cxgb4_cudbg_collect_entity() local
381 total_size += entity_hdr->size; in cxgb4_cudbg_collect_entity()
384 *tot_size += total_size; in cxgb4_cudbg_collect_entity()
413 u32 size, min_size, total_size = 0; in cxgb4_cudbg_collect() local
463 total_size = dbg_buff.offset; in cxgb4_cudbg_collect()
470 &total_size); in cxgb4_cudbg_collect()
477 &total_size); in cxgb4_cudbg_collect()
480 cudbg_hdr->data_len = total_size; in cxgb4_cudbg_collect()
484 *buf_size = total_size; in cxgb4_cudbg_collect()
/Linux-v4.19/mm/kasan/
Dquarantine.c214 size_t total_size, new_quarantine_size, percpu_quarantines; in quarantine_reduce() local
239 total_size = (READ_ONCE(totalram_pages) << PAGE_SHIFT) / in quarantine_reduce()
242 new_quarantine_size = (total_size < percpu_quarantines) ? in quarantine_reduce()
243 0 : total_size - percpu_quarantines; in quarantine_reduce()
247 2 * total_size / QUARANTINE_BATCHES)); in quarantine_reduce()
/Linux-v4.19/drivers/gpu/drm/bridge/
Dmegachips-stdpxxxx-ge-b850v3-fw.c83 unsigned int total_size; in stdp2690_get_edid() local
113 total_size = (block[EDID_EXT_BLOCK_CNT] + 1) * EDID_LENGTH; in stdp2690_get_edid()
114 if (total_size > EDID_LENGTH) { in stdp2690_get_edid()
116 block = kmalloc(total_size, GFP_KERNEL); in stdp2690_get_edid()
124 msgs[1].len = total_size; in stdp2690_get_edid()
/Linux-v4.19/tools/perf/jvmti/
Djvmti_agent.c283 header.total_size = sizeof(header); in jvmti_open()
313 rec.p.total_size = sizeof(rec); in jvmti_close()
351 rec.p.total_size = sizeof(rec) + sym_len; in jvmti_write_code()
361 rec.p.total_size += size; in jvmti_write_code()
428 rec.p.total_size = size; in jvmti_write_debug_info()
/Linux-v4.19/drivers/firmware/efi/
Dcapsule-loader.c45 pages_needed = ALIGN(cap_info->total_size, PAGE_SIZE) / PAGE_SIZE; in __efi_capsule_setup_info()
100 cap_info->total_size = cap_info->header.imagesize; in efi_capsule_setup_info()
225 cap_info->count >= cap_info->total_size) { in efi_capsule_write()
226 if (cap_info->count > cap_info->total_size) { in efi_capsule_write()
/Linux-v4.19/arch/x86/kernel/cpu/microcode/
Dintel.c116 unsigned long total_size = get_totalsize(mc_header); in microcode_matches() local
134 if (total_size <= data_size + MC_HEADER_SIZE) in microcode_matches()
229 unsigned long total_size, data_size, ext_table_size; in microcode_sanity_check() local
235 total_size = get_totalsize(mc_header); in microcode_sanity_check()
238 if (data_size + MC_HEADER_SIZE > total_size) { in microcode_sanity_check()
250 ext_table_size = total_size - (MC_HEADER_SIZE + data_size); in microcode_sanity_check()
426 unsigned int sig, pf, rev, total_size, data_size, date; in show_saved_mc() local
455 total_size = get_totalsize(mc_saved_header); in show_saved_mc()
459 i++, sig, pf, rev, total_size, in show_saved_mc()
465 if (total_size <= data_size + MC_HEADER_SIZE) in show_saved_mc()
/Linux-v4.19/tools/perf/util/
Djitdump.c169 header.total_size = bswap_32(header.total_size); in jit_open()
181 header.total_size, in jit_open()
212 bs = header.total_size - sizeof(header); in jit_open()
273 prefix->total_size = bswap_32(prefix->total_size); in jit_get_next_entry()
277 size = prefix->total_size; in jit_get_next_entry()
411 code = (unsigned long)jr + jr->load.p.total_size - csize; in jit_repipe_code_load()
600 sz = jr->prefix.total_size - sizeof(jr->info); in jit_repipe_debug_info()
627 unwinding_data_size = jr->prefix.total_size - sizeof(jr->unwinding); in jit_repipe_unwinding_info()

1234567