/drivers/video/ |
H A D | fb_sys_fops.c | 22 unsigned long total_size; local 27 total_size = info->screen_size; 29 if (total_size == 0) 30 total_size = info->fix.smem_len; 32 if (p >= total_size) 35 if (count >= total_size) 36 count = total_size; 38 if (count + p > total_size) 39 count = total_size - p; 62 unsigned long total_size; local [all...] |
H A D | hecubafb.c | 165 unsigned long total_size; local 170 total_size = info->fix.smem_len; 172 if (p > total_size) 175 if (count > total_size) { 177 count = total_size; 180 if (count + p > total_size) { 184 count = total_size - p;
|
H A D | metronomefb.c | 524 unsigned long total_size; local 529 total_size = info->fix.smem_len; 531 if (p > total_size) 534 if (count > total_size) { 536 count = total_size; 539 if (count + p > total_size) { 543 count = total_size - p;
|
/drivers/infiniband/hw/cxgb3/ |
H A D | iwch_mem.c | 137 u64 *total_size, 146 *total_size = 0; 153 *total_size += buffer_list[i].size; 165 if (*total_size > 0xFFFFFFFFULL) 198 (unsigned long long) mask, *shift, (unsigned long long) *total_size, 134 build_phys_page_list(struct ib_phys_buf *buffer_list, int num_phys_buf, u64 *iova_start, u64 *total_size, int *npages, int *shift, __be64 **page_list) argument
|
H A D | iwch_provider.c | 479 u64 total_size; local 509 &total_size, &npages, &shift, &page_list); 531 mhp->attr.len = (u32) total_size; 561 u64 total_size; local 588 &total_size, &npages, 607 mhp->attr.len = (u32) total_size;
|
/drivers/staging/usbip/ |
H A D | vhci_tx.c | 73 size_t total_size = 0; local 131 total_size += txsize; 134 return total_size; 163 size_t total_size = 0; local 199 total_size += txsize; 202 return total_size;
|
H A D | stub_tx.c | 163 size_t total_size = 0; local 277 total_size += txsize; 286 return total_size; 316 size_t total_size = 0; local 348 total_size += txsize; 360 return total_size;
|
/drivers/acpi/acpica/ |
H A D | rscalc.c | 191 acpi_rs_length total_size; local 207 total_size = acpi_gbl_aml_resource_sizes[resource->type]; 219 total_size--; 228 total_size--; 243 total_size = 249 total_size = (acpi_rs_length) 250 (total_size + resource->data.vendor.byte_length); 258 *size_needed = aml_size_needed + total_size; 269 total_size = (acpi_rs_length) 270 (total_size [all...] |
/drivers/infiniband/hw/mthca/ |
H A D | mthca_profile.c | 78 s64 total_size = 0; local 148 profile[i].start = mem_base + total_size; 149 total_size += profile[i].size; 151 if (total_size > mem_avail) { 154 (unsigned long long) total_size, 170 (int) (total_size >> 10)); 173 (int) (total_size >> 10), (int) (mem_avail >> 10), 174 (int) ((mem_avail - total_size) >> 10)); 284 return total_size;
|
H A D | mthca_mr.c | 430 u64 iova, u64 total_size, u32 access, struct mthca_mr *mr) 470 mpt_entry->length = cpu_to_be64(total_size); 521 int list_len, u64 iova, u64 total_size, 537 total_size, access, mr); 429 mthca_mr_alloc(struct mthca_dev *dev, u32 pd, int buffer_size_shift, u64 iova, u64 total_size, u32 access, struct mthca_mr *mr) argument 519 mthca_mr_alloc_phys(struct mthca_dev *dev, u32 pd, u64 *buffer_list, int buffer_size_shift, int list_len, u64 iova, u64 total_size, u32 access, struct mthca_mr *mr) argument
|
H A D | mthca_provider.c | 900 u64 total_size; local 908 total_size = 0; 915 total_size += buffer_list[i].size; 960 *iova_start, total_size,
|
/drivers/mtd/devices/ |
H A 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)
|
/drivers/net/ethernet/mellanox/mlx4/ |
H A D | profile.c | 83 u64 total_size = 0; local 160 profile[i].start = total_size; 161 total_size += profile[i].size; 164 if (total_size > dev_cap->max_icm_sz) { 167 (unsigned long long) total_size, 182 (int) (total_size >> 10)); 257 return total_size;
|
/drivers/char/ |
H A D | tile-srom.c | 67 u32 total_size; /* Size of this device */ member in struct:srom_dev 275 /* Provide our own implementation so we can use srom->total_size. */ 285 offset += srom->total_size; 292 if (offset < 0 || offset > srom->total_size) { 308 return sprintf(buf, "%u\n", srom->total_size); 326 __ATTR(total_size, S_IRUGO, total_show, NULL), 362 if (_srom_read(devhdl, &srom->total_size, 363 SROM_TOTAL_SIZE_OFF, sizeof(srom->total_size)) < 0)
|
/drivers/edac/ |
H A D | edac_device.c | 79 unsigned total_size; local 129 total_size = ((unsigned long)pvt) + sz_private; 132 dev_ctl = kzalloc(total_size, GFP_KERNEL);
|
/drivers/staging/ozwpan/ |
H A D | ozpd.h | 32 int total_size; member in struct:oz_tx_frame
|
H A D | ozusbsvc1.c | 382 u16 total_size = local 383 le16_to_cpu(get_unaligned(&body->total_size)); 387 data_len, offs, total_size);
|
H A D | ozpd.c | 369 f->total_size = sizeof(struct oz_hdr); 411 oz_select_elts_for_tx(&pd->elt_buff, 0, &f->total_size, 433 skb = alloc_skb(f->total_size + OZ_ALLOCATED_SPACE(dev), GFP_ATOMIC); 447 oz_hdr = (struct oz_hdr *)skb_put(skb, f->total_size); 550 int total_size = sizeof(struct oz_hdr); local 553 oz_select_elts_for_tx(&pd->elt_buff, 1, &total_size, 557 skb = alloc_skb(total_size + OZ_ALLOCATED_SPACE(dev), GFP_ATOMIC); 572 oz_hdr = (struct oz_hdr *)skb_put(skb, total_size);
|
/drivers/dma/ |
H A D | ste_dma40_ll.c | 267 int total_size = 0; local 281 total_size += sg_dma_len(current_sg); 296 return total_size; 416 int total_size = 0; local 430 total_size += sg_dma_len(current_sg); 439 return total_size;
|
/drivers/s390/block/ |
H A D | dasd_eer.c | 278 __u32 total_size; member in struct:dasd_eer_header 310 header.total_size = sizeof(header) + data_size + 4; /* "EOR" */ 320 dasd_eer_start_record(eerb, header.total_size); 353 header.total_size = sizeof(header) + data_size + 4; /* "EOR" */ 363 dasd_eer_start_record(eerb, header.total_size);
|
/drivers/infiniband/hw/cxgb4/ |
H A D | mem.c | 289 u64 *total_size, int *npages, 296 *total_size = 0; 303 *total_size += buffer_list[i].size; 315 if (*total_size > 0xFFFFFFFFULL) 348 (unsigned long long)mask, *shift, (unsigned long long)*total_size, 365 u64 total_size; local 395 &total_size, &npages, 413 mhp->attr.len = (u32) total_size; 426 u64 total_size; local 456 &total_size, 287 build_phys_page_list(struct ib_phys_buf *buffer_list, int num_phys_buf, u64 *iova_start, u64 *total_size, int *npages, int *shift, __be64 **page_list) argument [all...] |
/drivers/net/wireless/mwifiex/ |
H A D | wmm.c | 983 int count = 0, total_size = 0; local 987 total_size += skb->len; 988 if (total_size >= max_buf_size)
|
/drivers/staging/sm7xx/ |
H A D | smtcfb.c | 453 unsigned long total_size; local 461 total_size = info->screen_size; 463 if (total_size == 0) 464 total_size = info->fix.smem_len; 466 if (p >= total_size) 469 if (count >= total_size) 470 count = total_size; 472 if (count + p > total_size) 473 count = total_size - p; 533 unsigned long total_size; local [all...] |
/drivers/gpu/ion/ |
H A D | ion.c | 1197 size_t total_size = 0; local 1229 total_size += buffer->size; 1240 seq_printf(s, "%16.s %16u\n", "total ", total_size);
|
/drivers/media/video/ivtv/ |
H A D | ivtvfb.c | 388 unsigned long total_size; local 398 total_size = info->screen_size; 400 if (total_size == 0) 401 total_size = info->fix.smem_len; 403 if (p > total_size) 406 if (count > total_size) { 408 count = total_size; 411 if (count + p > total_size) { 414 count = total_size - p;
|