Home
last modified time | relevance | path

Searched refs:adj (Results 1 – 25 of 61) 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_SIZE) in gem_ptp_adjfine()
163 incr_spec.sub_ns = adj & ((1 << GEM_SUBNSINCR_SIZE) - 1); in gem_ptp_adjfine()
172 u32 adj, sign = 0; in gem_ptp_adjtime() local
186 adj = (sign << GEM_ADDSUB_OFFSET) | delta; in gem_ptp_adjtime()
[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/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.c48 s64 adj; in ptp_vclock_adjfine() local
50 adj = (s64)scaled_ppm << PTP_VCLOCK_FADJ_SHIFT; in ptp_vclock_adjfine()
51 adj = div_s64(adj, PTP_VCLOCK_FADJ_DENOMINATOR); in ptp_vclock_adjfine()
56 vclock->cc.mult = PTP_VCLOCK_CC_MULT + adj; in ptp_vclock_adjfine()
/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/libxfs/
H A Dxfs_exchmaps.c284 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()
1048 struct xfs_exchmaps_adjacent adj = ADJACENT_INIT; in xfs_exchmaps_estimate() local
1075 error = xfs_exchmaps_find_mappings(xmi, &irec1, &irec2, &adj); in xfs_exchmaps_estimate()
1089 error = xmi_next(req->ip1, bmap_flags, &irec1, &adj.right1); in xfs_exchmaps_estimate()
1093 error = xmi_next(req->ip2, bmap_flags, &irec2, &adj.right2); in xfs_exchmaps_estimate()
1099 &adj.left1, &irec1, &irec2, &adj.right1); in xfs_exchmaps_estimate()
1102 &adj.left2, &irec2, &irec1, &adj.right2); in xfs_exchmaps_estimate()
[all …]
H A Dxfs_refcount.c1154 enum xfs_refc_adjust_op adj) in xfs_refcount_adjust_extents() argument
1189 tmp.rc_refcount = 1 + adj; in xfs_refcount_adjust_extents()
1251 ext.rc_refcount += adj; in xfs_refcount_adjust_extents()
1296 enum xfs_refc_adjust_op adj) in xfs_refcount_adjust() argument
1302 if (adj == XFS_REFCOUNT_ADJUST_INCREASE) in xfs_refcount_adjust()
1328 agbno, aglen, adj, &shape_changed); in xfs_refcount_adjust()
1337 error = xfs_refcount_adjust_extents(cur, agbno, aglen, adj); in xfs_refcount_adjust()
1803 enum xfs_refc_adjust_op adj) in xfs_refcount_adjust_cow_extents() argument
1833 switch (adj) { in xfs_refcount_adjust_cow_extents()
1907 enum xfs_refc_adjust_op adj) in xfs_refcount_adjust_cow() argument
[all …]
/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; in xrep_cow_mark_missing_staging_rmap() local
213 adj = xc->irec_startbno - rec_bno; in xrep_cow_mark_missing_staging_rmap()
214 rec_len -= adj; in xrep_cow_mark_missing_staging_rmap()
215 rec_bno += adj; in xrep_cow_mark_missing_staging_rmap()
[all …]
/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.c483 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/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/tools/testing/selftests/net/
H A Dsrv6_end_x_next_csid_l3vpn_test.sh602 local adj="$2"
605 net_prefix="$(get_network_prefix "${rt}" "${adj}")"
613 encap seg6local action End.X nh6 "${net_prefix}::${adj}" \
621 local adj="$2"
625 nh6_ll_addr="fe80::${adj}:${rt}"
626 oifname="veth-rt-${rt}-${adj}"
/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/tools/testing/selftests/ptp/
H A Dphc.sh120 out=$(LC_ALL=C phc_ctl $DEV set 0 adj 10 get 2>&1)
/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