Lines Matching refs:status
18 static const char *mei_hbm_status_str(enum mei_hbm_status status)
20 #define MEI_HBM_STATUS(status) case MEI_HBMS_##status: return #status
21 switch (status) {
35 static const char *mei_cl_conn_status_str(enum mei_cl_connect_status status)
37 #define MEI_CL_CS(status) case MEI_CL_CONN_##status: return #status
38 switch (status) {
69 * status to error code
71 * @status: client connect response status
75 static int mei_cl_conn_status_to_errno(enum mei_cl_connect_status status)
77 switch (status) {
428 * @status: response status
432 static int mei_hbm_add_cl_resp(struct mei_device *dev, u8 addr, u8 status)
445 resp.status = status;
466 u8 status = MEI_HBMS_SUCCESS;
473 status = !MEI_HBMS_SUCCESS;
478 return mei_hbm_add_cl_resp(dev, req->me_addr, status);
541 cl_dbg(dev, cl, "hbm: notify start response status=%d\n", rs->status);
543 if (rs->status == MEI_HBMS_SUCCESS ||
544 rs->status == MEI_HBMS_ALREADY_STARTED) {
546 cl->status = 0;
548 cl->status = -EINVAL;
567 cl_dbg(dev, cl, "hbm: notify stop response status=%d\n", rs->status);
569 if (rs->status == MEI_HBMS_SUCCESS ||
570 rs->status == MEI_HBMS_NOT_STARTED) {
572 cl->status = 0;
575 cl->status = -EINVAL;
814 cl_dbg(dev, cl, "hbm: disconnect response status=%d\n", rs->status);
816 if (rs->status == MEI_CL_DISCONN_SUCCESS)
818 cl->status = 0;
851 cl_dbg(dev, cl, "hbm: connect response status=%s\n",
852 mei_cl_conn_status_str(rs->status));
854 if (rs->status == MEI_CL_CONN_SUCCESS)
858 if (rs->status == MEI_CL_CONN_NOT_FOUND) {
864 cl->status = mei_cl_conn_status_to_errno(rs->status);
1258 if (dma_setup_res->status) {
1259 u8 status = dma_setup_res->status;
1261 if (status == MEI_HBMS_NOT_ALLOWED) {
1265 status,
1266 mei_hbm_status_str(status));
1321 if (props_res->status == MEI_HBMS_CLIENT_NOT_FOUND) {
1324 } else if (props_res->status) {
1325 dev_err(dev->dev, "hbm: properties response: wrong status = %d %s\n",
1326 props_res->status,
1327 mei_hbm_status_str(props_res->status));