Lines Matching defs:mid
28 struct mid_q_entry *mid)
40 rc = cifs_sign_smb(in_buf, server, &mid->sequence_number);
58 cifs_dbg(FYI, "issued NT_CANCEL for mid %u, rc = %d\n",
91 struct mid_q_entry *mid;
94 list_for_each_entry(mid, &server->pending_mid_q, qhead) {
95 if (compare_mid(mid->mid, buf) &&
96 mid->mid_state == MID_REQUEST_SUBMITTED &&
97 le16_to_cpu(mid->command) == buf->Command) {
98 kref_get(&mid->refcount);
100 return mid;
134 cifs_get_credits(struct mid_q_entry *mid)
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;
169 /* mid is 16 bit only for CIFS/SMB */
198 if (mid_entry->mid == cur_mid &&
200 /* This mid is in use, try a different one */
213 * Go ahead and assign out the mid in this situation, but force
220 mid = (__u64)cur_mid;
221 server->CurrentMid = mid;
227 return mid;
379 cifs_check_trans2(struct mid_q_entry *mid, struct TCP_Server_Info *server,
386 mid->multiRsp = true;
387 if (mid->resp_buf) {
389 malformed = coalesce_t2(buf, mid->resp_buf);
393 mid->multiEnd = true;
394 dequeue_mid(mid, malformed);
402 mid->resp_buf = buf;
403 mid->large_buf = true;