Lines Matching refs:cqp_request

3021 	struct nes_cqp_request *cqp_request;  in nes_cqp_ce_handler()  local
3057 cqp_request = (struct nes_cqp_request *)(unsigned long)u64temp; in nes_cqp_ce_handler()
3058 if (cqp_request) { in nes_cqp_ce_handler()
3059 if (cqp_request->waiting) { in nes_cqp_ce_handler()
3061 cqp_request->major_code = (u16)(error_code >> 16); in nes_cqp_ce_handler()
3062 cqp_request->minor_code = (u16)error_code; in nes_cqp_ce_handler()
3064 cqp_request->request_done = 1; in nes_cqp_ce_handler()
3065 wake_up(&cqp_request->waitq); in nes_cqp_ce_handler()
3066 nes_put_cqp_request(nesdev, cqp_request); in nes_cqp_ce_handler()
3068 if (cqp_request->callback) in nes_cqp_ce_handler()
3069 cqp_request->cqp_callback(nesdev, cqp_request); in nes_cqp_ce_handler()
3070 nes_free_cqp_request(nesdev, cqp_request); in nes_cqp_ce_handler()
3095 cqp_request = list_entry(nesdev->cqp_pending_reqs.next, in nes_cqp_ce_handler()
3097 list_del_init(&cqp_request->list); in nes_cqp_ce_handler()
3101 memcpy(cqp_wqe, &cqp_request->cqp_wqe, sizeof(*cqp_wqe)); in nes_cqp_ce_handler()
3110 cpu_to_le32((u32)((unsigned long)cqp_request)); in nes_cqp_ce_handler()
3112 cpu_to_le32((u32)(upper_32_bits((unsigned long)cqp_request))); in nes_cqp_ce_handler()
3114 cqp_request, le32_to_cpu(cqp_wqe->wqe_words[NES_CQP_WQE_OPCODE_IDX])&0x3f, head); in nes_cqp_ce_handler()
3780 struct nes_cqp_request *cqp_request; in nes_manage_apbvt() local
3785 cqp_request = nes_get_cqp_request(nesdev); in nes_manage_apbvt()
3786 if (cqp_request == NULL) { in nes_manage_apbvt()
3790 cqp_request->waiting = 1; in nes_manage_apbvt()
3791 cqp_wqe = &cqp_request->cqp_wqe; in nes_manage_apbvt()
3805 atomic_set(&cqp_request->refcount, 2); in nes_manage_apbvt()
3806 nes_post_cqp_request(nesdev, cqp_request); in nes_manage_apbvt()
3809 ret = wait_event_timeout(cqp_request->waitq, (cqp_request->request_done != 0), in nes_manage_apbvt()
3812 ret, cqp_request->major_code, cqp_request->minor_code); in nes_manage_apbvt()
3813 major_code = cqp_request->major_code; in nes_manage_apbvt()
3815 nes_put_cqp_request(nesdev, cqp_request); in nes_manage_apbvt()
3835 struct nes_cqp_request *cqp_request; in nes_manage_arp_cache() local
3845 cqp_request = nes_get_cqp_request(nesdev); in nes_manage_arp_cache()
3846 if (cqp_request == NULL) { in nes_manage_arp_cache()
3850 cqp_request->waiting = 0; in nes_manage_arp_cache()
3851 cqp_wqe = &cqp_request->cqp_wqe; in nes_manage_arp_cache()
3875 atomic_set(&cqp_request->refcount, 1); in nes_manage_arp_cache()
3876 nes_post_cqp_request(nesdev, cqp_request); in nes_manage_arp_cache()
3886 struct nes_cqp_request *cqp_request; in flush_wqes() local
3892 cqp_request = nes_get_cqp_request(nesdev); in flush_wqes()
3893 if (cqp_request == NULL) { in flush_wqes()
3898 cqp_request->waiting = 1; in flush_wqes()
3899 atomic_set(&cqp_request->refcount, 2); in flush_wqes()
3901 cqp_request->waiting = 0; in flush_wqes()
3903 cqp_wqe = &cqp_request->cqp_wqe; in flush_wqes()
3928 nes_post_cqp_request(nesdev, cqp_request); in flush_wqes()
3932 ret = wait_event_timeout(cqp_request->waitq, (cqp_request->request_done != 0), in flush_wqes()
3936 ret, cqp_request->major_code, cqp_request->minor_code); in flush_wqes()
3937 nes_put_cqp_request(nesdev, cqp_request); in flush_wqes()