/linux-6.3-rc2/arch/x86/math-emu/ |
A D | poly_tan.c | 57 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()
|
A D | poly_l2.c | 185 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()
|
A D | reg_constant.c | 53 static void fld_const(FPU_REG const * c, int adj, u_char tag) in fld_const() argument 63 st_new_ptr->sigl += adj; /* For all our fldxxx constants, we don't need to in fld_const()
|
/linux-6.3-rc2/drivers/net/ethernet/marvell/octeontx2/af/ |
A D | ptp.c | 184 adj = comp * ns_drift; in ptp_calc_adjusted_comp() 185 adj = adj / 1000000000ULL; in ptp_calc_adjusted_comp() 188 comp += adj; in ptp_calc_adjusted_comp() 193 adj = comp * cycle_time; in ptp_calc_adjusted_comp() 194 adj = adj / 1000000000ULL; in ptp_calc_adjusted_comp() 195 adj = adj / CYCLE_MULT; in ptp_calc_adjusted_comp() 196 comp -= adj; in ptp_calc_adjusted_comp() 229 u64 comp, adj; in ptp_adjfine() local 263 adj = comp * ppb; in ptp_adjfine() 264 adj = div_u64(adj, 1000000000ull); in ptp_adjfine() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/cadence/ |
A D | macb_ptp.c | 128 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() 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() 161 u32 adj, sign = 0; in gem_ptp_adjtime() local 177 gem_writel(bp, TA, adj); in gem_ptp_adjtime() 208 u64 adj; in gem_ptp_init_timer() local 212 adj = rem; in gem_ptp_init_timer() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/atmel-hlcdc/ |
A D | atmel_hlcdc_crtc.c | 83 vm.vfront_porch = adj->crtc_vsync_start - adj->crtc_vdisplay; in atmel_hlcdc_crtc_mode_set_nofb() 84 vm.vback_porch = adj->crtc_vtotal - adj->crtc_vsync_end; in atmel_hlcdc_crtc_mode_set_nofb() 85 vm.vsync_len = adj->crtc_vsync_end - adj->crtc_vsync_start; in atmel_hlcdc_crtc_mode_set_nofb() 86 vm.hfront_porch = adj->crtc_hsync_start - adj->crtc_hdisplay; in atmel_hlcdc_crtc_mode_set_nofb() 87 vm.hback_porch = adj->crtc_htotal - adj->crtc_hsync_end; in atmel_hlcdc_crtc_mode_set_nofb() 88 vm.hsync_len = adj->crtc_hsync_end - adj->crtc_hsync_start; in atmel_hlcdc_crtc_mode_set_nofb() 100 (adj->crtc_hdisplay - 1) | in atmel_hlcdc_crtc_mode_set_nofb() 101 ((adj->crtc_vdisplay - 1) << 16)); in atmel_hlcdc_crtc_mode_set_nofb() 104 mode_rate = adj->crtc_clock * 1000; in atmel_hlcdc_crtc_mode_set_nofb() 142 if (adj->flags & DRM_MODE_FLAG_NVSYNC) in atmel_hlcdc_crtc_mode_set_nofb() [all …]
|
/linux-6.3-rc2/arch/s390/include/asm/vdso/ |
A D | gettimeofday.h | 27 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-6.3-rc2/arch/sparc/kernel/ |
A D | time_64.c | 117 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() 160 : "r" (adj)); in tick_add_tick() 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() 396 val = __hbird_read_stick() + adj; in hbtick_add_tick() 402 static int hbtick_add_compare(unsigned long adj) in hbtick_add_compare() argument [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/armada/ |
A D | armada_crtc.c | 340 rm = adj->crtc_hsync_start - adj->crtc_hdisplay; in armada_drm_crtc_mode_set_nofb() 341 lm = adj->crtc_htotal - adj->crtc_hsync_end; in armada_drm_crtc_mode_set_nofb() 342 bm = adj->crtc_vsync_start - adj->crtc_vdisplay; in armada_drm_crtc_mode_set_nofb() 343 tm = adj->crtc_vtotal - adj->crtc_vsync_end; in armada_drm_crtc_mode_set_nofb() 359 adj->crtc_htotal; in armada_drm_crtc_mode_set_nofb() 361 val = adj->crtc_hsync_start; in armada_drm_crtc_mode_set_nofb() 366 val -= adj->crtc_htotal / 2; in armada_drm_crtc_mode_set_nofb() 375 val = adj->crtc_vdisplay << 16 | adj->crtc_hdisplay; in armada_drm_crtc_mode_set_nofb() 400 if (adj->flags & DRM_MODE_FLAG_NCSYNC) in armada_drm_crtc_mode_set_nofb() 402 if (adj->flags & DRM_MODE_FLAG_NHSYNC) in armada_drm_crtc_mode_set_nofb() [all …]
|
/linux-6.3-rc2/arch/x86/kernel/ |
A D | tsc_sync.c | 51 struct tsc_adjust *adj = this_cpu_ptr(&tsc_adjust); in tsc_verify_tsc_adjust() local 62 if (!resume && time_before(jiffies, adj->nextcheck)) in tsc_verify_tsc_adjust() 65 adj->nextcheck = jiffies + HZ; in tsc_verify_tsc_adjust() 68 if (adj->adjusted == curval) in tsc_verify_tsc_adjust() 72 wrmsrl(MSR_IA32_TSC_ADJUST, adj->adjusted); in tsc_verify_tsc_adjust() 74 if (!adj->warned || resume) { in tsc_verify_tsc_adjust() 76 smp_processor_id(), adj->adjusted, curval); in tsc_verify_tsc_adjust() 77 adj->warned = true; in tsc_verify_tsc_adjust()
|
/linux-6.3-rc2/drivers/block/drbd/ |
A D | drbd_vli.h | 136 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-6.3-rc2/drivers/interconnect/imx/ |
A D | imx.c | 70 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()
|
A D | imx.h | 70 const struct imx_icc_node_adj_desc *adj; member 91 .adj = _adj, \
|
/linux-6.3-rc2/drivers/net/ethernet/cavium/common/ |
A D | cavium_ptp.c | 99 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.3-rc2/arch/sh/boards/mach-dreamcast/ |
A D | rtc.c | 65 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.3-rc2/scripts/ |
A D | cleanpatch | 197 my $adj = 0; 203 $adj++; # Skip this line 215 if ($adj) { 225 $mstart, $mlin, $pstart, $plin-$adj,
|
/linux-6.3-rc2/drivers/usb/gadget/udc/ |
A D | r8a66597-udc.h | 200 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.3-rc2/arch/s390/kernel/ |
A D | time.c | 227 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-6.3-rc2/drivers/macintosh/ |
A D | windfarm_pid.c | 91 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.3-rc2/drivers/ptp/ |
A D | ptp_vclock.c | 46 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()
|
/linux-6.3-rc2/drivers/video/backlight/ |
A D | corgi_lcd.c | 189 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()
|
/linux-6.3-rc2/drivers/rtc/ |
A D | rtc-rx8025.c | 483 long adj; in rx8025_sysfs_show_clock_adjust() local 487 err = rx8025_read_offset(dev, &adj); in rx8025_sysfs_show_clock_adjust() 491 return sprintf(buf, "%ld\n", -adj); in rx8025_sysfs_show_clock_adjust() 498 long adj; in rx8025_sysfs_store_clock_adjust() local 502 if (kstrtol(buf, 10, &adj) != 0) in rx8025_sysfs_store_clock_adjust() 505 err = rx8025_set_offset(dev, -adj); in rx8025_sysfs_store_clock_adjust()
|
/linux-6.3-rc2/drivers/gpu/drm/i915/gt/ |
A D | intel_rps.c | 887 int adj; in intel_rps_park() local 932 adj *= 2; in intel_rps_park() 934 adj = -2; in intel_rps_park() 1865 adj = 0; in rps_work() 1868 adj *= 2; in rps_work() 1873 adj = 0; in rps_work() 1875 adj = 0; in rps_work() 1881 adj = 0; in rps_work() 1889 adj = 0; in rps_work() 1891 adj = 0; in rps_work() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/bridge/analogix/ |
A D | anx7625.c | 2271 struct drm_display_mode *adj) in anx7625_bridge_mode_fixup() argument 2292 hsync, hfp, hbp, adj->clock); in anx7625_bridge_mode_fixup() 2294 adj->hsync_start, adj->hsync_end, adj->htotal); in anx7625_bridge_mode_fixup() 2330 vref = adj->clock * 1000 / (adj->htotal * adj->vtotal); in anx7625_bridge_mode_fixup() 2333 adj_clock = vref * delta_adj * adj->vtotal; in anx7625_bridge_mode_fixup() 2334 adj->clock += DIV_ROUND_UP(adj_clock, 1000); in anx7625_bridge_mode_fixup() 2337 adj_clock = vref * delta_adj * adj->vtotal; in anx7625_bridge_mode_fixup() 2377 adj->hsync_start = adj->hdisplay + adj_hfp; in anx7625_bridge_mode_fixup() 2378 adj->hsync_end = adj->hsync_start + adj_hsync; in anx7625_bridge_mode_fixup() 2379 adj->htotal = adj->hsync_end + adj_hbp; in anx7625_bridge_mode_fixup() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/intel/ice/ |
A D | ice_ptp_hw.c | 1140 if (adj > 0) in ice_ptp_prep_phy_adj_e822() 1141 cycles = (s64)adj << 32; in ice_ptp_prep_phy_adj_e822() 1143 cycles = -(((s64)-adj) << 32); in ice_ptp_prep_phy_adj_e822() 1944 adj = div_u64(tu_per_sec, 125); in ice_phy_calc_pmd_adj_e822() 1945 adj *= mult; in ice_phy_calc_pmd_adj_e822() 1946 adj = div_u64(adj, e822_vernier[link_spd].pmd_adj_divisor); in ice_phy_calc_pmd_adj_e822() 1971 adj += cycle_adj; in ice_phy_calc_pmd_adj_e822() 1993 adj += cycle_adj; in ice_phy_calc_pmd_adj_e822() 1998 *pmd_adj = adj; in ice_phy_calc_pmd_adj_e822() 3083 wr32(hw, GLTSYN_SHADJ_H(tmr_idx), adj); in ice_ptp_adj_clock() [all …]
|