Lines Matching refs:rets
924 int rets; in __mei_cl_disconnect() local
932 rets = -ENOMEM; in __mei_cl_disconnect()
937 rets = mei_cl_send_disconnect(cl, cb); in __mei_cl_disconnect()
938 if (rets) { in __mei_cl_disconnect()
951 rets = cl->status; in __mei_cl_disconnect()
955 rets = -ETIME; in __mei_cl_disconnect()
961 if (!rets) in __mei_cl_disconnect()
965 return rets; in __mei_cl_disconnect()
980 int rets; in mei_cl_disconnect() local
1004 rets = pm_runtime_get(dev->dev); in mei_cl_disconnect()
1005 if (rets < 0 && rets != -EINPROGRESS) { in mei_cl_disconnect()
1007 cl_err(dev, cl, "rpm: get failed %d\n", rets); in mei_cl_disconnect()
1008 return rets; in mei_cl_disconnect()
1011 rets = __mei_cl_disconnect(cl); in mei_cl_disconnect()
1017 return rets; in mei_cl_disconnect()
1088 int rets; in mei_cl_irq_connect() local
1101 rets = mei_cl_send_connect(cl, cb); in mei_cl_irq_connect()
1102 if (rets) in mei_cl_irq_connect()
1105 return rets; in mei_cl_irq_connect()
1124 int rets; in mei_cl_connect() local
1131 rets = mei_cl_set_connecting(cl, me_cl); in mei_cl_connect()
1132 if (rets) in mei_cl_connect()
1137 rets = 0; in mei_cl_connect()
1141 rets = pm_runtime_get(dev->dev); in mei_cl_connect()
1142 if (rets < 0 && rets != -EINPROGRESS) { in mei_cl_connect()
1144 cl_err(dev, cl, "rpm: get failed %d\n", rets); in mei_cl_connect()
1150 rets = -ENOMEM; in mei_cl_connect()
1156 rets = mei_cl_send_connect(cl, cb); in mei_cl_connect()
1157 if (rets) in mei_cl_connect()
1178 rets = -EFAULT; in mei_cl_connect()
1187 rets = cl->status; in mei_cl_connect()
1199 return rets; in mei_cl_connect()
1523 int rets; in mei_cl_notify_request() local
1538 rets = pm_runtime_get(dev->dev); in mei_cl_notify_request()
1539 if (rets < 0 && rets != -EINPROGRESS) { in mei_cl_notify_request()
1541 cl_err(dev, cl, "rpm: get failed %d\n", rets); in mei_cl_notify_request()
1542 return rets; in mei_cl_notify_request()
1548 rets = -ENOMEM; in mei_cl_notify_request()
1554 rets = -ENODEV; in mei_cl_notify_request()
1571 rets = cl->status; in mei_cl_notify_request()
1579 return rets; in mei_cl_notify_request()
1625 int rets; in mei_cl_notify_get() local
1649 rets = wait_event_interruptible(cl->ev_wait, cl->notify_ev); in mei_cl_notify_get()
1652 if (rets < 0) in mei_cl_notify_get()
1653 return rets; in mei_cl_notify_get()
1674 int rets; in mei_cl_read_start() local
1704 rets = pm_runtime_get(dev->dev); in mei_cl_read_start()
1705 if (rets < 0 && rets != -EINPROGRESS) { in mei_cl_read_start()
1707 cl_err(dev, cl, "rpm: get failed %d\n", rets); in mei_cl_read_start()
1711 rets = 0; in mei_cl_read_start()
1713 rets = mei_hbm_cl_flow_control_req(dev, cl); in mei_cl_read_start()
1714 if (rets < 0) in mei_cl_read_start()
1726 if (rets) in mei_cl_read_start()
1729 return rets; in mei_cl_read_start()
1820 int rets; in mei_cl_irq_write() local
1833 rets = first_chunk ? mei_cl_tx_flow_ctrl_creds(cl) : 1; in mei_cl_irq_write()
1834 if (rets < 0) in mei_cl_irq_write()
1837 if (rets == 0) { in mei_cl_irq_write()
1846 rets = -EOVERFLOW; in mei_cl_irq_write()
1856 rets = PTR_ERR(mei_hdr); in mei_cl_irq_write()
1894 rets = mei_write_message(dev, mei_hdr, hdr_len, data, data_len); in mei_cl_irq_write()
1896 if (rets) in mei_cl_irq_write()
1905 rets = -EIO; in mei_cl_irq_write()
1918 cl->status = rets; in mei_cl_irq_write()
1920 return rets; in mei_cl_irq_write()
1944 ssize_t rets; in mei_cl_write() local
1964 rets = pm_runtime_get(dev->dev); in mei_cl_write()
1965 if (rets < 0 && rets != -EINPROGRESS) { in mei_cl_write()
1967 cl_err(dev, cl, "rpm: get failed %zd\n", rets); in mei_cl_write()
1975 rets = mei_cl_tx_flow_ctrl_creds(cl); in mei_cl_write()
1976 if (rets < 0) in mei_cl_write()
1981 rets = -PTR_ERR(mei_hdr); in mei_cl_write()
1991 if (rets == 0) { in mei_cl_write()
1993 rets = buf_len; in mei_cl_write()
1999 rets = buf_len; in mei_cl_write()
2005 rets = -EOVERFLOW; in mei_cl_write()
2035 rets = mei_write_message(dev, mei_hdr, hdr_len, data, data_len); in mei_cl_write()
2037 if (rets) in mei_cl_write()
2040 rets = mei_cl_tx_flow_ctrl_creds_reduce(cl); in mei_cl_write()
2041 if (rets) in mei_cl_write()
2059 rets = wait_event_interruptible(cl->tx_wait, in mei_cl_write()
2064 if (rets) { in mei_cl_write()
2066 rets = -EINTR; in mei_cl_write()
2070 rets = -EFAULT; in mei_cl_write()
2075 rets = buf_len; in mei_cl_write()
2085 return rets; in mei_cl_write()
2280 int rets; in mei_cl_dma_alloc_and_map() local
2307 rets = pm_runtime_get(dev->dev); in mei_cl_dma_alloc_and_map()
2308 if (rets < 0 && rets != -EINPROGRESS) { in mei_cl_dma_alloc_and_map()
2310 cl_err(dev, cl, "rpm: get failed %d\n", rets); in mei_cl_dma_alloc_and_map()
2311 return rets; in mei_cl_dma_alloc_and_map()
2314 rets = mei_cl_dma_alloc(cl, buffer_id, size); in mei_cl_dma_alloc_and_map()
2315 if (rets) { in mei_cl_dma_alloc_and_map()
2317 return rets; in mei_cl_dma_alloc_and_map()
2322 rets = -ENOMEM; in mei_cl_dma_alloc_and_map()
2328 rets = -ENODEV; in mei_cl_dma_alloc_and_map()
2345 rets = cl->status; in mei_cl_dma_alloc_and_map()
2348 if (rets) in mei_cl_dma_alloc_and_map()
2356 return rets; in mei_cl_dma_alloc_and_map()
2373 int rets; in mei_cl_dma_unmap() local
2392 rets = pm_runtime_get(dev->dev); in mei_cl_dma_unmap()
2393 if (rets < 0 && rets != -EINPROGRESS) { in mei_cl_dma_unmap()
2395 cl_err(dev, cl, "rpm: get failed %d\n", rets); in mei_cl_dma_unmap()
2396 return rets; in mei_cl_dma_unmap()
2401 rets = -ENOMEM; in mei_cl_dma_unmap()
2407 rets = -ENODEV; in mei_cl_dma_unmap()
2424 rets = cl->status; in mei_cl_dma_unmap()
2426 if (!rets) in mei_cl_dma_unmap()
2434 return rets; in mei_cl_dma_unmap()