Lines Matching refs:rets
926 int rets; in __mei_cl_disconnect() local
934 rets = -ENOMEM; in __mei_cl_disconnect()
939 rets = mei_cl_send_disconnect(cl, cb); in __mei_cl_disconnect()
940 if (rets) { in __mei_cl_disconnect()
953 rets = cl->status; in __mei_cl_disconnect()
957 rets = -ETIME; in __mei_cl_disconnect()
963 if (!rets) in __mei_cl_disconnect()
967 return rets; in __mei_cl_disconnect()
982 int rets; in mei_cl_disconnect() local
1006 rets = pm_runtime_get(dev->dev); in mei_cl_disconnect()
1007 if (rets < 0 && rets != -EINPROGRESS) { in mei_cl_disconnect()
1009 cl_err(dev, cl, "rpm: get failed %d\n", rets); in mei_cl_disconnect()
1010 return rets; in mei_cl_disconnect()
1013 rets = __mei_cl_disconnect(cl); in mei_cl_disconnect()
1019 return rets; in mei_cl_disconnect()
1090 int rets; in mei_cl_irq_connect() local
1103 rets = mei_cl_send_connect(cl, cb); in mei_cl_irq_connect()
1104 if (rets) in mei_cl_irq_connect()
1107 return rets; in mei_cl_irq_connect()
1126 int rets; in mei_cl_connect() local
1133 rets = mei_cl_set_connecting(cl, me_cl); in mei_cl_connect()
1134 if (rets) in mei_cl_connect()
1139 rets = 0; in mei_cl_connect()
1143 rets = pm_runtime_get(dev->dev); in mei_cl_connect()
1144 if (rets < 0 && rets != -EINPROGRESS) { in mei_cl_connect()
1146 cl_err(dev, cl, "rpm: get failed %d\n", rets); in mei_cl_connect()
1152 rets = -ENOMEM; in mei_cl_connect()
1158 rets = mei_cl_send_connect(cl, cb); in mei_cl_connect()
1159 if (rets) in mei_cl_connect()
1180 rets = -EFAULT; in mei_cl_connect()
1189 rets = cl->status; in mei_cl_connect()
1201 return rets; in mei_cl_connect()
1527 int rets; in mei_cl_notify_request() local
1542 rets = pm_runtime_get(dev->dev); in mei_cl_notify_request()
1543 if (rets < 0 && rets != -EINPROGRESS) { in mei_cl_notify_request()
1545 cl_err(dev, cl, "rpm: get failed %d\n", rets); in mei_cl_notify_request()
1546 return rets; in mei_cl_notify_request()
1552 rets = -ENOMEM; in mei_cl_notify_request()
1558 rets = -ENODEV; in mei_cl_notify_request()
1575 rets = cl->status; in mei_cl_notify_request()
1583 return rets; in mei_cl_notify_request()
1629 int rets; in mei_cl_notify_get() local
1653 rets = wait_event_interruptible(cl->ev_wait, cl->notify_ev); in mei_cl_notify_get()
1656 if (rets < 0) in mei_cl_notify_get()
1657 return rets; in mei_cl_notify_get()
1678 int rets; in mei_cl_read_start() local
1708 rets = pm_runtime_get(dev->dev); in mei_cl_read_start()
1709 if (rets < 0 && rets != -EINPROGRESS) { in mei_cl_read_start()
1711 cl_err(dev, cl, "rpm: get failed %d\n", rets); in mei_cl_read_start()
1715 rets = 0; in mei_cl_read_start()
1717 rets = mei_hbm_cl_flow_control_req(dev, cl); in mei_cl_read_start()
1718 if (rets < 0) in mei_cl_read_start()
1730 if (rets) in mei_cl_read_start()
1733 return rets; in mei_cl_read_start()
1851 int rets; in mei_cl_irq_write() local
1864 rets = first_chunk ? mei_cl_tx_flow_ctrl_creds(cl) : 1; in mei_cl_irq_write()
1865 if (rets < 0) in mei_cl_irq_write()
1868 if (rets == 0) { in mei_cl_irq_write()
1879 rets = -EOVERFLOW; in mei_cl_irq_write()
1889 rets = PTR_ERR(mei_hdr); in mei_cl_irq_write()
1924 rets = mei_write_message(dev, mei_hdr, hdr_len, data, data_len); in mei_cl_irq_write()
1926 if (rets) in mei_cl_irq_write()
1935 rets = -EIO; in mei_cl_irq_write()
1948 cl->status = rets; in mei_cl_irq_write()
1950 return rets; in mei_cl_irq_write()
1977 ssize_t rets; in mei_cl_write() local
1997 rets = pm_runtime_get(dev->dev); in mei_cl_write()
1998 if (rets < 0 && rets != -EINPROGRESS) { in mei_cl_write()
2000 cl_err(dev, cl, "rpm: get failed %zd\n", rets); in mei_cl_write()
2008 rets = mei_cl_tx_flow_ctrl_creds(cl); in mei_cl_write()
2009 if (rets < 0) in mei_cl_write()
2014 rets = PTR_ERR(mei_hdr); in mei_cl_write()
2021 if (rets == 0) { in mei_cl_write()
2023 rets = buf_len; in mei_cl_write()
2029 rets = buf_len; in mei_cl_write()
2065 rets = mei_write_message(dev, mei_hdr, hdr_len, data, data_len); in mei_cl_write()
2067 if (rets) in mei_cl_write()
2070 rets = mei_cl_tx_flow_ctrl_creds_reduce(cl); in mei_cl_write()
2071 if (rets) in mei_cl_write()
2089 rets = wait_event_interruptible_timeout(cl->tx_wait, in mei_cl_write()
2095 if (rets == 0) { in mei_cl_write()
2096 rets = -ETIME; in mei_cl_write()
2101 if (rets > 0) in mei_cl_write()
2102 rets = 0; in mei_cl_write()
2103 if (rets) { in mei_cl_write()
2105 rets = -EINTR; in mei_cl_write()
2109 rets = -EFAULT; in mei_cl_write()
2114 rets = buf_len; in mei_cl_write()
2124 return rets; in mei_cl_write()
2319 int rets; in mei_cl_dma_alloc_and_map() local
2346 rets = pm_runtime_get(dev->dev); in mei_cl_dma_alloc_and_map()
2347 if (rets < 0 && rets != -EINPROGRESS) { in mei_cl_dma_alloc_and_map()
2349 cl_err(dev, cl, "rpm: get failed %d\n", rets); in mei_cl_dma_alloc_and_map()
2350 return rets; in mei_cl_dma_alloc_and_map()
2353 rets = mei_cl_dma_alloc(cl, buffer_id, size); in mei_cl_dma_alloc_and_map()
2354 if (rets) { in mei_cl_dma_alloc_and_map()
2356 return rets; in mei_cl_dma_alloc_and_map()
2361 rets = -ENOMEM; in mei_cl_dma_alloc_and_map()
2367 rets = -ENODEV; in mei_cl_dma_alloc_and_map()
2384 rets = cl->status; in mei_cl_dma_alloc_and_map()
2387 if (rets) in mei_cl_dma_alloc_and_map()
2395 return rets; in mei_cl_dma_alloc_and_map()
2412 int rets; in mei_cl_dma_unmap() local
2431 rets = pm_runtime_get(dev->dev); in mei_cl_dma_unmap()
2432 if (rets < 0 && rets != -EINPROGRESS) { in mei_cl_dma_unmap()
2434 cl_err(dev, cl, "rpm: get failed %d\n", rets); in mei_cl_dma_unmap()
2435 return rets; in mei_cl_dma_unmap()
2440 rets = -ENOMEM; in mei_cl_dma_unmap()
2446 rets = -ENODEV; in mei_cl_dma_unmap()
2463 rets = cl->status; in mei_cl_dma_unmap()
2465 if (!rets) in mei_cl_dma_unmap()
2473 return rets; in mei_cl_dma_unmap()