Home
last modified time | relevance | path

Searched refs:adj (Results 1 – 25 of 97) sorted by relevance

1234

/Linux-v5.15/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()
Dpoly_l2.c185 long int exponent, adj; in log2_kernel() local
221 adj = norm_Xsig(&argSignif); in log2_kernel()
225 shr_Xsig(&accumulator, 2 * (-1 - (1 + exponent + adj))); in log2_kernel()
235 shr_Xsig(&accumulator, 6 - adj); in log2_kernel()
/Linux-v5.15/drivers/rtc/
Drtc-rx8025.c451 static int rx8025_get_clock_adjust(struct device *dev, int *adj) in rx8025_get_clock_adjust() argument
460 *adj = digoff >= 64 ? digoff - 128 : digoff; in rx8025_get_clock_adjust()
461 if (*adj > 0) in rx8025_get_clock_adjust()
462 (*adj)--; in rx8025_get_clock_adjust()
463 *adj *= -RX8025_ADJ_RESOLUTION; in rx8025_get_clock_adjust()
468 static int rx8025_set_clock_adjust(struct device *dev, int adj) in rx8025_set_clock_adjust() argument
474 adj /= -RX8025_ADJ_RESOLUTION; in rx8025_set_clock_adjust()
475 if (adj > RX8025_ADJ_DATA_MAX) in rx8025_set_clock_adjust()
476 adj = RX8025_ADJ_DATA_MAX; in rx8025_set_clock_adjust()
477 else if (adj < RX8025_ADJ_DATA_MIN) in rx8025_set_clock_adjust()
[all …]
/Linux-v5.15/drivers/net/ethernet/cadence/
Dmacb_ptp.c123 u64 adj; in gem_ptp_adjfine() local
136 adj = (u64)scaled_ppm * word; in gem_ptp_adjfine()
140 adj += (USEC_PER_SEC >> 1); in gem_ptp_adjfine()
141 adj >>= PPM_FRACTION; /* remove fractions */ in gem_ptp_adjfine()
142 adj = div_u64(adj, USEC_PER_SEC); in gem_ptp_adjfine()
143 adj = neg_adj ? (word - adj) : (word + adj); in gem_ptp_adjfine()
145 incr_spec.ns = (adj >> GEM_SUBNSINCR_SIZE) in gem_ptp_adjfine()
147 incr_spec.sub_ns = adj & ((1 << GEM_SUBNSINCR_SIZE) - 1); in gem_ptp_adjfine()
156 u32 adj, sign = 0; in gem_ptp_adjtime() local
170 adj = (sign << GEM_ADDSUB_OFFSET) | delta; in gem_ptp_adjtime()
[all …]
/Linux-v5.15/drivers/gpu/drm/atmel-hlcdc/
Datmel_hlcdc_crtc.c69 struct drm_display_mode *adj = &c->state->adjusted_mode; in atmel_hlcdc_crtc_mode_set_nofb() local
82 vm.vfront_porch = adj->crtc_vsync_start - adj->crtc_vdisplay; in atmel_hlcdc_crtc_mode_set_nofb()
83 vm.vback_porch = adj->crtc_vtotal - adj->crtc_vsync_end; in atmel_hlcdc_crtc_mode_set_nofb()
84 vm.vsync_len = adj->crtc_vsync_end - adj->crtc_vsync_start; in atmel_hlcdc_crtc_mode_set_nofb()
85 vm.hfront_porch = adj->crtc_hsync_start - adj->crtc_hdisplay; in atmel_hlcdc_crtc_mode_set_nofb()
86 vm.hback_porch = adj->crtc_htotal - adj->crtc_hsync_end; in atmel_hlcdc_crtc_mode_set_nofb()
87 vm.hsync_len = adj->crtc_hsync_end - adj->crtc_hsync_start; in atmel_hlcdc_crtc_mode_set_nofb()
99 (adj->crtc_hdisplay - 1) | in atmel_hlcdc_crtc_mode_set_nofb()
100 ((adj->crtc_vdisplay - 1) << 16)); in atmel_hlcdc_crtc_mode_set_nofb()
103 mode_rate = adj->crtc_clock * 1000; in atmel_hlcdc_crtc_mode_set_nofb()
[all …]
/Linux-v5.15/arch/s390/include/asm/vdso/
Dgettimeofday.h27 u64 adj, now; in __arch_get_hw_counter() local
30 adj = vd->arch_data.tod_steering_end - now; in __arch_get_hw_counter()
31 if (unlikely((s64) adj > 0)) in __arch_get_hw_counter()
32 now += (vd->arch_data.tod_steering_delta < 0) ? (adj >> 15) : -(adj >> 15); in __arch_get_hw_counter()
/Linux-v5.15/arch/nds32/lib/
Dmemcpy.S7 .macro lbi1 dst, addr, adj
8 lbi.bi \dst, [\addr], \adj
11 .macro sbi1 src, addr, adj
12 sbi.bi \src, [\addr], \adj
Dcopy_to_user.S8 .macro lbi1 dst, addr, adj
9 lbi.bi \dst, [\addr], \adj
12 .macro sbi1 src, addr, adj
13 USER( sbi.bi, \src, [\addr], \adj)
Dcopy_from_user.S8 .macro lbi1 dst, addr, adj
9 USER( lbi.bi, \dst, [\addr], \adj)
12 .macro sbi1 src, addr, adj
13 sbi.bi \src, [\addr], \adj
/Linux-v5.15/drivers/interconnect/imx/
Dimx.c37 freq = (node->avg_bw + node->peak_bw) * node_data->desc->adj->bw_mul; in imx_icc_node_set()
38 do_div(freq, node_data->desc->adj->bw_div); in imx_icc_node_set()
82 const struct imx_icc_node_adj_desc *adj = node_data->desc->adj; in imx_icc_node_init_qos() local
87 if (adj->main_noc) { in imx_icc_node_init_qos()
92 dn = of_parse_phandle(dev->of_node, adj->phandle_name, 0); in imx_icc_node_init_qos()
95 adj->phandle_name); in imx_icc_node_init_qos()
101 adj->phandle_name, node->name); in imx_icc_node_init_qos()
154 if (node_desc->adj) { in imx_icc_node_add()
Dimx.h38 const struct imx_icc_node_adj_desc *adj; member
45 .adj = _adj, \
/Linux-v5.15/arch/x86/kernel/
Dtsc_sync.c50 struct tsc_adjust *adj = this_cpu_ptr(&tsc_adjust); in tsc_verify_tsc_adjust() local
61 if (!resume && time_before(jiffies, adj->nextcheck)) in tsc_verify_tsc_adjust()
64 adj->nextcheck = jiffies + HZ; in tsc_verify_tsc_adjust()
67 if (adj->adjusted == curval) in tsc_verify_tsc_adjust()
71 wrmsrl(MSR_IA32_TSC_ADJUST, adj->adjusted); in tsc_verify_tsc_adjust()
73 if (!adj->warned || resume) { in tsc_verify_tsc_adjust()
75 smp_processor_id(), adj->adjusted, curval); in tsc_verify_tsc_adjust()
76 adj->warned = true; in tsc_verify_tsc_adjust()
/Linux-v5.15/arch/sparc/kernel/
Dtime_64.c117 static int tick_add_compare(unsigned long adj) in tick_add_compare() argument
142 : "r" (orig_tick), "r" (adj)); in tick_add_compare()
148 return ((long)(new_tick - (orig_tick+adj))) > 0L; in tick_add_compare()
151 static unsigned long tick_add_tick(unsigned long adj) in tick_add_tick() argument
160 : "r" (adj)); in tick_add_tick()
250 static unsigned long stick_add_tick(unsigned long adj) in stick_add_tick() argument
258 : "r" (adj)); in stick_add_tick()
263 static int stick_add_compare(unsigned long adj) in stick_add_compare() argument
273 : "r" (orig_tick + adj)); in stick_add_compare()
279 return ((long)(new_tick - (orig_tick+adj))) > 0L; in stick_add_compare()
[all …]
/Linux-v5.15/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-v5.15/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()
/Linux-v5.15/drivers/net/ethernet/marvell/octeontx2/af/
Dptp.c104 u64 adj; in ptp_adjfine() local
131 adj = comp * ppb; in ptp_adjfine()
132 adj = div_u64(adj, 1000000000ull); in ptp_adjfine()
133 comp = neg_adj ? comp - adj : comp + adj; in ptp_adjfine()
/Linux-v5.15/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-v5.15/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-v5.15/drivers/net/ethernet/mscc/
Docelot_ptp.c129 u64 adj = 0; in ocelot_ptp_adjfine() local
141 adj = PSEC_PER_SEC << 16; in ocelot_ptp_adjfine()
142 do_div(adj, scaled_ppm); in ocelot_ptp_adjfine()
143 do_div(adj, 1000); in ocelot_ptp_adjfine()
146 if (adj >= (1L << 30)) { in ocelot_ptp_adjfine()
148 do_div(adj, 1000); in ocelot_ptp_adjfine()
152 if (adj >= (1L << 30)) in ocelot_ptp_adjfine()
155 ocelot_write(ocelot, unit | adj, PTP_CLK_CFG_ADJ_FREQ); in ocelot_ptp_adjfine()
/Linux-v5.15/drivers/ptp/
Dptp_vclock.c20 s64 adj; in ptp_vclock_adjfine() local
22 adj = (s64)scaled_ppm << PTP_VCLOCK_FADJ_SHIFT; in ptp_vclock_adjfine()
23 adj = div_s64(adj, PTP_VCLOCK_FADJ_DENOMINATOR); in ptp_vclock_adjfine()
27 vclock->cc.mult = PTP_VCLOCK_CC_MULT + adj; in ptp_vclock_adjfine()
/Linux-v5.15/scripts/
Dcleanpatch197 my $adj = 0;
203 $adj++; # Skip this line
215 if ($adj) {
225 $mstart, $mlin, $pstart, $plin-$adj,
/Linux-v5.15/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-v5.15/arch/s390/kernel/
Dtime.c227 unsigned long now, adj; in read_tod_clock() local
231 adj = tod_steering_end - now; in read_tod_clock()
232 if (unlikely((s64) adj > 0)) in read_tod_clock()
239 now += (tod_steering_delta < 0) ? (adj >> 15) : -(adj >> 15); in read_tod_clock()
369 unsigned long now, adj; in clock_sync_global() local
377 adj = tod_steering_end - now; in clock_sync_global()
378 if (unlikely((s64) adj >= 0)) in clock_sync_global()
381 -(adj >> 15) : (adj >> 15); in clock_sync_global()
/Linux-v5.15/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-v5.15/drivers/video/backlight/
Dcorgi_lcd.c189 int adj; in lcdtg_set_phadadj() local
194 adj = sharpsl_param.phadadj; in lcdtg_set_phadadj()
195 adj = (adj < 0) ? PHACTRL_PHASE_MANUAL : in lcdtg_set_phadadj()
196 PHACTRL_PHASE_MANUAL | ((adj & 0xf) << 1); in lcdtg_set_phadadj()
201 adj = (DEFAULT_PHAD_QVGA << 1) | PHACTRL_PHASE_MANUAL; in lcdtg_set_phadadj()
205 corgi_ssp_lcdtg_send(lcd, PHACTRL_ADRS, adj); in lcdtg_set_phadadj()

1234