Lines Matching refs:i

50 #define GPIO_PIN_NUM(periph, prefix, i, _) NRFX_CONCAT(periph, prefix, i, _PIN_NUM)  argument
53 #define GPIO_PIN_MASK(periph, prefix, i, _) NRFX_CONCAT(periph, prefix, i, _FEATURE_PINS_PRESENT) argument
62 #define GPIO_WITH_GAP(periph, prefix, i, _) \ argument
63 (((1 << GPIO_PIN_NUM(periph, prefix, i, _)) - 1) != GPIO_PIN_MASK(periph, prefix, i, _))
71 #define GPIO_IS_FULL_PORT(periph, prefix, i, _) \ argument
72 (NRFX_CONCAT(periph, prefix, i, _PIN_NUM) == 32)
168 #define GPIOTE_PORT_INDEX(periph_name, prefix, i, _) i, argument
251 #define GPIO_PORT_OFFSET(i, _) \ argument
252 NRFX_COND_CODE_1(NRFX_INSTANCE_PRESENT(NRFX_CONCAT(P, i)),(NRFX_CONCAT(P, i, _PIN_NUM)), (0))
407 for (uint32_t i = 0; i < MAX_PIN_NUMBER; i++) in handler_in_use() local
409 if (PIN_GET_HANDLER_ID(get_cb(p_instance->drv_inst_idx)->pin_flags[i]) == handler_id) in handler_in_use()
501 for (int32_t i = 0; i < NRFX_GPIOTE_CONFIG_NUM_OF_EVT_HANDLERS; i++) in find_handler() local
503 if ((get_cb(p_instance->drv_inst_idx)->handlers[i].handler == handler) && in find_handler()
504 (get_cb(p_instance->drv_inst_idx)->handlers[i].p_context == p_context)) in find_handler()
506 return i; in find_handler()
849 for (size_t i = 0; i < MAX_PIN_NUMBER; i++) in gpiote_uninit() local
851 pin_cond_uninit(p_instance, i); in gpiote_uninit()
854 #define _PORT_LEN(periph, prefix, i, _) NRFX_CONCAT(periph, prefix, i, _PIN_NUM), in gpiote_uninit() argument
861 for (size_t i = 0; i < NRFX_ARRAY_SIZE(ports); i++) in gpiote_uninit() local
863 for (size_t j = 0; j < port_lens[i]; j++) in gpiote_uninit()
865 pin_cond_uninit(p_instance, 32 * ports[i] + j); in gpiote_uninit()
1489 for (uint32_t i = 0; i < GPIO_COUNT; i++) in port_event_handle() local
1491 if (nrf_bitmask_bit_is_set(port_index[i], &p_cb->available_gpio_ports)) in port_event_handle()
1493 while (latch[i]) in port_event_handle()
1495 uint32_t pin = NRF_CTZ(latch[i]); in port_event_handle()
1498 nrfx_gpiote_pin_t abs_pin = NRF_PIN_PORT_TO_PIN_NUMBER(pin, ports[i]); in port_event_handle()
1503 nrf_bitmask_bit_clear(pin, &latch[i]); in port_event_handle()
1577 for (uint32_t i = 0; i < GPIO_COUNT; i++) in port_event_handle() local
1579 while (pins_to_check[i]) in port_event_handle()
1584 rel_pin = (uint8_t)NRF_CTZ(pins_to_check[i]); in port_event_handle()
1585 pins_to_check[i] &= ~NRFX_BIT(rel_pin); in port_event_handle()
1587 pin = rel_pin + 32 * i; in port_event_handle()