Lines Matching refs:id
33 static int aspeed_reset_line_assert(const struct device *dev, uint32_t id) in aspeed_reset_line_assert() argument
39 if (id >= ASPEED_RESET_GRP_1_OFFSET) { in aspeed_reset_line_assert()
40 id -= ASPEED_RESET_GRP_1_OFFSET; in aspeed_reset_line_assert()
44 return syscon_write_reg(syscon, addr, BIT(id)); in aspeed_reset_line_assert()
47 static int aspeed_reset_line_deassert(const struct device *dev, uint32_t id) in aspeed_reset_line_deassert() argument
53 if (id >= ASPEED_RESET_GRP_1_OFFSET) { in aspeed_reset_line_deassert()
54 id -= ASPEED_RESET_GRP_1_OFFSET; in aspeed_reset_line_deassert()
58 return syscon_write_reg(syscon, addr, BIT(id)); in aspeed_reset_line_deassert()
61 static int aspeed_reset_status(const struct device *dev, uint32_t id, uint8_t *status) in aspeed_reset_status() argument
69 if (id >= ASPEED_RESET_GRP_1_OFFSET) { in aspeed_reset_status()
70 id -= ASPEED_RESET_GRP_1_OFFSET; in aspeed_reset_status()
76 *status = !!(reg_value & BIT(id)); in aspeed_reset_status()
82 static int aspeed_reset_line_toggle(const struct device *dev, uint32_t id) in aspeed_reset_line_toggle() argument
86 ret = aspeed_reset_line_assert(dev, id); in aspeed_reset_line_toggle()
88 ret = aspeed_reset_line_deassert(dev, id); in aspeed_reset_line_toggle()