| /drivers/video/fbdev/core/ |
| A D | fb_sys_fops.c | 24 unsigned long total_size, c; in fb_sys_read() local 35 if (total_size == 0) in fb_sys_read() 38 if (p >= total_size) in fb_sys_read() 41 if (count >= total_size) in fb_sys_read() 42 count = total_size; in fb_sys_read() 45 count = total_size - p; in fb_sys_read() 80 if (total_size == 0) in fb_sys_write() 83 if (p > total_size) in fb_sys_write() 86 if (count > total_size) { in fb_sys_write() 88 count = total_size; in fb_sys_write() [all …]
|
| A D | fb_io_fops.c | 24 if (total_size == 0) in fb_io_read() 27 if (p >= total_size) in fb_io_read() 30 if (count >= total_size) in fb_io_read() 31 count = total_size; in fb_io_read() 33 if (count + p > total_size) in fb_io_read() 34 count = total_size - p; in fb_io_read() 88 if (total_size == 0) in fb_io_write() 91 if (p > total_size) in fb_io_write() 94 if (count > total_size) { in fb_io_write() 96 count = total_size; in fb_io_write() [all …]
|
| /drivers/acpi/acpica/ |
| A D | rscalc.c | 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() 269 total_size = (acpi_rs_length)(total_size + in acpi_rs_get_aml_length() 282 total_size = (acpi_rs_length)(total_size + in acpi_rs_get_aml_length() 296 total_size = (acpi_rs_length)(total_size + in acpi_rs_get_aml_length() 309 total_size = (acpi_rs_length)(total_size + in acpi_rs_get_aml_length() 325 total_size = (acpi_rs_length)(total_size + in acpi_rs_get_aml_length() 341 total_size = (acpi_rs_length)(total_size + in acpi_rs_get_aml_length() 354 total_size = (acpi_rs_length)(total_size + in acpi_rs_get_aml_length() 368 total_size = (acpi_rs_length)(total_size + in acpi_rs_get_aml_length() [all …]
|
| /drivers/net/ethernet/netronome/nfp/ |
| A D | nfp_net_debugdump.c | 106 u32 total_size; /* output */ member 331 return lev_sz.total_size; in nfp_net_dump_calculate_size() 358 u32 total_spec_size, total_size; in nfp_dump_error_tlv() local 377 u32 fwname_len, total_size; in nfp_dump_fwname() local 399 u32 hwinfo_size, total_size; in nfp_dump_hwinfo() local 422 u32 total_size; in nfp_dump_hwinfo_field() local 460 u32 reg_sz, header_size, total_size; in nfp_dump_csr_range() local 472 total_size = header_size + in nfp_dump_csr_range() 565 u32 reg_sz, header_size, total_size; in nfp_dump_indirect_csr_range() local 734 u32 total_size; in nfp_dump_populate_prolog() local [all …]
|
| /drivers/gpu/drm/vmwgfx/ |
| A D | vmw_surface_cache.h | 125 u32 slice_size, total_size; in vmw_surface_get_image_buffer_size() local 130 total_size = clamped_umul32(image_blocks.width, in vmw_surface_get_image_buffer_size() 132 total_size = clamped_umul32(total_size, image_blocks.depth); in vmw_surface_get_image_buffer_size() 133 total_size = clamped_umul32(total_size, desc->bytesPerBlock); in vmw_surface_get_image_buffer_size() 134 return total_size; in vmw_surface_get_image_buffer_size() 143 return total_size; in vmw_surface_get_image_buffer_size() 156 u32 total_size = 0; in vmw_surface_get_serialized_size() local 162 total_size += vmw_surface_get_image_buffer_size(desc, in vmw_surface_get_serialized_size() 166 return total_size * num_layers; in vmw_surface_get_serialized_size() 180 uint64_t total_size = in vmw_surface_get_serialized_size_extended() local [all …]
|
| /drivers/net/ethernet/chelsio/cxgb4/ |
| A D | cxgb4_cudbg.c | 111 u32 i, total_size = 0; in cxgb4_cudbg_collect_entity() local 136 total_size += entity_hdr->size; in cxgb4_cudbg_collect_entity() 139 *tot_size += total_size; in cxgb4_cudbg_collect_entity() 167 u32 size, min_size, total_size = 0; in cxgb4_cudbg_collect() local 217 total_size = dbg_buff.offset; in cxgb4_cudbg_collect() 224 &total_size); in cxgb4_cudbg_collect() 231 &total_size); in cxgb4_cudbg_collect() 238 &total_size); in cxgb4_cudbg_collect() 241 cudbg_hdr->data_len = total_size; in cxgb4_cudbg_collect() 245 *buf_size = total_size; in cxgb4_cudbg_collect()
|
| /drivers/gpu/drm/vboxvideo/ |
| A D | vbox_hgsmi.c | 52 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/ |
| A D | mthca_profile.c | 76 s64 total_size = 0; in mthca_make_profile() local 142 profile[i].start = mem_base + total_size; in mthca_make_profile() 143 total_size += profile[i].size; in mthca_make_profile() 145 if (total_size > mem_avail) { in mthca_make_profile() 148 (unsigned long long) total_size, in mthca_make_profile() 164 (int) (total_size >> 10)); in mthca_make_profile() 167 (int) (total_size >> 10), (int) (mem_avail >> 10), in mthca_make_profile() 168 (int) ((mem_avail - total_size) >> 10)); in mthca_make_profile() 278 return total_size; in mthca_make_profile()
|
| /drivers/gpu/drm/xe/ |
| A D | xe_guc_ads.c | 281 total_size += alloc_size; in calculate_golden_lrc_size() 284 return total_size; in calculate_golden_lrc_size() 650 total_size = PAGE_SIZE; in guc_capture_prep_lists() 676 j, &total_size, &size, &ptr); in guc_capture_prep_lists() 682 total_size += size; in guc_capture_prep_lists() 691 j, &total_size, &size, &ptr); in guc_capture_prep_lists() 697 total_size += size; in guc_capture_prep_lists() 707 0, &total_size, &size, &ptr); in guc_capture_prep_lists() 712 total_size += size; in guc_capture_prep_lists() 722 return PAGE_ALIGN(total_size); in guc_capture_prep_lists() [all …]
|
| A D | xe_vram.c | 303 u64 total_size = 0; in xe_vram_probe() local 356 total_size += tile_size; in xe_vram_probe() 359 if (total_size > xe->mem.vram.io_size) { in xe_vram_probe() 361 &total_size, &xe->mem.vram.io_size); in xe_vram_probe() 367 xe->mem.vram.actual_physical_size = total_size; in xe_vram_probe()
|
| /drivers/video/fbdev/ |
| A D | sm712fb.c | 1034 unsigned long total_size; in smtcfb_read() local 1041 if (total_size == 0) in smtcfb_read() 1044 if (p >= total_size) in smtcfb_read() 1047 if (count >= total_size) in smtcfb_read() 1048 count = total_size; in smtcfb_read() 1051 count = total_size - p; in smtcfb_read() 1097 unsigned long total_size; in smtcfb_write() local 1104 if (total_size == 0) in smtcfb_write() 1107 if (p > total_size) in smtcfb_write() 1112 count = total_size; in smtcfb_write() [all …]
|
| /drivers/gpu/drm/i915/gt/uc/ |
| A D | intel_guc_ads.c | 533 u32 total_size = 0, alloc_size, real_size; in guc_prep_golden_context() local 569 total_size += alloc_size; in guc_prep_golden_context() 597 return total_size; in guc_prep_golden_context() 645 total_size += alloc_size; in guc_init_golden_context() 728 total_size = PAGE_SIZE; in guc_capture_prep_lists() 755 total_size += size; in guc_capture_prep_lists() 757 if (total_size > guc->ads_capture_size || in guc_capture_prep_lists() 777 total_size += size; in guc_capture_prep_lists() 797 total_size += size; in guc_capture_prep_lists() 799 if (total_size > guc->ads_capture_size || in guc_capture_prep_lists() [all …]
|
| /drivers/accel/amdxdna/ |
| A D | amdxdna_mailbox.c | 74 __u32 total_size; member 267 header->opcode, header->total_size, header->id); in mailbox_get_resp() 268 ret = mb_msg->notify_cb(mb_msg->handle, data, header->total_size); in mailbox_get_resp() 306 header.total_size = readl(read_addr); in mailbox_get_msg() 308 if (header.total_size == TOMBSTONE) { in mailbox_get_msg() 318 if (unlikely(!header.total_size || !IS_ALIGNED(header.total_size, 4))) { in mailbox_get_msg() 319 MB_WARN_ONCE(mb_chann, "Invalid total size 0x%x", header.total_size); in mailbox_get_msg() 322 msg_size = sizeof(header) + header.total_size; in mailbox_get_msg() 441 header->total_size = msg->send_size; in xdna_mailbox_send_msg() 455 header->opcode, header->total_size, header->id); in xdna_mailbox_send_msg()
|
| /drivers/mtd/devices/ |
| A D | mtdram.c | 21 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/ |
| A D | vhci_tx.c | 62 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()
|
| A D | stub_tx.c | 158 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/ |
| A D | profile.c | 83 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/infiniband/hw/irdma/ |
| A D | uk.c | 155 u16 quanta, u32 total_size, in irdma_qp_get_next_send_wqe() argument 239 u32 total_size = 0, byte_off; in irdma_uk_rdma_write() local 250 total_size += op_info->lo_sg_list[i].length; in irdma_uk_rdma_write() 332 u32 i, byte_off, total_size = 0; in irdma_uk_rdma_read() local 345 total_size += op_info->lo_sg_list[i].length; in irdma_uk_rdma_read() 413 u32 i, wqe_idx, total_size = 0, byte_off; in irdma_uk_send() local 424 total_size += op_info->sg_list[i].length; in irdma_uk_send() 662 u32 i, total_size = 0; in irdma_uk_inline_rdma_write() local 671 total_size += op_info->lo_sg_list[i].length; in irdma_uk_inline_rdma_write() 730 u32 i, total_size = 0; in irdma_uk_inline_send() local [all …]
|
| /drivers/net/ethernet/rocker/ |
| A D | rocker_tlv.c | 36 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/firmware/efi/ |
| A D | capsule-loader.c | 44 pages_needed = ALIGN(cap_info->total_size, PAGE_SIZE) / PAGE_SIZE; in __efi_capsule_setup_info() 99 cap_info->total_size = cap_info->header.imagesize; in efi_capsule_setup_info() 224 cap_info->count >= cap_info->total_size) { in efi_capsule_write() 225 if (cap_info->count > cap_info->total_size) { in efi_capsule_write() 259 cap_info->count < cap_info->total_size)) { in efi_capsule_release()
|
| /drivers/md/dm-vdo/ |
| A D | memory-alloc.h | 43 size_t total_size = count * size + extra; in __vdo_do_allocation() local 53 total_size = SIZE_MAX; in __vdo_do_allocation() 56 return vdo_allocate_memory(total_size, align, what, ptr); in __vdo_do_allocation()
|
| /drivers/net/ipa/ |
| A D | gsi_trans.c | 138 size_t total_size; in gsi_trans_pool_init_dma() local 151 total_size = (count + max_alloc - 1) * size; in gsi_trans_pool_init_dma() 159 total_size = PAGE_SIZE << get_order(total_size); in gsi_trans_pool_init_dma() 161 virt = dma_alloc_coherent(dev, total_size, &addr, GFP_KERNEL); in gsi_trans_pool_init_dma() 166 pool->count = total_size / size; in gsi_trans_pool_init_dma() 177 size_t total_size = pool->count * pool->size; in gsi_trans_pool_exit_dma() local 179 dma_free_coherent(dev, total_size, pool->base, pool->addr); in gsi_trans_pool_exit_dma()
|
| /drivers/accel/habanalabs/common/ |
| A D | memory.c | 93 u64 paddr = 0, total_size, num_pgs, i; in alloc_device_memory() local 105 total_size = num_pgs * page_size; in alloc_device_memory() 107 if (!total_size) { in alloc_device_memory() 117 total_size, NULL, page_size); in alloc_device_memory() 123 num_pgs, total_size); in alloc_device_memory() 138 phys_pg_pack->total_size = total_size; in alloc_device_memory() 323 phys_pg_pack->total_size); in free_phys_pg_pack() 1207 phys_pg_pack->total_size); in map_device_va() 1363 phys_pg_pack->total_size); in unmap_device_va() 1377 vaddr + phys_pg_pack->total_size - 1); in unmap_device_va() [all …]
|
| /drivers/dma/ |
| A D | ste_dma40_ll.c | 276 int total_size = 0; in d40_phy_sg_to_lli() local 290 total_size += sg_dma_len(current_sg); in d40_phy_sg_to_lli() 305 return total_size; in d40_phy_sg_to_lli() 425 int total_size = 0; in d40_log_sg_to_lli() local 439 total_size += sg_dma_len(current_sg); in d40_log_sg_to_lli() 448 return total_size; in d40_log_sg_to_lli()
|
| /drivers/net/wireless/purelifi/plfxlc/ |
| A D | firmware.c | 170 file.total_size = get_unaligned_le32(&fwp->size); in plfxlc_download_xl_firmware() 173 file.total_files, file.total_size); in plfxlc_download_xl_firmware() 198 file.size = file.total_size - in plfxlc_download_xl_firmware() 201 if (file.size > file.total_size || file.size > 60000) { in plfxlc_download_xl_firmware()
|