Lines Matching refs:cqp_request

3019 	struct nes_cqp_request *cqp_request;  in nes_cqp_ce_handler()  local
3055 cqp_request = (struct nes_cqp_request *)(unsigned long)u64temp; in nes_cqp_ce_handler()
3056 if (cqp_request) { in nes_cqp_ce_handler()
3057 if (cqp_request->waiting) { in nes_cqp_ce_handler()
3059 cqp_request->major_code = (u16)(error_code >> 16); in nes_cqp_ce_handler()
3060 cqp_request->minor_code = (u16)error_code; in nes_cqp_ce_handler()
3062 cqp_request->request_done = 1; in nes_cqp_ce_handler()
3063 wake_up(&cqp_request->waitq); in nes_cqp_ce_handler()
3064 nes_put_cqp_request(nesdev, cqp_request); in nes_cqp_ce_handler()
3066 if (cqp_request->callback) in nes_cqp_ce_handler()
3067 cqp_request->cqp_callback(nesdev, cqp_request); in nes_cqp_ce_handler()
3068 nes_free_cqp_request(nesdev, cqp_request); in nes_cqp_ce_handler()
3093 cqp_request = list_entry(nesdev->cqp_pending_reqs.next, in nes_cqp_ce_handler()
3095 list_del_init(&cqp_request->list); in nes_cqp_ce_handler()
3099 memcpy(cqp_wqe, &cqp_request->cqp_wqe, sizeof(*cqp_wqe)); in nes_cqp_ce_handler()
3108 cpu_to_le32((u32)((unsigned long)cqp_request)); in nes_cqp_ce_handler()
3110 cpu_to_le32((u32)(upper_32_bits((unsigned long)cqp_request))); in nes_cqp_ce_handler()
3112 cqp_request, le32_to_cpu(cqp_wqe->wqe_words[NES_CQP_WQE_OPCODE_IDX])&0x3f, head); in nes_cqp_ce_handler()
3778 struct nes_cqp_request *cqp_request; in nes_manage_apbvt() local
3783 cqp_request = nes_get_cqp_request(nesdev); in nes_manage_apbvt()
3784 if (cqp_request == NULL) { in nes_manage_apbvt()
3788 cqp_request->waiting = 1; in nes_manage_apbvt()
3789 cqp_wqe = &cqp_request->cqp_wqe; in nes_manage_apbvt()
3803 atomic_set(&cqp_request->refcount, 2); in nes_manage_apbvt()
3804 nes_post_cqp_request(nesdev, cqp_request); in nes_manage_apbvt()
3807 ret = wait_event_timeout(cqp_request->waitq, (cqp_request->request_done != 0), in nes_manage_apbvt()
3810 ret, cqp_request->major_code, cqp_request->minor_code); in nes_manage_apbvt()
3811 major_code = cqp_request->major_code; in nes_manage_apbvt()
3813 nes_put_cqp_request(nesdev, cqp_request); in nes_manage_apbvt()
3833 struct nes_cqp_request *cqp_request; in nes_manage_arp_cache() local
3843 cqp_request = nes_get_cqp_request(nesdev); in nes_manage_arp_cache()
3844 if (cqp_request == NULL) { in nes_manage_arp_cache()
3848 cqp_request->waiting = 0; in nes_manage_arp_cache()
3849 cqp_wqe = &cqp_request->cqp_wqe; in nes_manage_arp_cache()
3873 atomic_set(&cqp_request->refcount, 1); in nes_manage_arp_cache()
3874 nes_post_cqp_request(nesdev, cqp_request); in nes_manage_arp_cache()
3884 struct nes_cqp_request *cqp_request; in flush_wqes() local
3890 cqp_request = nes_get_cqp_request(nesdev); in flush_wqes()
3891 if (cqp_request == NULL) { in flush_wqes()
3896 cqp_request->waiting = 1; in flush_wqes()
3897 atomic_set(&cqp_request->refcount, 2); in flush_wqes()
3899 cqp_request->waiting = 0; in flush_wqes()
3901 cqp_wqe = &cqp_request->cqp_wqe; in flush_wqes()
3926 nes_post_cqp_request(nesdev, cqp_request); in flush_wqes()
3930 ret = wait_event_timeout(cqp_request->waitq, (cqp_request->request_done != 0), in flush_wqes()
3934 ret, cqp_request->major_code, cqp_request->minor_code); in flush_wqes()
3935 nes_put_cqp_request(nesdev, cqp_request); in flush_wqes()