Home
last modified time | relevance | path

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

12345

/Linux-v6.6/lib/zstd/compress/
Dzstd_cwksp.h161 MEM_STATIC size_t ZSTD_cwksp_available_space(ZSTD_cwksp* ws);
163 MEM_STATIC void ZSTD_cwksp_assert_internal_consistency(ZSTD_cwksp* ws) { in ZSTD_cwksp_assert_internal_consistency() argument
164 (void)ws; in ZSTD_cwksp_assert_internal_consistency()
165 assert(ws->workspace <= ws->objectEnd); in ZSTD_cwksp_assert_internal_consistency()
166 assert(ws->objectEnd <= ws->tableEnd); in ZSTD_cwksp_assert_internal_consistency()
167 assert(ws->objectEnd <= ws->tableValidEnd); in ZSTD_cwksp_assert_internal_consistency()
168 assert(ws->tableEnd <= ws->allocStart); in ZSTD_cwksp_assert_internal_consistency()
169 assert(ws->tableValidEnd <= ws->allocStart); in ZSTD_cwksp_assert_internal_consistency()
170 assert(ws->allocStart <= ws->workspaceEnd); in ZSTD_cwksp_assert_internal_consistency()
245 ZSTD_cwksp_reserve_internal_buffer_space(ZSTD_cwksp* ws, size_t const bytes) in ZSTD_cwksp_reserve_internal_buffer_space() argument
[all …]
/Linux-v6.6/drivers/base/power/
Dwakeup.c82 struct wakeup_source *ws; in wakeup_source_create() local
86 ws = kzalloc(sizeof(*ws), GFP_KERNEL); in wakeup_source_create()
87 if (!ws) in wakeup_source_create()
93 ws->name = ws_name; in wakeup_source_create()
98 ws->id = id; in wakeup_source_create()
100 return ws; in wakeup_source_create()
103 kfree_const(ws->name); in wakeup_source_create()
105 kfree(ws); in wakeup_source_create()
114 static void wakeup_source_record(struct wakeup_source *ws) in wakeup_source_record() argument
120 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-v6.6/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-v6.6/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-v6.6/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.h124 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-v6.6/fs/btrfs/
Dcompression.c94 static int compression_compress_pages(int type, struct list_head *ws, in compression_compress_pages() argument
101 return zlib_compress_pages(ws, mapping, start, pages, in compression_compress_pages()
104 return lzo_compress_pages(ws, mapping, start, pages, in compression_compress_pages()
107 return zstd_compress_pages(ws, mapping, start, pages, in compression_compress_pages()
125 static int compression_decompress_bio(struct list_head *ws, in compression_decompress_bio() argument
129 case BTRFS_COMPRESS_ZLIB: return zlib_decompress_bio(ws, cb); in compression_decompress_bio()
130 case BTRFS_COMPRESS_LZO: return lzo_decompress_bio(ws, cb); in compression_decompress_bio()
131 case BTRFS_COMPRESS_ZSTD: return zstd_decompress_bio(ws, cb); in compression_decompress_bio()
142 static int compression_decompress(int type, struct list_head *ws, in compression_decompress() argument
147 case BTRFS_COMPRESS_ZLIB: return zlib_decompress(ws, data_in, dest_page, in compression_decompress()
[all …]
Dcompression.h119 void btrfs_put_workspace(int type, struct list_head *ws);
141 int zlib_compress_pages(struct list_head *ws, struct address_space *mapping,
144 int zlib_decompress_bio(struct list_head *ws, struct compressed_bio *cb);
145 int zlib_decompress(struct list_head *ws, const u8 *data_in,
149 void zlib_free_workspace(struct list_head *ws);
152 int lzo_compress_pages(struct list_head *ws, struct address_space *mapping,
155 int lzo_decompress_bio(struct list_head *ws, struct compressed_bio *cb);
156 int lzo_decompress(struct list_head *ws, const u8 *data_in,
160 void lzo_free_workspace(struct list_head *ws);
162 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()
356 int zlib_decompress(struct list_head *ws, const u8 *data_in, in zlib_decompress() argument
[all …]
Dlzo.c73 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_pages(struct list_head *ws, struct address_space *mapping, in lzo_compress_pages() argument
216 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_compress_pages()
330 int lzo_decompress_bio(struct list_head *ws, struct compressed_bio *cb) in lzo_decompress_bio() argument
332 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_decompress_bio()
427 int lzo_decompress(struct list_head *ws, const u8 *data_in, in lzo_decompress() argument
431 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_decompress()
/Linux-v6.6/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-v6.6/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-v6.6/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-v6.6/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-v6.6/lib/
Dsbitmap.c433 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()
440 init_waitqueue_head(&sbq->ws[i].wait); in sbitmap_queue_init_node()
560 struct sbq_wait_state *ws = &sbq->ws[wake_index]; in __sbitmap_queue_wake_up() local
570 if (waitqueue_active(&ws->wait)) { in __sbitmap_queue_wake_up()
571 woken = wake_up_nr(&ws->wait, nr); in __sbitmap_queue_wake_up()
682 struct sbq_wait_state *ws = &sbq->ws[wake_index]; in sbitmap_queue_wake_all() local
684 if (waitqueue_active(&ws->wait)) in sbitmap_queue_wake_all()
685 wake_up(&ws->wait); in sbitmap_queue_wake_all()
715 struct sbq_wait_state *ws = &sbq->ws[i]; in sbitmap_queue_show() local
[all …]
/Linux-v6.6/tools/lib/subcmd/
Dhelp.c96 static void get_term_dimensions(struct winsize *ws) in get_term_dimensions() argument
101 ws->ws_row = atoi(s); in get_term_dimensions()
104 ws->ws_col = atoi(s); in get_term_dimensions()
105 if (ws->ws_row && ws->ws_col) in get_term_dimensions()
110 if (ioctl(1, TIOCGWINSZ, ws) == 0 && in get_term_dimensions()
111 ws->ws_row && ws->ws_col) in get_term_dimensions()
114 ws->ws_row = 25; in get_term_dimensions()
115 ws->ws_col = 80; in get_term_dimensions()
/Linux-v6.6/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-v6.6/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-v6.6/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-v6.6/fs/
Deventpoll.c167 struct wakeup_source __rcu *ws; member
210 struct wakeup_source *ws; member
582 return rcu_dereference_check(epi->ws, lockdep_is_held(&epi->ep->mtx)); in ep_wakeup_source()
588 struct wakeup_source *ws = ep_wakeup_source(epi); in ep_pm_stay_awake() local
590 if (ws) in ep_pm_stay_awake()
591 __pm_stay_awake(ws); in ep_pm_stay_awake()
596 return rcu_access_pointer(epi->ws) ? true : false; in ep_has_wakeup_source()
602 struct wakeup_source *ws; in ep_pm_stay_awake_rcu() local
605 ws = rcu_dereference(epi->ws); in ep_pm_stay_awake_rcu()
606 if (ws) in ep_pm_stay_awake_rcu()
[all …]
/Linux-v6.6/drivers/md/
Ddm-era-target.c49 static void writeset_free(struct writeset *ws) in writeset_free() argument
51 vfree(ws->bits); in writeset_free()
52 ws->bits = NULL; in writeset_free()
75 static int writeset_alloc(struct writeset *ws, dm_block_t nr_blocks) in writeset_alloc() argument
77 ws->bits = vzalloc(bitset_size(nr_blocks)); in writeset_alloc()
78 if (!ws->bits) { in writeset_alloc()
89 static int writeset_init(struct dm_disk_bitset *info, struct writeset *ws, in writeset_init() argument
94 memset(ws->bits, 0, bitset_size(nr_blocks)); in writeset_init()
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()
[all …]
Ddm-cache-target.c49 struct work_struct ws; member
56 INIT_WORK(&k->ws, fn); in init_continuation()
63 queue_work(wq, &k->ws); in queue_continuation()
104 struct work_struct *ws, *tmp; in __commit() local
125 list_for_each_entry_safe(ws, tmp, &work_items, entry) { in __commit()
126 k = container_of(ws, struct continuation, ws); in __commit()
128 INIT_LIST_HEAD(&ws->entry); /* to avoid a WARN_ON */ in __commit()
129 queue_work(b->wq, ws); in __commit()
172 list_add_tail(&k->ws.entry, &b->work_items); in continue_after_commit()
1075 dm_cell_quiesce_v2(mg->cache->prison, mg->cell, &mg->k.ws); in quiesce()
[all …]
/Linux-v6.6/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