/Linux-v4.19/drivers/base/power/ |
D | wakeup.c | 83 void wakeup_source_prepare(struct wakeup_source *ws, const char *name) in wakeup_source_prepare() argument 85 if (ws) { in wakeup_source_prepare() 86 memset(ws, 0, sizeof(*ws)); in wakeup_source_prepare() 87 ws->name = name; in wakeup_source_prepare() 98 struct wakeup_source *ws; in wakeup_source_create() local 100 ws = kmalloc(sizeof(*ws), GFP_KERNEL); in wakeup_source_create() 101 if (!ws) in wakeup_source_create() 104 wakeup_source_prepare(ws, name ? kstrdup_const(name, GFP_KERNEL) : NULL); in wakeup_source_create() 105 return ws; in wakeup_source_create() 116 void wakeup_source_drop(struct wakeup_source *ws) in wakeup_source_drop() argument [all …]
|
/Linux-v4.19/include/linux/ |
D | pm_wakeup.h | 97 extern void wakeup_source_prepare(struct wakeup_source *ws, const char *name); 99 extern void wakeup_source_drop(struct wakeup_source *ws); 100 extern void wakeup_source_destroy(struct wakeup_source *ws); 101 extern void wakeup_source_add(struct wakeup_source *ws); 102 extern void wakeup_source_remove(struct wakeup_source *ws); 104 extern void wakeup_source_unregister(struct wakeup_source *ws); 110 extern void __pm_stay_awake(struct wakeup_source *ws); 112 extern void __pm_relax(struct wakeup_source *ws); 114 extern void pm_wakeup_ws_event(struct wakeup_source *ws, unsigned int msec, bool hard); 129 static inline void wakeup_source_prepare(struct wakeup_source *ws, in wakeup_source_prepare() argument [all …]
|
D | sbitmap.h | 126 struct sbq_wait_state *ws; member 368 kfree(sbq->ws); in sbitmap_queue_free() 503 struct sbq_wait_state *ws; in sbq_wait_ptr() local 505 ws = &sbq->ws[atomic_read(wait_index)]; in sbq_wait_ptr() 507 return ws; in sbq_wait_ptr()
|
/Linux-v4.19/tools/perf/util/ |
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-v4.19/lib/ |
D | sbitmap.c | 329 sbq->ws = kzalloc_node(SBQ_WAIT_QUEUES * sizeof(*sbq->ws), flags, node); in sbitmap_queue_init_node() 330 if (!sbq->ws) { in sbitmap_queue_init_node() 337 init_waitqueue_head(&sbq->ws[i].wait); in sbitmap_queue_init_node() 338 atomic_set(&sbq->ws[i].wait_cnt, sbq->wake_batch); in sbitmap_queue_init_node() 361 atomic_set(&sbq->ws[i].wait_cnt, 1); in sbitmap_queue_update_wake_batch() 445 struct sbq_wait_state *ws = &sbq->ws[wake_index]; in sbq_wake_ptr() local 447 if (waitqueue_active(&ws->wait)) { in sbq_wake_ptr() 452 return ws; in sbq_wake_ptr() 463 struct sbq_wait_state *ws; in __sbq_wake_up() local 467 ws = sbq_wake_ptr(sbq); in __sbq_wake_up() [all …]
|
/Linux-v4.19/kernel/power/ |
D | wakelock.c | 30 struct wakeup_source ws; member 49 if (wl->ws.active == show_active) in pm_show_wakelocks() 115 spin_lock_irq(&wl->ws.lock); in __wakelocks_gc() 116 idle_time_ns = ktime_to_ns(ktime_sub(now, wl->ws.last_time)); in __wakelocks_gc() 117 active = wl->ws.active; in __wakelocks_gc() 118 spin_unlock_irq(&wl->ws.lock); in __wakelocks_gc() 124 wakeup_source_remove(&wl->ws); in __wakelocks_gc() 190 wl->ws.name = wl->name; in wakelock_lookup_add() 191 wl->ws.last_time = ktime_get(); in wakelock_lookup_add() 192 wakeup_source_add(&wl->ws); in wakelock_lookup_add() [all …]
|
/Linux-v4.19/fs/btrfs/ |
D | compression.c | 741 static void free_heuristic_ws(struct list_head *ws) in free_heuristic_ws() argument 745 workspace = list_entry(ws, struct heuristic_ws, list); in free_heuristic_ws() 755 struct heuristic_ws *ws; in alloc_heuristic_ws() local 757 ws = kzalloc(sizeof(*ws), GFP_KERNEL); in alloc_heuristic_ws() 758 if (!ws) in alloc_heuristic_ws() 761 ws->sample = kvmalloc(MAX_SAMPLE_SIZE, GFP_KERNEL); in alloc_heuristic_ws() 762 if (!ws->sample) in alloc_heuristic_ws() 765 ws->bucket = kcalloc(BUCKET_SIZE, sizeof(*ws->bucket), GFP_KERNEL); in alloc_heuristic_ws() 766 if (!ws->bucket) in alloc_heuristic_ws() 769 ws->bucket_b = kcalloc(BUCKET_SIZE, sizeof(*ws->bucket_b), GFP_KERNEL); in alloc_heuristic_ws() [all …]
|
D | zlib.c | 30 static void zlib_free_workspace(struct list_head *ws) in zlib_free_workspace() argument 32 struct workspace *workspace = list_entry(ws, struct workspace, list); in zlib_free_workspace() 63 static int zlib_compress_pages(struct list_head *ws, in zlib_compress_pages() argument 71 struct workspace *workspace = list_entry(ws, struct workspace, list); in zlib_compress_pages() 203 static int zlib_decompress_bio(struct list_head *ws, struct compressed_bio *cb) in zlib_decompress_bio() argument 205 struct workspace *workspace = list_entry(ws, struct workspace, list); in zlib_decompress_bio() 294 static int zlib_decompress(struct list_head *ws, unsigned char *data_in, in zlib_decompress() argument 299 struct workspace *workspace = list_entry(ws, struct workspace, list); in zlib_decompress() 393 static void zlib_set_level(struct list_head *ws, unsigned int type) in zlib_set_level() argument 395 struct workspace *workspace = list_entry(ws, struct workspace, list); in zlib_set_level()
|
D | lzo.c | 64 static void lzo_free_workspace(struct list_head *ws) in lzo_free_workspace() argument 66 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_free_workspace() 112 static int lzo_compress_pages(struct list_head *ws, in lzo_compress_pages() argument 120 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_compress_pages() 284 static int lzo_decompress_bio(struct list_head *ws, struct compressed_bio *cb) in lzo_decompress_bio() argument 286 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_decompress_bio() 425 static int lzo_decompress(struct list_head *ws, unsigned char *data_in, in lzo_decompress() argument 430 struct workspace *workspace = list_entry(ws, struct workspace, list); in lzo_decompress() 488 static void lzo_set_level(struct list_head *ws, unsigned int type) in lzo_set_level() argument
|
D | zstd.c | 44 static void zstd_free_workspace(struct list_head *ws) in zstd_free_workspace() argument 46 struct workspace *workspace = list_entry(ws, struct workspace, list); in zstd_free_workspace() 79 static int zstd_compress_pages(struct list_head *ws, in zstd_compress_pages() argument 87 struct workspace *workspace = list_entry(ws, struct workspace, list); in zstd_compress_pages() 259 static int zstd_decompress_bio(struct list_head *ws, struct compressed_bio *cb) in zstd_decompress_bio() argument 261 struct workspace *workspace = list_entry(ws, struct workspace, list); in zstd_decompress_bio() 337 static int zstd_decompress(struct list_head *ws, unsigned char *data_in, in zstd_decompress() argument 342 struct workspace *workspace = list_entry(ws, struct workspace, list); in zstd_decompress() 422 static void zstd_set_level(struct list_head *ws, unsigned int type) in zstd_set_level() argument
|
/Linux-v4.19/sound/core/ |
D | pcm_iec958.c | 18 unsigned int fs, ws; in create_iec958_consumer() local 52 ws = IEC958_AES4_CON_WORDLEN_20_16; in create_iec958_consumer() 55 ws = IEC958_AES4_CON_WORDLEN_22_18; in create_iec958_consumer() 58 ws = IEC958_AES4_CON_WORDLEN_20_16 | in create_iec958_consumer() 63 ws = IEC958_AES4_CON_WORDLEN_24_20 | in create_iec958_consumer() 80 cs[4] = ws; in create_iec958_consumer()
|
/Linux-v4.19/tools/lib/subcmd/ |
D | help.c | 82 static void get_term_dimensions(struct winsize *ws) in get_term_dimensions() argument 87 ws->ws_row = atoi(s); in get_term_dimensions() 90 ws->ws_col = atoi(s); in get_term_dimensions() 91 if (ws->ws_row && ws->ws_col) in get_term_dimensions() 96 if (ioctl(1, TIOCGWINSZ, ws) == 0 && in get_term_dimensions() 97 ws->ws_row && ws->ws_col) in get_term_dimensions() 100 ws->ws_row = 25; in get_term_dimensions() 101 ws->ws_col = 80; in get_term_dimensions()
|
/Linux-v4.19/drivers/net/wimax/i2400m/ |
D | rx.c | 183 void i2400m_report_hook_work(struct work_struct *ws) in i2400m_report_hook_work() argument 185 struct i2400m *i2400m = container_of(ws, struct i2400m, rx_report_ws); in i2400m_report_hook_work() 490 unsigned ws; member 499 roq->ws = 0; in __i2400m_roq_init() 525 r = ((int) sn - (int) roq->ws) % 2048; in __i2400m_roq_nsn() 545 unsigned ws, count, sn, nsn, new_ws; member 563 index, e->ws, e->count, e->sn, e->nsn, e->new_ws); in i2400m_roq_log_entry_print() 567 index, e->ws, e->count, e->sn, e->nsn); in i2400m_roq_log_entry_print() 572 index, e->ws, e->count, e->sn, e->nsn, e->new_ws); in i2400m_roq_log_entry_print() 577 index, e->ws, e->count, e->sn, e->nsn, e->new_ws); in i2400m_roq_log_entry_print() [all …]
|
/Linux-v4.19/fs/ |
D | eventpoll.c | 175 struct wakeup_source __rcu *ws; member 217 struct wakeup_source *ws; member 630 return rcu_dereference_check(epi->ws, lockdep_is_held(&epi->ep->mtx)); in ep_wakeup_source() 636 struct wakeup_source *ws = ep_wakeup_source(epi); in ep_pm_stay_awake() local 638 if (ws) in ep_pm_stay_awake() 639 __pm_stay_awake(ws); in ep_pm_stay_awake() 644 return rcu_access_pointer(epi->ws) ? true : false; in ep_has_wakeup_source() 650 struct wakeup_source *ws; in ep_pm_stay_awake_rcu() local 653 ws = rcu_dereference(epi->ws); in ep_pm_stay_awake_rcu() 654 if (ws) in ep_pm_stay_awake_rcu() [all …]
|
/Linux-v4.19/drivers/tty/hvc/ |
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-v4.19/arch/xtensa/kernel/ |
D | process.c | 337 unsigned long wb, ws, wm; in xtensa_elf_core_copy_regs() local 341 ws = regs->windowstart; in xtensa_elf_core_copy_regs() 343 ws = ((ws >> wb) | (ws << (WSBITS - wb))) & ((1 << WSBITS) - 1); in xtensa_elf_core_copy_regs() 359 elfregs->windowstart = ws; in xtensa_elf_core_copy_regs()
|
D | ptrace.c | 87 unsigned long wb, ws; in ptrace_setregs() local 97 __get_user(ws, &gregset->windowstart); in ptrace_setregs() 106 if (wb != regs->windowbase || ws != regs->windowstart) { in ptrace_setregs() 109 rotws = (((ws | (ws << WSBITS)) >> wb) & in ptrace_setregs() 114 regs->windowstart = ws; in ptrace_setregs() 216 unsigned long ws = regs->windowstart; in ptrace_peekusr() local 217 tmp = ((ws >> wb) | (ws << (WSBITS - wb))) & in ptrace_peekusr()
|
/Linux-v4.19/arch/mips/include/asm/ |
D | r4kcache.h | 587 unsigned long ws, addr; \ 591 for (ws = 0; ws < ws_end; ws += ws_inc) \ 593 cache##lsize##_unroll32(addr|ws, indexop); \ 621 unsigned long ws, addr; \ 625 for (ws = 0; ws < ws_end; ws += ws_inc) \ 627 cache##lsize##_unroll32(addr|ws, indexop); \
|
D | asmmacro.h | 332 .macro copy_s_w ws, n 337 copy_s.w $1, $w\ws[\n] 341 .macro copy_s_d ws, n 346 copy_s.d $1, $w\ws[\n] 472 .macro copy_s_w ws, n 476 insn_if_mips 0x78b00059 | (\n << 16) | (\ws << 11) 477 insn32_if_mm 0x58b00056 | (\n << 16) | (\ws << 11) 481 .macro copy_s_d ws, n 485 insn_if_mips 0x78b80059 | (\n << 16) | (\ws << 11) 486 insn32_if_mm 0x58b80056 | (\n << 16) | (\ws << 11)
|
/Linux-v4.19/drivers/md/ |
D | dm-era-target.c | 46 static void writeset_free(struct writeset *ws) in writeset_free() argument 48 vfree(ws->bits); in writeset_free() 71 static int writeset_alloc(struct writeset *ws, dm_block_t nr_blocks) in writeset_alloc() argument 73 ws->md.nr_bits = nr_blocks; in writeset_alloc() 74 ws->md.root = INVALID_WRITESET_ROOT; in writeset_alloc() 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 91 memset(ws->bits, 0, bitset_size(ws->md.nr_bits)); in writeset_init() 93 r = setup_on_disk_bitset(info, ws->md.nr_bits, &ws->md.root); in writeset_init() [all …]
|
D | dm-cache-target.c | 121 struct work_struct ws; member 128 INIT_WORK(&k->ws, fn); in init_continuation() 135 queue_work(wq, &k->ws); in queue_continuation() 177 struct work_struct *ws, *tmp; in __commit() local 198 list_for_each_entry_safe(ws, tmp, &work_items, entry) { in __commit() 199 k = container_of(ws, struct continuation, ws); in __commit() 201 INIT_LIST_HEAD(&ws->entry); /* to avoid a WARN_ON */ in __commit() 202 queue_work(b->wq, ws); in __commit() 246 list_add_tail(&k->ws.entry, &b->work_items); in continue_after_commit() 1172 dm_cell_quiesce_v2(mg->cache->prison, mg->cell, &mg->k.ws); in quiesce() [all …]
|
/Linux-v4.19/arch/mips/mm/ |
D | c-r4k.c | 268 unsigned long ws, addr; in tx49_blast_icache32() local 272 for (ws = 0; ws < ws_end; ws += ws_inc) in tx49_blast_icache32() 274 cache32_unroll32(addr|ws, Index_Invalidate_I); in tx49_blast_icache32() 277 for (ws = 0; ws < ws_end; ws += ws_inc) in tx49_blast_icache32() 279 cache32_unroll32(addr|ws, Index_Invalidate_I); in tx49_blast_icache32() 299 unsigned long ws, addr; in tx49_blast_icache32_page_indexed() local 303 for (ws = 0; ws < ws_end; ws += ws_inc) in tx49_blast_icache32_page_indexed() 305 cache32_unroll32(addr|ws, Index_Invalidate_I); in tx49_blast_icache32_page_indexed() 308 for (ws = 0; ws < ws_end; ws += ws_inc) in tx49_blast_icache32_page_indexed() 310 cache32_unroll32(addr|ws, Index_Invalidate_I); in tx49_blast_icache32_page_indexed()
|
/Linux-v4.19/arch/s390/crypto/ |
D | prng.c | 310 struct prno_ws_s ws; in prng_sha512_selftest() local 312 memset(&ws, 0, sizeof(ws)); in prng_sha512_selftest() 316 &ws, NULL, 0, seed, sizeof(seed)); in prng_sha512_selftest() 319 if (memcmp(ws.V, V0, sizeof(V0)) != 0 in prng_sha512_selftest() 320 || memcmp(ws.C, C0, sizeof(C0)) != 0) { in prng_sha512_selftest() 329 &ws, buf, sizeof(buf), NULL, 0); in prng_sha512_selftest() 331 &ws, buf, sizeof(buf), NULL, 0); in prng_sha512_selftest()
|
/Linux-v4.19/block/ |
D | blk-mq-tag.c | 112 struct sbq_wait_state *ws; in blk_mq_get_tag() local 137 ws = bt_wait_ptr(bt, data->hctx); in blk_mq_get_tag() 157 prepare_to_wait_exclusive(&ws->wait, &wait, in blk_mq_get_tag() 178 finish_wait(&ws->wait, &wait); in blk_mq_get_tag() 188 ws = bt_wait_ptr(bt, data->hctx); in blk_mq_get_tag() 194 finish_wait(&ws->wait, &wait); in blk_mq_get_tag()
|
/Linux-v4.19/drivers/gpu/drm/radeon/ |
D | atom.c | 57 uint32_t *ps, *ws; member 261 val = ctx->ws[idx]; in atom_get_src_int() 528 ctx->ws[idx] = val; in atom_put_dst() 1157 int len, ws, ps, ptr; in atom_execute_table_locked() local 1166 ws = CU8(base + ATOM_CT_WS_PTR); in atom_execute_table_locked() 1170 SDEBUG(">> execute %04X (len %d, WS %d, PS %d)\n", base, len, ws, ps); in atom_execute_table_locked() 1178 if (ws) in atom_execute_table_locked() 1179 ectx.ws = kcalloc(4, ws, GFP_KERNEL); in atom_execute_table_locked() 1181 ectx.ws = NULL; in atom_execute_table_locked() 1192 base, len, ws, ps, ptr - 1); in atom_execute_table_locked() [all …]
|