| /drivers/gpu/drm/xe/ |
| D | xe_step.c | 119 struct xe_step_info step = {}; in xe_step_pre_gmdid_get() local 167 return step; in xe_step_pre_gmdid_get() 170 step = revids[revid]; in xe_step_pre_gmdid_get() 188 step = revids[revid]; in xe_step_pre_gmdid_get() 191 step.graphics = STEP_FUTURE; in xe_step_pre_gmdid_get() 195 drm_WARN_ON(&xe->drm, step.graphics == STEP_NONE); in xe_step_pre_gmdid_get() 199 step.basedie = basedie_info[baseid]; in xe_step_pre_gmdid_get() 202 step.basedie = STEP_FUTURE; in xe_step_pre_gmdid_get() 206 return step; in xe_step_pre_gmdid_get() 225 struct xe_step_info step = { in xe_step_gmdid_get() local [all …]
|
| D | xe_step.h | 19 static inline u32 xe_step_to_gmdid(enum xe_step step) { return step - STEP_A0; } in xe_step_to_gmdid() argument 21 const char *xe_step_name(enum xe_step step);
|
| /drivers/video/fbdev/mb862xx/ |
| D | mb862xxfb_accel.c | 69 static void mb86290fb_imageblit1(u32 *cmd, u16 step, u16 dx, u16 dy, in mb86290fb_imageblit1() argument 95 (GDC_CMD_BITMAP << 16) | (2 + (step * height)); in mb86290fb_imageblit1() 100 memcpy(&cmd[9 + i * step], line, step << 2); in mb86290fb_imageblit1() 104 for (k = 0; k < step; k++) in mb86290fb_imageblit1() 105 cmd[9 + i * step + k] = in mb86290fb_imageblit1() 106 cpu_to_be32(cmd[9 + i * step + k]); in mb86290fb_imageblit1() 118 static void mb86290fb_imageblit8(u32 *cmd, u16 step, u16 dx, u16 dy, in mb86290fb_imageblit8() argument 128 (GDC_CMD_BLT_DRAW << 16) | (2 + (height * step)); in mb86290fb_imageblit8() 138 for (j = 0; j < step; j++) { in mb86290fb_imageblit8() 139 cmd[3 + i * step + j] = in mb86290fb_imageblit8() [all …]
|
| /drivers/mtd/nand/ |
| D | ecc-mxic.c | 484 int step; in mxic_ecc_extract_status_bytes() local 487 for (step = 0; step < ctx->steps; step++) { in mxic_ecc_extract_status_bytes() 489 ((STAT_BYTES + ctx->oob_step_sz) * step); in mxic_ecc_extract_status_bytes() 491 ctx->status[step] = buf[next_stat_pos]; in mxic_ecc_extract_status_bytes() 498 int step; in mxic_ecc_reconstruct_oobbuf() local 501 for (step = 0; step < ctx->steps; step++) in mxic_ecc_reconstruct_oobbuf() 502 memcpy(dst + (step * ctx->oob_step_sz), in mxic_ecc_reconstruct_oobbuf() 503 src + (step * (ctx->oob_step_sz + STAT_BYTES)), in mxic_ecc_reconstruct_oobbuf() 510 int step; in mxic_ecc_add_room_in_oobbuf() local 513 for (step = 0; step < ctx->steps; step++) in mxic_ecc_add_room_in_oobbuf() [all …]
|
| /drivers/gpu/drm/i915/ |
| D | intel_step.c | 138 u8 step = gmd->step + STEP_A0; in gmd_to_intel_step() local 140 if (step >= STEP_FUTURE) { in gmd_to_intel_step() 145 return step; in gmd_to_intel_step() 153 struct intel_step_info step = {}; in intel_step_init() local 156 step.graphics_step = gmd_to_intel_step(i915, in intel_step_init() 158 step.media_step = gmd_to_intel_step(i915, in intel_step_init() 161 RUNTIME_INFO(i915)->step = step; in intel_step_init() 227 step = revids[revid]; in intel_step_init() 245 step = revids[revid]; in intel_step_init() 248 step.graphics_step = STEP_FUTURE; in intel_step_init() [all …]
|
| /drivers/gpu/drm/i915/gt/ |
| D | selftest_ring.c | 52 static int check_ring_step(struct intel_ring *ring, u32 x, u32 step) in check_ring_step() argument 54 u32 prev = x, next = intel_ring_wrap(ring, x + step); in check_ring_step() 65 static int check_ring_offset(struct intel_ring *ring, u32 x, u32 step) in check_ring_offset() argument 69 err |= check_ring_step(ring, x, step); in check_ring_offset() 70 err |= check_ring_step(ring, intel_ring_wrap(ring, x + 1), step); in check_ring_offset() 71 err |= check_ring_step(ring, intel_ring_wrap(ring, x - 1), step); in check_ring_offset() 80 int step, err = 0; in igt_ring_direction() local 89 for (step = 1; step < half; step <<= 1) { in igt_ring_direction() 90 err |= check_ring_offset(ring, 0, step); in igt_ring_direction() 91 err |= check_ring_offset(ring, half, step); in igt_ring_direction()
|
| /drivers/media/platform/samsung/s5p-mfc/ |
| D | s5p_mfc_enc.c | 132 .step = 1, 148 .step = 1, 156 .step = 1, 164 .step = 1, 173 .step = 1, 182 .step = 1, 190 .step = 1, 198 .step = 1, 207 .step = 1, 224 .step = 0, [all …]
|
| /drivers/gpu/drm/i915/selftests/ |
| D | i915_syncmap.c | 335 unsigned int step, order, idx; in igt_syncmap_join_below() local 344 for (step = 0; step < KSYNCMAP; step++) { in igt_syncmap_join_below() 346 u64 context = step * BIT_ULL(order); in igt_syncmap_join_below() 354 context, order, step, sync->height, sync->prefix); in igt_syncmap_join_below() 361 for (step = 0; step < KSYNCMAP; step++) { in igt_syncmap_join_below() 363 u64 context = step * BIT_ULL(order); in igt_syncmap_join_below() 367 context, order, step); in igt_syncmap_join_below() 375 context + idx, order, step); in igt_syncmap_join_below() 384 for (step = 0; step < KSYNCMAP; step++) { in igt_syncmap_join_below() 385 u64 context = step * BIT_ULL(order); in igt_syncmap_join_below() [all …]
|
| /drivers/regulator/ |
| D | da903x-regulator.c | 309 #define DA903x_LDO(_pmic, _id, min, max, step, vreg, shift, nbits, ereg, ebit) \ argument 316 .n_voltages = (step) ? ((max - min) / step + 1) : 1, \ 319 .uV_step = (step) * 1000, \ 329 #define DA903x_DVC(_pmic, _id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \ argument 336 .n_voltages = (step) ? ((max - min) / step + 1) : 1, \ 339 .uV_step = (step) * 1000, \ 351 #define DA9034_LDO(_id, min, max, step, vreg, shift, nbits, ereg, ebit) \ argument 352 DA903x_LDO(DA9034, _id, min, max, step, vreg, shift, nbits, ereg, ebit) 354 #define DA9030_LDO(_id, min, max, step, vreg, shift, nbits, ereg, ebit) \ argument 355 DA903x_LDO(DA9030, _id, min, max, step, vreg, shift, nbits, ereg, ebit) [all …]
|
| D | atc260x-regulator.c | 171 #define atc2603c_reg_desc_dcdc(num, min, step, n_volt, vsel_h, vsel_l) { \ argument 180 .uV_step = step, \ 209 #define atc2603c_reg_desc_dcdc_fixed(num, min, step, n_volt, vsel_h, vsel_l) { \ argument 218 .uV_step = step, \ 226 #define atc2603c_reg_desc_ldo(num, min, step, n_volt, vsel_h, vsel_l) { \ argument 235 .uV_step = step, \ 245 #define atc2603c_reg_desc_ldo_fixed(num, min, step, n_volt, vsel_h, vsel_l) { \ argument 254 .uV_step = step, \ 275 #define atc2603c_reg_desc_ldo_switch(num, min, step, n_volt, vsel_h, vsel_l) { \ argument 284 .uV_step = step, \
|
| D | pv88060-regulator.c | 145 #define PV88060_BUCK(chip, regl_name, min, step, max, limits_array) \ argument 156 .uV_step = step,\ 157 .n_voltages = ((max) - (min))/(step) + 1,\ 170 #define PV88060_LDO(chip, regl_name, min, step, max) \ argument 181 .uV_step = step, \ 182 .n_voltages = (step) ? ((max - min) / step + 1) : 1, \
|
| D | mt6358-regulator.c | 36 #define MT6358_BUCK(match, vreg, supply, min, max, step, \ argument 48 .n_voltages = ((max) - (min)) / (step) + 1, \ 50 .uV_step = (step), \ 90 #define MT6358_LDO1(match, vreg, supply, min, max, step, \ argument 101 .n_voltages = ((max) - (min)) / (step) + 1, \ 103 .uV_step = (step), \ 137 #define MT6366_BUCK(match, vreg, min, max, step, \ argument 149 .n_voltages = ((max) - (min)) / (step) + 1, \ 151 .uV_step = (step), \ 191 #define MT6366_LDO1(match, vreg, supply, min, max, step, \ argument [all …]
|
| /drivers/staging/vc04_services/bcm2835-camera/ |
| D | controls.c | 77 u64 step; /* step size of the control */ member 918 .step = 1, 929 .step = 1, 940 .step = 1, 951 .step = 1, 962 .step = 1, 973 .step = 1, 984 .step = 1, 995 .step = 0, 1007 .step = 1, [all …]
|
| /drivers/gpu/drm/xe/tests/ |
| D | xe_wa_test.c | 24 struct xe_step_info step; member 32 .step = { .graphics = STEP_ ## graphics_step__ } \ 41 .step = { .graphics = STEP_ ## graphics_step__ } \ 52 .step = { .graphics = STEP_ ## graphics_step__, \ 95 .graphics_step = param->step.graphics, in xe_wa_test_init() 96 .media_step = param->step.media, in xe_wa_test_init() 113 xe->info.step = param->step; in xe_wa_test_init()
|
| /drivers/clk/sunxi-ng/ |
| D | ccu_phase.c | 18 u16 step, parent_div; in ccu_phase_get_phase() local 52 step = DIV_ROUND_CLOSEST(360, parent_div); in ccu_phase_get_phase() 53 return delay * step; in ccu_phase_get_phase() 86 u16 step, parent_div; in ccu_phase_set_phase() local 104 step = DIV_ROUND_CLOSEST(360, parent_div); in ccu_phase_set_phase() 105 delay = DIV_ROUND_CLOSEST(degrees, step); in ccu_phase_set_phase()
|
| /drivers/md/ |
| D | dm-stats.c | 49 sector_t step; member 232 (unsigned long long)s->step, in dm_stats_cleanup() 261 sector_t step, unsigned int stat_flags, in dm_stats_create() argument 281 if (end < start || !step) in dm_stats_create() 285 if (dm_sector_div64(n_entries, step)) in dm_stats_create() 321 s->step = step; in dm_stats_create() 507 (unsigned long long)s->step, in dm_stats_list() 654 offset = dm_sector_div64(rel_sector, s->step); in __dm_stat_bio() 662 if (fragment_len > s->step - offset) in __dm_stat_bio() 663 fragment_len = s->step - offset; in __dm_stat_bio() [all …]
|
| /drivers/video/fbdev/matrox/ |
| D | matroxfb_accel.c | 370 u_int32_t step = minfo->fbcon.var.xres_virtual >> 1; in matroxfb_cfb4_clear() local 373 unsigned int uaddr = sy * step + sx - 1; in matroxfb_cfb4_clear() 378 uaddr += step; in matroxfb_cfb4_clear() 382 unsigned int uaddr = sy * step + sx + width; in matroxfb_cfb4_clear() 387 uaddr += step; in matroxfb_cfb4_clear() 409 u_int32_t step; in matroxfb_1bpp_imageblit() local 421 step = (width + 7) >> 3; in matroxfb_1bpp_imageblit() 422 charcell = height * step; in matroxfb_1bpp_imageblit() 425 if (width == step << 3) { in matroxfb_1bpp_imageblit() 457 if ((step & 3) == 0) { in matroxfb_1bpp_imageblit() [all …]
|
| /drivers/clk/imx/ |
| D | clk-cpu.c | 17 struct clk *step; member 48 ret = clk_set_parent(cpu->mux, cpu->step); in clk_cpu_set_rate() 75 struct clk *step) in imx_clk_hw_cpu() argument 89 cpu->step = step; in imx_clk_hw_cpu()
|
| /drivers/media/platform/xilinx/ |
| D | xilinx-tpg.c | 518 .step = 1, 527 .step = 1, 544 .step = 1, 553 .step = 1, 562 .step = 1, 571 .step = 1, 581 .step = 1, 591 .step = 1, 601 .step = 1, 611 .step = 1, [all …]
|
| /drivers/cpufreq/ |
| D | cppc_cpufreq.c | 407 static inline unsigned long compute_cost(int cpu, int step) in compute_cost() argument 410 step * CPPC_EM_COST_STEP; in compute_cost() 417 unsigned int min_step, max_step, step, step_check; in cppc_get_cpu_power() local 440 step = perf_prev / perf_step; in cppc_get_cpu_power() 442 if (step > max_step) in cppc_get_cpu_power() 446 step = max_step; in cppc_get_cpu_power() 448 } else if (step < min_step) { in cppc_get_cpu_power() 449 step = min_step; in cppc_get_cpu_power() 452 step++; in cppc_get_cpu_power() 453 if (step == max_step) in cppc_get_cpu_power() [all …]
|
| /drivers/media/test-drivers/vivid/ |
| D | vivid-ctrls.c | 164 .step = 1, 175 .step = 1, 185 .step = 1, 196 .step = 1, 209 .step = 1, 221 .step = 1, 233 .step = 1, 245 .step = 1, 258 .step = 1, 270 .step = 1, [all …]
|
| /drivers/media/pci/mantis/ |
| D | mantis_dma.c | 141 u32 line, step; in mantis_risc_program() local 151 for (step = 0; step < MANTIS_DMA_TR_UNITS; step++) { in mantis_risc_program() 152 dprintk(MANTIS_DEBUG, 1, "RISC PROG line=[%d], step=[%d]", line, step); in mantis_risc_program() 153 if (step == 0) { in mantis_risc_program()
|
| /drivers/media/v4l2-core/ |
| D | v4l2-ctrls-core.c | 36 ev->u.ctrl.step = 1; in fill_event() 38 ev->u.ctrl.step = ctrl->step; in fill_event() 460 val >= (ctrl)->maximum - (s32)((ctrl)->step / 2)) \ 463 val += (s32)((ctrl)->step / 2); \ 467 offset = (ctrl)->step * (offset / (u32)(ctrl)->step); \ 1275 if (ctrl->maximum >= 0 && val >= ctrl->maximum - (s64)(ctrl->step / 2)) in std_validate_elem() 1278 val += (s64)(ctrl->step / 2); in std_validate_elem() 1281 do_div(offset, ctrl->step); in std_validate_elem() 1282 ptr.p_s64[idx] = ctrl->minimum + offset * ctrl->step; in std_validate_elem() 1321 if ((len - (u32)ctrl->minimum) % (u32)ctrl->step) in std_validate_elem() [all …]
|
| /drivers/leds/flash/ |
| D | leds-ktd2692.c | 31 #define GET_TIMEOUT_OFFSET(timeout, step) ((timeout) / (step)) argument 127 flash_tm_reg = GET_TIMEOUT_OFFSET(timeout->val, timeout->step); in ktd2692_led_flash_strobe_set() 156 u32 offset, step; in ktd2692_init_movie_current_max() local 160 step = KTD2692_MM_TO_FL_RATIO(cfg->flash_max_microamp) in ktd2692_init_movie_current_max() 164 movie_current_microamp = step * offset; in ktd2692_init_movie_current_max() 180 setting->step = cfg->flash_max_timeout in ktd2692_init_flash_timeout()
|
| /drivers/infiniband/hw/hns/ |
| D | hns_roce_hem.c | 1040 u64 step; in hem_list_calc_ba_range() local 1057 step = 1; in hem_list_calc_ba_range() 1060 step = step * unit; in hem_list_calc_ba_range() 1062 return step; in hem_list_calc_ba_range() 1076 u64 step; in hns_roce_hem_list_calc_root_ba() local 1086 step = hem_list_calc_ba_range(r->hopnum, 1, unit); in hns_roce_hem_list_calc_root_ba() 1087 if (step > 0) in hns_roce_hem_list_calc_root_ba() 1088 total += (r->count + step - 1) / step; in hns_roce_hem_list_calc_root_ba() 1111 u64 step; in hem_list_alloc_mid_bt() local 1143 step = hem_list_calc_ba_range(hopnum, level, unit); in hem_list_alloc_mid_bt() [all …]
|