Home
last modified time | relevance | path

Searched full:work (Results 1 – 25 of 5202) sorted by relevance

12345678910>>...209

/linux/fs/smb/server/
H A Dksmbd_work.c19 static int ksmbd_reserve_iov(struct ksmbd_work *work, int need_iov_cnt) in ksmbd_reserve_iov() argument
22 int new_alloc_cnt = work->iov_alloc_cnt; in ksmbd_reserve_iov()
24 if (work->iov_alloc_cnt >= work->iov_cnt + need_iov_cnt) in ksmbd_reserve_iov()
29 } while (new_alloc_cnt < work->iov_cnt + need_iov_cnt); in ksmbd_reserve_iov()
31 if (work->iov == work->iov_inline) { in ksmbd_reserve_iov()
36 memcpy(new, work->iov_inline, sizeof(work->iov_inline)); in ksmbd_reserve_iov()
38 new = krealloc(work->iov, sizeof(*new) * new_alloc_cnt, in ksmbd_reserve_iov()
44 work->iov = new; in ksmbd_reserve_iov()
45 work->iov_alloc_cnt = new_alloc_cnt; in ksmbd_reserve_iov()
51 struct ksmbd_work *work = kmem_cache_zalloc(work_cache, KSMBD_DEFAULT_GFP); in ksmbd_alloc_work_struct() local
[all …]
H A Dserver.c90 * @work: smb work containing server thread information
94 static inline int check_conn_state(struct ksmbd_work *work) in check_conn_state() argument
98 if (ksmbd_conn_exiting(work->conn) || in check_conn_state()
99 ksmbd_conn_need_reconnect(work->conn)) { in check_conn_state()
100 rsp_hdr = smb_get_msg(work->response_buf); in check_conn_state()
110 static int __process_request(struct ksmbd_work *work, struct ksmbd_conn *conn, in __process_request() argument
118 if (check_conn_state(work)) in __process_request()
121 if (ksmbd_verify_smb_message(work)) { in __process_request()
122 conn->ops->set_rsp_status(work, STATUS_INVALID_PARAMETER); in __process_request()
126 command = conn->ops->get_cmd_val(work); in __process_request()
[all …]
H A Dsmb2pdu.h314 bool is_smb2_neg_cmd(struct ksmbd_work *work);
315 bool is_smb2_rsp(struct ksmbd_work *work);
317 u16 get_smb2_cmd_val(struct ksmbd_work *work);
318 void set_smb2_rsp_status(struct ksmbd_work *work, __le32 err);
319 int init_smb2_rsp_hdr(struct ksmbd_work *work);
320 int smb2_allocate_rsp_buf(struct ksmbd_work *work);
321 bool is_chained_smb2_message(struct ksmbd_work *work);
322 int init_smb2_neg_rsp(struct ksmbd_work *work);
323 void smb2_set_err_rsp(struct ksmbd_work *work);
324 int smb2_check_user_session(struct ksmbd_work *work);
[all …]
H A Dsmb2pdu.c48 static void __wbuf(struct ksmbd_work *work, void **req, void **rsp) in __wbuf() argument
50 if (work->next_smb2_rcv_hdr_off) { in __wbuf()
51 *req = ksmbd_req_buf_next(work); in __wbuf()
52 *rsp = ksmbd_resp_buf_next(work); in __wbuf()
54 *req = smb_get_msg(work->request_buf); in __wbuf()
55 *rsp = smb_get_msg(work->response_buf); in __wbuf()
145 * @work: smb work
150 int smb2_get_ksmbd_tcon(struct ksmbd_work *work) in smb2_get_ksmbd_tcon() argument
152 struct smb2_hdr *req_hdr = ksmbd_req_buf_next(work); in smb2_get_ksmbd_tcon()
163 if (xa_empty(&work->sess->tree_conns)) { in smb2_get_ksmbd_tcon()
[all …]
H A Dksmbd_work.h81 /* Contiguous SMB2 compression transform owned by this work item. */
101 struct work_struct work; member
111 * @work: smb work containing response buffer
113 static inline void *ksmbd_resp_buf_next(struct ksmbd_work *work) in ksmbd_resp_buf_next() argument
115 return work->response_buf + work->next_smb2_rsp_hdr_off + 4; in ksmbd_resp_buf_next()
120 * @work: smb work containing response buffer
122 static inline void *ksmbd_resp_buf_curr(struct ksmbd_work *work) in ksmbd_resp_buf_curr() argument
124 return work->response_buf + work->curr_smb2_rsp_hdr_off + 4; in ksmbd_resp_buf_curr()
129 * @work: smb work containing response buffer
131 static inline void *ksmbd_req_buf_next(struct ksmbd_work *work) in ksmbd_req_buf_next() argument
[all …]
H A Dsmb_common.c150 * @work: smb work
156 int ksmbd_verify_smb_message(struct ksmbd_work *work) in ksmbd_verify_smb_message() argument
158 struct smb2_hdr *smb2_hdr = ksmbd_req_buf_next(work); in ksmbd_verify_smb_message()
162 return ksmbd_smb2_check_message(work); in ksmbd_verify_smb_message()
164 hdr = smb_get_msg(work->request_buf); in ksmbd_verify_smb_message()
167 work->conn->outstanding_credits++; in ksmbd_verify_smb_message()
321 * @work: smb work containing smb header
325 static u16 get_smb1_cmd_val(struct ksmbd_work *work) in get_smb1_cmd_val() argument
332 * @work: smb work containing smb request
336 static int init_smb1_rsp_hdr(struct ksmbd_work *work) in init_smb1_rsp_hdr() argument
[all …]
H A Dcompress.c95 * @work: request work item containing the response iov
109 int ksmbd_compress_response(struct ksmbd_work *work) in ksmbd_compress_response() argument
117 if (!work->compress_response || work->encrypted || in ksmbd_compress_response()
118 work->conn->compress_algorithm != SMB3_COMPRESS_LZ77) in ksmbd_compress_response()
121 req_hdr = smb_get_msg(work->request_buf); in ksmbd_compress_response()
122 if (req_hdr->NextCommand || work->next_smb2_rcv_hdr_off || in ksmbd_compress_response()
123 work->next_smb2_rsp_hdr_off) in ksmbd_compress_response()
126 src_len = get_rfc1002_len(work->iov[0].iov_base); in ksmbd_compress_response()
136 for (i = 1; i < work->iov_cnt; i++) { in ksmbd_compress_response()
137 if (work->iov[i].iov_len > src + src_len - p) { in ksmbd_compress_response()
[all …]
/linux/drivers/gpu/drm/
H A Ddrm_flip_work.c47 static void drm_flip_work_queue_task(struct drm_flip_work *work, struct drm_flip_task *task) in drm_flip_work_queue_task() argument
51 spin_lock_irqsave(&work->lock, flags); in drm_flip_work_queue_task()
52 list_add_tail(&task->node, &work->queued); in drm_flip_work_queue_task()
53 spin_unlock_irqrestore(&work->lock, flags); in drm_flip_work_queue_task()
57 * drm_flip_work_queue - queue work
58 * @work: the flip-work
61 * Queues work, that will later be run (passed back to drm_flip_func_t
62 * func) on a work queue after drm_flip_work_commit() is called.
64 void drm_flip_work_queue(struct drm_flip_work *work, void *val) in drm_flip_work_queue() argument
71 drm_flip_work_queue_task(work, task); in drm_flip_work_queue()
[all …]
/linux/include/trace/events/
H A Dworkqueue.h14 * workqueue_queue_work - called when a work gets queued
17 * @work: pointer to struct work_struct
19 * This event occurs when a work is queued immediately or once a
20 * delayed work is actually queued on a workqueue (ie: once the delay
26 struct work_struct *work),
28 TP_ARGS(req_cpu, pwq, work),
31 __field( void *, work )
39 __entry->work = work;
40 __entry->function = work
[all...]
/linux/virt/kvm/
H A Dasync_pf.c45 static void async_pf_execute(struct work_struct *work) in async_pf_execute() argument
48 container_of(work, struct kvm_async_pf, work); in async_pf_execute()
63 * work item is fully processed. in async_pf_execute()
99 static void kvm_flush_and_free_async_pf_work(struct kvm_async_pf *work) in kvm_flush_and_free_async_pf_work() argument
102 * The async #PF is "done", but KVM must wait for the work item itself, in kvm_flush_and_free_async_pf_work()
105 * after the last call to module_put(). Note, flushing the work item in kvm_flush_and_free_async_pf_work()
111 * need to be flushed (but sanity check that the work wasn't queued). in kvm_flush_and_free_async_pf_work()
113 if (work->wakeup_all) in kvm_flush_and_free_async_pf_work()
114 WARN_ON_ONCE(work in kvm_flush_and_free_async_pf_work()
124 struct kvm_async_pf *work = kvm_clear_async_pf_completion_queue() local
139 struct kvm_async_pf *work = kvm_clear_async_pf_completion_queue() local
155 struct kvm_async_pf *work; kvm_check_async_pf_completion() local
182 struct kvm_async_pf *work; kvm_setup_async_pf() local
218 struct kvm_async_pf *work; kvm_async_pf_wakeup_all() local
[all...]
/linux/fs/btrfs/
H A Dasync-thread.c29 /* List head pointing to ordered work list */
55 struct btrfs_fs_info * __pure btrfs_work_owner(const struct btrfs_work *work) in btrfs_work_owner() argument
57 return work->wq->fs_info; in btrfs_work_owner()
163 * Hook for threshold which will be called before executing the work,
213 struct btrfs_work *work; in run_ordered_work() local
222 work = list_first_entry(list, struct btrfs_work, ordered_list); in run_ordered_work()
223 if (!test_bit(WORK_DONE_BIT, &work->flags)) in run_ordered_work()
229 * updates from ordinary work function. in run_ordered_work()
235 * we leave the work item on the list as a barrier so in run_ordered_work()
236 * that later work items that are done don't have their in run_ordered_work()
[all …]
/linux/kernel/
H A Dirq_work.c57 static bool irq_work_claim(struct irq_work *work) in irq_work_claim() argument
61 oflags = atomic_fetch_or(IRQ_WORK_CLAIMED | CSD_TYPE_IRQ_WORK, &work->node.a_flags); in irq_work_claim()
63 * If the work is already pending, no need to raise the IPI. in irq_work_claim()
79 static __always_inline void irq_work_raise(struct irq_work *work) in irq_work_raise() argument
82 trace_call__ipi_send_cpu(smp_processor_id(), _RET_IP_, work->func); in irq_work_raise()
87 /* Enqueue on current CPU, work must already be claimed and preempt disabled */
88 static void __irq_work_queue_local(struct irq_work *work) in __irq_work_queue_local() argument
95 work_flags = atomic_read(&work->node.a_flags); in __irq_work_queue_local()
107 if (!llist_add(&work->node.llist, list)) in __irq_work_queue_local()
110 /* If the work is "lazy", handle it from next tick if any */ in __irq_work_queue_local()
[all …]
H A Dworkqueue.c18 * This is the generic async execution mechanism. Work items as are
21 * normal work items and the other for high priority ones) and some extra
253 PWQ_STAT_STARTED, /* work items started execution */
254 PWQ_STAT_COMPLETED, /* work items completed execution */
260 PWQ_STAT_RESCUED, /* linked work items executed by rescuer */
284 * When pwq->nr_active >= max_active, new work item is queued to
288 * All work items marked with WORK_STRUCT_INACTIVE do not participate in
289 * nr_active and all work items in pwq->inactive_works are marked with
290 * WORK_STRUCT_INACTIVE. But not all WORK_STRUCT_INACTIVE work items are
292 * pool->worklist or worker->scheduled. Those work itmes are only struct
[all …]
/linux/LICENSES/dual/
H A Dcopyleft-next-0.3.126 of, publicly perform and publicly display My Work.
40 Legal Notices contained in My Work (to the extent they remain
47 If You Distribute a Derived Work, You must license the entire Derived
48 Work as a whole under this License, with prominent notice of such
50 separate Distribution of portions of the Derived Work.
52 If the Derived Work includes material licensed under the GPL, You may
53 instead license the Derived Work under the GPL.
57 When Distributing a Covered Work, You may not impose further
58 restrictions on the exercise of rights in the Covered Work granted under
64 However, You may Distribute a Covered Work incorporating material
[all …]
H A DApache-2.049 "Work" shall mean the work of authorship, whether in Source or Object form,
51 is included in or attached to the work (an example is provided in the
54 "Derivative Works" shall mean any work, whether in Source or Object form,
55 that is based on (or derived from) the Work and for which the editorial
57 a whole, an original work of authorship. For the purposes of this License,
59 merely link (or bind by name) to the interfaces of, the Work and Derivative
62 "Contribution" shall mean any work of authorship, including the original
63 version of the Work and any modifications or additions to that Work or
65 inclusion in the Work by the copyright owner or by an individual or Legal
72 and improving the Work, but excluding communication that is conspicuously
[all …]
/linux/tools/perf/
H A Dbuiltin-kwork.c316 struct kwork_work *work; in work_search()
320 work = container_of(node, struct kwork_work, node); in work_search()
321 cmp = work_cmp(sort_list, key, work); in work_search()
327 if (work->name == NULL && key->name != NULL) in work_search()
328 work->name = strdup(key->name); in work_search()
329 return work; in work_search()
363 struct kwork_work *work = zalloc(sizeof(*work)); in work_new()
365 if (work == NULL) { in work_new()
366 pr_err("Failed to zalloc kwork work\ in work_new()
315 struct kwork_work *work; work_search() local
362 struct kwork_work *work = zalloc(sizeof(*work)); work_new() local
383 struct kwork_work *work = work_search(root, key, sort_list); work_findnew() local
409 profile_name_match(struct perf_kwork * kwork,struct kwork_work * work) profile_name_match() argument
420 profile_event_match(struct perf_kwork * kwork,struct kwork_work * work,struct perf_sample * sample) profile_event_match() argument
458 struct kwork_work *work, key; work_push_atom() local
516 struct kwork_work *work, key; work_pop_atom() local
551 struct kwork_work *work; find_work_by_id() local
579 report_update_exit_event(struct kwork_work * work,struct kwork_atom * atom,struct perf_sample * sample) report_update_exit_event() argument
618 struct kwork_work *work = NULL; report_exit_event() local
634 latency_update_entry_event(struct kwork_work * work,struct kwork_atom * atom,struct perf_sample * sample) latency_update_entry_event() argument
673 struct kwork_work *work = NULL; latency_entry_event() local
739 timehist_print_event(struct perf_kwork * kwork,struct kwork_work * work,struct kwork_atom * atom,struct perf_sample * sample,struct addr_location * al) timehist_print_event() argument
832 struct kwork_work *work = NULL; timehist_entry_event() local
853 struct kwork_work *work = NULL; timehist_exit_event() local
883 top_update_runtime(struct kwork_work * work,struct kwork_atom * atom,struct perf_sample * sample) top_update_runtime() argument
914 struct kwork_work *work, *sched_work; top_exit_event() local
945 struct kwork_work *work; top_sched_switch_event() local
1007 irq_work_init(struct perf_kwork * kwork,struct kwork_class * class,struct kwork_work * work,enum kwork_trace_type src_type __maybe_unused,struct evsel * evsel,struct perf_sample * sample,struct machine * machine __maybe_unused) irq_work_init() argument
1025 irq_work_name(struct kwork_work * work,char * buf,int len) irq_work_name() argument
1135 softirq_work_init(struct perf_kwork * kwork,struct kwork_class * class,struct kwork_work * work,enum kwork_trace_type src_type __maybe_unused,struct evsel * evsel,struct perf_sample * sample,struct machine * machine __maybe_unused) softirq_work_init() argument
1156 softirq_work_name(struct kwork_work * work,char * buf,int len) softirq_work_name() argument
1235 workqueue_work_init(struct perf_kwork * kwork __maybe_unused,struct kwork_class * class,struct kwork_work * work,enum kwork_trace_type src_type __maybe_unused,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) workqueue_work_init() argument
1252 workqueue_work_name(struct kwork_work * work,char * buf,int len) workqueue_work_name() argument
1303 sched_work_init(struct perf_kwork * kwork __maybe_unused,struct kwork_class * class,struct kwork_work * work,enum kwork_trace_type src_type,struct evsel * evsel,struct perf_sample * sample,struct machine * machine __maybe_unused) sched_work_init() argument
1321 sched_work_name(struct kwork_work * work,char * buf,int len) sched_work_name() argument
1348 report_print_work(struct perf_kwork * kwork,struct kwork_work * work) report_print_work() argument
1639 top_print_work(struct perf_kwork * kwork __maybe_unused,struct kwork_work * work) top_print_work() argument
1839 process_skipped_events(struct perf_kwork * kwork,struct kwork_work * work) process_skipped_events() argument
1855 struct kwork_work *work = NULL; perf_kwork_add_work() local
1907 struct kwork_work *work; perf_kwork__report() local
2000 struct kwork_work *work; top_calc_total_runtime() local
2019 top_calc_idle_time(struct perf_kwork * kwork,struct kwork_work * work) top_calc_idle_time() argument
2031 top_calc_irq_runtime(struct perf_kwork * kwork,enum kwork_class_type type,struct kwork_work * work) top_calc_irq_runtime() argument
2045 top_subtract_irq_runtime(struct perf_kwork * kwork,struct kwork_work * work) top_subtract_irq_runtime() argument
2072 struct kwork_work *work; top_calc_cpu_usage() local
2101 top_calc_load_runtime(struct perf_kwork * kwork,struct kwork_work * work) top_calc_load_runtime() argument
2152 struct kwork_work *work; perf_kwork__top_report() local
[all...]
/linux/include/linux/
H A Dcompletion.h35 #define COMPLETION_INITIALIZER(work) \ argument
36 { 0, __SWAIT_QUEUE_HEAD_INITIALIZER((work).wait) }
38 #define COMPLETION_INITIALIZER_ONSTACK_MAP(work, map) \ argument
39 (*({ init_completion_map(&(work), &(map)); &(work); }))
41 #define COMPLETION_INITIALIZER_ONSTACK(work) \ argument
42 (*({ init_completion(&work); &work; }))
46 * @work: identifier for the completion structure
52 #define DECLARE_COMPLETION(work) \ argument
53 struct completion work = COMPLETION_INITIALIZER(work)
62 * @work: identifier for the completion structure
[all …]
/linux/net/wireless/
H A Ddebugfs.c148 struct wiphy_work work; in wiphy_locked_debugfs_read()
164 struct wiphy_work *work) in wiphy_locked_debugfs_read()
166 struct debugfs_read_work *w = container_of(work, typeof(*w), work); in wiphy_locked_debugfs_read()
177 wiphy_work_cancel(w->wiphy, &w->work); in wiphy_locked_debugfs_read()
192 struct debugfs_read_work work = {
200 .completion = COMPLETION_INITIALIZER_ONSTACK(work.completion),
204 .cancel_data = &work,
210 wiphy_work_init(&work.work, wiphy_locked_debugfs_read_wor
115 struct wiphy_work work; global() member
131 wiphy_locked_debugfs_read_work(struct wiphy * wiphy,struct wiphy_work * work) wiphy_locked_debugfs_read_work() argument
159 struct debugfs_read_work work = { wiphy_locked_debugfs_read() local
195 struct wiphy_work work; global() member
211 wiphy_locked_debugfs_write_work(struct wiphy * wiphy,struct wiphy_work * work) wiphy_locked_debugfs_write_work() argument
238 struct debugfs_write_work work = { wiphy_locked_debugfs_write() local
[all...]
/linux/Documentation/core-api/
H A Dworkqueue.rst17 When such an asynchronous execution context is needed, a work item
22 While there are work items on the workqueue the worker executes the
23 functions associated with the work items one after the other. When
24 there is no work item left on the workqueue the worker becomes idle.
25 When a new work item gets queued, the worker begins executing again.
43 while an ST wq one for the whole system. Work items had to compete for
72 abstraction, the work item, is introduced.
74 A work item is a simple struct that holds a pointer to the function
76 wants a function to be executed asynchronously it has to set up a work
77 item pointing to that function and queue that work item on a
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dtask_work.c45 struct elem *work = value; in process_work() local
47 bpf_copy_from_user_str(work->data, sizeof(work->data), (const void *)user_ptr, 0); in process_work()
57 struct elem *work; in oncpu_hash_map() local
65 work = bpf_map_lookup_elem(&hmap, &key); in oncpu_hash_map()
66 if (!work) in oncpu_hash_map()
68 bpf_task_work_schedule_resume(task, &work->tw, &hmap, process_work); in oncpu_hash_map()
75 struct elem *work; in oncpu_array_map()
79 work = bpf_map_lookup_elem(&arrmap, &key); in oncpu_array_map()
80 if (!work) in oncpu_array_map()
76 struct elem *work; oncpu_array_map() local
91 struct elem *work; oncpu_lru_map() local
[all...]
/linux/LICENSES/deprecated/
H A DCC0-1.026 and subsequent owner(s) (each and all, an "owner") of an original work of
27 authorship and/or a database (each, a "Work").
29 Certain owners wish to permanently relinquish those rights to a Work for
37 works, or to gain reputation or greater distribution for their Work in
42 associating CC0 with a Work (the "Affirmer"), to the extent that he or she
43 is an owner of Copyright and Related Rights in the Work, voluntarily
44 elects to apply CC0 to the Work and publicly distribute the Work under its
46 Work and the meaning and intended legal effect of CC0 on those rights.
48 1. Copyright and Related Rights. A Work made available under CC0 may be
54 communicate, and translate a Work;
[all …]
/linux/io_uring/
H A Dio-wq.c69 struct delayed_work work; member
161 static inline unsigned int io_get_work_hash(struct io_wq_work *work) in io_get_work_hash() argument
163 return __io_get_work_hash(atomic_read(&work->flags)); in io_get_work_hash()
278 * If there's work to do, returns true with acct->lock acquired. If not,
312 * starting work or finishing work. In either case, if it does in io_acct_activate_free_worker()
313 * to go sleep, we'll kick off a new task for this work anyway. in io_acct_activate_free_worker()
330 * Most likely an attempt to queue unbounded work on an io_wq that in io_wq_create_worker()
419 * work item after we canceled in io_wq_exit_workers(). in io_queue_worker_create()
436 /* Defer if current and next work are both hashed to the same chain */
437 static bool io_wq_hash_defer(struct io_wq_work *work, struct io_wq_acct *acct) in io_wq_hash_defer() argument
[all …]
/linux/LICENSES/preferred/
H A DLGPL-2.194 work, a derivative of the original library. The ordinary General Public
127 follow. Pay close attention to the difference between a "work based on the
128 library" and a "work that uses the library". The former contains code
144 The "Library", below, refers to any such software library or work which
145 has been distributed under these terms. A "work based on the Library"
146 means either the Library or any derivative work under copyright law:
147 that is to say, a work containing the Library or a portion of it, either
152 "Source code" for a work means the preferred form of the work for making
161 program is covered only if its contents constitute a work based on the
177 thus forming a work based on the Library, and copy and distribute such
[all …]
H A DLGPL-2.088 a textual and legal sense, the linked executable is a combined work, a
108 follow. Pay close attention to the difference between a "work based on the
109 library" and a "work that uses the library". The former contains code
128 The "Library", below, refers to any such software library or work which
129 has been distributed under these terms. A "work based on the Library"
130 means either the Library or any derivative work under copyright law:
131 that is to say, a work containing the Library or a portion of it, either
136 "Source code" for a work means the preferred form of the work for making
145 program is covered only if its contents constitute a work based on the
161 thus forming a work based on the Library, and copy and distribute such
[all …]
/linux/drivers/accessibility/speakup/
H A Dselection.c20 struct work_struct work; member
25 static void __speakup_set_selection(struct work_struct *work) in __speakup_set_selection() argument
28 container_of(work, struct speakup_selection_work, work); in __speakup_set_selection()
58 .work = __WORK_INITIALIZER(speakup_sel_work.work,
65 * cancelling selection work. getting kref first establishes the in speakup_set_selection()
87 schedule_work_on(WORK_CPU_UNBOUND, &speakup_sel_work.work); in speakup_set_selection()
96 cancel_work_sync(&speakup_sel_work.work); in speakup_cancel_selection()
97 /* setting to null so that if work fails to run and we cancel it, in speakup_cancel_selection()
106 static void __speakup_paste_selection(struct work_struct *work) in __speakup_paste_selection() argument
109 container_of(work, struct speakup_selection_work, work); in __speakup_paste_selection()
[all …]

12345678910>>...209