Lines Matching defs:mode
318 unsigned long mode;
324 mode = smc501_readl(sm->regs + SM501_POWER_MODE_CONTROL);
328 mode &= 3; /* get current power mode */
356 switch (mode) {
360 mode = 0;
366 mode = 1;
374 smc501_writel(mode, sm->regs + SM501_POWER_MODE_CONTROL);
377 dev_dbg(sm->dev, "gate %08lx, clock %08lx, mode %08lx\n",
378 gate, clock, mode);
513 unsigned long mode = smc501_readl(sm->regs + SM501_POWER_MODE_CONTROL);
586 mode = smc501_readl(sm->regs + SM501_POWER_MODE_CONTROL);
593 mode &= 3; /* find current mode */
595 switch (mode) {
599 mode = 0;
605 mode = 1;
613 smc501_writel(mode, sm->regs + SM501_POWER_MODE_CONTROL);
621 dev_dbg(sm->dev, "gate %08lx, clock %08lx, mode %08lx\n",
622 gate, clock, mode);
908 "changing mode of gpio, bit %08lx\n", bit);