Home
last modified time | relevance | path

Searched refs:ws (Results 1 – 25 of 102) sorted by relevance

12345

/Linux-v5.4/drivers/base/power/
Dwakeup.c83 struct wakeup_source *ws; in wakeup_source_create() local
87 ws = kzalloc(sizeof(*ws), GFP_KERNEL); in wakeup_source_create()
88 if (!ws) in wakeup_source_create()
94 ws->name = ws_name; in wakeup_source_create()
99 ws->id = id; in wakeup_source_create()
101 return ws; in wakeup_source_create()
104 kfree_const(ws->name); in wakeup_source_create()
106 kfree(ws); in wakeup_source_create()
115 static void wakeup_source_record(struct wakeup_source *ws) in wakeup_source_record() argument
121 if (ws->event_count) { in wakeup_source_record()
[all …]
Dwakeup_stats.c27 struct wakeup_source *ws = dev_get_drvdata(dev); \
29 return sprintf(buf, "%lu\n", ws->_name); \
41 struct wakeup_source *ws = dev_get_drvdata(dev); in active_time_ms_show() local
43 ws->active ? ktime_sub(ktime_get(), ws->last_time) : 0; in active_time_ms_show()
52 struct wakeup_source *ws = dev_get_drvdata(dev); in total_time_ms_show() local
54 ktime_t total_time = ws->total_time; in total_time_ms_show()
56 if (ws->active) { in total_time_ms_show()
57 active_time = ktime_sub(ktime_get(), ws->last_time); in total_time_ms_show()
67 struct wakeup_source *ws = dev_get_drvdata(dev); in max_time_ms_show() local
69 ktime_t max_time = ws->max_time; in max_time_ms_show()
[all …]
/Linux-v5.4/lib/reed_solomon/
Dtest_rslib.c98 static void free_ws(struct wspace *ws) in free_ws() argument
100 if (!ws) in free_ws()
103 kfree(ws->errlocs); in free_ws()
104 kfree(ws->c); in free_ws()
105 kfree(ws); in free_ws()
111 struct wspace *ws; in alloc_ws() local
114 ws = kzalloc(sizeof(*ws), GFP_KERNEL); in alloc_ws()
115 if (!ws) in alloc_ws()
118 ws->c = kmalloc_array(2 * (nn + nroots), in alloc_ws()
120 if (!ws->c) in alloc_ws()
[all …]
/Linux-v5.4/tools/perf/util/
Dterm.c8 void get_term_dimensions(struct winsize *ws) in get_term_dimensions() argument
13 ws->ws_row = atoi(s); in get_term_dimensions()
16 ws->ws_col = atoi(s); in get_term_dimensions()
17 if (ws->ws_row && ws->ws_col) in get_term_dimensions()
22 if (ioctl(1, TIOCGWINSZ, ws) == 0 && in get_term_dimensions()
23 ws->ws_row && ws->ws_col) in get_term_dimensions()
26 ws->ws_row = 25; in get_term_dimensions()
27 ws->ws_col = 80; in get_term_dimensions()
/Linux-v5.4/include/linux/
Dpm_wakeup.h89 extern void wakeup_source_destroy(struct wakeup_source *ws);
90 extern void wakeup_source_add(struct wakeup_source *ws);
91 extern void wakeup_source_remove(struct wakeup_source *ws);
94 extern void wakeup_source_unregister(struct wakeup_source *ws);
100 extern void __pm_stay_awake(struct wakeup_source *ws);
102 extern void __pm_relax(struct wakeup_source *ws);
104 extern void pm_wakeup_ws_event(struct wakeup_source *ws, unsigned int msec, bool hard);
124 static inline void wakeup_source_destroy(struct wakeup_source *ws) {} in wakeup_source_destroy() argument
126 static inline void wakeup_source_add(struct wakeup_source *ws) {} in wakeup_source_add() argument
128 static inline void wakeup_source_remove(struct wakeup_source *ws) {} in wakeup_source_remove() argument
[all …]
Dsbitmap.h125 struct sbq_wait_state *ws; member
385 kfree(sbq->ws); in sbitmap_queue_free()
520 struct sbq_wait_state *ws; in sbq_wait_ptr() local
522 ws = &sbq->ws[atomic_read(wait_index)]; in sbq_wait_ptr()
524 return ws; in sbq_wait_ptr()
571 struct sbq_wait_state *ws,
577 void sbitmap_finish_wait(struct sbitmap_queue *sbq, struct sbq_wait_state *ws,
584 struct sbq_wait_state *ws,
/Linux-v5.4/fs/btrfs/
Dcompression.c782 static void heuristic_put_workspace(struct list_head *ws) in heuristic_put_workspace() argument
784 btrfs_put_workspace(&heuristic_wsm, ws); in heuristic_put_workspace()
787 static void free_heuristic_ws(struct list_head *ws) in free_heuristic_ws() argument
791 workspace = list_entry(ws, struct heuristic_ws, list); in free_heuristic_ws()
801 struct heuristic_ws *ws; in alloc_heuristic_ws() local
803 ws = kzalloc(sizeof(*ws), GFP_KERNEL); in alloc_heuristic_ws()
804 if (!ws) in alloc_heuristic_ws()
807 ws->sample = kvmalloc(MAX_SAMPLE_SIZE, GFP_KERNEL); in alloc_heuristic_ws()
808 if (!ws->sample) in alloc_heuristic_ws()
811 ws->bucket = kcalloc(BUCKET_SIZE, sizeof(*ws->bucket), GFP_KERNEL); in alloc_heuristic_ws()
[all …]
Dzstd.c94 static void zstd_free_workspace(struct list_head *ws);
173 struct list_head *ws; in zstd_init_workspace_manager() local
187 ws = zstd_alloc_workspace(ZSTD_BTRFS_MAX_LEVEL); in zstd_init_workspace_manager()
188 if (IS_ERR(ws)) { in zstd_init_workspace_manager()
193 list_add(ws, &wsm.idle_ws[ZSTD_BTRFS_MAX_LEVEL - 1]); in zstd_init_workspace_manager()
230 struct list_head *ws; in zstd_find_workspace() local
237 ws = wsm.idle_ws[i].next; in zstd_find_workspace()
238 workspace = list_to_workspace(ws); in zstd_find_workspace()
239 list_del_init(ws); in zstd_find_workspace()
247 return ws; in zstd_find_workspace()
[all …]
Dzlib.c44 struct list_head *ws = btrfs_get_workspace(&wsm, level); in zlib_get_workspace() local
45 struct workspace *workspace = list_entry(ws, struct workspace, list); in zlib_get_workspace()
49 return ws; in zlib_get_workspace()
52 static void zlib_put_workspace(struct list_head *ws) in zlib_put_workspace() argument
54 btrfs_put_workspace(&wsm, ws); in zlib_put_workspace()
57 static void zlib_free_workspace(struct list_head *ws) in zlib_free_workspace() argument
59 struct workspace *workspace = list_entry(ws, struct workspace, list); in zlib_free_workspace()
91 static int zlib_compress_pages(struct list_head *ws, in zlib_compress_pages() argument
99 struct workspace *workspace = list_entry(ws, struct workspace, list); in zlib_compress_pages()
231 static int zlib_decompress_bio(struct list_head *ws, struct compressed_bio *cb) in zlib_decompress_bio() argument
[all …]
Dlzo.c81 static void lzo_put_workspace(struct list_head *ws) in lzo_put_workspace() argument
83 btrfs_put_workspace(&wsm, ws); in lzo_put_workspace()
86 static void lzo_free_workspace(struct list_head *ws) in lzo_free_workspace() argument
88 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_free_workspace()
134 static int lzo_compress_pages(struct list_head *ws, in lzo_compress_pages() argument
142 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_compress_pages()
306 static int lzo_decompress_bio(struct list_head *ws, struct compressed_bio *cb) in lzo_decompress_bio() argument
308 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_decompress_bio()
447 static int lzo_decompress(struct list_head *ws, unsigned char *data_in, in lzo_decompress() argument
452 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_decompress()
/Linux-v5.4/lib/
Dsbitmap.c395 sbq->ws = kzalloc_node(SBQ_WAIT_QUEUES * sizeof(*sbq->ws), flags, node); in sbitmap_queue_init_node()
396 if (!sbq->ws) { in sbitmap_queue_init_node()
403 init_waitqueue_head(&sbq->ws[i].wait); in sbitmap_queue_init_node()
404 atomic_set(&sbq->ws[i].wait_cnt, sbq->wake_batch); in sbitmap_queue_init_node()
427 atomic_set(&sbq->ws[i].wait_cnt, 1); in sbitmap_queue_update_wake_batch()
514 struct sbq_wait_state *ws = &sbq->ws[wake_index]; in sbq_wake_ptr() local
516 if (waitqueue_active(&ws->wait)) { in sbq_wake_ptr()
519 return ws; in sbq_wake_ptr()
530 struct sbq_wait_state *ws; in __sbq_wake_up() local
534 ws = sbq_wake_ptr(sbq); in __sbq_wake_up()
[all …]
/Linux-v5.4/kernel/power/
Dwakelock.c30 struct wakeup_source *ws; member
49 if (wl->ws->active == show_active) in pm_show_wakelocks()
115 spin_lock_irq(&wl->ws->lock); in __wakelocks_gc()
116 idle_time_ns = ktime_to_ns(ktime_sub(now, wl->ws->last_time)); in __wakelocks_gc()
117 active = wl->ws->active; in __wakelocks_gc()
118 spin_unlock_irq(&wl->ws->lock); in __wakelocks_gc()
124 wakeup_source_unregister(wl->ws); in __wakelocks_gc()
191 wl->ws = wakeup_source_register(NULL, wl->name); in wakelock_lookup_add()
192 if (!wl->ws) { in wakelock_lookup_add()
197 wl->ws->last_time = ktime_get(); in wakelock_lookup_add()
[all …]
/Linux-v5.4/sound/core/
Dpcm_iec958.c15 unsigned int fs, ws; in create_iec958_consumer() local
49 ws = IEC958_AES4_CON_WORDLEN_20_16; in create_iec958_consumer()
52 ws = IEC958_AES4_CON_WORDLEN_22_18; in create_iec958_consumer()
55 ws = IEC958_AES4_CON_WORDLEN_20_16 | in create_iec958_consumer()
60 ws = IEC958_AES4_CON_WORDLEN_24_20 | in create_iec958_consumer()
77 cs[4] = ws; in create_iec958_consumer()
/Linux-v5.4/arch/mips/include/asm/
Dr4kcache.h538 unsigned long ws, addr; \
540 for (ws = 0; ws < ws_end; ws += ws_inc) \
542 cache##lsize##_unroll32(addr|ws, indexop); \
564 unsigned long ws, addr; \
566 for (ws = 0; ws < ws_end; ws += ws_inc) \
568 cache##lsize##_unroll32(addr|ws, indexop); \
687 unsigned long ws, addr; \
689 for (ws = 0; ws < ws_end; ws += ws_inc) \
691 cache##lsize##_unroll32(addr|ws, indexop); \
Dasmmacro.h332 .macro copy_s_w ws, n
337 copy_s.w $1, $w\ws[\n]
341 .macro copy_s_d ws, n
346 copy_s.d $1, $w\ws[\n]
472 .macro copy_s_w ws, n
476 insn_if_mips 0x78b00059 | (\n << 16) | (\ws << 11)
477 insn32_if_mm 0x58b00056 | (\n << 16) | (\ws << 11)
481 .macro copy_s_d ws, n
485 insn_if_mips 0x78b80059 | (\n << 16) | (\ws << 11)
486 insn32_if_mm 0x58b80056 | (\n << 16) | (\ws << 11)
/Linux-v5.4/tools/lib/subcmd/
Dhelp.c82 static void get_term_dimensions(struct winsize *ws) in get_term_dimensions() argument
87 ws->ws_row = atoi(s); in get_term_dimensions()
90 ws->ws_col = atoi(s); in get_term_dimensions()
91 if (ws->ws_row && ws->ws_col) in get_term_dimensions()
96 if (ioctl(1, TIOCGWINSZ, ws) == 0 && in get_term_dimensions()
97 ws->ws_row && ws->ws_col) in get_term_dimensions()
100 ws->ws_row = 25; in get_term_dimensions()
101 ws->ws_col = 80; in get_term_dimensions()
/Linux-v5.4/drivers/net/wimax/i2400m/
Drx.c183 void i2400m_report_hook_work(struct work_struct *ws) in i2400m_report_hook_work() argument
185 struct i2400m *i2400m = container_of(ws, struct i2400m, rx_report_ws); in i2400m_report_hook_work()
490 unsigned ws; member
499 roq->ws = 0; in __i2400m_roq_init()
525 r = ((int) sn - (int) roq->ws) % 2048; in __i2400m_roq_nsn()
545 unsigned ws, count, sn, nsn, new_ws; member
563 index, e->ws, e->count, e->sn, e->nsn, e->new_ws); in i2400m_roq_log_entry_print()
567 index, e->ws, e->count, e->sn, e->nsn); in i2400m_roq_log_entry_print()
572 index, e->ws, e->count, e->sn, e->nsn, e->new_ws); in i2400m_roq_log_entry_print()
577 index, e->ws, e->count, e->sn, e->nsn, e->new_ws); in i2400m_roq_log_entry_print()
[all …]
/Linux-v5.4/drivers/tty/hvc/
Dhvc_console.h47 struct winsize ws; member
87 extern void __hvc_resize(struct hvc_struct *hp, struct winsize ws);
89 static inline void hvc_resize(struct hvc_struct *hp, struct winsize ws) in hvc_resize() argument
94 __hvc_resize(hp, ws); in hvc_resize()
/Linux-v5.4/fs/
Deventpoll.c170 struct wakeup_source __rcu *ws; member
213 struct wakeup_source *ws; member
626 return rcu_dereference_check(epi->ws, lockdep_is_held(&epi->ep->mtx)); in ep_wakeup_source()
632 struct wakeup_source *ws = ep_wakeup_source(epi); in ep_pm_stay_awake() local
634 if (ws) in ep_pm_stay_awake()
635 __pm_stay_awake(ws); in ep_pm_stay_awake()
640 return rcu_access_pointer(epi->ws) ? true : false; in ep_has_wakeup_source()
646 struct wakeup_source *ws; in ep_pm_stay_awake_rcu() local
649 ws = rcu_dereference(epi->ws); in ep_pm_stay_awake_rcu()
650 if (ws) in ep_pm_stay_awake_rcu()
[all …]
/Linux-v5.4/drivers/md/
Ddm-era-target.c47 static void writeset_free(struct writeset *ws) in writeset_free() argument
49 vfree(ws->bits); in writeset_free()
72 static int writeset_alloc(struct writeset *ws, dm_block_t nr_blocks) in writeset_alloc() argument
74 ws->md.nr_bits = nr_blocks; in writeset_alloc()
75 ws->md.root = INVALID_WRITESET_ROOT; in writeset_alloc()
76 ws->bits = vzalloc(bitset_size(nr_blocks)); in writeset_alloc()
77 if (!ws->bits) { in writeset_alloc()
88 static int writeset_init(struct dm_disk_bitset *info, struct writeset *ws) in writeset_init() argument
92 memset(ws->bits, 0, bitset_size(ws->md.nr_bits)); in writeset_init()
94 r = setup_on_disk_bitset(info, ws->md.nr_bits, &ws->md.root); in writeset_init()
[all …]
Ddm-cache-target.c121 struct work_struct ws; member
128 INIT_WORK(&k->ws, fn); in init_continuation()
135 queue_work(wq, &k->ws); in queue_continuation()
177 struct work_struct *ws, *tmp; in __commit() local
198 list_for_each_entry_safe(ws, tmp, &work_items, entry) { in __commit()
199 k = container_of(ws, struct continuation, ws); in __commit()
201 INIT_LIST_HEAD(&ws->entry); /* to avoid a WARN_ON */ in __commit()
202 queue_work(b->wq, ws); in __commit()
246 list_add_tail(&k->ws.entry, &b->work_items); in continue_after_commit()
1167 dm_cell_quiesce_v2(mg->cache->prison, mg->cell, &mg->k.ws); in quiesce()
[all …]
/Linux-v5.4/arch/mips/mm/
Dc-r4k.c268 unsigned long ws, addr; in tx49_blast_icache32() local
272 for (ws = 0; ws < ws_end; ws += ws_inc) in tx49_blast_icache32()
274 cache32_unroll32(addr|ws, Index_Invalidate_I); in tx49_blast_icache32()
277 for (ws = 0; ws < ws_end; ws += ws_inc) in tx49_blast_icache32()
279 cache32_unroll32(addr|ws, Index_Invalidate_I); in tx49_blast_icache32()
299 unsigned long ws, addr; in tx49_blast_icache32_page_indexed() local
303 for (ws = 0; ws < ws_end; ws += ws_inc) in tx49_blast_icache32_page_indexed()
305 cache32_unroll32(addr|ws, Index_Invalidate_I); in tx49_blast_icache32_page_indexed()
308 for (ws = 0; ws < ws_end; ws += ws_inc) in tx49_blast_icache32_page_indexed()
310 cache32_unroll32(addr|ws, Index_Invalidate_I); in tx49_blast_icache32_page_indexed()
/Linux-v5.4/arch/s390/crypto/
Dprng.c333 struct prno_ws_s ws; in prng_sha512_selftest() local
335 memset(&ws, 0, sizeof(ws)); in prng_sha512_selftest()
339 &ws, NULL, 0, seed, sizeof(seed)); in prng_sha512_selftest()
342 if (memcmp(ws.V, V0, sizeof(V0)) != 0 in prng_sha512_selftest()
343 || memcmp(ws.C, C0, sizeof(C0)) != 0) { in prng_sha512_selftest()
352 &ws, buf, sizeof(buf), NULL, 0); in prng_sha512_selftest()
354 &ws, buf, sizeof(buf), NULL, 0); in prng_sha512_selftest()
/Linux-v5.4/block/
Dblk-mq-tag.c114 struct sbq_wait_state *ws; in blk_mq_get_tag() local
138 ws = bt_wait_ptr(bt, data->hctx); in blk_mq_get_tag()
157 sbitmap_prepare_to_wait(bt, ws, &wait, TASK_UNINTERRUPTIBLE); in blk_mq_get_tag()
166 sbitmap_finish_wait(bt, ws, &wait); in blk_mq_get_tag()
185 ws = bt_wait_ptr(bt, data->hctx); in blk_mq_get_tag()
188 sbitmap_finish_wait(bt, ws, &wait); in blk_mq_get_tag()
/Linux-v5.4/drivers/gpu/drm/radeon/
Datom.c61 uint32_t *ps, *ws; member
265 val = ctx->ws[idx]; in atom_get_src_int()
532 ctx->ws[idx] = val; in atom_put_dst()
1161 int len, ws, ps, ptr; in atom_execute_table_locked() local
1170 ws = CU8(base + ATOM_CT_WS_PTR); in atom_execute_table_locked()
1174 SDEBUG(">> execute %04X (len %d, WS %d, PS %d)\n", base, len, ws, ps); in atom_execute_table_locked()
1182 if (ws) in atom_execute_table_locked()
1183 ectx.ws = kcalloc(4, ws, GFP_KERNEL); in atom_execute_table_locked()
1185 ectx.ws = NULL; in atom_execute_table_locked()
1196 base, len, ws, ps, ptr - 1); in atom_execute_table_locked()
[all …]

12345