Lines Matching refs:port_base

48 	struct atmel_pio4_port *port_base;  in atmel_pio4_config_io_func()  local
54 port_base = atmel_pio4_port_base(port); in atmel_pio4_config_io_func()
55 if (!port_base) in atmel_pio4_config_io_func()
62 writel(mask, &port_base->mskr); in atmel_pio4_config_io_func()
63 writel(reg, &port_base->cfgr); in atmel_pio4_config_io_func()
126 struct atmel_pio4_port *port_base; in atmel_pio4_set_pio_output() local
132 port_base = atmel_pio4_port_base(port); in atmel_pio4_set_pio_output()
133 if (!port_base) in atmel_pio4_set_pio_output()
139 writel(mask, &port_base->mskr); in atmel_pio4_set_pio_output()
140 writel(reg, &port_base->cfgr); in atmel_pio4_set_pio_output()
143 writel(mask, &port_base->sodr); in atmel_pio4_set_pio_output()
145 writel(mask, &port_base->codr); in atmel_pio4_set_pio_output()
152 struct atmel_pio4_port *port_base; in atmel_pio4_get_pio_input() local
158 port_base = atmel_pio4_port_base(port); in atmel_pio4_get_pio_input()
159 if (!port_base) in atmel_pio4_get_pio_input()
165 writel(mask, &port_base->mskr); in atmel_pio4_get_pio_input()
166 writel(reg, &port_base->cfgr); in atmel_pio4_get_pio_input()
168 return (readl(&port_base->pdsr) & mask) ? 1 : 0; in atmel_pio4_get_pio_input()
185 struct atmel_pio4_port *port_base = in atmel_pio4_bank_base() local
189 return port_base; in atmel_pio4_bank_base()
196 struct atmel_pio4_port *port_base = atmel_pio4_bank_base(dev, bank); in atmel_pio4_direction_input() local
199 writel(mask, &port_base->mskr); in atmel_pio4_direction_input()
201 clrbits_le32(&port_base->cfgr, in atmel_pio4_direction_input()
212 struct atmel_pio4_port *port_base = atmel_pio4_bank_base(dev, bank); in atmel_pio4_direction_output() local
215 writel(mask, &port_base->mskr); in atmel_pio4_direction_output()
217 clrsetbits_le32(&port_base->cfgr, in atmel_pio4_direction_output()
221 writel(mask, &port_base->sodr); in atmel_pio4_direction_output()
223 writel(mask, &port_base->codr); in atmel_pio4_direction_output()
232 struct atmel_pio4_port *port_base = atmel_pio4_bank_base(dev, bank); in atmel_pio4_get_value() local
235 return (readl(&port_base->pdsr) & mask) ? 1 : 0; in atmel_pio4_get_value()
243 struct atmel_pio4_port *port_base = atmel_pio4_bank_base(dev, bank); in atmel_pio4_set_value() local
247 writel(mask, &port_base->sodr); in atmel_pio4_set_value()
249 writel(mask, &port_base->codr); in atmel_pio4_set_value()
258 struct atmel_pio4_port *port_base = atmel_pio4_bank_base(dev, bank); in atmel_pio4_get_function() local
261 writel(mask, &port_base->mskr); in atmel_pio4_get_function()
263 return (readl(&port_base->cfgr) & in atmel_pio4_get_function()