Home
last modified time | relevance | path

Searched full:tcnt (Results 1 – 25 of 27) sorted by relevance

12

/linux-6.14.4/drivers/media/usb/pvrusb2/
Dpvrusb2-eeprom.c41 unsigned pcnt,tcnt; in pvr2_eeprom_fetch() local
77 for (tcnt = 0; tcnt < EEPROM_SIZE; tcnt += pcnt) { in pvr2_eeprom_fetch()
79 if (pcnt + tcnt > EEPROM_SIZE) pcnt = EEPROM_SIZE-tcnt; in pvr2_eeprom_fetch()
80 offs = tcnt + (eepromSize - EEPROM_SIZE); in pvr2_eeprom_fetch()
88 msg[1].buf = eeprom+tcnt; in pvr2_eeprom_fetch()
Dpvrusb2-i2c-core.c385 u16 tcnt,bcnt,offs; in pvr2_i2c_xfer() local
398 tcnt = msgs[0].len; in pvr2_i2c_xfer()
400 while (tcnt) { in pvr2_i2c_xfer()
401 bcnt = tcnt; in pvr2_i2c_xfer()
411 tcnt -= bcnt; in pvr2_i2c_xfer()
432 u16 tcnt,bcnt,wcnt,offs; in pvr2_i2c_xfer() local
437 tcnt = msgs[1].len; in pvr2_i2c_xfer()
440 while (tcnt || wcnt) { in pvr2_i2c_xfer()
441 bcnt = tcnt; in pvr2_i2c_xfer()
452 tcnt -= bcnt; in pvr2_i2c_xfer()
Dpvrusb2-hdw.c3336 unsigned pcnt,tcnt; in pvr2_full_eeprom_fetch() local
3372 for (tcnt = 0; tcnt < EEPROM_SIZE; tcnt += pcnt) { in pvr2_full_eeprom_fetch()
3374 if (pcnt + tcnt > EEPROM_SIZE) pcnt = EEPROM_SIZE-tcnt; in pvr2_full_eeprom_fetch()
3375 offs = tcnt + (eepromSize - EEPROM_SIZE); in pvr2_full_eeprom_fetch()
3383 msg[1].buf = eeprom+tcnt; in pvr2_full_eeprom_fetch()
4681 unsigned int tcnt = 0; in print_input_mask() local
4684 ccnt = scnprintf(buf+tcnt, in print_input_mask()
4685 acnt-tcnt, in print_input_mask()
4687 (tcnt ? ", " : ""), in print_input_mask()
4689 tcnt += ccnt; in print_input_mask()
[all …]
Dpvrusb2-v4l2.c1089 int tcnt = 0; in pvr2_v4l2_read() local
1100 tcnt = c2; in pvr2_v4l2_read()
1105 tcnt = -EFAULT; in pvr2_v4l2_read()
1109 tcnt += c2; in pvr2_v4l2_read()
1115 return tcnt; in pvr2_v4l2_read()
/linux-6.14.4/Documentation/devicetree/bindings/timer/
Drenesas,rz-mtu3.yaml25 - Simultaneous writing to multiple timer counters (TCNT)
80 clocks is detected and the corresponding TCNT is incremented or
126 - description: MTU0.TCNT overflow
131 - description: MTU1.TCNT overflow
132 - description: MTU1.TCNT underflow
135 - description: MTU2.TCNT overflow
136 - description: MTU2.TCNT underflow
141 - description: MTU3.TCNT overflow
146 - description: MTU4.TCNT overflow/underflow
154 - description: MTU6.TCNT overflow
[all …]
/linux-6.14.4/drivers/phy/microchip/
Dsparx5_serdes.h85 int id, int tinst, int tcnt, in sdx5_addr() argument
91 WARN_ON((tinst) >= tcnt); in sdx5_addr()
113 int id, int tinst, int tcnt, in sdx5_rmw() argument
119 sdx5_addr(priv->regs, id, tinst, tcnt, in sdx5_rmw()
128 int id, int tinst, int tcnt, in sdx5_inst_rmw() argument
158 int id, int tinst, int tcnt, in sdx5_inst_addr() argument
Dlan966x_serdes.c20 #define lan_offset_(id, tinst, tcnt, \ argument
/linux-6.14.4/drivers/net/ethernet/microchip/sparx5/
Dsparx5_main.h744 static inline __pure int spx5_offset(int id, int tinst, int tcnt, in spx5_offset() argument
750 WARN_ON((tinst) >= tcnt); in spx5_offset()
761 int id, int tinst, int tcnt, in spx5_addr() argument
767 WARN_ON((tinst) >= tcnt); in spx5_addr()
788 static inline u32 spx5_rd(struct sparx5 *sparx5, int id, int tinst, int tcnt, in spx5_rd() argument
792 return readl(spx5_addr(sparx5->regs, id, tinst, tcnt, gbase, ginst, in spx5_rd()
796 static inline u32 spx5_inst_rd(void __iomem *iomem, int id, int tinst, int tcnt, in spx5_inst_rd() argument
805 int id, int tinst, int tcnt, in spx5_wr() argument
809 writel(val, spx5_addr(sparx5->regs, id, tinst, tcnt, in spx5_wr()
815 int id, int tinst, int tcnt, in spx5_inst_wr() argument
[all …]
/linux-6.14.4/drivers/pwm/
Dpwm-berlin.c29 * implemented by internally shifting TCNT left without adding additional
30 * bits. So, the max TCNT that actually works for a modulus of 4 is 0x3fff;
48 u32 tcnt; member
240 channel->tcnt = berlin_pwm_readl(bpc, i, BERLIN_PWM_TCNT); in berlin_pwm_suspend()
264 berlin_pwm_writel(bpc, i, channel->tcnt, BERLIN_PWM_TCNT); in berlin_pwm_resume()
Dpwm-samsung.c313 u32 tin_ns = chan->tin_ns, tcnt, tcmp, oldtcmp; in __pwm_samsung_config() local
315 tcnt = readl(our_chip->base + REG_TCNTB(pwm->hwpwm)); in __pwm_samsung_config()
319 ++tcnt; in __pwm_samsung_config()
336 tcnt = period_ns / tin_ns; in __pwm_samsung_config()
340 if (tcnt <= 1) in __pwm_samsung_config()
350 tcmp = tcnt - tcmp; in __pwm_samsung_config()
353 --tcnt; in __pwm_samsung_config()
357 dev_dbg(pwmchip_parent(chip), "tin_ns=%u, tcmp=%u/%u\n", tin_ns, tcmp, tcnt); in __pwm_samsung_config()
360 writel(tcnt, our_chip->base + REG_TCNTB(pwm->hwpwm)); in __pwm_samsung_config()
Dpwm-renesas-tpu.c170 * - Clear TCNT on TGRB match in tpu_pwm_timer_start()
/linux-6.14.4/drivers/watchdog/
Dmeson_gxbb_wdt.c84 unsigned long tcnt = timeout * 1000; in meson_gxbb_wdt_set_timeout() local
86 if (tcnt > GXBB_WDT_TCNT_SETUP_MASK) in meson_gxbb_wdt_set_timeout()
87 tcnt = GXBB_WDT_TCNT_SETUP_MASK; in meson_gxbb_wdt_set_timeout()
93 writel(tcnt, data->reg_base + GXBB_WDT_TCNT_REG); in meson_gxbb_wdt_set_timeout()
/linux-6.14.4/drivers/net/ethernet/microchip/lan966x/
Dlan966x_main.h694 int id, int tinst, int tcnt, in lan_addr() argument
700 WARN_ON((tinst) >= tcnt); in lan_addr()
708 static inline u32 lan_rd(struct lan966x *lan966x, int id, int tinst, int tcnt, in lan_rd() argument
712 return readl(lan_addr(lan966x->regs, id, tinst, tcnt, gbase, ginst, in lan_rd()
717 int id, int tinst, int tcnt, in lan_wr() argument
721 writel(val, lan_addr(lan966x->regs, id, tinst, tcnt, in lan_wr()
727 int id, int tinst, int tcnt, in lan_rmw() argument
733 nval = readl(lan_addr(lan966x->regs, id, tinst, tcnt, gbase, ginst, in lan_rmw()
736 writel(nval, lan_addr(lan966x->regs, id, tinst, tcnt, gbase, ginst, in lan_rmw()
/linux-6.14.4/drivers/infiniband/hw/hfi1/
Diowait.c118 u8 cnt, tcnt; in iowait_priority_update_top() local
122 tcnt = (top->priority << IOWAIT_PRIORITY_STARVE_SHIFT) + in iowait_priority_update_top()
124 if (cnt > tcnt) in iowait_priority_update_top()
/linux-6.14.4/drivers/clocksource/
Dsh_mtu2.c61 #define TCNT 5 /* channel register */ macro
152 [TCNT] = 6,
165 if ((reg_nr == TCNT) || (reg_nr == TGR)) in sh_mtu2_read()
181 if ((reg_nr == TCNT) || (reg_nr == TGR)) in sh_mtu2_write()
235 sh_mtu2_write(ch, TCNT, 0); in sh_mtu2_enable()
Dsh_tmu.c72 #define TCNT 1 /* channel register */ macro
161 sh_tmu_write(ch, TCNT, 0xffffffff); in __sh_tmu_enable()
227 sh_tmu_write(ch, TCNT, delta); in sh_tmu_set_next()
257 return sh_tmu_read(ch, TCNT) ^ 0xffffffff; in sh_tmu_clocksource_read()
Dsamsung_pwm_timer.c136 static void samsung_time_setup(unsigned int channel, unsigned long tcnt) in samsung_time_setup() argument
152 writel_relaxed(tcnt, pwm.base + REG_TCNTB(channel)); in samsung_time_setup()
153 writel_relaxed(tcnt, pwm.base + REG_TCMPB(channel)); in samsung_time_setup()
/linux-6.14.4/drivers/ntb/test/
Dntb_perf.c199 u8 tcnt; member
1049 static int perf_set_tcnt(struct perf_ctx *perf, u8 tcnt) in perf_set_tcnt() argument
1051 if (tcnt == 0 || tcnt > MAX_THREADS_CNT) in perf_set_tcnt()
1057 perf->tcnt = tcnt; in perf_set_tcnt()
1091 atomic_set(&perf->tsync, perf->tcnt); in perf_submit_test()
1099 if (tidx < perf->tcnt) in perf_submit_test()
1155 perf->tcnt = DEF_THREADS_CNT; in perf_init_threads()
1321 pos = scnprintf(buf, sizeof(buf), "%hhu\n", perf->tcnt); in perf_dbgfs_read_tcnt()
/linux-6.14.4/tools/perf/tests/shell/lib/
Dperf_metric_validation.py174 tcnt = 0
185 tcnt += 1
/linux-6.14.4/drivers/rapidio/
Drio.c1536 int tcnt = 0; in rio_lock_device() local
1545 if (wait_ms != 0 && tcnt == wait_ms) { in rio_lock_device()
1553 tcnt++; in rio_lock_device()
/linux-6.14.4/drivers/net/wireless/intel/iwlegacy/
Ddebug.c229 scnprintf(buf + pos, bufsz - pos, "\tcnt: %u\n", in il_dbgfs_tx_stats_read()
290 scnprintf(buf + pos, bufsz - pos, "\tcnt: %u\n", in il_dbgfs_rx_stats_read()
/linux-6.14.4/drivers/counter/
Drz-mtu3-cnt.c23 * TCNT: Timer Counter
/linux-6.14.4/drivers/dma/lgm/
Dlgm-dma.c421 static void ldma_dev_df_tout_cfg(struct ldma_dev *d, bool enable, int tcnt) in ldma_dev_df_tout_cfg() argument
428 val = DMA_CTRL_DESC_TMOUT_EN_V31 | FIELD_PREP(DMA_CTRL_DESC_TMOUT_CNT_V31, tcnt); in ldma_dev_df_tout_cfg()
/linux-6.14.4/drivers/hwmon/
Dnpcm750-pwm-fan.c342 /* clear the flag and reset the counter (TCNT) */ in npcm7xx_fan_polling()
/linux-6.14.4/kernel/bpf/
Dsyscall.c2397 u64 tnsecs, tcnt, tmisses; in bpf_prog_get_stats() local
2403 tcnt = u64_stats_read(&st->cnt); in bpf_prog_get_stats()
2407 cnt += tcnt; in bpf_prog_get_stats()

12