Lines Matching refs:cqp_request
2897 struct nes_cqp_request *cqp_request;
2935 cqp_request = *((struct nes_cqp_request **)&u64temp);
2936 if (cqp_request) {
2937 if (cqp_request->waiting) {
2939 cqp_request->major_code = (u16)(error_code >> 16);
2940 cqp_request->minor_code = (u16)error_code;
2942 cqp_request->request_done = 1;
2943 wake_up(&cqp_request->waitq);
2944 nes_put_cqp_request(nesdev, cqp_request);
2946 if (cqp_request->callback)
2947 cqp_request->cqp_callback(nesdev, cqp_request);
2948 nes_free_cqp_request(nesdev, cqp_request);
2973 cqp_request = list_entry(nesdev->cqp_pending_reqs.next,
2975 list_del_init(&cqp_request->list);
2979 memcpy(cqp_wqe, &cqp_request->cqp_wqe, sizeof(*cqp_wqe));
2982 cpu_to_le32((u32)((unsigned long)cqp_request));
2984 cpu_to_le32((u32)(upper_32_bits((unsigned long)cqp_request)));
2986 cqp_request, le32_to_cpu(cqp_wqe->wqe_words[NES_CQP_WQE_OPCODE_IDX])&0x3f, head);
3659 struct nes_cqp_request *cqp_request;
3664 cqp_request = nes_get_cqp_request(nesdev);
3665 if (cqp_request == NULL) {
3666 nes_debug(NES_DBG_QP, "Failed to get a cqp_request.\n");
3669 cqp_request->waiting = 1;
3670 cqp_wqe = &cqp_request->cqp_wqe;
3684 atomic_set(&cqp_request->refcount, 2);
3685 nes_post_cqp_request(nesdev, cqp_request);
3688 ret = wait_event_timeout(cqp_request->waitq, (cqp_request->request_done != 0),
3691 ret, cqp_request->major_code, cqp_request->minor_code);
3692 major_code = cqp_request->major_code;
3694 nes_put_cqp_request(nesdev, cqp_request);
3714 struct nes_cqp_request *cqp_request;
3724 cqp_request = nes_get_cqp_request(nesdev);
3725 if (cqp_request == NULL) {
3726 nes_debug(NES_DBG_NETDEV, "Failed to get a cqp_request.\n");
3729 cqp_request->waiting = 0;
3730 cqp_wqe = &cqp_request->cqp_wqe;
3754 atomic_set(&cqp_request->refcount, 1);
3755 nes_post_cqp_request(nesdev, cqp_request);
3765 struct nes_cqp_request *cqp_request;
3771 cqp_request = nes_get_cqp_request(nesdev);
3772 if (cqp_request == NULL) {
3773 nes_debug(NES_DBG_QP, "Failed to get a cqp_request.\n");
3777 cqp_request->waiting = 1;
3778 atomic_set(&cqp_request->refcount, 2);
3780 cqp_request->waiting = 0;
3782 cqp_wqe = &cqp_request->cqp_wqe;
3807 nes_post_cqp_request(nesdev, cqp_request);
3811 ret = wait_event_timeout(cqp_request->waitq, (cqp_request->request_done != 0),
3815 ret, cqp_request->major_code, cqp_request->minor_code);
3816 nes_put_cqp_request(nesdev, cqp_request);