Lines Matching full:mid

30 	       struct mid_q_entry *mid)  in send_nt_cancel()  argument
42 rc = cifs_sign_smb(in_buf, server, &mid->sequence_number); in send_nt_cancel()
60 cifs_dbg(FYI, "issued NT_CANCEL for mid %u, rc = %d\n", in send_nt_cancel()
93 struct mid_q_entry *mid; in cifs_find_mid() local
96 list_for_each_entry(mid, &server->pending_mid_q, qhead) { in cifs_find_mid()
97 if (compare_mid(mid->mid, buf) && in cifs_find_mid()
98 mid->mid_state == MID_REQUEST_SUBMITTED && in cifs_find_mid()
99 le16_to_cpu(mid->command) == buf->Command) { in cifs_find_mid()
100 kref_get(&mid->refcount); in cifs_find_mid()
102 return mid; in cifs_find_mid()
136 cifs_get_credits(struct mid_q_entry *mid) in cifs_get_credits() argument
142 * Find a free multiplex id (SMB mid). Otherwise there could be
143 * mid collisions which might cause problems, demultiplexing the
151 * to demultiplex on (rather than mid alone).
155 * response would be discarded if the mid were the same
156 * but the signature was wrong. Since the mid is not put in the
165 __u64 mid = 0; in cifs_get_next_mid() local
171 /* mid is 16 bit only for CIFS/SMB */ in cifs_get_next_mid()
176 /* avoid 0xFFFF MID */ in cifs_get_next_mid()
200 if (mid_entry->mid == cur_mid && in cifs_get_next_mid()
202 /* This mid is in use, try a different one */ in cifs_get_next_mid()
215 * Go ahead and assign out the mid in this situation, but force in cifs_get_next_mid()
222 mid = (__u64)cur_mid; in cifs_get_next_mid()
223 server->CurrentMid = mid; in cifs_get_next_mid()
234 return mid; in cifs_get_next_mid()
386 cifs_check_trans2(struct mid_q_entry *mid, struct TCP_Server_Info *server, in cifs_check_trans2() argument
393 mid->multiRsp = true; in cifs_check_trans2()
394 if (mid->resp_buf) { in cifs_check_trans2()
396 malformed = coalesce_t2(buf, mid->resp_buf); in cifs_check_trans2()
400 mid->multiEnd = true; in cifs_check_trans2()
401 dequeue_mid(mid, malformed); in cifs_check_trans2()
409 mid->resp_buf = buf; in cifs_check_trans2()
410 mid->large_buf = true; in cifs_check_trans2()