Home
last modified time | relevance | path

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

/linux-6.6.21/fs/smb/server/
Dsmb2pdu.h420 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 …]
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 …]
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()
Dvfs_cache.h136 int ksmbd_close_fd(struct ksmbd_work *work, u64 id);
137 struct ksmbd_file *ksmbd_lookup_fd_fast(struct ksmbd_work *work, u64 id);
138 struct ksmbd_file *ksmbd_lookup_foreign_fd(struct ksmbd_work *work, u64 id);
139 struct ksmbd_file *ksmbd_lookup_fd_slow(struct ksmbd_work *work, u64 id,
141 void ksmbd_fd_put(struct ksmbd_work *work, struct ksmbd_file *fp);
148 struct ksmbd_file *ksmbd_open_fd(struct ksmbd_work *work, struct file *filp);
149 void ksmbd_close_tree_conn_fds(struct ksmbd_work *work);
150 void ksmbd_close_session_fds(struct ksmbd_work *work);
151 int ksmbd_close_inode_fds(struct ksmbd_work *work, struct inode *inode);
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()
391 static int smb1_negotiate(struct ksmbd_work *work) in smb1_negotiate()
408 int ksmbd_init_smb_server(struct ksmbd_work *work) in ksmbd_init_smb_server()
425 int ksmbd_populate_dot_dotdot_entries(struct ksmbd_work *work, int info_level, in ksmbd_populate_dot_dotdot_entries()
566 static int smb_handle_negotiate(struct ksmbd_work *work) in smb_handle_negotiate()
[all …]
Doplock.h65 struct ksmbd_work *work;
98 int smb_grant_oplock(struct ksmbd_work *work, int req_op_level,
101 void smb_break_all_levII_oplock(struct ksmbd_work *work,
108 void smb_break_all_oplock(struct ksmbd_work *work, struct ksmbd_file *fp);
Dvfs_cache.c361 static void __put_fd_final(struct ksmbd_work *work, struct ksmbd_file *fp) in __put_fd_final()
369 struct ksmbd_work *cancel_work; in set_close_state_blocked_works()
380 int ksmbd_close_fd(struct ksmbd_work *work, u64 id) in ksmbd_close_fd()
411 void ksmbd_fd_put(struct ksmbd_work *work, struct ksmbd_file *fp) in ksmbd_fd_put()
430 struct ksmbd_file *ksmbd_lookup_foreign_fd(struct ksmbd_work *work, u64 id) in ksmbd_lookup_foreign_fd()
435 struct ksmbd_file *ksmbd_lookup_fd_fast(struct ksmbd_work *work, u64 id) in ksmbd_lookup_fd_fast()
446 struct ksmbd_file *ksmbd_lookup_fd_slow(struct ksmbd_work *work, u64 id, in ksmbd_lookup_fd_slow()
563 struct ksmbd_file *ksmbd_open_fd(struct ksmbd_work *work, struct file *filp) in ksmbd_open_fd()
654 void ksmbd_close_tree_conn_fds(struct ksmbd_work *work) in ksmbd_close_tree_conn_fds()
663 void ksmbd_close_session_fds(struct ksmbd_work *work) in ksmbd_close_session_fds()
Dconnection.h152 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);
Dauth.h36 struct ksmbd_work;
39 int ksmbd_crypt_message(struct ksmbd_work *work, struct kvec *iov,
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()
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()
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 …]
Dvfs.c39 static void ksmbd_vfs_inherit_owner(struct ksmbd_work *work, in ksmbd_vfs_inherit_owner()
168 int ksmbd_vfs_create(struct ksmbd_work *work, const char *name, umode_t mode) in ksmbd_vfs_create()
206 int ksmbd_vfs_mkdir(struct ksmbd_work *work, const char *name, umode_t mode) in ksmbd_vfs_mkdir()
370 int ksmbd_vfs_read(struct ksmbd_work *work, struct ksmbd_file *fp, size_t count, in ksmbd_vfs_read()
486 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()
631 int ksmbd_vfs_link(struct ksmbd_work *work, const char *oldname, in ksmbd_vfs_link()
678 int ksmbd_vfs_rename(struct ksmbd_work *work, const struct path *old_path, in ksmbd_vfs_rename()
803 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()
639 struct ksmbd_work *work = container_of(wk, struct ksmbd_work, work); in __smb2_oplock_break_noti()
709 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()
809 struct ksmbd_work *work; in smb2_lease_break_noti()
837 struct ksmbd_work *in_work; in smb2_lease_break_noti()
839 in_work = list_entry(tmp, struct ksmbd_work, in smb2_lease_break_noti()
1189 int smb_grant_oplock(struct ksmbd_work *work, int req_op_level, u64 pid, in smb_grant_oplock()
1321 static void smb_break_all_write_oplock(struct ksmbd_work *work, in smb_break_all_write_oplock()
1348 void smb_break_all_levII_oplock(struct ksmbd_work *work, struct ksmbd_file *fp, in smb_break_all_levII_oplock()
[all …]
Dconnection.c112 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()
173 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.c356 int ksmbd_smb2_check_message(struct ksmbd_work *work) in ksmbd_smb2_check_message()
458 int smb2_negotiate_request(struct ksmbd_work *work) in smb2_negotiate_request()
Dauth.c998 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()