/linux-master/lib/zstd/compress/ |
H A D | zstd_cwksp.h | 161 MEM_STATIC size_t ZSTD_cwksp_available_space(ZSTD_cwksp* ws); 163 MEM_STATIC void ZSTD_cwksp_assert_internal_consistency(ZSTD_cwksp* ws) { argument 164 (void)ws; 165 assert(ws->workspace <= ws->objectEnd); 166 assert(ws->objectEnd <= ws->tableEnd); 167 assert(ws->objectEnd <= ws->tableValidEnd); 168 assert(ws 245 ZSTD_cwksp_reserve_internal_buffer_space(ZSTD_cwksp* ws, size_t const bytes) argument 273 ZSTD_cwksp_internal_advance_phase(ZSTD_cwksp* ws, ZSTD_cwksp_alloc_phase_e phase) argument 315 ZSTD_cwksp_owns_buffer(const ZSTD_cwksp* ws, const void* ptr) argument 324 ZSTD_cwksp_reserve_internal(ZSTD_cwksp* ws, size_t bytes, ZSTD_cwksp_alloc_phase_e phase) argument 341 ZSTD_cwksp_reserve_buffer(ZSTD_cwksp* ws, size_t bytes) argument 349 ZSTD_cwksp_reserve_aligned(ZSTD_cwksp* ws, size_t bytes) argument 362 ZSTD_cwksp_reserve_table(ZSTD_cwksp* ws, size_t bytes) argument 398 ZSTD_cwksp_reserve_object(ZSTD_cwksp* ws, size_t bytes) argument 425 ZSTD_cwksp_mark_tables_dirty(ZSTD_cwksp* ws) argument 436 ZSTD_cwksp_mark_tables_clean(ZSTD_cwksp* ws) argument 449 ZSTD_cwksp_clean_tables(ZSTD_cwksp* ws) argument 463 ZSTD_cwksp_clear_tables(ZSTD_cwksp* ws) argument 475 ZSTD_cwksp_clear(ZSTD_cwksp* ws) argument 494 ZSTD_cwksp_init(ZSTD_cwksp* ws, void* start, size_t size, ZSTD_cwksp_static_alloc_e isStatic) argument 508 ZSTD_cwksp_create(ZSTD_cwksp* ws, size_t size, ZSTD_customMem customMem) argument 516 ZSTD_cwksp_free(ZSTD_cwksp* ws, ZSTD_customMem customMem) argument 532 ZSTD_cwksp_sizeof(const ZSTD_cwksp* ws) argument 536 ZSTD_cwksp_used(const ZSTD_cwksp* ws) argument 541 ZSTD_cwksp_reserve_failed(const ZSTD_cwksp* ws) argument 553 ZSTD_cwksp_estimated_space_within_bounds(const ZSTD_cwksp* const ws, size_t const estimatedSpace, int resizedWorkspace) argument 567 ZSTD_cwksp_available_space(ZSTD_cwksp* ws) argument 571 ZSTD_cwksp_check_available(ZSTD_cwksp* ws, size_t additionalNeededSpace) argument 575 ZSTD_cwksp_check_too_large(ZSTD_cwksp* ws, size_t additionalNeededSpace) argument 580 ZSTD_cwksp_check_wasteful(ZSTD_cwksp* ws, size_t additionalNeededSpace) argument 585 ZSTD_cwksp_bump_oversized_duration( ZSTD_cwksp* ws, size_t additionalNeededSpace) argument [all...] |
/linux-master/drivers/base/power/ |
H A D | wakeup.c | 82 struct wakeup_source *ws; local 86 ws = kzalloc(sizeof(*ws), GFP_KERNEL); 87 if (!ws) 93 ws->name = ws_name; 98 ws->id = id; 100 return ws; 103 kfree_const(ws->name); 105 kfree(ws); 114 static void wakeup_source_record(struct wakeup_source *ws) argument 139 wakeup_source_free(struct wakeup_source *ws) argument 152 wakeup_source_destroy(struct wakeup_source *ws) argument 167 wakeup_source_add(struct wakeup_source *ws) argument 188 wakeup_source_remove(struct wakeup_source *ws) argument 217 struct wakeup_source *ws; local 239 wakeup_source_unregister(struct wakeup_source *ws) argument 296 wakeup_sources_walk_next(struct wakeup_source *ws) argument 312 device_wakeup_attach(struct device *dev, struct wakeup_source *ws) argument 334 struct wakeup_source *ws; local 369 struct wakeup_source *ws; local 391 struct wakeup_source *ws; local 405 struct wakeup_source *ws; local 421 struct wakeup_source *ws; local 438 struct wakeup_source *ws; local 456 struct wakeup_source *ws; local 516 wakeup_source_not_registered(struct wakeup_source *ws) argument 561 wakeup_source_activate(struct wakeup_source *ws) argument 586 wakeup_source_report_event(struct wakeup_source *ws, bool hard) argument 606 __pm_stay_awake(struct wakeup_source *ws) argument 648 update_prevent_sleep_time(struct wakeup_source *ws, ktime_t now) argument 654 update_prevent_sleep_time(struct wakeup_source *ws, ktime_t now) argument 666 wakeup_source_deactivate(struct wakeup_source *ws) argument 723 __pm_relax(struct wakeup_source *ws) argument 766 struct wakeup_source *ws = from_timer(ws, t, timer); local 793 pm_wakeup_ws_event(struct wakeup_source *ws, unsigned int msec, bool hard) argument 847 struct wakeup_source *ws; local 1027 struct wakeup_source *ws; local 1054 print_wakeup_source_stats(struct seq_file *m, struct wakeup_source *ws) argument 1100 struct wakeup_source *ws; local 1122 struct wakeup_source *ws = v; local 1152 struct wakeup_source *ws = v; local [all...] |
H A D | wakeup_stats.c | 27 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); local 43 ws->active ? ktime_sub(ktime_get(), ws->last_time) : 0; 52 struct wakeup_source *ws = dev_get_drvdata(dev); local 54 ktime_t total_time = ws->total_time; 56 if (ws->active) { 57 active_time = ktime_sub(ktime_get(), ws->last_time); 68 struct wakeup_source *ws local 85 struct wakeup_source *ws = dev_get_drvdata(dev); local 94 struct wakeup_source *ws = dev_get_drvdata(dev); local 104 struct wakeup_source *ws = dev_get_drvdata(dev); local 136 wakeup_source_device_create(struct device *parent, struct wakeup_source *ws) argument 177 wakeup_source_sysfs_add(struct device *parent, struct wakeup_source *ws) argument 206 wakeup_source_sysfs_remove(struct wakeup_source *ws) argument [all...] |
/linux-master/tools/perf/util/ |
H A D | term.c | 8 void get_term_dimensions(struct winsize *ws) argument 13 ws->ws_row = atoi(s); 16 ws->ws_col = atoi(s); 17 if (ws->ws_row && ws->ws_col) 22 if (ioctl(1, TIOCGWINSZ, ws) == 0 && 23 ws->ws_row && ws->ws_col) 26 ws->ws_row = 25; 27 ws [all...] |
H A D | term.h | 8 void get_term_dimensions(struct winsize *ws);
|
/linux-master/include/linux/ |
H A D | pm_wakeup.h | 66 #define for_each_wakeup_source(ws) \ 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); 137 wakeup_source_destroy(struct wakeup_source *ws) argument 139 wakeup_source_add(struct wakeup_source *ws) argument 141 wakeup_source_remove(struct wakeup_source *ws) argument 149 wakeup_source_unregister(struct wakeup_source *ws) argument 180 __pm_stay_awake(struct wakeup_source *ws) argument 184 __pm_relax(struct wakeup_source *ws) argument 188 pm_wakeup_ws_event(struct wakeup_source *ws, unsigned int msec, bool hard) argument 206 __pm_wakeup_event(struct wakeup_source *ws, unsigned int msec) argument [all...] |
H A D | sbitmap.h | 117 * @wake_index: Next wait queue in @ws to wake up. 122 * @ws: Wait queues. 124 struct sbq_wait_state *ws; member in struct:sbitmap_queue 127 * @ws_active: count of currently active ws waitqueues 423 kfree(sbq->ws); 566 struct sbq_wait_state *ws; local 568 ws = &sbq->ws[atomic_read(wait_index)]; 570 return ws; 618 struct sbq_wait_state *ws, [all...] |
/linux-master/drivers/gpu/drm/panel/ |
H A D | panel-widechips-ws2401.c | 104 static void ws2401_read_mtp_id(struct ws2401 *ws) argument 106 struct mipi_dbi *dbi = &ws->dbi; 112 dev_err(ws->dev, "unable to read MTP ID 1\n"); 117 dev_err(ws->dev, "unable to read MTP ID 2\n"); 122 dev_err(ws->dev, "unable to read MTP ID 3\n"); 125 dev_info(ws->dev, "MTP ID: %02x %02x %02x\n", id1, id2, id3); 128 static int ws2401_power_on(struct ws2401 *ws) argument 130 struct mipi_dbi *dbi = &ws->dbi; 134 ret = regulator_bulk_enable(ARRAY_SIZE(ws->regulators), 135 ws 223 ws2401_power_off(struct ws2401 *ws) argument 233 struct ws2401 *ws = to_ws2401(panel); local 246 struct ws2401 *ws = to_ws2401(panel); local 262 struct ws2401 *ws = to_ws2401(panel); local 278 struct ws2401 *ws = to_ws2401(panel); local 320 struct ws2401 *ws = bl_get_data(bl); local 347 struct ws2401 *ws; local 412 struct ws2401 *ws = spi_get_drvdata(spi); local [all...] |
/linux-master/lib/reed_solomon/ |
H A D | test_rslib.c | 98 static void free_ws(struct wspace *ws) argument 100 if (!ws) 103 kfree(ws->errlocs); 104 kfree(ws->c); 105 kfree(ws); 111 struct wspace *ws; local 114 ws = kzalloc(sizeof(*ws), GFP_KERNEL); 115 if (!ws) 118 ws 151 get_rcw_we(struct rs_control *rs, struct wspace *ws, int len, int errs, int eras) argument 260 test_uc(struct rs_control *rs, int len, int errs, int eras, int trials, struct estat *stat, struct wspace *ws, int method) argument 313 ex_rs_helper(struct rs_control *rs, struct wspace *ws, int len, int trials, int method) argument 349 exercise_rs(struct rs_control *rs, struct wspace *ws, int len, int trials) argument 366 test_bc(struct rs_control *rs, int len, int errs, int eras, int trials, struct bcstat *stat, struct wspace *ws) argument 407 exercise_rs_bc(struct rs_control *rs, struct wspace *ws, int len, int trials) argument 450 struct wspace *ws; local [all...] |
/linux-master/fs/btrfs/ |
H A D | compression.h | 127 void btrfs_put_workspace(int type, struct list_head *ws); 152 int zlib_compress_folios(struct list_head *ws, struct address_space *mapping, 155 int zlib_decompress_bio(struct list_head *ws, struct compressed_bio *cb); 156 int zlib_decompress(struct list_head *ws, const u8 *data_in, 160 void zlib_free_workspace(struct list_head *ws); 163 int lzo_compress_folios(struct list_head *ws, struct address_space *mapping, 166 int lzo_decompress_bio(struct list_head *ws, struct compressed_bio *cb); 167 int lzo_decompress(struct list_head *ws, const u8 *data_in, 171 void lzo_free_workspace(struct list_head *ws); 173 int zstd_compress_folios(struct list_head *ws, struc [all...] |
H A D | compression.c | 92 static int compression_compress_pages(int type, struct list_head *ws, argument 99 return zlib_compress_folios(ws, mapping, start, folios, 102 return lzo_compress_folios(ws, mapping, start, folios, 105 return zstd_compress_folios(ws, mapping, start, folios, 123 static int compression_decompress_bio(struct list_head *ws, argument 127 case BTRFS_COMPRESS_ZLIB: return zlib_decompress_bio(ws, cb); 128 case BTRFS_COMPRESS_LZO: return lzo_decompress_bio(ws, cb); 129 case BTRFS_COMPRESS_ZSTD: return zstd_decompress_bio(ws, cb); 140 static int compression_decompress(int type, struct list_head *ws, argument 145 case BTRFS_COMPRESS_ZLIB: return zlib_decompress(ws, data_i 688 free_heuristic_ws(struct list_head *ws) argument 702 struct heuristic_ws *ws; local 755 free_workspace(int type, struct list_head *ws) argument 800 struct list_head *ws; local 916 btrfs_put_workspace(int type, struct list_head *ws) argument 947 put_workspace(int type, struct list_head *ws) argument 1239 shannon_entropy(struct heuristic_ws *ws) argument 1375 byte_core_set_size(struct heuristic_ws *ws) argument 1413 byte_set_size(const struct heuristic_ws *ws) argument 1439 sample_repeated_patterns(struct heuristic_ws *ws) argument 1447 heuristic_collect_sample(struct inode *inode, u64 start, u64 end, struct heuristic_ws *ws) argument 1512 struct heuristic_ws *ws; local [all...] |
H A D | zstd.c | 95 void zstd_free_workspace(struct list_head *ws); 177 struct list_head *ws; local 191 ws = zstd_alloc_workspace(ZSTD_BTRFS_MAX_LEVEL); 192 if (IS_ERR(ws)) { 197 list_add(ws, &wsm.idle_ws[ZSTD_BTRFS_MAX_LEVEL - 1]); 235 struct list_head *ws; local 242 ws = wsm.idle_ws[i].next; 243 workspace = list_to_workspace(ws); 244 list_del_init(ws); 252 return ws; 272 struct list_head *ws; local 312 zstd_put_workspace(struct list_head *ws) argument 342 zstd_free_workspace(struct list_head *ws) argument 377 zstd_compress_folios(struct list_head *ws, struct address_space *mapping, u64 start, struct folio **folios, unsigned long *out_folios, unsigned long *total_in, unsigned long *total_out) argument 550 zstd_decompress_bio(struct list_head *ws, struct compressed_bio *cb) argument 627 zstd_decompress(struct list_head *ws, const u8 *data_in, struct page *dest_page, unsigned long dest_pgoff, size_t srclen, size_t destlen) argument [all...] |
H A D | zlib.c | 38 struct list_head *ws = btrfs_get_workspace(BTRFS_COMPRESS_ZLIB, level); local 39 struct workspace *workspace = list_entry(ws, struct workspace, list); 43 return ws; 46 void zlib_free_workspace(struct list_head *ws) argument 48 struct workspace *workspace = list_entry(ws, struct workspace, list); 94 int zlib_compress_folios(struct list_head *ws, struct address_space *mapping, argument 98 struct workspace *workspace = list_entry(ws, struct workspace, list); 277 int zlib_decompress_bio(struct list_head *ws, struct compressed_bio *cb) argument 279 struct workspace *workspace = list_entry(ws, struct workspace, list); 362 int zlib_decompress(struct list_head *ws, cons argument [all...] |
/linux-master/drivers/clk/meson/ |
H A D | clk-phase.h | 25 struct parm ws; member in struct:meson_sclk_ws_inv_data
|
/linux-master/sound/core/ |
H A D | pcm_iec958.c | 89 unsigned int ws; local 93 ws = IEC958_AES4_CON_WORDLEN_20_16; 96 ws = IEC958_AES4_CON_WORDLEN_22_18; 99 ws = IEC958_AES4_CON_WORDLEN_20_16 | 104 ws = IEC958_AES4_CON_WORDLEN_24_20 | 113 cs[4] |= ws;
|
/linux-master/kernel/power/ |
H A D | wakelock.c | 30 struct wakeup_source *ws; member in struct:wakelock 48 if (wl->ws->active == show_active) 112 spin_lock_irq(&wl->ws->lock); 113 idle_time_ns = ktime_to_ns(ktime_sub(now, wl->ws->last_time)); 114 active = wl->ws->active; 115 spin_unlock_irq(&wl->ws->lock); 121 wakeup_source_unregister(wl->ws); 188 wl->ws = wakeup_source_register(NULL, wl->name); 189 if (!wl->ws) { 194 wl->ws [all...] |
/linux-master/drivers/tty/hvc/ |
H A D | hvc_console.h | 46 struct winsize ws; member in struct:hvc_struct 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) argument 94 __hvc_resize(hp, ws);
|
/linux-master/arch/mips/include/asm/ |
H 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, lsiz [all...] |
/linux-master/drivers/infiniband/hw/irdma/ |
H A D | Makefile | 25 ws.o \
|
/linux-master/lib/ |
H A D | sbitmap.c | 428 sbq->ws = kzalloc_node(SBQ_WAIT_QUEUES * sizeof(*sbq->ws), flags, node); 429 if (!sbq->ws) { 435 init_waitqueue_head(&sbq->ws[i].wait); 555 struct sbq_wait_state *ws = &sbq->ws[wake_index]; local 565 if (waitqueue_active(&ws->wait)) { 566 woken = wake_up_nr(&ws->wait, nr); 677 struct sbq_wait_state *ws = &sbq->ws[wake_inde local 710 struct sbq_wait_state *ws = &sbq->ws[i]; local 721 sbitmap_add_wait_queue(struct sbitmap_queue *sbq, struct sbq_wait_state *ws, struct sbq_wait *sbq_wait) argument 743 sbitmap_prepare_to_wait(struct sbitmap_queue *sbq, struct sbq_wait_state *ws, struct sbq_wait *sbq_wait, int state) argument 755 sbitmap_finish_wait(struct sbitmap_queue *sbq, struct sbq_wait_state *ws, struct sbq_wait *sbq_wait) argument [all...] |
/linux-master/drivers/soc/fsl/ |
H A D | rcpm.c | 58 struct wakeup_source *ws; local 72 for_each_wakeup_source(ws) { 75 if (!ws->dev || !ws->dev->parent) 78 ret = device_property_read_u32_array(ws->dev->parent,
|
/linux-master/drivers/mtd/devices/ |
H A D | mchp48l640.c | 216 size_t ws; local 224 ws = min((len - wlen), page_sz); 225 ret = mchp48l640_write_page(mtd, woff, ws, retlen, &buf[wlen]); 228 wlen += ws; 229 woff += ws; 274 size_t ws; local 282 ws = min((len - wlen), page_sz); 283 ret = mchp48l640_read_page(mtd, woff, ws, retlen, &buf[wlen]); 286 wlen += ws; 287 woff += ws; [all...] |
/linux-master/tools/lib/subcmd/ |
H A D | help.c | 106 static void get_term_dimensions(struct winsize *ws) argument 111 ws->ws_row = atoi(s); 114 ws->ws_col = atoi(s); 115 if (ws->ws_row && ws->ws_col) 120 if (ioctl(1, TIOCGWINSZ, ws) == 0 && 121 ws->ws_row && ws->ws_col) 124 ws->ws_row = 25; 125 ws [all...] |
/linux-master/tools/testing/ktest/examples/ |
H A D | vmware.conf | 50 # test this. In all likelihood you want 'ws' or 'player' 52 # ws - Workstation (Windows or Linux host) 56 VMWARE_HOST_TYPE = ws
|
/linux-master/drivers/dma/idxd/ |
H A D | submit.c | 32 struct sbq_wait_state *ws; local 47 ws = &sbq->ws[0]; 49 sbitmap_prepare_to_wait(sbq, ws, &wait, TASK_INTERRUPTIBLE); 58 sbitmap_finish_wait(sbq, ws, &wait);
|