Lines Matching refs:mask
52 u32 reg, mask; in atmel_pio4_config_io_func() local
61 mask = 1 << pin; in atmel_pio4_config_io_func()
65 writel(mask, &port_base->mskr); in atmel_pio4_config_io_func()
130 u32 reg, mask; in atmel_pio4_set_pio_output() local
139 mask = 0x01 << pin; in atmel_pio4_set_pio_output()
142 writel(mask, &port_base->mskr); in atmel_pio4_set_pio_output()
146 writel(mask, &port_base->sodr); in atmel_pio4_set_pio_output()
148 writel(mask, &port_base->codr); in atmel_pio4_set_pio_output()
156 u32 reg, mask; in atmel_pio4_get_pio_input() local
165 mask = 0x01 << pin; in atmel_pio4_get_pio_input()
168 writel(mask, &port_base->mskr); in atmel_pio4_get_pio_input()
171 return (readl(&port_base->pdsr) & mask) ? 1 : 0; in atmel_pio4_get_pio_input()
200 u32 mask = BIT(line); in atmel_pio4_direction_input() local
202 writel(mask, &port_base->mskr); in atmel_pio4_direction_input()
216 u32 mask = BIT(line); in atmel_pio4_direction_output() local
218 writel(mask, &port_base->mskr); in atmel_pio4_direction_output()
224 writel(mask, &port_base->sodr); in atmel_pio4_direction_output()
226 writel(mask, &port_base->codr); in atmel_pio4_direction_output()
236 u32 mask = BIT(line); in atmel_pio4_get_value() local
238 return (readl(&port_base->pdsr) & mask) ? 1 : 0; in atmel_pio4_get_value()
247 u32 mask = BIT(line); in atmel_pio4_set_value() local
250 writel(mask, &port_base->sodr); in atmel_pio4_set_value()
252 writel(mask, &port_base->codr); in atmel_pio4_set_value()
262 u32 mask = BIT(line); in atmel_pio4_get_function() local
264 writel(mask, &port_base->mskr); in atmel_pio4_get_function()