Lines Matching full:reg_base
130 ptp_clock_hi = readq(ptp->reg_base + PTP_CLOCK_HI); in ptp_reset_thresh()
134 writeq(500000000, ptp->reg_base + PTP_PPS_THRESH_HI); in ptp_reset_thresh()
159 sec = readq(ptp->reg_base + PTP_CLOCK_SEC) & 0xFFFFFFFFUL; in read_ptp_tstmp_sec_nsec()
160 nsec = readq(ptp->reg_base + PTP_CLOCK_HI); in read_ptp_tstmp_sec_nsec()
161 sec1 = readq(ptp->reg_base + PTP_CLOCK_SEC) & 0xFFFFFFFFUL; in read_ptp_tstmp_sec_nsec()
164 nsec = readq(ptp->reg_base + PTP_CLOCK_HI); in read_ptp_tstmp_sec_nsec()
174 return readq(ptp->reg_base + PTP_CLOCK_HI); in read_ptp_tstmp_nsec()
258 writeq(timestamp, ptp->reg_base + PTP_NANO_TIMESTAMP); in ptp_atomic_update()
259 writeq(0, ptp->reg_base + PTP_FRNS_TIMESTAMP); in ptp_atomic_update()
261 ptp->reg_base + PTP_SEC_TIMESTAMP); in ptp_atomic_update()
265 writeq(nxt_rollover_set, ptp->reg_base + PTP_NXT_ROLLOVER_SET); in ptp_atomic_update()
266 writeq(curr_rollover_set, ptp->reg_base + PTP_CURR_ROLLOVER_SET); in ptp_atomic_update()
269 regval = readq(ptp->reg_base + PTP_CLOCK_CFG); in ptp_atomic_update()
272 writeq(regval, ptp->reg_base + PTP_CLOCK_CFG); in ptp_atomic_update()
290 ptp_clock_hi = readq(ptp->reg_base + PTP_CLOCK_HI); in ptp_atomic_adjtime()
301 writeq(delta, ptp->reg_base + PTP_NANO_TIMESTAMP); in ptp_atomic_adjtime()
302 writeq(0, ptp->reg_base + PTP_FRNS_TIMESTAMP); in ptp_atomic_adjtime()
305 regval = readq(ptp->reg_base + PTP_CLOCK_CFG); in ptp_atomic_adjtime()
308 writeq(regval, ptp->reg_base + PTP_CLOCK_CFG); in ptp_atomic_adjtime()
354 writeq(comp, ptp->reg_base + PTP_CLOCK_COMP); in ptp_adjfine()
389 writeq(0, ptp->reg_base + PTP_NANO_TIMESTAMP); in ptp_start()
390 writeq(0, ptp->reg_base + PTP_FRNS_TIMESTAMP); in ptp_start()
391 writeq(0, ptp->reg_base + PTP_SEC_TIMESTAMP); in ptp_start()
392 writeq(0, ptp->reg_base + PTP_CURR_ROLLOVER_SET); in ptp_start()
393 writeq(0x3b9aca00, ptp->reg_base + PTP_NXT_ROLLOVER_SET); in ptp_start()
394 writeq(0x3b9aca00, ptp->reg_base + PTP_SEC_ROLLOVER); in ptp_start()
398 clock_cfg = readq(ptp->reg_base + PTP_CLOCK_CFG); in ptp_start()
415 writeq(clock_cfg, ptp->reg_base + PTP_CLOCK_CFG); in ptp_start()
416 clock_cfg = readq(ptp->reg_base + PTP_CLOCK_CFG); in ptp_start()
419 writeq(clock_cfg, ptp->reg_base + PTP_CLOCK_CFG); in ptp_start()
427 writeq(clock_comp, ptp->reg_base + PTP_CLOCK_COMP); in ptp_start()
435 timestamp = readq(ptp->reg_base + PTP_TIMESTAMP); in ptp_get_tstmp()
438 *clk = readq(ptp->reg_base + PTP_TIMESTAMP); in ptp_get_tstmp()
447 writeq(thresh, ptp->reg_base + PTP_PPS_THRESH_HI); in ptp_set_thresh()
457 ptp_clock_hi = readq(ptp->reg_base + PTP_CLOCK_HI); in ptp_config_hrtimer()
471 clock_cfg = readq(ptp->reg_base + PTP_CLOCK_CFG); in ptp_pps_on()
484 writeq(clock_cfg, ptp->reg_base + PTP_CLOCK_CFG); in ptp_pps_on()
486 writeq(0, ptp->reg_base + PTP_PPS_THRESH_HI); in ptp_pps_on()
487 writeq(0, ptp->reg_base + PTP_PPS_THRESH_LO); in ptp_pps_on()
491 writeq(((u64)period << 32), ptp->reg_base + PTP_PPS_HI_INCR); in ptp_pps_on()
492 writeq(((u64)period << 32), ptp->reg_base + PTP_PPS_LO_INCR); in ptp_pps_on()
495 writeq(clock_cfg, ptp->reg_base + PTP_CLOCK_CFG); in ptp_pps_on()
508 ptp->reg_base + PTP_PPS_LO_INCR); in ptp_pps_on()
539 ptp->reg_base = pcim_iomap_table(pdev)[PCI_PTP_BAR_NO]; in ptp_probe()
584 clock_cfg = readq(ptp->reg_base + PTP_CLOCK_CFG); in ptp_remove()
586 writeq(clock_cfg, ptp->reg_base + PTP_CLOCK_CFG); in ptp_remove()