/openbmc/linux/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) { 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 …]
|
/openbmc/linux/drivers/base/power/ |
H A D | wakeup.c | 82 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 …]
|
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); 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 …]
|
/openbmc/linux/drivers/gpu/drm/panel/ |
H A D | panel-widechips-ws2401.c | 104 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 …]
|
/openbmc/linux/lib/reed_solomon/ |
H A D | test_rslib.c | 98 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 …]
|
/openbmc/linux/include/linux/ |
H A D | pm_wakeup.h | 66 #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 …]
|
H A D | sbitmap.h | 129 struct sbq_wait_state *ws; member 428 kfree(sbq->ws); in sbitmap_queue_free() 571 struct sbq_wait_state *ws; in sbq_wait_ptr() local 573 ws = &sbq->ws[atomic_read(wait_index)]; in sbq_wait_ptr() 575 return ws; in sbq_wait_ptr() 623 struct sbq_wait_state *ws, 629 void sbitmap_finish_wait(struct sbitmap_queue *sbq, struct sbq_wait_state *ws, 636 struct sbq_wait_state *ws,
|
/openbmc/linux/fs/btrfs/ |
H A D | compression.c | 94 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 …]
|
H A D | compression.h | 119 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 …]
|
H A D | zstd.c | 94 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 …]
|
H A D | zlib.c | 38 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 …]
|
/openbmc/linux/tools/perf/util/ |
H A 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()
|
/openbmc/qemu/target/mips/tcg/ |
H A D | msa.decode | 16 &msa_r df wd ws wt 19 &msa_i df wd ws sa 20 &msa_bit df wd ws m 21 &msa_elm_df df wd ws n 22 &msa_elm wd ws 33 @ldst ...... sa:s10 ws:5 wd:5 .... df:2 &msa_i 36 @elm_df ...... .... ...... ws:5 wd:5 ...... &msa_elm_df df=%elm_df n=%elm_n 37 @elm ...... .......... ws:5 wd:5 ...... &msa_elm 38 @vec ...... ..... wt:5 ws:5 wd:5 ...... &msa_r df=0 39 @2r ...... ........ df:2 ws:5 wd:5 ...... &msa_r wt=0 [all …]
|
H A D | msa_helper.c | 98 void helper_msa_nloc_b(CPUMIPSState *env, uint32_t wd, uint32_t ws) in helper_msa_nloc_b() argument 101 wr_t *pws = &(env->active_fpu.fpr[ws].wr); in helper_msa_nloc_b() 121 void helper_msa_nloc_h(CPUMIPSState *env, uint32_t wd, uint32_t ws) in helper_msa_nloc_h() argument 124 wr_t *pws = &(env->active_fpu.fpr[ws].wr); in helper_msa_nloc_h() 136 void helper_msa_nloc_w(CPUMIPSState *env, uint32_t wd, uint32_t ws) in helper_msa_nloc_w() argument 139 wr_t *pws = &(env->active_fpu.fpr[ws].wr); in helper_msa_nloc_w() 147 void helper_msa_nloc_d(CPUMIPSState *env, uint32_t wd, uint32_t ws) in helper_msa_nloc_d() argument 150 wr_t *pws = &(env->active_fpu.fpr[ws].wr); in helper_msa_nloc_d() 156 void helper_msa_nlzc_b(CPUMIPSState *env, uint32_t wd, uint32_t ws) in helper_msa_nlzc_b() argument 159 wr_t *pws = &(env->active_fpu.fpr[ws].wr); in helper_msa_nlzc_b() [all …]
|
/openbmc/openbmc/poky/meta/recipes-support/libpcre/libpcre/ |
H A D | Makefile | 88 ws='[ ]'; \ 91 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \ 92 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \ 93 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \ 94 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \ 95 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \ 96 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \ 97 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
|
/openbmc/linux/kernel/power/ |
H A D | wakelock.c | 30 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 …]
|
/openbmc/webui-vue/src/utilities/ |
H A D | NBDServer.js | 41 this.ws = null; 45 this.ws = new WebSocket(this.endpoint, [token]); 47 this.ws.binaryType = 'arraybuffer'; 48 this.ws.onmessage = this._on_ws_message.bind(this); 49 this.ws.onopen = this._on_ws_open.bind(this); 50 this.ws.onclose = this._on_ws_close.bind(this); 51 this.ws.onerror = this._on_ws_error.bind(this); 55 if (this.ws.readyState == 1) { 56 this.ws.close(); 128 this.ws.send(buf); [all …]
|
/openbmc/linux/arch/mips/include/asm/ |
H A D | r4kcache.h | 205 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); \
|
/openbmc/phosphor-webui/app/server-control/controllers/ |
H A D | virtual-media-controller.js | 61 if (existingConnectionsMap[vmDevice.id].server.ws.readyState === 1) { 109 this.ws = null; 114 this.ws = new WebSocket(this.endpoint, [token]); 116 this.ws.binaryType = 'arraybuffer'; 117 this.ws.onmessage = this._on_ws_message.bind(this); 118 this.ws.onopen = this._on_ws_open.bind(this); 119 this.ws.onclose = this._on_ws_close.bind(this); 120 this.ws.onerror = this._on_ws_error.bind(this); 124 this.ws.close(); 205 this.ws.send(buf); [all …]
|
/openbmc/bmcweb/http/ |
H A D | websocket_impl.hpp | 62 uri(urlViewIn), ws(std::move(adaptorIn)), inBuffer(inString, 131088), in ConnectionImpl() 70 ws.set_option(boost::beast::websocket::stream_base::timeout::suggested( in ConnectionImpl() 83 ws.set_option(boost::beast::websocket::stream_base::decorator( in start() 123 ws.async_accept(*ptr, in start() 130 ws.binary(true); in sendBinary() 146 ws.binary(type == MessageType::Binary); in sendEx() 148 ws.async_write(boost::asio::buffer(msg), in sendEx() 173 ws.text(true); in sendText() 181 ws.async_close( in close() 245 ws.async_read(inBuffer, [this, self(shared_from_this())]( in doRead() [all …]
|
/openbmc/linux/sound/core/ |
H A D | pcm_iec958.c | 89 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()
|
/openbmc/linux/lib/ |
H A D | sbitmap.c | 455 sbq->ws = kzalloc_node(SBQ_WAIT_QUEUES * sizeof(*sbq->ws), flags, node); in sbitmap_queue_init_node() 456 if (!sbq->ws) { in sbitmap_queue_init_node() 462 init_waitqueue_head(&sbq->ws[i].wait); in sbitmap_queue_init_node() 582 struct sbq_wait_state *ws = &sbq->ws[wake_index]; in __sbitmap_queue_wake_up() local 592 if (waitqueue_active(&ws->wait)) { in __sbitmap_queue_wake_up() 593 woken = wake_up_nr(&ws->wait, nr); in __sbitmap_queue_wake_up() 704 struct sbq_wait_state *ws = &sbq->ws[wake_index]; in sbitmap_queue_wake_all() local 706 if (waitqueue_active(&ws->wait)) in sbitmap_queue_wake_all() 707 wake_up(&ws->wait); in sbitmap_queue_wake_all() 737 struct sbq_wait_state *ws = &sbq->ws[i]; in sbitmap_queue_show() local [all …]
|
/openbmc/phosphor-webui/app/common/directives/ |
H A D | app-header.js | 25 var ws = new WebSocket( 31 if (ws !== undefined) { 39 ws.onopen = function() { 40 ws.send(data); field in AnonymousFunction0661d1e80200.AnonymousClass0661d1e80801 45 ws.onclose = function() { 51 ws.onmessage = function(evt) {
|
/openbmc/linux/drivers/mtd/devices/ |
H A D | mchp48l640.c | 216 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()
|
/openbmc/linux/tools/lib/subcmd/ |
H A D | help.c | 106 static void get_term_dimensions(struct winsize *ws) in get_term_dimensions() argument 111 ws->ws_row = atoi(s); in get_term_dimensions() 114 ws->ws_col = atoi(s); in get_term_dimensions() 115 if (ws->ws_row && ws->ws_col) in get_term_dimensions() 120 if (ioctl(1, TIOCGWINSZ, ws) == 0 && in get_term_dimensions() 121 ws->ws_row && ws->ws_col) in get_term_dimensions() 124 ws->ws_row = 25; in get_term_dimensions() 125 ws->ws_col = 80; in get_term_dimensions()
|