Home
last modified time | relevance | path

Searched refs:cqp (Results 1 – 5 of 5) sorted by relevance

/linux-3.4.99/drivers/infiniband/hw/nes/
Dnes_hw.c1019 pci_free_consistent(nesdev->pcidev, nesdev->cqp_mem_size, nesdev->cqp.sq_vbase, in nes_init_cqp()
1020 nesdev->cqp.sq_pbase); in nes_init_cqp()
1027 spin_lock_init(&nesdev->cqp.lock); in nes_init_cqp()
1028 init_waitqueue_head(&nesdev->cqp.waitq); in nes_init_cqp()
1036 nesdev->cqp.sq_vbase = vmem; in nes_init_cqp()
1037 nesdev->cqp.sq_pbase = pmem; in nes_init_cqp()
1038 nesdev->cqp.sq_size = NES_CQP_SQ_SIZE; in nes_init_cqp()
1039 nesdev->cqp.sq_head = 0; in nes_init_cqp()
1040 nesdev->cqp.sq_tail = 0; in nes_init_cqp()
1041 nesdev->cqp.qp_id = PCI_FUNC(nesdev->pcidev->devfn); in nes_init_cqp()
[all …]
Dnes_mgt.c946 spin_lock_irqsave(&nesdev->cqp.lock, flags); in nes_init_mgt_qp()
947 cqp_head = nesdev->cqp.sq_head; in nes_init_mgt_qp()
949 cqp_wqe = &nesdev->cqp.sq_vbase[cqp_head]; in nes_init_mgt_qp()
966 if (++cqp_head >= nesdev->cqp.sq_size) in nes_init_mgt_qp()
968 cqp_wqe = &nesdev->cqp.sq_vbase[cqp_head]; in nes_init_mgt_qp()
996 if (++cqp_head >= nesdev->cqp.sq_size) in nes_init_mgt_qp()
998 nesdev->cqp.sq_head = cqp_head; in nes_init_mgt_qp()
1003 nes_write32(nesdev->regs + NES_WQE_ALLOC, 0x02800000 | nesdev->cqp.qp_id); in nes_init_mgt_qp()
1005 spin_unlock_irqrestore(&nesdev->cqp.lock, flags); in nes_init_mgt_qp()
1009 ret = wait_event_timeout(nesdev->cqp.waitq, (nesdev->cqp.sq_tail == cqp_head), in nes_init_mgt_qp()
[all …]
Dnes_utils.c567 spin_lock_irqsave(&nesdev->cqp.lock, flags); in nes_get_cqp_request()
573 spin_unlock_irqrestore(&nesdev->cqp.lock, flags); in nes_get_cqp_request()
610 spin_lock_irqsave(&nesdev->cqp.lock, flags); in nes_free_cqp_request()
612 spin_unlock_irqrestore(&nesdev->cqp.lock, flags); in nes_free_cqp_request()
637 spin_lock_irqsave(&nesdev->cqp.lock, flags); in nes_post_cqp_request()
639 if (((((nesdev->cqp.sq_tail+(nesdev->cqp.sq_size*2))-nesdev->cqp.sq_head) & in nes_post_cqp_request()
640 (nesdev->cqp.sq_size - 1)) != 1) in nes_post_cqp_request()
642 cqp_head = nesdev->cqp.sq_head++; in nes_post_cqp_request()
643 nesdev->cqp.sq_head &= nesdev->cqp.sq_size-1; in nes_post_cqp_request()
644 cqp_wqe = &nesdev->cqp.sq_vbase[cqp_head]; in nes_post_cqp_request()
[all …]
Dnes.h252 struct nes_hw_cqp cqp; member
Dnes_verbs.c1301 spin_lock_irqsave(&nesdev->cqp.lock, flags); in nes_create_qp()
1310 spin_unlock_irqrestore(&nesdev->cqp.lock, flags); in nes_create_qp()
1366 nesqp->hwqp.qp_id, ret, nesdev->cqp.sq_head, nesdev->cqp.sq_tail, in nes_create_qp()