Lines Matching refs:bs
569 static void curl_detach_aio_context(BlockDriverState *bs) in curl_detach_aio_context() argument
571 BDRVCURLState *s = bs->opaque; in curl_detach_aio_context()
596 static void curl_attach_aio_context(BlockDriverState *bs, in curl_attach_aio_context() argument
599 BDRVCURLState *s = bs->opaque; in curl_attach_aio_context()
672 static int curl_open(BlockDriverState *bs, QDict *options, int flags, in curl_open() argument
675 BDRVCURLState *s = bs->opaque; in curl_open()
692 ret = bdrv_apply_auto_read_only(bs, "curl driver does not support writes", in curl_open()
756 if (!strstart(file, bs->drv->protocol_name, &protocol_delimiter) || in curl_open()
760 "start with '%s://')", bs->drv->protocol_name, file, in curl_open()
761 bs->drv->protocol_name); in curl_open()
787 s->aio_context = bdrv_get_aio_context(bs); in curl_open()
861 curl_attach_aio_context(bs, bdrv_get_aio_context(bs)); in curl_open()
885 static void coroutine_fn curl_setup_preadv(BlockDriverState *bs, CURLAIOCB *acb) in curl_setup_preadv() argument
890 BDRVCURLState *s = bs->opaque; in curl_setup_preadv()
952 static int coroutine_fn curl_co_preadv(BlockDriverState *bs, in curl_co_preadv() argument
964 curl_setup_preadv(bs, &acb); in curl_co_preadv()
971 static void curl_close(BlockDriverState *bs) in curl_close() argument
973 BDRVCURLState *s = bs->opaque; in curl_close()
976 curl_detach_aio_context(bs); in curl_close()
987 static int64_t coroutine_fn curl_co_getlength(BlockDriverState *bs) in curl_co_getlength() argument
989 BDRVCURLState *s = bs->opaque; in curl_co_getlength()
993 static void curl_refresh_filename(BlockDriverState *bs) in curl_refresh_filename() argument
995 BDRVCURLState *s = bs->opaque; in curl_refresh_filename()
1006 pstrcpy(bs->exact_filename, sizeof(bs->exact_filename), s->url); in curl_refresh_filename()