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

Lines Matching defs:chip

46 	struct gpio_chip	chip;
54 * Driver data holds all the per-chip data.
59 struct mcp23s08 chip[];
97 static int mcp23s08_direction_input(struct gpio_chip *chip, unsigned offset)
99 struct mcp23s08 *mcp = container_of(chip, struct mcp23s08, chip);
109 static int mcp23s08_get(struct gpio_chip *chip, unsigned offset)
111 struct mcp23s08 *mcp = container_of(chip, struct mcp23s08, chip);
140 static void mcp23s08_set(struct gpio_chip *chip, unsigned offset, int value)
142 struct mcp23s08 *mcp = container_of(chip, struct mcp23s08, chip);
151 mcp23s08_direction_output(struct gpio_chip *chip, unsigned offset, int value)
153 struct mcp23s08 *mcp = container_of(chip, struct mcp23s08, chip);
177 static void mcp23s08_dbg_show(struct seq_file *s, struct gpio_chip *chip)
184 mcp = container_of(chip, struct mcp23s08, chip);
199 label = gpiochip_is_requested(chip, t);
204 chip->base + t, bank, t, label,
234 mcp->chip.label = "mcp23s08",
236 mcp->chip.direction_input = mcp23s08_direction_input;
237 mcp->chip.get = mcp23s08_get;
238 mcp->chip.direction_output = mcp23s08_direction_output;
239 mcp->chip.set = mcp23s08_set;
240 mcp->chip.dbg_show = mcp23s08_dbg_show;
242 mcp->chip.base = base;
243 mcp->chip.ngpio = 8;
244 mcp->chip.can_sleep = 1;
245 mcp->chip.dev = &spi->dev;
246 mcp->chip.owner = THIS_MODULE;
294 status = gpiochip_add(&mcp->chip);
297 dev_dbg(&spi->dev, "can't setup chip %d, --> %d\n",
318 if (!pdata->chip[addr].is_present)
333 if (!pdata->chip[addr].is_present)
336 data->mcp[addr] = &data->chip[chips];
338 pdata->chip[addr].pullups);
366 tmp = gpiochip_remove(&data->mcp[addr]->chip);
397 tmp = gpiochip_remove(&data->mcp[addr]->chip);