• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/watchdog/

Lines Matching refs:index

199  * index 	- sub-device index, or -1 for 'all'
202 static void cpwd_toggleintr(struct cpwd *p, int index, int enable)
206 (index == -1) ?
208 (p->devs[index].intr_mask);
221 static void cpwd_resetbrokentimer(struct cpwd *p, int index)
223 cpwd_toggleintr(p, index, WD_INTR_ON);
224 cpwd_writew(WD_BLIMIT, p->devs[index].regs + WD_LIMIT);
260 static void cpwd_pingtimer(struct cpwd *p, int index)
262 if (cpwd_readb(p->devs[index].regs + WD_STATUS) & WD_S_RUNNING)
263 cpwd_readw(p->devs[index].regs + WD_DCNTR);
270 static void cpwd_stoptimer(struct cpwd *p, int index)
272 if (cpwd_readb(p->devs[index].regs + WD_STATUS) & WD_S_RUNNING) {
273 cpwd_toggleintr(p, index, WD_INTR_OFF);
276 p->devs[index].runstatus |= WD_STAT_BSTOP;
289 static void cpwd_starttimer(struct cpwd *p, int index)
292 p->devs[index].runstatus &= ~WD_STAT_BSTOP;
294 p->devs[index].runstatus &= ~WD_STAT_SVCD;
296 cpwd_writew(p->devs[index].timeout, p->devs[index].regs + WD_LIMIT);
297 cpwd_toggleintr(p, index, WD_INTR_ON);
300 static int cpwd_getstatus(struct cpwd *p, int index)
302 unsigned char stat = cpwd_readb(p->devs[index].regs + WD_STATUS);
303 unsigned char intr = cpwd_readb(p->devs[index].regs + PLD_IMASK);
314 if (intr & p->devs[index].intr_mask) {
329 (p->devs[index].runstatus & WD_STAT_BSTOP)) {
330 if (p->devs[index].runstatus & WD_STAT_SVCD) {
344 if (p->devs[index].runstatus & WD_STAT_SVCD)
414 int index = iminor(inode) - WD0_MINOR;
432 cpwd_pingtimer(p, index);
442 cpwd_stoptimer(p, index);
444 cpwd_starttimer(p, index);
452 setopt = cpwd_getstatus(p, index);
458 cpwd_starttimer(p, index);
465 cpwd_stoptimer(p, index);
503 int index = iminor(inode);
506 cpwd_pingtimer(p, index);