Home
last modified time | relevance | path

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

1234

/linux/lib/zstd/compress/
H A Dzstd_cwksp.h176 MEM_STATIC size_t ZSTD_cwksp_available_space(ZSTD_cwksp* ws);
177 MEM_STATIC void* ZSTD_cwksp_initialAllocStart(ZSTD_cwksp* ws);
179 MEM_STATIC void ZSTD_cwksp_assert_internal_consistency(ZSTD_cwksp* ws) { in ZSTD_cwksp_assert_internal_consistency() argument
180 (void)ws; in ZSTD_cwksp_assert_internal_consistency()
181 assert(ws->workspace <= ws->objectEnd); in ZSTD_cwksp_assert_internal_consistency()
182 assert(ws->objectEnd <= ws->tableEnd); in ZSTD_cwksp_assert_internal_consistency()
183 assert(ws->objectEnd <= ws->tableValidEnd); in ZSTD_cwksp_assert_internal_consistency()
184 assert(ws->tableEnd <= ws->allocStart); in ZSTD_cwksp_assert_internal_consistency()
185 assert(ws->tableValidEnd <= ws->allocStart); in ZSTD_cwksp_assert_internal_consistency()
186 assert(ws->allocStart <= ws->workspaceEnd); in ZSTD_cwksp_assert_internal_consistency()
[all …]
H A Dzstd_compress.c126 ZSTD_cwksp ws; in ZSTD_initStaticCCtx() local
130 ZSTD_cwksp_init(&ws, workspace, workspaceSize, ZSTD_cwksp_static_alloc); in ZSTD_initStaticCCtx()
132 cctx = (ZSTD_CCtx*)ZSTD_cwksp_reserve_object(&ws, sizeof(ZSTD_CCtx)); in ZSTD_initStaticCCtx()
136 ZSTD_cwksp_move(&cctx->workspace, &ws); in ZSTD_initStaticCCtx()
1912 ZSTD_cwksp* ws, in ZSTD_reset_matchState() argument
1932 ZSTD_cwksp_mark_tables_dirty(ws); in ZSTD_reset_matchState()
1940 assert(!ZSTD_cwksp_reserve_failed(ws)); /* check that allocation hasn't already failed */ in ZSTD_reset_matchState()
1942 ZSTD_cwksp_clear_tables(ws); in ZSTD_reset_matchState()
1946 ms->hashTable = (U32*)ZSTD_cwksp_reserve_table(ws, hSize * sizeof(U32)); in ZSTD_reset_matchState()
1947 ms->chainTable = (U32*)ZSTD_cwksp_reserve_table(ws, chainSize * sizeof(U32)); in ZSTD_reset_matchState()
[all …]
/linux/drivers/base/power/
H A Dwakeup_stats.c27 struct wakeup_source *ws = dev_get_drvdata(dev); \
29 return sysfs_emit(buf, "%lu\n", ws->_name); \
42 struct wakeup_source *ws = dev_get_drvdata(dev); in active_time_ms_show() local
44 ws->active ? ktime_sub(ktime_get(), ws->last_time) : 0; in active_time_ms_show()
53 struct wakeup_source *ws = dev_get_drvdata(dev); in total_time_ms_show() local
55 ktime_t total_time = ws->total_time; in total_time_ms_show()
57 if (ws->active) { in total_time_ms_show()
58 active_time = ktime_sub(ktime_get(), ws->last_time); in total_time_ms_show()
69 struct wakeup_source *ws = dev_get_drvdata(dev); in max_time_ms_show() local
71 ktime_t max_time = ws->max_time; in max_time_ms_show()
[all …]
/linux/lib/reed_solomon/
H A 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_obj(*ws); in alloc_ws()
115 if (!ws) in alloc_ws()
118 ws in alloc_ws()
151 get_rcw_we(struct rs_control * rs,struct wspace * ws,int len,int errs,int eras) get_rcw_we() argument
262 test_uc(struct rs_control * rs,int len,int errs,int eras,int trials,struct estat * stat,struct wspace * ws,int method) test_uc() argument
313 ex_rs_helper(struct rs_control * rs,struct wspace * ws,int len,int trials,int method) ex_rs_helper() argument
349 exercise_rs(struct rs_control * rs,struct wspace * ws,int len,int trials) exercise_rs() argument
368 test_bc(struct rs_control * rs,int len,int errs,int eras,int trials,struct bcstat * stat,struct wspace * ws) test_bc() argument
407 exercise_rs_bc(struct rs_control * rs,struct wspace * ws,int len,int trials) exercise_rs_bc() argument
450 struct wspace *ws; run_exercise() local
[all...]
/linux/tools/perf/util/
H 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/fs/ntfs/
H A Dwof.c103 static size_t ntfs_wof_input_size(const struct ntfs_wof_workspace *ws) in ntfs_wof_input_size() argument
105 return round_up((size_t)ws->comp_unit + 511, 512); in ntfs_wof_input_size()
108 static int ntfs_wof_workspace_prepare(struct ntfs_wof_workspace *ws) in ntfs_wof_workspace_prepare() argument
113 if (ws->output) in ntfs_wof_workspace_prepare()
116 scratch_size = ws->codec->scratch_size(ws->comp_unit); in ntfs_wof_workspace_prepare()
120 output = kvmalloc(ws->comp_unit, GFP_NOFS); in ntfs_wof_workspace_prepare()
128 ws->output = output; in ntfs_wof_workspace_prepare()
129 ws->scratch = scratch; in ntfs_wof_workspace_prepare()
138 struct ntfs_wof_workspace *ws in ntfs_wof_free_workspaces() local
516 ntfs_wof_decode(struct ntfs_wof_workspace * ws,const void * src,u32 src_len,void * dst,u32 dst_len) ntfs_wof_decode() argument
527 ntfs_wof_decode_page_direct(struct ntfs_wof_workspace * ws,struct folio * target,loff_t chunk_start,const void * src,u32 src_len,u32 dst_len) ntfs_wof_decode_page_direct() argument
552 ntfs_wof_decode_folios_direct(struct ntfs_wof_workspace * ws,struct address_space * mapping,struct folio * target,loff_t chunk_start,loff_t chunk_end,const void * src,u32 src_len,u32 dst_len) ntfs_wof_decode_folios_direct() argument
591 ntfs_wof_try_direct(struct ntfs_wof_workspace * ws,struct address_space * mapping,struct folio * target,loff_t chunk_start,loff_t chunk_end,const void * src,u32 src_len,u32 dst_len) ntfs_wof_try_direct() argument
611 ntfs_wof_decompress_chunk(struct ntfs_wof_workspace * ws,struct ntfs_volume * vol,struct address_space * mapping,struct folio * folio,loff_t folio_start,loff_t folio_end,u64 chunk_file_offset,char * chunk_mem,u32 chunk_size,u32 decomp_size) ntfs_wof_decompress_chunk() argument
658 struct ntfs_wof_workspace *ws; ntfs_read_wof_compressed_block() local
[all...]
H A Dcompress.c1258 struct ntfs_compress_workspace *ws) in ntfs_compress_workspace_init() argument
1264 ws->nr_pages = DIV_ROUND_UP(size, PAGE_SIZE); in ntfs_compress_workspace_init()
1265 ws->pages = kzalloc_objs(*ws->pages, ws->nr_pages, GFP_NOFS); in ntfs_compress_workspace_init()
1266 if (!ws->pages) in ntfs_compress_workspace_init()
1269 for (i = 0; i < ws->nr_pages; i++) { in ntfs_compress_workspace_init()
1270 ws->pages[i] = alloc_page(GFP_NOFS); in ntfs_compress_workspace_init()
1271 if (!ws->pages[i]) in ntfs_compress_workspace_init()
1275 ws in ntfs_compress_workspace_init()
1287 ntfs_compress_workspace_free(struct ntfs_compress_workspace * ws) ntfs_compress_workspace_free() argument
1299 ntfs_copy_cb(struct page ** pages,int pages_per_cb,unsigned int page_offset,struct ntfs_compress_workspace * ws,unsigned int bytes) ntfs_copy_cb() argument
1316 ntfs_write_cb(struct ntfs_inode * ni,loff_t pos,struct page ** pages,int pages_per_cb,unsigned int page_offset,struct compress_context * ctx,struct ntfs_compress_workspace * ws) ntfs_write_cb() argument
1473 struct ntfs_compress_workspace ws = {}; ntfs_compress_write() local
[all...]
/linux/fs/btrfs/
H A Dcompression.c89 static int compression_decompress_bio(struct list_head *ws, in compression_decompress_bio() argument
93 case BTRFS_COMPRESS_ZLIB: return zlib_decompress_bio(ws, cb); in compression_decompress_bio()
94 case BTRFS_COMPRESS_LZO: return lzo_decompress_bio(ws, cb); in compression_decompress_bio()
95 case BTRFS_COMPRESS_ZSTD: return zstd_decompress_bio(ws, cb); in compression_decompress_bio()
106 static int compression_decompress(int type, struct list_head *ws, in compression_decompress() argument
111 case BTRFS_COMPRESS_ZLIB: return zlib_decompress(ws, data_in, dest_folio, in compression_decompress()
113 case BTRFS_COMPRESS_LZO: return lzo_decompress(ws, data_in, dest_folio, in compression_decompress()
115 case BTRFS_COMPRESS_ZSTD: return zstd_decompress(ws, data_in, dest_folio, in compression_decompress()
660 static void free_heuristic_ws(struct list_head *ws) in free_heuristic_ws() argument
664 workspace = list_entry(ws, struc in free_heuristic_ws()
672 struct heuristic_ws *ws; alloc_heuristic_ws() local
715 free_workspace(int type,struct list_head * ws) free_workspace() argument
768 struct list_head *ws; free_workspace_manager() local
890 btrfs_put_workspace(struct btrfs_fs_info * fs_info,int type,struct list_head * ws) btrfs_put_workspace() argument
921 put_workspace(struct btrfs_fs_info * fs_info,int type,struct list_head * ws) put_workspace() argument
1280 shannon_entropy(struct heuristic_ws * ws) shannon_entropy() argument
1416 byte_core_set_size(struct heuristic_ws * ws) byte_core_set_size() argument
1454 byte_set_size(const struct heuristic_ws * ws) byte_set_size() argument
1480 sample_repeated_patterns(struct heuristic_ws * ws) sample_repeated_patterns() argument
1489 heuristic_collect_sample(struct inode * inode,u64 start,u64 end,struct heuristic_ws * ws) heuristic_collect_sample() argument
1554 struct heuristic_ws *ws; btrfs_compress_heuristic() local
[all...]
H A Dzstd.c185 struct list_head *ws; in zstd_alloc_workspace_manager() local
201 ws = zstd_alloc_workspace(fs_info, ZSTD_BTRFS_MAX_LEVEL); in zstd_alloc_workspace_manager()
202 if (IS_ERR(ws)) { in zstd_alloc_workspace_manager()
206 list_add(ws, &zwsm->idle_ws[ZSTD_BTRFS_MAX_LEVEL - 1]); in zstd_alloc_workspace_manager()
249 struct list_head *ws; in zstd_find_workspace() local
257 ws = zwsm->idle_ws[i].next; in zstd_find_workspace()
258 workspace = list_to_workspace(ws); in zstd_find_workspace()
259 list_del_init(ws); in zstd_find_workspace()
267 return ws; in zstd_find_workspace()
288 struct list_head *ws; in zstd_get_workspace() local
339 zstd_put_workspace(struct btrfs_fs_info * fs_info,struct list_head * ws) zstd_put_workspace() argument
371 zstd_free_workspace(struct list_head * ws) zstd_free_workspace() argument
407 zstd_compress_bio(struct list_head * ws,struct compressed_bio * cb) zstd_compress_bio() argument
592 zstd_decompress_bio(struct list_head * ws,struct compressed_bio * cb) zstd_decompress_bio() argument
685 zstd_decompress(struct list_head * ws,const u8 * data_in,struct folio * dest_folio,unsigned long dest_pgoff,size_t srclen,size_t destlen) zstd_decompress() argument
[all...]
H A Dzlib.c39 struct list_head *ws = btrfs_get_workspace(fs_info, BTRFS_COMPRESS_ZLIB, level); in zlib_get_workspace() local
40 struct workspace *workspace = list_entry(ws, struct workspace, list); in zlib_get_workspace()
44 return ws; in zlib_get_workspace()
47 void zlib_free_workspace(struct list_head *ws) in zlib_free_workspace() argument
49 struct workspace *workspace = list_entry(ws, struct workspace, list); in zlib_free_workspace()
147 int zlib_compress_bio(struct list_head *ws, struct compressed_bio *cb) in zlib_compress_bio() argument
151 struct workspace *workspace = list_entry(ws, struct workspace, list); in zlib_compress_bio()
338 int zlib_decompress_bio(struct list_head *ws, struct compressed_bio *cb) in zlib_decompress_bio() argument
341 struct workspace *workspace = list_entry(ws, struct workspace, list); in zlib_decompress_bio()
441 int zlib_decompress(struct list_head *ws, cons argument
[all...]
H A Dlzo.c77 void lzo_free_workspace(struct list_head *ws) in lzo_free_workspace() argument
79 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_free_workspace()
260 int lzo_compress_bio(struct list_head *ws, struct compressed_bio *cb) in lzo_compress_bio() argument
264 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_compress_bio()
413 int lzo_decompress_bio(struct list_head *ws, struct compressed_bio *cb) in lzo_decompress_bio() argument
415 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_decompress_bio()
543 int lzo_decompress(struct list_head *ws, const u8 *data_in, in lzo_decompress() argument
547 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_decompress()
/linux/arch/mips/include/asm/
H A Dr4kcache.h209 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); \
H A Dasmmacro.h339 .macro copy_s_w ws, n
344 copy_s.w $1, $w\ws[\n]
348 .macro copy_s_d ws, n
353 copy_s.d $1, $w\ws[\n]
479 .macro copy_s_w ws, n
483 insn_if_mips 0x78b00059 | (\n << 16) | (\ws << 11)
484 insn32_if_mm 0x58b00056 | (\n << 16) | (\ws << 11)
488 .macro copy_s_d ws, n
492 insn_if_mips 0x78b80059 | (\n << 16) | (\ws << 11)
493 insn32_if_mm 0x58b80056 | (\n << 16) | (\ws << 11)
/linux/lib/
H A Dsbitmap.c466 sbq->ws = kzalloc_node(SBQ_WAIT_QUEUES * sizeof(*sbq->ws), flags, node); in sbitmap_queue_init_node()
467 if (!sbq->ws) { in sbitmap_queue_init_node()
473 init_waitqueue_head(&sbq->ws[i].wait); in sbitmap_queue_init_node()
593 struct sbq_wait_state *ws = &sbq->ws[wake_index]; in __sbitmap_queue_wake_up() local
603 if (waitqueue_active(&ws->wait)) { in __sbitmap_queue_wake_up()
604 woken = wake_up_nr(&ws->wait, nr); in __sbitmap_queue_wake_up()
715 struct sbq_wait_state *ws = &sbq->ws[wake_index]; in sbitmap_queue_wake_all() local
717 if (waitqueue_active(&ws->wait)) in sbitmap_queue_wake_all()
718 wake_up(&ws->wait); in sbitmap_queue_wake_all()
748 struct sbq_wait_state *ws = &sbq->ws[i]; in sbitmap_queue_show() local
[all …]
/linux/sound/core/
H 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/
H A Dhelp.c113 static void get_term_dimensions(struct winsize *ws) in get_term_dimensions() argument
118 ws->ws_row = atoi(s); in get_term_dimensions()
121 ws->ws_col = atoi(s); in get_term_dimensions()
122 if (ws->ws_row && ws->ws_col) in get_term_dimensions()
127 if (ioctl(1, TIOCGWINSZ, ws) == 0 && in get_term_dimensions()
128 ws->ws_row && ws->ws_col) in get_term_dimensions()
131 ws->ws_row = 25; in get_term_dimensions()
132 ws->ws_col = 80; in get_term_dimensions()
/linux/drivers/tty/hvc/
H A Dhvc_console.h46 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()
H A Dhvc_console.c568 struct winsize ws; in hvc_set_winsz() local
577 ws = hp->ws; in hvc_set_winsz()
580 tty_do_resize(tty, &ws); in hvc_set_winsz()
778 void __hvc_resize(struct hvc_struct *hp, struct winsize ws) in __hvc_resize() argument
780 hp->ws = ws; in __hvc_resize()
/linux/fs/
H A Deventpoll.c108 * ws - ep->mtx
124 * ws - RCU (rcu_assign_pointer /
284 struct wakeup_source __rcu *ws; member
330 struct wakeup_source *ws; member
931 return rcu_dereference_check(epi->ws, lockdep_is_held(&epi->ep->mtx)); in ep_wakeup_source()
937 struct wakeup_source *ws = ep_wakeup_source(epi); in ep_pm_stay_awake() local
939 if (ws) in ep_pm_stay_awake()
940 __pm_stay_awake(ws); in ep_pm_stay_awake()
945 return rcu_access_pointer(epi->ws) ? true : false; in ep_has_wakeup_source()
951 struct wakeup_source *ws; in ep_pm_stay_awake_rcu() local
1742 struct wakeup_source *ws; ep_create_wakeup_source() local
1764 struct wakeup_source *ws = ep_wakeup_source(epi); ep_destroy_wakeup_source() local
2071 struct wakeup_source *ws; ep_deliver_event() local
[all...]
/linux/drivers/md/
H A 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 …]
H A Ddm-cache-target.c52 struct work_struct ws;
59 INIT_WORK(&k->ws, fn); in init_continuation()
66 queue_work(wq, &k->ws); in queue_continuation()
107 struct work_struct *ws, *tmp; in __commit()
127 list_for_each_entry_safe(ws, tmp, &work_items, entry) { in __commit()
128 k = container_of(ws, struct continuation, ws); in __commit()
130 INIT_LIST_HEAD(&ws->entry); /* to avoid a WARN_ON */ in __commit()
131 queue_work(b->wq, ws); in __commit()
174 list_add_tail(&k->ws in continue_after_commit()
51 struct work_struct ws; global() member
106 struct work_struct *ws, *tmp; __commit() local
1085 ws_to_mg(struct work_struct * ws) ws_to_mg() argument
1237 mg_success(struct work_struct * ws) mg_success() argument
1244 mg_update_metadata(struct work_struct * ws) mg_update_metadata() argument
1306 mg_update_metadata_after_copy(struct work_struct * ws) mg_update_metadata_after_copy() argument
1319 mg_upgrade_lock(struct work_struct * ws) mg_upgrade_lock() argument
1347 mg_full_copy(struct work_struct * ws) mg_full_copy() argument
1364 mg_copy(struct work_struct * ws) mg_copy() argument
1490 invalidate_completed(struct work_struct * ws) invalidate_completed() argument
1522 invalidate_committed(struct work_struct * ws) invalidate_committed() argument
1540 invalidate_remove(struct work_struct * ws) invalidate_remove() argument
1851 process_deferred_bios(struct work_struct * ws) process_deferred_bios() argument
1905 do_waker(struct work_struct * ws) do_waker() argument
1915 check_migrations(struct work_struct * ws) check_migrations() argument
[all...]
H A Ddm-ebs-target.c27 struct work_struct ws; /* Work item used for ^. */ member
177 static void __ebs_process_bios(struct work_struct *ws) in __ebs_process_bios() argument
182 struct ebs_c *ec = container_of(ws, struct ebs_c, ws); in __ebs_process_bios()
333 INIT_WORK(&ec->ws, &__ebs_process_bios); in ebs_ctr()
381 queue_work(ec->wq, &ec->ws); in ebs_map()
/linux/drivers/dma/idxd/
H A 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()
/linux/arch/xtensa/include/asm/
H A Dprocessor.h115 #define MAKE_RA_FOR_CALL(ra,ws) (((ra) & 0x3fffffff) | (ws) << 30) argument
127 #define MAKE_RA_FOR_CALL(ra, ws) (ra) argument
/linux/drivers/gpu/drm/radeon/
H A Datom.c62 uint32_t *ps, *ws; member
267 val = ctx->ws[idx]; in atom_get_src_int()
544 ctx->ws[idx] = val; in atom_put_dst()
1173 int len, ws, ps, ptr; in atom_execute_table_locked() local
1182 ws = CU8(base + ATOM_CT_WS_PTR); in atom_execute_table_locked()
1186 SDEBUG(">> execute %04X (len %d, WS %d, PS %d)\n", base, len, ws, ps); in atom_execute_table_locked()
1195 if (ws) { in atom_execute_table_locked()
1196 ectx.ws = kcalloc(4, ws, GFP_KERNEL); in atom_execute_table_locked()
1197 ectx.ws_size = ws; in atom_execute_table_locked()
1199 ectx.ws = NULL; in atom_execute_table_locked()
[all …]

1234