Home
last modified time | relevance | path

Searched full:adj (Results 1 – 25 of 141) sorted by relevance

123456

/linux-6.12.1/drivers/net/ethernet/cadence/
Dmacb_ptp.c128 u64 adj; in gem_ptp_adjfine() local
141 adj = (u64)scaled_ppm * word; in gem_ptp_adjfine()
145 adj += (USEC_PER_SEC >> 1); in gem_ptp_adjfine()
146 adj >>= PPM_FRACTION; /* remove fractions */ in gem_ptp_adjfine()
147 adj = div_u64(adj, USEC_PER_SEC); in gem_ptp_adjfine()
148 adj = neg_adj ? (word - adj) : (word + adj); in gem_ptp_adjfine()
150 incr_spec.ns = (adj >> GEM_SUBNSINCR_SIZE) in gem_ptp_adjfine()
152 incr_spec.sub_ns = adj & ((1 << GEM_SUBNSINCR_SIZE) - 1); in gem_ptp_adjfine()
161 u32 adj, sign = 0; in gem_ptp_adjtime() local
175 adj = (sign << GEM_ADDSUB_OFFSET) | delta; in gem_ptp_adjtime()
[all …]
/linux-6.12.1/arch/s390/include/asm/vdso/
Dgettimeofday.h24 u64 adj, now; in __arch_get_hw_counter() local
27 adj = vd->arch_data.tod_steering_end - now; in __arch_get_hw_counter()
28 if (unlikely((s64) adj > 0)) in __arch_get_hw_counter()
29 now += (vd->arch_data.tod_steering_delta < 0) ? (adj >> 15) : -(adj >> 15); in __arch_get_hw_counter()
/linux-6.12.1/drivers/gpu/drm/atmel-hlcdc/
Datmel_hlcdc_crtc.c72 struct drm_display_mode *adj = &c->state->adjusted_mode; in atmel_hlcdc_crtc_mode_set_nofb() local
106 vm.vfront_porch = adj->crtc_vsync_start - adj->crtc_vdisplay; in atmel_hlcdc_crtc_mode_set_nofb()
107 vm.vback_porch = adj->crtc_vtotal - adj->crtc_vsync_end; in atmel_hlcdc_crtc_mode_set_nofb()
108 vm.vsync_len = adj->crtc_vsync_end - adj->crtc_vsync_start; in atmel_hlcdc_crtc_mode_set_nofb()
109 vm.hfront_porch = adj->crtc_hsync_start - adj->crtc_hdisplay; in atmel_hlcdc_crtc_mode_set_nofb()
110 vm.hback_porch = adj->crtc_htotal - adj->crtc_hsync_end; in atmel_hlcdc_crtc_mode_set_nofb()
111 vm.hsync_len = adj->crtc_hsync_end - adj->crtc_hsync_start; in atmel_hlcdc_crtc_mode_set_nofb()
123 (adj->crtc_hdisplay - 1) | in atmel_hlcdc_crtc_mode_set_nofb()
124 ((adj->crtc_vdisplay - 1) << 16)); in atmel_hlcdc_crtc_mode_set_nofb()
127 mode_rate = adj->crtc_clock * 1000; in atmel_hlcdc_crtc_mode_set_nofb()
[all …]
/linux-6.12.1/drivers/ptp/
Dptp_mock.c16 * and thus "adj" between -68,719,476 and 68,719,476
29 * 64-bit overflow during the multiplication with cc->mult, given the max "adj"
52 s64 adj; in mock_phc_adjfine() local
54 adj = (s64)scaled_ppm << MOCK_PHC_FADJ_SHIFT; in mock_phc_adjfine()
55 adj = div_s64(adj, MOCK_PHC_FADJ_DENOMINATOR); in mock_phc_adjfine()
59 phc->cc.mult = MOCK_PHC_CC_MULT + adj; in mock_phc_adjfine()
Dptp_vclock.c46 s64 adj; in ptp_vclock_adjfine() local
48 adj = (s64)scaled_ppm << PTP_VCLOCK_FADJ_SHIFT; in ptp_vclock_adjfine()
49 adj = div_s64(adj, PTP_VCLOCK_FADJ_DENOMINATOR); in ptp_vclock_adjfine()
54 vclock->cc.mult = PTP_VCLOCK_CC_MULT + adj; in ptp_vclock_adjfine()
Dptp_qoriq.c204 u64 adj, diff; in ptp_qoriq_adjfine() local
215 adj = tmr_add; in ptp_qoriq_adjfine()
220 * diff = adj * (ppb / 1000000000) in ptp_qoriq_adjfine()
221 * = adj * scaled_ppm / 65536000000 in ptp_qoriq_adjfine()
223 diff = mul_u64_u64_div_u64(adj, scaled_ppm, 32768000000); in ptp_qoriq_adjfine()
410 * "fsl,max-adj"
506 "fsl,max-adj", &ptp_qoriq->caps.max_adj) || in ptp_qoriq_init()
/linux-6.12.1/arch/x86/math-emu/
Dpoly_tan.c57 unsigned long adj; in poly_tan() local
178 adj = 0xffffffff; /* We want approx 1.0 here, but in poly_tan()
181 adj = accum.msw >> -(exponent + 1); /* tan */ in poly_tan()
182 adj = mul_32_32(adj, adj); /* tan^2 */ in poly_tan()
184 adj = 0; in poly_tan()
185 adj = mul_32_32(0x898cc517, adj); /* delta * tan^2 */ in poly_tan()
187 fix_up.msw += adj; in poly_tan()
/linux-6.12.1/drivers/net/ethernet/marvell/octeontx2/af/
Dptp.c179 u64 comp, adj = 0, cycles_per_sec, ns_drift = 0; in ptp_calc_adjusted_comp() local
212 adj = comp * ns_drift; in ptp_calc_adjusted_comp()
213 adj = adj / 1000000000ULL; in ptp_calc_adjusted_comp()
216 comp += adj; in ptp_calc_adjusted_comp()
221 adj = comp * cycle_time; in ptp_calc_adjusted_comp()
222 adj = adj / 1000000000ULL; in ptp_calc_adjusted_comp()
223 adj = adj / CYCLE_MULT; in ptp_calc_adjusted_comp()
224 comp -= adj; in ptp_calc_adjusted_comp()
316 u64 comp, adj; in ptp_adjfine() local
350 adj = comp * ppb; in ptp_adjfine()
[all …]
/linux-6.12.1/drivers/gpu/drm/armada/
Darmada_crtc.c200 const struct drm_display_mode *mode, struct drm_display_mode *adj) in armada_drm_crtc_mode_fixup() argument
210 drm_mode_set_crtcinfo(adj, CRTC_INTERLACE_HALVE_V); in armada_drm_crtc_mode_fixup()
216 if (armada_drm_crtc_mode_valid(crtc, adj) != MODE_OK) in armada_drm_crtc_mode_fixup()
220 ret = dcrtc->variant->compute_clock(dcrtc, adj, NULL); in armada_drm_crtc_mode_fixup()
332 struct drm_display_mode *adj = &crtc->state->adjusted_mode; in armada_drm_crtc_mode_set_nofb() local
338 bool interlaced = !!(adj->flags & DRM_MODE_FLAG_INTERLACE); in armada_drm_crtc_mode_set_nofb()
341 rm = adj->crtc_hsync_start - adj->crtc_hdisplay; in armada_drm_crtc_mode_set_nofb()
342 lm = adj->crtc_htotal - adj->crtc_hsync_end; in armada_drm_crtc_mode_set_nofb()
343 bm = adj->crtc_vsync_start - adj->crtc_vdisplay; in armada_drm_crtc_mode_set_nofb()
344 tm = adj->crtc_vtotal - adj->crtc_vsync_end; in armada_drm_crtc_mode_set_nofb()
[all …]
/linux-6.12.1/drivers/interconnect/imx/
Dimx.c70 freq = (node->avg_bw + node->peak_bw) * node_data->desc->adj->bw_mul; in imx_icc_node_set()
71 do_div(freq, node_data->desc->adj->bw_div); in imx_icc_node_set()
121 const struct imx_icc_node_adj_desc *adj = node_data->desc->adj; in imx_icc_node_init_qos() local
126 if (adj->main_noc) { in imx_icc_node_init_qos()
131 dn = of_parse_phandle(dev->of_node, adj->phandle_name, 0); in imx_icc_node_init_qos()
134 adj->phandle_name); in imx_icc_node_init_qos()
140 adj->phandle_name, node->name); in imx_icc_node_init_qos()
197 if (node_desc->adj) { in imx_icc_node_add()
/linux-6.12.1/fs/xfs/scrub/
Dcow_repair.c113 unsigned int adj; in xrep_cow_trim_refcount() local
118 adj = xc->irec_startbno - dst->rc_startblock; in xrep_cow_trim_refcount()
119 dst->rc_blockcount -= adj; in xrep_cow_trim_refcount()
120 dst->rc_startblock += adj; in xrep_cow_trim_refcount()
125 adj = (dst->rc_startblock + dst->rc_blockcount) - in xrep_cow_trim_refcount()
127 dst->rc_blockcount -= adj; in xrep_cow_trim_refcount()
206 unsigned int adj; in xrep_cow_mark_missing_staging_rmap() local
214 adj = xc->irec_startbno - rec_bno; in xrep_cow_mark_missing_staging_rmap()
215 rec_len -= adj; in xrep_cow_mark_missing_staging_rmap()
216 rec_bno += adj; in xrep_cow_mark_missing_staging_rmap()
[all …]
/linux-6.12.1/drivers/net/ethernet/cavium/common/
Dcavium_ptp.c99 u64 adj; in cavium_ptp_adjfine() local
123 adj = comp * scaled_ppm; in cavium_ptp_adjfine()
124 adj >>= 16; in cavium_ptp_adjfine()
125 adj = div_u64(adj, 1000000ull); in cavium_ptp_adjfine()
126 comp = neg_adj ? comp - adj : comp + adj; in cavium_ptp_adjfine()
/linux-6.12.1/arch/sparc/kernel/
Dtime_64.c118 static int tick_add_compare(unsigned long adj) in tick_add_compare() argument
143 : "r" (orig_tick), "r" (adj)); in tick_add_compare()
149 return ((long)(new_tick - (orig_tick+adj))) > 0L; in tick_add_compare()
152 static unsigned long tick_add_tick(unsigned long adj) in tick_add_tick() argument
161 : "r" (adj)); in tick_add_tick()
251 static unsigned long stick_add_tick(unsigned long adj) in stick_add_tick() argument
259 : "r" (adj)); in stick_add_tick()
264 static int stick_add_compare(unsigned long adj) in stick_add_compare() argument
274 : "r" (orig_tick + adj)); in stick_add_compare()
280 return ((long)(new_tick - (orig_tick+adj))) > 0L; in stick_add_compare()
[all …]
/linux-6.12.1/fs/xfs/libxfs/
Dxfs_exchmaps.c276 * the left records in @adj (if provided) so that the simulation phase can
284 struct xfs_exchmaps_adjacent *adj) in xfs_exchmaps_find_mappings() argument
370 if (adj) { in xfs_exchmaps_find_mappings()
371 memcpy(&adj->left1, irec1, sizeof(*irec1)); in xfs_exchmaps_find_mappings()
372 memcpy(&adj->left2, irec2, sizeof(*irec2)); in xfs_exchmaps_find_mappings()
1036 struct xfs_exchmaps_adjacent adj = ADJACENT_INIT; in xfs_exchmaps_estimate() local
1060 * adj to capture skipped mappings for correct estimation of in xfs_exchmaps_estimate()
1063 error = xfs_exchmaps_find_mappings(xmi, &irec1, &irec2, &adj); in xfs_exchmaps_estimate()
1077 error = xmi_next(req->ip1, bmap_flags, &irec1, &adj.right1); in xfs_exchmaps_estimate()
1081 error = xmi_next(req->ip2, bmap_flags, &irec2, &adj.right2); in xfs_exchmaps_estimate()
[all …]
/linux-6.12.1/drivers/thermal/renesas/
Drcar_gen3_thermal.c118 * [temp] = ((thadj - [reg]) * a) / b + adj
119 * [reg] = thadj - ([temp] - adj) * b / a
132 * The constants adj is taken verbatim from the datasheet. Two values exists,
160 int adj, decicelsius, reg, thcode; in rcar_gen3_thermal_get_temp() local
166 adj = priv->info->adj_below; in rcar_gen3_thermal_get_temp()
170 adj = priv->info->adj_above; in rcar_gen3_thermal_get_temp()
186 *temp = decicelsius * 100 + adj * 1000; in rcar_gen3_thermal_get_temp()
196 int adj, celsius, thcode; in rcar_gen3_thermal_mcelsius_to_temp() local
201 adj = priv->info->adj_below; in rcar_gen3_thermal_mcelsius_to_temp()
205 adj = priv->info->adj_above; in rcar_gen3_thermal_mcelsius_to_temp()
[all …]
/linux-6.12.1/drivers/macintosh/
Dwindfarm_pid.c91 s32 error, target, sval, adj; in wf_cpu_pid_run() local
120 adj = min(st->param.ttarget, sval); in wf_cpu_pid_run()
122 DBG("integ: %lx, sval: %lx, adj: %lx\n", integ, sval, adj); in wf_cpu_pid_run()
131 prop = st->last_delta = (new_temp - adj); in wf_cpu_pid_run()
/linux-6.12.1/drivers/usb/gadget/udc/
Dr8a66597-udc.h200 int adj = 0; in r8a66597_write_fifo() local
222 adj = 0x03; /* 32-bit wide */ in r8a66597_write_fifo()
224 adj = 0x01; /* 16-bit wide */ in r8a66597_write_fifo()
230 iowrite8(buf[i], fifoaddr + adj - (i & adj)); in r8a66597_write_fifo()
/linux-6.12.1/arch/x86/kernel/
Dtsc_sync.c52 struct tsc_adjust *adj = this_cpu_ptr(&tsc_adjust); in tsc_verify_tsc_adjust() local
63 if (!resume && time_before(jiffies, adj->nextcheck)) in tsc_verify_tsc_adjust()
66 adj->nextcheck = jiffies + HZ; in tsc_verify_tsc_adjust()
69 if (adj->adjusted == curval) in tsc_verify_tsc_adjust()
73 wrmsrl(MSR_IA32_TSC_ADJUST, adj->adjusted); in tsc_verify_tsc_adjust()
75 if (!adj->warned || resume) { in tsc_verify_tsc_adjust()
77 smp_processor_id(), adj->adjusted, curval); in tsc_verify_tsc_adjust()
78 adj->warned = true; in tsc_verify_tsc_adjust()
/linux-6.12.1/arch/sh/boards/mach-dreamcast/
Drtc.c65 u32 adj = secs + TWENTY_YEARS; in aica_rtc_settimeofday() local
68 __raw_writel((adj & 0xffff0000) >> 16, AICA_RTC_SECS_H); in aica_rtc_settimeofday()
69 __raw_writel((adj & 0xffff), AICA_RTC_SECS_L); in aica_rtc_settimeofday()
/linux-6.12.1/drivers/video/backlight/
Dcorgi_lcd.c190 int adj; in lcdtg_set_phadadj() local
195 adj = sharpsl_param.phadadj; in lcdtg_set_phadadj()
196 adj = (adj < 0) ? PHACTRL_PHASE_MANUAL : in lcdtg_set_phadadj()
197 PHACTRL_PHASE_MANUAL | ((adj & 0xf) << 1); in lcdtg_set_phadadj()
202 adj = (DEFAULT_PHAD_QVGA << 1) | PHACTRL_PHASE_MANUAL; in lcdtg_set_phadadj()
206 corgi_ssp_lcdtg_send(lcd, PHACTRL_ADRS, adj); in lcdtg_set_phadadj()
/linux-6.12.1/arch/s390/kernel/
Dtime.c232 unsigned long now, adj; in read_tod_clock() local
236 adj = tod_steering_end - now; in read_tod_clock()
237 if (unlikely((s64) adj > 0)) in read_tod_clock()
244 now += (tod_steering_delta < 0) ? (adj >> 15) : -(adj >> 15); in read_tod_clock()
374 unsigned long now, adj; in clock_sync_global() local
382 adj = tod_steering_end - now; in clock_sync_global()
383 if (unlikely((s64) adj >= 0)) in clock_sync_global()
386 -(adj >> 15) : (adj >> 15); in clock_sync_global()
/linux-6.12.1/arch/riscv/boot/dts/starfive/
Djh7110-starfive-visionfive-2-v1.3b.dts28 motorcomm,tx-clk-adj-enabled;
38 motorcomm,tx-clk-adj-enabled;
Djh7110-pine64-star64.dts50 motorcomm,tx-clk-adj-enabled;
61 motorcomm,tx-clk-adj-enabled;
/linux-6.12.1/scripts/
Dcleanpatch197 my $adj = 0;
203 $adj++; # Skip this line
215 if ($adj) {
225 $mstart, $mlin, $pstart, $plin-$adj,
/linux-6.12.1/drivers/block/drbd/
Ddrbd_vli.h136 u64 adj = 1; in vli_decode_bits() local
141 *out = ((in & ((~0ULL) >> (64-t))) >> b) + adj; \ in vli_decode_bits()
144 adj += 1ULL << (t - b); \ in vli_decode_bits()
159 u64 adj = 1; in __vli_encode_bits() local
168 *out = ((in - adj) << b) | v; \ in __vli_encode_bits()
171 adj = max + 1; \ in __vli_encode_bits()

123456