Home
last modified time | relevance | path

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

12345

/linux/lib/zstd/compress/
A Dzstd_cwksp.h161 assert(ws->workspace <= ws->objectEnd); in ZSTD_cwksp_assert_internal_consistency()
162 assert(ws->objectEnd <= ws->tableEnd); in ZSTD_cwksp_assert_internal_consistency()
164 assert(ws->tableEnd <= ws->allocStart); in ZSTD_cwksp_assert_internal_consistency()
337 ws->tableValidEnd = ws->objectEnd; in ZSTD_cwksp_mark_tables_dirty()
345 if (ws->tableValidEnd < ws->tableEnd) { in ZSTD_cwksp_mark_tables_clean()
346 ws->tableValidEnd = ws->tableEnd; in ZSTD_cwksp_mark_tables_clean()
372 ws->tableEnd = ws->objectEnd; in ZSTD_cwksp_clear_tables()
385 ws->tableEnd = ws->objectEnd; in ZSTD_cwksp_clear()
386 ws->allocStart = ws->workspaceEnd; in ZSTD_cwksp_clear()
404 ws->objectEnd = ws->workspace; in ZSTD_cwksp_init()
[all …]
/linux/drivers/base/power/
A Dwakeup.c90 ws = kzalloc(sizeof(*ws), GFP_KERNEL); in wakeup_source_create()
91 if (!ws) in wakeup_source_create()
104 return ws; in wakeup_source_create()
158 if (!ws) in wakeup_source_destroy()
348 if (!ws) in device_wakeup_enable()
398 if (ws) in device_wakeup_detach_irq()
604 ws->start_prevent_time = ws->last_time; in wakeup_source_activate()
713 if (ws->relax_count != ws->active_count) { in wakeup_source_deactivate()
802 if (ws->active && ws->timer_expires in pm_wakeup_timer_fn()
1088 ws->name, active_count, ws->event_count, in print_wakeup_source_stats()
[all …]
A Dwakeup_stats.c43 ws->active ? ktime_sub(ktime_get(), ws->last_time) : 0; in active_time_ms_show()
54 ktime_t total_time = ws->total_time; in total_time_ms_show()
56 if (ws->active) { in total_time_ms_show()
70 ktime_t max_time = ws->max_time; in max_time_ms_show()
72 if (ws->active) { in max_time_ms_show()
96 return sysfs_emit(buf, "%s\n", ws->name); in name_show()
107 if (ws->active && ws->autosleep_enabled) { in prevent_suspend_time_ms_show()
137 struct wakeup_source *ws) in wakeup_source_device_create() argument
154 dev_set_drvdata(dev, ws); in wakeup_source_device_create()
184 ws->dev = dev; in wakeup_source_sysfs_add()
[all …]
/linux/drivers/gpu/drm/panel/
A Dpanel-widechips-ws2401.c135 ws->regulators); in ws2401_power_on()
208 if (ws->internal_bl) { in ws2401_power_on()
237 if (ws->internal_bl) in ws2401_unprepare()
347 struct ws2401 *ws; in ws2401_probe() local
350 ws = devm_kzalloc(dev, sizeof(*ws), GFP_KERNEL); in ws2401_probe()
351 if (!ws) in ws2401_probe()
353 ws->dev = dev; in ws2401_probe()
378 ws2401_power_on(ws); in ws2401_probe()
379 ws2401_read_mtp_id(ws); in ws2401_probe()
380 ws2401_power_off(ws); in ws2401_probe()
[all …]
/linux/lib/reed_solomon/
A Dtest_rslib.c100 if (!ws) in free_ws()
105 kfree(ws); in free_ws()
114 ws = kzalloc(sizeof(*ws), GFP_KERNEL); in alloc_ws()
115 if (!ws) in alloc_ws()
120 if (!ws->c) in alloc_ws()
123 ws->r = ws->c + nn; in alloc_ws()
124 ws->s = ws->r + nn; in alloc_ws()
125 ws->corr = ws->s + nroots; in alloc_ws()
131 ws->derrlocs = ws->errlocs + nn; in alloc_ws()
132 return ws; in alloc_ws()
[all …]
/linux/include/linux/
A Dpm_wakeup.h66 #define for_each_wakeup_source(ws) \ argument
67 for ((ws) = wakeup_sources_walk_start(); \
68 (ws); \
69 (ws) = wakeup_sources_walk_next((ws)))
99 extern void wakeup_source_destroy(struct wakeup_source *ws);
100 extern void wakeup_source_add(struct wakeup_source *ws);
101 extern void wakeup_source_remove(struct wakeup_source *ws);
114 extern void __pm_stay_awake(struct wakeup_source *ws);
116 extern void __pm_relax(struct wakeup_source *ws);
193 static inline void __pm_relax(struct wakeup_source *ws) {} in __pm_relax() argument
[all …]
A Dsbitmap.h134 struct sbq_wait_state *ws; member
414 kfree(sbq->ws); in sbitmap_queue_free()
572 struct sbq_wait_state *ws; in sbq_wait_ptr() local
574 ws = &sbq->ws[atomic_read(wait_index)]; in sbq_wait_ptr()
576 return ws; in sbq_wait_ptr()
623 struct sbq_wait_state *ws,
629 void sbitmap_finish_wait(struct sbitmap_queue *sbq, struct sbq_wait_state *ws,
636 struct sbq_wait_state *ws,
/linux/fs/btrfs/
A Dcompression.c1041 ws = kzalloc(sizeof(*ws), GFP_KERNEL); in alloc_heuristic_ws()
1042 if (!ws) in alloc_heuristic_ws()
1046 if (!ws->sample) in alloc_heuristic_ws()
1049 ws->bucket = kcalloc(BUCKET_SIZE, sizeof(*ws->bucket), GFP_KERNEL); in alloc_heuristic_ws()
1050 if (!ws->bucket) in alloc_heuristic_ws()
1053 ws->bucket_b = kcalloc(BUCKET_SIZE, sizeof(*ws->bucket_b), GFP_KERNEL); in alloc_heuristic_ws()
1054 if (!ws->bucket_b) in alloc_heuristic_ws()
1058 return &ws->list; in alloc_heuristic_ws()
1142 list_del(ws); in btrfs_cleanup_workspace_manager()
1662 radix_sort(ws->bucket, ws->bucket_b, BUCKET_SIZE); in byte_core_set_size()
[all …]
A Dcompression.h124 void btrfs_put_workspace(int type, struct list_head *ws);
149 int zlib_decompress_bio(struct list_head *ws, struct compressed_bio *cb);
150 int zlib_decompress(struct list_head *ws, unsigned char *data_in,
154 void zlib_free_workspace(struct list_head *ws);
160 int lzo_decompress_bio(struct list_head *ws, struct compressed_bio *cb);
161 int lzo_decompress(struct list_head *ws, unsigned char *data_in,
165 void lzo_free_workspace(struct list_head *ws);
170 int zstd_decompress_bio(struct list_head *ws, struct compressed_bio *cb);
171 int zstd_decompress(struct list_head *ws, unsigned char *data_in,
177 void zstd_free_workspace(struct list_head *ws);
[all …]
A Dzstd.c172 struct list_head *ws; in zstd_init_workspace_manager() local
187 if (IS_ERR(ws)) { in zstd_init_workspace_manager()
229 struct list_head *ws; in zstd_find_workspace() local
236 ws = wsm.idle_ws[i].next; in zstd_find_workspace()
238 list_del_init(ws); in zstd_find_workspace()
246 return ws; in zstd_find_workspace()
265 struct list_head *ws; in zstd_get_workspace() local
274 if (ws) in zstd_get_workspace()
275 return ws; in zstd_get_workspace()
281 if (IS_ERR(ws)) { in zstd_get_workspace()
[all …]
A Dzlib.c38 struct list_head *ws = btrfs_get_workspace(BTRFS_COMPRESS_ZLIB, level); in zlib_get_workspace() local
39 struct workspace *workspace = list_entry(ws, struct workspace, list); in zlib_get_workspace()
43 return ws; in zlib_get_workspace()
46 void zlib_free_workspace(struct list_head *ws) in zlib_free_workspace() argument
48 struct workspace *workspace = list_entry(ws, struct workspace, list); in zlib_free_workspace()
94 int zlib_compress_pages(struct list_head *ws, struct address_space *mapping, in zlib_compress_pages() argument
98 struct workspace *workspace = list_entry(ws, struct workspace, list); in zlib_compress_pages()
277 int zlib_decompress_bio(struct list_head *ws, struct compressed_bio *cb) in zlib_decompress_bio() argument
279 struct workspace *workspace = list_entry(ws, struct workspace, list); in zlib_decompress_bio()
364 int zlib_decompress(struct list_head *ws, unsigned char *data_in, in zlib_decompress() argument
[all …]
A Dlzo.c67 void lzo_free_workspace(struct list_head *ws) in lzo_free_workspace() argument
69 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_free_workspace()
206 int lzo_compress_pages(struct list_head *ws, struct address_space *mapping, in lzo_compress_pages() argument
210 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_compress_pages()
328 int lzo_decompress_bio(struct list_head *ws, struct compressed_bio *cb) in lzo_decompress_bio() argument
330 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_decompress_bio()
418 int lzo_decompress(struct list_head *ws, unsigned char *data_in, in lzo_decompress() argument
422 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_decompress()
/linux/tools/perf/util/
A 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/lib/
A Dsbitmap.c445 sbq->ws = kzalloc_node(SBQ_WAIT_QUEUES * sizeof(*sbq->ws), flags, node); in sbitmap_queue_init_node()
446 if (!sbq->ws) { in sbitmap_queue_init_node()
569 struct sbq_wait_state *ws = &sbq->ws[wake_index]; in sbq_wake_ptr() local
574 return ws; in sbq_wake_ptr()
585 struct sbq_wait_state *ws; in __sbq_wake_up() local
589 ws = sbq_wake_ptr(sbq); in __sbq_wake_up()
590 if (!ws) in __sbq_wake_up()
710 struct sbq_wait_state *ws = &sbq->ws[wake_index]; in sbitmap_queue_wake_all() local
713 wake_up(&ws->wait); in sbitmap_queue_wake_all()
743 struct sbq_wait_state *ws = &sbq->ws[i]; in sbitmap_queue_show() local
[all …]
/linux/kernel/power/
A 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()
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()
192 if (!wl->ws) { in wakelock_lookup_add()
197 wl->ws->last_time = ktime_get(); in wakelock_lookup_add()
242 __pm_wakeup_event(wl->ws, timeout_ms); in pm_wake_lock()
244 __pm_stay_awake(wl->ws); in pm_wake_lock()
[all …]
/linux/arch/mips/include/asm/
A Dr4kcache.h205 unsigned long ws, addr; \
207 for (ws = 0; ws < ws_end; ws += ws_inc) \
210 addr | ws, lsize); \
232 unsigned long ws, addr; \
234 for (ws = 0; ws < ws_end; ws += ws_inc) \
237 addr | ws, lsize); \
321 unsigned long ws, addr; \
323 for (ws = 0; ws < ws_end; ws += ws_inc) \
326 addr | ws, lsize); \
/linux/sound/core/
A Dpcm_iec958.c89 unsigned int ws; in fill_iec958_consumer() local
93 ws = IEC958_AES4_CON_WORDLEN_20_16; in fill_iec958_consumer()
96 ws = IEC958_AES4_CON_WORDLEN_22_18; in fill_iec958_consumer()
99 ws = IEC958_AES4_CON_WORDLEN_20_16 | in fill_iec958_consumer()
104 ws = IEC958_AES4_CON_WORDLEN_24_20 | in fill_iec958_consumer()
113 cs[4] |= ws; in fill_iec958_consumer()
/linux/tools/lib/subcmd/
A Dhelp.c84 static void get_term_dimensions(struct winsize *ws) in get_term_dimensions() argument
89 ws->ws_row = atoi(s); in get_term_dimensions()
92 ws->ws_col = atoi(s); in get_term_dimensions()
93 if (ws->ws_row && ws->ws_col) in get_term_dimensions()
98 if (ioctl(1, TIOCGWINSZ, ws) == 0 && in get_term_dimensions()
99 ws->ws_row && ws->ws_col) in get_term_dimensions()
102 ws->ws_row = 25; in get_term_dimensions()
103 ws->ws_col = 80; in get_term_dimensions()
/linux/drivers/mtd/devices/
A Dmchp48l640.c216 size_t ws; in mchp48l640_write() local
224 ws = min((len - wlen), page_sz); in mchp48l640_write()
225 ret = mchp48l640_write_page(mtd, woff, ws, retlen, &buf[wlen]); in mchp48l640_write()
228 wlen += ws; in mchp48l640_write()
229 woff += ws; in mchp48l640_write()
274 size_t ws; in mchp48l640_read() local
282 ws = min((len - wlen), page_sz); in mchp48l640_read()
283 ret = mchp48l640_read_page(mtd, woff, ws, retlen, &buf[wlen]); in mchp48l640_read()
286 wlen += ws; in mchp48l640_read()
287 woff += ws; in mchp48l640_read()
/linux/fs/
A Deventpoll.c577 if (ws) in ep_pm_stay_awake()
592 ws = rcu_dereference(epi->ws); in ep_pm_stay_awake_rcu()
593 if (ws) in ep_pm_stay_awake_rcu()
659 __pm_relax(ep->ws); in ep_done_scan()
1368 if (!epi->ep->ws) { in ep_create_wakeup_source()
1370 if (!epi->ep->ws) in ep_create_wakeup_source()
1378 if (!ws) in ep_create_wakeup_source()
1380 rcu_assign_pointer(epi->ws, ws); in ep_create_wakeup_source()
1672 if (ws) { in ep_send_events()
1673 if (ws->active) in ep_send_events()
[all …]
/linux/drivers/soc/fsl/
A Drcpm.c58 struct wakeup_source *ws; in rcpm_pm_prepare() local
72 for_each_wakeup_source(ws) { in rcpm_pm_prepare()
75 if (!ws->dev || !ws->dev->parent) in rcpm_pm_prepare()
78 ret = device_property_read_u32_array(ws->dev->parent, in rcpm_pm_prepare()
/linux/drivers/tty/hvc/
A 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/drivers/md/
A Ddm-era-target.c49 vfree(ws->bits); in writeset_free()
50 ws->bits = NULL; in writeset_free()
76 if (!ws->bits) { in writeset_alloc()
94 ws->md.nr_bits = nr_blocks; in writeset_init()
95 r = setup_on_disk_bitset(info, ws->md.nr_bits, &ws->md.root); in writeset_init()
106 return test_bit(block, ws->bits); in writeset_marked()
134 struct writeset *ws, uint32_t block) in writeset_test_and_set() argument
138 if (!test_bit(block, ws->bits)) { in writeset_test_and_set()
139 r = dm_bitset_set_bit(info, ws->md.root, block, &ws->md.root); in writeset_test_and_set()
958 struct writeset *ws; in metadata_current_marked() local
[all …]
A Ddm-cache-target.c48 struct work_struct ws; member
55 INIT_WORK(&k->ws, fn); in init_continuation()
62 queue_work(wq, &k->ws); in queue_continuation()
125 k = container_of(ws, struct continuation, ws); in __commit()
128 queue_work(b->wq, ws); in __commit()
1076 struct continuation *k = container_of(ws, struct continuation, ws); in ws_to_mg()
1303 mg_update_metadata(ws); in mg_update_metadata_after_copy()
1343 mg_upgrade_lock(ws); in mg_full_copy()
1369 mg_full_copy(ws); in mg_copy()
1383 mg_full_copy(ws); in mg_copy()
[all …]
/linux/drivers/dma/idxd/
A Dsubmit.c41 struct sbq_wait_state *ws; in idxd_alloc_desc() local
56 ws = &sbq->ws[0]; in idxd_alloc_desc()
58 sbitmap_prepare_to_wait(sbq, ws, &wait, TASK_INTERRUPTIBLE); in idxd_alloc_desc()
67 sbitmap_finish_wait(sbq, ws, &wait); in idxd_alloc_desc()

Completed in 49 milliseconds

12345