/linux-4.4.14/drivers/video/fbdev/core/ |
D | fb_sys_fops.c | 22 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 …]
|
D | fbmem.c | 754 unsigned long total_size; in fb_read() local 765 total_size = info->screen_size; in fb_read() 767 if (total_size == 0) in fb_read() 768 total_size = info->fix.smem_len; in fb_read() 770 if (p >= total_size) in fb_read() 773 if (count >= total_size) in fb_read() 774 count = total_size; in fb_read() 776 if (count + p > total_size) in fb_read() 777 count = total_size - p; in fb_read() 819 unsigned long total_size; in fb_write() local [all …]
|
/linux-4.4.14/drivers/acpi/acpica/ |
D | rscalc.c | 194 acpi_rs_length total_size; in acpi_rs_get_aml_length() local 218 total_size = acpi_gbl_aml_resource_sizes[resource->type]; in acpi_rs_get_aml_length() 230 total_size--; in acpi_rs_get_aml_length() 239 total_size--; in acpi_rs_get_aml_length() 254 total_size = in acpi_rs_get_aml_length() 260 total_size = (acpi_rs_length) in acpi_rs_get_aml_length() 261 (total_size + resource->data.vendor.byte_length); in acpi_rs_get_aml_length() 269 *size_needed = aml_size_needed + total_size; in acpi_rs_get_aml_length() 280 total_size = (acpi_rs_length) in acpi_rs_get_aml_length() 281 (total_size + in acpi_rs_get_aml_length() [all …]
|
D | uttrack.c | 162 acpi_gbl_global_list->total_size += (u32)size; in acpi_ut_allocate_and_track() 224 acpi_gbl_global_list->total_size += (u32)size; in acpi_ut_allocate_zeroed_and_track()
|
D | dbstats.c | 140 list->total_size); in acpi_db_list_info()
|
/linux-4.4.14/tools/testing/selftests/zram/ |
D | zram01.sh | 62 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-4.4.14/net/batman-adv/ |
D | fragmentation.c | 183 chain->total_size = ntohs(frag_packet->total_size); in batadv_frag_insert_packet() 218 chain->total_size != ntohs(frag_packet->total_size) || in batadv_frag_insert_packet() 219 chain->total_size > batadv_frag_size_limit()) { in batadv_frag_insert_packet() 226 } else if (ntohs(frag_packet->total_size) == chain->size) { in batadv_frag_insert_packet() 269 size = ntohs(packet->total_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() 474 frag_header.total_size = htons(skb->len); in batadv_frag_send_packet()
|
D | packet.h | 388 __be16 total_size; member
|
D | types.h | 157 u16 total_size; member
|
/linux-4.4.14/drivers/infiniband/hw/mthca/ |
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()
|
D | mthca_mr.c | 430 u64 iova, u64 total_size, u32 access, struct mthca_mr *mr) in mthca_mr_alloc() argument 470 mpt_entry->length = cpu_to_be64(total_size); in mthca_mr_alloc() 521 int list_len, u64 iova, u64 total_size, in mthca_mr_alloc_phys() argument 537 total_size, access, mr); in mthca_mr_alloc_phys()
|
D | mthca_dev.h | 472 u64 iova, u64 total_size, u32 access, struct mthca_mr *mr); 477 int list_len, u64 iova, u64 total_size,
|
D | mthca_provider.c | 909 u64 total_size; in mthca_reg_phys_mr() local 917 total_size = 0; in mthca_reg_phys_mr() 924 total_size += buffer_list[i].size; in mthca_reg_phys_mr() 969 *iova_start, total_size, in mthca_reg_phys_mr()
|
/linux-4.4.14/drivers/video/fbdev/ |
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()
|
D | sm712fb.c | 957 unsigned long total_size; in smtcfb_read() local 965 total_size = info->screen_size; in smtcfb_read() 967 if (total_size == 0) in smtcfb_read() 968 total_size = info->fix.smem_len; in smtcfb_read() 970 if (p >= total_size) in smtcfb_read() 973 if (count >= total_size) in smtcfb_read() 974 count = total_size; in smtcfb_read() 976 if (count + p > total_size) in smtcfb_read() 977 count = total_size - p; in smtcfb_read() 1034 unsigned long total_size; in smtcfb_write() local [all …]
|
D | metronomefb.c | 524 unsigned long total_size; in metronomefb_write() local 529 total_size = info->fix.smem_len; in metronomefb_write() 531 if (p > total_size) in metronomefb_write() 534 if (count > total_size) { in metronomefb_write() 536 count = total_size; in metronomefb_write() 539 if (count + p > total_size) { in metronomefb_write() 543 count = total_size - p; in metronomefb_write()
|
D | ssd1307fb.c | 211 unsigned long total_size; in ssd1307fb_write() local 215 total_size = info->fix.smem_len; in ssd1307fb_write() 217 if (p > total_size) in ssd1307fb_write() 220 if (count + p > total_size) in ssd1307fb_write() 221 count = total_size - p; in ssd1307fb_write()
|
D | broadsheetfb.c | 1016 unsigned long total_size; in broadsheetfb_write() local 1021 total_size = info->fix.smem_len; in broadsheetfb_write() 1023 if (p > total_size) in broadsheetfb_write() 1026 if (count > total_size) { in broadsheetfb_write() 1028 count = total_size; in broadsheetfb_write() 1031 if (count + p > total_size) { in broadsheetfb_write() 1035 count = total_size - p; in broadsheetfb_write()
|
D | auo_k190x.c | 376 unsigned long total_size; in auok190xfb_write() local 381 total_size = info->fix.smem_len; in auok190xfb_write() 383 if (p > total_size) in auok190xfb_write() 386 if (count > total_size) { in auok190xfb_write() 388 count = total_size; in auok190xfb_write() 391 if (count + p > total_size) { in auok190xfb_write() 395 count = total_size - p; in auok190xfb_write()
|
/linux-4.4.14/drivers/gpu/drm/vmwgfx/device_include/ |
D | svga3d_surfacedefs.h | 1046 u32 slice_size, total_size; in svga3dsurface_get_image_buffer_size() local 1051 total_size = clamped_umul32(image_blocks.width, in svga3dsurface_get_image_buffer_size() 1053 total_size = clamped_umul32(total_size, image_blocks.depth); in svga3dsurface_get_image_buffer_size() 1054 total_size = clamped_umul32(total_size, desc->bytes_per_block); in svga3dsurface_get_image_buffer_size() 1055 return total_size; in svga3dsurface_get_image_buffer_size() 1062 total_size = clamped_umul32(slice_size, image_blocks.depth); in svga3dsurface_get_image_buffer_size() 1064 return total_size; in svga3dsurface_get_image_buffer_size() 1074 u32 total_size = 0; in svga3dsurface_get_serialized_size() local 1080 total_size += svga3dsurface_get_image_buffer_size(desc, in svga3dsurface_get_serialized_size() 1084 return total_size * num_layers; in svga3dsurface_get_serialized_size()
|
/linux-4.4.14/drivers/mtd/devices/ |
D | mtdram.c | 20 static unsigned long total_size = CONFIG_MTDRAM_TOTAL_SIZE; variable 22 #define MTDRAM_TOTAL_SIZE (total_size * 1024) 26 module_param(total_size, ulong, 0); 27 MODULE_PARM_DESC(total_size, "Total device size in KiB"); 149 if (!total_size) in init_mtdram()
|
/linux-4.4.14/drivers/usb/usbip/ |
D | vhci_tx.c | 72 size_t total_size = 0; in vhci_send_cmd_submit() local 130 total_size += txsize; in vhci_send_cmd_submit() 133 return total_size; in vhci_send_cmd_submit() 161 size_t total_size = 0; in vhci_send_cmd_unlink() local 197 total_size += txsize; in vhci_send_cmd_unlink() 200 return total_size; in vhci_send_cmd_unlink()
|
D | stub_tx.c | 163 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-4.4.14/arch/x86/kernel/cpu/microcode/ |
D | intel_lib.c | 49 unsigned long total_size, data_size, ext_table_size; in microcode_sanity_check() local 55 total_size = get_totalsize(mc_header); in microcode_sanity_check() 58 if (data_size + MC_HEADER_SIZE > total_size) { in microcode_sanity_check() 69 ext_table_size = total_size - (MC_HEADER_SIZE + data_size); in microcode_sanity_check()
|
D | intel.c | 143 unsigned long total_size = get_totalsize(mc_header); in matching_model_microcode() local 158 if (total_size <= data_size + MC_HEADER_SIZE) in matching_model_microcode() 396 unsigned int sig, pf, rev, total_size, data_size, date; in show_saved_mc() local 423 total_size = get_totalsize(mc_saved_header); in show_saved_mc() 428 i, sig, pf, rev, total_size, in show_saved_mc() 434 if (total_size <= data_size + MC_HEADER_SIZE) in show_saved_mc()
|
D | amd.c | 97 static size_t compute_container_size(u8 *data, u32 total_size) in compute_container_size() argument 108 total_size -= size; in compute_container_size() 111 while (total_size) { in compute_container_size() 128 total_size -= patch_size + SECTION_HDR_SIZE; in compute_container_size()
|
/linux-4.4.14/arch/metag/include/asm/ |
D | elf.h | 112 unsigned long total_size); 117 int type, unsigned long total_size) in metag_elf_map() argument 119 return __metag_elf_map(filep, addr, eppnt, prot, type, total_size); in metag_elf_map()
|
/linux-4.4.14/drivers/infiniband/hw/cxgb3/ |
D | iwch_mem.c | 137 u64 *total_size, in build_phys_page_list() argument 146 *total_size = 0; in build_phys_page_list() 153 *total_size += buffer_list[i].size; in build_phys_page_list() 165 if (*total_size > 0xFFFFFFFFULL) in build_phys_page_list() 198 (unsigned long long) mask, *shift, (unsigned long long) *total_size, in build_phys_page_list()
|
D | iwch_provider.c | 490 u64 total_size; in iwch_register_phys_mem() local 520 &total_size, &npages, &shift, &page_list); in iwch_register_phys_mem() 542 mhp->attr.len = (u32) total_size; in iwch_register_phys_mem() 572 u64 total_size; in iwch_reregister_phys_mem() local 599 &total_size, &npages, in iwch_reregister_phys_mem() 618 mhp->attr.len = (u32) total_size; in iwch_reregister_phys_mem()
|
D | iwch_provider.h | 354 u64 *total_size,
|
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/ |
D | profile.c | 83 u64 total_size = 0; in mlx4_make_profile() local 157 profile[i].start = total_size; in mlx4_make_profile() 158 total_size += profile[i].size; in mlx4_make_profile() 161 if (total_size > dev_cap->max_icm_sz) { in mlx4_make_profile() 163 (unsigned long long) total_size, in mlx4_make_profile() 178 (int) (total_size >> 10)); in mlx4_make_profile() 268 return total_size; in mlx4_make_profile()
|
/linux-4.4.14/arch/metag/kernel/ |
D | process.c | 380 unsigned long total_size) in __metag_elf_map() argument 408 if (total_size) { in __metag_elf_map() 409 total_size = ELF_PAGEALIGN(total_size); in __metag_elf_map() 410 map_addr = vm_mmap(filep, addr, total_size, prot, type, off); in __metag_elf_map() 412 vm_munmap(map_addr+size, total_size-size); in __metag_elf_map()
|
/linux-4.4.14/drivers/char/ |
D | tile-srom.c | 65 u32 total_size; /* Size of this device */ member 278 return fixed_size_llseek(file, offset, origin, srom->total_size); in srom_llseek() 285 return sprintf(buf, "%u\n", srom->total_size); in total_size_show() 287 static DEVICE_ATTR_RO(total_size); 343 if (_srom_read(devhdl, &srom->total_size, in srom_setup_minor() 344 SROM_TOTAL_SIZE_OFF, sizeof(srom->total_size)) < 0) in srom_setup_minor()
|
/linux-4.4.14/drivers/dma/ |
D | ste_dma40_ll.c | 275 int total_size = 0; in d40_phy_sg_to_lli() local 289 total_size += sg_dma_len(current_sg); in d40_phy_sg_to_lli() 304 return total_size; in d40_phy_sg_to_lli() 424 int total_size = 0; in d40_log_sg_to_lli() local 438 total_size += sg_dma_len(current_sg); in d40_log_sg_to_lli() 447 return total_size; in d40_log_sg_to_lli()
|
/linux-4.4.14/drivers/net/ethernet/qlogic/qed/ |
D | qed_cxt.c | 84 u32 total_size; /* 0 means not active */ member 169 u32 start_line, u32 total_size, in qed_ilt_cli_blk_fill() argument 175 if (p_blk->total_size) in qed_ilt_cli_blk_fill() 178 p_blk->total_size = total_size; in qed_ilt_cli_blk_fill() 190 if (!p_blk->total_size) in qed_ilt_cli_adv_line() 197 *p_line += DIV_ROUND_UP(p_blk->total_size, in qed_ilt_cli_adv_line() 204 p_cli->last.val, p_blk->total_size, in qed_ilt_cli_adv_line() 318 if (!p_blk->total_size) in qed_ilt_blk_alloc() 321 sz_left = p_blk->total_size; in qed_ilt_blk_alloc()
|
/linux-4.4.14/drivers/net/ethernet/amd/ |
D | ni65.c | 179 short total_size; member 190 .total_size = 0x10, 201 .total_size = 0x18, 212 .total_size = 0x18, 349 release_region(dev->base_addr, cards[p->cardno].total_size); in cleanup_card() 428 if(!request_region(ioaddr, cards[i].total_size, cards[i].cardname)) in ni65_probe1() 433 release_region(ioaddr, cards[i].total_size); in ni65_probe1() 440 release_region(ioaddr, cards[i].total_size); in ni65_probe1() 453 release_region(ioaddr, cards[i].total_size); in ni65_probe1() 468 release_region(ioaddr, cards[p->cardno].total_size); in ni65_probe1() [all …]
|
/linux-4.4.14/drivers/infiniband/hw/cxgb4/ |
D | mem.c | 436 u64 *total_size, int *npages, in build_phys_page_list() argument 443 *total_size = 0; in build_phys_page_list() 450 *total_size += buffer_list[i].size; in build_phys_page_list() 462 if (*total_size > 0xFFFFFFFFULL) in build_phys_page_list() 495 (unsigned long long)mask, *shift, (unsigned long long)*total_size, in build_phys_page_list() 512 u64 total_size; in c4iw_reregister_phys_mem() local 542 &total_size, &npages, in c4iw_reregister_phys_mem() 548 if (mr_exceeds_hw_limits(rhp, total_size)) { in c4iw_reregister_phys_mem() 565 mhp->attr.len = (u32) total_size; in c4iw_reregister_phys_mem() 578 u64 total_size; in c4iw_register_phys_mem() local [all …]
|
/linux-4.4.14/drivers/scsi/ |
D | libiscsi_tcp.c | 103 segment->total_size - segment->total_copied); in iscsi_tcp_segment_init_sg() 169 segment->total_size += ISCSI_DIGEST_SIZE; in iscsi_tcp_segment_splice_digest() 235 segment->total_copied, segment->total_size); in iscsi_tcp_segment_done() 236 if (segment->total_copied < segment->total_size) { in iscsi_tcp_segment_done() 251 segment->total_size += pad; in iscsi_tcp_segment_done() 347 segment->total_size = size; in __iscsi_segment_init() 823 segment->total_size += ahslen; in iscsi_tcp_hdr_recv_done() 903 segment->total_copied = segment->total_size; in iscsi_tcp_recv_skb() 927 if (segment->total_copied >= segment->total_size) { in iscsi_tcp_recv_skb()
|
D | iscsi_tcp.c | 281 if (segment->total_copied + segment->size < segment->total_size) in iscsi_sw_tcp_xmit_segment() 337 if (segment->total_copied >= segment->total_size) { in iscsi_sw_tcp_xmit() 368 return segment->total_copied - segment->total_size; in iscsi_sw_tcp_xmit_qlen() 407 tcp_sw_conn->out.segment.total_size); in iscsi_sw_tcp_send_hdr_done()
|
D | pmcraid.c | 1434 u32 total_size, nla_genl_hdr_total_size; in pmcraid_notify_aen() local 1443 total_size = nla_total_size(data_size); in pmcraid_notify_aen() 1446 (total_size + (GENL_HDRLEN + in pmcraid_notify_aen() 1454 total_size); in pmcraid_notify_aen()
|
/linux-4.4.14/drivers/net/wireless/iwlwifi/ |
D | iwl-devtrace-iwlwifi.h | 38 struct iwl_host_cmd *cmd, u16 total_size, 40 TP_ARGS(dev, cmd, total_size, hdr), 43 __dynamic_array(u8, hcmd, total_size)
|
/linux-4.4.14/drivers/s390/block/ |
D | dasd_eer.c | 278 __u32 total_size; member 310 header.total_size = sizeof(header) + data_size + 4; /* "EOR" */ in dasd_eer_write_standard_trigger() 320 dasd_eer_start_record(eerb, header.total_size); in dasd_eer_write_standard_trigger() 353 header.total_size = sizeof(header) + data_size + 4; /* "EOR" */ in dasd_eer_write_snss_trigger() 363 dasd_eer_start_record(eerb, header.total_size); in dasd_eer_write_snss_trigger()
|
/linux-4.4.14/drivers/block/ |
D | cciss_cmd.h | 107 BYTE total_size[4]; /* Total size in blocks */ member 120 BYTE total_size[8]; /* Total size in blocks */ member
|
D | cciss.c | 179 sector_t *total_size, unsigned int *block_size); 181 sector_t *total_size, unsigned int *block_size); 183 sector_t total_size, 2008 sector_t total_size; in cciss_update_drive_info() local 2022 &total_size, &block_size); in cciss_update_drive_info() 2025 cciss_read_capacity(h, drv_index, &total_size, &block_size); in cciss_update_drive_info() 2029 if (total_size == 0xFFFFFFFFULL) { in cciss_update_drive_info() 2031 &total_size, &block_size); in cciss_update_drive_info() 2040 cciss_geometry_inquiry(h, drv_index, total_size, block_size, in cciss_update_drive_info() 2043 drvinfo->nr_blocks = total_size + 1; in cciss_update_drive_info() [all …]
|
/linux-4.4.14/drivers/media/pci/ivtv/ |
D | ivtvfb.c | 389 unsigned long total_size; in ivtvfb_write() local 399 total_size = info->screen_size; in ivtvfb_write() 401 if (total_size == 0) in ivtvfb_write() 402 total_size = info->fix.smem_len; in ivtvfb_write() 404 if (p > total_size) in ivtvfb_write() 407 if (count > total_size) { in ivtvfb_write() 409 count = total_size; in ivtvfb_write() 412 if (count + p > total_size) { in ivtvfb_write() 415 count = total_size - p; in ivtvfb_write()
|
/linux-4.4.14/sound/soc/intel/skylake/ |
D | skl-sst-cldma.c | 208 skl_cldma_copy_to_buf(struct sst_dsp *ctx, const void *bin, u32 total_size) in skl_cldma_copy_to_buf() argument 214 unsigned int bytes_left = total_size; in skl_cldma_copy_to_buf() 217 if (total_size <= 0) in skl_cldma_copy_to_buf()
|
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_gds.h | 46 uint32_t total_size; member
|
D | amdgpu_ttm.c | 912 adev->gds.mem.total_size = adev->gds.mem.total_size << AMDGPU_GDS_SHIFT; in amdgpu_ttm_init() 915 adev->gds.gws.total_size = adev->gds.gws.total_size << AMDGPU_GWS_SHIFT; in amdgpu_ttm_init() 918 adev->gds.oa.total_size = adev->gds.oa.total_size << AMDGPU_OA_SHIFT; in amdgpu_ttm_init() 923 adev->gds.mem.total_size >> PAGE_SHIFT); in amdgpu_ttm_init() 931 adev->gds.gws.total_size >> PAGE_SHIFT); in amdgpu_ttm_init() 939 adev->gds.oa.total_size >> PAGE_SHIFT); in amdgpu_ttm_init()
|
D | amdgpu_kms.c | 373 gds_info.gds_total_size = adev->gds.mem.total_size >> AMDGPU_GDS_SHIFT; in amdgpu_info_ioctl()
|
D | gfx_v8_0.c | 5087 adev->gds.mem.total_size = RREG32(mmGDS_VMID0_SIZE); in gfx_v8_0_set_gds_init() 5088 adev->gds.gws.total_size = 64; in gfx_v8_0_set_gds_init() 5089 adev->gds.oa.total_size = 16; in gfx_v8_0_set_gds_init() 5091 if (adev->gds.mem.total_size == 64 * 1024) { in gfx_v8_0_set_gds_init()
|
D | gfx_v7_0.c | 5630 adev->gds.mem.total_size = RREG32(mmGDS_VMID0_SIZE); in gfx_v7_0_set_gds_init() 5631 adev->gds.gws.total_size = 64; in gfx_v7_0_set_gds_init() 5632 adev->gds.oa.total_size = 16; in gfx_v7_0_set_gds_init() 5634 if (adev->gds.mem.total_size == 64 * 1024) { in gfx_v7_0_set_gds_init()
|
/linux-4.4.14/mm/ |
D | memblock.c | 287 type->total_size -= type->regions[r].size; in memblock_remove_region() 294 WARN_ON(type->total_size != 0); in memblock_remove_region() 505 type->total_size += size; in memblock_insert_region() 538 WARN_ON(type->cnt != 1 || type->total_size); in memblock_add_range() 543 type->total_size = size; in memblock_add_range() 683 type->total_size -= base - rbase; in memblock_isolate_range() 694 type->total_size -= end - rbase; in memblock_isolate_range() 1437 return memblock.memory.total_size; in memblock_phys_mem_size() 1641 (unsigned long long)memblock.memory.total_size, in __memblock_dump_all() 1642 (unsigned long long)memblock.reserved.total_size); in __memblock_dump_all()
|
D | zpool.c | 355 return zpool->driver->total_size(zpool->pool); in zpool_get_total_size()
|
D | zbud.c | 213 .total_size = zbud_zpool_total_size,
|
D | zsmalloc.c | 393 .total_size = zs_zpool_total_size,
|
/linux-4.4.14/fs/ |
D | binfmt_elf.c | 339 unsigned long total_size) in elf_map() argument 360 if (total_size) { in elf_map() 361 total_size = ELF_PAGEALIGN(total_size); in elf_map() 362 map_addr = vm_mmap(filep, addr, total_size, prot, type, off); in elf_map() 364 vm_munmap(map_addr+size, total_size-size); in elf_map() 527 unsigned long total_size; in load_elf_interp() local 539 total_size = total_mapping_size(interp_elf_phdata, in load_elf_interp() 541 if (!total_size) { in load_elf_interp() 567 eppnt, elf_prot, elf_type, total_size); in load_elf_interp() 568 total_size = 0; in load_elf_interp() [all …]
|
/linux-4.4.14/arch/powerpc/platforms/pasemi/ |
D | dma_lib.c | 182 int total_size, int offset) in pasemi_dma_alloc_chan() argument 188 BUG_ON(total_size < sizeof(struct pasemi_dmachan)); in pasemi_dma_alloc_chan() 190 buf = kzalloc(total_size, GFP_KERNEL); in pasemi_dma_alloc_chan()
|
/linux-4.4.14/net/nfc/ |
D | core.c | 726 unsigned int total_size; in nfc_alloc_send_skb() local 728 total_size = size + in nfc_alloc_send_skb() 731 skb = sock_alloc_send_skb(sk, total_size, flags & MSG_DONTWAIT, err); in nfc_alloc_send_skb() 747 unsigned int total_size; in nfc_alloc_recv_skb() local 749 total_size = size + 1; in nfc_alloc_recv_skb() 750 skb = alloc_skb(total_size, gfp); in nfc_alloc_recv_skb()
|
/linux-4.4.14/include/linux/ |
D | zpool.h | 103 u64 (*total_size)(void *pool); member
|
D | memblock.h | 42 phys_addr_t total_size; /* size of all regions */ member
|
/linux-4.4.14/fs/btrfs/ |
D | xattr.c | 270 size_t total_size = 0, size_left = size; in btrfs_listxattr() local 326 total_size += name_len + 1; in btrfs_listxattr() 346 ret = total_size; in btrfs_listxattr()
|
D | delayed-inode.c | 729 int total_data_size = 0, total_size = 0; in btrfs_batch_insert_items() local 752 while (total_size + next->data_len + sizeof(struct btrfs_item) <= in btrfs_batch_insert_items() 755 total_size += next->data_len + sizeof(struct btrfs_item); in btrfs_batch_insert_items() 805 total_data_size, total_size, nitems); in btrfs_batch_insert_items()
|
D | ctree.c | 4714 u32 total_data, u32 total_size, int nr) in setup_items_for_insert() argument 4739 if (btrfs_leaf_free_space(root, leaf) < total_size) { in setup_items_for_insert() 4742 total_size, btrfs_leaf_free_space(root, leaf)); in setup_items_for_insert() 4812 u32 total_size = 0; in btrfs_insert_empty_items() local 4818 total_size = total_data + (nr * sizeof(struct btrfs_item)); in btrfs_insert_empty_items() 4819 ret = btrfs_search_slot(trans, root, cpu_key, path, total_size, 1); in btrfs_insert_empty_items() 4829 total_data, total_size, nr); in btrfs_insert_empty_items()
|
D | free-space-cache.c | 2890 u64 total_size = 0; in setup_cluster_no_bitmap() local 2955 total_size += entry->bytes; in setup_cluster_no_bitmap() 2960 trace_btrfs_setup_cluster(block_group, cluster, total_size, 0); in setup_cluster_no_bitmap()
|
D | tree-log.c | 2093 u32 total_size; in replay_xattr_deletes() local 2103 total_size = btrfs_item_size_nr(path->nodes[0], i); in replay_xattr_deletes() 2105 while (cur < total_size) { in replay_xattr_deletes()
|
D | ctree.h | 3668 u32 total_data, u32 total_size, int nr);
|
/linux-4.4.14/drivers/edac/ |
D | edac_device.c | 80 unsigned total_size; in edac_device_alloc_ctl_info() local 124 total_size = ((unsigned long)pvt) + sz_private; in edac_device_alloc_ctl_info() 127 dev_ctl = kzalloc(total_size, GFP_KERNEL); in edac_device_alloc_ctl_info()
|
/linux-4.4.14/drivers/bluetooth/ |
D | btqca.h | 93 __le32 total_size; member
|
D | btqca.c | 134 le32_to_cpu(tlv_patch->total_size)); in rome_tlv_check_data()
|
/linux-4.4.14/include/scsi/ |
D | libiscsi_tcp.h | 38 unsigned int total_size; member
|
/linux-4.4.14/drivers/usb/misc/ |
D | ftdi-elan.c | 738 char *buf, int command_size, int total_size) in fill_buffer_with_all_queued_commands() argument 766 int total_size = 0; in ftdi_elan_total_command_size() local 772 total_size += 5 + command->follows; in ftdi_elan_total_command_size() 773 } return total_size; in ftdi_elan_total_command_size() 781 int total_size; in ftdi_elan_command_engine() local 786 total_size = ftdi_elan_total_command_size(ftdi, command_size); in ftdi_elan_command_engine() 790 command_size, total_size); in ftdi_elan_command_engine() 793 buf = usb_alloc_coherent(ftdi->udev, total_size, GFP_KERNEL, in ftdi_elan_command_engine() 797 command_size, total_size); in ftdi_elan_command_engine() 802 command_size, total_size); in ftdi_elan_command_engine() [all …]
|
/linux-4.4.14/drivers/base/regmap/ |
D | regmap.c | 1713 size_t total_size = val_bytes * val_count; in regmap_bulk_write() local 1763 (map->max_raw_write && map->max_raw_write < total_size)) { in regmap_bulk_write() 1772 chunk_count = total_size / chunk_size; in regmap_bulk_write() 1788 if (!ret && chunk_size * i < total_size) { in regmap_bulk_write() 1791 total_size - i * chunk_size); in regmap_bulk_write() 2425 size_t total_size = val_bytes * val_count; in regmap_bulk_read() local 2428 (!map->max_raw_read || map->max_raw_read > total_size)) { in regmap_bulk_read() 2447 chunk_count = total_size / chunk_size; in regmap_bulk_read() 2462 if (chunk_size * i < total_size) { in regmap_bulk_read() 2466 total_size - i * chunk_size); in regmap_bulk_read()
|
/linux-4.4.14/drivers/net/ethernet/emulex/benet/ |
D | be_roce.c | 59 dev_info.db_total_size = adapter->roce_db.total_size; in _be_roce_dev_add()
|
D | be_cmds.c | 1753 u32 offset = 0, total_size, buf_size, in be_cmd_get_regs() local 1760 total_size = buf_len; in be_cmd_get_regs() 1774 while (total_size) { in be_cmd_get_regs() 1775 buf_size = min(total_size, (u32)60*1024); in be_cmd_get_regs() 1776 total_size -= buf_size; in be_cmd_get_regs()
|
D | be.h | 564 u32 total_size; member
|
D | be_main.c | 5539 adapter->roce_db.total_size = pci_resource_len(adapter->pdev, in be_roce_map_pci_bars()
|
/linux-4.4.14/tools/vm/ |
D | slabinfo.c | 784 avg_size, total_size = 0; in totals() local 899 total_size += size; in totals() 924 avg_size = total_size / used_slabs; in totals() 944 store_size(b1, total_size);store_size(b2, total_waste); in totals() 991 store_size(b3, max_size);store_size(b4, total_size); in totals()
|
/linux-4.4.14/arch/x86/platform/efi/ |
D | efi.c | 123 u64 mirror_size = 0, total_size = 0; in efi_find_mirror() local 130 total_size += size; in efi_find_mirror() 138 mirror_size>>20, total_size>>20); in efi_find_mirror()
|
/linux-4.4.14/net/ipv4/netfilter/ |
D | arp_tables.c | 775 static int copy_entries_to_user(unsigned int total_size, in copy_entries_to_user() argument 792 if (copy_to_user(userptr, loc_cpu_entry, total_size) != 0) { in copy_entries_to_user() 799 for (off = 0, num = 0; off < total_size; off += e->next_offset, num++){ in copy_entries_to_user() 1498 static int compat_copy_entries_to_user(unsigned int total_size, in compat_copy_entries_to_user() argument 1515 size = total_size; in compat_copy_entries_to_user() 1516 xt_entry_foreach(iter, private->entries, total_size) { in compat_copy_entries_to_user()
|
D | ip_tables.c | 941 copy_entries_to_user(unsigned int total_size, in copy_entries_to_user() argument 957 if (copy_to_user(userptr, loc_cpu_entry, total_size) != 0) { in copy_entries_to_user() 964 for (off = 0, num = 0; off < total_size; off += e->next_offset, num++){ in copy_entries_to_user() 1743 compat_copy_entries_to_user(unsigned int total_size, struct xt_table *table, in compat_copy_entries_to_user() argument 1759 size = total_size; in compat_copy_entries_to_user() 1760 xt_entry_foreach(iter, private->entries, total_size) { in compat_copy_entries_to_user()
|
/linux-4.4.14/arch/powerpc/kernel/ |
D | nvram_64.c | 1164 int total_size; in nvram_scan_partitions() local 1169 total_size = ppc_md.nvram_size(); in nvram_scan_partitions() 1177 while (cur_index < total_size) { in nvram_scan_partitions()
|
/linux-4.4.14/fs/ext4/ |
D | xattr.c | 1345 unsigned int total_size; /* EA entry size + value size */ in ext4_expand_extra_isize_ea() local 1365 total_size = in ext4_expand_extra_isize_ea() 1368 if (total_size <= free && total_size < min_total_size) { in ext4_expand_extra_isize_ea() 1369 if (total_size < new_extra_isize) { in ext4_expand_extra_isize_ea() 1373 min_total_size = total_size; in ext4_expand_extra_isize_ea()
|
/linux-4.4.14/arch/s390/kernel/ |
D | crash_dump.c | 31 .total_size = 0, 587 oldmem_type.total_size = OLDMEM_SIZE; in elfcorehdr_alloc()
|
D | setup.c | 612 (unsigned long)memblock.memory.total_size >> 20); in reserve_crashkernel()
|
/linux-4.4.14/net/ipv6/netfilter/ |
D | ip6_tables.c | 953 copy_entries_to_user(unsigned int total_size, in copy_entries_to_user() argument 969 if (copy_to_user(userptr, loc_cpu_entry, total_size) != 0) { in copy_entries_to_user() 976 for (off = 0, num = 0; off < total_size; off += e->next_offset, num++){ in copy_entries_to_user() 1745 compat_copy_entries_to_user(unsigned int total_size, struct xt_table *table, in compat_copy_entries_to_user() argument 1761 size = total_size; in compat_copy_entries_to_user() 1762 xt_entry_foreach(iter, private->entries, total_size) { in compat_copy_entries_to_user()
|
/linux-4.4.14/ipc/ |
D | mqueue.c | 696 unsigned long total_size; in mq_attr_ok() local 715 total_size = attr->mq_maxmsg * attr->mq_msgsize; in mq_attr_ok() 716 if (total_size + mq_treesize < total_size) in mq_attr_ok()
|
/linux-4.4.14/fs/hfsplus/ |
D | hfsplus_raw.h | 96 __be64 total_size; member
|
D | inode.c | 456 hip->phys_size = inode->i_size = be64_to_cpu(fork->total_size); in hfsplus_inode_read_fork() 474 fork->total_size = cpu_to_be64(inode->i_size); in hfsplus_inode_write_fork()
|
D | super.c | 128 if (fork->total_size != cpu_to_be64(inode->i_size)) { in hfsplus_system_write_inode()
|
/linux-4.4.14/drivers/net/wireless/mwifiex/ |
D | wmm.c | 1196 int count = 0, total_size = 0; in mwifiex_is_11n_aggragation_possible() local 1207 total_size += skb->len; in mwifiex_is_11n_aggragation_possible() 1208 if (total_size >= max_amsdu_size) in mwifiex_is_11n_aggragation_possible()
|
/linux-4.4.14/arch/powerpc/include/asm/ |
D | pasemi_dma.h | 508 int total_size, int offset);
|
/linux-4.4.14/arch/s390/numa/ |
D | mode_emu.c | 457 nodes_max = memblock.memory.total_size / emu_size; in emu_setup_nodes_adjust()
|
/linux-4.4.14/drivers/tty/ |
D | n_gsm.c | 807 int len, total_size, size; in gsm_dlci_data_output() local 810 total_size = 0; in gsm_dlci_data_output() 814 return total_size; in gsm_dlci_data_output() 838 total_size += size; in gsm_dlci_data_output() 841 return total_size; in gsm_dlci_data_output()
|
/linux-4.4.14/net/core/ |
D | ethtool.c | 721 u32 total_size; in ethtool_get_rxfh() local 756 total_size = indir_bytes + user_key_size; in ethtool_get_rxfh() 757 rss_config = kzalloc(total_size, GFP_USER); in ethtool_get_rxfh() 776 rss_config, total_size)) { in ethtool_get_rxfh()
|
/linux-4.4.14/drivers/net/wireless/orinoco/ |
D | orinoco_usb.c | 732 int total_size = sizeof(*req) + length; in ezusb_fill_req() local 734 BUG_ON(total_size > BULK_BUF_SIZE); in ezusb_fill_req() 746 return total_size; in ezusb_fill_req()
|
/linux-4.4.14/drivers/staging/android/ion/ |
D | ion.c | 1402 size_t total_size = 0; in ion_debug_heap_show() local 1434 total_size += buffer->size; in ion_debug_heap_show() 1447 seq_printf(s, "%16s %16zu\n", "total ", total_size); in ion_debug_heap_show()
|
/linux-4.4.14/drivers/scsi/cxgbi/cxgb3i/ |
D | cxgb3i.c | 395 int total_size = 0; in push_tx_frames() local 449 total_size += skb->truesize; in push_tx_frames() 456 return total_size; in push_tx_frames()
|
/linux-4.4.14/drivers/infiniband/hw/qib/ |
D | qib_file_ops.c | 856 size_t total_size, i; in mmap_rcvegrbufs() local 861 total_size = rcd->rcvegrbuf_chunks * size; in mmap_rcvegrbufs() 862 if ((vma->vm_end - vma->vm_start) > total_size) { in mmap_rcvegrbufs() 866 (unsigned long) total_size); in mmap_rcvegrbufs()
|
/linux-4.4.14/drivers/staging/rdma/ipath/ |
D | ipath_file_ops.c | 1106 size_t total_size, i; in mmap_rcvegrbufs() local 1111 total_size = pd->port_rcvegrbuf_chunks * size; in mmap_rcvegrbufs() 1112 if ((vma->vm_end - vma->vm_start) > total_size) { in mmap_rcvegrbufs() 1116 (unsigned long) total_size); in mmap_rcvegrbufs()
|
/linux-4.4.14/drivers/message/fusion/ |
D | mptbase.c | 4412 int i, reply_sz, sz, total_size, num_chain; in PrimeIocFifos() local 4450 total_size = reply_sz = (ioc->reply_sz * ioc->reply_depth); in PrimeIocFifos() 4461 total_size += sz; in PrimeIocFifos() 4469 total_size += sz; in PrimeIocFifos() 4470 mem = pci_alloc_consistent(ioc->pcidev, total_size, &alloc_dma); in PrimeIocFifos() 4478 ioc->name, mem, (void *)(ulong)alloc_dma, total_size, total_size)); in PrimeIocFifos() 4480 memset(mem, 0, total_size); in PrimeIocFifos() 4481 ioc->alloc_total += total_size; in PrimeIocFifos() 4484 ioc->alloc_sz = total_size; in PrimeIocFifos()
|
/linux-4.4.14/include/acpi/ |
D | actypes.h | 1245 u32 total_size; member
|
/linux-4.4.14/kernel/trace/ |
D | ring_buffer.c | 4937 unsigned long total_size = 0; in test_ringbuffer() local 4971 total_size += item->size + sizeof(struct rb_item); in test_ringbuffer() 4991 pr_info(" recorded size bytes: %ld\n", total_size); in test_ringbuffer() 4997 total_size != total_written)) in test_ringbuffer()
|
/linux-4.4.14/drivers/scsi/cxgbi/cxgb4i/ |
D | cxgb4i.c | 618 int total_size = 0; in push_tx_frames() local 686 total_size += skb->truesize; in push_tx_frames() 695 return total_size; in push_tx_frames()
|
/linux-4.4.14/kernel/ |
D | module.c | 1892 unsigned long total_size) in set_section_ro_nx() argument 1911 if (total_size > text_size) { in set_section_ro_nx() 1913 end_pfn = PFN_UP((unsigned long)base + total_size); in set_section_ro_nx() 1985 …ion_ro_nx(void *base, unsigned long text_size, unsigned long ro_size, unsigned long total_size) { } in set_section_ro_nx() argument
|
/linux-4.4.14/drivers/net/ethernet/marvell/ |
D | mvpp2.c | 384 #define MVPP2_RX_MAX_PKT_SIZE(total_size) \ argument 385 ((total_size) - NET_SKB_PAD - MVPP2_SKB_SHINFO_SIZE) 3628 int i, buf_size, total_size; in mvpp2_bm_bufs_add() local 3633 total_size = MVPP2_RX_TOTAL_SIZE(buf_size); in mvpp2_bm_bufs_add() 3659 bm_pool->id, bm_pool->pkt_size, buf_size, total_size); in mvpp2_bm_bufs_add()
|
/linux-4.4.14/fs/cifs/ |
D | cifssmb.c | 336 unsigned int total_size; in validate_t2() local 347 total_size = get_unaligned_le16(&pSMB->t2_rsp.ParameterCount); in validate_t2() 348 if (total_size >= 512) in validate_t2() 354 total_size += get_unaligned_le16(&pSMB->t2_rsp.DataCount); in validate_t2() 355 if (total_size > get_bcc(&pSMB->hdr) || in validate_t2() 356 total_size >= CIFSMaxBufSize + MAX_CIFS_HDR_SIZE) in validate_t2()
|
/linux-4.4.14/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_verbs.c | 3073 u64 total_size = 0; in count_kernel_pbes() local 3096 total_size += buf_size; in count_kernel_pbes() 3103 return total_size >> ilog2(*pbe_size); in count_kernel_pbes()
|
/linux-4.4.14/sound/pci/hda/ |
D | patch_ca0132.c | 1341 unsigned int total_size; in dspio_send_scp_message() local 1356 total_size = (scp_send_size * 4); in dspio_send_scp_message() 1358 if (send_buf_size < total_size) in dspio_send_scp_message()
|
/linux-4.4.14/drivers/usb/wusbcore/ |
D | wa-xfer.c | 551 int isoc_frame_offset, int *total_size) in __wa_seg_calculate_isoc_frame_count() argument 584 *total_size = segment_size; in __wa_seg_calculate_isoc_frame_count()
|
/linux-4.4.14/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_83xx_hw.c | 3913 u32 mbx_cmd, fw_hal_version, hdr_size, total_size, tmp; in qlcnic_83xx_encode_mbx_cmd() local 3925 total_size = cmd->pay_size + hdr_size; in qlcnic_83xx_encode_mbx_cmd() 3926 tmp = QLCNIC_CMD_BC_EVENT_SETUP | total_size << 16; in qlcnic_83xx_encode_mbx_cmd()
|
/linux-4.4.14/drivers/net/ethernet/qlogic/qlge/ |
D | qlge.h | 1011 __le16 total_size; member
|
/linux-4.4.14/drivers/net/ethernet/rocker/ |
D | rocker.c | 806 int total_size = rocker_tlv_total_size(attrlen); in rocker_tlv_put() local 809 if (unlikely(tail_room < total_size)) in rocker_tlv_put() 813 desc_info->tlv_size += total_size; in rocker_tlv_put()
|
/linux-4.4.14/drivers/net/ethernet/broadcom/ |
D | bnx2.c | 243 .total_size = BUFFERED_FLASH_TOTAL_SIZE*2, 4418 bp->flash_size = bp->flash_info->total_size; in bnx2_init_nvram()
|
D | bnx2.h | 6708 u32 total_size; member
|
/linux-4.4.14/Documentation/devicetree/ |
D | booting-without-of.txt | 420 contain _at least_ this DT block itself (header,total_size). If
|