Lines Matching refs:pupd_offset
220 int pupd_offset = gpio_get_pupd_offset(pin); in mt_set_gpio_pull_enable_chip() local
225 (pupd_offset == (int8_t)-1))); in mt_set_gpio_pull_enable_chip()
229 mmio_clrbits_32(pupd_addr, 3U << pupd_offset); in mt_set_gpio_pull_enable_chip()
241 mmio_setbits_32(pupd_addr, 1U << pupd_offset); in mt_set_gpio_pull_enable_chip()
242 mmio_clrbits_32(pupd_addr, 1U << (pupd_offset + 1)); in mt_set_gpio_pull_enable_chip()
249 assert(!(pupd_offset == (int8_t)-1)); in mt_set_gpio_pull_enable_chip()
250 mmio_setbits_32(pupd_addr, 1U << pupd_offset); in mt_set_gpio_pull_enable_chip()
251 mmio_clrbits_32(pupd_addr, 1U << (pupd_offset + 1)); in mt_set_gpio_pull_enable_chip()
253 assert(!(pupd_offset == (int8_t)-1)); in mt_set_gpio_pull_enable_chip()
255 mmio_clrbits_32(pupd_addr, 1U << pupd_offset); in mt_set_gpio_pull_enable_chip()
256 mmio_setbits_32(pupd_addr, 1U << (pupd_offset + 1)); in mt_set_gpio_pull_enable_chip()
258 assert(!(pupd_offset == (int8_t)-1)); in mt_set_gpio_pull_enable_chip()
259 mmio_setbits_32(pupd_addr, 3U << pupd_offset); in mt_set_gpio_pull_enable_chip()
269 int pupd_offset = gpio_get_pupd_offset(pin); in mt_get_gpio_pull_enable_chip() local
274 (pupd_offset == (int8_t)-1))); in mt_get_gpio_pull_enable_chip()
278 return ((reg & (3U << pupd_offset)) ? 1 : 0); in mt_get_gpio_pull_enable_chip()
279 } else if (pupd_offset == (int8_t)-1) { in mt_get_gpio_pull_enable_chip()
291 int pupd_offset = gpio_get_pupd_offset(pin); in mt_set_gpio_pull_select_chip() local
296 (pupd_offset == (int8_t)-1))); in mt_set_gpio_pull_select_chip()
302 mmio_setbits_32(pupd_addr, 1U << (pupd_offset + 2)); in mt_set_gpio_pull_select_chip()
309 mmio_clrbits_32(pupd_addr, 1U << (pupd_offset + 2)); in mt_set_gpio_pull_select_chip()
316 mmio_setbits_32(pupd_addr, 1U << (pupd_offset + 2)); in mt_set_gpio_pull_select_chip()
331 int pupd_offset = gpio_get_pupd_offset(pin); in mt_get_gpio_pull_select_chip() local
336 (pupd_offset == (int8_t)-1))); in mt_get_gpio_pull_select_chip()
340 if (reg & (3U << pupd_offset)) { in mt_get_gpio_pull_select_chip()
344 return ((reg & (1U << (pupd_offset + 2))) ? in mt_get_gpio_pull_select_chip()
349 } else if (pupd_offset == (int8_t)-1) { in mt_get_gpio_pull_select_chip()