| /linux/lib/zstd/compress/ |
| A D | zstd_cwksp.h | 165 assert(ws->workspace <= ws->objectEnd); in ZSTD_cwksp_assert_internal_consistency() 166 assert(ws->objectEnd <= ws->tableEnd); in ZSTD_cwksp_assert_internal_consistency() 168 assert(ws->tableEnd <= ws->allocStart); in ZSTD_cwksp_assert_internal_consistency() 432 ws->tableValidEnd = ws->objectEnd; in ZSTD_cwksp_mark_tables_dirty() 440 if (ws->tableValidEnd < ws->tableEnd) { in ZSTD_cwksp_mark_tables_clean() 441 ws->tableValidEnd = ws->tableEnd; in ZSTD_cwksp_mark_tables_clean() 467 ws->tableEnd = ws->objectEnd; in ZSTD_cwksp_clear_tables() 480 ws->tableEnd = ws->objectEnd; in ZSTD_cwksp_clear() 481 ws->allocStart = ws->workspaceEnd; in ZSTD_cwksp_clear() 499 ws->objectEnd = ws->workspace; in ZSTD_cwksp_init() [all …]
|
| /linux/drivers/base/power/ |
| A D | wakeup.c | 86 ws = kzalloc(sizeof(*ws), GFP_KERNEL); in wakeup_source_create() 87 if (!ws) in wakeup_source_create() 100 return ws; in wakeup_source_create() 105 kfree(ws); in wakeup_source_create() 154 if (!ws) in wakeup_source_destroy() 344 if (!ws) in device_wakeup_enable() 394 if (ws) in device_wakeup_detach_irq() 573 ws->start_prevent_time = ws->last_time; in wakeup_source_activate() 682 if (ws->relax_count != ws->active_count) { in wakeup_source_deactivate() 771 if (ws->active && ws->timer_expires in pm_wakeup_timer_fn() [all …]
|
| A D | wakeup_stats.c | 43 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 D | panel-widechips-ws2401.c | 135 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 D | test_rslib.c | 100 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 D | pm_wakeup.h | 66 #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); 113 extern void __pm_stay_awake(struct wakeup_source *ws); 115 extern void __pm_relax(struct wakeup_source *ws); 184 static inline void __pm_relax(struct wakeup_source *ws) {} in __pm_relax() argument [all …]
|
| A D | sbitmap.h | 129 struct sbq_wait_state *ws; member 428 kfree(sbq->ws); in sbitmap_queue_free() 571 struct sbq_wait_state *ws; in sbq_wait_ptr() local 573 ws = &sbq->ws[atomic_read(wait_index)]; in sbq_wait_ptr() 575 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/tools/perf/util/ |
| A D | term.c | 8 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/fs/btrfs/ |
| A D | compression.c | 709 ws = kzalloc(sizeof(*ws), GFP_KERNEL); in alloc_heuristic_ws() 710 if (!ws) in alloc_heuristic_ws() 714 if (!ws->sample) in alloc_heuristic_ws() 717 ws->bucket = kcalloc(BUCKET_SIZE, sizeof(*ws->bucket), GFP_KERNEL); in alloc_heuristic_ws() 718 if (!ws->bucket) in alloc_heuristic_ws() 721 ws->bucket_b = kcalloc(BUCKET_SIZE, sizeof(*ws->bucket_b), GFP_KERNEL); in alloc_heuristic_ws() 722 if (!ws->bucket_b) in alloc_heuristic_ws() 726 return &ws->list; in alloc_heuristic_ws() 810 list_del(ws); in btrfs_cleanup_workspace_manager() 1388 radix_sort(ws->bucket, ws->bucket_b, BUCKET_SIZE); in byte_core_set_size() [all …]
|
| A D | compression.h | 135 void btrfs_put_workspace(int type, struct list_head *ws); 163 int zlib_decompress_bio(struct list_head *ws, struct compressed_bio *cb); 164 int zlib_decompress(struct list_head *ws, const u8 *data_in, 168 void zlib_free_workspace(struct list_head *ws); 174 int lzo_decompress_bio(struct list_head *ws, struct compressed_bio *cb); 175 int lzo_decompress(struct list_head *ws, const u8 *data_in, 179 void lzo_free_workspace(struct list_head *ws); 184 int zstd_decompress_bio(struct list_head *ws, struct compressed_bio *cb); 185 int zstd_decompress(struct list_head *ws, const u8 *data_in, 191 void zstd_free_workspace(struct list_head *ws); [all …]
|
| A D | zstd.c | 178 struct list_head *ws; in zstd_init_workspace_manager() local 193 if (IS_ERR(ws)) { in zstd_init_workspace_manager() 236 struct list_head *ws; in zstd_find_workspace() local 243 ws = wsm.idle_ws[i].next; in zstd_find_workspace() 245 list_del_init(ws); in zstd_find_workspace() 253 return ws; in zstd_find_workspace() 273 struct list_head *ws; in zstd_get_workspace() local 282 if (ws) in zstd_get_workspace() 283 return ws; in zstd_get_workspace() 289 if (IS_ERR(ws)) { in zstd_get_workspace() [all …]
|
| A D | zlib.c | 41 struct list_head *ws = btrfs_get_workspace(BTRFS_COMPRESS_ZLIB, level); in zlib_get_workspace() local 42 struct workspace *workspace = list_entry(ws, struct workspace, list); in zlib_get_workspace() 46 return ws; in zlib_get_workspace() 49 void zlib_free_workspace(struct list_head *ws) in zlib_free_workspace() argument 51 struct workspace *workspace = list_entry(ws, struct workspace, list); in zlib_free_workspace() 97 int zlib_compress_folios(struct list_head *ws, struct address_space *mapping, in zlib_compress_folios() argument 101 struct workspace *workspace = list_entry(ws, struct workspace, list); in zlib_compress_folios() 300 int zlib_decompress_bio(struct list_head *ws, struct compressed_bio *cb) in zlib_decompress_bio() argument 302 struct workspace *workspace = list_entry(ws, struct workspace, list); in zlib_decompress_bio() 395 int zlib_decompress(struct list_head *ws, const u8 *data_in, in zlib_decompress() argument [all …]
|
| A D | lzo.c | 73 void lzo_free_workspace(struct list_head *ws) in lzo_free_workspace() argument 75 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_free_workspace() 212 int lzo_compress_folios(struct list_head *ws, struct address_space *mapping, in lzo_compress_folios() argument 216 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_compress_folios() 331 int lzo_decompress_bio(struct list_head *ws, struct compressed_bio *cb) in lzo_decompress_bio() argument 333 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_decompress_bio() 440 int lzo_decompress(struct list_head *ws, const u8 *data_in, in lzo_decompress() argument 444 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_decompress()
|
| /linux/kernel/power/ |
| A D | wakelock.c | 30 struct wakeup_source *ws; member 48 if (wl->ws->active == show_active) in pm_show_wakelocks() 112 spin_lock_irq(&wl->ws->lock); in __wakelocks_gc() 114 active = wl->ws->active; in __wakelocks_gc() 115 spin_unlock_irq(&wl->ws->lock); in __wakelocks_gc() 121 wakeup_source_unregister(wl->ws); in __wakelocks_gc() 189 if (!wl->ws) { in wakelock_lookup_add() 194 wl->ws->last_time = ktime_get(); in wakelock_lookup_add() 239 __pm_wakeup_event(wl->ws, timeout_ms); in pm_wake_lock() 241 __pm_stay_awake(wl->ws); in pm_wake_lock() [all …]
|
| /linux/arch/mips/include/asm/ |
| A D | r4kcache.h | 209 unsigned long ws, addr; \ 211 for (ws = 0; ws < ws_end; ws += ws_inc) \ 214 addr | ws, lsize); \ 236 unsigned long ws, addr; \ 238 for (ws = 0; ws < ws_end; ws += ws_inc) \ 241 addr | ws, lsize); \ 325 unsigned long ws, addr; \ 327 for (ws = 0; ws < ws_end; ws += ws_inc) \ 330 addr | ws, lsize); \
|
| /linux/sound/core/ |
| A D | pcm_iec958.c | 89 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/lib/ |
| A D | sbitmap.c | 450 sbq->ws = kzalloc_node(SBQ_WAIT_QUEUES * sizeof(*sbq->ws), flags, node); in sbitmap_queue_init_node() 451 if (!sbq->ws) { in sbitmap_queue_init_node() 577 struct sbq_wait_state *ws = &sbq->ws[wake_index]; in __sbitmap_queue_wake_up() local 587 if (waitqueue_active(&ws->wait)) { in __sbitmap_queue_wake_up() 588 woken = wake_up_nr(&ws->wait, nr); in __sbitmap_queue_wake_up() 699 struct sbq_wait_state *ws = &sbq->ws[wake_index]; in sbitmap_queue_wake_all() local 701 if (waitqueue_active(&ws->wait)) in sbitmap_queue_wake_all() 702 wake_up(&ws->wait); in sbitmap_queue_wake_all() 732 struct sbq_wait_state *ws = &sbq->ws[i]; in sbitmap_queue_show() local 744 struct sbq_wait_state *ws, in sbitmap_add_wait_queue() argument [all …]
|
| /linux/tools/lib/subcmd/ |
| A D | help.c | 106 static void get_term_dimensions(struct winsize *ws) in get_term_dimensions() argument 111 ws->ws_row = atoi(s); in get_term_dimensions() 114 ws->ws_col = atoi(s); in get_term_dimensions() 115 if (ws->ws_row && ws->ws_col) in get_term_dimensions() 120 if (ioctl(1, TIOCGWINSZ, ws) == 0 && in get_term_dimensions() 121 ws->ws_row && ws->ws_col) in get_term_dimensions() 124 ws->ws_row = 25; in get_term_dimensions() 125 ws->ws_col = 80; in get_term_dimensions()
|
| /linux/drivers/mtd/devices/ |
| A D | mchp48l640.c | 216 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/drivers/soc/fsl/ |
| A D | rcpm.c | 58 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 D | hvc_console.h | 46 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/fs/ |
| A D | eventpoll.c | 678 if (ws) in ep_pm_stay_awake() 693 ws = rcu_dereference(epi->ws); in ep_pm_stay_awake_rcu() 694 if (ws) in ep_pm_stay_awake_rcu() 760 __pm_relax(ep->ws); in ep_done_scan() 1549 if (!epi->ep->ws) { in ep_create_wakeup_source() 1551 if (!epi->ep->ws) in ep_create_wakeup_source() 1559 if (!ws) in ep_create_wakeup_source() 1561 rcu_assign_pointer(epi->ws, ws); in ep_create_wakeup_source() 1859 if (ws) { in ep_send_events() 1860 if (ws->active) in ep_send_events() [all …]
|
| /linux/drivers/md/ |
| A D | dm-era-target.c | 51 vfree(ws->bits); in writeset_free() 52 ws->bits = NULL; in writeset_free() 78 if (!ws->bits) { in writeset_alloc() 96 ws->md.nr_bits = nr_blocks; in writeset_init() 97 r = setup_on_disk_bitset(info, ws->md.nr_bits, &ws->md.root); in writeset_init() 108 return test_bit(block, ws->bits); in writeset_marked() 137 struct writeset *ws, uint32_t block) in writeset_test_and_set() argument 141 if (!test_bit(block, ws->bits)) { in writeset_test_and_set() 142 r = dm_bitset_set_bit(info, ws->md.root, block, &ws->md.root); in writeset_test_and_set() 973 struct writeset *ws; in metadata_current_marked() local [all …]
|
| A D | dm-cache-target.c | 50 struct work_struct ws; member 57 INIT_WORK(&k->ws, fn); in init_continuation() 64 queue_work(wq, &k->ws); in queue_continuation() 126 k = container_of(ws, struct continuation, ws); in __commit() 129 queue_work(b->wq, ws); in __commit() 1079 struct continuation *k = container_of(ws, struct continuation, ws); in ws_to_mg() 1308 mg_update_metadata(ws); in mg_update_metadata_after_copy() 1348 mg_upgrade_lock(ws); in mg_full_copy() 1375 mg_full_copy(ws); in mg_copy() 1389 mg_full_copy(ws); in mg_copy() [all …]
|
| /linux/drivers/dma/idxd/ |
| A D | submit.c | 32 struct sbq_wait_state *ws; in idxd_alloc_desc() local 47 ws = &sbq->ws[0]; in idxd_alloc_desc() 49 sbitmap_prepare_to_wait(sbq, ws, &wait, TASK_INTERRUPTIBLE); in idxd_alloc_desc() 58 sbitmap_finish_wait(sbq, ws, &wait); in idxd_alloc_desc()
|