Searched refs:pin_pos (Results 1 – 2 of 2) sorted by relevance
379 for (uint8_t pin_pos = 0; pin_pos < 32; pin++) { in gpio_mec5_get_direction() local383 if ((map & BIT(pin_pos)) && (valid_msk & BIT(pin_pos))) { in gpio_mec5_get_direction()391 *outputs |= BIT(pin_pos); in gpio_mec5_get_direction()393 *inputs |= BIT(pin_pos); in gpio_mec5_get_direction()397 map &= ~BIT(pin_pos); in gpio_mec5_get_direction()
403 static uint8_t pin_to_sw(uint32_t pin_pos) in pin_to_sw() argument405 switch (pin_pos) { in pin_to_sw()412 printk("No match for GPIO pin 0x%08x\n", pin_pos); in pin_to_sw()417 uint32_t pin_pos) in button_pressed() argument443 sw.sw_num = pin_to_sw(pin_pos); in button_pressed()