Home
last modified time | relevance | path

Searched refs:tcnt (Results 1 – 17 of 17) sorted by relevance

/linux-5.19.10/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.c3334 unsigned pcnt,tcnt; in pvr2_full_eeprom_fetch() local
3370 for (tcnt = 0; tcnt < EEPROM_SIZE; tcnt += pcnt) { in pvr2_full_eeprom_fetch()
3372 if (pcnt + tcnt > EEPROM_SIZE) pcnt = EEPROM_SIZE-tcnt; in pvr2_full_eeprom_fetch()
3373 offs = tcnt + (eepromSize - EEPROM_SIZE); in pvr2_full_eeprom_fetch()
3381 msg[1].buf = eeprom+tcnt; in pvr2_full_eeprom_fetch()
4679 unsigned int tcnt = 0; in print_input_mask() local
4682 ccnt = scnprintf(buf+tcnt, in print_input_mask()
4683 acnt-tcnt, in print_input_mask()
4685 (tcnt ? ", " : ""), in print_input_mask()
4687 tcnt += ccnt; in print_input_mask()
[all …]
Dpvrusb2-v4l2.c1087 int tcnt = 0; in pvr2_v4l2_read() local
1098 tcnt = c2; in pvr2_v4l2_read()
1103 tcnt = -EFAULT; in pvr2_v4l2_read()
1107 tcnt += c2; in pvr2_v4l2_read()
1113 return tcnt; in pvr2_v4l2_read()
/linux-5.19.10/drivers/net/ethernet/microchip/sparx5/
Dsparx5_main.h408 static inline __pure int spx5_offset(int id, int tinst, int tcnt, in spx5_offset() argument
414 WARN_ON((tinst) >= tcnt); in spx5_offset()
425 int id, int tinst, int tcnt, in spx5_addr() argument
431 WARN_ON((tinst) >= tcnt); in spx5_addr()
452 static inline u32 spx5_rd(struct sparx5 *sparx5, int id, int tinst, int tcnt, in spx5_rd() argument
456 return readl(spx5_addr(sparx5->regs, id, tinst, tcnt, gbase, ginst, in spx5_rd()
460 static inline u32 spx5_inst_rd(void __iomem *iomem, int id, int tinst, int tcnt, in spx5_inst_rd() argument
469 int id, int tinst, int tcnt, in spx5_wr() argument
473 writel(val, spx5_addr(sparx5->regs, id, tinst, tcnt, in spx5_wr()
479 int id, int tinst, int tcnt, in spx5_inst_wr() argument
[all …]
/linux-5.19.10/drivers/phy/microchip/
Dsparx5_serdes.h52 int id, int tinst, int tcnt, in sdx5_addr() argument
58 WARN_ON((tinst) >= tcnt); in sdx5_addr()
80 int id, int tinst, int tcnt, in sdx5_rmw() argument
86 sdx5_addr(priv->regs, id, tinst, tcnt, in sdx5_rmw()
95 int id, int tinst, int tcnt, in sdx5_inst_rmw() argument
125 int id, int tinst, int tcnt, in sdx5_inst_addr() argument
Dlan966x_serdes.c20 #define lan_offset_(id, tinst, tcnt, \ argument
/linux-5.19.10/drivers/net/ethernet/microchip/lan966x/
Dlan966x_main.h410 int id, int tinst, int tcnt, in lan_addr() argument
416 WARN_ON((tinst) >= tcnt); in lan_addr()
424 static inline u32 lan_rd(struct lan966x *lan966x, int id, int tinst, int tcnt, in lan_rd() argument
428 return readl(lan_addr(lan966x->regs, id, tinst, tcnt, gbase, ginst, in lan_rd()
433 int id, int tinst, int tcnt, in lan_wr() argument
437 writel(val, lan_addr(lan966x->regs, id, tinst, tcnt, in lan_wr()
443 int id, int tinst, int tcnt, in lan_rmw() argument
449 nval = readl(lan_addr(lan966x->regs, id, tinst, tcnt, gbase, ginst, in lan_rmw()
452 writel(nval, lan_addr(lan966x->regs, id, tinst, tcnt, gbase, ginst, in lan_rmw()
/linux-5.19.10/drivers/watchdog/
Dmeson_gxbb_wdt.c81 unsigned long tcnt = timeout * 1000; in meson_gxbb_wdt_set_timeout() local
83 if (tcnt > GXBB_WDT_TCNT_SETUP_MASK) in meson_gxbb_wdt_set_timeout()
84 tcnt = GXBB_WDT_TCNT_SETUP_MASK; in meson_gxbb_wdt_set_timeout()
90 writel(tcnt, data->reg_base + GXBB_WDT_TCNT_REG); in meson_gxbb_wdt_set_timeout()
/linux-5.19.10/drivers/pwm/
Dpwm-samsung.c322 u32 tin_ns = chan->tin_ns, tcnt, tcmp, oldtcmp; in __pwm_samsung_config() local
324 tcnt = readl(our_chip->base + REG_TCNTB(pwm->hwpwm)); in __pwm_samsung_config()
328 ++tcnt; in __pwm_samsung_config()
345 tcnt = period_ns / tin_ns; in __pwm_samsung_config()
349 if (tcnt <= 1) in __pwm_samsung_config()
359 tcmp = tcnt - tcmp; in __pwm_samsung_config()
362 --tcnt; in __pwm_samsung_config()
367 "tin_ns=%u, tcmp=%u/%u\n", tin_ns, tcmp, tcnt); in __pwm_samsung_config()
370 writel(tcnt, our_chip->base + REG_TCNTB(pwm->hwpwm)); in __pwm_samsung_config()
Dpwm-berlin.c45 u32 tcnt; member
280 channel->tcnt = berlin_pwm_readl(bpc, i, BERLIN_PWM_TCNT); in berlin_pwm_suspend()
307 berlin_pwm_writel(bpc, i, channel->tcnt, BERLIN_PWM_TCNT); in berlin_pwm_resume()
/linux-5.19.10/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-5.19.10/drivers/ntb/test/
Dntb_perf.c199 u8 tcnt; member
1051 static int perf_set_tcnt(struct perf_ctx *perf, u8 tcnt) in perf_set_tcnt() argument
1053 if (tcnt == 0 || tcnt > MAX_THREADS_CNT) in perf_set_tcnt()
1059 perf->tcnt = tcnt; in perf_set_tcnt()
1093 atomic_set(&perf->tsync, perf->tcnt); in perf_submit_test()
1101 if (tidx < perf->tcnt) in perf_submit_test()
1157 perf->tcnt = DEF_THREADS_CNT; in perf_init_threads()
1323 pos = scnprintf(buf, sizeof(buf), "%hhu\n", perf->tcnt); in perf_dbgfs_read_tcnt()
/linux-5.19.10/drivers/clocksource/
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-5.19.10/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-5.19.10/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-5.19.10/kernel/bpf/
Dsyscall.c2086 u64 tnsecs, tcnt, tmisses; in bpf_prog_get_stats() local
2092 tcnt = u64_stats_read(&st->cnt); in bpf_prog_get_stats()
2096 cnt += tcnt; in bpf_prog_get_stats()