/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()
|
/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 …]
|
/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()
|
/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()
|
/drivers/staging/usbip/ |
D | vhci_tx.c | 73 size_t total_size = 0; in vhci_send_cmd_submit() local 131 total_size += txsize; in vhci_send_cmd_submit() 134 return total_size; in vhci_send_cmd_submit() 163 size_t total_size = 0; in vhci_send_cmd_unlink() local 199 total_size += txsize; in vhci_send_cmd_unlink() 202 return total_size; in vhci_send_cmd_unlink()
|
D | stub_tx.c | 163 size_t total_size = 0; in stub_send_ret_submit() local 277 total_size += txsize; in stub_send_ret_submit() 286 return total_size; in stub_send_ret_submit() 316 size_t total_size = 0; in stub_send_ret_unlink() local 348 total_size += txsize; in stub_send_ret_unlink() 360 return total_size; in stub_send_ret_unlink()
|
/drivers/staging/sm7xx/ |
D | smtcfb.c | 453 unsigned long total_size; in smtcfb_read() local 461 total_size = info->screen_size; in smtcfb_read() 463 if (total_size == 0) in smtcfb_read() 464 total_size = info->fix.smem_len; in smtcfb_read() 466 if (p >= total_size) in smtcfb_read() 469 if (count >= total_size) in smtcfb_read() 470 count = total_size; in smtcfb_read() 472 if (count + p > total_size) in smtcfb_read() 473 count = total_size - p; in smtcfb_read() 533 unsigned long total_size; in smtcfb_write() local [all …]
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | profile.c | 83 u64 total_size = 0; in mlx4_make_profile() local 160 profile[i].start = total_size; in mlx4_make_profile() 161 total_size += profile[i].size; in mlx4_make_profile() 164 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() 257 return total_size; in mlx4_make_profile()
|
/drivers/char/ |
D | tile-srom.c | 67 u32 total_size; /* Size of this device */ member 285 offset += srom->total_size; in srom_llseek() 292 if (offset < 0 || offset > srom->total_size) { in srom_llseek() 308 return sprintf(buf, "%u\n", srom->total_size); in total_show() 326 __ATTR(total_size, S_IRUGO, total_show, NULL), 362 if (_srom_read(devhdl, &srom->total_size, in srom_setup_minor() 363 SROM_TOTAL_SIZE_OFF, sizeof(srom->total_size)) < 0) in srom_setup_minor()
|
/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()
|
/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()
|
/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 …]
|
/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 …]
|
/drivers/staging/ozwpan/ |
D | ozpd.c | 369 f->total_size = sizeof(struct oz_hdr); in oz_tx_frame_alloc() 411 oz_select_elts_for_tx(&pd->elt_buff, 0, &f->total_size, in oz_prepare_frame() 433 skb = alloc_skb(f->total_size + OZ_ALLOCATED_SPACE(dev), GFP_ATOMIC); in oz_build_frame() 447 oz_hdr = (struct oz_hdr *)skb_put(skb, f->total_size); in oz_build_frame() 550 int total_size = sizeof(struct oz_hdr); in oz_send_isoc_frame() local 553 oz_select_elts_for_tx(&pd->elt_buff, 1, &total_size, in oz_send_isoc_frame() 557 skb = alloc_skb(total_size + OZ_ALLOCATED_SPACE(dev), GFP_ATOMIC); in oz_send_isoc_frame() 572 oz_hdr = (struct oz_hdr *)skb_put(skb, total_size); in oz_send_isoc_frame()
|
D | ozprotocol.h | 218 u16 total_size; member 347 u16 total_size; member
|
/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() 815 segment->total_size += ahslen; in iscsi_tcp_hdr_recv_done() 895 segment->total_copied = segment->total_size; in iscsi_tcp_recv_skb() 920 if (segment->total_copied >= segment->total_size) { in iscsi_tcp_recv_skb()
|
/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()
|
/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()
|
/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 | 174 sector_t *total_size, unsigned int *block_size); 176 sector_t *total_size, unsigned int *block_size); 178 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 …]
|
/drivers/edac/ |
D | edac_device.c | 79 unsigned total_size; in edac_device_alloc_ctl_info() local 129 total_size = ((unsigned long)pvt) + sz_private; in edac_device_alloc_ctl_info() 132 dev_ctl = kzalloc(total_size, GFP_KERNEL); in edac_device_alloc_ctl_info()
|