Lines Matching defs:offset

125 	unsigned long	offset;
134 .offset = SA1111_USB,
148 .offset = 0x0600,
160 .offset = 0x0800,
165 .offset = SA1111_KBD,
174 .offset = SA1111_MSE,
183 .offset = 0x1800,
481 static void __iomem *sa1111_gpio_map_reg(struct sa1111 *sachip, unsigned offset)
485 if (offset < 4)
487 if (offset < 10)
489 if (offset < 18)
494 static u32 sa1111_gpio_map_bit(unsigned offset)
496 if (offset < 4)
497 return BIT(offset);
498 if (offset < 10)
499 return BIT(offset - 4);
500 if (offset < 18)
501 return BIT(offset - 10);
515 static int sa1111_gpio_get_direction(struct gpio_chip *gc, unsigned offset)
518 void __iomem *reg = sa1111_gpio_map_reg(sachip, offset);
519 u32 mask = sa1111_gpio_map_bit(offset);
524 static int sa1111_gpio_direction_input(struct gpio_chip *gc, unsigned offset)
528 void __iomem *reg = sa1111_gpio_map_reg(sachip, offset);
529 u32 mask = sa1111_gpio_map_bit(offset);
539 static int sa1111_gpio_direction_output(struct gpio_chip *gc, unsigned offset,
544 void __iomem *reg = sa1111_gpio_map_reg(sachip, offset);
545 u32 mask = sa1111_gpio_map_bit(offset);
557 static int sa1111_gpio_get(struct gpio_chip *gc, unsigned offset)
560 void __iomem *reg = sa1111_gpio_map_reg(sachip, offset);
561 u32 mask = sa1111_gpio_map_bit(offset);
566 static void sa1111_gpio_set(struct gpio_chip *gc, unsigned offset, int value)
570 void __iomem *reg = sa1111_gpio_map_reg(sachip, offset);
571 u32 mask = sa1111_gpio_map_bit(offset);
600 static int sa1111_gpio_to_irq(struct gpio_chip *gc, unsigned offset)
604 return sa1111_map_irq(sachip, offset);
743 dev_set_name(&dev->dev, "%4.4lx", info->offset);
748 dev->res.start = sachip->phys + info->offset;
752 dev->mapbase = sachip->base + info->offset;