/linux-6.3-rc2/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-6.3-rc2/drivers/base/power/ |
A D | wakeup.c | 91 ws = kzalloc(sizeof(*ws), GFP_KERNEL); in wakeup_source_create() 92 if (!ws) in wakeup_source_create() 105 return ws; in wakeup_source_create() 159 if (!ws) in wakeup_source_destroy() 349 if (!ws) in device_wakeup_enable() 399 if (ws) in device_wakeup_detach_irq() 575 ws->start_prevent_time = ws->last_time; in wakeup_source_activate() 684 if (ws->relax_count != ws->active_count) { in wakeup_source_deactivate() 773 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 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-6.3-rc2/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-6.3-rc2/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-6.3-rc2/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); 185 static inline void __pm_relax(struct wakeup_source *ws) {} in __pm_relax() argument [all …]
|
A D | sbitmap.h | 124 struct sbq_wait_state *ws; member 423 kfree(sbq->ws); in sbitmap_queue_free() 566 struct sbq_wait_state *ws; in sbq_wait_ptr() local 568 ws = &sbq->ws[atomic_read(wait_index)]; in sbq_wait_ptr() 570 return ws; in sbq_wait_ptr() 618 struct sbq_wait_state *ws, 624 void sbitmap_finish_wait(struct sbitmap_queue *sbq, struct sbq_wait_state *ws, 631 struct sbq_wait_state *ws,
|
/linux-6.3-rc2/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-6.3-rc2/fs/btrfs/ |
A D | compression.c | 717 ws = kzalloc(sizeof(*ws), GFP_KERNEL); in alloc_heuristic_ws() 718 if (!ws) in alloc_heuristic_ws() 722 if (!ws->sample) in alloc_heuristic_ws() 725 ws->bucket = kcalloc(BUCKET_SIZE, sizeof(*ws->bucket), GFP_KERNEL); in alloc_heuristic_ws() 726 if (!ws->bucket) in alloc_heuristic_ws() 729 ws->bucket_b = kcalloc(BUCKET_SIZE, sizeof(*ws->bucket_b), GFP_KERNEL); in alloc_heuristic_ws() 730 if (!ws->bucket_b) in alloc_heuristic_ws() 734 return &ws->list; in alloc_heuristic_ws() 818 list_del(ws); in btrfs_cleanup_workspace_manager() 1338 radix_sort(ws->bucket, ws->bucket_b, BUCKET_SIZE); in byte_core_set_size() [all …]
|
A D | compression.h | 124 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, const u8 *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, const u8 *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, const u8 *data_in, 177 void zstd_free_workspace(struct list_head *ws); [all …]
|
A D | zstd.c | 176 struct list_head *ws; in zstd_init_workspace_manager() local 191 if (IS_ERR(ws)) { in zstd_init_workspace_manager() 233 struct list_head *ws; in zstd_find_workspace() local 240 ws = wsm.idle_ws[i].next; in zstd_find_workspace() 242 list_del_init(ws); in zstd_find_workspace() 250 return ws; in zstd_find_workspace() 269 struct list_head *ws; in zstd_get_workspace() local 278 if (ws) in zstd_get_workspace() 279 return ws; in zstd_get_workspace() 285 if (IS_ERR(ws)) { in zstd_get_workspace() [all …]
|
A D | zlib.c | 38 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() 271 int zlib_decompress_bio(struct list_head *ws, struct compressed_bio *cb) in zlib_decompress_bio() argument 273 struct workspace *workspace = list_entry(ws, struct workspace, list); in zlib_decompress_bio() 358 int zlib_decompress(struct list_head *ws, const u8 *data_in, in zlib_decompress() argument [all …]
|
A D | lzo.c | 72 void lzo_free_workspace(struct list_head *ws) in lzo_free_workspace() argument 74 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_free_workspace() 211 int lzo_compress_pages(struct list_head *ws, struct address_space *mapping, in lzo_compress_pages() argument 215 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_compress_pages() 329 int lzo_decompress_bio(struct list_head *ws, struct compressed_bio *cb) in lzo_decompress_bio() argument 331 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_decompress_bio() 430 int lzo_decompress(struct list_head *ws, const u8 *data_in, in lzo_decompress() argument 434 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_decompress()
|
/linux-6.3-rc2/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-6.3-rc2/arch/mips/include/asm/ |
A D | r4kcache.h | 205 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-6.3-rc2/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-6.3-rc2/lib/ |
A D | sbitmap.c | 433 sbq->ws = kzalloc_node(SBQ_WAIT_QUEUES * sizeof(*sbq->ws), flags, node); in sbitmap_queue_init_node() 434 if (!sbq->ws) { in sbitmap_queue_init_node() 560 struct sbq_wait_state *ws = &sbq->ws[wake_index]; in __sbitmap_queue_wake_up() local 574 if (waitqueue_active(&ws->wait) && in __sbitmap_queue_wake_up() 575 wake_up_nr(&ws->wait, nr)) in __sbitmap_queue_wake_up() 683 struct sbq_wait_state *ws = &sbq->ws[wake_index]; in sbitmap_queue_wake_all() local 685 if (waitqueue_active(&ws->wait)) in sbitmap_queue_wake_all() 686 wake_up(&ws->wait); in sbitmap_queue_wake_all() 716 struct sbq_wait_state *ws = &sbq->ws[i]; in sbitmap_queue_show() local 728 struct sbq_wait_state *ws, in sbitmap_add_wait_queue() argument [all …]
|
/linux-6.3-rc2/tools/lib/subcmd/ |
A D | help.c | 84 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-6.3-rc2/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-6.3-rc2/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-6.3-rc2/drivers/tty/hvc/ |
A D | hvc_console.h | 47 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-6.3-rc2/fs/ |
A D | eventpoll.c | 586 if (ws) in ep_pm_stay_awake() 601 ws = rcu_dereference(epi->ws); in ep_pm_stay_awake_rcu() 602 if (ws) in ep_pm_stay_awake_rcu() 668 __pm_relax(ep->ws); in ep_done_scan() 1377 if (!epi->ep->ws) { in ep_create_wakeup_source() 1379 if (!epi->ep->ws) in ep_create_wakeup_source() 1387 if (!ws) in ep_create_wakeup_source() 1389 rcu_assign_pointer(epi->ws, ws); in ep_create_wakeup_source() 1681 if (ws) { in ep_send_events() 1682 if (ws->active) in ep_send_events() [all …]
|
/linux-6.3-rc2/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 | 49 struct work_struct ws; member 56 INIT_WORK(&k->ws, fn); in init_continuation() 63 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() 1080 struct continuation *k = container_of(ws, struct continuation, ws); in ws_to_mg() 1309 mg_update_metadata(ws); in mg_update_metadata_after_copy() 1349 mg_upgrade_lock(ws); in mg_full_copy() 1376 mg_full_copy(ws); in mg_copy() 1390 mg_full_copy(ws); in mg_copy() [all …]
|
/linux-6.3-rc2/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()
|