Lines Matching refs:offset
182 const int32_t offset = 0x0c0; in gpio_get_pupd_iocfg() local
186 return IOCFG_1_BASE + offset; in gpio_get_pupd_iocfg()
188 return IOCFG_2_BASE + offset; in gpio_get_pupd_iocfg()
190 return IOCFG_5_BASE + offset; in gpio_get_pupd_iocfg()
192 return IOCFG_7_BASE + offset; in gpio_get_pupd_iocfg()
224 assert(!((PULL_offset[pin].offset == (int8_t)-1) && in mt_set_gpio_pull_enable_chip()
228 if (PULL_offset[pin].offset == (int8_t)-1) in mt_set_gpio_pull_enable_chip()
232 1U << PULL_offset[pin].offset); in mt_set_gpio_pull_enable_chip()
234 if (PULL_offset[pin].offset == (int8_t)-1) { in mt_set_gpio_pull_enable_chip()
246 1U << PULL_offset[pin].offset); in mt_set_gpio_pull_enable_chip()
273 assert(!((PULL_offset[pin].offset == (int8_t)-1) && in mt_get_gpio_pull_enable_chip()
276 if (PULL_offset[pin].offset == (int8_t)-1) { in mt_get_gpio_pull_enable_chip()
281 return ((reg & (1U << PULL_offset[pin].offset)) ? 1 : 0); in mt_get_gpio_pull_enable_chip()
295 assert(!((PULL_offset[pin].offset == (int8_t) -1) && in mt_set_gpio_pull_select_chip()
301 if (PULL_offset[pin].offset == (int8_t)-1) in mt_set_gpio_pull_select_chip()
305 1U << PULL_offset[pin].offset); in mt_set_gpio_pull_select_chip()
308 if (PULL_offset[pin].offset == (int8_t)-1) in mt_set_gpio_pull_select_chip()
312 1U << PULL_offset[pin].offset); in mt_set_gpio_pull_select_chip()
315 if (PULL_offset[pin].offset == -1) in mt_set_gpio_pull_select_chip()
319 1U << PULL_offset[pin].offset); in mt_set_gpio_pull_select_chip()
335 assert(!((PULL_offset[pin].offset == (int8_t)-1) && in mt_get_gpio_pull_select_chip()
338 if (PULL_offset[pin].offset == (int8_t)-1) { in mt_get_gpio_pull_select_chip()
351 if ((reg & (1U << PULL_offset[pin].offset))) { in mt_get_gpio_pull_select_chip()
353 return ((reg & (1U << PULL_offset[pin].offset)) ? in mt_get_gpio_pull_select_chip()