Searched refs:ctx_pdata (Results 1 – 2 of 2) sorted by relevance
73 struct iio_context_pdata *ctx_pdata = ctx->pdata; in serial_open() local77 iio_mutex_lock(ctx_pdata->lock); in serial_open()81 ret = iiod_client_open_unlocked(ctx_pdata->iiod_client, NULL, in serial_open()87 iio_mutex_unlock(ctx_pdata->lock); in serial_open()94 struct iio_context_pdata *ctx_pdata = ctx->pdata; in serial_close() local98 iio_mutex_lock(ctx_pdata->lock); in serial_close()102 ret = iiod_client_close_unlocked(ctx_pdata->iiod_client, NULL, dev); in serial_close()106 iio_mutex_unlock(ctx_pdata->lock); in serial_close()246 struct iio_context_pdata *ctx_pdata = ctx->pdata; in serial_shutdown() local249 iiod_client_destroy(ctx_pdata->iiod_client); in serial_shutdown()[all …]
233 struct iio_context_pdata *ctx_pdata = dev->ctx->pdata; in usb_open() local237 iio_mutex_lock(ctx_pdata->ep_lock); in usb_open()248 ret = usb_open_pipe(ctx_pdata, pdata->io_ctx.ep->pipe_id); in usb_open()260 ret = iiod_client_open_unlocked(ctx_pdata->iiod_client, &pdata->io_ctx, in usb_open()265 usb_calculate_remote_timeout(ctx_pdata->timeout_ms); in usb_open()267 ret = iiod_client_set_timeout(ctx_pdata->iiod_client, in usb_open()276 usb_close_pipe(ctx_pdata, pdata->io_ctx.ep->pipe_id); in usb_open()281 iio_mutex_unlock(ctx_pdata->ep_lock); in usb_open()287 struct iio_context_pdata *ctx_pdata = dev->ctx->pdata; in usb_close() local291 iio_mutex_lock(ctx_pdata->ep_lock); in usb_close()[all …]