Lines Matching defs:res
128 zx_status_t res = ret->PublishDevice();
129 if (res != ZX_OK) {
130 GLOBAL_LOG(ERROR, "Failed to publish DSP device (res %d)\n", res);
242 zx_status_t res = pci_get_bar(controller_.pci(), 4u, &bar_info);
243 if (res != ZX_OK) {
244 LOG(ERROR, "Error attempting to fetch registers from PCI (res %d)\n", res);
245 return res;
262 zx_status_t res = pci_bti_->initiator().duplicate(ZX_RIGHT_SAME_RIGHTS, &bti);
263 if (res != ZX_OK) {
264 LOG(ERROR, "Error duplicating BTI for DSP (res %d)\n", res);
265 return res;
332 zx_status_t res;
333 res = CreateAndActivateChannel(default_domain_,
338 if (res == ZX_OK) {
345 return res;
370 zx_status_t res;
383 res = channel->Read(&req, sizeof(req), &req_size);
384 if (res != ZX_OK) {
385 LOG(TRACE, "Failed to read client request (res %d)\n", res);
386 return res;
544 zx_status_t res = stream->SetStreamFormat(default_domain_,
547 if (res != ZX_OK) {
548 LOG(TRACE, "Failed to set stream format 0x%04hx for stream %hu (res %d)\n",
549 req.format, req.stream_id, res);
550 return res;
557 res = channel->Write(&resp, sizeof(resp), fbl::move(client_channel));
559 if (res != ZX_OK)
560 LOG(TRACE, "Failed to send stream channel back to codec driver (res %d)\n", res);
562 return res;