Lines Matching defs:core
13 #include <linux/mfd/si476x-core.h>
45 static bool si476x_core_is_valid_property_a10(struct si476x_core *core,
86 static bool si476x_core_is_valid_property_a20(struct si476x_core *core,
100 return si476x_core_is_valid_property_a10(core, property) ||
107 static bool si476x_core_is_valid_property_a30(struct si476x_core *core,
126 return si476x_core_is_valid_property_a20(core, property) ||
135 static bool si476x_core_is_valid_property(struct si476x_core *core,
144 BUG_ON(core->revision > SI476X_REVISION_A30 ||
145 core->revision == -1);
146 return is_valid_property[core->revision](core, property);
150 static bool si476x_core_is_readonly_property(struct si476x_core *core,
153 BUG_ON(core->revision > SI476X_REVISION_A30 ||
154 core->revision == -1);
156 switch (core->revision) {
174 struct si476x_core *core = i2c_get_clientdata(client);
176 return si476x_core_is_valid_property(core, (u16) reg);
184 struct si476x_core *core = i2c_get_clientdata(client);
186 return si476x_core_is_valid_property(core, (u16) reg) &&
187 !si476x_core_is_readonly_property(core, (u16) reg);
200 struct si476x_core *core = context;
203 err = si476x_core_cmd_get_property(core, reg);
228 struct regmap *devm_regmap_init_si476x(struct si476x_core *core)
230 return devm_regmap_init(&core->client->dev, NULL,
231 core, &si476x_regmap_config);