Home
last modified time | relevance | path

Searched refs:total (Results 1 – 25 of 304) sorted by relevance

12345678910>>...13

/drivers/crypto/
Domap-crypto.c16 static int omap_crypto_copy_sg_lists(int total, int bs, in omap_crypto_copy_sg_lists() argument
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()
55 static int omap_crypto_copy_sgs(int total, int bs, struct scatterlist **sg, in omap_crypto_copy_sgs() argument
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()
[all …]
/drivers/input/rmi4/
Drmi_f55.c63 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/md/bcache/
Dstats.c97 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/
Di915_gem_gtt.c177 limit = min(ppgtt->vm.total, limit); in igt_ppgtt_alloc()
283 GEM_BUG_ON(count * BIT_ULL(aligned_size) > vm->total); in lowlevel_hole()
310 GEM_BUG_ON(addr + BIT_ULL(aligned_size) > vm->total); in lowlevel_hole()
367 GEM_BUG_ON(addr + BIT_ULL(size) > vm->total); in lowlevel_hole()
1213 GEM_BUG_ON(offset_in_page(ppgtt->vm.total)); in exercise_ppgtt()
1216 err = func(&ppgtt->vm, 0, ppgtt->vm.total, end_time); in exercise_ppgtt()
1467 err = func(vm, 0, min(vm->total, limit), end_time); in exercise_mock()
1535 u64 total; in igt_gtt_reserve() local
1544 for (total = 0; in igt_gtt_reserve()
1545 total + 2 * I915_GTT_PAGE_SIZE <= ggtt->vm.total; in igt_gtt_reserve()
[all …]
Dintel_memory_region.c57 resource_size_t total = resource_size(&mem->region); in igt_mock_fill() local
66 max_pages = div64_u64(total, page_size); in igt_mock_fill()
67 rem = total; in igt_mock_fill()
244 resource_size_t total; in igt_mock_contiguous() local
249 total = resource_size(&mem->region); in igt_mock_contiguous()
266 obj = igt_object_create(mem, &objects, total, I915_BO_ALLOC_CONTIGUOUS); in igt_mock_contiguous()
280 div64_u64_rem(target, total, &target); in igt_mock_contiguous()
310 n_objects = div64_u64(total, target); in igt_mock_contiguous()
331 target = total >> 1; in igt_mock_contiguous()
540 u64 total; in igt_object_mappable_total() local
[all …]
/drivers/gpu/drm/i915/gt/
Dintel_gt_pm.c59 gt->stats.total = in runtime_end()
60 ktime_add(gt->stats.total, in runtime_end()
393 ktime_t total = gt->stats.total; in __intel_gt_get_awake_time() local
396 total = ktime_add(total, in __intel_gt_get_awake_time()
399 return total; in __intel_gt_get_awake_time()
405 ktime_t total; in intel_gt_get_awake_time() local
409 total = __intel_gt_get_awake_time(gt); in intel_gt_get_awake_time()
412 return total; in intel_gt_get_awake_time()
Dintel_ggtt.c188 vm->clear_range(vm, 0, vm->total); in i915_ggtt_suspend_vm()
522 GEM_BUG_ON(ggtt->vm.total <= GUC_TOP_RESERVE_SIZE); in ggtt_reserve_guc_top()
523 offset = ggtt->vm.total - GUC_TOP_RESERVE_SIZE; in ggtt_reserve_guc_top()
635 ggtt->vm.clear_range(&ggtt->vm, ggtt->vm.total - PAGE_SIZE, PAGE_SIZE); in init_ggtt()
687 if (GEM_WARN_ON(ppgtt->vm.total < ggtt->vm.total)) { in init_aliasing_ppgtt()
692 err = i915_vm_alloc_pt_stash(&ppgtt->vm, &stash, ggtt->vm.total); in init_aliasing_ppgtt()
708 ppgtt->vm.allocate_va_range(&ppgtt->vm, &stash, 0, ggtt->vm.total); in init_aliasing_ppgtt()
963 ggtt->vm.total = (size / sizeof(gen8_pte_t)) * I915_GTT_PAGE_SIZE; in gen8_gmch_probe()
1123 ggtt->vm.total = (size / sizeof(gen6_pte_t)) * I915_GTT_PAGE_SIZE; in gen6_gmch_probe()
1176 if ((ggtt->vm.total - 1) >> 32) { in ggtt_probe_hw()
[all …]
/drivers/infiniband/hw/hns/
Dhns_roce_alloc.c137 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()
161 int total = 0; in hns_roce_get_umem_bufs() local
165 bufs[total++] = rdma_block_iter_dma_address(&biter); in hns_roce_get_umem_bufs()
166 if (total >= buf_cnt) in hns_roce_get_umem_bufs()
171 return total; in hns_roce_get_umem_bufs()
/drivers/gpu/drm/sun4i/
Dsun4i_tcon.h71 #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/
Dmsix.c18 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/
Di810_dvt.c247 u32 total, xres, yres; in i810fb_fill_var_timings() local
256 total = (std_modes[mode].cr00 | (std_modes[mode].cr35 & 1) << 8) + 3; in i810fb_fill_var_timings()
257 total <<= 3; in i810fb_fill_var_timings()
263 var->left_margin = (total - (xres + var->right_margin + in i810fb_fill_var_timings()
271 total = (std_modes[mode].cr06 | (std_modes[mode].cr30 & 0xF) << 8) + 2; in i810fb_fill_var_timings()
276 var->upper_margin = total - (yres + var->lower_margin + var->vsync_len); in i810fb_fill_var_timings()
/drivers/gpu/drm/i915/
Di915_drm_client.c91 u64 total = 0; in busy_add() local
97 total += intel_context_get_total_runtime_ns(ce); in busy_add()
100 return total; in busy_add()
109 u64 total = atomic64_read(&client->past_runtime[class]); in show_client_class() local
116 total += busy_add(ctx, class); in show_client_class()
121 uabi_class_names[class], total); in show_client_class()
/drivers/video/fbdev/omap2/omapfb/dss/
Domapdss-boot-init.c35 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/gpu/drm/tests/
Ddrm_buddy_test.c146 u64 total; in check_blocks() local
151 total = 0; in check_blocks()
179 total += drm_buddy_block_size(mm, block); in check_blocks()
184 if (total != expected_size) { in check_blocks()
186 expected_size, total); in check_blocks()
208 u64 total; in check_mm() local
224 total = 0; in check_mm()
279 total += drm_buddy_block_size(mm, root); in check_mm()
283 if (total != mm->size) { in check_mm()
285 mm->size, total); in check_mm()
[all …]
/drivers/edac/
Dppc4xx_edac.c303 int n, total = 0; in ppc4xx_edac_generate_bank_message() local
313 total += n; in ppc4xx_edac_generate_bank_message()
325 total += n; in ppc4xx_edac_generate_bank_message()
336 total += n; in ppc4xx_edac_generate_bank_message()
339 return total; in ppc4xx_edac_generate_bank_message()
423 int n, total = 0; in ppc4xx_edac_generate_lane_message() local
435 total += n; in ppc4xx_edac_generate_lane_message()
448 total += n; in ppc4xx_edac_generate_lane_message()
459 total += n; in ppc4xx_edac_generate_lane_message()
462 return total; in ppc4xx_edac_generate_lane_message()
[all …]
/drivers/usb/usbip/
Dvudc_transfer.c311 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/
Decc-sw-bch.c248 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/accessibility/speakup/
Dspeakup_dtlk.c277 int total, i; in synth_interrogate() local
281 for (total = 0, i = 0; i < 50; i++) { in synth_interrogate()
282 buf[total] = synth_read_tts(); in synth_interrogate()
283 if (total > 2 && buf[total] == 0x7f) in synth_interrogate()
285 if (total < sizeof(struct synth_settings)) in synth_interrogate()
286 total++; in synth_interrogate()
/drivers/crypto/aspeed/
Daspeed-hace-hash.c133 length = rctx->total + rctx->bufcnt; in aspeed_ahash_dma_prepare()
141 if (rctx->total + rctx->bufcnt < ASPEED_CRYPTO_SRC_DMA_BUF_LEN) { in aspeed_ahash_dma_prepare()
144 rctx->offset, rctx->total - remain, 0); in aspeed_ahash_dma_prepare()
145 rctx->offset += rctx->total - remain; in aspeed_ahash_dma_prepare()
185 remain = (rctx->total + rctx->bufcnt) % rctx->block_size; in aspeed_ahash_dma_prepare_sg()
186 length = rctx->total + rctx->bufcnt - remain; in aspeed_ahash_dma_prepare_sg()
189 "rctx total", rctx->total, "bufcnt", rctx->bufcnt, in aspeed_ahash_dma_prepare_sg()
261 rctx->offset = rctx->total - remain; in aspeed_ahash_dma_prepare_sg()
262 hash_engine->src_length = rctx->total + rctx->bufcnt - remain; in aspeed_ahash_dma_prepare_sg()
484 rctx->total - rctx->offset, 0); in aspeed_ahash_update_resume_sg()
[all …]
/drivers/crypto/nx/
Dnx-sha256.c68 u64 to_process = 0, leftover, total; in nx_sha256_update() local
81 total = (sctx->count % SHA256_BLOCK_SIZE) + len; in nx_sha256_update()
82 if (total < SHA256_BLOCK_SIZE) { in nx_sha256_update()
132 to_process = min_t(u64, total, in nx_sha256_update()
143 leftover = total - to_process; in nx_sha256_update()
164 total -= to_process; in nx_sha256_update()
Dnx-sha512.c68 u64 to_process, leftover = 0, total; in nx_sha512_update() local
81 total = (sctx->count[0] % SHA512_BLOCK_SIZE) + len; in nx_sha512_update()
82 if (total < SHA512_BLOCK_SIZE) { in nx_sha512_update()
131 to_process = min_t(u64, total, in nx_sha512_update()
147 leftover = total - to_process; in nx_sha512_update()
168 total -= to_process; in nx_sha512_update()
/drivers/net/wireless/ath/ath5k/
Dpci.c121 u32 total, offset; in ath5k_pci_eeprom_read_mac() local
127 for (offset = 0x1f, octet = 0, total = 0; offset >= 0x1d; offset--) { in ath5k_pci_eeprom_read_mac()
130 total += data; in ath5k_pci_eeprom_read_mac()
136 if (!total || total == 3 * 0xffff) in ath5k_pci_eeprom_read_mac()
/drivers/char/
Ddtlk.c515 int total, i; in dtlk_interrogate() local
519 for (total = 0, i = 0; i < 50; i++) { in dtlk_interrogate()
520 buf[total] = dtlk_read_tts(); in dtlk_interrogate()
521 if (total > 2 && buf[total] == 0x7f) in dtlk_interrogate()
523 if (total < sizeof(struct dtlk_settings)) in dtlk_interrogate()
524 total++; in dtlk_interrogate()
/drivers/iio/imu/inv_icm42600/
Dinv_icm42600_buffer.c461 st->fifo.nb.total = 0; in inv_icm42600_buffer_fifo_read()
499 st->fifo.nb.total++; in inv_icm42600_buffer_fifo_read()
510 if (st->fifo.nb.total == 0) in inv_icm42600_buffer_fifo_parse()
515 inv_icm42600_timestamp_interrupt(ts, st->fifo.period, st->fifo.nb.total, in inv_icm42600_buffer_fifo_parse()
525 inv_icm42600_timestamp_interrupt(ts, st->fifo.period, st->fifo.nb.total, in inv_icm42600_buffer_fifo_parse()
550 if (st->fifo.nb.total == 0) in inv_icm42600_buffer_hwfifo_flush()
556 st->fifo.nb.total, st->fifo.nb.gyro, in inv_icm42600_buffer_hwfifo_flush()
566 st->fifo.nb.total, st->fifo.nb.accel, in inv_icm42600_buffer_hwfifo_flush()
/drivers/infiniband/hw/irdma/
Dpble.c337 u32 lf4k, lflast, total, i; in get_lvl2_pble() local
349 total = (lflast == 0) ? lf4k : lf4k + 1; in get_lvl2_pble()
350 lvl2->leaf_cnt = total; in get_lvl2_pble()
352 lvl2->leafmem.size = (sizeof(*leaf) * total); in get_lvl2_pble()
360 total << 3, &root->addr, &fpm_addr); in get_lvl2_pble()
368 root->cnt = total; in get_lvl2_pble()
370 for (i = 0; i < total; i++, leaf++) { in get_lvl2_pble()
371 pblcnt = (lflast && ((i + 1) == total)) ? in get_lvl2_pble()

12345678910>>...13