Home
last modified time | relevance | path

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

/Linux-v5.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.c3331 unsigned pcnt,tcnt; in pvr2_full_eeprom_fetch() local
3367 for (tcnt = 0; tcnt < EEPROM_SIZE; tcnt += pcnt) { in pvr2_full_eeprom_fetch()
3369 if (pcnt + tcnt > EEPROM_SIZE) pcnt = EEPROM_SIZE-tcnt; in pvr2_full_eeprom_fetch()
3370 offs = tcnt + (eepromSize - EEPROM_SIZE); in pvr2_full_eeprom_fetch()
3378 msg[1].buf = eeprom+tcnt; in pvr2_full_eeprom_fetch()
4673 unsigned int tcnt = 0; in print_input_mask() local
4676 ccnt = scnprintf(buf+tcnt, in print_input_mask()
4677 acnt-tcnt, in print_input_mask()
4679 (tcnt ? ", " : ""), in print_input_mask()
4681 tcnt += ccnt; in print_input_mask()
[all …]
Dpvrusb2-v4l2.c1086 int tcnt = 0; in pvr2_v4l2_read() local
1097 tcnt = c2; in pvr2_v4l2_read()
1102 tcnt = -EFAULT; in pvr2_v4l2_read()
1106 tcnt += c2; in pvr2_v4l2_read()
1112 return tcnt; in pvr2_v4l2_read()
/Linux-v5.4/drivers/clocksource/
Dh8300_tpu.c35 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()
Dsamsung_pwm_timer.c137 static void samsung_time_setup(unsigned int channel, unsigned long tcnt) in samsung_time_setup() argument
153 writel_relaxed(tcnt, pwm.base + REG_TCNTB(channel)); in samsung_time_setup()
154 writel_relaxed(tcnt, pwm.base + REG_TCMPB(channel)); in samsung_time_setup()
/Linux-v5.4/drivers/watchdog/
Dmeson_gxbb_wdt.c71 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()
/Linux-v5.4/drivers/infiniband/hw/hfi1/
Diowait.c116 u8 cnt, tcnt; in iowait_priority_update_top() local
120 tcnt = (top->priority << IOWAIT_PRIORITY_STARVE_SHIFT) + in iowait_priority_update_top()
122 if (cnt > tcnt) in iowait_priority_update_top()
/Linux-v5.4/drivers/pwm/
Dpwm-samsung.c308 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()
Dpwm-berlin.c45 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()
/Linux-v5.4/drivers/ntb/test/
Dntb_perf.c196 u8 tcnt; member
1020 static int perf_set_tcnt(struct perf_ctx *perf, u8 tcnt) in perf_set_tcnt() argument
1022 if (tcnt == 0 || tcnt > MAX_THREADS_CNT) in perf_set_tcnt()
1028 perf->tcnt = tcnt; in perf_set_tcnt()
1061 atomic_set(&perf->tsync, perf->tcnt); in perf_submit_test()
1069 if (tidx < perf->tcnt) in perf_submit_test()
1125 perf->tcnt = DEF_THREADS_CNT; in perf_init_threads()
1288 pos = scnprintf(buf, sizeof(buf), "%hhu\n", perf->tcnt); in perf_dbgfs_read_tcnt()
/Linux-v5.4/drivers/rapidio/
Drio.c1601 int tcnt = 0; in rio_lock_device() local
1610 if (wait_ms != 0 && tcnt == wait_ms) { in rio_lock_device()
1618 tcnt++; in rio_lock_device()
/Linux-v5.4/kernel/bpf/
Dsyscall.c1384 u64 tnsecs, tcnt; in bpf_prog_get_stats() local
1390 tcnt = st->cnt; in bpf_prog_get_stats()
1393 cnt += tcnt; in bpf_prog_get_stats()