Home
last modified time | relevance | path

Searched refs:ksmbd_work (Results 1 – 23 of 23) sorted by relevance

/linux-6.12.1/fs/smb/server/
Dsmb2pdu.h437 bool is_smb2_neg_cmd(struct ksmbd_work *work);
438 bool is_smb2_rsp(struct ksmbd_work *work);
440 u16 get_smb2_cmd_val(struct ksmbd_work *work);
441 void set_smb2_rsp_status(struct ksmbd_work *work, __le32 err);
442 int init_smb2_rsp_hdr(struct ksmbd_work *work);
443 int smb2_allocate_rsp_buf(struct ksmbd_work *work);
444 bool is_chained_smb2_message(struct ksmbd_work *work);
445 int init_smb2_neg_rsp(struct ksmbd_work *work);
446 void smb2_set_err_rsp(struct ksmbd_work *work);
447 int smb2_check_user_session(struct ksmbd_work *work);
[all …]
Dksmbd_work.h28 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);
Dvfs.h36 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 …]
Dsmb_common.h399 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 …]
Dvfs_cache.h141 int ksmbd_close_fd(struct ksmbd_work *work, u64 id);
142 struct ksmbd_file *ksmbd_lookup_fd_fast(struct ksmbd_work *work, u64 id);
143 struct ksmbd_file *ksmbd_lookup_foreign_fd(struct ksmbd_work *work, u64 id);
144 struct ksmbd_file *ksmbd_lookup_fd_slow(struct ksmbd_work *work, u64 id,
146 void ksmbd_fd_put(struct ksmbd_work *work, struct ksmbd_file *fp);
155 struct ksmbd_file *ksmbd_open_fd(struct ksmbd_work *work, struct file *filp);
158 void ksmbd_close_tree_conn_fds(struct ksmbd_work *work);
159 void ksmbd_close_session_fds(struct ksmbd_work *work);
160 int ksmbd_close_inode_fds(struct ksmbd_work *work, struct inode *inode);
185 int ksmbd_reopen_durable_fd(struct ksmbd_work *work, struct ksmbd_file *fp);
Dksmbd_work.c19 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()
75 sizeof(struct ksmbd_work), 0, in ksmbd_work_pool_init()
96 bool ksmbd_queue_work(struct ksmbd_work *work) in ksmbd_queue_work()
101 static inline void __ksmbd_iov_pin(struct ksmbd_work *work, void *ib, in __ksmbd_iov_pin()
109 static int __ksmbd_iov_pin_rsp(struct ksmbd_work *work, void *ib, int len, in __ksmbd_iov_pin_rsp()
159 int ksmbd_iov_pin_rsp(struct ksmbd_work *work, void *ib, int len) in ksmbd_iov_pin_rsp()
164 int ksmbd_iov_pin_rsp_read(struct ksmbd_work *work, void *ib, int len, in ksmbd_iov_pin_rsp_read()
170 int allocate_interim_rsp_buf(struct ksmbd_work *work) in allocate_interim_rsp_buf()
Dsmb_common.c135 int ksmbd_verify_smb_message(struct ksmbd_work *work) in ksmbd_verify_smb_message()
310 static u16 get_smb1_cmd_val(struct ksmbd_work *work) in get_smb1_cmd_val()
321 static int init_smb1_rsp_hdr(struct ksmbd_work *work) in init_smb1_rsp_hdr()
342 static int smb1_check_user_session(struct ksmbd_work *work) in smb1_check_user_session()
358 static int smb1_allocate_rsp_buf(struct ksmbd_work *work) in smb1_allocate_rsp_buf()
378 static void set_smb1_rsp_status(struct ksmbd_work *work, __le32 err) in set_smb1_rsp_status()
395 static int smb1_negotiate(struct ksmbd_work *work) in smb1_negotiate()
429 int ksmbd_populate_dot_dotdot_entries(struct ksmbd_work *work, int info_level, in ksmbd_populate_dot_dotdot_entries()
573 static int smb_handle_negotiate(struct ksmbd_work *work) in smb_handle_negotiate()
590 int ksmbd_smb_negotiate_common(struct ksmbd_work *work, unsigned int command) in ksmbd_smb_negotiate_common()
[all …]
Doplock.h58 struct ksmbd_work *work;
91 int smb_grant_oplock(struct ksmbd_work *work, int req_op_level,
94 void smb_break_all_levII_oplock(struct ksmbd_work *work,
101 void smb_break_all_oplock(struct ksmbd_work *work, struct ksmbd_file *fp);
Dvfs_cache.c377 static void __put_fd_final(struct ksmbd_work *work, struct ksmbd_file *fp) in __put_fd_final()
385 struct ksmbd_work *cancel_work; in set_close_state_blocked_works()
396 int ksmbd_close_fd(struct ksmbd_work *work, u64 id) in ksmbd_close_fd()
427 void ksmbd_fd_put(struct ksmbd_work *work, struct ksmbd_file *fp) in ksmbd_fd_put()
446 struct ksmbd_file *ksmbd_lookup_foreign_fd(struct ksmbd_work *work, u64 id) in ksmbd_lookup_foreign_fd()
451 struct ksmbd_file *ksmbd_lookup_fd_fast(struct ksmbd_work *work, u64 id) in ksmbd_lookup_fd_fast()
462 struct ksmbd_file *ksmbd_lookup_fd_slow(struct ksmbd_work *work, u64 id, in ksmbd_lookup_fd_slow()
603 struct ksmbd_file *ksmbd_open_fd(struct ksmbd_work *work, struct file *filp) in ksmbd_open_fd()
883 void ksmbd_close_tree_conn_fds(struct ksmbd_work *work) in ksmbd_close_tree_conn_fds()
892 void ksmbd_close_session_fds(struct ksmbd_work *work) in ksmbd_close_session_fds()
[all …]
Dserver.c92 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()
264 struct ksmbd_work *work = container_of(wk, struct ksmbd_work, work); in handle_ksmbd_work()
292 struct ksmbd_work *work; in queue_ksmbd_work()
Dconnection.h155 int ksmbd_conn_write(struct ksmbd_work *work);
164 void ksmbd_conn_enqueue_request(struct ksmbd_work *work);
165 void ksmbd_conn_try_dequeue_request(struct ksmbd_work *work);
Dsmb2pdu.c42 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 …]
Dauth.h36 struct ksmbd_work;
39 int ksmbd_crypt_message(struct ksmbd_work *work, struct kvec *iov,
Dvfs.c39 static void ksmbd_vfs_inherit_owner(struct ksmbd_work *work, in ksmbd_vfs_inherit_owner()
172 int ksmbd_vfs_create(struct ksmbd_work *work, const char *name, umode_t mode) in ksmbd_vfs_create()
210 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()
490 int ksmbd_vfs_write(struct ksmbd_work *work, struct ksmbd_file *fp, in ksmbd_vfs_write()
574 int ksmbd_vfs_fsync(struct ksmbd_work *work, u64 fid, u64 p_id) in ksmbd_vfs_fsync()
598 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()
683 int ksmbd_vfs_rename(struct ksmbd_work *work, const struct path *old_path, in ksmbd_vfs_rename()
818 int ksmbd_vfs_truncate(struct ksmbd_work *work, in ksmbd_vfs_truncate()
[all …]
Doplock.c30 static struct oplock_info *alloc_opinfo(struct ksmbd_work *work, in alloc_opinfo()
637 struct ksmbd_work *work = container_of(wk, struct ksmbd_work, work); in __smb2_oplock_break_noti()
707 struct ksmbd_work *work = ksmbd_alloc_work_struct(); in smb2_oplock_break_noti()
747 struct ksmbd_work *work = container_of(wk, struct ksmbd_work, work); in __smb2_lease_break_noti()
807 struct ksmbd_work *work; in smb2_lease_break_noti()
835 struct ksmbd_work *in_work; in smb2_lease_break_noti()
837 in_work = list_entry(tmp, struct ksmbd_work, in smb2_lease_break_noti()
1176 int smb_grant_oplock(struct ksmbd_work *work, int req_op_level, u64 pid, in smb_grant_oplock()
1310 static void smb_break_all_write_oplock(struct ksmbd_work *work, in smb_break_all_write_oplock()
1337 void smb_break_all_levII_oplock(struct ksmbd_work *work, struct ksmbd_file *fp, in smb_break_all_levII_oplock()
[all …]
Dconnection.c115 void ksmbd_conn_enqueue_request(struct ksmbd_work *work) in ksmbd_conn_enqueue_request()
131 void ksmbd_conn_try_dequeue_request(struct ksmbd_work *work) in ksmbd_conn_try_dequeue_request()
208 int ksmbd_conn_write(struct ksmbd_work *work) in ksmbd_conn_write()
DMakefile8 misc.o oplock.o connection.o ksmbd_work.o crypto_ctx.o \
Dsmb2misc.c368 int ksmbd_smb2_check_message(struct ksmbd_work *work) in ksmbd_smb2_check_message()
470 int smb2_negotiate_request(struct ksmbd_work *work) in smb2_negotiate_request()
Dauth.c1004 static int ksmbd_get_encryption_key(struct ksmbd_work *work, __u64 ses_id, in ksmbd_get_encryption_key()
1108 int ksmbd_crypt_message(struct ksmbd_work *work, struct kvec *iov, in ksmbd_crypt_message()
/linux-6.12.1/fs/smb/server/mgmt/
Dtree_connect.h16 struct ksmbd_work;
54 ksmbd_tree_conn_connect(struct ksmbd_work *work, const char *share_name);
Dshare_config.h14 struct ksmbd_work;
73 struct ksmbd_share_config *ksmbd_share_config_get(struct ksmbd_work *work,
Dshare_config.c124 static struct ksmbd_share_config *share_config_request(struct ksmbd_work *work, in share_config_request()
226 struct ksmbd_share_config *ksmbd_share_config_get(struct ksmbd_work *work, in ksmbd_share_config_get()
Dtree_connect.c19 ksmbd_tree_conn_connect(struct ksmbd_work *work, const char *share_name) in ksmbd_tree_conn_connect()