Lines Matching defs:mid
33 struct mid_q_entry *mid)
45 rc = cifs_sign_smb(in_buf, server, &mid->sequence_number);
63 cifs_dbg(FYI, "issued NT_CANCEL for mid %u, rc = %d\n",
96 struct mid_q_entry *mid;
99 list_for_each_entry(mid, &server->pending_mid_q, qhead) {
100 if (compare_mid(mid->mid, buf) &&
101 mid->mid_state == MID_REQUEST_SUBMITTED &&
102 le16_to_cpu(mid->command) == buf->Command) {
103 kref_get(&mid->refcount);
105 return mid;
139 cifs_get_credits(struct mid_q_entry *mid)
145 * Find a free multiplex id (SMB mid). Otherwise there could be
146 * mid collisions which might cause problems, demultiplexing the
154 * to demultiplex on (rather than mid alone).
158 * response would be discarded if the mid were the same
159 * but the signature was wrong. Since the mid is not put in the
168 __u64 mid = 0;
173 /* mid is 16 bit only for CIFS/SMB */
203 if (mid_entry->mid == cur_mid &&
205 /* This mid is in use, try a different one */
219 * Go ahead and assign out the mid in this situation, but force
226 mid = (__u64)cur_mid;
227 server->current_mid = mid;
238 return mid;
390 cifs_check_trans2(struct mid_q_entry *mid, struct TCP_Server_Info *server,
397 mid->multiRsp = true;
398 if (mid->resp_buf) {
400 malformed = coalesce_t2(buf, mid->resp_buf);
404 mid->multiEnd = true;
405 dequeue_mid(mid, malformed);
413 mid->resp_buf = buf;
414 mid->large_buf = true;