Lines Matching refs:rets
921 int rets; in __mei_cl_disconnect() local
929 rets = -ENOMEM; in __mei_cl_disconnect()
934 rets = mei_cl_send_disconnect(cl, cb); in __mei_cl_disconnect()
935 if (rets) { in __mei_cl_disconnect()
948 rets = cl->status; in __mei_cl_disconnect()
952 rets = -ETIME; in __mei_cl_disconnect()
958 if (!rets) in __mei_cl_disconnect()
962 return rets; in __mei_cl_disconnect()
977 int rets; in mei_cl_disconnect() local
1001 rets = pm_runtime_get(dev->dev); in mei_cl_disconnect()
1002 if (rets < 0 && rets != -EINPROGRESS) { in mei_cl_disconnect()
1004 cl_err(dev, cl, "rpm: get failed %d\n", rets); in mei_cl_disconnect()
1005 return rets; in mei_cl_disconnect()
1008 rets = __mei_cl_disconnect(cl); in mei_cl_disconnect()
1014 return rets; in mei_cl_disconnect()
1085 int rets; in mei_cl_irq_connect() local
1098 rets = mei_cl_send_connect(cl, cb); in mei_cl_irq_connect()
1099 if (rets) in mei_cl_irq_connect()
1102 return rets; in mei_cl_irq_connect()
1121 int rets; in mei_cl_connect() local
1128 rets = mei_cl_set_connecting(cl, me_cl); in mei_cl_connect()
1129 if (rets) in mei_cl_connect()
1134 rets = 0; in mei_cl_connect()
1138 rets = pm_runtime_get(dev->dev); in mei_cl_connect()
1139 if (rets < 0 && rets != -EINPROGRESS) { in mei_cl_connect()
1141 cl_err(dev, cl, "rpm: get failed %d\n", rets); in mei_cl_connect()
1147 rets = -ENOMEM; in mei_cl_connect()
1153 rets = mei_cl_send_connect(cl, cb); in mei_cl_connect()
1154 if (rets) in mei_cl_connect()
1175 rets = -EFAULT; in mei_cl_connect()
1184 rets = cl->status; in mei_cl_connect()
1196 return rets; in mei_cl_connect()
1520 int rets; in mei_cl_notify_request() local
1535 rets = pm_runtime_get(dev->dev); in mei_cl_notify_request()
1536 if (rets < 0 && rets != -EINPROGRESS) { in mei_cl_notify_request()
1538 cl_err(dev, cl, "rpm: get failed %d\n", rets); in mei_cl_notify_request()
1539 return rets; in mei_cl_notify_request()
1545 rets = -ENOMEM; in mei_cl_notify_request()
1551 rets = -ENODEV; in mei_cl_notify_request()
1568 rets = cl->status; in mei_cl_notify_request()
1576 return rets; in mei_cl_notify_request()
1622 int rets; in mei_cl_notify_get() local
1646 rets = wait_event_interruptible(cl->ev_wait, cl->notify_ev); in mei_cl_notify_get()
1649 if (rets < 0) in mei_cl_notify_get()
1650 return rets; in mei_cl_notify_get()
1671 int rets; in mei_cl_read_start() local
1701 rets = pm_runtime_get(dev->dev); in mei_cl_read_start()
1702 if (rets < 0 && rets != -EINPROGRESS) { in mei_cl_read_start()
1704 cl_err(dev, cl, "rpm: get failed %d\n", rets); in mei_cl_read_start()
1708 rets = 0; in mei_cl_read_start()
1710 rets = mei_hbm_cl_flow_control_req(dev, cl); in mei_cl_read_start()
1711 if (rets < 0) in mei_cl_read_start()
1723 if (rets) in mei_cl_read_start()
1726 return rets; in mei_cl_read_start()
1817 int rets; in mei_cl_irq_write() local
1830 rets = first_chunk ? mei_cl_tx_flow_ctrl_creds(cl) : 1; in mei_cl_irq_write()
1831 if (rets < 0) in mei_cl_irq_write()
1834 if (rets == 0) { in mei_cl_irq_write()
1843 rets = -EOVERFLOW; in mei_cl_irq_write()
1853 rets = PTR_ERR(mei_hdr); in mei_cl_irq_write()
1891 rets = mei_write_message(dev, mei_hdr, hdr_len, data, data_len); in mei_cl_irq_write()
1893 if (rets) in mei_cl_irq_write()
1902 rets = -EIO; in mei_cl_irq_write()
1915 cl->status = rets; in mei_cl_irq_write()
1917 return rets; in mei_cl_irq_write()
1941 ssize_t rets; in mei_cl_write() local
1961 rets = pm_runtime_get(dev->dev); in mei_cl_write()
1962 if (rets < 0 && rets != -EINPROGRESS) { in mei_cl_write()
1964 cl_err(dev, cl, "rpm: get failed %zd\n", rets); in mei_cl_write()
1972 rets = mei_cl_tx_flow_ctrl_creds(cl); in mei_cl_write()
1973 if (rets < 0) in mei_cl_write()
1978 rets = -PTR_ERR(mei_hdr); in mei_cl_write()
1988 if (rets == 0) { in mei_cl_write()
1990 rets = buf_len; in mei_cl_write()
1996 rets = buf_len; in mei_cl_write()
2002 rets = -EOVERFLOW; in mei_cl_write()
2032 rets = mei_write_message(dev, mei_hdr, hdr_len, data, data_len); in mei_cl_write()
2034 if (rets) in mei_cl_write()
2037 rets = mei_cl_tx_flow_ctrl_creds_reduce(cl); in mei_cl_write()
2038 if (rets) in mei_cl_write()
2056 rets = wait_event_interruptible(cl->tx_wait, in mei_cl_write()
2061 if (rets) { in mei_cl_write()
2063 rets = -EINTR; in mei_cl_write()
2067 rets = -EFAULT; in mei_cl_write()
2072 rets = buf_len; in mei_cl_write()
2082 return rets; in mei_cl_write()
2276 int rets; in mei_cl_dma_alloc_and_map() local
2303 rets = pm_runtime_get(dev->dev); in mei_cl_dma_alloc_and_map()
2304 if (rets < 0 && rets != -EINPROGRESS) { in mei_cl_dma_alloc_and_map()
2306 cl_err(dev, cl, "rpm: get failed %d\n", rets); in mei_cl_dma_alloc_and_map()
2307 return rets; in mei_cl_dma_alloc_and_map()
2310 rets = mei_cl_dma_alloc(cl, buffer_id, size); in mei_cl_dma_alloc_and_map()
2311 if (rets) { in mei_cl_dma_alloc_and_map()
2313 return rets; in mei_cl_dma_alloc_and_map()
2318 rets = -ENOMEM; in mei_cl_dma_alloc_and_map()
2324 rets = -ENODEV; in mei_cl_dma_alloc_and_map()
2339 rets = cl->status; in mei_cl_dma_alloc_and_map()
2342 if (rets) in mei_cl_dma_alloc_and_map()
2350 return rets; in mei_cl_dma_alloc_and_map()
2367 int rets; in mei_cl_dma_unmap() local
2386 rets = pm_runtime_get(dev->dev); in mei_cl_dma_unmap()
2387 if (rets < 0 && rets != -EINPROGRESS) { in mei_cl_dma_unmap()
2389 cl_err(dev, cl, "rpm: get failed %d\n", rets); in mei_cl_dma_unmap()
2390 return rets; in mei_cl_dma_unmap()
2395 rets = -ENOMEM; in mei_cl_dma_unmap()
2401 rets = -ENODEV; in mei_cl_dma_unmap()
2416 rets = cl->status; in mei_cl_dma_unmap()
2418 if (!rets) in mei_cl_dma_unmap()
2426 return rets; in mei_cl_dma_unmap()