Home
last modified time | relevance | path

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

123

/linux/drivers/net/ethernet/cadence/
H A Dmacb_ptp.c139 u64 adj; in gem_ptp_adjfine() local
152 adj = (u64)scaled_ppm * word; in gem_ptp_adjfine()
156 adj += (USEC_PER_SEC >> 1); in gem_ptp_adjfine()
157 adj >>= PPM_FRACTION; /* remove fractions */ in gem_ptp_adjfine()
158 adj = div_u64(adj, USEC_PER_SEC); in gem_ptp_adjfine()
159 adj = neg_adj ? (word - adj) : (word + adj); in gem_ptp_adjfine()
161 incr_spec.ns = (adj >> GEM_SUBNSINCR_SIZ in gem_ptp_adjfine()
172 u32 adj, sign = 0; gem_ptp_adjtime() local
219 u64 adj; gem_ptp_init_timer() local
[all...]
/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A 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/drivers/block/drbd/
H A 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/fs/xfs/libxfs/
H A Dxfs_exchmaps.c273 * the left records in @adj (if provided) so that the simulation phase can
281 struct xfs_exchmaps_adjacent *adj) in xfs_exchmaps_find_mappings()
367 if (adj) { in xfs_exchmaps_find_mappings()
368 memcpy(&adj->left1, irec1, sizeof(*irec1)); in xfs_exchmaps_find_mappings()
369 memcpy(&adj->left2, irec2, sizeof(*irec2)); in xfs_exchmaps_find_mappings()
982 struct xfs_exchmaps_adjacent adj = ADJACENT_INIT; in xfs_exchmaps_estimate()
1006 * adj to capture skipped mappings for correct estimation of in xfs_exchmaps_estimate()
1009 error = xfs_exchmaps_find_mappings(xmi, &irec1, &irec2, &adj); in xfs_exchmaps_estimate()
1023 error = xmi_next(req->ip1, bmap_flags, &irec1, &adj.right1); in xfs_exchmaps_estimate()
1027 error = xmi_next(req->ip2, bmap_flags, &irec2, &adj in xfs_exchmaps_estimate()
282 xfs_exchmaps_find_mappings(struct xfs_exchmaps_intent * xmi,struct xfs_bmbt_irec * irec1,struct xfs_bmbt_irec * irec2,struct xfs_exchmaps_adjacent * adj) xfs_exchmaps_find_mappings() argument
983 struct xfs_exchmaps_adjacent adj = ADJACENT_INIT; xfs_exchmaps_estimate() local
[all...]
H A Dxfs_refcount.c1153 enum xfs_refc_adjust_op adj) in xfs_refcount_adjust_extents()
1188 tmp.rc_refcount = 1 + adj; in xfs_refcount_adjust_extents()
1250 ext.rc_refcount += adj; in xfs_refcount_adjust_extents()
1295 enum xfs_refc_adjust_op adj) in xfs_refcount_adjust()
1301 if (adj == XFS_REFCOUNT_ADJUST_INCREASE) in xfs_refcount_adjust()
1327 agbno, aglen, adj, &shape_changed); in xfs_refcount_adjust()
1336 error = xfs_refcount_adjust_extents(cur, agbno, aglen, adj); in xfs_refcount_adjust()
1802 enum xfs_refc_adjust_op adj) in xfs_refcount_adjust_cow_extents()
1832 switch (adj) { in xfs_refcount_adjust_cow_extents()
1906 enum xfs_refc_adjust_op adj) in xfs_refcount_adjust_cow()
1154 xfs_refcount_adjust_extents(struct xfs_btree_cur * cur,xfs_agblock_t * agbno,xfs_extlen_t * aglen,enum xfs_refc_adjust_op adj) xfs_refcount_adjust_extents() argument
1296 xfs_refcount_adjust(struct xfs_btree_cur * cur,xfs_agblock_t * agbno,xfs_extlen_t * aglen,enum xfs_refc_adjust_op adj) xfs_refcount_adjust() argument
1803 xfs_refcount_adjust_cow_extents(struct xfs_btree_cur * cur,xfs_agblock_t agbno,xfs_extlen_t aglen,enum xfs_refc_adjust_op adj) xfs_refcount_adjust_cow_extents() argument
1907 xfs_refcount_adjust_cow(struct xfs_btree_cur * cur,xfs_agblock_t agbno,xfs_extlen_t aglen,enum xfs_refc_adjust_op adj) xfs_refcount_adjust_cow() argument
[all...]
/linux/drivers/interconnect/imx/
H A 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()
H A Dimx.h75 const struct imx_icc_node_adj_desc *adj; member
96 .adj = _adj, \
/linux/drivers/ptp/
H A Dptp_mock.c52 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 Dptp_vclock.c64 s64 adj; in ptp_vclock_adjtime()
67 adj = (s64)scaled_ppm << PTP_VCLOCK_FADJ_SHIFT; in ptp_vclock_adjtime()
68 adj = div_s64(adj, PTP_VCLOCK_FADJ_DENOMINATOR); in ptp_vclock_adjtime()
75 vclock->cc.mult = PTP_VCLOCK_CC_MULT + adj; in ptp_vclock_gettime()
48 s64 adj; ptp_vclock_adjfine() local
/linux/drivers/net/ethernet/cavium/common/
H A 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/fs/xfs/scrub/
H A Dcow_repair.c115 unsigned int adj; in xrep_cow_trim_refcount() local
120 adj = xc->irec_startbno - dst->rc_startblock; in xrep_cow_trim_refcount()
121 dst->rc_blockcount -= adj; in xrep_cow_trim_refcount()
122 dst->rc_startblock += adj; in xrep_cow_trim_refcount()
127 adj = (dst->rc_startblock + dst->rc_blockcount) - in xrep_cow_trim_refcount()
129 dst->rc_blockcount -= adj; in xrep_cow_trim_refcount()
205 unsigned int adj; xrep_cow_mark_missing_staging_rmap() local
/linux/arch/sh/boards/mach-dreamcast/
H A 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/scripts/
H A Dcleanpatch197 my $adj = 0;
203 $adj++; # Skip this line
215 if ($adj) {
225 $mstart, $mlin, $pstart, $plin-$adj,
/linux/drivers/usb/gadget/udc/
H A 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/drivers/macintosh/
H A 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/drivers/video/backlight/
H A 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()
/linux/drivers/rtc/
H A Drtc-rx8025.c481 long adj; in rx8025_sysfs_show_clock_adjust()
485 err = rx8025_read_offset(dev, &adj); in rx8025_sysfs_show_clock_adjust()
489 return sysfs_emit(buf, "%ld\n", -adj); in rx8025_sysfs_show_clock_adjust()
496 long adj; in rx8025_sysfs_store_clock_adjust()
500 if (kstrtol(buf, 10, &adj) != 0) in rx8025_sysfs_store_clock_adjust()
503 err = rx8025_set_offset(dev, -adj); in rx8025_sysfs_store_clock_adjust()
483 long adj; rx8025_sysfs_show_clock_adjust() local
498 long adj; rx8025_sysfs_store_clock_adjust() local
/linux/arch/riscv/boot/dts/starfive/
H A Djh7110-starfive-visionfive-2-v1.3b.dts28 motorcomm,tx-clk-adj-enabled;
38 motorcomm,tx-clk-adj-enabled;
H A Djh7110-pine64-star64.dts82 motorcomm,tx-clk-adj-enabled;
93 motorcomm,tx-clk-adj-enabled;
/linux/drivers/gpu/drm/i915/gt/
H A Dintel_rps.c899 int adj; in intel_rps_park() local
942 adj = rps->last_adj; in intel_rps_park()
943 if (adj < 0) in intel_rps_park()
944 adj *= 2; in intel_rps_park()
946 adj = -2; in intel_rps_park()
947 rps->last_adj = adj; in intel_rps_park()
948 rps->cur_freq = max_t(int, rps->cur_freq + adj, rps->min_freq); in intel_rps_park()
1827 int new_freq, adj, min, max; in rps_work() local
1847 adj = rps->last_adj; in rps_work()
1857 adj, new_freq, min, max); in rps_work()
[all …]
/linux/tools/testing/selftests/net/
H A Dsrv6_end_x_next_csid_l3vpn_test.sh585 local adj="$2"
588 net_prefix="$(get_network_prefix "${rt}" "${adj}")"
596 encap seg6local action End.X nh6 "${net_prefix}::${adj}" \
604 local adj="$2"
608 nh6_ll_addr="fe80::${adj}:${rt}"
609 oifname="veth-rt-${rt}-${adj}"
875 # - rt-3 SRv6 End.X behavior adj rt-4 (NEXT-C-SID flavor)
882 # - rt-4 SRv6 End.X behavior adj rt-1 (NEXT-C-SID flavor)
890 # - rt-3 SRv6 End.X behavior adj rt-4 (NEXT-C-SID flavor)
897 # - rt-3 SRv6 End.X behavior adj r
[all...]
/linux/drivers/net/dsa/hirschmann/
H A Dhellcreek_ptp.c137 u64 adj; in hellcreek_ptp_adjfine() local
156 adj = scaled_ppm; in hellcreek_ptp_adjfine()
157 adj <<= 11; in hellcreek_ptp_adjfine()
158 addend = (u32)div_u64(adj, 15625); in hellcreek_ptp_adjfine()
/linux/drivers/net/ethernet/intel/ice/
H A Dice_ptp_hw.c1331 static int ice_ptp_prep_phy_adj_eth56g(struct ice_hw *hw, s32 adj) in ice_ptp_prep_phy_adj_eth56g() argument
1341 cycles = (s64)adj << 32; in ice_ptp_prep_phy_adj_eth56g()
3100 ice_ptp_prep_phy_adj_e82x(struct ice_hw *hw, s32 adj) in ice_ptp_prep_phy_adj_e82x() argument
3109 if (adj > 0) in ice_ptp_prep_phy_adj_e82x()
3110 cycles = (s64)adj << 32; in ice_ptp_prep_phy_adj_e82x()
3112 cycles = -(((s64)-adj) << 32); in ice_ptp_prep_phy_adj_e82x()
3767 u64 cur_freq, clk_incval, tu_per_sec, mult, adj; in ice_phy_calc_pmd_adj_e82x() local
3849 adj = div_u64(tu_per_sec, 125); in ice_phy_calc_pmd_adj_e82x()
3850 adj *= mult; in ice_phy_calc_pmd_adj_e82x()
3851 adj = div_u64(adj, e822_vernier[link_spd].pmd_adj_divisor); in ice_phy_calc_pmd_adj_e82x()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7603/
H A Dmac.c1745 u32 adj; in mt7603_adjust_sensitivity() local
1750 adj = 7 + (dev->sensitivity + 92) / 2; in mt7603_adjust_sensitivity()
1753 agc0 |= adj << 12; in mt7603_adjust_sensitivity()
1754 agc0 |= adj << 16; in mt7603_adjust_sensitivity()
1757 adj = 7 + (dev->sensitivity + 80) / 2; in mt7603_adjust_sensitivity()
1760 agc0 |= adj << 8; in mt7603_adjust_sensitivity()
1761 agc0 |= adj << 12; in mt7603_adjust_sensitivity()
1762 agc0 |= adj << 16; in mt7603_adjust_sensitivity()
1769 adj = 7 + (dev->sensitivity + 80) / 2; in mt7603_adjust_sensitivity()
1772 agc0 |= adj << 4; in mt7603_adjust_sensitivity()
[all …]
/linux/drivers/media/platform/renesas/
H A Drcar_jpu.c892 struct jpu_q_data *src_q_data, *dst_q_data, *orig, adj, *ref; in jpu_streamon() local
900 adj = *src_q_data; in jpu_streamon()
905 adj = *dst_q_data; in jpu_streamon()
911 adj.format.width = ref->format.width; in jpu_streamon()
912 adj.format.height = ref->format.height; in jpu_streamon()
914 __jpu_try_fmt(ctx, NULL, &adj.format, adj_type); in jpu_streamon()
916 if (adj.format.width != orig->format.width || in jpu_streamon()
917 adj.format.height != orig->format.height) { in jpu_streamon()

123