Lines Matching refs:cqp
567 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()
657 nesdev->cqp.sq_head, nesdev->cqp.sq_tail, nesdev->cqp.sq_size, in nes_post_cqp_request()
663 nes_write32(nesdev->regs+NES_WQE_ALLOC, 0x01800000 | nesdev->cqp.qp_id); in nes_post_cqp_request()
675 spin_unlock_irqrestore(&nesdev->cqp.lock, flags); in nes_post_cqp_request()