Home
last modified time | relevance | path

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

123

/drivers/video/fbdev/core/
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 …]
Dfbmem.c762 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/
Drscalc.c194 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/
Dsvga3d_surfacedefs.h1046 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/
Dmthca_profile.c78 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/
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()
Dsm712fb.c1027 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 …]
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()
Dssd1307fb.c211 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/
Dvhci_tx.c73 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()
Dstub_tx.c167 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/
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");
149 if (!total_size) in init_mtdram()
/drivers/net/ethernet/mellanox/mlx4/
Dprofile.c83 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/
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/char/
Dtile-srom.c65 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/
Dste_dma40_ll.c275 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/
Dqed_cxt.c84 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/
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/infiniband/hw/cxgb4/
Dmem.c442 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/
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()
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/
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/net/wireless/iwlwifi/
Diwl-devtrace-iwlwifi.h38 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/
Divtvfb.c389 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/
Damdgpu_ttm.c917 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/
Dcciss_cmd.h107 BYTE total_size[4]; /* Total size in blocks */ member
120 BYTE total_size[8]; /* Total size in blocks */ member

123