| /Linux-v6.6/fs/smb/server/ |
| D | smb2pdu.h | 420 bool is_smb2_neg_cmd(struct ksmbd_work *work); 421 bool is_smb2_rsp(struct ksmbd_work *work); 423 u16 get_smb2_cmd_val(struct ksmbd_work *work); 424 void set_smb2_rsp_status(struct ksmbd_work *work, __le32 err); 425 int init_smb2_rsp_hdr(struct ksmbd_work *work); 426 int smb2_allocate_rsp_buf(struct ksmbd_work *work); 427 bool is_chained_smb2_message(struct ksmbd_work *work); 428 int init_smb2_neg_rsp(struct ksmbd_work *work); 429 void smb2_set_err_rsp(struct ksmbd_work *work); 430 int smb2_check_user_session(struct ksmbd_work *work); [all …]
|
| D | ksmbd_work.h | 28 struct ksmbd_work { struct 99 static inline void *ksmbd_resp_buf_next(struct ksmbd_work *work) in ksmbd_resp_buf_next() argument 108 static inline void *ksmbd_resp_buf_curr(struct ksmbd_work *work) in ksmbd_resp_buf_curr() 117 static inline void *ksmbd_req_buf_next(struct ksmbd_work *work) in ksmbd_req_buf_next() 122 struct ksmbd_work *ksmbd_alloc_work_struct(void); 123 void ksmbd_free_work_struct(struct ksmbd_work *work); 130 bool ksmbd_queue_work(struct ksmbd_work *work); 131 int ksmbd_iov_pin_rsp_read(struct ksmbd_work *work, void *ib, int len, 133 int ksmbd_iov_pin_rsp(struct ksmbd_work *work, void *ib, int len); 134 int allocate_interim_rsp_buf(struct ksmbd_work *work);
|
| D | vfs.h | 36 struct ksmbd_work; 77 int ksmbd_vfs_create(struct ksmbd_work *work, const char *name, umode_t mode); 78 int ksmbd_vfs_mkdir(struct ksmbd_work *work, const char *name, umode_t mode); 79 int ksmbd_vfs_read(struct ksmbd_work *work, struct ksmbd_file *fp, size_t count, 81 int ksmbd_vfs_write(struct ksmbd_work *work, struct ksmbd_file *fp, 84 int ksmbd_vfs_fsync(struct ksmbd_work *work, u64 fid, u64 p_id); 85 int ksmbd_vfs_remove_file(struct ksmbd_work *work, const struct path *path); 86 int ksmbd_vfs_link(struct ksmbd_work *work, 89 int ksmbd_vfs_rename(struct ksmbd_work *work, const struct path *old_path, 91 int ksmbd_vfs_truncate(struct ksmbd_work *work, [all …]
|
| D | smb_common.h | 399 u16 (*get_cmd_val)(struct ksmbd_work *swork); 400 int (*init_rsp_hdr)(struct ksmbd_work *swork); 401 void (*set_rsp_status)(struct ksmbd_work *swork, __le32 err); 402 int (*allocate_rsp_buf)(struct ksmbd_work *work); 403 int (*set_rsp_credits)(struct ksmbd_work *work); 404 int (*check_user_session)(struct ksmbd_work *work); 405 int (*get_ksmbd_tcon)(struct ksmbd_work *work); 406 bool (*is_sign_req)(struct ksmbd_work *work, unsigned int command); 407 int (*check_sign_req)(struct ksmbd_work *work); 408 void (*set_sign_rsp)(struct ksmbd_work *work); [all …]
|
| D | ksmbd_work.c | 19 struct ksmbd_work *ksmbd_alloc_work_struct(void) in ksmbd_alloc_work_struct() 21 struct ksmbd_work *work = kmem_cache_zalloc(work_cache, GFP_KERNEL); in ksmbd_alloc_work_struct() 42 void ksmbd_free_work_struct(struct ksmbd_work *work) in ksmbd_free_work_struct() 72 sizeof(struct ksmbd_work), 0, in ksmbd_work_pool_init() 93 bool ksmbd_queue_work(struct ksmbd_work *work) in ksmbd_queue_work() 98 static int ksmbd_realloc_iov_pin(struct ksmbd_work *work, void *ib, in ksmbd_realloc_iov_pin() 121 static int __ksmbd_iov_pin_rsp(struct ksmbd_work *work, void *ib, int len, in __ksmbd_iov_pin_rsp() 152 int ksmbd_iov_pin_rsp(struct ksmbd_work *work, void *ib, int len) in ksmbd_iov_pin_rsp() 157 int ksmbd_iov_pin_rsp_read(struct ksmbd_work *work, void *ib, int len, in ksmbd_iov_pin_rsp_read() 163 int allocate_interim_rsp_buf(struct ksmbd_work *work) in allocate_interim_rsp_buf()
|
| D | vfs_cache.h | 135 int ksmbd_close_fd(struct ksmbd_work *work, u64 id); 136 struct ksmbd_file *ksmbd_lookup_fd_fast(struct ksmbd_work *work, u64 id); 137 struct ksmbd_file *ksmbd_lookup_foreign_fd(struct ksmbd_work *work, u64 id); 138 struct ksmbd_file *ksmbd_lookup_fd_slow(struct ksmbd_work *work, u64 id, 140 void ksmbd_fd_put(struct ksmbd_work *work, struct ksmbd_file *fp); 145 struct ksmbd_file *ksmbd_open_fd(struct ksmbd_work *work, struct file *filp); 146 void ksmbd_close_tree_conn_fds(struct ksmbd_work *work); 147 void ksmbd_close_session_fds(struct ksmbd_work *work); 148 int ksmbd_close_inode_fds(struct ksmbd_work *work, struct inode *inode);
|
| D | smb_common.c | 135 int ksmbd_verify_smb_message(struct ksmbd_work *work) in ksmbd_verify_smb_message() 306 static u16 get_smb1_cmd_val(struct ksmbd_work *work) in get_smb1_cmd_val() 317 static int init_smb1_rsp_hdr(struct ksmbd_work *work) in init_smb1_rsp_hdr() 338 static int smb1_check_user_session(struct ksmbd_work *work) in smb1_check_user_session() 354 static int smb1_allocate_rsp_buf(struct ksmbd_work *work) in smb1_allocate_rsp_buf() 376 static int smb1_negotiate(struct ksmbd_work *work) in smb1_negotiate() 393 int ksmbd_init_smb_server(struct ksmbd_work *work) in ksmbd_init_smb_server() 410 int ksmbd_populate_dot_dotdot_entries(struct ksmbd_work *work, int info_level, in ksmbd_populate_dot_dotdot_entries() 551 static int smb_handle_negotiate(struct ksmbd_work *work) in smb_handle_negotiate() 568 int ksmbd_smb_negotiate_common(struct ksmbd_work *work, unsigned int command) in ksmbd_smb_negotiate_common() [all …]
|
| D | oplock.h | 62 struct ksmbd_work *work; 95 int smb_grant_oplock(struct ksmbd_work *work, int req_op_level, 98 void smb_break_all_levII_oplock(struct ksmbd_work *work, 105 void smb_break_all_oplock(struct ksmbd_work *work, struct ksmbd_file *fp);
|
| D | vfs_cache.c | 360 static void __put_fd_final(struct ksmbd_work *work, struct ksmbd_file *fp) in __put_fd_final() 368 struct ksmbd_work *cancel_work; in set_close_state_blocked_works() 379 int ksmbd_close_fd(struct ksmbd_work *work, u64 id) in ksmbd_close_fd() 410 void ksmbd_fd_put(struct ksmbd_work *work, struct ksmbd_file *fp) in ksmbd_fd_put() 429 struct ksmbd_file *ksmbd_lookup_foreign_fd(struct ksmbd_work *work, u64 id) in ksmbd_lookup_foreign_fd() 434 struct ksmbd_file *ksmbd_lookup_fd_fast(struct ksmbd_work *work, u64 id) in ksmbd_lookup_fd_fast() 445 struct ksmbd_file *ksmbd_lookup_fd_slow(struct ksmbd_work *work, u64 id, in ksmbd_lookup_fd_slow() 559 struct ksmbd_file *ksmbd_open_fd(struct ksmbd_work *work, struct file *filp) in ksmbd_open_fd() 650 void ksmbd_close_tree_conn_fds(struct ksmbd_work *work) in ksmbd_close_tree_conn_fds() 659 void ksmbd_close_session_fds(struct ksmbd_work *work) in ksmbd_close_session_fds()
|
| D | connection.h | 152 int ksmbd_conn_write(struct ksmbd_work *work); 161 void ksmbd_conn_enqueue_request(struct ksmbd_work *work); 162 void ksmbd_conn_try_dequeue_request(struct ksmbd_work *work);
|
| D | server.c | 92 static inline int check_conn_state(struct ksmbd_work *work) in check_conn_state() 108 static int __process_request(struct ksmbd_work *work, struct ksmbd_conn *conn, in __process_request() 163 static void __handle_ksmbd_work(struct ksmbd_work *work, in __handle_ksmbd_work() 265 struct ksmbd_work *work = container_of(wk, struct ksmbd_work, work); in handle_ksmbd_work() 292 struct ksmbd_work *work; in queue_ksmbd_work()
|
| D | auth.h | 36 struct ksmbd_work; 39 int ksmbd_crypt_message(struct ksmbd_work *work, struct kvec *iov,
|
| D | smb2pdu.c | 42 static void __wbuf(struct ksmbd_work *work, void **req, void **rsp) in __wbuf() 88 int smb2_get_ksmbd_tcon(struct ksmbd_work *work) in smb2_get_ksmbd_tcon() 138 void smb2_set_err_rsp(struct ksmbd_work *work) in smb2_set_err_rsp() 169 bool is_smb2_neg_cmd(struct ksmbd_work *work) in is_smb2_neg_cmd() 193 bool is_smb2_rsp(struct ksmbd_work *work) in is_smb2_rsp() 214 u16 get_smb2_cmd_val(struct ksmbd_work *work) in get_smb2_cmd_val() 230 void set_smb2_rsp_status(struct ksmbd_work *work, __le32 err) in set_smb2_rsp_status() 250 int init_smb2_neg_rsp(struct ksmbd_work *work) in init_smb2_neg_rsp() 311 int smb2_set_rsp_credits(struct ksmbd_work *work) in smb2_set_rsp_credits() 373 static void init_chained_smb2_rsp(struct ksmbd_work *work) in init_chained_smb2_rsp() [all …]
|
| D | oplock.c | 30 static struct oplock_info *alloc_opinfo(struct ksmbd_work *work, in alloc_opinfo() 632 struct ksmbd_work *work = container_of(wk, struct ksmbd_work, work); in __smb2_oplock_break_noti() 702 struct ksmbd_work *work = ksmbd_alloc_work_struct(); in smb2_oplock_break_noti() 742 struct ksmbd_work *work = container_of(wk, struct ksmbd_work, work); in __smb2_lease_break_noti() 802 struct ksmbd_work *work; in smb2_lease_break_noti() 830 struct ksmbd_work *in_work; in smb2_lease_break_noti() 832 in_work = list_entry(tmp, struct ksmbd_work, in smb2_lease_break_noti() 1095 int smb_grant_oplock(struct ksmbd_work *work, int req_op_level, u64 pid, in smb_grant_oplock() 1225 static void smb_break_all_write_oplock(struct ksmbd_work *work, in smb_break_all_write_oplock() 1252 void smb_break_all_levII_oplock(struct ksmbd_work *work, struct ksmbd_file *fp, in smb_break_all_levII_oplock() [all …]
|
| D | vfs.c | 39 static void ksmbd_vfs_inherit_owner(struct ksmbd_work *work, in ksmbd_vfs_inherit_owner() 160 int ksmbd_vfs_create(struct ksmbd_work *work, const char *name, umode_t mode) in ksmbd_vfs_create() 204 int ksmbd_vfs_mkdir(struct ksmbd_work *work, const char *name, umode_t mode) in ksmbd_vfs_mkdir() 374 int ksmbd_vfs_read(struct ksmbd_work *work, struct ksmbd_file *fp, size_t count, in ksmbd_vfs_read() 489 int ksmbd_vfs_write(struct ksmbd_work *work, struct ksmbd_file *fp, in ksmbd_vfs_write() 571 int ksmbd_vfs_fsync(struct ksmbd_work *work, u64 fid, u64 p_id) in ksmbd_vfs_fsync() 594 int ksmbd_vfs_remove_file(struct ksmbd_work *work, const struct path *path) in ksmbd_vfs_remove_file() 636 int ksmbd_vfs_link(struct ksmbd_work *work, const char *oldname, in ksmbd_vfs_link() 688 int ksmbd_vfs_rename(struct ksmbd_work *work, const struct path *old_path, in ksmbd_vfs_rename() 813 int ksmbd_vfs_truncate(struct ksmbd_work *work, in ksmbd_vfs_truncate() [all …]
|
| D | connection.c | 112 void ksmbd_conn_enqueue_request(struct ksmbd_work *work) in ksmbd_conn_enqueue_request() 128 void ksmbd_conn_try_dequeue_request(struct ksmbd_work *work) in ksmbd_conn_try_dequeue_request() 189 int ksmbd_conn_write(struct ksmbd_work *work) in ksmbd_conn_write()
|
| D | Makefile | 8 misc.o oplock.o connection.o ksmbd_work.o crypto_ctx.o \
|
| D | smb2misc.c | 347 int ksmbd_smb2_check_message(struct ksmbd_work *work) in ksmbd_smb2_check_message() 449 int smb2_negotiate_request(struct ksmbd_work *work) in smb2_negotiate_request()
|
| D | auth.c | 998 static int ksmbd_get_encryption_key(struct ksmbd_work *work, __u64 ses_id, in ksmbd_get_encryption_key() 1102 int ksmbd_crypt_message(struct ksmbd_work *work, struct kvec *iov, in ksmbd_crypt_message()
|