Lines Matching refs:cqp_request
2969 struct nes_cqp_request *cqp_request; in nes_cqp_ce_handler() local
3005 cqp_request = (struct nes_cqp_request *)(unsigned long)u64temp; in nes_cqp_ce_handler()
3006 if (cqp_request) { in nes_cqp_ce_handler()
3007 if (cqp_request->waiting) { in nes_cqp_ce_handler()
3009 cqp_request->major_code = (u16)(error_code >> 16); in nes_cqp_ce_handler()
3010 cqp_request->minor_code = (u16)error_code; in nes_cqp_ce_handler()
3012 cqp_request->request_done = 1; in nes_cqp_ce_handler()
3013 wake_up(&cqp_request->waitq); in nes_cqp_ce_handler()
3014 nes_put_cqp_request(nesdev, cqp_request); in nes_cqp_ce_handler()
3016 if (cqp_request->callback) in nes_cqp_ce_handler()
3017 cqp_request->cqp_callback(nesdev, cqp_request); in nes_cqp_ce_handler()
3018 nes_free_cqp_request(nesdev, cqp_request); in nes_cqp_ce_handler()
3043 cqp_request = list_entry(nesdev->cqp_pending_reqs.next, in nes_cqp_ce_handler()
3045 list_del_init(&cqp_request->list); in nes_cqp_ce_handler()
3049 memcpy(cqp_wqe, &cqp_request->cqp_wqe, sizeof(*cqp_wqe)); in nes_cqp_ce_handler()
3058 cpu_to_le32((u32)((unsigned long)cqp_request)); in nes_cqp_ce_handler()
3060 cpu_to_le32((u32)(upper_32_bits((unsigned long)cqp_request))); in nes_cqp_ce_handler()
3062 cqp_request, le32_to_cpu(cqp_wqe->wqe_words[NES_CQP_WQE_OPCODE_IDX])&0x3f, head); in nes_cqp_ce_handler()
3728 struct nes_cqp_request *cqp_request; in nes_manage_apbvt() local
3733 cqp_request = nes_get_cqp_request(nesdev); in nes_manage_apbvt()
3734 if (cqp_request == NULL) { in nes_manage_apbvt()
3738 cqp_request->waiting = 1; in nes_manage_apbvt()
3739 cqp_wqe = &cqp_request->cqp_wqe; in nes_manage_apbvt()
3753 atomic_set(&cqp_request->refcount, 2); in nes_manage_apbvt()
3754 nes_post_cqp_request(nesdev, cqp_request); in nes_manage_apbvt()
3757 ret = wait_event_timeout(cqp_request->waitq, (cqp_request->request_done != 0), in nes_manage_apbvt()
3760 ret, cqp_request->major_code, cqp_request->minor_code); in nes_manage_apbvt()
3761 major_code = cqp_request->major_code; in nes_manage_apbvt()
3763 nes_put_cqp_request(nesdev, cqp_request); in nes_manage_apbvt()
3783 struct nes_cqp_request *cqp_request; in nes_manage_arp_cache() local
3793 cqp_request = nes_get_cqp_request(nesdev); in nes_manage_arp_cache()
3794 if (cqp_request == NULL) { in nes_manage_arp_cache()
3798 cqp_request->waiting = 0; in nes_manage_arp_cache()
3799 cqp_wqe = &cqp_request->cqp_wqe; in nes_manage_arp_cache()
3823 atomic_set(&cqp_request->refcount, 1); in nes_manage_arp_cache()
3824 nes_post_cqp_request(nesdev, cqp_request); in nes_manage_arp_cache()
3834 struct nes_cqp_request *cqp_request; in flush_wqes() local
3840 cqp_request = nes_get_cqp_request(nesdev); in flush_wqes()
3841 if (cqp_request == NULL) { in flush_wqes()
3846 cqp_request->waiting = 1; in flush_wqes()
3847 atomic_set(&cqp_request->refcount, 2); in flush_wqes()
3849 cqp_request->waiting = 0; in flush_wqes()
3851 cqp_wqe = &cqp_request->cqp_wqe; in flush_wqes()
3876 nes_post_cqp_request(nesdev, cqp_request); in flush_wqes()
3880 ret = wait_event_timeout(cqp_request->waitq, (cqp_request->request_done != 0), in flush_wqes()
3884 ret, cqp_request->major_code, cqp_request->minor_code); in flush_wqes()
3885 nes_put_cqp_request(nesdev, cqp_request); in flush_wqes()