Lines Matching refs:offs
21 struct clk_ti_ctrl_offs *offs; member
24 static int clk_ti_ctrl_check_offs(struct clk *clk, fdt_addr_t offs) in clk_ti_ctrl_check_offs() argument
30 if (offs >= priv->offs[i].start && offs <= priv->offs[i].end) in clk_ti_ctrl_check_offs()
41 fdt_addr_t offs; in clk_ti_ctrl_disable() local
44 offs = priv->offs[0].start + clk->id; in clk_ti_ctrl_disable()
45 err = clk_ti_ctrl_check_offs(clk, offs); in clk_ti_ctrl_disable()
47 dev_err(clk->dev, "invalid offset: 0x%lx\n", offs); in clk_ti_ctrl_disable()
51 clk_modules[0] = (u32 *)(offs); in clk_ti_ctrl_disable()
61 fdt_addr_t offs; in clk_ti_ctrl_enable() local
64 offs = priv->offs[0].start + clk->id; in clk_ti_ctrl_enable()
65 err = clk_ti_ctrl_check_offs(clk, offs); in clk_ti_ctrl_enable()
67 dev_err(clk->dev, "invalid offset: 0x%lx\n", offs); in clk_ti_ctrl_enable()
71 clk_modules[0] = (u32 *)(offs); in clk_ti_ctrl_enable()
114 priv->offs = kmalloc_array(priv->offs_num, sizeof(*priv->offs), in clk_ti_ctrl_of_to_plat()
116 if (!priv->offs) in clk_ti_ctrl_of_to_plat()
120 priv->offs[i].start = in clk_ti_ctrl_of_to_plat()
122 if (priv->offs[i].start == FDT_ADDR_T_NONE) { in clk_ti_ctrl_of_to_plat()
127 priv->offs[i].end = priv->offs[i].start + fdt_size; in clk_ti_ctrl_of_to_plat()
129 priv->offs[i].start, priv->offs[i].end); in clk_ti_ctrl_of_to_plat()