Searched refs:zs (Results 1 - 21 of 21) sorted by relevance

/linux-4.4.14/tools/build/feature/
H A Dtest-zlib.c5 z_stream zs; main() local
7 inflateInit(&zs); main()
/linux-4.4.14/drivers/block/zram/
H A Dzcomp.c102 struct zcomp_strm_multi *zs = comp->stream; zcomp_strm_multi_find() local
106 spin_lock(&zs->strm_lock); zcomp_strm_multi_find()
107 if (!list_empty(&zs->idle_strm)) { zcomp_strm_multi_find()
108 zstrm = list_entry(zs->idle_strm.next, zcomp_strm_multi_find()
111 spin_unlock(&zs->strm_lock); zcomp_strm_multi_find()
115 if (zs->avail_strm >= zs->max_strm) { zcomp_strm_multi_find()
116 spin_unlock(&zs->strm_lock); zcomp_strm_multi_find()
117 wait_event(zs->strm_wait, !list_empty(&zs->idle_strm)); zcomp_strm_multi_find()
121 zs->avail_strm++; zcomp_strm_multi_find()
122 spin_unlock(&zs->strm_lock); zcomp_strm_multi_find()
126 spin_lock(&zs->strm_lock); zcomp_strm_multi_find()
127 zs->avail_strm--; zcomp_strm_multi_find()
128 spin_unlock(&zs->strm_lock); zcomp_strm_multi_find()
129 wait_event(zs->strm_wait, !list_empty(&zs->idle_strm)); zcomp_strm_multi_find()
140 struct zcomp_strm_multi *zs = comp->stream; zcomp_strm_multi_release() local
142 spin_lock(&zs->strm_lock); zcomp_strm_multi_release()
143 if (zs->avail_strm <= zs->max_strm) { zcomp_strm_multi_release()
144 list_add(&zstrm->list, &zs->idle_strm); zcomp_strm_multi_release()
145 spin_unlock(&zs->strm_lock); zcomp_strm_multi_release()
146 wake_up(&zs->strm_wait); zcomp_strm_multi_release()
150 zs->avail_strm--; zcomp_strm_multi_release()
151 spin_unlock(&zs->strm_lock); zcomp_strm_multi_release()
158 struct zcomp_strm_multi *zs = comp->stream; zcomp_strm_multi_set_max_streams() local
161 spin_lock(&zs->strm_lock); zcomp_strm_multi_set_max_streams()
162 zs->max_strm = num_strm; zcomp_strm_multi_set_max_streams()
167 while (zs->avail_strm > num_strm && !list_empty(&zs->idle_strm)) { zcomp_strm_multi_set_max_streams()
168 zstrm = list_entry(zs->idle_strm.next, zcomp_strm_multi_set_max_streams()
172 zs->avail_strm--; zcomp_strm_multi_set_max_streams()
174 spin_unlock(&zs->strm_lock); zcomp_strm_multi_set_max_streams()
180 struct zcomp_strm_multi *zs = comp->stream; zcomp_strm_multi_destroy() local
183 while (!list_empty(&zs->idle_strm)) { zcomp_strm_multi_destroy()
184 zstrm = list_entry(zs->idle_strm.next, zcomp_strm_multi_destroy()
189 kfree(zs); zcomp_strm_multi_destroy()
195 struct zcomp_strm_multi *zs; zcomp_strm_multi_create() local
201 zs = kmalloc(sizeof(struct zcomp_strm_multi), GFP_KERNEL); zcomp_strm_multi_create()
202 if (!zs) zcomp_strm_multi_create()
205 comp->stream = zs; zcomp_strm_multi_create()
206 spin_lock_init(&zs->strm_lock); zcomp_strm_multi_create()
207 INIT_LIST_HEAD(&zs->idle_strm); zcomp_strm_multi_create()
208 init_waitqueue_head(&zs->strm_wait); zcomp_strm_multi_create()
209 zs->max_strm = max_strm; zcomp_strm_multi_create()
210 zs->avail_strm = 1; zcomp_strm_multi_create()
214 kfree(zs); zcomp_strm_multi_create()
217 list_add(&zstrm->list, &zs->idle_strm); zcomp_strm_multi_create()
223 struct zcomp_strm_single *zs = comp->stream; zcomp_strm_single_find() local
224 mutex_lock(&zs->strm_lock); zcomp_strm_single_find()
225 return zs->zstrm; zcomp_strm_single_find()
231 struct zcomp_strm_single *zs = comp->stream; zcomp_strm_single_release() local
232 mutex_unlock(&zs->strm_lock); zcomp_strm_single_release()
243 struct zcomp_strm_single *zs = comp->stream; zcomp_strm_single_destroy() local
244 zcomp_strm_free(comp, zs->zstrm); zcomp_strm_single_destroy()
245 kfree(zs); zcomp_strm_single_destroy()
250 struct zcomp_strm_single *zs; zcomp_strm_single_create() local
256 zs = kmalloc(sizeof(struct zcomp_strm_single), GFP_KERNEL); zcomp_strm_single_create()
257 if (!zs) zcomp_strm_single_create()
260 comp->stream = zs; zcomp_strm_single_create()
261 mutex_init(&zs->strm_lock); zcomp_strm_single_create()
262 zs->zstrm = zcomp_strm_alloc(comp); zcomp_strm_single_create()
263 if (!zs->zstrm) { zcomp_strm_single_create()
264 kfree(zs); zcomp_strm_single_create()
/linux-4.4.14/tools/perf/util/
H A Dzlib.c21 z_stream zs = { gzip_decompress_to_file() local
40 if (inflateInit2(&zs, 16 + MAX_WBITS) != Z_OK) gzip_decompress_to_file()
43 zs.next_in = ptr; gzip_decompress_to_file()
44 zs.avail_in = stbuf.st_size; gzip_decompress_to_file()
47 zs.next_out = buf; gzip_decompress_to_file()
48 zs.avail_out = CHUNK_SIZE; gzip_decompress_to_file()
50 ret = inflate(&zs, Z_NO_FLUSH); gzip_decompress_to_file()
62 len = CHUNK_SIZE - zs.avail_out; gzip_decompress_to_file()
71 inflateEnd(&zs); gzip_decompress_to_file()
/linux-4.4.14/arch/mips/math-emu/
H A Dsp_maddf.c35 u32 zm; int ze; int zs __maybe_unused; int zc; ieee754sp_maddf()
39 EXPLODESP(z, zc, zs, ze, zm) ieee754sp_maddf()
43 FLUSHSP(z, zc, zs, ze, zm); ieee754sp_maddf()
110 return ieee754sp_inf(zs); ieee754sp_maddf()
121 return ieee754sp_inf(zs); ieee754sp_maddf()
129 return ieee754sp_inf(zs); ieee754sp_maddf()
137 return ieee754sp_inf(zs); ieee754sp_maddf()
225 if (zs == rs) { ieee754sp_maddf()
228 * leaving result in zm, zs and ze. ieee754sp_maddf()
240 zs = rs; ieee754sp_maddf()
254 return ieee754sp_format(zs, ze, zm); ieee754sp_maddf()
H A Dsp_msubf.c35 u32 zm; int ze; int zs __maybe_unused; int zc; ieee754sp_msubf()
39 EXPLODESP(z, zc, zs, ze, zm) ieee754sp_msubf()
43 FLUSHSP(z, zc, zs, ze, zm); ieee754sp_msubf()
110 return ieee754sp_inf(zs); ieee754sp_msubf()
121 return ieee754sp_inf(zs); ieee754sp_msubf()
129 return ieee754sp_inf(zs); ieee754sp_msubf()
137 return ieee754sp_inf(zs); ieee754sp_msubf()
228 if (zs == rs) { ieee754sp_msubf()
231 * leaving result in zm, zs and ze. ieee754sp_msubf()
243 zs = rs; ieee754sp_msubf()
257 return ieee754sp_format(zs, ze, zm); ieee754sp_msubf()
H A Ddp_maddf.c36 u64 zm; int ze; int zs __maybe_unused; int zc; ieee754dp_maddf()
40 EXPLODEDP(z, zc, zs, ze, zm) ieee754dp_maddf()
44 FLUSHDP(z, zc, zs, ze, zm); ieee754dp_maddf()
112 return ieee754dp_inf(zs); ieee754dp_maddf()
123 return ieee754dp_inf(zs); ieee754dp_maddf()
131 return ieee754dp_inf(zs); ieee754dp_maddf()
139 return ieee754dp_inf(zs); ieee754dp_maddf()
234 if (zs == rs) { ieee754dp_maddf()
250 zs = rs; ieee754dp_maddf()
264 return ieee754dp_format(zs, ze, zm); ieee754dp_maddf()
H A Ddp_msubf.c36 u64 zm; int ze; int zs __maybe_unused; int zc; ieee754dp_msubf()
40 EXPLODEDP(z, zc, zs, ze, zm) ieee754dp_msubf()
44 FLUSHDP(z, zc, zs, ze, zm); ieee754dp_msubf()
112 return ieee754dp_inf(zs); ieee754dp_msubf()
123 return ieee754dp_inf(zs); ieee754dp_msubf()
131 return ieee754dp_inf(zs); ieee754dp_msubf()
139 return ieee754dp_inf(zs); ieee754dp_msubf()
238 if (zs == rs) { ieee754dp_msubf()
254 zs = rs; ieee754dp_msubf()
268 return ieee754dp_format(zs, ze, zm); ieee754dp_msubf()
/linux-4.4.14/drivers/clk/shmobile/
H A Dclk-r8a7779.c108 } else if (!strcmp(name, "zs") || !strcmp(name, "s")) { r8a7779_cpg_register_clock()
H A Dclk-r8a73a4.c51 { "zs", CPG_FRQCRB, 8 },
/linux-4.4.14/drivers/tty/serial/
H A Dsunzilog.c6 * This is based on the old drivers/sbus/char/zs.c code. A lot
977 return (up->flags & SUNZILOG_FLAG_ESCC) ? "zs (ESCC)" : "zs"; sunzilog_type()
1229 printk(KERN_INFO "Console: ttyS%d (SunZilog zs%d)\n", sunzilog_console_setup()
1321 "zs/serio0" : "zs/serio1"), sunzilog_register_serio()
1422 "zs"); zs_probe()
1535 .name = "zs",
1543 .name = "zs",
1557 for_each_node_by_name(dp, "zs") { sunzilog_init()
1583 "zs", sunzilog_irq_chain); sunzilog_init()
H A Dzs.c2 * zs.c: Serial port driver for IOASIC DECstations.
76 #include "zs.h"
769 printk(KERN_ERR "zs: can't get irq %d\n", zs_startup()
997 printk(KERN_ERR "zs: Cannot map MMIO\n"); zs_map_port()
1008 printk(KERN_ERR "zs: Unable to reserve MMIO resource\n"); zs_request_port()
H A Dzs.h2 * zs.h: Definitions for the DECstation Z85C30 serial driver.
H A Dip22zilog.c7 * drivers/sbus/char/zs.c code. A lot of code has been simply moved over
1164 panic("IP22-Zilog: Unable to register zs interrupt handler.\n"); ip22zilog_ports_init()
H A Dpmac_zilog.c946 pmz_error("Unable to register zs interrupt handler.\n"); pmz_startup()
/linux-4.4.14/arch/sparc/kernel/
H A Dsun4m_irq.c95 * zs: 0x2c onboard keyboard/mouse/serial
H A Dprom_irqtrans.c729 } else if (!strcmp(dp->name, "zs")) { central_build_irq()
/linux-4.4.14/sound/usb/
H A Dformat.c509 /* FIXME: temporary hack for extigy/audigy 2 nx/zs */ snd_usb_parse_audio_format()
/linux-4.4.14/arch/powerpc/perf/
H A Dhv-24x7.c88 * - output cost_per_result(ys,zs) = 8 + 8 * ys + ys * zs
/linux-4.4.14/drivers/usb/storage/
H A Dalauda.c184 unsigned char zoneshift; /* 1<<zs blocks per zone */
H A Dsddr09.c123 char zoneshift; /* 1<<zs blocks in a zone */
/linux-4.4.14/mm/
H A Dzsmalloc.c2024 pr_err("zs stat initialization failed\n"); zs_init()

Completed in 833 milliseconds