Lines Matching refs:epnt

31 	struct nhlt_endpoint *epnt;  in intel_nhlt_get_dmic_geo()  local
47 for (j = 0, epnt = nhlt->desc; j < nhlt->endpoint_count; j++, in intel_nhlt_get_dmic_geo()
48 epnt = (struct nhlt_endpoint *)((u8 *)epnt + epnt->length)) { in intel_nhlt_get_dmic_geo()
50 if (epnt->linktype != NHLT_LINK_DMIC) in intel_nhlt_get_dmic_geo()
53 cfg = (struct nhlt_dmic_array_config *)(epnt->config.caps); in intel_nhlt_get_dmic_geo()
54 fmt_configs = (struct nhlt_fmt *)(epnt->config.caps + epnt->config.size); in intel_nhlt_get_dmic_geo()
121 struct nhlt_endpoint *epnt; in intel_nhlt_has_endpoint_type() local
127 epnt = (struct nhlt_endpoint *)nhlt->desc; in intel_nhlt_has_endpoint_type()
129 if (epnt->linktype == link_type) in intel_nhlt_has_endpoint_type()
132 epnt = (struct nhlt_endpoint *)((u8 *)epnt + epnt->length); in intel_nhlt_has_endpoint_type()
140 struct nhlt_endpoint *epnt; in intel_nhlt_ssp_endpoint_mask() local
147 epnt = (struct nhlt_endpoint *)nhlt->desc; in intel_nhlt_ssp_endpoint_mask()
149 if (epnt->linktype == NHLT_LINK_SSP && epnt->device_type == device_type) { in intel_nhlt_ssp_endpoint_mask()
151 ssp_mask |= BIT(epnt->virtual_bus_id); in intel_nhlt_ssp_endpoint_mask()
153 epnt = (struct nhlt_endpoint *)((u8 *)epnt + epnt->length); in intel_nhlt_ssp_endpoint_mask()
173 struct nhlt_endpoint *epnt; in intel_nhlt_ssp_mclk_mask() local
182 epnt = (struct nhlt_endpoint *)nhlt->desc; in intel_nhlt_ssp_mclk_mask()
186 if (epnt->linktype == NHLT_LINK_SSP && in intel_nhlt_ssp_mclk_mask()
187 epnt->device_type == NHLT_DEVICE_I2S && in intel_nhlt_ssp_mclk_mask()
188 epnt->virtual_bus_id == ssp_num) { in intel_nhlt_ssp_mclk_mask()
190 fmt = (struct nhlt_fmt *)(epnt->config.caps + epnt->config.size); in intel_nhlt_ssp_mclk_mask()
228 epnt = (struct nhlt_endpoint *)((u8 *)epnt + epnt->length); in intel_nhlt_ssp_mclk_mask()
272 static bool nhlt_check_ep_match(struct device *dev, struct nhlt_endpoint *epnt, in nhlt_check_ep_match() argument
276 epnt->virtual_bus_id, epnt->linktype, in nhlt_check_ep_match()
277 epnt->direction, epnt->device_type); in nhlt_check_ep_match()
279 if ((epnt->virtual_bus_id != bus_id) || in nhlt_check_ep_match()
280 (epnt->linktype != link_type) || in nhlt_check_ep_match()
281 (epnt->direction != dir)) in nhlt_check_ep_match()
285 return epnt->linktype == NHLT_LINK_DMIC || in nhlt_check_ep_match()
286 epnt->device_type == dev_type; in nhlt_check_ep_match()
295 struct nhlt_endpoint *epnt; in intel_nhlt_get_endpoint_blob() local
328 epnt = (struct nhlt_endpoint *)nhlt->desc; in intel_nhlt_get_endpoint_blob()
331 if (nhlt_check_ep_match(dev, epnt, bus_id, link_type, dir, dev_type)) { in intel_nhlt_get_endpoint_blob()
332 fmt = (struct nhlt_fmt *)(epnt->config.caps + epnt->config.size); in intel_nhlt_get_endpoint_blob()
340 epnt = (struct nhlt_endpoint *)((u8 *)epnt + epnt->length); in intel_nhlt_get_endpoint_blob()