Lines Matching refs:twl_priv

158 static struct twl_private *twl_priv;  variable
401 return twl_priv ? twl_priv->twl_id : 0; in twl_rev()
416 if (unlikely(!twl_priv || !twl_priv->ready)) { in twl_get_regmap()
425 sid = twl_priv->twl_map[mod_no].sid; in twl_get_regmap()
426 twl = &twl_priv->twl_modules[sid]; in twl_get_regmap()
448 ret = regmap_bulk_write(regmap, twl_priv->twl_map[mod_no].base + reg, in twl_i2c_write()
476 ret = regmap_bulk_read(regmap, twl_priv->twl_map[mod_no].base + reg, in twl_i2c_read()
526 err = twl_i2c_read(TWL4030_MODULE_INTBR, (u8 *)(&twl_priv->twl_idcode), in twl_read_idcode_register()
547 return TWL_SIL_TYPE(twl_priv->twl_idcode); in twl_get_type()
558 return TWL_SIL_REV(twl_priv->twl_idcode); in twl_get_version()
607 sid = twl_priv->twl_map[mod_no].sid; in add_numbered_child()
608 twl = &twl_priv->twl_modules[sid]; in add_numbered_child()
1051 struct twl_client *twl = &twl_priv->twl_modules[i]; in twl_remove()
1057 twl_priv->ready = false; in twl_remove()
1083 if (twl_priv) { in twl_probe()
1107 twl_priv = devm_kzalloc(&client->dev, sizeof(struct twl_private), in twl_probe()
1109 if (!twl_priv) { in twl_probe()
1115 twl_priv->twl_id = TWL6030_CLASS_ID; in twl_probe()
1116 twl_priv->twl_map = &twl6030_map[0]; in twl_probe()
1119 twl_priv->twl_map[TWL_MODULE_MAIN_CHARGE].base = in twl_probe()
1123 twl_priv->twl_id = TWL4030_CLASS_ID; in twl_probe()
1124 twl_priv->twl_map = &twl4030_map[0]; in twl_probe()
1129 twl_priv->twl_modules = devm_kcalloc(&client->dev, in twl_probe()
1133 if (!twl_priv->twl_modules) { in twl_probe()
1139 struct twl_client *twl = &twl_priv->twl_modules[i]; in twl_probe()
1165 twl_priv->ready = true; in twl_probe()