Home
last modified time | relevance | path

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

12345

/linux-6.1.9/lib/zstd/compress/
Dzstd_cwksp.h157 MEM_STATIC size_t ZSTD_cwksp_available_space(ZSTD_cwksp* ws);
159 MEM_STATIC void ZSTD_cwksp_assert_internal_consistency(ZSTD_cwksp* ws) { in ZSTD_cwksp_assert_internal_consistency() argument
160 (void)ws; in ZSTD_cwksp_assert_internal_consistency()
161 assert(ws->workspace <= ws->objectEnd); in ZSTD_cwksp_assert_internal_consistency()
162 assert(ws->objectEnd <= ws->tableEnd); in ZSTD_cwksp_assert_internal_consistency()
163 assert(ws->objectEnd <= ws->tableValidEnd); in ZSTD_cwksp_assert_internal_consistency()
164 assert(ws->tableEnd <= ws->allocStart); in ZSTD_cwksp_assert_internal_consistency()
165 assert(ws->tableValidEnd <= ws->allocStart); in ZSTD_cwksp_assert_internal_consistency()
166 assert(ws->allocStart <= ws->workspaceEnd); in ZSTD_cwksp_assert_internal_consistency()
195 ZSTD_cwksp* ws, ZSTD_cwksp_alloc_phase_e phase) { in ZSTD_cwksp_internal_advance_phase() argument
[all …]
/linux-6.1.9/drivers/base/power/
Dwakeup.c87 struct wakeup_source *ws; in wakeup_source_create() local
91 ws = kzalloc(sizeof(*ws), GFP_KERNEL); in wakeup_source_create()
92 if (!ws) in wakeup_source_create()
98 ws->name = ws_name; in wakeup_source_create()
103 ws->id = id; in wakeup_source_create()
105 return ws; in wakeup_source_create()
108 kfree_const(ws->name); in wakeup_source_create()
110 kfree(ws); in wakeup_source_create()
119 static void wakeup_source_record(struct wakeup_source *ws) in wakeup_source_record() argument
125 if (ws->event_count) { in wakeup_source_record()
[all …]
Dwakeup_stats.c27 struct wakeup_source *ws = dev_get_drvdata(dev); \
29 return sysfs_emit(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()
68 struct wakeup_source *ws = dev_get_drvdata(dev); in max_time_ms_show() local
70 ktime_t max_time = ws->max_time; in max_time_ms_show()
[all …]
/linux-6.1.9/drivers/gpu/drm/panel/
Dpanel-widechips-ws2401.c104 static void ws2401_read_mtp_id(struct ws2401 *ws) in ws2401_read_mtp_id() argument
106 struct mipi_dbi *dbi = &ws->dbi; in ws2401_read_mtp_id()
112 dev_err(ws->dev, "unable to read MTP ID 1\n"); in ws2401_read_mtp_id()
117 dev_err(ws->dev, "unable to read MTP ID 2\n"); in ws2401_read_mtp_id()
122 dev_err(ws->dev, "unable to read MTP ID 3\n"); in ws2401_read_mtp_id()
125 dev_info(ws->dev, "MTP ID: %02x %02x %02x\n", id1, id2, id3); in ws2401_read_mtp_id()
128 static int ws2401_power_on(struct ws2401 *ws) in ws2401_power_on() argument
130 struct mipi_dbi *dbi = &ws->dbi; in ws2401_power_on()
134 ret = regulator_bulk_enable(ARRAY_SIZE(ws->regulators), in ws2401_power_on()
135 ws->regulators); in ws2401_power_on()
[all …]
/linux-6.1.9/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-6.1.9/include/linux/
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);
104 extern void wakeup_source_unregister(struct wakeup_source *ws);
108 extern struct wakeup_source *wakeup_sources_walk_next(struct wakeup_source *ws);
113 extern void __pm_stay_awake(struct wakeup_source *ws);
[all …]
Dsbitmap.h129 struct sbq_wait_state *ws; member
417 kfree(sbq->ws); in sbitmap_queue_free()
560 struct sbq_wait_state *ws; in sbq_wait_ptr() local
562 ws = &sbq->ws[atomic_read(wait_index)]; in sbq_wait_ptr()
564 return ws; in sbq_wait_ptr()
612 struct sbq_wait_state *ws,
618 void sbitmap_finish_wait(struct sbitmap_queue *sbq, struct sbq_wait_state *ws,
625 struct sbq_wait_state *ws,
/linux-6.1.9/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-6.1.9/fs/btrfs/
Dcompression.c70 static int compression_compress_pages(int type, struct list_head *ws, in compression_compress_pages() argument
77 return zlib_compress_pages(ws, mapping, start, pages, in compression_compress_pages()
80 return lzo_compress_pages(ws, mapping, start, pages, in compression_compress_pages()
83 return zstd_compress_pages(ws, mapping, start, pages, in compression_compress_pages()
101 static int compression_decompress_bio(struct list_head *ws, in compression_decompress_bio() argument
105 case BTRFS_COMPRESS_ZLIB: return zlib_decompress_bio(ws, cb); in compression_decompress_bio()
106 case BTRFS_COMPRESS_LZO: return lzo_decompress_bio(ws, cb); in compression_decompress_bio()
107 case BTRFS_COMPRESS_ZSTD: return zstd_decompress_bio(ws, cb); in compression_decompress_bio()
118 static int compression_decompress(int type, struct list_head *ws, in compression_decompress() argument
123 case BTRFS_COMPRESS_ZLIB: return zlib_decompress(ws, data_in, dest_page, in compression_decompress()
[all …]
Dcompression.h126 void btrfs_put_workspace(int type, struct list_head *ws);
148 int zlib_compress_pages(struct list_head *ws, struct address_space *mapping,
151 int zlib_decompress_bio(struct list_head *ws, struct compressed_bio *cb);
152 int zlib_decompress(struct list_head *ws, unsigned char *data_in,
156 void zlib_free_workspace(struct list_head *ws);
159 int lzo_compress_pages(struct list_head *ws, struct address_space *mapping,
162 int lzo_decompress_bio(struct list_head *ws, struct compressed_bio *cb);
163 int lzo_decompress(struct list_head *ws, unsigned char *data_in,
167 void lzo_free_workspace(struct list_head *ws);
169 int zstd_compress_pages(struct list_head *ws, struct address_space *mapping,
[all …]
Dzstd.c94 void zstd_free_workspace(struct list_head *ws);
176 struct list_head *ws; in zstd_init_workspace_manager() local
190 ws = zstd_alloc_workspace(ZSTD_BTRFS_MAX_LEVEL); in zstd_init_workspace_manager()
191 if (IS_ERR(ws)) { in zstd_init_workspace_manager()
196 list_add(ws, &wsm.idle_ws[ZSTD_BTRFS_MAX_LEVEL - 1]); 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()
241 workspace = list_to_workspace(ws); in zstd_find_workspace()
242 list_del_init(ws); in zstd_find_workspace()
250 return ws; in zstd_find_workspace()
[all …]
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()
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, unsigned char *data_in, in zlib_decompress() argument
[all …]
Dlzo.c70 void lzo_free_workspace(struct list_head *ws) in lzo_free_workspace() argument
72 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_free_workspace()
209 int lzo_compress_pages(struct list_head *ws, struct address_space *mapping, in lzo_compress_pages() argument
213 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_compress_pages()
327 int lzo_decompress_bio(struct list_head *ws, struct compressed_bio *cb) in lzo_decompress_bio() argument
329 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_decompress_bio()
428 int lzo_decompress(struct list_head *ws, unsigned char *data_in, in lzo_decompress() argument
432 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_decompress()
/linux-6.1.9/lib/
Dsbitmap.c438 sbq->ws = kzalloc_node(SBQ_WAIT_QUEUES * sizeof(*sbq->ws), flags, node); in sbitmap_queue_init_node()
439 if (!sbq->ws) { in sbitmap_queue_init_node()
445 init_waitqueue_head(&sbq->ws[i].wait); in sbitmap_queue_init_node()
446 atomic_set(&sbq->ws[i].wait_cnt, sbq->wake_batch); in sbitmap_queue_init_node()
467 atomic_set(&sbq->ws[i].wait_cnt, 1); in __sbitmap_queue_update_wake_batch()
588 struct sbq_wait_state *ws = &sbq->ws[wake_index]; in sbq_wake_ptr() local
590 if (waitqueue_active(&ws->wait) && atomic_read(&ws->wait_cnt)) { in sbq_wake_ptr()
593 return ws; in sbq_wake_ptr()
604 struct sbq_wait_state *ws; in __sbq_wake_up() local
612 ws = sbq_wake_ptr(sbq); in __sbq_wake_up()
[all …]
/linux-6.1.9/kernel/power/
Dwakelock.c30 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()
113 idle_time_ns = ktime_to_ns(ktime_sub(now, wl->ws->last_time)); 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()
188 wl->ws = wakeup_source_register(NULL, wl->name); in wakelock_lookup_add()
189 if (!wl->ws) { in wakelock_lookup_add()
194 wl->ws->last_time = ktime_get(); in wakelock_lookup_add()
[all …]
/linux-6.1.9/arch/mips/include/asm/
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-6.1.9/sound/core/
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-6.1.9/tools/lib/subcmd/
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-6.1.9/drivers/mtd/devices/
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-6.1.9/drivers/soc/fsl/
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-6.1.9/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-6.1.9/fs/
Deventpoll.c166 struct wakeup_source __rcu *ws; member
209 struct wakeup_source *ws; member
578 return rcu_dereference_check(epi->ws, lockdep_is_held(&epi->ep->mtx)); in ep_wakeup_source()
584 struct wakeup_source *ws = ep_wakeup_source(epi); in ep_pm_stay_awake() local
586 if (ws) in ep_pm_stay_awake()
587 __pm_stay_awake(ws); in ep_pm_stay_awake()
592 return rcu_access_pointer(epi->ws) ? true : false; in ep_has_wakeup_source()
598 struct wakeup_source *ws; in ep_pm_stay_awake_rcu() local
601 ws = rcu_dereference(epi->ws); in ep_pm_stay_awake_rcu()
602 if (ws) in ep_pm_stay_awake_rcu()
[all …]
/linux-6.1.9/drivers/md/
Ddm-era-target.c47 static void writeset_free(struct writeset *ws) in writeset_free() argument
49 vfree(ws->bits); in writeset_free()
50 ws->bits = NULL; in writeset_free()
73 static int writeset_alloc(struct writeset *ws, dm_block_t nr_blocks) in writeset_alloc() argument
75 ws->bits = vzalloc(bitset_size(nr_blocks)); in writeset_alloc()
76 if (!ws->bits) { in writeset_alloc()
87 static int writeset_init(struct dm_disk_bitset *info, struct writeset *ws, in writeset_init() argument
92 memset(ws->bits, 0, bitset_size(nr_blocks)); in writeset_init()
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()
[all …]
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()
103 struct work_struct *ws, *tmp; in __commit() local
124 list_for_each_entry_safe(ws, tmp, &work_items, entry) { in __commit()
125 k = container_of(ws, struct continuation, ws); in __commit()
127 INIT_LIST_HEAD(&ws->entry); /* to avoid a WARN_ON */ in __commit()
128 queue_work(b->wq, ws); in __commit()
171 list_add_tail(&k->ws.entry, &b->work_items); in continue_after_commit()
1063 dm_cell_quiesce_v2(mg->cache->prison, mg->cell, &mg->k.ws); in quiesce()
[all …]
/linux-6.1.9/drivers/dma/idxd/
Dsubmit.c32 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()

12345