| /kernel/linux/linux-5.10/drivers/clocksource/ |
| D | h8300_tpu.c | 21 #define TCNT 0x6 macro 35 unsigned long tcnt; in read_tcnt32() local 37 tcnt = ioread16be(p->mapbase1 + TCNT) << 16; in read_tcnt32() 38 tcnt |= ioread16be(p->mapbase2 + TCNT); in read_tcnt32() 39 return tcnt; in read_tcnt32() 88 iowrite16be(0, p->mapbase1 + TCNT); in tpu_clocksource_enable() 89 iowrite16be(0, p->mapbase2 + TCNT); in tpu_clocksource_enable()
|
| D | h8300_timer16.c | 21 #define TCNT 2 macro 47 v1 = ioread16be(p->mapbase + TCNT); in timer16_get_counter() 48 v2 = ioread16be(p->mapbase + TCNT); in timer16_get_counter() 49 v3 = ioread16be(p->mapbase + TCNT); in timer16_get_counter() 94 iowrite16be(0x0000, p->mapbase + TCNT); in timer16_enable()
|
| D | sh_mtu2.c | 61 #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()
|
| /kernel/linux/linux-6.6/drivers/media/usb/pvrusb2/ |
| D | pvrusb2-eeprom.c | 41 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()
|
| D | pvrusb2-i2c-core.c | 385 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()
|
| D | pvrusb2-hdw.c | 3336 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 …]
|
| /kernel/linux/linux-5.10/drivers/media/usb/pvrusb2/ |
| D | pvrusb2-eeprom.c | 41 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()
|
| D | pvrusb2-i2c-core.c | 385 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()
|
| D | pvrusb2-hdw.c | 3334 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() 4676 unsigned int tcnt = 0; in print_input_mask() local 4679 ccnt = scnprintf(buf+tcnt, in print_input_mask() 4680 acnt-tcnt, in print_input_mask() 4682 (tcnt ? ", " : ""), in print_input_mask() 4684 tcnt += ccnt; in print_input_mask() [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/timer/ |
| D | renesas,rz-mtu3.yaml | 25 - Simultaneous writing to multiple timer counters (TCNT) 80 clocks is detected and the corresponding TCNT is incremented or 125 - description: MTU0.TCNT overflow 130 - description: MTU1.TCNT overflow 131 - description: MTU1.TCNT underflow 134 - description: MTU2.TCNT overflow 135 - description: MTU2.TCNT underflow 140 - description: MTU3.TCNT overflow 145 - description: MTU4.TCNT overflow/underflow 153 - description: MTU6.TCNT overflow [all …]
|
| /kernel/linux/linux-6.6/drivers/phy/microchip/ |
| D | sparx5_serdes.h | 51 int id, int tinst, int tcnt, in sdx5_addr() argument 57 WARN_ON((tinst) >= tcnt); in sdx5_addr() 79 int id, int tinst, int tcnt, in sdx5_rmw() argument 85 sdx5_addr(priv->regs, id, tinst, tcnt, in sdx5_rmw() 94 int id, int tinst, int tcnt, in sdx5_inst_rmw() argument 124 int id, int tinst, int tcnt, in sdx5_inst_addr() argument
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/microchip/sparx5/ |
| D | sparx5_main.h | 571 static inline __pure int spx5_offset(int id, int tinst, int tcnt, in spx5_offset() argument 577 WARN_ON((tinst) >= tcnt); in spx5_offset() 588 int id, int tinst, int tcnt, in spx5_addr() argument 594 WARN_ON((tinst) >= tcnt); in spx5_addr() 615 static inline u32 spx5_rd(struct sparx5 *sparx5, int id, int tinst, int tcnt, in spx5_rd() argument 619 return readl(spx5_addr(sparx5->regs, id, tinst, tcnt, gbase, ginst, in spx5_rd() 623 static inline u32 spx5_inst_rd(void __iomem *iomem, int id, int tinst, int tcnt, in spx5_inst_rd() argument 632 int id, int tinst, int tcnt, in spx5_wr() argument 636 writel(val, spx5_addr(sparx5->regs, id, tinst, tcnt, in spx5_wr() 642 int id, int tinst, int tcnt, in spx5_inst_wr() argument [all …]
|
| /kernel/linux/linux-5.10/drivers/watchdog/ |
| D | meson_gxbb_wdt.c | 71 unsigned long tcnt = timeout * 1000; in meson_gxbb_wdt_set_timeout() local 73 if (tcnt > GXBB_WDT_TCNT_SETUP_MASK) in meson_gxbb_wdt_set_timeout() 74 tcnt = GXBB_WDT_TCNT_SETUP_MASK; in meson_gxbb_wdt_set_timeout() 80 writel(tcnt, data->reg_base + GXBB_WDT_TCNT_REG); in meson_gxbb_wdt_set_timeout()
|
| /kernel/linux/linux-5.10/drivers/pwm/ |
| D | pwm-berlin.c | 28 * implemented by internally shifting TCNT left without adding additional 29 * bits. So, the max TCNT that actually works for a modulus of 4 is 0x3fff; 45 u32 tcnt; member 255 channel->tcnt = berlin_pwm_readl(pwm, i, BERLIN_PWM_TCNT); in berlin_pwm_suspend() 282 berlin_pwm_writel(pwm, i, channel->tcnt, BERLIN_PWM_TCNT); in berlin_pwm_resume()
|
| D | pwm-samsung.c | 308 u32 tin_ns = chan->tin_ns, tcnt, tcmp, oldtcmp; in __pwm_samsung_config() local 318 tcnt = readl(our_chip->base + REG_TCNTB(pwm->hwpwm)); in __pwm_samsung_config() 322 ++tcnt; in __pwm_samsung_config() 339 tcnt = period_ns / tin_ns; in __pwm_samsung_config() 343 if (tcnt <= 1) in __pwm_samsung_config() 353 tcmp = tcnt - tcmp; in __pwm_samsung_config() 356 --tcnt; in __pwm_samsung_config() 361 "tin_ns=%u, tcmp=%u/%u\n", tin_ns, tcmp, tcnt); in __pwm_samsung_config() 364 writel(tcnt, our_chip->base + REG_TCNTB(pwm->hwpwm)); in __pwm_samsung_config()
|
| /kernel/linux/linux-6.6/drivers/watchdog/ |
| D | meson_gxbb_wdt.c | 84 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()
|
| /kernel/linux/linux-6.6/drivers/pwm/ |
| D | pwm-berlin.c | 29 * 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; 46 u32 tcnt; member 279 channel->tcnt = berlin_pwm_readl(bpc, i, BERLIN_PWM_TCNT); in berlin_pwm_suspend() 306 berlin_pwm_writel(bpc, i, channel->tcnt, BERLIN_PWM_TCNT); in berlin_pwm_resume()
|
| D | pwm-samsung.c | 322 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()
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/microchip/lan966x/ |
| D | lan966x_main.h | 752 int id, int tinst, int tcnt, in lan_addr() argument 758 WARN_ON((tinst) >= tcnt); in lan_addr() 766 static inline u32 lan_rd(struct lan966x *lan966x, int id, int tinst, int tcnt, in lan_rd() argument 770 return readl(lan_addr(lan966x->regs, id, tinst, tcnt, gbase, ginst, in lan_rd() 775 int id, int tinst, int tcnt, in lan_wr() argument 779 writel(val, lan_addr(lan966x->regs, id, tinst, tcnt, in lan_wr() 785 int id, int tinst, int tcnt, in lan_rmw() argument 791 nval = readl(lan_addr(lan966x->regs, id, tinst, tcnt, gbase, ginst, in lan_rmw() 794 writel(nval, lan_addr(lan966x->regs, id, tinst, tcnt, gbase, ginst, in lan_rmw()
|
| /kernel/linux/linux-6.6/drivers/infiniband/hw/hfi1/ |
| D | iowait.c | 118 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()
|
| /kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/ |
| D | iowait.c | 118 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()
|
| /kernel/linux/linux-6.6/drivers/clocksource/ |
| D | sh_mtu2.c | 61 #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()
|
| D | sh_tmu.c | 72 #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()
|
| /kernel/linux/linux-6.6/drivers/ntb/test/ |
| D | ntb_perf.c | 199 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()
|
| /kernel/linux/linux-5.10/drivers/ntb/test/ |
| D | ntb_perf.c | 199 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()
|