Lines Matching defs:mid
30 struct mid_q_entry *mid)
42 rc = cifs_sign_smb(in_buf, server, &mid->sequence_number);
60 cifs_dbg(FYI, "issued NT_CANCEL for mid %u, rc = %d\n",
93 struct mid_q_entry *mid;
96 list_for_each_entry(mid, &server->pending_mid_q, qhead) {
97 if (compare_mid(mid->mid, buf) &&
98 mid->mid_state == MID_REQUEST_SUBMITTED &&
99 le16_to_cpu(mid->command) == buf->Command) {
100 kref_get(&mid->refcount);
102 return mid;
136 cifs_get_credits(struct mid_q_entry *mid)
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;
171 /* mid is 16 bit only for CIFS/SMB */
200 if (mid_entry->mid == cur_mid &&
202 /* This mid is in use, try a different one */
215 * Go ahead and assign out the mid in this situation, but force
222 mid = (__u64)cur_mid;
223 server->CurrentMid = mid;
234 return mid;
386 cifs_check_trans2(struct mid_q_entry *mid, struct TCP_Server_Info *server,
393 mid->multiRsp = true;
394 if (mid->resp_buf) {
396 malformed = coalesce_t2(buf, mid->resp_buf);
400 mid->multiEnd = true;
401 dequeue_mid(mid, malformed);
409 mid->resp_buf = buf;
410 mid->large_buf = true;