Lines Matching defs:function

21 function_find_entity(struct sdca_function_data *function, unsigned int reg)
25 for (i = 0; i < function->num_entities; i++)
26 if (SDW_SDCA_CTL_ENT(reg) == function->entities[i].id)
27 return &function->entities[i];
46 function_find_control(struct sdca_function_data *function, unsigned int reg)
50 entity = function_find_entity(function, reg);
59 * @function: Pointer to the Function information.
64 bool sdca_regmap_readable(struct sdca_function_data *function, unsigned int reg)
71 control = function_find_control(function, reg);
97 * @function: Pointer to the Function information.
102 bool sdca_regmap_writeable(struct sdca_function_data *function, unsigned int reg)
109 control = function_find_control(function, reg);
134 * @function: Pointer to the Function information.
139 bool sdca_regmap_volatile(struct sdca_function_data *function, unsigned int reg)
146 control = function_find_control(function, reg);
163 * @function: Pointer to the Function information.
168 bool sdca_regmap_deferrable(struct sdca_function_data *function, unsigned int reg)
175 control = function_find_control(function, reg);
185 * @function: Pointer to the Function information.
190 int sdca_regmap_mbq_size(struct sdca_function_data *function, unsigned int reg)
197 control = function_find_control(function, reg);
208 * @function: Pointer to the Function information, to be parsed.
210 * This function returns the number of DisCo constant Controls present
211 * in a function. Typically this information will be used to populate
219 struct sdca_function_data *function)
224 for (i = 0; i < function->num_entities; i++) {
225 struct sdca_entity *entity = &function->entities[i];
240 * @function: Pointer to the Function information, to be parsed.
244 * This function will populate a regmap struct reg_default array with
253 struct sdca_function_data *function,
258 for (i = 0, k = 0; i < function->num_entities; i++) {
259 struct sdca_entity *entity = &function->entities[i];
271 consts[k].reg = SDW_SDCA_CTL(function->desc->adr,
289 * @function: Pointer to the Function information, to be parsed.
291 * This function will write out to the hardware all the DisCo default and
298 struct sdca_function_data *function)
303 for (i = 0; i < function->num_entities; i++) {
304 struct sdca_entity *entity = &function->entities[i];
321 reg = SDW_SDCA_CTL(function->desc->adr, entity->id,