Searched refs:PERIPHERAL_MASK (Results 1 – 2 of 2) sorted by relevance
16 #define PERIPHERAL_MASK(id) (1 << ((id) & PERIPHERAL_ID_MAX)) macro70 setbits_le32(addr, PERIPHERAL_MASK(clk->id)); in periph_clk_enable()
20 #define PERIPHERAL_MASK(id) (1 << ((id) & PERIPHERAL_ID_MAX)) macro58 regmap_write(periph->regmap, offset, PERIPHERAL_MASK(id)); in clk_peripheral_enable()73 regmap_write(periph->regmap, offset, PERIPHERAL_MASK(id)); in clk_peripheral_disable()89 return status & PERIPHERAL_MASK(id) ? 1 : 0; in clk_peripheral_is_enabled()