/linux-4.1.27/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.1.27/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()
|
/linux-4.1.27/drivers/gpu/drm/vmwgfx/ |
D | svga3d_surfacedefs.h | 812 u32 slice_size, total_size; in svga3dsurface_get_image_buffer_size() local 817 total_size = clamped_umul32(image_blocks.width, in svga3dsurface_get_image_buffer_size() 819 total_size = clamped_umul32(total_size, image_blocks.depth); in svga3dsurface_get_image_buffer_size() 820 total_size = clamped_umul32(total_size, desc->bytes_per_block); in svga3dsurface_get_image_buffer_size() 821 return total_size; in svga3dsurface_get_image_buffer_size() 828 total_size = clamped_umul32(slice_size, image_blocks.depth); in svga3dsurface_get_image_buffer_size() 830 return total_size; in svga3dsurface_get_image_buffer_size() 840 u64 total_size = 0; in svga3dsurface_get_serialized_size() local 846 total_size += svga3dsurface_get_image_buffer_size(desc, in svga3dsurface_get_serialized_size() 851 total_size *= SVGA3D_MAX_SURFACE_FACES; in svga3dsurface_get_serialized_size() [all …]
|
/linux-4.1.27/arch/x86/kernel/cpu/microcode/ |
D | intel_lib.c | 43 unsigned long total_size, data_size, ext_table_size; in microcode_sanity_check() local 49 total_size = get_totalsize(mc_header); in microcode_sanity_check() 52 if (data_size + MC_HEADER_SIZE > total_size) { in microcode_sanity_check() 63 ext_table_size = total_size - (MC_HEADER_SIZE + data_size); in microcode_sanity_check() 131 unsigned long total_size = get_totalsize(mc_header); in get_matching_sig() local 139 if (total_size <= get_datasize(mc_header) + MC_HEADER_SIZE) in get_matching_sig()
|
D | amd_early.c | 65 static size_t compute_container_size(u8 *data, u32 total_size) in compute_container_size() argument 76 total_size -= size; in compute_container_size() 79 while (total_size) { in compute_container_size() 96 total_size -= patch_size + SECTION_HDR_SIZE; in compute_container_size()
|
D | intel_early.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() 397 unsigned int sig, pf, rev, total_size, data_size, date; in show_saved_mc() local 424 total_size = get_totalsize(mc_saved_header); in show_saved_mc() 429 i, sig, pf, rev, total_size, in show_saved_mc() 435 if (total_size <= data_size + MC_HEADER_SIZE) in show_saved_mc()
|
/linux-4.1.27/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 | 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 | 189 unsigned long total_size; in ssd1307fb_write() local 193 total_size = info->fix.smem_len; in ssd1307fb_write() 195 if (p > total_size) in ssd1307fb_write() 198 if (count + p > total_size) in ssd1307fb_write() 199 count = total_size - p; in ssd1307fb_write()
|
D | broadsheetfb.c | 1014 unsigned long total_size; in broadsheetfb_write() local 1019 total_size = info->fix.smem_len; in broadsheetfb_write() 1021 if (p > total_size) in broadsheetfb_write() 1024 if (count > total_size) { in broadsheetfb_write() 1026 count = total_size; in broadsheetfb_write() 1029 if (count + p > total_size) { in broadsheetfb_write() 1033 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.1.27/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"); 128 if (!total_size) in init_mtdram()
|
/linux-4.1.27/drivers/infiniband/hw/mthca/ |
D | mthca_profile.c | 78 s64 total_size = 0; in mthca_make_profile() local 148 profile[i].start = mem_base + total_size; in mthca_make_profile() 149 total_size += profile[i].size; in mthca_make_profile() 151 if (total_size > mem_avail) { in mthca_make_profile() 154 (unsigned long long) total_size, in mthca_make_profile() 170 (int) (total_size >> 10)); in mthca_make_profile() 173 (int) (total_size >> 10), (int) (mem_avail >> 10), in mthca_make_profile() 174 (int) ((mem_avail - total_size) >> 10)); in mthca_make_profile() 284 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 | 901 u64 total_size; in mthca_reg_phys_mr() local 909 total_size = 0; in mthca_reg_phys_mr() 916 total_size += buffer_list[i].size; in mthca_reg_phys_mr() 961 *iova_start, total_size, in mthca_reg_phys_mr()
|
/linux-4.1.27/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.1.27/drivers/staging/sm7xxfb/ |
D | sm7xxfb.c | 311 unsigned long total_size; in smtcfb_read() local 319 total_size = info->screen_size; in smtcfb_read() 321 if (total_size == 0) in smtcfb_read() 322 total_size = info->fix.smem_len; in smtcfb_read() 324 if (p >= total_size) in smtcfb_read() 327 if (count >= total_size) in smtcfb_read() 328 count = total_size; in smtcfb_read() 330 if (count + p > total_size) in smtcfb_read() 331 count = total_size - p; in smtcfb_read() 391 unsigned long total_size; in smtcfb_write() local [all …]
|
/linux-4.1.27/net/batman-adv/ |
D | fragmentation.c | 198 ntohs(frag_packet->total_size) > batadv_frag_size_limit()) { in batadv_frag_insert_packet() 204 } else if (ntohs(frag_packet->total_size) == chain->size) { in batadv_frag_insert_packet() 240 size = ntohs(packet->total_size); in batadv_frag_merge_packets() 338 uint16_t total_size; in batadv_frag_skb_fwd() local 353 total_size = ntohs(packet->total_size); in batadv_frag_skb_fwd() 354 if (total_size > neigh_node->if_incoming->net_dev->mtu) { in batadv_frag_skb_fwd() 455 frag_header.total_size = htons(skb->len); in batadv_frag_send_packet()
|
D | packet.h | 385 __be16 total_size; member
|
/linux-4.1.27/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.1.27/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 | 480 u64 total_size; in iwch_register_phys_mem() local 510 &total_size, &npages, &shift, &page_list); in iwch_register_phys_mem() 532 mhp->attr.len = (u32) total_size; in iwch_register_phys_mem() 562 u64 total_size; in iwch_reregister_phys_mem() local 589 &total_size, &npages, in iwch_reregister_phys_mem() 608 mhp->attr.len = (u32) total_size; in iwch_reregister_phys_mem()
|
D | iwch_provider.h | 352 u64 *total_size,
|
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/ |
D | profile.c | 83 u64 total_size = 0; in mlx4_make_profile() local 161 profile[i].start = total_size; in mlx4_make_profile() 162 total_size += profile[i].size; in mlx4_make_profile() 165 if (total_size > dev_cap->max_icm_sz) { in mlx4_make_profile() 167 (unsigned long long) total_size, in mlx4_make_profile() 182 (int) (total_size >> 10)); in mlx4_make_profile() 272 return total_size; in mlx4_make_profile()
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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 | 1433 u32 total_size, nla_genl_hdr_total_size; in pmcraid_notify_aen() local 1442 total_size = nla_total_size(data_size); in pmcraid_notify_aen() 1445 (total_size + (GENL_HDRLEN + in pmcraid_notify_aen() 1453 total_size); in pmcraid_notify_aen()
|
/linux-4.1.27/drivers/staging/ozwpan/ |
D | ozpd.c | 324 f->total_size = sizeof(struct oz_hdr); in oz_tx_frame_alloc() 395 oz_select_elts_for_tx(&pd->elt_buff, 0, &f->total_size, in oz_prepare_frame() 419 skb = alloc_skb(f->total_size + OZ_ALLOCATED_SPACE(dev), GFP_ATOMIC); in oz_build_frame() 433 oz_hdr = (struct oz_hdr *)skb_put(skb, f->total_size); in oz_build_frame() 571 int total_size = sizeof(struct oz_hdr); in oz_send_isoc_frame() local 573 oz_select_elts_for_tx(&pd->elt_buff, 1, &total_size, in oz_send_isoc_frame() 577 skb = alloc_skb(total_size + OZ_ALLOCATED_SPACE(dev), GFP_ATOMIC); in oz_send_isoc_frame() 592 oz_hdr = (struct oz_hdr *)skb_put(skb, total_size); in oz_send_isoc_frame()
|
D | ozusbif.h | 33 const u8 *desc, u8 length, u16 offset, u16 total_size);
|
D | ozusbsvc1.c | 397 u16 offs, total_size; in oz_usb_rx() local 405 total_size = in oz_usb_rx() 406 le16_to_cpu(get_unaligned(&body->total_size)); in oz_usb_rx() 410 data_len, offs, total_size); in oz_usb_rx()
|
D | ozprotocol.h | 221 __le16 total_size; member 350 u16 total_size; member
|
D | ozpd.h | 39 int total_size; member
|
D | ozhcd.c | 750 u8 length, u16 offset, u16 total_size) in oz_hcd_get_desc_cnf() argument 757 length, offset, total_size); in oz_hcd_get_desc_cnf() 765 if (required_size > total_size) in oz_hcd_get_desc_cnf() 766 required_size = total_size; in oz_hcd_get_desc_cnf() 790 urb->actual_length = total_size; in oz_hcd_get_desc_cnf()
|
/linux-4.1.27/drivers/net/wireless/iwlwifi/ |
D | iwl-devtrace-iwlwifi.h | 37 struct iwl_host_cmd *cmd, u16 total_size, 39 TP_ARGS(dev, cmd, total_size, hdr), 42 __dynamic_array(u8, hcmd, total_size)
|
/linux-4.1.27/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.1.27/mm/ |
D | memblock.c | 261 type->total_size -= type->regions[r].size; in memblock_remove_region() 268 WARN_ON(type->total_size != 0); in memblock_remove_region() 479 type->total_size += size; in memblock_insert_region() 512 WARN_ON(type->cnt != 1 || type->total_size); in memblock_add_range() 517 type->total_size = size; in memblock_add_range() 653 type->total_size -= base - rbase; in memblock_isolate_range() 664 type->total_size -= end - rbase; in memblock_isolate_range() 1330 return memblock.memory.total_size; in memblock_phys_mem_size() 1534 (unsigned long long)memblock.memory.total_size, in __memblock_dump_all() 1535 (unsigned long long)memblock.reserved.total_size); in __memblock_dump_all()
|
D | zpool.c | 347 return zpool->driver->total_size(zpool->pool); in zpool_get_total_size()
|
D | zbud.c | 198 .total_size = zbud_zpool_total_size,
|
D | zsmalloc.c | 388 .total_size = zs_zpool_total_size,
|
/linux-4.1.27/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 | 181 sector_t *total_size, unsigned int *block_size); 183 sector_t *total_size, unsigned int *block_size); 185 sector_t total_size, 1992 sector_t total_size; in cciss_update_drive_info() local 2006 &total_size, &block_size); in cciss_update_drive_info() 2009 cciss_read_capacity(h, drv_index, &total_size, &block_size); in cciss_update_drive_info() 2013 if (total_size == 0xFFFFFFFFULL) { in cciss_update_drive_info() 2015 &total_size, &block_size); in cciss_update_drive_info() 2024 cciss_geometry_inquiry(h, drv_index, total_size, block_size, in cciss_update_drive_info() 2027 drvinfo->nr_blocks = total_size + 1; in cciss_update_drive_info() [all …]
|
/linux-4.1.27/drivers/media/pci/ivtv/ |
D | ivtvfb.c | 388 unsigned long total_size; in ivtvfb_write() local 398 total_size = info->screen_size; in ivtvfb_write() 400 if (total_size == 0) in ivtvfb_write() 401 total_size = info->fix.smem_len; in ivtvfb_write() 403 if (p > total_size) in ivtvfb_write() 406 if (count > total_size) { in ivtvfb_write() 408 count = total_size; in ivtvfb_write() 411 if (count + p > total_size) { in ivtvfb_write() 414 count = total_size - p; in ivtvfb_write()
|
/linux-4.1.27/net/ipv4/netfilter/ |
D | arp_tables.c | 762 static int copy_entries_to_user(unsigned int total_size, in copy_entries_to_user() argument 779 if (copy_to_user(userptr, loc_cpu_entry, total_size) != 0) { in copy_entries_to_user() 786 for (off = 0, num = 0; off < total_size; off += e->next_offset, num++){ in copy_entries_to_user() 1324 unsigned int total_size, in translate_compat_table() argument 1339 size = total_size; in translate_compat_table() 1353 xt_entry_foreach(iter0, entry0, total_size) { in translate_compat_table() 1356 entry0 + total_size, in translate_compat_table() 1401 size = total_size; in translate_compat_table() 1402 xt_entry_foreach(iter0, entry0, total_size) { in translate_compat_table() 1464 xt_entry_foreach(iter0, entry0, total_size) { in translate_compat_table() [all …]
|
D | ip_tables.c | 927 copy_entries_to_user(unsigned int total_size, in copy_entries_to_user() argument 947 if (copy_to_user(userptr, loc_cpu_entry, total_size) != 0) { in copy_entries_to_user() 954 for (off = 0, num = 0; off < total_size; off += e->next_offset, num++){ in copy_entries_to_user() 1646 unsigned int total_size, in translate_compat_table() argument 1661 size = total_size; in translate_compat_table() 1675 xt_entry_foreach(iter0, entry0, total_size) { in translate_compat_table() 1678 entry0 + total_size, in translate_compat_table() 1723 size = total_size; in translate_compat_table() 1724 xt_entry_foreach(iter0, entry0, total_size) { in translate_compat_table() 1786 xt_entry_foreach(iter0, entry0, total_size) { in translate_compat_table() [all …]
|
/linux-4.1.27/fs/ |
D | binfmt_elf.c | 338 unsigned long total_size) in elf_map() argument 359 if (total_size) { in elf_map() 360 total_size = ELF_PAGEALIGN(total_size); in elf_map() 361 map_addr = vm_mmap(filep, addr, total_size, prot, type, off); in elf_map() 363 vm_munmap(map_addr+size, total_size-size); in elf_map() 526 unsigned long total_size; in load_elf_interp() local 538 total_size = total_mapping_size(interp_elf_phdata, in load_elf_interp() 540 if (!total_size) { in load_elf_interp() 566 eppnt, elf_prot, elf_type, total_size); in load_elf_interp() 567 total_size = 0; in load_elf_interp() [all …]
|
/linux-4.1.27/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.1.27/net/ipv6/netfilter/ |
D | ip6_tables.c | 940 copy_entries_to_user(unsigned int total_size, in copy_entries_to_user() argument 960 if (copy_to_user(userptr, loc_cpu_entry, total_size) != 0) { in copy_entries_to_user() 967 for (off = 0, num = 0; off < total_size; off += e->next_offset, num++){ in copy_entries_to_user() 1659 unsigned int total_size, in translate_compat_table() argument 1674 size = total_size; in translate_compat_table() 1688 xt_entry_foreach(iter0, entry0, total_size) { in translate_compat_table() 1691 entry0 + total_size, in translate_compat_table() 1736 size = total_size; in translate_compat_table() 1737 xt_entry_foreach(iter0, entry0, total_size) { in translate_compat_table() 1799 xt_entry_foreach(iter0, entry0, total_size) { in translate_compat_table() [all …]
|
/linux-4.1.27/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.1.27/include/linux/ |
D | zpool.h | 98 u64 (*total_size)(void *pool); member
|
D | memblock.h | 38 phys_addr_t total_size; /* size of all regions */ member
|
/linux-4.1.27/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.1.27/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 | 725 int total_data_size = 0, total_size = 0; in btrfs_batch_insert_items() local 748 while (total_size + next->data_len + sizeof(struct btrfs_item) <= in btrfs_batch_insert_items() 751 total_size += next->data_len + sizeof(struct btrfs_item); in btrfs_batch_insert_items() 801 total_data_size, total_size, nitems); in btrfs_batch_insert_items()
|
D | ctree.c | 4708 u32 total_data, u32 total_size, int nr) in setup_items_for_insert() argument 4733 if (btrfs_leaf_free_space(root, leaf) < total_size) { in setup_items_for_insert() 4736 total_size, btrfs_leaf_free_space(root, leaf)); in setup_items_for_insert() 4806 u32 total_size = 0; in btrfs_insert_empty_items() local 4812 total_size = total_data + (nr * sizeof(struct btrfs_item)); in btrfs_insert_empty_items() 4813 ret = btrfs_search_slot(trans, root, cpu_key, path, total_size, 1); in btrfs_insert_empty_items() 4823 total_data, total_size, nr); in btrfs_insert_empty_items()
|
D | free-space-cache.c | 2848 u64 total_size = 0; in setup_cluster_no_bitmap() local 2913 total_size += entry->bytes; in setup_cluster_no_bitmap() 2918 trace_btrfs_setup_cluster(block_group, cluster, total_size, 0); in setup_cluster_no_bitmap()
|
D | tree-log.c | 1991 u32 total_size; in replay_xattr_deletes() local 2001 total_size = btrfs_item_size_nr(path->nodes[0], i); in replay_xattr_deletes() 2003 while (cur < total_size) { in replay_xattr_deletes()
|
D | ctree.h | 3610 u32 total_data, u32 total_size, int nr);
|
/linux-4.1.27/include/scsi/ |
D | libiscsi_tcp.h | 38 unsigned int total_size; member
|
/linux-4.1.27/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.1.27/tools/vm/ |
D | slabinfo.c | 764 avg_size, total_size = 0; in totals() local 879 total_size += size; in totals() 904 avg_size = total_size / used_slabs; in totals() 924 store_size(b1, total_size);store_size(b2, total_waste); in totals() 969 store_size(b3, max_size);store_size(b4, total_size); in totals()
|
/linux-4.1.27/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 | 1713 u32 offset = 0, total_size, buf_size, in be_cmd_get_regs() local 1720 total_size = buf_len; in be_cmd_get_regs() 1734 while (total_size) { in be_cmd_get_regs() 1735 buf_size = min(total_size, (u32)60*1024); in be_cmd_get_regs() 1736 total_size -= buf_size; in be_cmd_get_regs()
|
D | be.h | 547 u32 total_size; member
|
D | be_main.c | 5217 adapter->roce_db.total_size = pci_resource_len(adapter->pdev, in be_roce_map_pci_bars()
|
/linux-4.1.27/arch/powerpc/kernel/ |
D | nvram_64.c | 1163 int total_size; in nvram_scan_partitions() local 1168 total_size = ppc_md.nvram_size(); in nvram_scan_partitions() 1176 while (cur_index < total_size) { in nvram_scan_partitions()
|
/linux-4.1.27/fs/ext4/ |
D | xattr.c | 1346 unsigned int total_size; /* EA entry size + value size */ in ext4_expand_extra_isize_ea() local 1366 total_size = in ext4_expand_extra_isize_ea() 1369 if (total_size <= free && total_size < min_total_size) { in ext4_expand_extra_isize_ea() 1370 if (total_size < new_extra_isize) { in ext4_expand_extra_isize_ea() 1374 min_total_size = total_size; in ext4_expand_extra_isize_ea()
|
/linux-4.1.27/arch/s390/kernel/ |
D | crash_dump.c | 31 .total_size = 0, 619 oldmem_type.total_size = OLDMEM_SIZE; in elfcorehdr_alloc()
|
D | setup.c | 610 (unsigned long)memblock.memory.total_size >> 20); in reserve_crashkernel()
|
/linux-4.1.27/ipc/ |
D | mqueue.c | 700 unsigned long total_size; in mq_attr_ok() local 719 total_size = attr->mq_maxmsg * attr->mq_msgsize; in mq_attr_ok() 720 if (total_size + mq_treesize < total_size) in mq_attr_ok()
|
/linux-4.1.27/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 | 127 if (fork->total_size != cpu_to_be64(inode->i_size)) { in hfsplus_system_write_inode()
|
/linux-4.1.27/drivers/net/wireless/mwifiex/ |
D | wmm.c | 1047 int count = 0, total_size = 0; in mwifiex_is_11n_aggragation_possible() local 1058 total_size += skb->len; in mwifiex_is_11n_aggragation_possible() 1059 if (total_size >= max_amsdu_size) in mwifiex_is_11n_aggragation_possible()
|
/linux-4.1.27/arch/powerpc/include/asm/ |
D | pasemi_dma.h | 508 int total_size, int offset);
|
/linux-4.1.27/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.1.27/net/core/ |
D | ethtool.c | 710 u32 total_size; in ethtool_get_rxfh() local 745 total_size = indir_bytes + user_key_size; in ethtool_get_rxfh() 746 rss_config = kzalloc(total_size, GFP_USER); in ethtool_get_rxfh() 765 rss_config, total_size)) { in ethtool_get_rxfh()
|
/linux-4.1.27/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.1.27/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.1.27/drivers/staging/android/ion/ |
D | ion.c | 1400 size_t total_size = 0; in ion_debug_heap_show() local 1432 total_size += buffer->size; in ion_debug_heap_show() 1445 seq_printf(s, "%16s %16zu\n", "total ", total_size); in ion_debug_heap_show()
|
/linux-4.1.27/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.1.27/drivers/infiniband/hw/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.1.27/drivers/message/fusion/ |
D | mptbase.c | 4423 int i, reply_sz, sz, total_size, num_chain; in PrimeIocFifos() local 4461 total_size = reply_sz = (ioc->reply_sz * ioc->reply_depth); in PrimeIocFifos() 4472 total_size += sz; in PrimeIocFifos() 4480 total_size += sz; in PrimeIocFifos() 4481 mem = pci_alloc_consistent(ioc->pcidev, total_size, &alloc_dma); in PrimeIocFifos() 4489 ioc->name, mem, (void *)(ulong)alloc_dma, total_size, total_size)); in PrimeIocFifos() 4491 memset(mem, 0, total_size); in PrimeIocFifos() 4492 ioc->alloc_total += total_size; in PrimeIocFifos() 4495 ioc->alloc_sz = total_size; in PrimeIocFifos()
|
/linux-4.1.27/include/acpi/ |
D | actypes.h | 1240 u32 total_size; member
|
/linux-4.1.27/kernel/trace/ |
D | ring_buffer.c | 4940 unsigned long total_size = 0; in test_ringbuffer() local 4974 total_size += item->size + sizeof(struct rb_item); in test_ringbuffer() 4994 pr_info(" recorded size bytes: %ld\n", total_size); in test_ringbuffer() 5000 total_size != total_written)) in test_ringbuffer()
|
/linux-4.1.27/drivers/scsi/cxgbi/cxgb4i/ |
D | cxgb4i.c | 611 int total_size = 0; in push_tx_frames() local 679 total_size += skb->truesize; in push_tx_frames() 688 return total_size; in push_tx_frames()
|
/linux-4.1.27/kernel/ |
D | module.c | 1722 unsigned long total_size) in set_section_ro_nx() argument 1741 if (total_size > text_size) { in set_section_ro_nx() 1743 end_pfn = PFN_UP((unsigned long)base + total_size); in set_section_ro_nx() 1815 …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.1.27/drivers/net/ethernet/marvell/ |
D | mvpp2.c | 381 #define MVPP2_RX_MAX_PKT_SIZE(total_size) \ argument 382 ((total_size) - NET_SKB_PAD - MVPP2_SKB_SHINFO_SIZE) 3603 int i, buf_size, total_size; in mvpp2_bm_bufs_add() local 3608 total_size = MVPP2_RX_TOTAL_SIZE(buf_size); in mvpp2_bm_bufs_add() 3634 bm_pool->id, bm_pool->pkt_size, buf_size, total_size); in mvpp2_bm_bufs_add()
|
/linux-4.1.27/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.1.27/sound/pci/hda/ |
D | patch_ca0132.c | 1312 unsigned int total_size; in dspio_send_scp_message() local 1327 total_size = (scp_send_size * 4); in dspio_send_scp_message() 1329 if (send_buf_size < total_size) in dspio_send_scp_message()
|
/linux-4.1.27/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_verbs.c | 3037 u64 total_size = 0; in count_kernel_pbes() local 3060 total_size += buf_size; in count_kernel_pbes() 3067 return total_size >> ilog2(*pbe_size); in count_kernel_pbes()
|
/linux-4.1.27/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.1.27/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_83xx_hw.c | 3884 u32 mbx_cmd, fw_hal_version, hdr_size, total_size, tmp; in qlcnic_83xx_encode_mbx_cmd() local 3896 total_size = cmd->pay_size + hdr_size; in qlcnic_83xx_encode_mbx_cmd() 3897 tmp = QLCNIC_CMD_BC_EVENT_SETUP | total_size << 16; in qlcnic_83xx_encode_mbx_cmd()
|
/linux-4.1.27/drivers/net/ethernet/qlogic/qlge/ |
D | qlge.h | 1011 __le16 total_size; member
|
/linux-4.1.27/drivers/net/ethernet/rocker/ |
D | rocker.c | 724 int total_size = rocker_tlv_total_size(attrlen); in rocker_tlv_put() local 727 if (unlikely(tail_room < total_size)) in rocker_tlv_put() 731 desc_info->tlv_size += total_size; in rocker_tlv_put()
|
/linux-4.1.27/drivers/net/ethernet/broadcom/ |
D | bnx2.c | 243 .total_size = BUFFERED_FLASH_TOTAL_SIZE*2, 4400 bp->flash_size = bp->flash_info->total_size; in bnx2_init_nvram()
|
D | bnx2.h | 6708 u32 total_size; member
|
/linux-4.1.27/Documentation/devicetree/ |
D | booting-without-of.txt | 420 contain _at least_ this DT block itself (header,total_size). If
|