Lines Matching refs:module

90 static int skl_get_pvtid_map(struct uuid_module *module, int instance_id)  in skl_get_pvtid_map()  argument
94 for (pvt_id = 0; pvt_id < module->max_instance; pvt_id++) { in skl_get_pvtid_map()
95 if (module->instance_id[pvt_id] == instance_id) in skl_get_pvtid_map()
104 struct uuid_module *module; in skl_get_pvt_instance_id_map() local
106 list_for_each_entry(module, &skl->uuid_list, list) { in skl_get_pvt_instance_id_map()
107 if (module->id == module_id) in skl_get_pvt_instance_id_map()
108 return skl_get_pvtid_map(module, instance_id); in skl_get_pvt_instance_id_map()
115 static inline int skl_getid_32(struct uuid_module *module, u64 *val, in skl_getid_32() argument
121 max_inst = module->max_instance; in skl_getid_32()
136 static inline int skl_pvtid_128(struct uuid_module *module) in skl_pvtid_128() argument
144 pvt_id = skl_getid_32(module, &module->pvt_id[j], in skl_pvtid_128()
150 if ((word1_mask + word2_mask) >= module->max_instance) in skl_pvtid_128()
155 if (word2_mask >= module->max_instance) in skl_pvtid_128()
174 struct uuid_module *module; in skl_get_pvt_id() local
177 list_for_each_entry(module, &skl->uuid_list, list) { in skl_get_pvt_id()
178 if (guid_equal(uuid_mod, &module->uuid)) { in skl_get_pvt_id()
180 pvt_id = skl_pvtid_128(module); in skl_get_pvt_id()
182 module->instance_id[pvt_id] = instance_id; in skl_get_pvt_id()
205 struct uuid_module *module; in skl_put_pvt_id() local
207 list_for_each_entry(module, &skl->uuid_list, list) { in skl_put_pvt_id()
208 if (guid_equal(uuid_mod, &module->uuid)) { in skl_put_pvt_id()
215 module->pvt_id[i] &= ~(1 << (*pvt_id)); in skl_put_pvt_id()
237 struct uuid_module *module; in snd_skl_parse_uuids() local
287 module = kzalloc(sizeof(*module), GFP_KERNEL); in snd_skl_parse_uuids()
288 if (!module) { in snd_skl_parse_uuids()
293 import_guid(&module->uuid, mod_entry->uuid); in snd_skl_parse_uuids()
295 module->id = (i | (index << 12)); in snd_skl_parse_uuids()
296 module->is_loadable = mod_entry->type.load_type; in snd_skl_parse_uuids()
297 module->max_instance = mod_entry->instance_max_count; in snd_skl_parse_uuids()
299 module->instance_id = devm_kzalloc(ctx->dev, size, GFP_KERNEL); in snd_skl_parse_uuids()
300 if (!module->instance_id) { in snd_skl_parse_uuids()
305 list_add_tail(&module->list, &skl->uuid_list); in snd_skl_parse_uuids()
309 &module->uuid, module->id, module->is_loadable); in snd_skl_parse_uuids()