Lines Matching defs:epnt
31 struct nhlt_endpoint *epnt;
47 for (j = 0, epnt = nhlt->desc; j < nhlt->endpoint_count; j++,
48 epnt = (struct nhlt_endpoint *)((u8 *)epnt + epnt->length)) {
50 if (epnt->linktype != NHLT_LINK_DMIC)
53 cfg = (struct nhlt_dmic_array_config *)(epnt->config.caps);
54 fmt_configs = (struct nhlt_fmt *)(epnt->config.caps + epnt->config.size);
121 struct nhlt_endpoint *epnt;
127 epnt = (struct nhlt_endpoint *)nhlt->desc;
129 if (epnt->linktype == link_type)
132 epnt = (struct nhlt_endpoint *)((u8 *)epnt + epnt->length);
140 struct nhlt_endpoint *epnt;
147 epnt = (struct nhlt_endpoint *)nhlt->desc;
149 if (epnt->linktype == NHLT_LINK_SSP && epnt->device_type == device_type) {
151 ssp_mask |= BIT(epnt->virtual_bus_id);
153 epnt = (struct nhlt_endpoint *)((u8 *)epnt + epnt->length);
173 struct nhlt_endpoint *epnt;
182 epnt = (struct nhlt_endpoint *)nhlt->desc;
186 if (epnt->linktype == NHLT_LINK_SSP &&
187 epnt->device_type == NHLT_DEVICE_I2S &&
188 epnt->virtual_bus_id == ssp_num) {
190 fmt = (struct nhlt_fmt *)(epnt->config.caps + epnt->config.size);
228 epnt = (struct nhlt_endpoint *)((u8 *)epnt + epnt->length);
272 static bool nhlt_check_ep_match(struct device *dev, struct nhlt_endpoint *epnt,
276 epnt->virtual_bus_id, epnt->linktype,
277 epnt->direction, epnt->device_type);
279 if ((epnt->virtual_bus_id != bus_id) ||
280 (epnt->linktype != link_type) ||
281 (epnt->direction != dir))
285 return epnt->linktype == NHLT_LINK_DMIC ||
286 epnt->device_type == dev_type;
295 struct nhlt_endpoint *epnt;
328 epnt = (struct nhlt_endpoint *)nhlt->desc;
331 if (nhlt_check_ep_match(dev, epnt, bus_id, link_type, dir, dev_type)) {
332 fmt = (struct nhlt_fmt *)(epnt->config.caps + epnt->config.size);
340 epnt = (struct nhlt_endpoint *)((u8 *)epnt + epnt->length);
350 struct nhlt_endpoint *epnt;
359 epnt = (struct nhlt_endpoint *)nhlt->desc;
362 if (epnt->linktype == NHLT_LINK_SSP &&
363 epnt->virtual_bus_id == virtual_bus_id) {
365 epnt->device_type);
366 return epnt->device_type;
369 epnt = (struct nhlt_endpoint *)((u8 *)epnt + epnt->length);
376 epnt = (struct nhlt_endpoint *)nhlt->desc;
380 i, epnt->linktype, epnt->virtual_bus_id,
381 epnt->direction, epnt->device_type);
383 epnt = (struct nhlt_endpoint *)((u8 *)epnt + epnt->length);