Lines Matching defs:port
16 static inline u16 read_##reg(void __iomem *port) \
17 { return bfin_read16(port + off); } \
18 static inline void write_##reg(void __iomem *port, u16 v) \
19 { bfin_write16(port + off, v); }
39 void __iomem *port = gpio_chip_to_mmr(chip);
40 return !!(read_PORTIO(port) & (1u << gpio));
45 void __iomem *port = gpio_chip_to_mmr(chip);
47 write_PORTIO_SET(port, (1u << gpio));
49 write_PORTIO_CLEAR(port, (1u << gpio));
54 void __iomem *port = gpio_chip_to_mmr(chip);
55 write_PORTIO_DIR(port, read_PORTIO_DIR(port) & ~(1u << gpio));
56 write_PORTIO_INEN(port, read_PORTIO_INEN(port) | (1u << gpio));
62 void __iomem *port = gpio_chip_to_mmr(chip);
63 write_PORTIO_INEN(port, read_PORTIO_INEN(port) & ~(1u << gpio));
64 bf538_gpio_set_value(port, gpio, value);
65 write_PORTIO_DIR(port, read_PORTIO_DIR(port) | (1u << gpio));