/linux-master/drivers/video/fbdev/core/ |
H A D | fb_sys_fops.c | 22 unsigned long total_size, c; local 31 total_size = info->screen_size; 33 if (total_size == 0) 34 total_size = info->fix.smem_len; 36 if (p >= total_size) 39 if (count >= total_size) 40 count = total_size; 42 if (count + p > total_size) 43 count = total_size - p; 67 unsigned long total_size, local [all...] |
H A D | fb_io_fops.c | 13 unsigned long total_size, trailing; local 21 total_size = info->screen_size; 23 if (total_size == 0) 24 total_size = info->fix.smem_len; 26 if (p >= total_size) 29 if (count >= total_size) 30 count = total_size; 32 if (count + p > total_size) 33 count = total_size - p; 77 unsigned long total_size, trailin local [all...] |
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | mmsch_v4_0_3.h | 32 uint32_t total_size; member in struct:mmsch_v4_0_3_init_header
|
/linux-master/drivers/acpi/acpica/ |
H A D | rscalc.c | 159 acpi_rs_length total_size; local 183 total_size = acpi_gbl_aml_resource_sizes[resource->type]; 195 total_size--; 204 total_size--; 219 total_size = 225 total_size = (acpi_rs_length) 226 (total_size + resource->data.vendor.byte_length); 234 *size_needed = aml_size_needed + total_size; 245 total_size = (acpi_rs_length)(total_size [all...] |
/linux-master/tools/testing/memblock/tests/ |
H A D | basic_api.c | 61 ASSERT_EQ(memblock.memory.total_size, r.size); 98 ASSERT_EQ(memblock.memory.total_size, r.size); 146 ASSERT_EQ(memblock.memory.total_size, r1.size + r2.size); 173 phys_addr_t total_size; local 188 total_size = (r1.base - r2.base) + r1.size; 195 ASSERT_EQ(rgn->size, total_size); 198 ASSERT_EQ(memblock.memory.total_size, total_size); 225 phys_addr_t total_size; local 240 total_size 345 phys_addr_t total_size; local 399 phys_addr_t total_size; local 638 phys_addr_t total_size; local 691 phys_addr_t total_size; local 814 phys_addr_t total_size; local 868 phys_addr_t total_size; local 1125 phys_addr_t r1_end, r2_end, total_size; local 1179 phys_addr_t total_size; local 1233 phys_addr_t r1_size, r2_size, total_size; local 1324 phys_addr_t total_size; local 1375 phys_addr_t new_r1_size, new_r2_size, r2_end, r3_end, total_size; local 1558 phys_addr_t total_size; local 1607 phys_addr_t total_size; local 1661 phys_addr_t r1_size, r2_size, total_size; local 1751 phys_addr_t total_size; local 1802 phys_addr_t new_r1_size, new_r2_size, r2_end, r3_end, total_size; local [all...] |
H A D | alloc_api.c | 45 ASSERT_EQ(memblock.reserved.total_size, size); 80 phys_addr_t total_size; local 89 total_size = r1.size + r2_size; 106 ASSERT_EQ(memblock.reserved.total_size, total_size); 132 phys_addr_t total_size = r1_size + r2_size; local 137 memblock_reserve(memblock_end_of_DRAM() - total_size, r1_size); 144 ASSERT_EQ(rgn->size, total_size); 145 ASSERT_EQ(rgn->base, memblock_end_of_DRAM() - total_size); 148 ASSERT_EQ(memblock.reserved.total_size, total_siz 172 phys_addr_t total_size; local 221 phys_addr_t total_size; local 275 phys_addr_t total_size; local 557 phys_addr_t total_size; local 606 phys_addr_t total_size = r1_size + r2_size; local 645 phys_addr_t total_size; local 695 phys_addr_t total_size; local [all...] |
H A D | alloc_helpers_api.c | 39 ASSERT_EQ(memblock.reserved.total_size, size); 83 ASSERT_EQ(memblock.reserved.total_size, size); 128 ASSERT_EQ(memblock.reserved.total_size, size); 157 phys_addr_t total_size = r1_size + r2_size; local 172 ASSERT_EQ(rgn->size, total_size); 175 ASSERT_EQ(memblock.reserved.total_size, total_size); 211 ASSERT_EQ(memblock.reserved.total_size, MEM_SIZE); 254 ASSERT_EQ(memblock.reserved.total_size, size); 300 ASSERT_EQ(memblock.reserved.total_size, r1_siz [all...] |
H A D | alloc_nid_api.c | 92 ASSERT_EQ(memblock.reserved.total_size, size); 145 ASSERT_EQ(memblock.reserved.total_size, size); 195 ASSERT_EQ(memblock.reserved.total_size, size); 244 ASSERT_EQ(memblock.reserved.total_size, size); 315 phys_addr_t total_size = r1_size + r2_size; local 336 ASSERT_EQ(rgn->size, total_size); 340 ASSERT_EQ(memblock.reserved.total_size, total_size); 367 phys_addr_t total_size = r1_size + r2_size; local 386 ASSERT_EQ(rgn->size, total_size); 422 phys_addr_t total_size; local 485 phys_addr_t total_size; local 549 phys_addr_t total_size; local 895 phys_addr_t total_size; local 965 phys_addr_t total_size; local 1955 phys_addr_t total_size; local 2398 phys_addr_t total_size; local [all...] |
/linux-master/drivers/gpu/drm/vboxvideo/ |
H A D | vbox_hgsmi.c | 52 size_t total_size; local 55 total_size = size + sizeof(*h) + sizeof(*t); 56 h = gen_pool_dma_alloc(guest_pool, total_size, &offset); 78 size_t total_size = h->data_size + sizeof(*h) + local 81 gen_pool_free(guest_pool, (unsigned long)h, total_size);
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_get_stack_rawtp.c | 60 int max_len, max_buildid_len, total_size; local 95 total_size = usize + ksize; 96 if (total_size > 0 && total_size <= max_len) 97 bpf_perf_event_output(ctx, &perfmap, 0, raw_data, total_size);
|
/linux-master/tools/testing/selftests/kvm/ |
H A D | guest_memfd_test.c | 47 static void test_file_size(int fd, size_t page_size, size_t total_size) argument 54 TEST_ASSERT_EQ(sb.st_size, total_size); 58 static void test_fallocate(int fd, size_t page_size, size_t total_size) argument 62 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE, 0, total_size); 69 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE, total_size, page_size); 70 TEST_ASSERT(ret, "fallocate beginning at total_size should fail"); 72 ret = fallocate(fd, FALLOC_FL_KEEP_SIZE, total_size + page_size, page_size); 73 TEST_ASSERT(ret, "fallocate beginning after total_size should fail"); 76 total_size, page_size); 77 TEST_ASSERT(!ret, "fallocate(PUNCH_HOLE) at total_size shoul 95 test_invalid_punch_hole(int fd, size_t page_size, size_t total_size) argument 178 size_t total_size; local [all...] |
/linux-master/scripts/ |
H A D | checkstack.pl | 134 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...] |
/linux-master/include/linux/ |
H A D | pstore_zone.h | 16 * @total_size: The total size in bytes pstore/zone can use. It must be greater 45 unsigned long total_size; member in struct:pstore_zone_info
|
/linux-master/drivers/net/ethernet/rocker/ |
H A D | rocker_tlv.c | 36 int total_size = rocker_tlv_total_size(attrlen); local 39 if (unlikely(tail_room < total_size)) 43 desc_info->tlv_size += total_size;
|
/linux-master/security/ |
H A D | lsm_syscalls.c | 99 u32 total_size = lsm_active_cnt * sizeof(*ids); local 109 if (put_user(total_size, size) != 0) 112 if (usize < total_size)
|
/linux-master/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_cudbg.c | 111 u32 i, total_size = 0; local 136 total_size += entity_hdr->size; 139 *tot_size += total_size; 167 u32 size, min_size, total_size = 0; local 217 total_size = dbg_buff.offset; 224 &total_size); 231 &total_size); 238 &total_size); 241 cudbg_hdr->data_len = total_size; 245 *buf_size = total_size; [all...] |
/linux-master/drivers/md/dm-vdo/ |
H A D | memory-alloc.h | 43 size_t total_size = count * size + extra; local 53 total_size = SIZE_MAX; 56 return vdo_allocate_memory(total_size, align, what, ptr);
|
/linux-master/drivers/gpu/drm/vmwgfx/ |
H A D | vmw_surface_cache.h | 119 u32 slice_size, total_size; local 124 total_size = clamped_umul32(image_blocks.width, 126 total_size = clamped_umul32(total_size, image_blocks.depth); 127 total_size = clamped_umul32(total_size, desc->bytesPerBlock); 128 return total_size; 135 total_size = clamped_umul32(slice_size, image_blocks.depth); 137 return total_size; 150 u32 total_size local 174 uint64_t total_size = local [all...] |
/linux-master/drivers/mtd/devices/ |
H 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)
|
/linux-master/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_net_debugdump.c | 101 u32 total_size; /* output */ member in struct:nfp_level_size 309 &lev_sz->total_size, nfp_add_tlv_size); 319 lev_sz.total_size = ALIGN8(sizeof(struct nfp_dump_prolog)); 326 return lev_sz.total_size; 353 u32 total_spec_size, total_size; local 357 total_size = ALIGN8(sizeof(*dump_header) + total_spec_size); 359 err = nfp_add_tlv(NFP_DUMPSPEC_TYPE_ERROR, total_size, dump); 372 u32 fwname_len, total_size; local 378 total_size = sizeof(*dump_header) + ALIGN8(fwname_len + 1); 380 err = nfp_add_tlv(NFP_DUMPSPEC_TYPE_FWNAME, total_size, dum 394 u32 hwinfo_size, total_size; local 417 u32 total_size; local 453 u32 reg_sz, header_size, total_size; local 556 u32 reg_sz, header_size, total_size; local 603 u32 header_size, total_size, sym_size; local 723 u32 total_size; local [all...] |
/linux-master/drivers/infiniband/hw/mthca/ |
H A D | mthca_profile.c | 76 s64 total_size = 0; local 142 profile[i].start = mem_base + total_size; 143 total_size += profile[i].size; 145 if (total_size > mem_avail) { 148 (unsigned long long) total_size, 164 (int) (total_size >> 10)); 167 (int) (total_size >> 10), (int) (mem_avail >> 10), 168 (int) ((mem_avail - total_size) >> 10)); 278 return total_size;
|
/linux-master/scripts/gdb/linux/ |
H A D | modules.py | 78 total_size = 0 81 total_size += module['mem'][i]['size'] 86 size=str(total_size),
|
/linux-master/net/batman-adv/ |
H A D | fragmentation.c | 176 chain->total_size = ntohs(frag_packet->total_size); 211 chain->total_size != ntohs(frag_packet->total_size) || 212 chain->total_size > batadv_frag_size_limit()) { 215 * packets to have different total_size. 219 } else if (ntohs(frag_packet->total_size) == chain->size) { 264 size = ntohs(packet->total_size) + hdr_size; 355 u16 total_size; local 367 total_size [all...] |
/linux-master/tools/perf/util/ |
H A D | jitdump.h | 40 uint32_t total_size; /* total size of header */ member in struct:jitheader 61 uint32_t total_size; member in struct:jr_prefix
|
/linux-master/drivers/usb/usbip/ |
H A D | vhci_tx.c | 62 size_t total_size = 0; local 156 total_size += txsize; 159 return total_size; 194 size_t total_size = 0; local 229 total_size += txsize; 232 return total_size;
|