Lines Matching refs:gpio_st

124 static struct gpio_status gpio_st[NHW_GPIO_TOTAL_INST];  variable
144 gpio_st[p].INPUT_mask = UINT32_MAX; /* All disconnected out of reset */ in nrf_gpio_init()
145 gpio_st[p].nbr_pins = GPIO_n_ports_pins[p]; in nrf_gpio_init()
146 gpio_st[p].partner_GPIOTE = GPIOTE_partners[p]; in nrf_gpio_init()
147 gpio_st[p].has_sense = has_sense[p]; in nrf_gpio_init()
156 return gpio_st[port].nbr_pins; in nrf_gpio_get_number_pins_in_port()
200 return (gpio_st[port].IO_level >> n) & 0x1; in nrf_gpio_get_pin_level()
204 if (port >= NHW_GPIO_TOTAL_INST || (uint)n >= (uint)gpio_st[port].nbr_pins) { \
211 struct gpio_status *st = &gpio_st[port]; in get_enabled_inputs()
217 struct gpio_status *st = &gpio_st[port]; in get_dir()
254 struct gpio_status *st = &gpio_st[port]; in nrf_gpio_peri_pin_control()
316 struct gpio_status *st = &gpio_st[port]; in nrf_gpio_peri_change_output()
337 struct gpio_status *st = &gpio_st[port]; in nrf_gpio_update_detect_signal()
358 struct gpio_status *st = &gpio_st[port]; in nrf_gpio_eval_sense()
394 return gpio_st[port].DETECT_signal; in nrf_gpio_get_detect_level()
410 struct gpio_status *st = &gpio_st[port]; in nrf_gpio_input_change_sideeffects()
427 uint32_t new_IN = gpio_st[port].IO_level & get_enabled_inputs(port); in nrf_gpio_eval_inputs()
467 int diff = ((gpio_st[port].IO_level >> n) & 0x1) ^ (uint32_t)value; in nrf_gpio_eval_input()
474 gpio_st[port].IO_level ^= (uint32_t)1 << n; in nrf_gpio_eval_input()
497 struct gpio_status *st = &gpio_st[port]; in nrf_gpio_eval_outputs()
553 for (int n = 0; n < gpio_st[port].nbr_pins; n++ ) { in nrf_gpio_regw_sideeffects_DIR()
578 struct gpio_status *st = &gpio_st[port]; in nrf_gpio_regw_sideeffects_LATCH()
624 struct gpio_status *st = &gpio_st[port]; in nrf_gpio_regw_sideeffects_PIN_CNF()