tms
static int netup_jtag_io(void *device, int tms, int tdi, int read_tdo)
data |= (tms ? 0x00020002 : 0x00020000);
int netup_jtag_io_lpt(void *device, int tms, int tdi, int read_tdo);
int tms;
tms = (altera_jtag_path_map[js->jtag_state] &
alt_jtag_io(tms, TDI_LOW, IGNORE_TDO);
if (tms)
int tms;
tms = (wait_state == RESET) ? TMS_HIGH : TMS_LOW;
alt_jtag_io(tms, TDI_LOW, IGNORE_TDO);
int netup_jtag_io_lpt(void *device, int tms, int tdi, int read_tdo)
data = ((tdi ? 0x40 : 0) | (tms ? 0x02 : 0));
SKY_PINFUNCTION(PINCTRL_PIN(26, "TMS"), tms),
u8 tms[2]; /* Test Mode Status Regs */
struct tms;
asmlinkage long sys_times(struct tms __user *tbuf);
int (*jtag_io) (void *dev, int tms, int tdi, int tdo);
static void do_sys_times(struct tms *tms)
tms->tms_utime = nsec_to_clock_t(tgutime);
tms->tms_stime = nsec_to_clock_t(tgstime);
tms->tms_cutime = nsec_to_clock_t(cutime);
tms->tms_cstime = nsec_to_clock_t(cstime);
SYSCALL_DEFINE1(times, struct tms __user *, tbuf)
struct tms tmp;
if (copy_to_user(tbuf, &tmp, sizeof(struct tms)))
struct tms tms;
do_sys_times(&tms);
tmp.tms_utime = clock_t_to_compat_clock_t(tms.tms_utime);
tmp.tms_stime = clock_t_to_compat_clock_t(tms.tms_stime);
tmp.tms_cutime = clock_t_to_compat_clock_t(tms.tms_cutime);
tmp.tms_cstime = clock_t_to_compat_clock_t(tms.tms_cstime);
struct tms start_time, end_time;
struct tms timebuf;