Lines Matching full:id
14 /** RCU offset (from id field) */
15 #define GD32_RESET_ID_OFFSET(id) (((id) >> 6U) & 0xFFU) argument
16 /** RCU configuration bit (from id field) */
17 #define GD32_RESET_ID_BIT(id) ((id) & 0x1FU) argument
23 static int reset_gd32_status(const struct device *dev, uint32_t id, in reset_gd32_status() argument
28 *status = !!sys_test_bit(config->base + GD32_RESET_ID_OFFSET(id), in reset_gd32_status()
29 GD32_RESET_ID_BIT(id)); in reset_gd32_status()
34 static int reset_gd32_line_assert(const struct device *dev, uint32_t id) in reset_gd32_line_assert() argument
38 sys_set_bit(config->base + GD32_RESET_ID_OFFSET(id), in reset_gd32_line_assert()
39 GD32_RESET_ID_BIT(id)); in reset_gd32_line_assert()
44 static int reset_gd32_line_deassert(const struct device *dev, uint32_t id) in reset_gd32_line_deassert() argument
48 sys_clear_bit(config->base + GD32_RESET_ID_OFFSET(id), in reset_gd32_line_deassert()
49 GD32_RESET_ID_BIT(id)); in reset_gd32_line_deassert()
54 static int reset_gd32_line_toggle(const struct device *dev, uint32_t id) in reset_gd32_line_toggle() argument
56 (void)reset_gd32_line_assert(dev, id); in reset_gd32_line_toggle()
57 (void)reset_gd32_line_deassert(dev, id); in reset_gd32_line_toggle()