Lines Matching defs:res

67     zx_status_t res = Bind(hda_dev, "intel-sst-dsp");
69 res = SetupDspDevice();
70 if (res != ZX_OK) {
71 return res;
74 res = ParseNhlt();
75 if (res != ZX_OK) {
76 return res;
87 LOG(ERROR, "Failed to create init thread (res = %d)\n", c11_res);
96 zx_status_t res = device_get_protocol(codec_device(), ZX_PROTOCOL_IHDA_DSP,
98 if (res != ZX_OK) {
99 LOG(ERROR, "IHDA DSP device does not support IHDA DSP protocol (err %d)\n", res);
100 return res;
115 res = ihda_dsp_get_mmio(&ihda_dsp_, bar_vmo.reset_and_get_address(), &bar_size);
116 if (res != ZX_OK) {
117 LOG(ERROR, "Failed to fetch DSP register VMO (err %u)\n", res);
118 return res;
124 return res;
129 res = bar_vmo.set_cache_policy(ZX_CACHE_POLICY_UNCACHED_DEVICE);
130 if (res != ZX_OK) {
131 LOG(ERROR, "Error attempting to set cache policy for PCI registers (res %d)\n", res);
132 return res;
138 res = mapped_regs_.Map(bar_vmo, 0, bar_size, CPU_MAP_FLAGS);
139 if (res != ZX_OK) {
140 LOG(ERROR, "Error attempting to map registers (res %d)\n", res);
141 return res;
153 res = ihda_dsp_get_bti(&ihda_dsp_, bti.reset_and_get_address());
154 if (res != ZX_OK) {
155 LOG(ERROR, "Failed to get BTI handle for IHDA DSP (res %d)\n", res);
156 return res;
167 res = ihda_dsp_irq_enable(&ihda_dsp_,
172 if (res != ZX_OK) {
173 LOG(ERROR, "Failed to set DSP interrupt callback (res %d)\n", res);
174 return res;
182 zx_status_t res = device_get_metadata(codec_device(), MD_KEY_NHLT,
184 if (res != ZX_OK) {
185 LOG(ERROR, "Failed to fetch NHLT (res %d)\n", res);
186 return res;
531 LOG(ERROR, "Failed to pin pages for DSP firmware (res %d)\n", st);