midQ 722 fs/cifs/transport.c wait_for_response(struct TCP_Server_Info *server, struct mid_q_entry *midQ) midQ 727 fs/cifs/transport.c midQ->mid_state != MID_REQUEST_SUBMITTED); midQ 1001 fs/cifs/transport.c struct mid_q_entry *midQ[MAX_COMPOUND]; midQ 1065 fs/cifs/transport.c midQ[i] = server->ops->setup_request(ses, &rqst[i]); midQ 1066 fs/cifs/transport.c if (IS_ERR(midQ[i])) { midQ 1069 fs/cifs/transport.c cifs_delete_mid(midQ[j]); midQ 1075 fs/cifs/transport.c return PTR_ERR(midQ[i]); midQ 1078 fs/cifs/transport.c midQ[i]->mid_state = MID_REQUEST_SUBMITTED; midQ 1079 fs/cifs/transport.c midQ[i]->optype = optype; midQ 1086 fs/cifs/transport.c midQ[i]->callback = cifs_compound_callback; midQ 1088 fs/cifs/transport.c midQ[i]->callback = cifs_compound_last_callback; midQ 1095 fs/cifs/transport.c cifs_save_when_sent(midQ[i]); midQ 1130 fs/cifs/transport.c rc = wait_for_response(server, midQ[i]); midQ 1137 fs/cifs/transport.c midQ[i]->mid, le16_to_cpu(midQ[i]->command)); midQ 1138 fs/cifs/transport.c send_cancel(server, &rqst[i], midQ[i]); midQ 1140 fs/cifs/transport.c midQ[i]->mid_flags |= MID_WAIT_CANCELLED; midQ 1141 fs/cifs/transport.c if (midQ[i]->mid_state == MID_REQUEST_SUBMITTED) { midQ 1142 fs/cifs/transport.c midQ[i]->callback = cifs_cancelled_callback; midQ 1154 fs/cifs/transport.c rc = cifs_sync_mid_result(midQ[i], server); midQ 1161 fs/cifs/transport.c if (!midQ[i]->resp_buf || midQ 1162 fs/cifs/transport.c midQ[i]->mid_state != MID_RESPONSE_RECEIVED) { midQ 1168 fs/cifs/transport.c buf = (char *)midQ[i]->resp_buf; midQ 1170 fs/cifs/transport.c resp_iov[i].iov_len = midQ[i]->resp_buf_size + midQ 1173 fs/cifs/transport.c if (midQ[i]->large_buf) midQ 1178 fs/cifs/transport.c rc = server->ops->check_receive(midQ[i], server, midQ 1183 fs/cifs/transport.c midQ[i]->resp_buf = NULL; midQ 1207 fs/cifs/transport.c cifs_delete_mid(midQ[i]); midQ 1266 fs/cifs/transport.c struct mid_q_entry *midQ; midQ 1306 fs/cifs/transport.c rc = allocate_mid(ses, in_buf, &midQ); midQ 1314 fs/cifs/transport.c rc = cifs_sign_smb(in_buf, server, &midQ->sequence_number); midQ 1320 fs/cifs/transport.c midQ->mid_state = MID_REQUEST_SUBMITTED; midQ 1325 fs/cifs/transport.c cifs_save_when_sent(midQ); midQ 1335 fs/cifs/transport.c rc = wait_for_response(server, midQ); midQ 1337 fs/cifs/transport.c send_cancel(server, &rqst, midQ); midQ 1339 fs/cifs/transport.c if (midQ->mid_state == MID_REQUEST_SUBMITTED) { midQ 1341 fs/cifs/transport.c midQ->callback = DeleteMidQEntry; midQ 1349 fs/cifs/transport.c rc = cifs_sync_mid_result(midQ, server); midQ 1355 fs/cifs/transport.c if (!midQ->resp_buf || !out_buf || midQ 1356 fs/cifs/transport.c midQ->mid_state != MID_RESPONSE_RECEIVED) { midQ 1362 fs/cifs/transport.c *pbytes_returned = get_rfc1002_length(midQ->resp_buf); midQ 1363 fs/cifs/transport.c memcpy(out_buf, midQ->resp_buf, *pbytes_returned + 4); midQ 1364 fs/cifs/transport.c rc = cifs_check_receive(midQ, server, 0); midQ 1366 fs/cifs/transport.c cifs_delete_mid(midQ); midQ 1404 fs/cifs/transport.c struct mid_q_entry *midQ; midQ 1447 fs/cifs/transport.c rc = allocate_mid(ses, in_buf, &midQ); midQ 1453 fs/cifs/transport.c rc = cifs_sign_smb(in_buf, server, &midQ->sequence_number); midQ 1455 fs/cifs/transport.c cifs_delete_mid(midQ); midQ 1460 fs/cifs/transport.c midQ->mid_state = MID_REQUEST_SUBMITTED; midQ 1464 fs/cifs/transport.c cifs_save_when_sent(midQ); midQ 1472 fs/cifs/transport.c cifs_delete_mid(midQ); midQ 1478 fs/cifs/transport.c (!(midQ->mid_state == MID_REQUEST_SUBMITTED)) || midQ 1484 fs/cifs/transport.c (midQ->mid_state == MID_REQUEST_SUBMITTED) && midQ 1491 fs/cifs/transport.c rc = send_cancel(server, &rqst, midQ); midQ 1493 fs/cifs/transport.c cifs_delete_mid(midQ); midQ 1505 fs/cifs/transport.c cifs_delete_mid(midQ); midQ 1510 fs/cifs/transport.c rc = wait_for_response(server, midQ); midQ 1512 fs/cifs/transport.c send_cancel(server, &rqst, midQ); midQ 1514 fs/cifs/transport.c if (midQ->mid_state == MID_REQUEST_SUBMITTED) { midQ 1516 fs/cifs/transport.c midQ->callback = DeleteMidQEntry; midQ 1527 fs/cifs/transport.c rc = cifs_sync_mid_result(midQ, server); midQ 1532 fs/cifs/transport.c if (out_buf == NULL || midQ->mid_state != MID_RESPONSE_RECEIVED) { midQ 1538 fs/cifs/transport.c *pbytes_returned = get_rfc1002_length(midQ->resp_buf); midQ 1539 fs/cifs/transport.c memcpy(out_buf, midQ->resp_buf, *pbytes_returned + 4); midQ 1540 fs/cifs/transport.c rc = cifs_check_receive(midQ, server, 0); midQ 1542 fs/cifs/transport.c cifs_delete_mid(midQ);