/linux-5.19.10/fs/ksmbd/ |
D | smb2pdu.h | 464 bool is_smb2_neg_cmd(struct ksmbd_work *work); 465 bool is_smb2_rsp(struct ksmbd_work *work); 467 u16 get_smb2_cmd_val(struct ksmbd_work *work); 468 void set_smb2_rsp_status(struct ksmbd_work *work, __le32 err); 469 int init_smb2_rsp_hdr(struct ksmbd_work *work); 470 int smb2_allocate_rsp_buf(struct ksmbd_work *work); 471 bool is_chained_smb2_message(struct ksmbd_work *work); 472 int init_smb2_neg_rsp(struct ksmbd_work *work); 473 void smb2_set_err_rsp(struct ksmbd_work *work); 474 int smb2_check_user_session(struct ksmbd_work *work); [all …]
|
D | vfs.h | 35 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, 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, char *name); 86 int ksmbd_vfs_link(struct ksmbd_work *work, 89 int ksmbd_vfs_fp_rename(struct ksmbd_work *work, struct ksmbd_file *fp, 91 int ksmbd_vfs_truncate(struct ksmbd_work *work, [all …]
|
D | connection.h | 153 int ksmbd_conn_write(struct ksmbd_work *work); 162 void ksmbd_conn_enqueue_request(struct ksmbd_work *work); 163 int ksmbd_conn_try_dequeue_request(struct ksmbd_work *work); 175 static inline bool ksmbd_conn_good(struct ksmbd_work *work) in ksmbd_conn_good() 180 static inline bool ksmbd_conn_need_negotiate(struct ksmbd_work *work) in ksmbd_conn_need_negotiate() 185 static inline bool ksmbd_conn_need_reconnect(struct ksmbd_work *work) in ksmbd_conn_need_reconnect() 190 static inline bool ksmbd_conn_exiting(struct ksmbd_work *work) in ksmbd_conn_exiting() 195 static inline void ksmbd_conn_set_good(struct ksmbd_work *work) in ksmbd_conn_set_good() 200 static inline void ksmbd_conn_set_need_negotiate(struct ksmbd_work *work) in ksmbd_conn_set_need_negotiate() 205 static inline void ksmbd_conn_set_need_reconnect(struct ksmbd_work *work) in ksmbd_conn_set_need_reconnect() [all …]
|
D | smb_common.h | 413 u16 (*get_cmd_val)(struct ksmbd_work *swork); 414 int (*init_rsp_hdr)(struct ksmbd_work *swork); 415 void (*set_rsp_status)(struct ksmbd_work *swork, __le32 err); 416 int (*allocate_rsp_buf)(struct ksmbd_work *work); 417 int (*set_rsp_credits)(struct ksmbd_work *work); 418 int (*check_user_session)(struct ksmbd_work *work); 419 int (*get_ksmbd_tcon)(struct ksmbd_work *work); 420 bool (*is_sign_req)(struct ksmbd_work *work, unsigned int command); 421 int (*check_sign_req)(struct ksmbd_work *work); 422 void (*set_sign_rsp)(struct ksmbd_work *work); [all …]
|
D | vfs_cache.h | 128 int ksmbd_close_fd(struct ksmbd_work *work, u64 id); 129 struct ksmbd_file *ksmbd_lookup_fd_fast(struct ksmbd_work *work, u64 id); 130 struct ksmbd_file *ksmbd_lookup_foreign_fd(struct ksmbd_work *work, u64 id); 131 struct ksmbd_file *ksmbd_lookup_fd_slow(struct ksmbd_work *work, u64 id, 133 void ksmbd_fd_put(struct ksmbd_work *work, struct ksmbd_file *fp); 138 struct ksmbd_file *ksmbd_open_fd(struct ksmbd_work *work, struct file *filp); 139 void ksmbd_close_tree_conn_fds(struct ksmbd_work *work); 140 void ksmbd_close_session_fds(struct ksmbd_work *work); 141 int ksmbd_close_inode_fds(struct ksmbd_work *work, struct inode *inode);
|
D | ksmbd_work.h | 23 struct ksmbd_work { struct 93 static inline void *ksmbd_resp_buf_next(struct ksmbd_work *work) in ksmbd_resp_buf_next() argument 102 static inline void *ksmbd_req_buf_next(struct ksmbd_work *work) in ksmbd_req_buf_next() 107 struct ksmbd_work *ksmbd_alloc_work_struct(void); 108 void ksmbd_free_work_struct(struct ksmbd_work *work); 115 bool ksmbd_queue_work(struct ksmbd_work *work);
|
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() 34 void ksmbd_free_work_struct(struct ksmbd_work *work) in ksmbd_free_work_struct() 55 sizeof(struct ksmbd_work), 0, in ksmbd_work_pool_init() 76 bool ksmbd_queue_work(struct ksmbd_work *work) in ksmbd_queue_work()
|
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 | 359 static void __put_fd_final(struct ksmbd_work *work, struct ksmbd_file *fp) in __put_fd_final() 367 struct ksmbd_work *cancel_work, *ctmp; in set_close_state_blocked_works() 379 int ksmbd_close_fd(struct ksmbd_work *work, u64 id) in ksmbd_close_fd() 405 void ksmbd_fd_put(struct ksmbd_work *work, struct ksmbd_file *fp) in ksmbd_fd_put() 424 struct ksmbd_file *ksmbd_lookup_foreign_fd(struct ksmbd_work *work, u64 id) in ksmbd_lookup_foreign_fd() 429 struct ksmbd_file *ksmbd_lookup_fd_fast(struct ksmbd_work *work, u64 id) in ksmbd_lookup_fd_fast() 440 struct ksmbd_file *ksmbd_lookup_fd_slow(struct ksmbd_work *work, u64 id, in ksmbd_lookup_fd_slow() 554 struct ksmbd_file *ksmbd_open_fd(struct ksmbd_work *work, struct file *filp) in ksmbd_open_fd() 633 void ksmbd_close_tree_conn_fds(struct ksmbd_work *work) in ksmbd_close_tree_conn_fds() 642 void ksmbd_close_session_fds(struct ksmbd_work *work) in ksmbd_close_session_fds()
|
D | smb_common.c | 133 int ksmbd_verify_smb_message(struct ksmbd_work *work) in ksmbd_verify_smb_message() 284 int ksmbd_init_smb_server(struct ksmbd_work *work) in ksmbd_init_smb_server() 298 int ksmbd_populate_dot_dotdot_entries(struct ksmbd_work *work, int info_level, in ksmbd_populate_dot_dotdot_entries() 439 static int smb_handle_negotiate(struct ksmbd_work *work) in smb_handle_negotiate() 448 int ksmbd_smb_negotiate_common(struct ksmbd_work *work, unsigned int command) in ksmbd_smb_negotiate_common() 608 int ksmbd_override_fsids(struct ksmbd_work *work) in ksmbd_override_fsids() 651 void ksmbd_revert_fsids(struct ksmbd_work *work) in ksmbd_revert_fsids()
|
D | server.c | 92 static inline int check_conn_state(struct ksmbd_work *work) in check_conn_state() 107 static int __process_request(struct ksmbd_work *work, struct ksmbd_conn *conn, in __process_request() 160 static void __handle_ksmbd_work(struct ksmbd_work *work, in __handle_ksmbd_work() 255 struct ksmbd_work *work = container_of(wk, struct ksmbd_work, work); in handle_ksmbd_work() 276 struct ksmbd_work *work; in queue_ksmbd_work()
|
D | smb2pdu.c | 41 static void __wbuf(struct ksmbd_work *work, void **req, void **rsp) in __wbuf() 94 int smb2_get_ksmbd_tcon(struct ksmbd_work *work) in smb2_get_ksmbd_tcon() 127 void smb2_set_err_rsp(struct ksmbd_work *work) in smb2_set_err_rsp() 152 bool is_smb2_neg_cmd(struct ksmbd_work *work) in is_smb2_neg_cmd() 176 bool is_smb2_rsp(struct ksmbd_work *work) in is_smb2_rsp() 197 u16 get_smb2_cmd_val(struct ksmbd_work *work) in get_smb2_cmd_val() 213 void set_smb2_rsp_status(struct ksmbd_work *work, __le32 err) in set_smb2_rsp_status() 232 int init_smb2_neg_rsp(struct ksmbd_work *work) in init_smb2_neg_rsp() 298 int smb2_set_rsp_credits(struct ksmbd_work *work) in smb2_set_rsp_credits() 364 static void init_chained_smb2_rsp(struct ksmbd_work *work) in init_chained_smb2_rsp() [all …]
|
D | vfs.c | 52 static void ksmbd_vfs_inherit_owner(struct ksmbd_work *work, in ksmbd_vfs_inherit_owner() 163 int ksmbd_vfs_create(struct ksmbd_work *work, const char *name, umode_t mode) in ksmbd_vfs_create() 200 int ksmbd_vfs_mkdir(struct ksmbd_work *work, const char *name, umode_t mode) in ksmbd_vfs_mkdir() 364 int ksmbd_vfs_read(struct ksmbd_work *work, struct ksmbd_file *fp, size_t count, in ksmbd_vfs_read() 480 int ksmbd_vfs_write(struct ksmbd_work *work, struct ksmbd_file *fp, in ksmbd_vfs_write() 564 int ksmbd_vfs_fsync(struct ksmbd_work *work, u64 fid, u64 p_id) in ksmbd_vfs_fsync() 587 int ksmbd_vfs_remove_file(struct ksmbd_work *work, char *name) in ksmbd_vfs_remove_file() 646 int ksmbd_vfs_link(struct ksmbd_work *work, const char *oldname, in ksmbd_vfs_link() 716 static int __ksmbd_vfs_rename(struct ksmbd_work *work, in __ksmbd_vfs_rename() 775 int ksmbd_vfs_fp_rename(struct ksmbd_work *work, struct ksmbd_file *fp, in ksmbd_vfs_fp_rename() [all …]
|
D | oplock.c | 30 static struct oplock_info *alloc_opinfo(struct ksmbd_work *work, in alloc_opinfo() 589 static inline int allocate_oplock_break_buf(struct ksmbd_work *work) in allocate_oplock_break_buf() 611 struct ksmbd_work *work = container_of(wk, struct ksmbd_work, work); in __smb2_oplock_break_noti() 686 struct ksmbd_work *work = ksmbd_alloc_work_struct(); in smb2_oplock_break_noti() 727 struct ksmbd_work *work = container_of(wk, struct ksmbd_work, work); in __smb2_lease_break_noti() 789 struct ksmbd_work *work; in smb2_lease_break_noti() 818 struct ksmbd_work *in_work; in smb2_lease_break_noti() 820 in_work = list_entry(tmp, struct ksmbd_work, in smb2_lease_break_noti() 1083 int smb_grant_oplock(struct ksmbd_work *work, int req_op_level, u64 pid, in smb_grant_oplock() 1211 static void smb_break_all_write_oplock(struct ksmbd_work *work, in smb_break_all_write_oplock() [all …]
|
D | connection.c | 102 void ksmbd_conn_enqueue_request(struct ksmbd_work *work) in ksmbd_conn_enqueue_request() 120 int ksmbd_conn_try_dequeue_request(struct ksmbd_work *work) in ksmbd_conn_try_dequeue_request() 159 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 | 351 int ksmbd_smb2_check_message(struct ksmbd_work *work) in ksmbd_smb2_check_message() 446 int smb2_negotiate_request(struct ksmbd_work *work) in smb2_negotiate_request()
|