Home
last modified time | relevance | path

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

/linux/fs/smb/server/
H A 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 …]
H A Dksmbd_work.h28 struct ksmbd_work { struct
98 static inline void *ksmbd_resp_buf_next(struct ksmbd_work *work) in ksmbd_resp_buf_next() argument
107 static inline void *ksmbd_resp_buf_curr(struct ksmbd_work *work) in ksmbd_resp_buf_curr()
116 static inline void *ksmbd_req_buf_next(struct ksmbd_work *work) in ksmbd_req_buf_next()
121 struct ksmbd_work *ksmbd_alloc_work_struct(void);
122 void ksmbd_free_work_struct(struct ksmbd_work *work);
129 bool ksmbd_queue_work(struct ksmbd_work *work);
130 int ksmbd_iov_pin_rsp_read(struct ksmbd_work *work, void *ib, int len,
132 int ksmbd_iov_pin_rsp(struct ksmbd_work *work, void *ib, int len);
133 int allocate_interim_rsp_buf(struct ksmbd_work *work);
H A Dvfs.h36 struct ksmbd_work;
78 int ksmbd_vfs_create(struct ksmbd_work *work, const char *name, umode_t mode);
79 int ksmbd_vfs_mkdir(struct ksmbd_work *work, const char *name, umode_t mode);
80 int ksmbd_vfs_read(struct ksmbd_work *work, struct ksmbd_file *fp, size_t count,
82 int ksmbd_vfs_write(struct ksmbd_work *work, struct ksmbd_file *fp,
85 int ksmbd_vfs_fsync(struct ksmbd_work *work, u64 fid, u64 p_id);
86 int ksmbd_vfs_remove_file(struct ksmbd_work *work, const struct path *path);
87 int ksmbd_vfs_link(struct ksmbd_work *work,
90 int ksmbd_vfs_rename(struct ksmbd_work *work, const struct path *old_path,
92 int ksmbd_vfs_truncate(struct ksmbd_work *work,
[all …]
H A 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 …]
H A 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);
H A 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, KSMBD_DEFAULT_GFP); in ksmbd_alloc_work_struct()
41 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 inline void __ksmbd_iov_pin(struct ksmbd_work *work, void *ib, in __ksmbd_iov_pin()
106 static int __ksmbd_iov_pin_rsp(struct ksmbd_work *work, void *ib, int len, in __ksmbd_iov_pin_rsp()
156 int ksmbd_iov_pin_rsp(struct ksmbd_work *work, void *ib, int len) in ksmbd_iov_pin_rsp()
161 int ksmbd_iov_pin_rsp_read(struct ksmbd_work *work, void *ib, int len, in ksmbd_iov_pin_rsp_read()
167 int allocate_interim_rsp_buf(struct ksmbd_work *work) in allocate_interim_rsp_buf()
H A 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 …]
H A Doplock.h58 struct ksmbd_work *work;
90 int smb_grant_oplock(struct ksmbd_work *work, int req_op_level,
93 void smb_break_all_levII_oplock(struct ksmbd_work *work,
100 void smb_break_all_oplock(struct ksmbd_work *work, struct ksmbd_file *fp);
H A 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 …]
H A 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()
285 struct ksmbd_work *work; in queue_ksmbd_work()
H A Dsmb2pdu.c43 static void __wbuf(struct ksmbd_work *work, void **req, void **rsp) in __wbuf()
91 int smb2_get_ksmbd_tcon(struct ksmbd_work *work) in smb2_get_ksmbd_tcon()
141 void smb2_set_err_rsp(struct ksmbd_work *work) in smb2_set_err_rsp()
172 bool is_smb2_neg_cmd(struct ksmbd_work *work) in is_smb2_neg_cmd()
196 bool is_smb2_rsp(struct ksmbd_work *work) in is_smb2_rsp()
217 u16 get_smb2_cmd_val(struct ksmbd_work *work) in get_smb2_cmd_val()
233 void set_smb2_rsp_status(struct ksmbd_work *work, __le32 err) in set_smb2_rsp_status()
253 int init_smb2_neg_rsp(struct ksmbd_work *work) in init_smb2_neg_rsp()
314 int smb2_set_rsp_credits(struct ksmbd_work *work) in smb2_set_rsp_credits()
376 static void init_chained_smb2_rsp(struct ksmbd_work *work) in init_chained_smb2_rsp()
[all …]
H A Dauth.h36 struct ksmbd_work;
39 int ksmbd_crypt_message(struct ksmbd_work *work, struct kvec *iov,
H A Dconnection.h154 int ksmbd_conn_write(struct ksmbd_work *work);
163 void ksmbd_conn_enqueue_request(struct ksmbd_work *work);
164 void ksmbd_conn_try_dequeue_request(struct ksmbd_work *work);
H A 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 …]
H A Doplock.c30 static struct oplock_info *alloc_opinfo(struct ksmbd_work *work, in alloc_opinfo()
636 struct ksmbd_work *work = container_of(wk, struct ksmbd_work, work); in __smb2_oplock_break_noti()
708 struct ksmbd_work *work = ksmbd_alloc_work_struct(); in smb2_oplock_break_noti()
749 struct ksmbd_work *work = container_of(wk, struct ksmbd_work, work); in __smb2_lease_break_noti()
810 struct ksmbd_work *work; in smb2_lease_break_noti()
869 struct ksmbd_work *in_work) in oplock_break()
1177 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()
1336 void smb_break_all_levII_oplock(struct ksmbd_work *work, struct ksmbd_file *fp, in smb_break_all_levII_oplock()
1404 void smb_break_all_oplock(struct ksmbd_work *work, struct ksmbd_file *fp) in smb_break_all_oplock()
H A Dconnection.c114 void ksmbd_conn_enqueue_request(struct ksmbd_work *work) in ksmbd_conn_enqueue_request()
130 void ksmbd_conn_try_dequeue_request(struct ksmbd_work *work) in ksmbd_conn_try_dequeue_request()
210 int ksmbd_conn_write(struct ksmbd_work *work) in ksmbd_conn_write()
H A DMakefile8 misc.o oplock.o connection.o ksmbd_work.o crypto_ctx.o \
H A 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()
H A Dauth.c1004 static int ksmbd_get_encryption_key(struct ksmbd_work *work, __u64 ses_id, in ksmbd_get_encryption_key()
1111 int ksmbd_crypt_message(struct ksmbd_work *work, struct kvec *iov, in ksmbd_crypt_message()
/linux/fs/smb/server/mgmt/
H A Dtree_connect.h16 struct ksmbd_work;
54 ksmbd_tree_conn_connect(struct ksmbd_work *work, const char *share_name);
H A Dshare_config.h14 struct ksmbd_work;
73 struct ksmbd_share_config *ksmbd_share_config_get(struct ksmbd_work *work,
H A 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()
H A Dtree_connect.c19 ksmbd_tree_conn_connect(struct ksmbd_work *work, const char *share_name) in ksmbd_tree_conn_connect()