/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 | 762 unsigned long total_size; in fb_read() local 773 total_size = info->screen_size; in fb_read() 775 if (total_size == 0) in fb_read() 776 total_size = info->fix.smem_len; in fb_read() 778 if (p >= total_size) in fb_read() 781 if (count >= total_size) in fb_read() 782 count = total_size; in fb_read() 784 if (count + p > total_size) in fb_read() 785 count = total_size - p; in fb_read() 827 unsigned long total_size; in fb_write() local [all …]
|
/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 …]
|
/drivers/gpu/drm/vmwgfx/device_include/ |
D | svga3d_surfacedefs.h | 1046 u32 slice_size, total_size; in svga3dsurface_get_image_buffer_size() local 1051 total_size = clamped_umul32(image_blocks.width, in svga3dsurface_get_image_buffer_size() 1053 total_size = clamped_umul32(total_size, image_blocks.depth); in svga3dsurface_get_image_buffer_size() 1054 total_size = clamped_umul32(total_size, desc->bytes_per_block); in svga3dsurface_get_image_buffer_size() 1055 return total_size; in svga3dsurface_get_image_buffer_size() 1062 total_size = clamped_umul32(slice_size, image_blocks.depth); in svga3dsurface_get_image_buffer_size() 1064 return total_size; in svga3dsurface_get_image_buffer_size() 1074 u32 total_size = 0; in svga3dsurface_get_serialized_size() local 1080 total_size += svga3dsurface_get_image_buffer_size(desc, in svga3dsurface_get_serialized_size() 1084 return total_size * num_layers; in svga3dsurface_get_serialized_size()
|
/drivers/infiniband/hw/mthca/ |
D | mthca_profile.c | 78 s64 total_size = 0; in mthca_make_profile() local 144 profile[i].start = mem_base + total_size; in mthca_make_profile() 145 total_size += profile[i].size; in mthca_make_profile() 147 if (total_size > mem_avail) { in mthca_make_profile() 150 (unsigned long long) total_size, in mthca_make_profile() 166 (int) (total_size >> 10)); in mthca_make_profile() 169 (int) (total_size >> 10), (int) (mem_avail >> 10), in mthca_make_profile() 170 (int) ((mem_avail - total_size) >> 10)); in mthca_make_profile() 280 return total_size; in mthca_make_profile()
|
/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 | sm712fb.c | 1027 unsigned long total_size; in smtcfb_read() local 1035 total_size = info->screen_size; in smtcfb_read() 1037 if (total_size == 0) in smtcfb_read() 1038 total_size = info->fix.smem_len; in smtcfb_read() 1040 if (p >= total_size) in smtcfb_read() 1043 if (count >= total_size) in smtcfb_read() 1044 count = total_size; in smtcfb_read() 1046 if (count + p > total_size) in smtcfb_read() 1047 count = total_size - p; in smtcfb_read() 1104 unsigned long total_size; in smtcfb_write() local [all …]
|
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 | 211 unsigned long total_size; in ssd1307fb_write() local 215 total_size = info->fix.smem_len; in ssd1307fb_write() 217 if (p > total_size) in ssd1307fb_write() 220 if (count + p > total_size) in ssd1307fb_write() 221 count = total_size - p; in ssd1307fb_write()
|
/drivers/usb/usbip/ |
D | vhci_tx.c | 73 size_t total_size = 0; in vhci_send_cmd_submit() local 132 total_size += txsize; in vhci_send_cmd_submit() 135 return total_size; in vhci_send_cmd_submit() 164 size_t total_size = 0; in vhci_send_cmd_unlink() local 200 total_size += txsize; in vhci_send_cmd_unlink() 203 return total_size; in vhci_send_cmd_unlink()
|
D | stub_tx.c | 167 size_t total_size = 0; in stub_send_ret_submit() local 287 total_size += txsize; in stub_send_ret_submit() 296 return total_size; in stub_send_ret_submit() 326 size_t total_size = 0; in stub_send_ret_unlink() local 358 total_size += txsize; in stub_send_ret_unlink() 370 return total_size; in stub_send_ret_unlink()
|
/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"); 149 if (!total_size) in init_mtdram()
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | profile.c | 83 u64 total_size = 0; in mlx4_make_profile() local 157 profile[i].start = total_size; in mlx4_make_profile() 158 total_size += profile[i].size; in mlx4_make_profile() 161 if (total_size > dev_cap->max_icm_sz) { in mlx4_make_profile() 163 (unsigned long long) total_size, in mlx4_make_profile() 178 (int) (total_size >> 10)); in mlx4_make_profile() 268 return total_size; in mlx4_make_profile()
|
/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/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()
|
/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()
|
/drivers/net/ethernet/qlogic/qed/ |
D | qed_cxt.c | 84 u32 total_size; /* 0 means not active */ member 169 u32 start_line, u32 total_size, in qed_ilt_cli_blk_fill() argument 175 if (p_blk->total_size) in qed_ilt_cli_blk_fill() 178 p_blk->total_size = total_size; in qed_ilt_cli_blk_fill() 190 if (!p_blk->total_size) in qed_ilt_cli_adv_line() 197 *p_line += DIV_ROUND_UP(p_blk->total_size, in qed_ilt_cli_adv_line() 204 p_cli->last.val, p_blk->total_size, in qed_ilt_cli_adv_line() 318 if (!p_blk->total_size) in qed_ilt_blk_alloc() 321 sz_left = p_blk->total_size; in qed_ilt_blk_alloc()
|
/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/infiniband/hw/cxgb4/ |
D | mem.c | 442 u64 *total_size, int *npages, in build_phys_page_list() argument 449 *total_size = 0; in build_phys_page_list() 456 *total_size += buffer_list[i].size; in build_phys_page_list() 468 if (*total_size > 0xFFFFFFFFULL) in build_phys_page_list() 501 (unsigned long long)mask, *shift, (unsigned long long)*total_size, in build_phys_page_list() 518 u64 total_size; in c4iw_reregister_phys_mem() local 548 &total_size, &npages, in c4iw_reregister_phys_mem() 554 if (mr_exceeds_hw_limits(rhp, total_size)) { in c4iw_reregister_phys_mem() 571 mhp->attr.len = (u32) total_size; in c4iw_reregister_phys_mem() 584 u64 total_size; in c4iw_register_phys_mem() local [all …]
|
/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()
|
/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/net/wireless/iwlwifi/ |
D | iwl-devtrace-iwlwifi.h | 38 struct iwl_host_cmd *cmd, u16 total_size, 40 TP_ARGS(dev, cmd, total_size, hdr), 43 __dynamic_array(u8, hcmd, total_size)
|
/drivers/media/pci/ivtv/ |
D | ivtvfb.c | 389 unsigned long total_size; in ivtvfb_write() local 399 total_size = info->screen_size; in ivtvfb_write() 401 if (total_size == 0) in ivtvfb_write() 402 total_size = info->fix.smem_len; in ivtvfb_write() 404 if (p > total_size) in ivtvfb_write() 407 if (count > total_size) { in ivtvfb_write() 409 count = total_size; in ivtvfb_write() 412 if (count + p > total_size) { in ivtvfb_write() 415 count = total_size - p; in ivtvfb_write()
|
/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_ttm.c | 917 adev->gds.mem.total_size = adev->gds.mem.total_size << AMDGPU_GDS_SHIFT; in amdgpu_ttm_init() 920 adev->gds.gws.total_size = adev->gds.gws.total_size << AMDGPU_GWS_SHIFT; in amdgpu_ttm_init() 923 adev->gds.oa.total_size = adev->gds.oa.total_size << AMDGPU_OA_SHIFT; in amdgpu_ttm_init() 928 adev->gds.mem.total_size >> PAGE_SHIFT); in amdgpu_ttm_init() 936 adev->gds.gws.total_size >> PAGE_SHIFT); in amdgpu_ttm_init() 944 adev->gds.oa.total_size >> PAGE_SHIFT); in amdgpu_ttm_init()
|
/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
|