Lines Matching defs:index
325 bus_space_handle_t ioh, int index, int intr, int irqbase)
352 gpio_handles.unit[index].softc = gpio;
353 gpio_handles.unit[index].ioh = ioh;
360 #define GPIO_GROUP_READ(index,offset) \
361 bus_space_read_4(gpio_handles.iot, gpio_handles.unit[index].ioh, \
363 #define GPIO_GROUP_WRITE(index,offset,value) \
364 bus_space_write_4(gpio_handles.iot, gpio_handles.unit[index].ioh, \
370 int index = gpio / GPIO_NPINS;
374 KDASSERT(index < imxgpio_ngroups);
379 reg = GPIO_GROUP_READ(index, GPIO_DIR);
384 GPIO_GROUP_WRITE(index, GPIO_DIR, reg);
393 int index = gpio / GPIO_NPINS;
397 KDASSERT(index < imxgpio_ngroups);
400 reg = GPIO_GROUP_READ(index, GPIO_DR);
405 GPIO_GROUP_WRITE(index, GPIO_DR, reg);
413 int index = gpio / GPIO_NPINS;
417 KDASSERT(index < imxgpio_ngroups);
419 reg = GPIO_GROUP_READ(index, GPIO_DR);