/drivers/crypto/ |
D | omap-crypto.c | 19 static int omap_crypto_copy_sg_lists(int total, int bs, in omap_crypto_copy_sg_lists() argument 36 while (*sg && total) { in omap_crypto_copy_sg_lists() 39 if (total < len) in omap_crypto_copy_sg_lists() 40 len = total; in omap_crypto_copy_sg_lists() 43 total -= len; in omap_crypto_copy_sg_lists() 45 if (total <= 0) in omap_crypto_copy_sg_lists() 58 static int omap_crypto_copy_sgs(int total, int bs, struct scatterlist **sg, in omap_crypto_copy_sgs() argument 65 new_len = ALIGN(total, bs); in omap_crypto_copy_sgs() 76 scatterwalk_map_and_copy(buf, *sg, 0, total, 0); in omap_crypto_copy_sgs() 78 memset(buf + total, 0, new_len - total); in omap_crypto_copy_sgs() [all …]
|
/drivers/input/rmi4/ |
D | rmi_f55.c | 66 int i, total; in rmi_f55_detect() local 80 total = 0; in rmi_f55_detect() 83 total++; in rmi_f55_detect() 85 f55->cfg_num_rx_electrodes = total; in rmi_f55_detect() 86 drv_data->num_rx_electrodes = total; in rmi_f55_detect() 93 total = 0; in rmi_f55_detect() 96 total++; in rmi_f55_detect() 98 f55->cfg_num_tx_electrodes = total; in rmi_f55_detect() 99 drv_data->num_tx_electrodes = total; in rmi_f55_detect()
|
/drivers/gpu/drm/i915/selftests/ |
D | i915_gem_gtt.c | 154 size <= ppgtt->base.total; in igt_ppgtt_alloc() 171 size <= ppgtt->base.total; in igt_ppgtt_alloc() 222 GEM_BUG_ON(count * BIT_ULL(size) > vm->total); in lowlevel_hole() 248 GEM_BUG_ON(addr + BIT_ULL(size) > vm->total); in lowlevel_hole() 273 GEM_BUG_ON(addr + BIT_ULL(size) > vm->total); in lowlevel_hole() 889 GEM_BUG_ON(offset_in_page(ppgtt->base.total)); in exercise_ppgtt() 892 err = func(dev_priv, &ppgtt->base, 0, ppgtt->base.total, end_time); in exercise_ppgtt() 1126 err = func(i915, &ppgtt->base, 0, ppgtt->base.total, end_time); in exercise_mock() 1157 u64 total; in igt_gtt_reserve() local 1166 for (total = 0; in igt_gtt_reserve() [all …]
|
D | mock_gtt.c | 71 ppgtt->base.total = round_down(U64_MAX, PAGE_SIZE); in mock_ppgtt() 79 drm_mm_init(&ppgtt->base.mm, 0, ppgtt->base.total); in mock_ppgtt() 120 ggtt->base.total = 4096 * PAGE_SIZE; in mock_init_ggtt()
|
D | i915_vma.c | 262 VALID(0, PIN_GLOBAL | PIN_OFFSET_BIAS | (i915->ggtt.base.total - 4096)), in igt_vma_pin1() 266 VALID(0, PIN_GLOBAL | PIN_OFFSET_FIXED | (i915->ggtt.base.total - 4096)), in igt_vma_pin1() 267 INVALID(0, PIN_GLOBAL | PIN_OFFSET_FIXED | i915->ggtt.base.total), in igt_vma_pin1() 275 VALID(i915->ggtt.base.total - 4096, PIN_GLOBAL), in igt_vma_pin1() 276 VALID(i915->ggtt.base.total, PIN_GLOBAL), in igt_vma_pin1() 277 NOSPACE(i915->ggtt.base.total + 4096, PIN_GLOBAL), in igt_vma_pin1() 280 INVALID(8192, PIN_GLOBAL | PIN_OFFSET_FIXED | (i915->ggtt.base.total - 4096)), in igt_vma_pin1() 292 NOSPACE(0, PIN_GLOBAL | PIN_OFFSET_BIAS | i915->ggtt.base.total), in igt_vma_pin1() 294 NOSPACE(8192, PIN_GLOBAL | PIN_OFFSET_BIAS | (i915->ggtt.base.total - 4096)), in igt_vma_pin1()
|
/drivers/gpu/drm/sun4i/ |
D | sun4i_tcon.h | 51 #define SUN4I_TCON0_BASIC1_H_TOTAL(total) ((((total) - 1) & 0x1fff) << 16) argument 55 #define SUN4I_TCON0_BASIC2_V_TOTAL(total) (((total) & 0x1fff) << 16) argument 102 #define SUN4I_TCON1_BASIC3_H_TOTAL(total) ((((total) - 1) & 0x1fff) << 16) argument 106 #define SUN4I_TCON1_BASIC4_V_TOTAL(total) (((total) & 0x1fff) << 16) argument
|
/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/gpu/drm/omapdrm/dss/ |
D | omapdss-boot-init.c | 46 int l = 0, total = 0; in omapdss_count_strings() local 49 for (i = 0; total < prop->length; total += l, p += l, i++) in omapdss_count_strings() 74 size_t total = 0; in omapdss_prefix_strcpy() local 76 while (total < src_len) { in omapdss_prefix_strcpy() 86 total += l; in omapdss_prefix_strcpy()
|
/drivers/video/fbdev/omap2/omapfb/dss/ |
D | omapdss-boot-init.c | 46 int l = 0, total = 0; in omapdss_count_strings() local 49 for (i = 0; total < prop->length; total += l, p += l, i++) in omapdss_count_strings() 74 size_t total = 0; in omapdss_prefix_strcpy() local 76 while (total < src_len) { in omapdss_prefix_strcpy() 86 total += l; in omapdss_prefix_strcpy()
|
/drivers/edac/ |
D | ppc4xx_edac.c | 321 int n, total = 0; in ppc4xx_edac_generate_bank_message() local 331 total += n; in ppc4xx_edac_generate_bank_message() 343 total += n; in ppc4xx_edac_generate_bank_message() 354 total += n; in ppc4xx_edac_generate_bank_message() 357 return total; in ppc4xx_edac_generate_bank_message() 441 int n, total = 0; in ppc4xx_edac_generate_lane_message() local 453 total += n; in ppc4xx_edac_generate_lane_message() 466 total += n; in ppc4xx_edac_generate_lane_message() 477 total += n; in ppc4xx_edac_generate_lane_message() 480 return total; in ppc4xx_edac_generate_lane_message() [all …]
|
/drivers/gpu/drm/tilcdc/ |
D | tilcdc_slave_compat.c | 26 int total; member 33 kft->total = 32; in kfree_table_init() 35 kft->table = kmalloc(kft->total * sizeof(*kft->table), in kfree_table_init() 45 if (kft->num == kft->total) { in kfree_table_add() 48 kft->total *= 2; in kfree_table_add() 49 kft->table = krealloc(old, kft->total * sizeof(*kft->table), in kfree_table_add()
|
/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() 231 kobject_init(&acc->total.kobj, &bch_stats_ktype); in bch_cache_accounting_init()
|
/drivers/usb/usbip/ |
D | vudc_transfer.c | 323 int total, limit; in v_timer() local 327 total = get_frame_limit(udc->gadget.speed); in v_timer() 328 if (total < 0) { /* unknown speed, or not set yet */ in v_timer() 335 timer->frame_limit = total; in v_timer() 339 total = timer->frame_limit; in v_timer() 365 if (total <= 0 && ep->type == USB_ENDPOINT_XFER_BULK) in v_timer() 406 limit = total; in v_timer() 422 total -= transfer(udc, urb, ep, limit); in v_timer()
|
/drivers/staging/speakup/ |
D | speakup_dtlk.c | 286 int total, i; in synth_interrogate() local 290 for (total = 0, i = 0; i < 50; i++) { in synth_interrogate() 291 buf[total] = synth_read_tts(); in synth_interrogate() 292 if (total > 2 && buf[total] == 0x7f) in synth_interrogate() 294 if (total < sizeof(struct synth_settings)) in synth_interrogate() 295 total++; in synth_interrogate()
|
/drivers/tty/ |
D | metag_da.c | 471 int total) in dashtty_write() argument 493 total = min(total, (int)(SERIAL_XMIT_SIZE - dport->xmit_cnt)); in dashtty_write() 494 atomic_add(total, &dashtty_xmit_cnt); in dashtty_write() 495 dport->xmit_cnt += total; in dashtty_write() 497 for (count = total; count; count -= block) { in dashtty_write() 511 if (total) { in dashtty_write() 524 return total; in dashtty_write()
|
/drivers/crypto/nx/ |
D | nx-sha512.c | 75 u64 to_process, leftover = 0, total; in nx_sha512_update() local 88 total = (sctx->count[0] % SHA512_BLOCK_SIZE) + len; in nx_sha512_update() 89 if (total < SHA512_BLOCK_SIZE) { in nx_sha512_update() 138 to_process = min_t(u64, total, in nx_sha512_update() 154 leftover = total - to_process; in nx_sha512_update() 176 total -= to_process; in nx_sha512_update()
|
D | nx-sha256.c | 75 u64 to_process = 0, leftover, total; in nx_sha256_update() local 88 total = (sctx->count % SHA256_BLOCK_SIZE) + len; in nx_sha256_update() 89 if (total < SHA256_BLOCK_SIZE) { in nx_sha256_update() 139 to_process = min_t(u64, total, in nx_sha256_update() 150 leftover = total - to_process; in nx_sha256_update() 172 total -= to_process; in nx_sha256_update()
|
D | nx-aes-xcbc.c | 188 u32 to_process = 0, leftover, total; in nx_xcbc_update() local 197 total = sctx->count + len; in nx_xcbc_update() 203 if (total <= AES_BLOCK_SIZE) { in nx_xcbc_update() 227 to_process = total - to_process; in nx_xcbc_update() 230 leftover = total - to_process; in nx_xcbc_update() 292 total -= to_process; in nx_xcbc_update()
|
/drivers/net/wireless/ath/ath5k/ |
D | pci.c | 122 u32 total, offset; in ath5k_pci_eeprom_read_mac() local 128 for (offset = 0x1f, octet = 0, total = 0; offset >= 0x1d; offset--) { in ath5k_pci_eeprom_read_mac() 131 total += data; in ath5k_pci_eeprom_read_mac() 137 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/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/net/ethernet/qlogic/qed/ |
D | qed_cxt.c | 574 u32 curr_line, total, i, task_size, line; in qed_cxt_cfg_ilt_compute() local 607 total = cdu_iids.pf_cids * CONN_CXT_SIZE(p_hwfn); in qed_cxt_cfg_ilt_compute() 610 total, CONN_CXT_SIZE(p_hwfn)); in qed_cxt_cfg_ilt_compute() 620 total = cdu_iids.per_vf_cids * CONN_CXT_SIZE(p_hwfn); in qed_cxt_cfg_ilt_compute() 623 total, CONN_CXT_SIZE(p_hwfn)); in qed_cxt_cfg_ilt_compute() 643 total = p_seg->count * p_mngr->task_type_size[p_seg->type]; in qed_cxt_cfg_ilt_compute() 644 qed_ilt_cli_blk_fill(p_cli, p_blk, curr_line, total, in qed_cxt_cfg_ilt_compute() 682 total = p_seg->count * p_mngr->task_type_size[p_seg->type]; in qed_cxt_cfg_ilt_compute() 685 curr_line, total, in qed_cxt_cfg_ilt_compute() 701 total = p_seg->count * p_mngr->task_type_size[p_seg->type]; in qed_cxt_cfg_ilt_compute() [all …]
|
/drivers/gpu/drm/ |
D | drm_bufs.c | 694 int total; in drm_legacy_addbufs_agp() local 709 total = PAGE_SIZE << page_order; in drm_legacy_addbufs_agp() 720 DRM_DEBUG("total: %d\n", total); in drm_legacy_addbufs_agp() 729 (agp_offset + total * count <= agp_entry->bound + agp_entry->pages * PAGE_SIZE)) { in drm_legacy_addbufs_agp() 775 buf->total = alignment; in drm_legacy_addbufs_agp() 851 int total; in drm_legacy_addbufs_pci() local 886 total = PAGE_SIZE << page_order; in drm_legacy_addbufs_pci() 971 offset + size <= total && entry->buf_count < count; in drm_legacy_addbufs_pci() 975 buf->total = alignment; in drm_legacy_addbufs_pci() 1063 int total; in drm_legacy_addbufs_sg() local [all …]
|
/drivers/gpu/drm/i915/ |
D | intel_bios.c | 83 u32 total, current_size; in find_section() local 88 total = bdb->bdb_size; in find_section() 91 while (index + 3 < total) { in find_section() 96 if (index + current_size > total) in find_section() 803 u32 total = get_blocksize(sequence); in find_panel_sequence_block() local 815 for (i = 0; i < MAX_MIPI_CONFIGURATIONS && index < total; i++) { in find_panel_sequence_block() 816 if (index + header_size > total) { in find_panel_sequence_block() 829 if (index + current_size > total) { in find_panel_sequence_block() 847 static int goto_next_sequence(const u8 *data, int index, int total) in goto_next_sequence() argument 852 for (index = index + 1; index < total; index += len) { in goto_next_sequence() [all …]
|
/drivers/infiniband/hw/i40iw/ |
D | i40iw_pble.c | 457 u32 lf4k, lflast, total, i; in get_lvl2_pble() local 467 total = (lflast == 0) ? lf4k : lf4k + 1; in get_lvl2_pble() 468 lvl2->leaf_cnt = total; in get_lvl2_pble() 470 leaf = kzalloc((sizeof(*leaf) * total), GFP_ATOMIC); in get_lvl2_pble() 475 root->addr = gen_pool_alloc(pool, (total << 3)); in get_lvl2_pble() 483 root->cnt = total; in get_lvl2_pble() 485 for (i = 0; i < total; i++, leaf++) { in get_lvl2_pble() 486 pblcnt = (lflast && ((i + 1) == total)) ? lflast : PBLE_PER_PAGE; in get_lvl2_pble()
|