Lines Matching full:mid
28 struct mid_q_entry *mid) in send_nt_cancel() argument
40 rc = cifs_sign_smb(in_buf, server, &mid->sequence_number); in send_nt_cancel()
58 cifs_dbg(FYI, "issued NT_CANCEL for mid %u, rc = %d\n", in send_nt_cancel()
91 struct mid_q_entry *mid; in cifs_find_mid() local
94 list_for_each_entry(mid, &server->pending_mid_q, qhead) { in cifs_find_mid()
95 if (compare_mid(mid->mid, buf) && in cifs_find_mid()
96 mid->mid_state == MID_REQUEST_SUBMITTED && in cifs_find_mid()
97 le16_to_cpu(mid->command) == buf->Command) { in cifs_find_mid()
98 kref_get(&mid->refcount); in cifs_find_mid()
100 return mid; in cifs_find_mid()
134 cifs_get_credits(struct mid_q_entry *mid) in cifs_get_credits() argument
140 * Find a free multiplex id (SMB mid). Otherwise there could be
141 * mid collisions which might cause problems, demultiplexing the
149 * to demultiplex on (rather than mid alone).
153 * response would be discarded if the mid were the same
154 * but the signature was wrong. Since the mid is not put in the
163 __u64 mid = 0; in cifs_get_next_mid() local
169 /* mid is 16 bit only for CIFS/SMB */ in cifs_get_next_mid()
174 /* avoid 0xFFFF MID */ in cifs_get_next_mid()
198 if (mid_entry->mid == cur_mid && in cifs_get_next_mid()
200 /* This mid is in use, try a different one */ in cifs_get_next_mid()
213 * Go ahead and assign out the mid in this situation, but force in cifs_get_next_mid()
220 mid = (__u64)cur_mid; in cifs_get_next_mid()
221 server->CurrentMid = mid; in cifs_get_next_mid()
227 return mid; in cifs_get_next_mid()
379 cifs_check_trans2(struct mid_q_entry *mid, struct TCP_Server_Info *server, in cifs_check_trans2() argument
386 mid->multiRsp = true; in cifs_check_trans2()
387 if (mid->resp_buf) { in cifs_check_trans2()
389 malformed = coalesce_t2(buf, mid->resp_buf); in cifs_check_trans2()
393 mid->multiEnd = true; in cifs_check_trans2()
394 dequeue_mid(mid, malformed); in cifs_check_trans2()
402 mid->resp_buf = buf; in cifs_check_trans2()
403 mid->large_buf = true; in cifs_check_trans2()