/fs/cifs/ |
D | transport.c | 48 cifs_wake_up_task(struct mid_q_entry *mid) in cifs_wake_up_task() argument 50 wake_up_process(mid->callback_data); in cifs_wake_up_task() 66 temp->mid = get_mid(smb_buffer); in AllocMidQEntry() 151 trace_smb3_slow_rsp(smb_cmd, midEntry->mid, midEntry->pid, in _cifs_mid_q_entry_release() 155 midEntry->command, midEntry->mid); in _cifs_mid_q_entry_release() 181 cifs_delete_mid(struct mid_q_entry *mid) in cifs_delete_mid() argument 184 if (!(mid->mid_flags & MID_DELETED)) { in cifs_delete_mid() 185 list_del_init(&mid->qhead); in cifs_delete_mid() 186 mid->mid_flags |= MID_DELETED; in cifs_delete_mid() 190 DeleteMidQEntry(mid); in cifs_delete_mid() [all …]
|
D | smb2transport.c | 719 temp->mid = le64_to_cpu(shdr->MessageId); in smb2_mid_entry_alloc() 738 le16_to_cpu(shdr->Command), temp->mid); in smb2_mid_entry_alloc() 744 struct smb2_sync_hdr *shdr, struct mid_q_entry **mid) in smb2_get_mid_entry() argument 771 *mid = smb2_mid_entry_alloc(shdr, server); in smb2_get_mid_entry() 772 if (*mid == NULL) in smb2_get_mid_entry() 775 list_add_tail(&(*mid)->qhead, &server->pending_mid_q); in smb2_get_mid_entry() 782 smb2_check_receive(struct mid_q_entry *mid, struct TCP_Server_Info *server, in smb2_check_receive() argument 785 unsigned int len = mid->resp_buf_size; in smb2_check_receive() 790 iov[0].iov_base = (char *)mid->resp_buf; in smb2_check_receive() 793 dump_smb(mid->resp_buf, min_t(u32, 80, len)); in smb2_check_receive() [all …]
|
D | smb2misc.c | 35 check_smb2_hdr(struct smb2_sync_hdr *shdr, __u64 mid) in check_smb2_hdr() argument 44 (mid == wire_mid)) { in check_smb2_hdr() 58 if (mid != wire_mid) in check_smb2_hdr() 60 mid, wire_mid); in check_smb2_hdr() 144 __u64 mid; in smb2_check_message() local 176 mid = le64_to_cpu(shdr->MessageId); in smb2_check_message() 193 mid); in smb2_check_message() 197 if (check_smb2_hdr(shdr, mid)) in smb2_check_message() 237 clc_len, len, mid); in smb2_check_message() 267 len, clc_len, command, mid); in smb2_check_message() [all …]
|
D | trace.h | 416 __u64 mid, 419 TP_ARGS(tid, sesid, cmd, mid, status, rc), 424 __field(__u64, mid) 432 __entry->mid = mid; 437 __entry->sesid, __entry->tid, __entry->cmd, __entry->mid, 446 __u64 mid, \ 449 TP_ARGS(tid, sesid, cmd, mid, status, rc)) 457 __u64 mid), 458 TP_ARGS(tid, sesid, cmd, mid), 463 __field(__u64, mid) [all …]
|
D | smb1ops.c | 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() 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 [all …]
|
D | smb2ops.c | 158 smb2_get_credits(struct mid_q_entry *mid) in smb2_get_credits() argument 160 return mid->credits_received; in smb2_get_credits() 250 __u64 mid; in smb2_get_next_mid() local 253 mid = server->CurrentMid++; in smb2_get_next_mid() 255 return mid; in smb2_get_next_mid() 270 struct mid_q_entry *mid; in __smb2_find_mid() local 280 list_for_each_entry(mid, &server->pending_mid_q, qhead) { in __smb2_find_mid() 281 if ((mid->mid == wire_mid) && in __smb2_find_mid() 282 (mid->mid_state == MID_REQUEST_SUBMITTED) && in __smb2_find_mid() 283 (mid->command == shdr->Command)) { in __smb2_find_mid() [all …]
|
D | cifsglob.h | 851 __u16 mid = server->ops->get_next_mid(server); in get_next_mid() local 856 return cpu_to_le16(mid); in get_next_mid() 882 compare_mid(__u16 mid, const struct smb_hdr *smb) in compare_mid() argument 884 return mid == le16_to_cpu(smb->Mid); in compare_mid() 1297 __u64 mid; member 1571 struct mid_q_entry *mid); 1581 typedef void (mid_callback_t)(struct mid_q_entry *mid); 1588 struct mid_q_entry *mid); 1595 __u64 mid; /* multiplex id */ member 1626 __u64 mid; member [all …]
|
D | cifsproto.h | 87 extern void cifs_delete_mid(struct mid_q_entry *mid); 89 extern void cifs_wake_up_task(struct mid_q_entry *mid); 91 struct mid_q_entry *mid); 120 extern int cifs_check_receive(struct mid_q_entry *mid, 157 extern int map_and_check_smb_error(struct mid_q_entry *mid, bool logErr); 230 extern void dequeue_mid(struct mid_q_entry *mid, bool malformed); 573 int cifs_readv_receive(struct TCP_Server_Info *server, struct mid_q_entry *mid);
|
D | cifssmb.c | 749 cifs_echo_callback(struct mid_q_entry *mid) in cifs_echo_callback() argument 751 struct TCP_Server_Info *server = mid->callback_data; in cifs_echo_callback() 754 DeleteMidQEntry(mid); in cifs_echo_callback() 1467 __cifs_readv_discard(struct TCP_Server_Info *server, struct mid_q_entry *mid, in __cifs_readv_discard() argument 1473 dequeue_mid(mid, malformed); in __cifs_readv_discard() 1474 mid->resp_buf = server->smallbuf; in __cifs_readv_discard() 1480 cifs_readv_discard(struct TCP_Server_Info *server, struct mid_q_entry *mid) in cifs_readv_discard() argument 1482 struct cifs_readdata *rdata = mid->callback_data; in cifs_readv_discard() 1484 return __cifs_readv_discard(server, mid, rdata->result); in cifs_readv_discard() 1488 cifs_readv_receive(struct TCP_Server_Info *server, struct mid_q_entry *mid) in cifs_readv_receive() argument [all …]
|
D | smb2proto.h | 46 extern int smb2_check_receive(struct mid_q_entry *mid, 70 struct mid_q_entry *mid); 249 extern int smb2_handle_cancelled_mid(struct mid_q_entry *mid, struct TCP_Server_Info *server);
|
D | connect.c | 825 dequeue_mid(struct mid_q_entry *mid, bool malformed) in dequeue_mid() argument 828 mid->when_received = jiffies; in dequeue_mid() 832 mid->mid_state = MID_RESPONSE_RECEIVED; in dequeue_mid() 834 mid->mid_state = MID_RESPONSE_MALFORMED; in dequeue_mid() 839 if (mid->mid_flags & MID_DELETED) in dequeue_mid() 842 list_del_init(&mid->qhead); in dequeue_mid() 843 mid->mid_flags |= MID_DELETED; in dequeue_mid() 863 handle_mid(struct mid_q_entry *mid, struct TCP_Server_Info *server, in handle_mid() argument 867 server->ops->check_trans2(mid, server, buf, malformed)) in handle_mid() 869 mid->credits_received = smb2_get_credits_from_hdr(buf, server); in handle_mid() [all …]
|
D | smb2pdu.c | 2924 oparms->fid->mid = le64_to_cpu(rsp->sync_hdr.MessageId); in SMB2_open() 3646 smb2_echo_callback(struct mid_q_entry *mid) in smb2_echo_callback() argument 3648 struct TCP_Server_Info *server = mid->callback_data; in smb2_echo_callback() 3649 struct smb2_echo_rsp *rsp = (struct smb2_echo_rsp *)mid->resp_buf; in smb2_echo_callback() 3652 if (mid->mid_state == MID_RESPONSE_RECEIVED in smb2_echo_callback() 3653 || mid->mid_state == MID_RESPONSE_MALFORMED) { in smb2_echo_callback() 3658 DeleteMidQEntry(mid); in smb2_echo_callback() 3947 smb2_readv_callback(struct mid_q_entry *mid) in smb2_readv_callback() argument 3949 struct cifs_readdata *rdata = mid->callback_data; in smb2_readv_callback() 3966 WARN_ONCE(rdata->server != mid->server, in smb2_readv_callback() [all …]
|
D | misc.c | 374 __u16 mid = get_mid(smb); in checkSMB() local 382 clc_len, 4 + rfclen, mid); in checkSMB() 386 rfclen, mid); in checkSMB() 399 rfclen, mid); in checkSMB()
|
D | netmisc.c | 885 map_and_check_smb_error(struct mid_q_entry *mid, bool logErr) in map_and_check_smb_error() argument 888 struct smb_hdr *smb = (struct smb_hdr *)mid->resp_buf; in map_and_check_smb_error() 901 if (mid->server->tcpStatus != CifsExiting) in map_and_check_smb_error() 902 mid->server->tcpStatus = CifsNeedReconnect; in map_and_check_smb_error()
|
D | cifs_debug.c | 66 mid_entry->mid); in cifs_dump_mids() 202 seq_printf(m, " 0x%llx\n", cfile->fid.mid); in cifs_debug_files_proc_show() 442 mid_entry->mid); in cifs_debug_data_proc_show()
|
/fs/xfs/libxfs/ |
D | xfs_dir2_block.c | 371 int mid=0; /* midpoint for binary srch */ in xfs_dir2_block_addname() local 453 mid = (low + high) >> 1; in xfs_dir2_block_addname() 454 if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval) in xfs_dir2_block_addname() 457 low = mid + 1; in xfs_dir2_block_addname() 459 high = mid - 1; in xfs_dir2_block_addname() 461 while (mid >= 0 && be32_to_cpu(blp[mid].hashval) >= args->hashval) { in xfs_dir2_block_addname() 462 mid--; in xfs_dir2_block_addname() 499 mid++; in xfs_dir2_block_addname() 500 if (mid) in xfs_dir2_block_addname() 501 memmove(blp, &blp[1], mid * sizeof(*blp)); in xfs_dir2_block_addname() [all …]
|
D | xfs_dir2_leaf.c | 1545 int mid=0; /* current leaf index */ in xfs_dir2_leaf_search_hash() local 1557 mid = (low + high) >> 1; in xfs_dir2_leaf_search_hash() 1558 if ((hash = be32_to_cpu(lep[mid].hashval)) == hashwant) in xfs_dir2_leaf_search_hash() 1561 low = mid + 1; in xfs_dir2_leaf_search_hash() 1563 high = mid - 1; in xfs_dir2_leaf_search_hash() 1569 while (mid > 0 && be32_to_cpu(lep[mid - 1].hashval) == hashwant) { in xfs_dir2_leaf_search_hash() 1570 mid--; in xfs_dir2_leaf_search_hash() 1577 mid++; in xfs_dir2_leaf_search_hash() 1578 return mid; in xfs_dir2_leaf_search_hash()
|
D | xfs_dir2_node.c | 1071 int mid; /* midpoint leaf index */ in xfs_dir2_leafn_rebalance() local 1102 mid = oldsum >> 1; in xfs_dir2_leafn_rebalance() 1111 if (mid >= hdr1.count) in xfs_dir2_leafn_rebalance() 1112 midhash = be32_to_cpu(ents2[mid - hdr1.count].hashval); in xfs_dir2_leafn_rebalance() 1114 midhash = be32_to_cpu(ents1[mid].hashval); in xfs_dir2_leafn_rebalance() 1128 count = hdr1.count - mid + (isleft == 0); in xfs_dir2_leafn_rebalance()
|
/fs/erofs/ |
D | namei.c | 60 const int mid = head + (back - head) / 2; in find_target_dirent() local 61 const int nameoff = nameoff_from_disk(de[mid].nameoff, in find_target_dirent() 66 .end = mid >= ndirents - 1 ? in find_target_dirent() 68 data + nameoff_from_disk(de[mid + 1].nameoff, in find_target_dirent() 76 return de + mid; in find_target_dirent() 78 head = mid + 1; in find_target_dirent() 81 back = mid - 1; in find_target_dirent() 103 const int mid = head + (back - head) / 2; in find_target_block_classic() local 104 struct page *page = read_mapping_page(mapping, mid, NULL); in find_target_block_classic() 120 mid, EROFS_I(dir)->nid); in find_target_block_classic() [all …]
|
/fs/btrfs/ |
D | ctree.c | 1744 int mid; in generic_bin_search() local 1746 mid = (low + high) / 2; in generic_bin_search() 1747 offset = p + mid * item_size; in generic_bin_search() 1763 low = mid + 1; in generic_bin_search() 1765 high = mid; in generic_bin_search() 1767 *slot = mid; in generic_bin_search() 1850 struct extent_buffer *mid; in balance_level() local 1861 mid = path->nodes[level]; in balance_level() 1865 WARN_ON(btrfs_header_generation(mid) != trans->transid); in balance_level() 1867 orig_ptr = btrfs_node_blockptr(mid, orig_slot); in balance_level() [all …]
|
/fs/befs/ |
D | btree.c | 333 int first, last, mid; in befs_find_key() local 358 mid = 0; in befs_find_key() 360 mid = (last + first) / 2; in befs_find_key() 362 mid); in befs_find_key() 363 thiskey = befs_bt_get_key(sb, node, mid, &keylen); in befs_find_key() 369 __func__, thiskey, mid); in befs_find_key() 371 *value = fs64_to_cpu(sb, valarray[mid]); in befs_find_key() 375 last = mid - 1; in befs_find_key() 377 first = mid + 1; in befs_find_key() 382 *value = fs64_to_cpu(sb, valarray[mid + 1]); in befs_find_key() [all …]
|
/fs/ubifs/ |
D | tnc_misc.c | 129 int beg = 0, end = znode->child_cnt, mid; in ubifs_search_zbranch() local 136 mid = (beg + end) >> 1; in ubifs_search_zbranch() 137 cmp = keys_cmp(c, key, &zbr[mid].key); in ubifs_search_zbranch() 139 beg = mid + 1; in ubifs_search_zbranch() 141 end = mid; in ubifs_search_zbranch() 143 *n = mid; in ubifs_search_zbranch()
|
/fs/jffs2/ |
D | README.Locking | 89 erase_completion_lock, and can drop the lock temporarily mid-walk as
|