Lines Matching full:function
21 function_find_entity(struct sdca_function_data *function, unsigned int reg) in function_find_entity() argument
25 for (i = 0; i < function->num_entities; i++) in function_find_entity()
26 if (SDW_SDCA_CTL_ENT(reg) == function->entities[i].id) in function_find_entity()
27 return &function->entities[i]; in function_find_entity()
46 function_find_control(struct sdca_function_data *function, unsigned int reg) in function_find_control() argument
50 entity = function_find_entity(function, reg); in function_find_control()
59 * @function: Pointer to the Function information.
64 bool sdca_regmap_readable(struct sdca_function_data *function, unsigned int reg) in sdca_regmap_readable() argument
71 control = function_find_control(function, reg); in sdca_regmap_readable()
91 * @function: Pointer to the Function information.
96 bool sdca_regmap_writeable(struct sdca_function_data *function, unsigned int reg) in sdca_regmap_writeable() argument
103 control = function_find_control(function, reg); in sdca_regmap_writeable()
122 * @function: Pointer to the Function information.
127 bool sdca_regmap_volatile(struct sdca_function_data *function, unsigned int reg) in sdca_regmap_volatile() argument
134 control = function_find_control(function, reg); in sdca_regmap_volatile()
151 * @function: Pointer to the Function information.
156 bool sdca_regmap_deferrable(struct sdca_function_data *function, unsigned int reg) in sdca_regmap_deferrable() argument
163 control = function_find_control(function, reg); in sdca_regmap_deferrable()
173 * @function: Pointer to the Function information.
178 int sdca_regmap_mbq_size(struct sdca_function_data *function, unsigned int reg) in sdca_regmap_mbq_size() argument
185 control = function_find_control(function, reg); in sdca_regmap_mbq_size()
196 * @function: Pointer to the Function information, to be parsed.
198 * This function returns the number of DisCo constant Controls present
199 * in a function. Typically this information will be used to populate
207 struct sdca_function_data *function) in sdca_regmap_count_constants() argument
212 for (i = 0; i < function->num_entities; i++) { in sdca_regmap_count_constants()
213 struct sdca_entity *entity = &function->entities[i]; in sdca_regmap_count_constants()
228 * @function: Pointer to the Function information, to be parsed.
232 * This function will populate a regmap struct reg_default array with
233 * the values of the DisCo constants for a given Function. This
241 struct sdca_function_data *function, in sdca_regmap_populate_constants() argument
246 for (i = 0, k = 0; i < function->num_entities; i++) { in sdca_regmap_populate_constants()
247 struct sdca_entity *entity = &function->entities[i]; in sdca_regmap_populate_constants()
258 consts[k].reg = SDW_SDCA_CTL(function->desc->adr, in sdca_regmap_populate_constants()
274 * @regmap: Pointer to the Function register map.
275 * @function: Pointer to the Function information, to be parsed.
277 * This function will write out to the hardware all the DisCo default and
284 struct sdca_function_data *function) in sdca_regmap_write_defaults() argument
289 for (i = 0; i < function->num_entities; i++) { in sdca_regmap_write_defaults()
290 struct sdca_entity *entity = &function->entities[i]; in sdca_regmap_write_defaults()
306 reg = SDW_SDCA_CTL(function->desc->adr, entity->id, in sdca_regmap_write_defaults()