• Home
  • Raw
  • Download

Lines Matching refs:port

22 static struct at91_port *at91_pio_get_port(unsigned port)  in at91_pio_get_port()  argument
24 switch (port) { in at91_pio_get_port()
58 int at91_set_pio_pullup(unsigned port, unsigned pin, int use_pullup) in at91_set_pio_pullup() argument
60 struct at91_port *at91_port = at91_pio_get_port(port); in at91_set_pio_pullup()
71 int at91_set_pio_periph(unsigned port, unsigned pin, int use_pullup) in at91_set_pio_periph() argument
73 struct at91_port *at91_port = at91_pio_get_port(port); in at91_set_pio_periph()
79 at91_set_pio_pullup(port, pin, use_pullup); in at91_set_pio_periph()
89 int at91_set_a_periph(unsigned port, unsigned pin, int use_pullup) in at91_set_a_periph() argument
91 struct at91_port *at91_port = at91_pio_get_port(port); in at91_set_a_periph()
97 at91_set_pio_pullup(port, pin, use_pullup); in at91_set_a_periph()
108 int at91_set_b_periph(unsigned port, unsigned pin, int use_pullup) in at91_set_b_periph() argument
110 struct at91_port *at91_port = at91_pio_get_port(port); in at91_set_b_periph()
116 at91_set_pio_pullup(port, pin, use_pullup); in at91_set_b_periph()
127 int at91_pio3_set_a_periph(unsigned port, unsigned pin, int use_pullup) in at91_pio3_set_a_periph() argument
129 struct at91_port *at91_port = at91_pio_get_port(port); in at91_pio3_set_a_periph()
135 at91_set_pio_pullup(port, pin, use_pullup); in at91_pio3_set_a_periph()
150 int at91_pio3_set_b_periph(unsigned port, unsigned pin, int use_pullup) in at91_pio3_set_b_periph() argument
152 struct at91_port *at91_port = at91_pio_get_port(port); in at91_pio3_set_b_periph()
158 at91_set_pio_pullup(port, pin, use_pullup); in at91_pio3_set_b_periph()
172 int at91_pio3_set_c_periph(unsigned port, unsigned pin, int use_pullup) in at91_pio3_set_c_periph() argument
174 struct at91_port *at91_port = at91_pio_get_port(port); in at91_pio3_set_c_periph()
180 at91_set_pio_pullup(port, pin, use_pullup); in at91_pio3_set_c_periph()
194 int at91_pio3_set_d_periph(unsigned port, unsigned pin, int use_pullup) in at91_pio3_set_d_periph() argument
196 struct at91_port *at91_port = at91_pio_get_port(port); in at91_pio3_set_d_periph()
202 at91_set_pio_pullup(port, pin, use_pullup); in at91_pio3_set_d_periph()
240 int at91_set_pio_input(unsigned port, u32 pin, int use_pullup) in at91_set_pio_input() argument
242 struct at91_port *at91_port = at91_pio_get_port(port); in at91_set_pio_input()
270 int at91_set_pio_output(unsigned port, u32 pin, int value) in at91_set_pio_output() argument
272 struct at91_port *at91_port = at91_pio_get_port(port); in at91_set_pio_output()
283 int at91_set_pio_deglitch(unsigned port, unsigned pin, int is_on) in at91_set_pio_deglitch() argument
285 struct at91_port *at91_port = at91_pio_get_port(port); in at91_set_pio_deglitch()
302 int at91_pio3_set_pio_deglitch(unsigned port, unsigned pin, int is_on) in at91_pio3_set_pio_deglitch() argument
304 struct at91_port *at91_port = at91_pio_get_port(port); in at91_pio3_set_pio_deglitch()
323 int at91_pio3_set_pio_debounce(unsigned port, unsigned pin, int is_on, int div) in at91_pio3_set_pio_debounce() argument
325 struct at91_port *at91_port = at91_pio_get_port(port); in at91_pio3_set_pio_debounce()
346 int at91_pio3_set_pio_pulldown(unsigned port, unsigned pin, int is_on) in at91_pio3_set_pio_pulldown() argument
348 struct at91_port *at91_port = at91_pio_get_port(port); in at91_pio3_set_pio_pulldown()
354 at91_set_pio_pullup(port, pin, 0); in at91_pio3_set_pio_pulldown()
363 int at91_pio3_set_pio_pullup(unsigned port, unsigned pin, int use_pullup) in at91_pio3_set_pio_pullup() argument
365 struct at91_port *at91_port = at91_pio_get_port(port); in at91_pio3_set_pio_pullup()
368 at91_pio3_set_pio_pulldown(port, pin, 0); in at91_pio3_set_pio_pullup()
379 int at91_pio3_set_pio_disable_schmitt_trig(unsigned port, unsigned pin) in at91_pio3_set_pio_disable_schmitt_trig() argument
381 struct at91_port *at91_port = at91_pio_get_port(port); in at91_pio3_set_pio_disable_schmitt_trig()
397 int at91_set_pio_multi_drive(unsigned port, unsigned pin, int is_on) in at91_set_pio_multi_drive() argument
399 struct at91_port *at91_port = at91_pio_get_port(port); in at91_set_pio_multi_drive()
428 int at91_set_pio_value(unsigned port, unsigned pin, int value) in at91_set_pio_value() argument
430 struct at91_port *at91_port = at91_pio_get_port(port); in at91_set_pio_value()
450 int at91_get_pio_value(unsigned port, unsigned pin) in at91_get_pio_value() argument
452 struct at91_port *at91_port = at91_pio_get_port(port); in at91_get_pio_value()
511 struct at91_port_priv *port = dev_get_priv(dev); in at91_gpio_direction_input() local
513 at91_set_port_input(port->regs, offset, 0); in at91_gpio_direction_input()
522 struct at91_port_priv *port = dev_get_priv(dev); in at91_gpio_direction_output() local
524 at91_set_port_output(port->regs, offset, value); in at91_gpio_direction_output()
532 struct at91_port_priv *port = dev_get_priv(dev); in at91_gpio_get_value() local
534 return at91_get_port_value(port->regs, offset); in at91_gpio_get_value()
541 struct at91_port_priv *port = dev_get_priv(dev); in at91_gpio_set_value() local
543 at91_set_port_value(port->regs, offset, value); in at91_gpio_set_value()
550 struct at91_port_priv *port = dev_get_priv(dev); in at91_gpio_get_function() local
553 if (at91_get_port_output(port->regs, offset)) in at91_gpio_get_function()
569 struct at91_port_priv *port = dev_get_priv(dev); in at91_gpio_probe() local
591 port->regs = (struct at91_port *)plat->base_addr; in at91_gpio_probe()