Lines Matching defs:cqp_request
64 struct nes_cqp_request *cqp_request;
106 cqp_request = nes_get_cqp_request(nesdev);
107 if (cqp_request == NULL) {
113 cqp_request->waiting = 1;
114 cqp_wqe = &cqp_request->cqp_wqe;
125 atomic_set(&cqp_request->refcount, 2);
126 nes_post_cqp_request(nesdev, cqp_request);
129 ret = wait_event_timeout(cqp_request->waitq, (cqp_request->request_done != 0),
133 stag, ret, cqp_request->major_code, cqp_request->minor_code);
134 if ((!ret) || (cqp_request->major_code)) {
135 nes_put_cqp_request(nesdev, cqp_request);
144 nes_put_cqp_request(nesdev, cqp_request);
166 struct nes_cqp_request *cqp_request;
171 cqp_request = nes_get_cqp_request(nesdev);
172 if (cqp_request == NULL) {
173 nes_debug(NES_DBG_MR, "Failed to get a cqp_request.\n");
176 cqp_request->waiting = 1;
177 cqp_wqe = &cqp_request->cqp_wqe;
182 atomic_set(&cqp_request->refcount, 2);
183 nes_post_cqp_request(nesdev, cqp_request);
188 ret = wait_event_timeout(cqp_request->waitq, (0 != cqp_request->request_done),
192 ret, cqp_request->major_code, cqp_request->minor_code);
195 else if (cqp_request->major_code)
198 nes_put_cqp_request(nesdev, cqp_request);
289 struct nes_cqp_request *cqp_request;
298 cqp_request = nes_get_cqp_request(nesdev);
299 if (cqp_request == NULL) {
300 nes_debug(NES_DBG_MR, "Failed to get a cqp_request.\n");
306 cqp_request->waiting = 1;
307 cqp_wqe = &cqp_request->cqp_wqe;
317 nes_free_cqp_request(nesdev, cqp_request);
349 atomic_set(&cqp_request->refcount, 2);
350 nes_post_cqp_request(nesdev, cqp_request);
353 ret = wait_event_timeout(cqp_request->waitq,
354 (0 != cqp_request->request_done),
359 "0x%04X:0x%04X.\n", stag, ret, cqp_request->major_code,
360 cqp_request->minor_code);
361 major_code = cqp_request->major_code;
362 nes_put_cqp_request(nesdev, cqp_request);
1116 struct nes_cqp_request *cqp_request;
1334 cqp_request = nes_get_cqp_request(nesdev);
1335 if (cqp_request == NULL) {
1336 nes_debug(NES_DBG_QP, "Failed to get a cqp_request\n");
1342 cqp_request->waiting = 1;
1343 cqp_wqe = &cqp_request->cqp_wqe;
1360 atomic_set(&cqp_request->refcount, 2);
1361 nes_post_cqp_request(nesdev, cqp_request);
1366 ret = wait_event_timeout(cqp_request->waitq,
1367 (cqp_request->request_done != 0), NES_EVENT_TIMEOUT);
1372 cqp_request->major_code, cqp_request->minor_code);
1373 if ((!ret) || (cqp_request->major_code)) {
1374 nes_put_cqp_request(nesdev, cqp_request);
1385 nes_put_cqp_request(nesdev, cqp_request);
1540 struct nes_cqp_request *cqp_request;
1639 cqp_request = nes_get_cqp_request(nesdev);
1640 if (cqp_request == NULL) {
1641 nes_debug(NES_DBG_CQ, "Failed to get a cqp_request.\n");
1655 cqp_request->waiting = 1;
1656 cqp_wqe = &cqp_request->cqp_wqe;
1670 nes_free_cqp_request(nesdev, cqp_request);
1692 nes_free_cqp_request(nesdev, cqp_request);
1738 atomic_set(&cqp_request->refcount, 2);
1739 nes_post_cqp_request(nesdev, cqp_request);
1744 ret = wait_event_timeout(cqp_request->waitq, (0 != cqp_request->request_done),
1748 if ((!ret) || (cqp_request->major_code)) {
1749 nes_put_cqp_request(nesdev, cqp_request);
1762 nes_put_cqp_request(nesdev, cqp_request);
1793 struct nes_cqp_request *cqp_request;
1809 cqp_request = nes_get_cqp_request(nesdev);
1810 if (cqp_request == NULL) {
1811 nes_debug(NES_DBG_CQ, "Failed to get a cqp_request.\n");
1814 cqp_request->waiting = 1;
1815 cqp_wqe = &cqp_request->cqp_wqe;
1842 atomic_set(&cqp_request->refcount, 2);
1843 nes_post_cqp_request(nesdev, cqp_request);
1848 ret = wait_event_timeout(cqp_request->waitq, (0 != cqp_request->request_done),
1852 nescq->hw_cq.cq_number, ret, cqp_request->major_code,
1853 cqp_request->minor_code);
1858 } else if (cqp_request->major_code) {
1865 nes_put_cqp_request(nesdev, cqp_request);
1932 struct nes_cqp_request *cqp_request;
1947 cqp_request = nes_get_cqp_request(nesdev);
1948 if (cqp_request == NULL) {
1949 nes_debug(NES_DBG_MR, "Failed to get a cqp_request.\n");
1952 cqp_request->waiting = 1;
1953 cqp_wqe = &cqp_request->cqp_wqe;
1989 nes_free_cqp_request(nesdev, cqp_request);
2054 atomic_set(&cqp_request->refcount, 2);
2055 nes_post_cqp_request(nesdev, cqp_request);
2058 ret = wait_event_timeout(cqp_request->waitq, (0 != cqp_request->request_done),
2062 stag, ret, cqp_request->major_code, cqp_request->minor_code);
2063 major_code = cqp_request->major_code;
2064 nes_put_cqp_request(nesdev, cqp_request);
2663 struct nes_cqp_request *cqp_request;
2679 cqp_request = nes_get_cqp_request(nesdev);
2680 if (cqp_request == NULL) {
2681 nes_debug(NES_DBG_MR, "Failed to get a cqp_request.\n");
2684 cqp_request->waiting = 1;
2685 cqp_wqe = &cqp_request->cqp_wqe;
2693 atomic_set(&cqp_request->refcount, 2);
2694 nes_post_cqp_request(nesdev, cqp_request);
2698 ret = wait_event_timeout(cqp_request->waitq, (cqp_request->request_done != 0),
2702 ib_mr->rkey, ret, cqp_request->major_code, cqp_request->minor_code);
2704 major_code = cqp_request->major_code;
2705 minor_code = cqp_request->minor_code;
2707 nes_put_cqp_request(nesdev, cqp_request);
2855 struct nes_cqp_request *cqp_request;
2862 cqp_request = nes_get_cqp_request(nesdev);
2863 if (cqp_request == NULL) {
2864 nes_debug(NES_DBG_MOD_QP, "Failed to get a cqp_request.\n");
2868 cqp_request->waiting = 1;
2870 cqp_request->waiting = 0;
2872 cqp_wqe = &cqp_request->cqp_wqe;
2889 atomic_set(&cqp_request->refcount, 2);
2890 nes_post_cqp_request(nesdev, cqp_request);
2896 ret = wait_event_timeout(cqp_request->waitq, (cqp_request->request_done != 0),
2900 nesqp->hwqp.qp_id, ret, cqp_request->major_code, cqp_request->minor_code);
2901 major_code = cqp_request->major_code;
2905 nesqp->hwqp.qp_id, cqp_request->major_code,
2906 cqp_request->minor_code, next_iwarp_state);
2909 nes_put_cqp_request(nesdev, cqp_request);