/drivers/crypto/ |
D | omap-crypto.c | 16 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/ |
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/gpu/drm/i915/selftests/ |
D | i915_gem_gtt.c | 175 limit = min(ppgtt->vm.total, limit); in igt_ppgtt_alloc() 252 GEM_BUG_ON(count * BIT_ULL(size) > vm->total); in lowlevel_hole() 279 GEM_BUG_ON(addr + BIT_ULL(size) > vm->total); in lowlevel_hole() 306 GEM_BUG_ON(addr + BIT_ULL(size) > vm->total); in lowlevel_hole() 1017 GEM_BUG_ON(offset_in_page(ppgtt->vm.total)); in exercise_ppgtt() 1020 err = func(dev_priv, &ppgtt->vm, 0, ppgtt->vm.total, end_time); in exercise_ppgtt() 1259 err = func(i915, ctx->vm, 0, min(ctx->vm->total, limit), end_time); in exercise_mock() 1298 u64 total; in igt_gtt_reserve() local 1307 for (total = 0; in igt_gtt_reserve() 1308 total + 2 * I915_GTT_PAGE_SIZE <= ggtt->vm.total; in igt_gtt_reserve() [all …]
|
D | i915_buddy.c | 120 u64 total; in igt_check_blocks() local 125 total = 0; in igt_check_blocks() 153 total += i915_buddy_block_size(mm, block); in igt_check_blocks() 158 if (total != expected_size) { in igt_check_blocks() 160 expected_size, total); in igt_check_blocks() 184 u64 total; in igt_check_mm() local 200 total = 0; in igt_check_mm() 256 total += i915_buddy_block_size(mm, root); in igt_check_mm() 260 if (total != mm->size) { in igt_check_mm() 262 total); in igt_check_mm() [all …]
|
/drivers/gpu/drm/sun4i/ |
D | sun4i_tcon.h | 70 #define SUN4I_TCON0_BASIC1_H_TOTAL(total) ((((total) - 1) & 0x1fff) << 16) argument 74 #define SUN4I_TCON0_BASIC2_V_TOTAL(total) (((total) & 0x1fff) << 16) argument 144 #define SUN4I_TCON1_BASIC3_H_TOTAL(total) ((((total) - 1) & 0x1fff) << 16) argument 148 #define SUN4I_TCON1_BASIC4_V_TOTAL(total) (((total) & 0x1fff) << 16) argument
|
/drivers/infiniband/hw/hfi1/ |
D | msix.c | 60 u32 total; in msix_initialize() local 72 total = 1 + dd->num_sdma + dd->n_krcv_queues + dd->num_vnic_contexts; in msix_initialize() 74 if (total >= CCE_NUM_MSIX_VECTORS) in msix_initialize() 77 ret = pci_alloc_irq_vectors(dd->pcidev, total, total, PCI_IRQ_MSIX); in msix_initialize() 83 entries = kcalloc(total, sizeof(*dd->msix_info.msix_entries), in msix_initialize() 92 bitmap_zero(dd->msix_info.in_use_msix, total); in msix_initialize() 93 dd->msix_info.max_requested = total; in msix_initialize() 94 dd_dev_info(dd, "%u MSI-X interrupts allocated\n", total); in msix_initialize()
|
/drivers/video/fbdev/i810/ |
D | i810_dvt.c | 247 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/infiniband/hw/hns/ |
D | hns_roce_alloc.c | 244 int total; in hns_roce_get_kmem_bufs() local 254 total = 0; in hns_roce_get_kmem_bufs() 257 bufs[total++] = buf->direct.map + in hns_roce_get_kmem_bufs() 260 bufs[total++] = buf->page_list[i].map; in hns_roce_get_kmem_bufs() 262 return total; in hns_roce_get_kmem_bufs() 270 int total = 0; in hns_roce_get_umem_bufs() local 284 bufs[total++] = addr; in hns_roce_get_umem_bufs() 285 if (total >= buf_cnt) in hns_roce_get_umem_bufs() 292 return total; in hns_roce_get_umem_bufs()
|
/drivers/video/fbdev/omap2/omapfb/dss/ |
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/gpu/drm/omapdrm/dss/ |
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/infiniband/core/ |
D | uverbs_std_types_device.c | 61 u64 *total) in gather_objects_handle() argument 90 *total = count; in gather_objects_handle() 99 u64 total = 0; in UVERBS_HANDLER() local 117 out_len, &total); in UVERBS_HANDLER() 122 sizeof(u32) * total); in UVERBS_HANDLER() 126 ret = uverbs_copy_to(attrs, UVERBS_ATTR_INFO_TOTAL_HANDLES, &total, in UVERBS_HANDLER() 127 sizeof(total)); in UVERBS_HANDLER()
|
/drivers/edac/ |
D | ppc4xx_edac.c | 316 int n, total = 0; in ppc4xx_edac_generate_bank_message() local 326 total += n; in ppc4xx_edac_generate_bank_message() 338 total += n; in ppc4xx_edac_generate_bank_message() 349 total += n; in ppc4xx_edac_generate_bank_message() 352 return total; in ppc4xx_edac_generate_bank_message() 436 int n, total = 0; in ppc4xx_edac_generate_lane_message() local 448 total += n; in ppc4xx_edac_generate_lane_message() 461 total += n; in ppc4xx_edac_generate_lane_message() 472 total += n; in ppc4xx_edac_generate_lane_message() 475 return total; in ppc4xx_edac_generate_lane_message() [all …]
|
/drivers/md/bcache/ |
D | stats.c | 99 int ret = kobject_add(&acc->total.kobj, parent, in bch_cache_accounting_add_kobjs() 112 memset(&acc->total.cache_hits, in bch_cache_accounting_clear() 119 kobject_put(&acc->total.kobj); in bch_cache_accounting_destroy() 160 acc->total.name += t; \ in scale_accounting() 171 scale_stats(&acc->total, 0); in scale_accounting() 234 kobject_init(&acc->total.kobj, &bch_stats_ktype); in bch_cache_accounting_init()
|
/drivers/net/ethernet/pensando/ionic/ |
D | ionic_stats.c | 109 u64 total = 0; in ionic_sw_stats_get_count() local 112 total += IONIC_NUM_LIF_STATS; in ionic_sw_stats_get_count() 115 total += MAX_Q(lif) * IONIC_NUM_TX_STATS; in ionic_sw_stats_get_count() 118 total += MAX_Q(lif) * IONIC_NUM_RX_STATS; in ionic_sw_stats_get_count() 123 total += MAX_Q(lif) * (IONIC_NUM_DBG_CQ_STATS + in ionic_sw_stats_get_count() 129 total += MAX_Q(lif) * (IONIC_NUM_DBG_CQ_STATS + in ionic_sw_stats_get_count() 135 return total; in ionic_sw_stats_get_count()
|
/drivers/usb/usbip/ |
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/staging/speakup/ |
D | speakup_dtlk.c | 277 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/nx/ |
D | nx-sha512.c | 63 u64 to_process, leftover = 0, total; in nx_sha512_update() local 76 total = (sctx->count[0] % SHA512_BLOCK_SIZE) + len; in nx_sha512_update() 77 if (total < SHA512_BLOCK_SIZE) { in nx_sha512_update() 126 to_process = min_t(u64, total, in nx_sha512_update() 142 leftover = total - to_process; in nx_sha512_update() 163 total -= to_process; in nx_sha512_update()
|
D | nx-sha256.c | 63 u64 to_process = 0, leftover, total; in nx_sha256_update() local 76 total = (sctx->count % SHA256_BLOCK_SIZE) + len; in nx_sha256_update() 77 if (total < SHA256_BLOCK_SIZE) { in nx_sha256_update() 127 to_process = min_t(u64, total, in nx_sha256_update() 138 leftover = total - to_process; in nx_sha256_update() 159 total -= to_process; in nx_sha256_update()
|
D | nx-aes-xcbc.c | 174 u32 to_process = 0, leftover, total; in nx_xcbc_update() local 183 total = sctx->count + len; in nx_xcbc_update() 189 if (total <= AES_BLOCK_SIZE) { in nx_xcbc_update() 213 to_process = total - to_process; in nx_xcbc_update() 216 leftover = total - to_process; in nx_xcbc_update() 277 total -= to_process; in nx_xcbc_update()
|
/drivers/net/wireless/ath/ath5k/ |
D | pci.c | 121 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/ |
D | dtlk.c | 515 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/mtd/nand/raw/ingenic/ |
D | ingenic_nand_drv.c | 81 if (section || !ecc->total) in qi_lb60_ooblayout_ecc() 84 oobregion->length = ecc->total; in qi_lb60_ooblayout_ecc() 99 oobregion->length = mtd->oobsize - ecc->total - 12; in qi_lb60_ooblayout_free() 100 oobregion->offset = 12 + ecc->total; in qi_lb60_ooblayout_free() 116 if (section || !ecc->total) in jz4725b_ooblayout_ecc() 119 oobregion->length = ecc->total; in jz4725b_ooblayout_ecc() 134 oobregion->length = mtd->oobsize - ecc->total - 3; in jz4725b_ooblayout_free() 135 oobregion->offset = 3 + ecc->total; in jz4725b_ooblayout_free()
|
/drivers/gpu/drm/i915/gt/ |
D | intel_sseu.c | 14 unsigned int i, total = 0; in intel_sseu_subslice_total() local 17 total += hweight8(sseu->subslice_mask[i]); in intel_sseu_subslice_total() 19 return total; in intel_sseu_subslice_total()
|
/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/ |
D | gk20a.c | 46 u32 total; member 101 status->total= nvkm_falcon_rd32(falcon, 0x508 + (CLK_SLOT * 0x10)); in gk20a_pmu_dvfs_get_dev_status() 137 if (status.total) in gk20a_pmu_dvfs_work() 138 utilization = div_u64((u64)status.busy * 100, status.total); in gk20a_pmu_dvfs_work()
|
/drivers/gpu/drm/i915/gvt/ |
D | debugfs.c | 30 int total; member 80 param->total++; in mmio_diff_handler() 91 .total = 0, in vgpu_mmio_diff_show() 122 seq_printf(s, "Total: %d, Diff: %d\n", param.total, param.diff); in vgpu_mmio_diff_show()
|