Home
last modified time | relevance | path

Searched refs:vec (Results 1 – 25 of 86) sorted by relevance

1234

/drivers/gpu/drm/vc4/
Dvc4_vec.c173 #define VEC_READ(offset) readl(vec->regs + (offset))
174 #define VEC_WRITE(offset, val) writel(val, vec->regs + (offset))
179 struct vc4_vec *vec; member
191 struct vc4_vec *vec; member
215 void (*mode_set)(struct vc4_vec *vec);
245 static void vc4_vec_ntsc_mode_set(struct vc4_vec *vec) in vc4_vec_ntsc_mode_set() argument
251 static void vc4_vec_ntsc_j_mode_set(struct vc4_vec *vec) in vc4_vec_ntsc_j_mode_set() argument
264 static void vc4_vec_pal_mode_set(struct vc4_vec *vec) in vc4_vec_pal_mode_set() argument
270 static void vc4_vec_pal_m_mode_set(struct vc4_vec *vec) in vc4_vec_pal_m_mode_set() argument
348 struct vc4_vec *vec) in vc4_vec_connector_init() argument
[all …]
/drivers/media/common/videobuf2/
Dvideobuf2-memops.c42 struct frame_vector *vec; in vb2_create_framevec() local
48 vec = frame_vector_create(nr); in vb2_create_framevec()
49 if (!vec) in vb2_create_framevec()
51 ret = get_vaddr_frames(start & PAGE_MASK, nr, flags, vec); in vb2_create_framevec()
59 return vec; in vb2_create_framevec()
61 put_vaddr_frames(vec); in vb2_create_framevec()
63 frame_vector_destroy(vec); in vb2_create_framevec()
75 void vb2_destroy_framevec(struct frame_vector *vec) in vb2_destroy_framevec() argument
77 put_vaddr_frames(vec); in vb2_destroy_framevec()
78 frame_vector_destroy(vec); in vb2_destroy_framevec()
Dvideobuf2-vmalloc.c27 struct frame_vector *vec; member
79 struct frame_vector *vec; in vb2_vmalloc_get_userptr() local
90 vec = vb2_create_framevec(vaddr, size); in vb2_vmalloc_get_userptr()
91 if (IS_ERR(vec)) { in vb2_vmalloc_get_userptr()
92 ret = PTR_ERR(vec); in vb2_vmalloc_get_userptr()
95 buf->vec = vec; in vb2_vmalloc_get_userptr()
96 n_pages = frame_vector_count(vec); in vb2_vmalloc_get_userptr()
97 if (frame_vector_to_pages(vec) < 0) { in vb2_vmalloc_get_userptr()
98 unsigned long *nums = frame_vector_pfns(vec); in vb2_vmalloc_get_userptr()
110 buf->vaddr = vm_map_ram(frame_vector_pages(vec), n_pages, -1); in vb2_vmalloc_get_userptr()
[all …]
Dvideobuf2-dma-contig.c34 struct frame_vector *vec; member
439 pages = frame_vector_pages(buf->vec); in vb2_dc_put_userptr()
444 for (i = 0; i < frame_vector_count(buf->vec); i++) in vb2_dc_put_userptr()
452 vb2_destroy_framevec(buf->vec); in vb2_dc_put_userptr()
460 struct frame_vector *vec; in vb2_dc_get_userptr() local
490 vec = vb2_create_framevec(vaddr, size); in vb2_dc_get_userptr()
491 if (IS_ERR(vec)) { in vb2_dc_get_userptr()
492 ret = PTR_ERR(vec); in vb2_dc_get_userptr()
495 buf->vec = vec; in vb2_dc_get_userptr()
496 n_pages = frame_vector_count(vec); in vb2_dc_get_userptr()
[all …]
Dvideobuf2-dma-sg.c38 struct frame_vector *vec; member
222 struct frame_vector *vec; in vb2_dma_sg_get_userptr() local
237 vec = vb2_create_framevec(vaddr, size); in vb2_dma_sg_get_userptr()
238 if (IS_ERR(vec)) in vb2_dma_sg_get_userptr()
240 buf->vec = vec; in vb2_dma_sg_get_userptr()
242 buf->pages = frame_vector_pages(vec); in vb2_dma_sg_get_userptr()
245 buf->num_pages = frame_vector_count(vec); in vb2_dma_sg_get_userptr()
265 vb2_destroy_framevec(vec); in vb2_dma_sg_get_userptr()
291 vb2_destroy_framevec(buf->vec); in vb2_dma_sg_put_userptr()
/drivers/crypto/cavium/nitrox/
Dnitrox_isr.c269 int vec; in nitrox_unregister_interrupts() local
276 vec = pci_irq_vector(pdev, i); in nitrox_unregister_interrupts()
277 irq_set_affinity_hint(vec, NULL); in nitrox_unregister_interrupts()
278 free_irq(vec, qvec); in nitrox_unregister_interrupts()
293 int nr_vecs, vec, cpu; in nitrox_register_interrupts() local
339 vec = pci_irq_vector(pdev, i); in nitrox_register_interrupts()
340 ret = request_irq(vec, nps_pkt_slc_isr, 0, qvec->name, qvec); in nitrox_register_interrupts()
347 irq_set_affinity_hint(vec, get_cpu_mask(cpu)); in nitrox_register_interrupts()
361 vec = pci_irq_vector(pdev, i); in nitrox_register_interrupts()
362 ret = request_irq(vec, nps_core_int_isr, 0, qvec->name, qvec); in nitrox_register_interrupts()
[all …]
/drivers/ntb/hw/amd/
Dntb_hw_amd.c579 static void amd_handle_event(struct amd_ntb_dev *ndev, int vec) in amd_handle_event() argument
589 dev_dbg(dev, "status = 0x%x and vec = %d\n", status, vec); in amd_handle_event()
650 static void amd_handle_db_event(struct amd_ntb_dev *ndev, int vec) in amd_handle_db_event() argument
657 dev_dbg(dev, "status = 0x%llx and vec = %d\n", status, vec); in amd_handle_db_event()
680 static irqreturn_t ndev_interrupt(struct amd_ntb_dev *ndev, int vec) in ndev_interrupt() argument
682 dev_dbg(&ndev->ntb.pdev->dev, "vec %d\n", vec); in ndev_interrupt()
684 if (vec > (AMD_DB_CNT - 1) || (ndev->msix_vec_count == 1)) in ndev_interrupt()
685 amd_handle_event(ndev, vec); in ndev_interrupt()
687 if (vec < AMD_DB_CNT) { in ndev_interrupt()
688 amd_handle_db_event(ndev, vec); in ndev_interrupt()
[all …]
/drivers/xen/
Dpvcalls-back.c95 struct kvec vec[2]; in pvcalls_conn_back_read() local
130 vec[0].iov_base = data->in + masked_prod; in pvcalls_conn_back_read()
131 vec[0].iov_len = wanted; in pvcalls_conn_back_read()
132 iov_iter_kvec(&msg.msg_iter, READ, vec, 1, wanted); in pvcalls_conn_back_read()
134 vec[0].iov_base = data->in + masked_prod; in pvcalls_conn_back_read()
135 vec[0].iov_len = array_size - masked_prod; in pvcalls_conn_back_read()
136 vec[1].iov_base = data->in; in pvcalls_conn_back_read()
137 vec[1].iov_len = wanted - vec[0].iov_len; in pvcalls_conn_back_read()
138 iov_iter_kvec(&msg.msg_iter, READ, vec, 2, wanted); in pvcalls_conn_back_read()
172 struct kvec vec[2]; in pvcalls_conn_back_write() local
[all …]
/drivers/mtd/lpddr/
Dlpddr_cmds.c410 const struct kvec *vec; in do_write_buffer() local
436 vec = *pvec; in do_write_buffer()
441 if (n > vec->iov_len - vec_seek) in do_write_buffer()
442 n = vec->iov_len - vec_seek; in do_write_buffer()
450 vec->iov_base + vec_seek, word_gap, n); in do_write_buffer()
461 if (vec_seek == vec->iov_len) { in do_write_buffer()
462 vec++; in do_write_buffer()
466 *pvec = vec; in do_write_buffer()
636 struct kvec vec; in lpddr_write_buffers() local
638 vec.iov_base = (void *) buf; in lpddr_write_buffers()
[all …]
/drivers/net/ethernet/ti/
Dcpsw_ethtool.c538 struct cpsw_vector *vec; in cpsw_update_channels_res() local
543 vec = cpsw->rxv; in cpsw_update_channels_res()
547 vec = cpsw->txv; in cpsw_update_channels_res()
553 vec[*ch].ch = cpdma_chan_create(cpsw->dma, vch, handler, rx); in cpsw_update_channels_res()
557 if (IS_ERR(vec[*ch].ch)) in cpsw_update_channels_res()
558 return PTR_ERR(vec[*ch].ch); in cpsw_update_channels_res()
560 if (!vec[*ch].ch) in cpsw_update_channels_res()
571 ret = cpdma_chan_destroy(vec[*ch].ch); in cpsw_update_channels_res()
/drivers/xen/xenbus/
Dxenbus_xs.c279 struct kvec *vec; in xenbus_dev_request_and_reply() local
281 req = kmalloc(sizeof(*req) + sizeof(*vec), GFP_KERNEL); in xenbus_dev_request_and_reply()
285 vec = (struct kvec *)(req + 1); in xenbus_dev_request_and_reply()
286 vec->iov_len = msg->len; in xenbus_dev_request_and_reply()
287 vec->iov_base = msg + 1; in xenbus_dev_request_and_reply()
289 req->vec = vec; in xenbus_dev_request_and_reply()
318 req->vec = iovec; in xs_talkv()
/drivers/scsi/isci/
Disci.h485 irqreturn_t isci_msix_isr(int vec, void *data);
486 irqreturn_t isci_intx_isr(int vec, void *data);
487 irqreturn_t isci_error_isr(int vec, void *data);
/drivers/block/
Dumem.c343 struct bio_vec vec; in add_bio() local
361 vec = bio_iter_iovec(bio, card->current_iter); in add_bio()
364 vec.bv_page, in add_bio()
365 vec.bv_offset, in add_bio()
366 vec.bv_len, in add_bio()
385 desc->transfer_size = cpu_to_le32(vec.bv_len); in add_bio()
401 bio_advance_iter(bio, &card->current_iter, vec.bv_len); in add_bio()
431 struct bio_vec vec; in process_page() local
439 vec = bio_iter_iovec(bio, page->iter); in process_page()
440 bio_advance_iter(bio, &page->iter, vec.bv_len); in process_page()
[all …]
/drivers/crypto/cavium/cpt/
Dcptvf_main.c359 static void cptvf_free_irq_affinity(struct cpt_vf *cptvf, int vec) in cptvf_free_irq_affinity() argument
361 irq_set_affinity_hint(pci_irq_vector(cptvf->pdev, vec), NULL); in cptvf_free_irq_affinity()
362 free_cpumask_var(cptvf->affinity_mask[vec]); in cptvf_free_irq_affinity()
614 static void cptvf_set_irq_affinity(struct cpt_vf *cptvf, int vec) in cptvf_set_irq_affinity() argument
619 if (!zalloc_cpumask_var(&cptvf->affinity_mask[vec], in cptvf_set_irq_affinity()
628 cptvf->affinity_mask[vec]); in cptvf_set_irq_affinity()
629 irq_set_affinity_hint(pci_irq_vector(pdev, vec), in cptvf_set_irq_affinity()
630 cptvf->affinity_mask[vec]); in cptvf_set_irq_affinity()
/drivers/dma/idxd/
Dsubmit.c71 int vec = desc->hw->int_handle; in idxd_submit_desc() local
92 &idxd->irq_entries[vec].pending_llist); in idxd_submit_desc()
/drivers/gpu/drm/exynos/
Dexynos_drm_g2d.c208 struct frame_vector *vec; member
401 pages = frame_vector_pages(g2d_userptr->vec); in g2d_userptr_put_dma_addr()
405 for (i = 0; i < frame_vector_count(g2d_userptr->vec); i++) in g2d_userptr_put_dma_addr()
408 put_vaddr_frames(g2d_userptr->vec); in g2d_userptr_put_dma_addr()
409 frame_vector_destroy(g2d_userptr->vec); in g2d_userptr_put_dma_addr()
477 g2d_userptr->vec = frame_vector_create(npages); in g2d_userptr_get_dma_addr()
478 if (!g2d_userptr->vec) { in g2d_userptr_get_dma_addr()
484 g2d_userptr->vec); in g2d_userptr_get_dma_addr()
493 if (frame_vector_to_pages(g2d_userptr->vec) < 0) { in g2d_userptr_get_dma_addr()
505 frame_vector_pages(g2d_userptr->vec), in g2d_userptr_get_dma_addr()
[all …]
/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_pf.c1458 int err = 0, qidx, vec; in otx2_open() local
1529 vec = pf->hw.nix_msixoff + NIX_LF_QINT_VEC_START; in otx2_open()
1530 irq_name = &pf->hw.irq_name[vec * NAME_SIZE]; in otx2_open()
1534 err = request_irq(pci_irq_vector(pf->pdev, vec), in otx2_open()
1547 vec = pf->hw.nix_msixoff + NIX_LF_CINT_VEC_START; in otx2_open()
1549 irq_name = &pf->hw.irq_name[vec * NAME_SIZE]; in otx2_open()
1554 err = request_irq(pci_irq_vector(pf->pdev, vec), in otx2_open()
1563 vec++; in otx2_open()
1616 vec = pci_irq_vector(pf->pdev, in otx2_open()
1619 synchronize_irq(vec); in otx2_open()
[all …]
/drivers/crypto/marvell/octeontx/
Dotx_cptvf_main.c342 static void cptvf_free_irq_affinity(struct otx_cptvf *cptvf, int vec) in cptvf_free_irq_affinity() argument
344 irq_set_affinity_hint(pci_irq_vector(cptvf->pdev, vec), NULL); in cptvf_free_irq_affinity()
345 free_cpumask_var(cptvf->affinity_mask[vec]); in cptvf_free_irq_affinity()
597 static void cptvf_set_irq_affinity(struct otx_cptvf *cptvf, int vec) in cptvf_set_irq_affinity() argument
602 if (!zalloc_cpumask_var(&cptvf->affinity_mask[vec], in cptvf_set_irq_affinity()
612 cptvf->affinity_mask[vec]); in cptvf_set_irq_affinity()
613 irq_set_affinity_hint(pci_irq_vector(pdev, vec), in cptvf_set_irq_affinity()
614 cptvf->affinity_mask[vec]); in cptvf_set_irq_affinity()
/drivers/usb/mon/
Dmon_bin.c899 u32 __user *vec, unsigned int max) in mon_bin_fetch() argument
928 if (put_user(cur_out, &vec[nevents])) { in mon_bin_fetch()
1021 struct mon_pgmap *vec; in mon_bin_ioctl() local
1027 vec = kcalloc(size / CHUNK_SIZE, sizeof(struct mon_pgmap), in mon_bin_ioctl()
1029 if (vec == NULL) { in mon_bin_ioctl()
1034 ret = mon_alloc_buff(vec, size/CHUNK_SIZE); in mon_bin_ioctl()
1036 kfree(vec); in mon_bin_ioctl()
1043 mon_free_buff(vec, size/CHUNK_SIZE); in mon_bin_ioctl()
1044 kfree(vec); in mon_bin_ioctl()
1049 rp->b_vec = vec; in mon_bin_ioctl()
/drivers/misc/habanalabs/common/
Dmemory.c1294 userptr->vec = frame_vector_create(npages); in get_user_memory()
1295 if (!userptr->vec) { in get_user_memory()
1301 userptr->vec); in get_user_memory()
1312 if (frame_vector_to_pages(userptr->vec) < 0) { in get_user_memory()
1320 frame_vector_pages(userptr->vec), in get_user_memory()
1330 put_vaddr_frames(userptr->vec); in get_user_memory()
1332 frame_vector_destroy(userptr->vec); in get_user_memory()
1427 pages = frame_vector_pages(userptr->vec); in hl_unpin_host_memory()
1431 for (i = 0; i < frame_vector_count(userptr->vec); i++) in hl_unpin_host_memory()
1434 put_vaddr_frames(userptr->vec); in hl_unpin_host_memory()
[all …]
/drivers/ntb/hw/intel/
Dntb_hw_gen1.c322 static irqreturn_t ndev_interrupt(struct intel_ntb_dev *ndev, int vec) in ndev_interrupt() argument
326 vec_mask = ndev_vec_mask(ndev, vec); in ndev_interrupt()
328 if ((ndev->hwerr_flags & NTB_HWERR_MSIX_VECTOR32_BAD) && (vec == 31)) in ndev_interrupt()
331 dev_dbg(&ndev->ntb.pdev->dev, "vec %d vec_mask %llx\n", vec, vec_mask); in ndev_interrupt()
341 ntb_db_event(&ndev->ntb, vec); in ndev_interrupt()
382 ndev->vec = kcalloc_node(msix_max, sizeof(*ndev->vec), in ndev_init_isr()
384 if (!ndev->vec) in ndev_init_isr()
401 ndev->vec[i].ndev = ndev; in ndev_init_isr()
402 ndev->vec[i].num = i; in ndev_init_isr()
404 "ndev_vec_isr", &ndev->vec[i]); in ndev_init_isr()
[all …]
/drivers/scsi/bfa/
Dbfa.h167 typedef void (*bfa_msix_handler_t)(struct bfa_s *bfa, int vec);
307 void bfa_msix_all(struct bfa_s *bfa, int vec);
308 void bfa_msix_reqq(struct bfa_s *bfa, int vec);
309 void bfa_msix_rspq(struct bfa_s *bfa, int vec);
310 void bfa_msix_lpu_err(struct bfa_s *bfa, int vec);
/drivers/block/rnbd/
Drnbd-clt.c426 struct rnbd_iu *iu, struct kvec *vec, in send_usr_msg() argument
440 vec, 1, len, sg, sg_len); in send_usr_msg()
466 struct kvec vec = { in send_msg_close() local
485 err = send_usr_msg(sess->rtrs, WRITE, iu, &vec, 0, NULL, 0, in send_msg_close()
547 struct kvec vec = { in send_msg_open() local
574 &vec, sizeof(*rsp), iu->sglist, 1, in send_msg_open()
593 struct kvec vec = { in send_msg_sess_info() local
628 &vec, sizeof(*rsp), iu->sglist, 1, in send_msg_sess_info()
1006 struct kvec vec; in rnbd_client_xfer_request() local
1031 vec = (struct kvec) { in rnbd_client_xfer_request()
[all …]
/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_tc_mqprio.c224 ret = request_irq(eorxq->msix->vec, t4_sge_intr_msix, 0, in cxgb4_mqprio_alloc_hw_resources()
229 cxgb4_set_msix_aff(adap, eorxq->msix->vec, in cxgb4_mqprio_alloc_hw_resources()
247 cxgb4_clear_msix_aff(eorxq->msix->vec, in cxgb4_mqprio_alloc_hw_resources()
249 free_irq(eorxq->msix->vec, &eorxq->rspq); in cxgb4_mqprio_alloc_hw_resources()
300 cxgb4_clear_msix_aff(eorxq->msix->vec, in cxgb4_mqprio_free_hw_resources()
302 free_irq(eorxq->msix->vec, &eorxq->rspq); in cxgb4_mqprio_free_hw_resources()
/drivers/net/ethernet/marvell/octeontx2/af/
Drvu.c1469 u16 vec; in rvu_get_msix_offset() local
1474 for (vec = 0; vec < pfvf->msix.max; vec++) { in rvu_get_msix_offset()
1475 if (pfvf->msix_lfmap[vec] == MSIX_BLKLF(blkaddr, lf)) in rvu_get_msix_offset()
1476 return vec; in rvu_get_msix_offset()
1484 u16 nvecs, vec, offset; in rvu_set_msix_offset() local
1502 for (vec = 0; vec < nvecs; vec++) in rvu_set_msix_offset()
1503 pfvf->msix_lfmap[offset + vec] = MSIX_BLKLF(block->addr, lf); in rvu_set_msix_offset()
1509 u16 nvecs, vec, offset; in rvu_clear_msix_offset() local
1523 for (vec = 0; vec < nvecs; vec++) in rvu_clear_msix_offset()
1524 pfvf->msix_lfmap[offset + vec] = 0; in rvu_clear_msix_offset()

1234