if (!dev_ctxt)
status = -EFAULT;
- if (DSP_FAILED(status))
+ if (status)
goto func_end;
if (pchnl->chnl_type == CHNL_PCPY && pchnl->chnl_id > 1 && host_buf) {
} else {
status = -EFAULT;
}
- if (DSP_FAILED(status))
+ if (status)
goto func_end;
/* Mark this channel as cancelled, to prevent further IORequests or
kfree(pchnl);
pchnl = NULL;
}
- DBC_ENSURE(DSP_FAILED(status) || !pchnl);
+ DBC_ENSURE(status || !pchnl);
return status;
}
status = -ENOMEM;
}
- if (DSP_FAILED(status)) {
+ if (status) {
bridge_chnl_destroy(chnl_mgr_obj);
*channel_mgr = NULL;
} else {
status =
bridge_chnl_close(chnl_mgr_obj->ap_channel
[chnl_id]);
- if (DSP_FAILED(status))
+ if (status)
dev_dbg(bridge, "%s: Error status 0x%x\n",
__func__, status);
}
while (!LST_IS_EMPTY(pchnl->pio_requests) && !status) {
status = bridge_chnl_get_ioc(chnl_obj,
timeout, &chnl_ioc_obj);
- if (DSP_FAILED(status))
+ if (status)
continue;
if (chnl_ioc_obj.status & CHNL_IOCSTATTIMEOUT)
pchnl->dw_state &= ~CHNL_STATECANCEL;
}
}
- DBC_ENSURE(DSP_FAILED(status) || LST_IS_EMPTY(pchnl->pio_requests));
+ DBC_ENSURE(status || LST_IS_EMPTY(pchnl->pio_requests));
return status;
}
if (!dev_ctxt)
status = -EFAULT;
- if (DSP_FAILED(status))
+ if (status)
goto func_end;
ioc.status = CHNL_IOCSTATCOMPLETE;
}
}
}
- if (DSP_FAILED(status))
+ if (status)
goto func_end;
DBC_ASSERT(ch_id < chnl_mgr_obj->max_channels);
}
}
- if (DSP_FAILED(status)) {
+ if (status) {
/* Free memory */
if (pchnl->pio_completions) {
free_chirp_list(pchnl->pio_completions);
status = -EIO;
}
func_end:
- if (DSP_FAILED(status)) {
+ if (status) {
/* Cleanup */
bridge_io_destroy(pio_mgr);
if (io_man)
/* Get start and length of channel part of shared memory */
status = cod_get_sym_value(cod_man, CHNL_SHARED_BUFFER_BASE_SYM,
&ul_shm_base);
- if (DSP_FAILED(status)) {
+ if (status) {
status = -EFAULT;
goto func_end;
}
status = cod_get_sym_value(cod_man, CHNL_SHARED_BUFFER_LIMIT_SYM,
&ul_shm_limit);
- if (DSP_FAILED(status)) {
+ if (status) {
status = -EFAULT;
goto func_end;
}
status = cod_get_sym_value(cod_man, SHM0_SHARED_END_SYM,
&shm0_end);
#endif
- if (DSP_FAILED(status))
+ if (status)
status = -EFAULT;
}
if (!status) {
status =
cod_get_sym_value(cod_man, DYNEXTBASE, &ul_dyn_ext_base);
- if (DSP_FAILED(status))
+ if (status)
status = -EFAULT;
}
if (!status) {
status = cod_get_sym_value(cod_man, EXTEND, &ul_ext_end);
- if (DSP_FAILED(status))
+ if (status)
status = -EFAULT;
}
if (!status) {
status = -ENOMEM;
}
}
- if (DSP_FAILED(status))
+ if (status)
goto func_end;
pa_curr = ul_gpp_pa;
pa_curr, va_curr,
page_size[i], map_attrs,
NULL);
- if (DSP_FAILED(status))
+ if (status)
goto func_end;
pa_curr += page_size[i];
va_curr += page_size[i];
ae_proc[ndx].ul_gpp_va,
ae_proc[ndx].ul_dsp_va *
hio_mgr->word_size, page_size[i]);
- if (DSP_FAILED(status))
+ if (status)
goto func_end;
}
pa_curr += page_size[i];
NULL);
}
}
- if (DSP_FAILED(status))
+ if (status)
goto func_end;
}
(hio_mgr->hbridge_context, l4_peripheral_table[i].phys_addr,
l4_peripheral_table[i].dsp_virt_addr, HW_PAGE_SIZE4KB,
map_attrs, NULL);
- if (DSP_FAILED(status))
+ if (status)
goto func_end;
i++;
}
hio_mgr->intf_fxns->pfn_dev_cntrl(hio_mgr->hbridge_context,
BRDIOCTL_SETMMUCONFIG,
ae_proc);
- if (DSP_FAILED(status))
+ if (status)
goto func_end;
ul_shm_base = hio_mgr->ext_proc_info.ty_tlb[0].ul_gpp_phys;
ul_shm_base += ul_shm_base_offset;
/* Get the start address of trace buffer */
status = cod_get_sym_value(cod_man, SYS_PUTCBEG,
&hio_mgr->ul_trace_buffer_begin);
- if (DSP_FAILED(status)) {
+ if (status) {
status = -EFAULT;
goto func_end;
}
/* Get the end address of trace buffer */
status = cod_get_sym_value(cod_man, SYS_PUTCEND,
&hio_mgr->ul_trace_buffer_end);
- if (DSP_FAILED(status)) {
+ if (status) {
status = -EFAULT;
goto func_end;
}
/* Get the current address of DSP write pointer */
status = cod_get_sym_value(cod_man, BRIDGE_SYS_PUTC_CURRENT,
&hio_mgr->ul_trace_buffer_current);
- if (DSP_FAILED(status)) {
+ if (status) {
status = -EFAULT;
goto func_end;
}
status = pio_mgr->intf_fxns->
pfn_dev_cntrl(pio_mgr->hbridge_context,
BRDIOCTL_PWR_HIBERNATE, parg);
- if (DSP_FAILED(status))
+ if (status)
pr_err("%s: hibernate cmd failed 0x%x\n",
__func__, status);
} else if (parg[0] == MBX_PM_OPP_REQ) {
status = pio_mgr->intf_fxns->
pfn_dev_cntrl(pio_mgr->hbridge_context,
BRDIOCTL_CONSTRAINT_REQUEST, parg);
- if (DSP_FAILED(status))
+ if (status)
dev_dbg(bridge, "PM: Failed to set constraint "
- "= 0x%x \n", parg[1]);
+ "= 0x%x\n", parg[1]);
} else {
dev_dbg(bridge, "PM: clk control value of msg = 0x%x\n",
parg[0]);
status = pio_mgr->intf_fxns->
pfn_dev_cntrl(pio_mgr->hbridge_context,
BRDIOCTL_CLK_CTRL, parg);
- if (DSP_FAILED(status))
+ if (status)
dev_dbg(bridge, "PM: Failed to ctrl the DSP clk"
"= 0x%x\n", *parg);
}
status = cod_get_sym_value(cod_mgr, COD_TRACECURPOS,
&trace_cur_pos);
- if (DSP_FAILED(status))
+ if (status)
goto func_end;
ul_num_bytes = (ul_trace_end - ul_trace_begin);
ul_num_words = ul_num_bytes * ul_word_size;
status = dev_get_intf_fxns(dev_obj, &intf_fxns);
- if (DSP_FAILED(status))
+ if (status)
goto func_end;
psz_buf = kzalloc(ul_num_bytes + 2, GFP_ATOMIC);
(u8 *)psz_buf, (u32)ul_trace_begin,
ul_num_bytes, 0);
- if (DSP_FAILED(status))
+ if (status)
goto func_end;
/* Pack and do newline conversion */
status = (*intf_fxns->pfn_brd_read)(pbridge_context,
(u8 *)&trace_cur_pos, (u32)trace_cur_pos,
4, 0);
- if (DSP_FAILED(status))
+ if (status)
goto func_end;
/* Pack and do newline conversion */
pr_info("DSP Trace Buffer Begin:\n"
status = -ENOMEM;
}
func_end:
- if (DSP_FAILED(status))
+ if (status)
dev_dbg(bridge, "%s Failed, status 0x%x\n", __func__, status);
return status;
}
cod_get_sym_value(code_mgr, COD_TRACEBEG, &trace_begin);
pr_debug("%s: trace_begin Value 0x%x\n",
__func__, trace_begin);
- if (DSP_FAILED(status))
+ if (status)
pr_debug("%s: Failed on cod_get_sym_value.\n",
__func__);
}
(u8 *)&mmu_fault_dbg_info, (u32)trace_begin,
sizeof(mmu_fault_dbg_info), 0);
- if (DSP_FAILED(status))
+ if (status)
break;
poll_cnt++;
status = (*intf_fxns->pfn_brd_read)(bridge_context,
(u8 *)buffer, (u32)trace_begin,
total_size, 0);
- if (DSP_FAILED(status)) {
+ if (status) {
pr_debug("%s: Failed to Read Trace Buffer.\n",
__func__);
goto func_end;
status =
cod_get_sym_value(code_mgr, DYNEXTBASE, &dyn_ext_base);
- if (DSP_FAILED(status)) {
+ if (status) {
status = -EFAULT;
goto func_end;
}
int status = 0;
status = dev_get_intf_fxns(dev_object, &intf_fxns);
- if (DSP_FAILED(status)) {
+ if (status) {
pr_debug("%s: Failed on dev_get_intf_fxns.\n", __func__);
goto func_end;
}
/* Lookup the address of the modules_header structure */
status = cod_get_sym_value(code_mgr, "_DLModules", &module_dsp_addr);
- if (DSP_FAILED(status)) {
+ if (status) {
pr_debug("%s: Failed on cod_get_sym_value for _DLModules.\n",
__func__);
goto func_end;
status = (*intf_fxns->pfn_brd_read)(bridge_context, (u8 *) &modules_hdr,
(u32) module_dsp_addr, sizeof(modules_hdr), 0);
- if (DSP_FAILED(status)) {
+ if (status) {
pr_debug("%s: Failed failed to read modules header.\n",
__func__);
goto func_end;
status = (*intf_fxns->pfn_brd_read)(bridge_context,
(u8 *)module_struct, module_dsp_addr, module_size, 0);
- if (DSP_FAILED(status)) {
+ if (status) {
pr_debug(
"%s: Failed to read dll_module stuct for 0x%x.\n",
__func__, module_dsp_addr);