/linux/arch/x86/math-emu/ |
H 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() [all...] |
H 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()
|
H 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/drivers/net/ethernet/cadence/ |
H 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() 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_SIZ in gem_ptp_adjfine() 161 u32 adj, sign = 0; gem_ptp_adjtime() local 208 u64 adj; gem_ptp_init_timer() local [all...] |
/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | ptp.c | 179 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_MUL in ptp_calc_adjusted_comp() 316 u64 comp, adj; ptp_adjfine() local [all...] |
/linux/arch/sparc/kernel/ |
H A D | time_64.c | 118 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))) > in stick_add_compare() 393 hbtick_add_tick(unsigned long adj) hbtick_add_tick() argument 403 hbtick_add_compare(unsigned long adj) hbtick_add_compare() argument [all...] |
/linux/drivers/gpu/drm/armada/ |
H A D | armada_crtc.c | 200 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 in armada_drm_crtc_mode_set_nofb() [all...] |
/linux/arch/x86/kernel/ |
H A D | tsc_sync.c | 53 struct tsc_adjust *adj = this_cpu_ptr(&tsc_adjust); in tsc_verify_tsc_adjust() local 64 if (!resume && time_before(jiffies, adj->nextcheck)) in tsc_verify_tsc_adjust() 67 adj->nextcheck = jiffies + HZ; in tsc_verify_tsc_adjust() 70 if (adj->adjusted == curval) in tsc_verify_tsc_adjust() 74 wrmsrq(MSR_IA32_TSC_ADJUST, adj->adjusted); in tsc_verify_tsc_adjust() 76 if (!adj->warned || resume) { in tsc_verify_tsc_adjust() 78 smp_processor_id(), adj->adjusted, curval); in tsc_verify_tsc_adjust() 79 adj->warned = true; in tsc_verify_tsc_adjust()
|
/linux/drivers/block/drbd/ |
H 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/drivers/ptp/ |
H A D | ptp_mock.c | 16 * 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()
|
H 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/drivers/interconnect/imx/ |
H 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()
|
H A D | imx.h | 75 const struct imx_icc_node_adj_desc *adj; member 96 .adj = _adj, \
|
/linux/drivers/net/ethernet/cavium/common/ |
H 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/fs/xfs/libxfs/ |
H A D | xfs_exchmaps.c | 276 * 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() 1038 struct xfs_exchmaps_adjacent adj = ADJACENT_INIT; in xfs_exchmaps_estimate() local 1062 * adj to capture skipped mappings for correct estimation of in xfs_exchmaps_estimate() 1065 error = xfs_exchmaps_find_mappings(xmi, &irec1, &irec2, &adj); in xfs_exchmaps_estimate() 1079 error = xmi_next(req->ip1, bmap_flags, &irec1, &adj.right1); in xfs_exchmaps_estimate() 1083 error = xmi_next(req->ip2, bmap_flags, &irec2, &adj in xfs_exchmaps_estimate() [all...] |
/linux/arch/sh/boards/mach-dreamcast/ |
H 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/fs/xfs/scrub/ |
H A D | cow_repair.c | 120 unsigned int adj; in xrep_cow_trim_refcount() local 125 adj = xc->irec_startbno - dst->rc_startblock; in xrep_cow_trim_refcount() 126 dst->rc_blockcount -= adj; in xrep_cow_trim_refcount() 127 dst->rc_startblock += adj; in xrep_cow_trim_refcount() 132 adj = (dst->rc_startblock + dst->rc_blockcount) - in xrep_cow_trim_refcount() 134 dst->rc_blockcount -= adj; in xrep_cow_trim_refcount() 210 unsigned int adj; in xrep_cow_mark_missing_staging_rmap() local 218 adj = xc->irec_startbno - rec_bno; in xrep_cow_mark_missing_staging_rmap() 219 rec_len -= adj; in xrep_cow_mark_missing_staging_rmap() 220 rec_bno += adj; in xrep_cow_mark_missing_staging_rmap() [all...] |
/linux/scripts/ |
H A D | cleanpatch | 197 my $adj = 0; 203 $adj++; # Skip this line 215 if ($adj) { 225 $mstart, $mlin, $pstart, $plin-$adj,
|
/linux/drivers/gpu/drm/imx/dc/ |
H A D | dc-crtc.c | 155 struct drm_display_mode *adj = &new_crtc_state->adjusted_mode; in dc_crtc_atomic_check() local 159 status = dc_crtc_check_clock(dc_crtc, adj->clock); in dc_crtc_atomic_check() 229 struct drm_display_mode *adj = &new_crtc_state->adjusted_mode; in dc_crtc_atomic_enable() local 234 dc_crtc_dbg(crtc, "mode " DRM_MODE_FMT "\n", DRM_MODE_ARG(adj)); in dc_crtc_atomic_enable() 251 dc_fg_cfg_videomode(dc_crtc->fg, adj); in dc_crtc_atomic_enable() 254 adj->crtc_hdisplay, adj->crtc_vdisplay); in dc_crtc_atomic_enable() 256 adj->crtc_hdisplay, adj->crtc_vdisplay); in dc_crtc_atomic_enable()
|
/linux/drivers/usb/gadget/udc/ |
H 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/drivers/macintosh/ |
H 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/drivers/thermal/renesas/ |
H A D | rcar_gen3_thermal.c | 124 * [temp] = ((thadj - [reg]) * a) / b + adj 125 * [reg] = thadj - ([temp] - adj) * b / a 138 * The constants adj is taken verbatim from the datasheet. Two values exists, 166 int adj, decicelsius, reg, thcode; in rcar_gen3_thermal_get_temp() local 172 adj = priv->info->adj_below; in rcar_gen3_thermal_get_temp() 176 adj = priv->info->adj_above; in rcar_gen3_thermal_get_temp() 192 *temp = decicelsius * 100 + adj * 1000; in rcar_gen3_thermal_get_temp() 202 int adj, celsius, thcode; in rcar_gen3_thermal_mcelsius_to_temp() local 207 adj = priv->info->adj_below; in rcar_gen3_thermal_mcelsius_to_temp() 211 adj in rcar_gen3_thermal_mcelsius_to_temp() [all...] |
/linux/drivers/rtc/ |
H 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/drivers/gpu/drm/i915/gt/ |
H A D | intel_rps.c | 890 int adj; in intel_rps_park() local 933 adj = rps->last_adj; in intel_rps_park() 934 if (adj < 0) in intel_rps_park() 935 adj *= 2; in intel_rps_park() 937 adj = -2; in intel_rps_park() 938 rps->last_adj = adj; in intel_rps_park() 939 rps->cur_freq = max_t(int, rps->cur_freq + adj, rps->min_freq); in intel_rps_park() 1820 int new_freq, adj, min, max; in rps_work() local 1840 adj = rps->last_adj; in rps_work() 1850 adj, new_fre in rps_work() [all...] |
/linux/drivers/net/ethernet/mscc/ |
H A D | ocelot_ptp.c | 143 u64 adj = 0; in ocelot_ptp_adjfine() local 155 adj = PSEC_PER_SEC << 16; in ocelot_ptp_adjfine() 156 do_div(adj, scaled_ppm); in ocelot_ptp_adjfine() 157 do_div(adj, 1000); in ocelot_ptp_adjfine() 160 if (adj >= (1L << 30)) { in ocelot_ptp_adjfine() 162 do_div(adj, 1000); in ocelot_ptp_adjfine() 166 if (adj >= (1L << 30)) in ocelot_ptp_adjfine() 169 ocelot_write(ocelot, unit | adj, PTP_CLK_CFG_ADJ_FREQ); in ocelot_ptp_adjfine()
|