| /drivers/crypto/ |
| A D | omap-crypto.c | 33 while (*sg && total) { in omap_crypto_copy_sg_lists() 36 if (total < len) in omap_crypto_copy_sg_lists() 37 len = total; in omap_crypto_copy_sg_lists() 40 total -= len; in omap_crypto_copy_sg_lists() 42 if (total <= 0) in omap_crypto_copy_sg_lists() 62 new_len = ALIGN(total, bs); in omap_crypto_copy_sgs() 73 scatterwalk_map_and_copy(buf, *sg, 0, total, 0); in omap_crypto_copy_sgs() 75 memset(buf + total, 0, new_len - total); in omap_crypto_copy_sgs() 94 if (!IS_ALIGNED(total, bs)) in omap_crypto_check_sg() 112 if (len >= total) in omap_crypto_check_sg() [all …]
|
| /drivers/gpu/drm/xe/ |
| A D | xe_guc_id_mgr.c | 50 weight, idm->total); in __fini_idm() 57 idm->total = 0; in __fini_idm() 81 idm_assert(idm, !idm->total); in xe_guc_id_mgr_init() 94 idm->total = limit; in xe_guc_id_mgr_init() 101 idm->total, str_plural(idm->total)); in xe_guc_id_mgr_init() 106 unsigned int total, in find_last_zero_area() argument 109 unsigned int found = total; in find_last_zero_area() 129 if (!idm->total) in idm_reserve_chunk_locked() 137 if (idm->used + count + retain > idm->total) in idm_reserve_chunk_locked() 150 if (id >= idm->total) in idm_reserve_chunk_locked() [all …]
|
| A D | xe_guc_db_mgr.c | 228 unsigned int total; in dbm_print_locked() local 234 total = 0; in dbm_print_locked() 238 total += re - rs; in dbm_print_locked() 240 drm_printf_indent(p, indent, "available total: %u\n", total); in dbm_print_locked() 242 total = 0; in dbm_print_locked() 246 total += re - rs; in dbm_print_locked() 248 drm_printf_indent(p, indent, "reserved total: %u\n", total); in dbm_print_locked()
|
| /drivers/gpu/drm/xe/tests/ |
| A D | xe_guc_id_mgr_test.c | 48 KUNIT_EXPECT_EQ(test, idm->total, GUC_ID_MAX); in init_fini() 51 KUNIT_EXPECT_EQ(test, idm->total, 0); in init_fini() 63 for (n = 0; n < idm->total; n++) { in check_used() 69 KUNIT_EXPECT_EQ(test, idm->used, idm->total); in check_used() 85 for (n = 0; n < idm->total - 1; n++) { in check_quota() 87 KUNIT_EXPECT_EQ(test, idm_reserve_chunk_locked(idm, 1, idm->total), -EDQUOT); in check_quota() 93 KUNIT_EXPECT_EQ(test, idm->used, idm->total); in check_quota() 94 idm_release_chunk_locked(idm, 0, idm->total); in check_quota() 109 for (n = 0; n < idm->total; n++) in check_all() 111 KUNIT_EXPECT_EQ(test, idm->used, idm->total); in check_all() [all …]
|
| /drivers/input/rmi4/ |
| A D | rmi_f55.c | 63 int i, total; in rmi_f55_detect() local 77 total = 0; in rmi_f55_detect() 80 total++; in rmi_f55_detect() 82 f55->cfg_num_rx_electrodes = total; in rmi_f55_detect() 83 drv_data->num_rx_electrodes = total; in rmi_f55_detect() 90 total = 0; in rmi_f55_detect() 93 total++; in rmi_f55_detect() 95 f55->cfg_num_tx_electrodes = total; in rmi_f55_detect() 96 drv_data->num_tx_electrodes = total; in rmi_f55_detect()
|
| /drivers/media/platform/mediatek/vcodec/common/ |
| A D | mtk_vcodec_dbgfs.c | 15 int *used, int total) in mtk_vdec_dbgfs_get_format_type() argument 21 curr_len = snprintf(buf + *used, total - *used, in mtk_vdec_dbgfs_get_format_type() 25 curr_len = snprintf(buf + *used, total - *used, in mtk_vdec_dbgfs_get_format_type() 29 curr_len = snprintf(buf + *used, total - *used, in mtk_vdec_dbgfs_get_format_type() 33 curr_len = snprintf(buf + *used, total - *used, in mtk_vdec_dbgfs_get_format_type() 41 curr_len = snprintf(buf + *used, total - *used, in mtk_vdec_dbgfs_get_format_type() 45 curr_len = snprintf(buf + *used, total - *used, in mtk_vdec_dbgfs_get_format_type() 49 curr_len = snprintf(buf + *used, total - *used, in mtk_vdec_dbgfs_get_format_type() 60 curr_len = snprintf(buf + *used, total - *used, in mtk_vdec_dbgfs_get_help() 64 curr_len = snprintf(buf + *used, total - *used, in mtk_vdec_dbgfs_get_help() [all …]
|
| /drivers/md/bcache/ |
| A D | stats.c | 97 int ret = kobject_add(&acc->total.kobj, parent, in bch_cache_accounting_add_kobjs() 110 acc->total.cache_hits = 0; in bch_cache_accounting_clear() 111 acc->total.cache_misses = 0; in bch_cache_accounting_clear() 112 acc->total.cache_bypass_hits = 0; in bch_cache_accounting_clear() 113 acc->total.cache_bypass_misses = 0; in bch_cache_accounting_clear() 114 acc->total.cache_miss_collisions = 0; in bch_cache_accounting_clear() 115 acc->total.sectors_bypassed = 0; in bch_cache_accounting_clear() 120 kobject_put(&acc->total.kobj); in bch_cache_accounting_destroy() 160 acc->total.name += t; \ in scale_accounting() 170 scale_stats(&acc->total, 0); in scale_accounting() [all …]
|
| /drivers/gpu/drm/i915/selftests/ |
| A D | i915_gem_gtt.c | 1540 u64 total; in igt_gtt_reserve() local 1551 total + 2 * I915_GTT_PAGE_SIZE <= ggtt->vm.total; in igt_gtt_reserve() 1578 total, ggtt->vm.total, err); in igt_gtt_reserve() 1596 total + 2 * I915_GTT_PAGE_SIZE <= ggtt->vm.total; in igt_gtt_reserve() 1624 total, ggtt->vm.total, err); in igt_gtt_reserve() 1665 total, ggtt->vm.total, err); in igt_gtt_reserve() 1747 u64 total; in igt_gtt_insert() local 1774 total + I915_GTT_PAGE_SIZE <= ggtt->vm.total; in igt_gtt_insert() 1807 total, ggtt->vm.total, err); in igt_gtt_insert() 1857 total, ggtt->vm.total, err); in igt_gtt_insert() [all …]
|
| A D | intel_memory_region.c | 67 rem = total; in igt_mock_fill() 244 resource_size_t total; in igt_mock_contiguous() local 331 target = total >> 1; in igt_mock_contiguous() 532 u64 total; in igt_object_mappable_total() local 534 total = 0; in igt_object_mappable_total() 543 return total; in igt_object_mappable_total() 553 u64 total; in igt_mock_io_size() local 566 total = round_down(total, ps); in igt_mock_io_size() 567 total = max_t(u64, total, SZ_1G); in igt_mock_io_size() 583 rem = total - io_size; in igt_mock_io_size() [all …]
|
| /drivers/infiniband/hw/hns/ |
| A D | hns_roce_alloc.c | 137 int total = 0; in hns_roce_get_kmem_bufs() local 149 bufs[total++] = hns_roce_buf_dma_addr(buf, offset); in hns_roce_get_kmem_bufs() 153 return total; in hns_roce_get_kmem_bufs() 160 int total = 0; in hns_roce_get_umem_bufs() local 164 bufs[total++] = rdma_block_iter_dma_address(&biter); in hns_roce_get_umem_bufs() 165 if (total >= buf_cnt) in hns_roce_get_umem_bufs() 170 return total; in hns_roce_get_umem_bufs()
|
| /drivers/gpu/drm/i915/gt/ |
| A D | intel_gt_pm.c | 64 gt->stats.total = in runtime_end() 65 ktime_add(gt->stats.total, in runtime_end() 410 ktime_t total = gt->stats.total; in __intel_gt_get_awake_time() local 413 total = ktime_add(total, in __intel_gt_get_awake_time() 416 return total; in __intel_gt_get_awake_time() 422 ktime_t total; in intel_gt_get_awake_time() local 426 total = __intel_gt_get_awake_time(gt); in intel_gt_get_awake_time() 429 return total; in intel_gt_get_awake_time()
|
| /drivers/gpu/drm/sun4i/ |
| A D | sun4i_tcon.h | 71 #define SUN4I_TCON0_BASIC1_H_TOTAL(total) ((((total) - 1) & 0x1fff) << 16) argument 75 #define SUN4I_TCON0_BASIC2_V_TOTAL(total) (((total) & 0x1fff) << 16) argument 146 #define SUN4I_TCON1_BASIC3_H_TOTAL(total) ((((total) - 1) & 0x1fff) << 16) argument 150 #define SUN4I_TCON1_BASIC4_V_TOTAL(total) (((total) & 0x1fff) << 16) argument
|
| /drivers/infiniband/hw/hfi1/ |
| A D | msix.c | 18 u32 total; in msix_initialize() local 30 total = 1 + dd->num_sdma + dd->n_krcv_queues + dd->num_netdev_contexts; in msix_initialize() 32 if (total >= CCE_NUM_MSIX_VECTORS) in msix_initialize() 35 ret = pci_alloc_irq_vectors(dd->pcidev, total, total, PCI_IRQ_MSIX); in msix_initialize() 41 entries = kcalloc(total, sizeof(*dd->msix_info.msix_entries), in msix_initialize() 50 bitmap_zero(dd->msix_info.in_use_msix, total); in msix_initialize() 51 dd->msix_info.max_requested = total; in msix_initialize() 52 dd_dev_info(dd, "%u MSI-X interrupts allocated\n", total); in msix_initialize()
|
| /drivers/video/fbdev/i810/ |
| A D | i810_dvt.c | 248 u32 total, xres, yres; in i810fb_fill_var_timings() local 257 total = (std_modes[mode].cr00 | (std_modes[mode].cr35 & 1) << 8) + 3; in i810fb_fill_var_timings() 258 total <<= 3; in i810fb_fill_var_timings() 264 var->left_margin = (total - (xres + var->right_margin + in i810fb_fill_var_timings() 272 total = (std_modes[mode].cr06 | (std_modes[mode].cr30 & 0xF) << 8) + 2; in i810fb_fill_var_timings() 277 var->upper_margin = total - (yres + var->lower_margin + var->vsync_len); in i810fb_fill_var_timings()
|
| /drivers/cpuidle/governors/ |
| A D | teo.c | 143 unsigned int total; member 226 cpu_data->total -= cpu_data->total >> DECAY_SHIFT; in teo_update() 227 cpu_data->total += PULSE; in teo_update() 358 if (2 * idx_intercept_sum > cpu_data->total - idx_hit_sum) { in teo_select() 447 (2 * cpu_data->short_idles >= cpu_data->total || in teo_select() 473 cpu_data->tick_intercepts > cpu_data->total / 2 + cpu_data->total / 8) in teo_select()
|
| /drivers/video/fbdev/omap2/omapfb/dss/ |
| A D | omapdss-boot-init.c | 35 int l = 0, total = 0; in omapdss_count_strings() local 38 for (i = 0; total < prop->length; total += l, p += l, i++) in omapdss_count_strings() 63 size_t total = 0; in omapdss_prefix_strcpy() local 65 while (total < src_len) { in omapdss_prefix_strcpy() 75 total += l; in omapdss_prefix_strcpy()
|
| /drivers/crypto/aspeed/ |
| A D | aspeed-hace-hash.c | 218 unsigned int length, offset, total; in aspeed_ahash_dma_prepare_sg() local 224 length = rctx->total - offset; in aspeed_ahash_dma_prepare_sg() 229 "rctx total", rctx->total, in aspeed_ahash_dma_prepare_sg() 252 total = 0; in aspeed_ahash_dma_prepare_sg() 274 total += len; in aspeed_ahash_dma_prepare_sg() 280 total = round_down(total, rctx->block_size); in aspeed_ahash_dma_prepare_sg() 289 total += len; in aspeed_ahash_dma_prepare_sg() 306 hash_engine->src_length = total; in aspeed_ahash_dma_prepare_sg() 444 rctx->total - rctx->offset); in aspeed_ahash_fallback() 511 rctx->total = req->nbytes; in aspeed_sham_update() [all …]
|
| A D | aspeed-hace-crypto.c | 229 int total, i; in aspeed_sk_start_sg() local 275 if (total > len) in aspeed_sk_start_sg() 276 total -= len; in aspeed_sk_start_sg() 279 len = total; in aspeed_sk_start_sg() 281 total = 0; in aspeed_sk_start_sg() 288 if (total != 0) { in aspeed_sk_start_sg() 306 if (total > len) in aspeed_sk_start_sg() 307 total -= len; in aspeed_sk_start_sg() 310 len = total; in aspeed_sk_start_sg() 312 total = 0; in aspeed_sk_start_sg() [all …]
|
| /drivers/devfreq/event/ |
| A D | rockchip-dfi.c | 424 struct dmc_count total, now; in rockchip_ddr_perf_event_get_count() local 433 rockchip_ddr_perf_counters_add(dfi, &now, &total); in rockchip_ddr_perf_event_get_count() 438 count = total.c[0].clock_cycles; in rockchip_ddr_perf_event_get_count() 449 count = total.c[0].read_access * blen * dfi->buswidth[0]; in rockchip_ddr_perf_event_get_count() 455 count = total.c[1].read_access * blen * dfi->buswidth[1]; in rockchip_ddr_perf_event_get_count() 461 count = total.c[2].read_access * blen * dfi->buswidth[2]; in rockchip_ddr_perf_event_get_count() 467 count = total.c[3].read_access * blen * dfi->buswidth[3]; in rockchip_ddr_perf_event_get_count() 474 count += total.c[i].access * blen * dfi->buswidth[i]; in rockchip_ddr_perf_event_get_count() 539 struct dmc_count now, total; in rockchip_dfi_timer() local 545 rockchip_ddr_perf_counters_add(dfi, &now, &total); in rockchip_dfi_timer() [all …]
|
| /drivers/gpu/drm/i915/ |
| A D | i915_drm_client.c | 123 u64 total = 0; in busy_add() local 129 total += intel_context_get_total_runtime_ns(ce); in busy_add() 132 return total; in busy_add() 142 u64 total = atomic64_read(&client->past_runtime[class]); in show_client_class() local 147 total += busy_add(ctx, class); in show_client_class() 152 uabi_class_names[class], total); in show_client_class()
|
| /drivers/usb/usbip/ |
| A D | vudc_transfer.c | 311 int total, limit; in v_timer() local 315 total = get_frame_limit(udc->gadget.speed); in v_timer() 316 if (total < 0) { /* unknown speed, or not set yet */ in v_timer() 323 timer->frame_limit = total; in v_timer() 327 total = timer->frame_limit; in v_timer() 353 if (total <= 0 && ep->type == USB_ENDPOINT_XFER_BULK) in v_timer() 394 limit = total; in v_timer() 410 total -= transfer(udc, urb, ep, limit); in v_timer()
|
| /drivers/mtd/nand/ |
| A D | ecc-sw-bch.c | 248 nand->ecc.ctx.total = nsteps * code_size; in nand_ecc_sw_bch_init_ctx() 299 int total = nand->ecc.ctx.total; in nand_ecc_sw_bch_prepare_io_req() local 325 0, total); in nand_ecc_sw_bch_prepare_io_req() 334 int total = nand->ecc.ctx.total; in nand_ecc_sw_bch_finish_io_req() local 359 total); in nand_ecc_sw_bch_finish_io_req()
|
| /drivers/net/wireless/ath/ath5k/ |
| A D | pci.c | 123 u32 total, offset; in ath5k_pci_eeprom_read_mac() local 129 for (offset = 0x1f, octet = 0, total = 0; offset >= 0x1d; offset--) { in ath5k_pci_eeprom_read_mac() 132 total += data; in ath5k_pci_eeprom_read_mac() 138 if (!total || total == 3 * 0xffff) in ath5k_pci_eeprom_read_mac()
|
| /drivers/char/ |
| A D | dtlk.c | 514 int total, i; in dtlk_interrogate() local 518 for (total = 0, i = 0; i < 50; i++) { in dtlk_interrogate() 519 buf[total] = dtlk_read_tts(); in dtlk_interrogate() 520 if (total > 2 && buf[total] == 0x7f) in dtlk_interrogate() 522 if (total < sizeof(struct dtlk_settings)) in dtlk_interrogate() 523 total++; in dtlk_interrogate()
|
| /drivers/crypto/nx/ |
| A D | nx-aes-xcbc.c | 175 u32 to_process, total; in nx_xcbc_update() local 185 total = len; in nx_xcbc_update() 205 to_process = total & ~(AES_BLOCK_SIZE - 1); in nx_xcbc_update() 231 total -= to_process; in nx_xcbc_update() 234 } while (total >= AES_BLOCK_SIZE); in nx_xcbc_update() 236 rc = total; in nx_xcbc_update()
|