Home
last modified time | relevance | path

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

/linux/fs/smb/server/
H A Dsmb2pdu.h321 bool is_smb2_neg_cmd(struct ksmbd_work *work);
322 bool is_smb2_rsp(struct ksmbd_work *work);
324 u16 get_smb2_cmd_val(struct ksmbd_work *work);
325 void set_smb2_rsp_status(struct ksmbd_work *work, __le32 err);
326 int init_smb2_rsp_hdr(struct ksmbd_work *work);
327 int smb2_allocate_rsp_buf(struct ksmbd_work *work);
328 bool is_chained_smb2_message(struct ksmbd_work *work);
329 int init_smb2_neg_rsp(struct ksmbd_work *work);
330 void smb2_set_err_rsp(struct ksmbd_work *work);
331 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 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 Dvfs_cache.h152 int ksmbd_close_fd(struct ksmbd_work *work, u64 id);
153 struct ksmbd_file *ksmbd_lookup_fd_fast(struct ksmbd_work *work, u64 id);
154 struct ksmbd_file *ksmbd_lookup_foreign_fd(struct ksmbd_work *work, u64 id);
155 struct ksmbd_file *ksmbd_lookup_fd_slow(struct ksmbd_work *work, u64 id,
157 void ksmbd_fd_put(struct ksmbd_work *work, struct ksmbd_file *fp);
166 struct ksmbd_file *ksmbd_open_fd(struct ksmbd_work *work, struct file *filp);
169 void ksmbd_close_tree_conn_fds(struct ksmbd_work *work);
170 void ksmbd_close_session_fds(struct ksmbd_work *work);
171 int ksmbd_close_inode_fds(struct ksmbd_work *work, struct inode *inode);
198 int ksmbd_reopen_durable_fd(struct ksmbd_work *work, struct ksmbd_file *fp);
H A Dsmb_common.c159 int ksmbd_verify_smb_message(struct ksmbd_work *work) in ksmbd_verify_smb_message()
333 static u16 get_smb1_cmd_val(struct ksmbd_work *work) in get_smb1_cmd_val()
344 static int init_smb1_rsp_hdr(struct ksmbd_work *work) in init_smb1_rsp_hdr()
365 static int smb1_check_user_session(struct ksmbd_work *work) in smb1_check_user_session()
381 static int smb1_allocate_rsp_buf(struct ksmbd_work *work) in smb1_allocate_rsp_buf()
401 static void set_smb1_rsp_status(struct ksmbd_work *work, __le32 err) in set_smb1_rsp_status()
418 static int smb1_negotiate(struct ksmbd_work *work) in smb1_negotiate()
453 int ksmbd_populate_dot_dotdot_entries(struct ksmbd_work *work, int info_level, in ksmbd_populate_dot_dotdot_entries()
597 static int smb_handle_negotiate(struct ksmbd_work *work) in smb_handle_negotiate()
614 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 Dserver.c93 static inline int check_conn_state(struct ksmbd_work *work) in check_conn_state()
109 static int __process_request(struct ksmbd_work *work, struct ksmbd_conn *conn, in __process_request()
166 static void __handle_ksmbd_work(struct ksmbd_work *work, in __handle_ksmbd_work()
267 struct ksmbd_work *work = container_of(wk, struct ksmbd_work, work); in handle_ksmbd_work()
288 struct ksmbd_work *work; in queue_ksmbd_work()
H A Dvfs.c42 static void ksmbd_vfs_inherit_owner(struct ksmbd_work *work, in ksmbd_vfs_inherit_owner()
151 int ksmbd_vfs_create(struct ksmbd_work *work, const char *name, umode_t mode) in ksmbd_vfs_create()
188 int ksmbd_vfs_mkdir(struct ksmbd_work *work, const char *name, umode_t mode) in ksmbd_vfs_mkdir()
344 int ksmbd_vfs_read(struct ksmbd_work *work, struct ksmbd_file *fp, size_t count, in ksmbd_vfs_read()
466 int ksmbd_vfs_write(struct ksmbd_work *work, struct ksmbd_file *fp, in ksmbd_vfs_write()
553 int ksmbd_vfs_fsync(struct ksmbd_work *work, u64 fid, u64 p_id) in ksmbd_vfs_fsync()
577 int ksmbd_vfs_remove_file(struct ksmbd_work *work, const struct path *path) in ksmbd_vfs_remove_file()
615 int ksmbd_vfs_link(struct ksmbd_work *work, const char *oldname, in ksmbd_vfs_link()
662 int ksmbd_vfs_rename(struct ksmbd_work *work, const struct path *old_path, in ksmbd_vfs_rename()
748 int ksmbd_vfs_truncate(struct ksmbd_work *work, in ksmbd_vfs_truncate()
[all …]
H A Dsmb2pdu.c45 static void __wbuf(struct ksmbd_work *work, void **req, void **rsp) in __wbuf()
99 int smb2_get_ksmbd_tcon(struct ksmbd_work *work) in smb2_get_ksmbd_tcon()
151 void smb2_set_err_rsp(struct ksmbd_work *work) in smb2_set_err_rsp()
182 bool is_smb2_neg_cmd(struct ksmbd_work *work) in is_smb2_neg_cmd()
206 bool is_smb2_rsp(struct ksmbd_work *work) in is_smb2_rsp()
227 u16 get_smb2_cmd_val(struct ksmbd_work *work) in get_smb2_cmd_val()
243 void set_smb2_rsp_status(struct ksmbd_work *work, __le32 err) in set_smb2_rsp_status()
263 int init_smb2_neg_rsp(struct ksmbd_work *work) in init_smb2_neg_rsp()
324 int smb2_set_rsp_credits(struct ksmbd_work *work) in smb2_set_rsp_credits()
386 static void init_chained_smb2_rsp(struct ksmbd_work *work) in init_chained_smb2_rsp()
[all …]
H A Dvfs_cache.c530 static void __put_fd_final(struct ksmbd_work *work, struct ksmbd_file *fp) in __put_fd_final()
552 struct ksmbd_work *cancel_work; in set_close_state_blocked_works()
563 int ksmbd_close_fd(struct ksmbd_work *work, u64 id) in ksmbd_close_fd()
594 void ksmbd_fd_put(struct ksmbd_work *work, struct ksmbd_file *fp) in ksmbd_fd_put()
613 struct ksmbd_file *ksmbd_lookup_foreign_fd(struct ksmbd_work *work, u64 id) in ksmbd_lookup_foreign_fd()
618 struct ksmbd_file *ksmbd_lookup_fd_fast(struct ksmbd_work *work, u64 id) in ksmbd_lookup_fd_fast()
629 struct ksmbd_file *ksmbd_lookup_fd_slow(struct ksmbd_work *work, u64 id, in ksmbd_lookup_fd_slow()
770 struct ksmbd_file *ksmbd_open_fd(struct ksmbd_work *work, struct file *filp) in ksmbd_open_fd()
1311 void ksmbd_close_tree_conn_fds(struct ksmbd_work *work) in ksmbd_close_tree_conn_fds()
1321 void ksmbd_close_session_fds(struct ksmbd_work *work) in ksmbd_close_session_fds()
[all …]
H A Dconnection.h174 int ksmbd_conn_write(struct ksmbd_work *work);
183 void ksmbd_conn_enqueue_request(struct ksmbd_work *work);
184 void ksmbd_conn_try_dequeue_request(struct ksmbd_work *work);
H A Doplock.c30 static struct oplock_info *alloc_opinfo(struct ksmbd_work *work, in alloc_opinfo()
641 struct ksmbd_work *work = container_of(wk, struct ksmbd_work, work); in __smb2_oplock_break_noti()
713 struct ksmbd_work *work = ksmbd_alloc_work_struct(); in smb2_oplock_break_noti()
754 struct ksmbd_work *work = container_of(wk, struct ksmbd_work, work); in __smb2_lease_break_noti()
815 struct ksmbd_work *work; in smb2_lease_break_noti()
874 struct ksmbd_work *in_work) in oplock_break()
1182 int smb_grant_oplock(struct ksmbd_work *work, int req_op_level, u64 pid, in smb_grant_oplock()
1333 static void smb_break_all_write_oplock(struct ksmbd_work *work, in smb_break_all_write_oplock()
1359 void smb_break_all_levII_oplock(struct ksmbd_work *work, struct ksmbd_file *fp, in smb_break_all_levII_oplock()
1427 void smb_break_all_oplock(struct ksmbd_work *work, struct ksmbd_file *fp) in smb_break_all_oplock()
H A Dconnection.c256 void ksmbd_conn_enqueue_request(struct ksmbd_work *work) in ksmbd_conn_enqueue_request()
272 void ksmbd_conn_try_dequeue_request(struct ksmbd_work *work) in ksmbd_conn_try_dequeue_request()
352 int ksmbd_conn_write(struct ksmbd_work *work) in ksmbd_conn_write()
H A Dsmb2misc.c367 int ksmbd_smb2_check_message(struct ksmbd_work *work) in ksmbd_smb2_check_message()
469 int smb2_negotiate_request(struct ksmbd_work *work) in smb2_negotiate_request()
H A Dauth.c692 static int ksmbd_get_encryption_key(struct ksmbd_work *work, __u64 ses_id, in ksmbd_get_encryption_key()
798 int ksmbd_crypt_message(struct ksmbd_work *work, struct kvec *iov, in ksmbd_crypt_message()
/linux/fs/smb/server/mgmt/
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()
230 struct ksmbd_share_config *ksmbd_share_config_get(struct ksmbd_work *work, in ksmbd_share_config_get()
H A Dtree_connect.c20 ksmbd_tree_conn_connect(struct ksmbd_work *work, const char *share_name) in ksmbd_tree_conn_connect()