Home
last modified time | relevance | path

Searched refs:total_size (Results 1 – 25 of 54) sorted by relevance

123

/drivers/video/
Dfb_sys_fops.c22 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 …]
Dhecubafb.c165 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()
Dmetronomefb.c524 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()
Dfbmem.c747 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 …]
Dbroadsheetfb.c1012 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/
Drscalc.c191 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/
Dmthca_profile.c78 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/
Dmtdram.c20 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/
Dvhci_tx.c73 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()
Dstub_tx.c163 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/
Dsmtcfb.c453 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/
Dprofile.c83 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/
Dtile-srom.c67 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/
Diwch_mem.c137 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/
Dste_dma40_ll.c267 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/
Dmem.c289 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/
Dni65.c179 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/
Dozpd.c369 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()
Dozprotocol.h218 u16 total_size; member
347 u16 total_size; member
/drivers/scsi/
Dlibiscsi_tcp.c103 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/
Ddasd_eer.c278 __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/
Divtvfb.c388 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/
Dcciss_cmd.h107 BYTE total_size[4]; /* Total size in blocks */ member
120 BYTE total_size[8]; /* Total size in blocks */ member
Dcciss.c174 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/
Dedac_device.c79 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()

123