• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/mfd/

Lines Matching defs:to

224 	/* during suspend/resume, we are currently not allowed to sleep,
225 * so change to using mdelay() instead of msleep() if we
245 unsigned long to;
250 to = (misc & ~clear) | set;
252 if (to != misc) {
253 writel(to, sm->regs + SM501_MISC_CONTROL);
260 return to;
314 unsigned int to,
330 if (to)
350 * alters the power active gate to set specific units on or off
353 int sm501_unit_power(struct device *dev, unsigned int unit, unsigned int to)
373 dev_dbg(sm->dev, "%s: unit %d, cur %d, to %d\n", __FUNCTION__, unit,
374 sm->unit_power[unit], to);
376 if (to == 0 && sm->unit_power[unit] == 0) {
381 sm->unit_power[unit] += to ? 1 : -1;
382 to = sm->unit_power[unit] ? 1 : 0;
384 if (to) {
464 /* Calculate difference to requested clock */
487 * set one of the four clock sources to the closest available frequency to
502 struct sm501_clock to;
510 /* This clock is divided in half so to achive the
514 sm501_freq = (sm501_select_clock(2 * req_freq, &to, 5) / 2);
515 reg=to.shift & 0x07;/* bottom 3 bits are shift */
516 if (to.divider == 3)
518 else if (to.divider == 5)
520 if (to.mclk != 288000000)
525 /* This clock is divided in half so to achive the
528 sm501_freq = (sm501_select_clock(2 * req_freq, &to, 3) / 2);
529 reg=to.shift & 0x07; /* bottom 3 bits are shift */
530 if (to.divider == 3)
532 if (to.mclk != 288000000)
540 sm501_freq = sm501_select_clock( req_freq, &to, 3);
541 reg=to.shift & 0x07; /* bottom 3 bits are shift */
542 if (to.divider == 3)
544 if (to.mclk != 288000000)
606 struct sm501_clock to;
610 sm501_freq = (sm501_select_clock(2 * req_freq, &to, 5) / 2);
614 sm501_freq = (sm501_select_clock(2 * req_freq, &to, 3) / 2);
619 sm501_freq = sm501_select_clock(req_freq, &to, 3);
638 * A release function for the platform devices we create to allow us to
649 * Create a skeleton platform device with resources for passing to a
790 * Debug attribute to attach to parent device to show core registers
815 * Helper function for the init code to setup a register
850 dev_info(sm->dev, "setting M1XCLK to %ld\n", init->m1xclk);
855 dev_info(sm->dev, "setting MCLK to %ld\n", init->mclk);
921 dev_err(sm->dev, "failed to create debug regs file\n");
925 /* check to see if we have some device initialisation */
971 dev_err(&dev->dev, "failed to get irq resource\n");
977 dev_err(&dev->dev, "failed to get IO resource\n");
1036 /* check to see if we are in the same state as when suspended */
1042 /* our suspend causes the controller state to change,