Lines Matching refs:unit
1277 struct clk_unit *unit; in atlas7_unit_clk_register() local
1280 unit = kzalloc(sizeof(*unit), GFP_KERNEL); in atlas7_unit_clk_register()
1281 if (!unit) in atlas7_unit_clk_register()
1290 unit->hw.init = &init; in atlas7_unit_clk_register()
1291 unit->regofs = regofs; in atlas7_unit_clk_register()
1292 unit->bit = bit; in atlas7_unit_clk_register()
1294 unit->type = type; in atlas7_unit_clk_register()
1295 unit->idle_bit = idle_bit; in atlas7_unit_clk_register()
1296 unit->lock = lock; in atlas7_unit_clk_register()
1298 clk = clk_register(dev, &unit->hw); in atlas7_unit_clk_register()
1300 kfree(unit); in atlas7_unit_clk_register()
1441 struct atlas7_unit_init_data *unit; in atlas7_clk_init() local
1667 unit = &unit_list[i]; in atlas7_clk_init()
1668 atlas7_clks[i] = atlas7_unit_clk_register(NULL, unit->unit_name, unit->parent_name, in atlas7_clk_init()
1669 unit->flags, unit->regofs, unit->bit, unit->type, unit->idle_bit, unit->lock); in atlas7_clk_init()