/linux-2.6.39/drivers/video/ |
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 | 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 | fbmem.c | 747 unsigned long total_size; in fb_read() local 758 total_size = info->screen_size; in fb_read() 760 if (total_size == 0) in fb_read() 761 total_size = info->fix.smem_len; in fb_read() 763 if (p >= total_size) in fb_read() 766 if (count >= total_size) in fb_read() 767 count = total_size; in fb_read() 769 if (count + p > total_size) in fb_read() 770 count = total_size - p; in fb_read() 812 unsigned long total_size; in fb_write() local [all …]
|
D | broadsheetfb.c | 1012 unsigned long total_size; in broadsheetfb_write() local 1017 total_size = info->fix.smem_len; in broadsheetfb_write() 1019 if (p > total_size) in broadsheetfb_write() 1022 if (count > total_size) { in broadsheetfb_write() 1024 count = total_size; in broadsheetfb_write() 1027 if (count + p > total_size) { in broadsheetfb_write() 1031 count = total_size - p; in broadsheetfb_write()
|
/linux-2.6.39/drivers/acpi/acpica/ |
D | rscalc.c | 191 acpi_rs_length total_size; in acpi_rs_get_aml_length() local 207 total_size = acpi_gbl_aml_resource_sizes[resource->type]; in acpi_rs_get_aml_length() 219 total_size--; in acpi_rs_get_aml_length() 228 total_size--; in acpi_rs_get_aml_length() 243 total_size = in acpi_rs_get_aml_length() 249 total_size = (acpi_rs_length) in acpi_rs_get_aml_length() 250 (total_size + resource->data.vendor.byte_length); in acpi_rs_get_aml_length() 258 *size_needed = aml_size_needed + total_size; in acpi_rs_get_aml_length() 269 total_size = (acpi_rs_length) in acpi_rs_get_aml_length() 270 (total_size + in acpi_rs_get_aml_length() [all …]
|
/linux-2.6.39/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"); 148 if (!total_size) in init_mtdram()
|
/linux-2.6.39/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()
|
/linux-2.6.39/drivers/staging/usbip/ |
D | vhci_tx.c | 78 size_t total_size = 0; in vhci_send_cmd_submit() local 137 total_size += txsize; in vhci_send_cmd_submit() 140 return total_size; in vhci_send_cmd_submit() 172 size_t total_size = 0; in vhci_send_cmd_unlink() local 210 total_size += txsize; in vhci_send_cmd_unlink() 213 return total_size; in vhci_send_cmd_unlink()
|
D | stub_tx.c | 175 size_t total_size = 0; in stub_send_ret_submit() local 284 total_size += txsize; in stub_send_ret_submit() 295 return total_size; in stub_send_ret_submit() 330 size_t total_size = 0; in stub_send_ret_unlink() local 364 total_size += txsize; in stub_send_ret_unlink() 377 return total_size; in stub_send_ret_unlink()
|
/linux-2.6.39/drivers/net/mlx4/ |
D | profile.c | 83 u64 total_size = 0; in mlx4_make_profile() local 141 profile[i].start = total_size; in mlx4_make_profile() 142 total_size += profile[i].size; in mlx4_make_profile() 145 if (total_size > dev_cap->max_icm_sz) { in mlx4_make_profile() 148 (unsigned long long) total_size, in mlx4_make_profile() 163 (int) (total_size >> 10)); in mlx4_make_profile() 237 return total_size; in mlx4_make_profile()
|
/linux-2.6.39/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()
|
/linux-2.6.39/drivers/staging/sm7xx/ |
D | smtcfb.c | 449 unsigned long total_size; in smtcfb_read() local 457 total_size = info->screen_size; in smtcfb_read() 459 if (total_size == 0) in smtcfb_read() 460 total_size = info->fix.smem_len; in smtcfb_read() 462 if (p >= total_size) in smtcfb_read() 465 if (count >= total_size) in smtcfb_read() 466 count = total_size; in smtcfb_read() 468 if (count + p > total_size) in smtcfb_read() 469 count = total_size - p; in smtcfb_read() 529 unsigned long total_size; in smtcfb_write() local [all …]
|
/linux-2.6.39/arch/x86/kernel/ |
D | microcode_intel.c | 189 unsigned long total_size, data_size, ext_table_size; in microcode_sanity_check() local 195 total_size = get_totalsize(mc_header); in microcode_sanity_check() 198 if (data_size + MC_HEADER_SIZE > total_size) { in microcode_sanity_check() 207 ext_table_size = total_size - (MC_HEADER_SIZE + data_size); in microcode_sanity_check() 271 unsigned long total_size = get_totalsize(mc_header); in get_matching_microcode() local 282 if (total_size <= get_datasize(mc_header) + MC_HEADER_SIZE) in get_matching_microcode()
|
/linux-2.6.39/drivers/dma/ |
D | ste_dma40_ll.c | 267 int total_size = 0; in d40_phy_sg_to_lli() local 281 total_size += sg_dma_len(current_sg); in d40_phy_sg_to_lli() 296 return total_size; in d40_phy_sg_to_lli() 416 int total_size = 0; in d40_log_sg_to_lli() local 430 total_size += sg_dma_len(current_sg); in d40_log_sg_to_lli() 439 return total_size; in d40_log_sg_to_lli()
|
/linux-2.6.39/drivers/infiniband/hw/cxgb4/ |
D | mem.c | 289 u64 *total_size, int *npages, in build_phys_page_list() argument 296 *total_size = 0; in build_phys_page_list() 303 *total_size += buffer_list[i].size; in build_phys_page_list() 315 if (*total_size > 0xFFFFFFFFULL) in build_phys_page_list() 348 (unsigned long long)mask, *shift, (unsigned long long)*total_size, in build_phys_page_list() 365 u64 total_size; in c4iw_reregister_phys_mem() local 395 &total_size, &npages, in c4iw_reregister_phys_mem() 413 mhp->attr.len = (u32) total_size; in c4iw_reregister_phys_mem() 426 u64 total_size; in c4iw_register_phys_mem() local 456 &total_size, &npages, &shift, in c4iw_register_phys_mem() [all …]
|
/linux-2.6.39/drivers/net/ |
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-2.6.39/drivers/scsi/ |
D | libiscsi_tcp.c | 102 segment->total_size - segment->total_copied); in iscsi_tcp_segment_init_sg() 168 segment->total_size += ISCSI_DIGEST_SIZE; in iscsi_tcp_segment_splice_digest() 234 segment->total_copied, segment->total_size); in iscsi_tcp_segment_done() 235 if (segment->total_copied < segment->total_size) { in iscsi_tcp_segment_done() 250 segment->total_size += pad; in iscsi_tcp_segment_done() 346 segment->total_size = size; in __iscsi_segment_init() 814 segment->total_size += ahslen; in iscsi_tcp_hdr_recv_done() 894 segment->total_copied = segment->total_size; in iscsi_tcp_recv_skb() 919 if (segment->total_copied >= segment->total_size) { in iscsi_tcp_recv_skb()
|
/linux-2.6.39/drivers/block/ |
D | cciss_cmd.h | 106 BYTE total_size[4]; /* Total size in blocks */ member 119 BYTE total_size[8]; /* Total size in blocks */ member
|
/linux-2.6.39/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-2.6.39/drivers/media/video/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-2.6.39/fs/btrfs/ |
D | xattr.c | 184 size_t total_size = 0, size_left = size; in btrfs_listxattr() local 238 total_size += name_len + 1; in btrfs_listxattr() 258 ret = total_size; in btrfs_listxattr()
|
/linux-2.6.39/net/ipv4/netfilter/ |
D | arp_tables.c | 755 static int copy_entries_to_user(unsigned int total_size, in copy_entries_to_user() argument 772 if (copy_to_user(userptr, loc_cpu_entry, total_size) != 0) { in copy_entries_to_user() 779 for (off = 0, num = 0; off < total_size; off += e->next_offset, num++){ in copy_entries_to_user() 1311 unsigned int total_size, in translate_compat_table() argument 1326 size = total_size; in translate_compat_table() 1340 xt_entry_foreach(iter0, entry0, total_size) { in translate_compat_table() 1343 entry0 + total_size, in translate_compat_table() 1388 size = total_size; in translate_compat_table() 1389 xt_entry_foreach(iter0, entry0, total_size) { in translate_compat_table() 1451 xt_entry_foreach(iter0, entry0, total_size) { in translate_compat_table() [all …]
|
/linux-2.6.39/drivers/staging/pohmelfs/ |
D | net.c | 669 if (psb->total_size < cap->used + cap->avail) in pohmelfs_root_cap_response() 670 psb->total_size = cap->used + cap->avail; in pohmelfs_root_cap_response() 688 __func__, psb->total_size, psb->avail_size, psb->state_flags, cap->nr_files); in pohmelfs_root_cap_response() 772 unsigned int sz, total_size; in pohmelfs_getxattr_response() local 793 total_size = cmd->size - sz; in pohmelfs_getxattr_response() 795 while (total_size) { in pohmelfs_getxattr_response() 796 sz = min(total_size, st->size); in pohmelfs_getxattr_response() 804 total_size -= sz; in pohmelfs_getxattr_response()
|
/linux-2.6.39/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()
|