/linux-master/drivers/media/usb/au0828/ |
H A D | au0828.h | 320 extern int au0828_start_analog_streaming(struct vb2_queue *vq, 322 extern void au0828_stop_vbi_streaming(struct vb2_queue *vq);
|
/linux-master/drivers/nvdimm/ |
H A D | virtio_pmem.h | 53 void virtio_pmem_host_ack(struct virtqueue *vq);
|
/linux-master/arch/arm64/include/asm/ |
H A D | fpsimd.h | 165 static inline unsigned int __vq_to_bit(unsigned int vq) argument 167 return SVE_VQ_MAX - vq; 189 * where length vq encoded as bit __vq_to_bit(vq): 287 /* Ensure vq >= SVE_VQ_MIN && vq <= SVE_VQ_MAX before calling this function */ 288 static inline bool vq_available(enum vec_type type, unsigned int vq) argument 290 return test_bit(__vq_to_bit(vq), vl_info[type].vq_map); 293 static inline bool sve_vq_available(unsigned int vq) argument 295 return vq_available(ARM64_VEC_SVE, vq); 327 sve_vq_available(unsigned int vq) argument [all...] |
/linux-master/arch/arm64/include/uapi/asm/ |
H A D | ptrace.h | 140 * metadata in the header: SVE_PT_SIZE(vq, flags) gives the total size 144 * "vq" argument to these macros. 162 * future: use SVE_PT_FPSIMD_SIZE(vq, flags) to compute the total size. 163 * SVE_PT_FPSIMD_SIZE(vq, flags) will never be less than 169 #define SVE_PT_FPSIMD_SIZE(vq, flags) (sizeof(struct user_fpsimd_state)) 175 * SVE_PT_SVE_SIZE(vq, flags). 200 #define SVE_PT_SVE_ZREG_SIZE(vq) __SVE_ZREG_SIZE(vq) 201 #define SVE_PT_SVE_PREG_SIZE(vq) __SVE_PREG_SIZE(vq) [all...] |
H A D | sigcontext.h | 204 #define sve_vl_from_vq(vq) __sve_vl_from_vq(vq) 236 * Note: for all these macros, the "vq" argument denotes the vector length 239 * The correct way to obtain vq is to use sve_vq_from_vl(vl). The 253 * ZREGS __uint128_t[SVE_NUM_ZREGS][vq] all Z-registers 254 * ZREG __uint128_t[vq] individual Z-register Zn 256 * PREGS uint16_t[SVE_NUM_PREGS][vq] all P-registers 257 * PREG uint16_t[vq] individual P-register Pn 259 * FFR uint16_t[vq] first-fault status register 269 #define SVE_SIG_ZREG_SIZE(vq) __SVE_ZREG_SIZ [all...] |
H A D | sve_context.h | 42 #define __sve_vl_from_vq(vq) ((vq) * __SVE_VQ_BYTES) 44 #define __SVE_ZREG_SIZE(vq) ((__u32)(vq) * __SVE_VQ_BYTES) 45 #define __SVE_PREG_SIZE(vq) ((__u32)(vq) * (__SVE_VQ_BYTES / 8)) 46 #define __SVE_FFR_SIZE(vq) __SVE_PREG_SIZE(vq) 49 #define __SVE_ZREG_OFFSET(vq, n) \ 50 (__SVE_ZREGS_OFFSET + __SVE_ZREG_SIZE(vq) * ( [all...] |
/linux-master/arch/arm64/kernel/ |
H A D | fpsimd.c | 610 #define ZREG(sve_state, vq, n) ((char *)(sve_state) + \ 611 (SVE_SIG_ZREG_OFFSET(vq, n) - SVE_SIG_REGS_OFFSET)) 631 unsigned int vq) 637 p = (__uint128_t *)ZREG(sst, vq, i); 656 unsigned int vq; local 663 vq = sve_vq_from_vl(thread_get_cur_vl(&task->thread)); 664 __fpsimd_to_sve(sst, fst, vq); 680 unsigned int vq, vl; local 690 vq = sve_vq_from_vl(vl); 692 p = (__uint128_t const *)ZREG(sst, vq, 630 __fpsimd_to_sve(void *sst, struct user_fpsimd_state const *fst, unsigned int vq) argument 818 unsigned int vq; local 1009 unsigned int vq, vl; local [all...] |
H A D | ptrace.c | 762 unsigned int vq; local 798 vq = sve_vq_from_vl(header->vl); 801 header->size = SVE_PT_SIZE(vq, header->flags); 817 unsigned int vq; local 822 vq = sve_vq_from_vl(header.vl); 838 end = SVE_PT_SVE_FFR_OFFSET(vq) + SVE_PT_SVE_FFR_SIZE(vq); 842 end = SVE_PT_SVE_FPSR_OFFSET(vq); 850 end = SVE_PT_SVE_FPCR_OFFSET(vq) + SVE_PT_SVE_FPCR_SIZE; 881 unsigned int vq; local 1053 unsigned int vq; local 1104 unsigned int vq; local [all...] |
H A D | signal.c | 269 unsigned int vq = 0; local 273 vq = sve_vq_from_vl(vl); 276 vq = sve_vq_from_vl(vl); 282 __put_user_error(round_up(SVE_SIG_CONTEXT_SIZE(vq), 16), 289 if (vq) { 297 SVE_SIG_REGS_SIZE(vq)); 306 unsigned int vl, vq; local 345 vq = sve_vq_from_vl(vl); 347 if (user->sve_size < SVE_SIG_CONTEXT_SIZE(vq)) 369 SVE_SIG_REGS_SIZE(vq)); 442 unsigned int vq; local 475 unsigned int vq; local 924 unsigned int vq = 0; local 951 unsigned int vq = 0; local [all...] |
/linux-master/arch/arm64/kvm/ |
H A D | guest.c | 308 #define vq_word(vq) (((vq) - SVE_VQ_MIN) / 64) 309 #define vq_mask(vq) ((u64)1 << ((vq) - SVE_VQ_MIN) % 64) 310 #define vq_present(vqs, vq) (!!((vqs)[vq_word(vq)] & vq_mask(vq))) 314 unsigned int max_vq, vq; local 326 for (vq = SVE_VQ_MIN; vq < 338 unsigned int max_vq, vq; local 430 unsigned int vq; local [all...] |
/linux-master/arch/um/drivers/ |
H A D | virt-pci.c | 474 static void um_pci_irq_vq_addbuf(struct virtqueue *vq, void *buf, bool kick) argument 479 if (virtqueue_add_inbuf(vq, sg, 1, buf, GFP_ATOMIC)) 482 virtqueue_kick(vq); 485 static void um_pci_handle_irq_message(struct virtqueue *vq, argument 488 struct virtio_device *vdev = vq->vdev; 516 static void um_pci_cmd_vq_cb(struct virtqueue *vq) argument 518 struct virtio_device *vdev = vq->vdev; 526 while ((cmd = virtqueue_get_buf(vq, &len))) { 533 static void um_pci_irq_vq_cb(struct virtqueue *vq) argument 538 while ((msg = virtqueue_get_buf(vq, [all...] |
H A D | virtio_uml.c | 371 struct virtqueue *vq; local 393 virtio_device_for_each_vq((&vu_dev->vdev), vq) { 394 if (vq->index == msg.msg.payload.vring_state.index) { 396 vu_dev->vq_irq_vq_map |= BIT_ULL(vq->index); 433 struct virtqueue *vq; local 435 virtio_device_for_each_vq((&vu_dev->vdev), vq) { 436 if (vu_dev->vq_irq_vq_map & BIT_ULL(vq->index)) 437 vring_interrupt(0 /* ignored */, vq); 777 static bool vu_notify(struct virtqueue *vq) argument 779 struct virtio_uml_vq_info *info = vq 805 struct virtqueue *vq = opaque; local 858 vu_del_vq(struct virtqueue *vq) argument 881 struct virtqueue *vq, *n; local 895 vu_setup_vq_call_fd(struct virtio_uml_device *vu_dev, struct virtqueue *vq) argument 946 struct virtqueue *vq; local 1023 struct virtqueue *vq; local 1405 struct virtqueue *vq; local 1428 struct virtqueue *vq; local [all...] |
/linux-master/drivers/block/ |
H A D | virtio_blk.c | 51 struct virtqueue *vq; member in struct:virtio_blk_vq 135 struct virtio_blk_vq *vq = &vblk->vqs[hctx->queue_num]; local 137 return vq; 140 static int virtblk_add_req(struct virtqueue *vq, struct virtblk_req *vbr) argument 149 if (vbr->out_hdr.type & cpu_to_virtio32(vq->vdev, VIRTIO_BLK_T_OUT)) 158 return virtqueue_add_sgs(vq, sgs, num_out, num_in, vbr, GFP_ATOMIC); 351 static void virtblk_done(struct virtqueue *vq) argument 353 struct virtio_blk *vblk = vq->vdev->priv; 355 int qid = vq->index; 362 virtqueue_disable_cb(vq); 381 struct virtio_blk_vq *vq = &vblk->vqs[hctx->queue_num]; local 474 virtblk_add_req_batch(struct virtio_blk_vq *vq, struct request **rqlist) argument 507 struct virtio_blk_vq *vq = get_virtio_blk_vq(req->mq_hctx); local 1208 struct virtio_blk_vq *vq = get_virtio_blk_vq(hctx); local [all...] |
/linux-master/drivers/bluetooth/ |
H A D | virtio_bt.c | 31 struct virtqueue *vq = vbt->vqs[VIRTBT_VQ_RX]; local 42 err = virtqueue_add_inbuf(vq, sg, 1, skb, GFP_KERNEL); 77 struct virtqueue *vq = vbt->vqs[i]; local 80 while ((skb = virtqueue_detach_unused_buf(vq))) 239 static void virtbt_tx_done(struct virtqueue *vq) argument 244 while ((skb = virtqueue_get_buf(vq, &len))) 248 static void virtbt_rx_done(struct virtqueue *vq) argument 250 struct virtio_bluetooth *vbt = vq->vdev->priv;
|
/linux-master/drivers/char/hw_random/ |
H A D | virtio-rng.c | 21 struct virtqueue *vq; member in struct:virtrng_info 38 static void random_recv_done(struct virtqueue *vq) argument 40 struct virtrng_info *vi = vq->vdev->priv; 44 if (!virtqueue_get_buf(vi->vq, &len)) 61 virtqueue_add_inbuf(vi->vq, &sg, 1, vi->data, GFP_KERNEL); 63 virtqueue_kick(vi->vq); 155 vi->vq = virtio_find_single_vq(vdev, random_recv_done, "input"); 156 if (IS_ERR(vi->vq)) { 157 err = PTR_ERR(vi->vq);
|
/linux-master/drivers/char/ |
H A D | virtio_console.c | 132 /* To protect the vq operations for the control channel */ 307 struct virtqueue *vq) 314 if (port->in_vq == vq || port->out_vq == vq) 482 static int add_inbuf(struct virtqueue *vq, struct port_buffer *buf) argument 489 ret = virtqueue_add_inbuf(vq, sg, 1, buf, GFP_ATOMIC); 490 virtqueue_kick(vq); 492 ret = vq->num_free; 519 dev_warn(port->dev, "Errors adding %d buffers back to vq\n", 542 struct virtqueue *vq; local 306 find_port_by_vq(struct ports_device *portdev, struct virtqueue *vq) argument 1291 fill_queue(struct virtqueue *vq, spinlock_t *lock) argument 1666 struct virtqueue *vq; local 1692 flush_bufs(struct virtqueue *vq, bool can_sleep) argument 1701 out_intr(struct virtqueue *vq) argument 1714 in_intr(struct virtqueue *vq) argument 1759 control_intr(struct virtqueue *vq) argument 1899 struct virtqueue *vq; local [all...] |
/linux-master/drivers/crypto/cavium/cpt/ |
H A D | cpt_hw_types.h | 186 * vq:8 [7:0](RO) Number of VQs. 197 u64 vq:8; member in struct:cptx_pf_constants::cptx_pf_constants_s 199 u64 vq:8;
|
/linux-master/drivers/crypto/marvell/octeontx/ |
H A D | otx_cpt_hw_types.h | 324 * vq:8 [7:0](RO) Number of VQs. 335 u64 vq:8; member in struct:otx_cptx_pf_constants::otx_cptx_pf_constants_s 337 u64 vq:8;
|
/linux-master/drivers/crypto/virtio/ |
H A D | virtio_crypto_akcipher_algs.c | 272 ret = virtqueue_add_sgs(data_vq->vq, sgs, num_out, num_in, vc_req, GFP_ATOMIC); 273 virtqueue_kick(data_vq->vq);
|
H A D | virtio_crypto_common.h | 23 struct virtqueue *vq; member in struct:data_queue 25 /* To protect the vq operations for the dataq */ 43 /* To protect the vq operations for the controlq */
|
H A D | virtio_crypto_core.c | 30 static void virtcrypto_ctrlq_callback(struct virtqueue *vq) argument 32 struct virtio_crypto *vcrypto = vq->vdev->priv; 39 virtqueue_disable_cb(vq); 40 while ((vc_ctrl_req = virtqueue_get_buf(vq, &len)) != NULL) { 45 } while (!virtqueue_enable_cb(vq)); 76 struct virtqueue *vq = data_vq->vq; local 81 virtqueue_disable_cb(vq); 82 while ((vc_req = virtqueue_get_buf(vq, &len)) != NULL) { 86 } while (!virtqueue_enable_cb(vq)); 89 virtcrypto_dataq_callback(struct virtqueue *vq) argument 486 struct virtqueue *vq; local [all...] |
H A D | virtio_crypto_skcipher_algs.c | 449 err = virtqueue_add_sgs(data_vq->vq, sgs, num_out, 451 virtqueue_kick(data_vq->vq); 553 virtqueue_kick(data_vq->vq);
|
/linux-master/drivers/gpio/ |
H A D | gpio-virtio.c | 95 dev_err(dev, "failed to add request to vq\n"); 399 static void virtio_gpio_event_vq(struct virtqueue *vq) argument 401 struct virtio_gpio *vgpio = vq->vdev->priv; 436 static void virtio_gpio_request_vq(struct virtqueue *vq) argument 442 line = virtqueue_get_buf(vq, &len); 475 dev_err(&vdev->dev, "failed to find requestq vq\n"); 481 dev_err(&vdev->dev, "failed to find eventq vq\n");
|
/linux-master/drivers/gpu/drm/virtio/ |
H A D | virtgpu_drv.h | 198 struct virtqueue *vq; member in struct:virtio_gpu_queue 398 void virtio_gpu_ctrl_ack(struct virtqueue *vq); 399 void virtio_gpu_cursor_ack(struct virtqueue *vq);
|
H A D | virtgpu_kms.c | 215 vgdev->ctrlq.vq = vqs[0]; 216 vgdev->cursorq.vq = vqs[1];
|