Lines Matching refs:pin_num
1888 static int get_gpio_pin_params(u32 pin_num, u32 *p_translatedpin_num, in get_gpio_pin_params() argument
1893 if (pin_num <= 1) { in get_gpio_pin_params()
1897 } else if (pin_num >= 2 && pin_num <= 6) { in get_gpio_pin_params()
1901 } else if (pin_num >= 7 && pin_num <= 11) { in get_gpio_pin_params()
1904 } else if (pin_num >= 12 && pin_num <= 15) { in get_gpio_pin_params()
1908 } else if (pin_num == 16) { in get_gpio_pin_params()
1911 } else if (pin_num >= 17 && pin_num <= 24) { in get_gpio_pin_params()
1914 } else if (pin_num == 25) { in get_gpio_pin_params()
1917 } else if (pin_num >= 26 && pin_num <= 28) { in get_gpio_pin_params()
1920 } else if (pin_num == 29) { in get_gpio_pin_params()
1924 } else if (pin_num == 30) { in get_gpio_pin_params()
1927 } else if (pin_num == 31) { in get_gpio_pin_params()
1938 int smscore_gpio_configure(struct smscore_device_t *coredev, u8 pin_num, in smscore_gpio_configure() argument
1955 if (pin_num > MAX_GPIO_PIN_NUMBER) in smscore_gpio_configure()
1974 p_msg->msg_data[0] = pin_num; in smscore_gpio_configure()
1978 if (get_gpio_pin_params(pin_num, &translatedpin_num, &group_num, in smscore_gpio_configure()
2017 int smscore_gpio_set_level(struct smscore_device_t *coredev, u8 pin_num, in smscore_gpio_set_level() argument
2029 if ((new_level > 1) || (pin_num > MAX_GPIO_PIN_NUMBER)) in smscore_gpio_set_level()
2047 p_msg->msg_data[0] = pin_num; in smscore_gpio_set_level()
2065 int smscore_gpio_get_level(struct smscore_device_t *coredev, u8 pin_num, in smscore_gpio_get_level() argument
2078 if (pin_num > MAX_GPIO_PIN_NUMBER) in smscore_gpio_get_level()
2095 p_msg->msg_data[0] = pin_num; in smscore_gpio_get_level()