Home
last modified time | relevance | path

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

12345

/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.c765 unsigned long total_size; in fb_read() local
776 total_size = info->screen_size; in fb_read()
778 if (total_size == 0) in fb_read()
779 total_size = info->fix.smem_len; in fb_read()
781 if (p >= total_size) in fb_read()
784 if (count >= total_size) in fb_read()
785 count = total_size; in fb_read()
787 if (count + p > total_size) in fb_read()
788 count = total_size - p; in fb_read()
830 unsigned long total_size; in fb_write() local
[all …]
/drivers/acpi/acpica/
Drscalc.c159 acpi_rs_length total_size; in acpi_rs_get_aml_length() local
183 total_size = acpi_gbl_aml_resource_sizes[resource->type]; in acpi_rs_get_aml_length()
195 total_size--; in acpi_rs_get_aml_length()
204 total_size--; in acpi_rs_get_aml_length()
219 total_size = in acpi_rs_get_aml_length()
225 total_size = (acpi_rs_length) in acpi_rs_get_aml_length()
226 (total_size + resource->data.vendor.byte_length); in acpi_rs_get_aml_length()
234 *size_needed = aml_size_needed + total_size; in acpi_rs_get_aml_length()
245 total_size = (acpi_rs_length)(total_size + in acpi_rs_get_aml_length()
257 total_size = (acpi_rs_length)(total_size + in acpi_rs_get_aml_length()
[all …]
/drivers/net/ethernet/netronome/nfp/
Dnfp_net_debugdump.c101 u32 total_size; /* output */ member
309 &lev_sz->total_size, nfp_add_tlv_size); in nfp_calc_specific_level_size()
319 lev_sz.total_size = ALIGN8(sizeof(struct nfp_dump_prolog)); in nfp_net_dump_calculate_size()
326 return lev_sz.total_size; in nfp_net_dump_calculate_size()
353 u32 total_spec_size, total_size; in nfp_dump_error_tlv() local
357 total_size = ALIGN8(sizeof(*dump_header) + total_spec_size); in nfp_dump_error_tlv()
359 err = nfp_add_tlv(NFP_DUMPSPEC_TYPE_ERROR, total_size, dump); in nfp_dump_error_tlv()
372 u32 fwname_len, total_size; in nfp_dump_fwname() local
378 total_size = sizeof(*dump_header) + ALIGN8(fwname_len + 1); in nfp_dump_fwname()
380 err = nfp_add_tlv(NFP_DUMPSPEC_TYPE_FWNAME, total_size, dump); in nfp_dump_fwname()
[all …]
/drivers/gpu/drm/vmwgfx/device_include/
Dsvga3d_surfacedefs.h1194 u32 slice_size, total_size; in svga3dsurface_get_image_buffer_size() local
1199 total_size = clamped_umul32(image_blocks.width, in svga3dsurface_get_image_buffer_size()
1201 total_size = clamped_umul32(total_size, image_blocks.depth); in svga3dsurface_get_image_buffer_size()
1202 total_size = clamped_umul32(total_size, desc->bytes_per_block); in svga3dsurface_get_image_buffer_size()
1203 return total_size; in svga3dsurface_get_image_buffer_size()
1210 total_size = clamped_umul32(slice_size, image_blocks.depth); in svga3dsurface_get_image_buffer_size()
1212 return total_size; in svga3dsurface_get_image_buffer_size()
1225 u32 total_size = 0; in svga3dsurface_get_serialized_size() local
1231 total_size += svga3dsurface_get_image_buffer_size(desc, in svga3dsurface_get_serialized_size()
1235 return total_size * num_layers; in svga3dsurface_get_serialized_size()
[all …]
/drivers/gpu/drm/vboxvideo/
Dvbox_hgsmi.c52 size_t total_size; in hgsmi_buffer_alloc() local
55 total_size = size + sizeof(*h) + sizeof(*t); in hgsmi_buffer_alloc()
56 h = gen_pool_dma_alloc(guest_pool, total_size, &offset); in hgsmi_buffer_alloc()
78 size_t total_size = h->data_size + sizeof(*h) + in hgsmi_buffer_free() local
81 gen_pool_free(guest_pool, (unsigned long)h, total_size); in hgsmi_buffer_free()
/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.c1028 unsigned long total_size; in smtcfb_read() local
1036 total_size = info->screen_size; in smtcfb_read()
1038 if (total_size == 0) in smtcfb_read()
1039 total_size = info->fix.smem_len; in smtcfb_read()
1041 if (p >= total_size) in smtcfb_read()
1044 if (count >= total_size) in smtcfb_read()
1045 count = total_size; in smtcfb_read()
1047 if (count + p > total_size) in smtcfb_read()
1048 count = total_size - p; in smtcfb_read()
1105 unsigned long total_size; in smtcfb_write() local
[all …]
Dmetronomefb.c526 unsigned long total_size; in metronomefb_write() local
531 total_size = info->fix.smem_len; in metronomefb_write()
533 if (p > total_size) in metronomefb_write()
536 if (count > total_size) { in metronomefb_write()
538 count = total_size; in metronomefb_write()
541 if (count + p > total_size) { in metronomefb_write()
545 count = total_size - p; in metronomefb_write()
/drivers/gpu/drm/selftests/
Dtest-drm_mm.c1235 unsigned int total_size, in evict_nothing() argument
1245 for (n = 0; n < total_size; n++) { in evict_nothing()
1253 for (n = 0; n < total_size; n++) { in evict_nothing()
1269 for (n = 0; n < total_size; n++) { in evict_nothing()
1282 unsigned int total_size, in evict_everything() argument
1291 drm_mm_scan_init(&scan, mm, total_size, 0, 0, 0); in evict_everything()
1292 for (n = 0; n < total_size; n++) { in evict_everything()
1315 if (!assert_one_hole(mm, 0, total_size)) in evict_everything()
2155 const unsigned int total_size = min(8192u, max_iterations); in igt_color_evict() local
2171 nodes = vzalloc(array_size(total_size, sizeof(*nodes))); in igt_color_evict()
[all …]
/drivers/mtd/devices/
Dmtdram.c21 static unsigned long total_size = CONFIG_MTDRAM_TOTAL_SIZE; variable
24 #define MTDRAM_TOTAL_SIZE (total_size * 1024)
27 module_param(total_size, ulong, 0);
28 MODULE_PARM_DESC(total_size, "Total device size in KiB");
157 if (!total_size) in init_mtdram()
/drivers/usb/usbip/
Dvhci_tx.c62 size_t total_size = 0; in vhci_send_cmd_submit() local
156 total_size += txsize; in vhci_send_cmd_submit()
159 return total_size; in vhci_send_cmd_submit()
194 size_t total_size = 0; in vhci_send_cmd_unlink() local
229 total_size += txsize; in vhci_send_cmd_unlink()
232 return total_size; in vhci_send_cmd_unlink()
Dstub_tx.c158 size_t total_size = 0; in stub_send_ret_submit() local
331 total_size += txsize; in stub_send_ret_submit()
340 return total_size; in stub_send_ret_submit()
370 size_t total_size = 0; in stub_send_ret_unlink() local
402 total_size += txsize; in stub_send_ret_unlink()
414 return total_size; in stub_send_ret_unlink()
/drivers/net/ethernet/mellanox/mlx4/
Dprofile.c83 u64 total_size = 0; in mlx4_make_profile() local
158 profile[i].start = total_size; in mlx4_make_profile()
159 total_size += profile[i].size; in mlx4_make_profile()
162 if (total_size > dev_cap->max_icm_sz) { in mlx4_make_profile()
164 (unsigned long long) total_size, in mlx4_make_profile()
179 (int) (total_size >> 10)); in mlx4_make_profile()
269 return total_size; in mlx4_make_profile()
/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_cudbg.c348 u32 i, total_size = 0; in cxgb4_cudbg_collect_entity() local
373 total_size += entity_hdr->size; in cxgb4_cudbg_collect_entity()
376 *tot_size += total_size; in cxgb4_cudbg_collect_entity()
405 u32 size, min_size, total_size = 0; in cxgb4_cudbg_collect() local
455 total_size = dbg_buff.offset; in cxgb4_cudbg_collect()
462 &total_size); in cxgb4_cudbg_collect()
469 &total_size); in cxgb4_cudbg_collect()
472 cudbg_hdr->data_len = total_size; in cxgb4_cudbg_collect()
476 *buf_size = total_size; in cxgb4_cudbg_collect()
/drivers/net/ethernet/rocker/
Drocker_tlv.c36 int total_size = rocker_tlv_total_size(attrlen); in rocker_tlv_put() local
39 if (unlikely(tail_room < total_size)) in rocker_tlv_put()
43 desc_info->tlv_size += total_size; in rocker_tlv_put()
/drivers/gpu/drm/bridge/
Dmegachips-stdpxxxx-ge-b850v3-fw.c72 unsigned int total_size; in stdp2690_get_edid() local
102 total_size = (block[EDID_EXT_BLOCK_CNT] + 1) * EDID_LENGTH; in stdp2690_get_edid()
103 if (total_size > EDID_LENGTH) { in stdp2690_get_edid()
105 block = kmalloc(total_size, GFP_KERNEL); in stdp2690_get_edid()
113 msgs[1].len = total_size; in stdp2690_get_edid()
/drivers/misc/habanalabs/
Dmemory.c59 u64 paddr = 0, total_size, num_pgs, i; in alloc_device_memory() local
68 total_size = num_pgs << page_shift; in alloc_device_memory()
73 paddr = (u64) gen_pool_alloc(vm->dram_pg_pool, total_size); in alloc_device_memory()
92 phys_pg_pack->total_size = total_size; in alloc_device_memory()
137 atomic64_add(phys_pg_pack->total_size, &ctx->dram_phys_mem); in alloc_device_memory()
138 atomic64_add(phys_pg_pack->total_size, &hdev->dram_used_mem); in alloc_device_memory()
156 gen_pool_free(vm->dram_pg_pool, paddr, total_size); in alloc_device_memory()
275 phys_pg_pack->total_size); in free_phys_pg_pack()
328 atomic64_sub(phys_pg_pack->total_size, &ctx->dram_phys_mem); in free_device_memory()
329 atomic64_sub(phys_pg_pack->total_size, &hdev->dram_used_mem); in free_device_memory()
[all …]
/drivers/firmware/efi/
Dcapsule-loader.c43 pages_needed = ALIGN(cap_info->total_size, PAGE_SIZE) / PAGE_SIZE; in __efi_capsule_setup_info()
98 cap_info->total_size = cap_info->header.imagesize; in efi_capsule_setup_info()
223 cap_info->count >= cap_info->total_size) { in efi_capsule_write()
224 if (cap_info->count > cap_info->total_size) { in efi_capsule_write()
/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/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()
427 if(!request_region(ioaddr, cards[i].total_size, cards[i].cardname)) in ni65_probe1()
432 release_region(ioaddr, cards[i].total_size); in ni65_probe1()
439 release_region(ioaddr, cards[i].total_size); in ni65_probe1()
450 release_region(ioaddr, cards[i].total_size); in ni65_probe1()
465 release_region(ioaddr, cards[p->cardno].total_size); in ni65_probe1()
[all …]
/drivers/net/wireless/intel/iwlwifi/
Diwl-devtrace-iwlwifi.h25 struct iwl_host_cmd *cmd, u16 total_size,
27 TP_ARGS(dev, cmd, total_size, hdr),
30 __dynamic_array(u8, hcmd, total_size)
/drivers/infiniband/hw/i40iw/
Di40iw_uk.c137 u32 total_size, in i40iw_qp_get_next_send_wqe() argument
194 qp->sq_wrtrk_array[*wqe_idx].wr_len = total_size; in i40iw_qp_get_next_send_wqe()
253 u32 total_size = 0, byte_off; in i40iw_rdma_write() local
263 total_size += op_info->lo_sg_list[i].len; in i40iw_rdma_write()
265 if (total_size > I40IW_MAX_OUTBOUND_MESSAGE_SIZE) in i40iw_rdma_write()
274 wqe = i40iw_qp_get_next_send_wqe(qp, &wqe_idx, wqe_size, total_size, info->wr_id); in i40iw_rdma_write()
370 u32 i, wqe_idx, total_size = 0, byte_off; in i40iw_send() local
380 total_size += op_info->sg_list[i].len; in i40iw_send()
385 wqe = i40iw_qp_get_next_send_wqe(qp, &wqe_idx, wqe_size, total_size, info->wr_id); in i40iw_send()
663 u32 total_size = 0, wqe_idx, i, byte_off; in i40iw_post_receive() local
[all …]
/drivers/scsi/
Dlibiscsi_tcp.c96 segment->total_size - segment->total_copied); in iscsi_tcp_segment_init_sg()
167 segment->total_size += ISCSI_DIGEST_SIZE; in iscsi_tcp_segment_splice_digest()
234 segment->total_copied, segment->total_size); in iscsi_tcp_segment_done()
235 if (segment->total_copied < segment->total_size) { in iscsi_tcp_segment_done()
250 segment->total_size += pad; in iscsi_tcp_segment_done()
349 segment->total_size = size; in __iscsi_segment_init()
828 segment->total_size += ahslen; in iscsi_tcp_hdr_recv_done()
909 segment->total_copied = segment->total_size; in iscsi_tcp_recv_skb()
933 if (segment->total_copied >= segment->total_size) { in iscsi_tcp_recv_skb()

12345