| /linux/drivers/video/fbdev/core/ |
| A D | fb_sys_fops.c | 22 unsigned long total_size; in fb_sys_read() local 29 if (total_size == 0) 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() 39 count = total_size - p; in fb_sys_read() 62 unsigned long total_size; in fb_sys_write() local 69 if (total_size == 0) in fb_sys_write() 72 if (p > total_size) in fb_sys_write() 77 count = total_size; in fb_sys_write() [all …]
|
| /linux/drivers/acpi/acpica/ |
| A D | rscalc.c | 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() 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() 331 total_size = (acpi_rs_length)(total_size + in acpi_rs_get_aml_length() 344 total_size = (acpi_rs_length)(total_size + in acpi_rs_get_aml_length() 358 total_size = (acpi_rs_length)(total_size + in acpi_rs_get_aml_length() 371 total_size = (acpi_rs_length)(total_size + in acpi_rs_get_aml_length() [all …]
|
| /linux/scripts/ |
| A D | checkstack.pl | 138 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"; 161 $total_size = 0; 182 $total_size += $size; 188 $total_size += $size; 193 $total_size += $size; 196 if ($total_size > $min_stack) { 197 push @stack, "$intro$total_size\n";
|
| /linux/drivers/net/ethernet/netronome/nfp/ |
| A D | nfp_net_debugdump.c | 101 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 …]
|
| /linux/drivers/gpu/drm/vmwgfx/ |
| A D | vmw_surface_cache.h | 119 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 …]
|
| /linux/tools/testing/selftests/zram/ |
| A D | zram01.sh | 53 local total_size=0 56 total_size=$(($total_size + $s)) 59 echo "zram used ${used_mem}M, zram disk sizes ${total_size}M" 61 local v=$((100 * $total_size / $used_mem))
|
| /linux/drivers/net/ethernet/chelsio/cxgb4/ |
| A D | cxgb4_cudbg.c | 111 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/ |
| A D | fragmentation.c | 177 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() 485 frag_header.total_size = htons(skb->len); in batadv_frag_send_packet()
|
| /linux/tools/bootconfig/ |
| A D | test-bootconfig.sh | 63 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
|
| A D | main.c | 363 size_t total_size; in apply_xbc() local 428 total_size = stat.st_size + size + sizeof(uint32_t) * 2 + BOOTCONFIG_MAGIC_LEN; in apply_xbc() 429 pad = ((total_size + BOOTCONFIG_ALIGN - 1) & (~BOOTCONFIG_ALIGN_MASK)) - total_size; in apply_xbc() 443 total_size = p - data; in apply_xbc() 445 ret = write(fd, data, total_size); in apply_xbc() 446 if (ret < total_size) { in apply_xbc()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| A D | test_get_stack_rawtp.c | 60 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/ |
| A D | vbox_hgsmi.c | 52 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/ |
| A D | mthca_profile.c | 78 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/drivers/video/fbdev/ |
| A D | hecubafb.c | 165 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()
|
| A D | sm712fb.c | 1028 unsigned long total_size; in smtcfb_read() local 1038 if (total_size == 0) in smtcfb_read() 1041 if (p >= total_size) in smtcfb_read() 1044 if (count >= total_size) in smtcfb_read() 1045 count = total_size; in smtcfb_read() 1048 count = total_size - p; in smtcfb_read() 1105 unsigned long total_size; in smtcfb_write() local 1115 if (total_size == 0) in smtcfb_write() 1118 if (p > total_size) in smtcfb_write() 1123 count = total_size; in smtcfb_write() [all …]
|
| /linux/fs/orangefs/ |
| A D | orangefs-bufmap.c | 151 int total_size; member 224 bufmap->total_size = user_desc->total_size; in orangefs_bufmap_alloc() 240 bufmap->page_count = bufmap->total_size / PAGE_SIZE; in orangefs_bufmap_alloc() 325 if (user_desc->total_size < 0 || in orangefs_bufmap_initialize() 341 if (PAGE_ALIGN(((unsigned long)user_desc->ptr + user_desc->total_size)) in orangefs_bufmap_initialize() 342 != (unsigned long)(user_desc->ptr + user_desc->total_size)) { in orangefs_bufmap_initialize() 345 user_desc->total_size); in orangefs_bufmap_initialize() 349 if (user_desc->total_size != (user_desc->size * user_desc->count)) { in orangefs_bufmap_initialize() 351 user_desc->total_size, in orangefs_bufmap_initialize()
|
| A D | file.c | 49 loff_t *offset, struct iov_iter *iter, size_t total_size, in wait_for_direct_io() argument 90 new_op->upcall.req.io.count = total_size; in wait_for_direct_io() 134 total_size); in wait_for_direct_io() 138 if (type == ORANGEFS_IO_WRITE && total_size) { in wait_for_direct_io() 140 total_size); in wait_for_direct_io() 173 iov_iter_revert(iter, total_size); in wait_for_direct_io() 214 ret = total_size; in wait_for_direct_io()
|
| /linux/drivers/gpu/drm/selftests/ |
| A D | test-drm_mm.c | 1352 unsigned int total_size, in evict_nothing() argument 1362 for (n = 0; n < total_size; n++) { in evict_nothing() 1370 for (n = 0; n < total_size; n++) { in evict_nothing() 1399 unsigned int total_size, in evict_everything() argument 2301 nodes, order, total_size, in igt_color_evict() 2314 nodes, order, total_size, in igt_color_evict() 2315 total_size/2, n, color++, in igt_color_evict() 2331 nodes, order, total_size, in igt_color_evict() 2402 nodes, order, total_size, in igt_color_evict_range() 2415 nodes, order, total_size, in igt_color_evict_range() [all …]
|
| /linux/drivers/mtd/devices/ |
| A D | mtdram.c | 21 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/usb/usbip/ |
| A D | vhci_tx.c | 62 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/drivers/net/ethernet/mellanox/mlx4/ |
| A D | profile.c | 83 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/drivers/net/ethernet/rocker/ |
| A D | rocker_tlv.c | 36 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/fs/ntfs3/ |
| A D | attrib.c | 817 u64 total_size; in attr_data_get_block() local 941 total_size = le64_to_cpu(attr_b->nres.total_size) + in attr_data_get_block() 949 attr_b->nres.total_size = cpu_to_le64(total_size); in attr_data_get_block() 1471 total_size = le64_to_cpu(attr_b->nres.total_size); in attr_allocate_frame() 1550 attr_b->nres.total_size = cpu_to_le64(total_size); in attr_allocate_frame() 1704 total_size = le64_to_cpu(attr_b->nres.total_size); in attr_collapse_range() 1707 total_size = alloc_size; in attr_collapse_range() 1908 attr_b->nres.total_size = cpu_to_le64(total_size); in attr_collapse_range() 1940 u64 total_size, alloc_size; in attr_punch_hole() local 1968 total_size = le64_to_cpu(attr_b->nres.total_size); in attr_punch_hole() [all …]
|
| /linux/security/integrity/evm/ |
| A D | evm_main.c | 343 int rc, size, total_size = 0; in evm_read_protected_xattrs() local 357 if (total_size) in evm_read_protected_xattrs() 358 *(buffer + total_size - 1) = '|'; in evm_read_protected_xattrs() 360 memcpy(buffer + total_size, xattr->name, size); in evm_read_protected_xattrs() 369 *(u32 *)(buffer + total_size) = rc; in evm_read_protected_xattrs() 377 buffer + total_size, in evm_read_protected_xattrs() 378 buffer_size - total_size); in evm_read_protected_xattrs() 387 total_size += size; in evm_read_protected_xattrs() 390 return total_size; in evm_read_protected_xattrs()
|
| /linux/mm/kasan/ |
| A D | quarantine.c | 227 size_t total_size, new_quarantine_size, percpu_quarantines; in kasan_quarantine_reduce() local 252 total_size = (totalram_pages() << PAGE_SHIFT) / in kasan_quarantine_reduce() 255 new_quarantine_size = (total_size < percpu_quarantines) ? in kasan_quarantine_reduce() 256 0 : total_size - percpu_quarantines; in kasan_quarantine_reduce() 260 2 * total_size / QUARANTINE_BATCHES)); in kasan_quarantine_reduce()
|