Home
last modified time | relevance | path

Searched full:zc (Results 1 – 25 of 87) sorted by relevance

1234

/linux/drivers/s390/crypto/
H A Dzcrypt_card.c43 struct zcrypt_card *zc = dev_get_drvdata(dev); in type_show() local
45 return sysfs_emit(buf, "%s\n", zc->type_string); in type_show()
54 struct zcrypt_card *zc = dev_get_drvdata(dev); in online_show() local
56 int online = ac->config && !ac->chkstop && zc->online ? 1 : 0; in online_show()
65 struct zcrypt_card *zc = dev_get_drvdata(dev); in online_store() local
77 zc->online = online; in online_store()
78 id = zc->card->id; in online_store()
91 list_for_each_entry(zq, &zc->zqueues, list) in online_store()
95 list_for_each_entry(zq, &zc->zqueues, list) in online_store()
120 struct zcrypt_card *zc = dev_get_drvdata(dev); in load_show() local
[all …]
H A Dzcrypt_api.c578 static inline struct zcrypt_queue *zcrypt_pick_queue(struct zcrypt_card *zc, in zcrypt_pick_queue() argument
585 zcrypt_card_get(zc); in zcrypt_pick_queue()
588 atomic_add(weight, &zc->load); in zcrypt_pick_queue()
595 static inline void zcrypt_drop_queue(struct zcrypt_card *zc, in zcrypt_drop_queue() argument
601 atomic_sub(weight, &zc->load); in zcrypt_drop_queue()
605 zcrypt_card_put(zc); in zcrypt_drop_queue()
609 static inline bool zcrypt_card_compare(struct zcrypt_card *zc, in zcrypt_card_compare() argument
616 weight += atomic_read(&zc->load); in zcrypt_card_compare()
619 return atomic64_read(&zc->card->total_request_count) < in zcrypt_card_compare()
646 struct zcrypt_card *zc, *pref_zc; in zcrypt_rsa_modexpo() local
[all …]
H A Dzcrypt_queue.c57 struct zcrypt_card *zc = zq->zcard; in online_store() local
66 if (online && !zc->online) in online_store()
170 struct zcrypt_card *zc; in zcrypt_queue_register() local
174 zc = dev_get_drvdata(&zq->queue->card->ap_dev.device); in zcrypt_queue_register()
175 zcrypt_card_get(zc); in zcrypt_queue_register()
176 zq->zcard = zc; in zcrypt_queue_register()
183 list_add_tail(&zq->list, &zc->zqueues); in zcrypt_queue_register()
205 zcrypt_card_put(zc); in zcrypt_queue_register()
218 struct zcrypt_card *zc; in zcrypt_queue_unregister() local
224 zc = zq->zcard; in zcrypt_queue_unregister()
[all …]
/linux/drivers/hid/
H A Dhid-zydacron.c50 struct zc_device *zc = hid_get_drvdata(hdev); in zc_input_mapping() local
51 zc->input_ep81 = hi->input; in zc_input_mapping()
104 zc->last_key[i] = 0; in zc_input_mapping()
112 struct zc_device *zc = hid_get_drvdata(hdev); in zc_raw_event() local
121 key = zc->last_key[index]; in zc_raw_event()
123 input_event(zc->input_ep81, EV_KEY, key, 0); in zc_raw_event()
124 zc->last_key[index] = 0; in zc_raw_event()
152 input_event(zc->input_ep81, EV_KEY, key, 1); in zc_raw_event()
153 zc->last_key[index] = key; in zc_raw_event()
167 struct zc_device *zc; in zc_probe() local
[all …]
/linux/tools/testing/selftests/ublk/
H A Dstripe.c115 const struct ublksrv_io_desc *iod, int zc) in stripe_to_uring_op() argument
120 return zc ? IORING_OP_READV_FIXED : IORING_OP_READV; in stripe_to_uring_op()
122 return zc ? IORING_OP_WRITEV_FIXED : IORING_OP_WRITEV; in stripe_to_uring_op()
131 unsigned zc = (ublk_queue_use_zc(q) != 0); in stripe_queue_tgt_rw_io() local
132 enum io_uring_op op = stripe_to_uring_op(iod, zc | auto_zc); in stripe_queue_tgt_rw_io()
136 int i, extra = zc ? 2 : 0; in stripe_queue_tgt_rw_io()
137 void *base = (zc | auto_zc) ? NULL : (void *)iod->addr; in stripe_queue_tgt_rw_io()
144 if (zc) { in stripe_queue_tgt_rw_io()
151 for (i = zc; i < s->nr + extra - zc; i++) { in stripe_queue_tgt_rw_io()
152 struct stripe *t = &s->s[i - zc]; in stripe_queue_tgt_rw_io()
[all …]
H A Dfile_backed.c5 static enum io_uring_op ublk_to_uring_op(const struct ublksrv_io_desc *iod, int zc) in ublk_to_uring_op() argument
10 return zc ? IORING_OP_READ_FIXED : IORING_OP_READ; in ublk_to_uring_op()
12 return zc ? IORING_OP_WRITE_FIXED : IORING_OP_WRITE; in ublk_to_uring_op()
34 unsigned zc = ublk_queue_use_zc(q); in loop_queue_tgt_rw_io() local
36 enum io_uring_op op = ublk_to_uring_op(iod, zc | auto_zc); in loop_queue_tgt_rw_io()
38 void *addr = (zc | auto_zc) ? NULL : (void *)iod->addr; in loop_queue_tgt_rw_io()
40 if (!zc || auto_zc) { in loop_queue_tgt_rw_io()
H A Dnull.c120 unsigned zc = ublk_queue_use_zc(q); in ublk_null_queue_io() local
125 else if (zc) in ublk_null_queue_io()
/linux/drivers/md/
H A Ddm-zone.c238 struct dm_device_zone_count *zc = data; in dm_device_count_zones_cb() local
241 zc->total_nr_seq_zones++; in dm_device_count_zones_cb()
242 if (zone->start >= zc->start && in dm_device_count_zones_cb()
243 zone->start < zc->start + zc->len) in dm_device_count_zones_cb()
244 zc->target_nr_seq_zones++; in dm_device_count_zones_cb()
251 struct dm_device_zone_count *zc) in dm_device_count_zones() argument
256 dm_device_count_zones_cb, zc); in dm_device_count_zones()
278 struct dm_device_zone_count zc = { in device_get_zone_resource_limits() local
290 ret = dm_device_count_zones(dev, &zc); in device_get_zone_resource_limits()
300 if (!zc.target_nr_seq_zones) in device_get_zone_resource_limits()
[all …]
/linux/arch/mips/math-emu/
H A Dsp_maddf.c49 if (zc == IEEE754_CLASS_SNAN) in _sp_maddf()
55 if (zc == IEEE754_CLASS_QNAN) in _sp_maddf()
62 if (zc == IEEE754_CLASS_DNORM) in _sp_maddf()
82 if ((zc == IEEE754_CLASS_INF) && (zs != rs)) { in _sp_maddf()
102 if (zc == IEEE754_CLASS_INF) in _sp_maddf()
104 if (zc == IEEE754_CLASS_ZERO) { in _sp_maddf()
124 if (zc == IEEE754_CLASS_INF) in _sp_maddf()
130 if (zc == IEEE754_CLASS_INF) in _sp_maddf()
136 if (zc == IEEE754_CLASS_INF) in _sp_maddf()
171 if (zc == IEEE754_CLASS_ZERO) { in _sp_maddf()
H A Dieee754int.h52 unsigned int zm; int ze; int zs; int zc
80 #define EXPLODEZSP EXPLODESP(z, zc, zs, ze, zm)
90 u64 zm; int ze; int zs; int zc
118 #define EXPLODEZDP EXPLODEDP(z, zc, zs, ze, zm)
144 #define FLUSHZDP FLUSHDP(z, zc, zs, ze, zm)
147 #define FLUSHZSP FLUSHSP(z, zc, zs, ze, zm)
H A Ddp_maddf.c81 if (zc == IEEE754_CLASS_SNAN) in _dp_maddf()
87 if (zc == IEEE754_CLASS_QNAN) in _dp_maddf()
94 if (zc == IEEE754_CLASS_DNORM) in _dp_maddf()
113 if ((zc == IEEE754_CLASS_INF) && (zs != rs)) { in _dp_maddf()
133 if (zc == IEEE754_CLASS_INF) in _dp_maddf()
135 if (zc == IEEE754_CLASS_ZERO) { in _dp_maddf()
155 if (zc == IEEE754_CLASS_INF) in _dp_maddf()
161 if (zc == IEEE754_CLASS_INF) in _dp_maddf()
167 if (zc == IEEE754_CLASS_INF) in _dp_maddf()
227 if (zc == IEEE754_CLASS_ZERO) { in _dp_maddf()
/linux/lib/zstd/compress/
H A Dzstd_compress.c2026 static size_t ZSTD_resetCCtx_internal(ZSTD_CCtx* zc, in ZSTD_resetCCtx_internal() argument
2033 ZSTD_cwksp* const ws = &zc->workspace; in ZSTD_resetCCtx_internal()
2038 zc->isFirstBlock = 1; in ZSTD_resetCCtx_internal()
2043 zc->appliedParams = *params; in ZSTD_resetCCtx_internal()
2044 params = &zc->appliedParams; in ZSTD_resetCCtx_internal()
2052 ZSTD_ldm_adjustParameters(&zc->appliedParams.ldmParams, &params->cParams); in ZSTD_resetCCtx_internal()
2068 int const indexTooClose = ZSTD_indexTooCloseToMax(zc->blockState.matchState.window); in ZSTD_resetCCtx_internal()
2071 (indexTooClose || dictTooBig || !zc->initialized) ? ZSTDirp_reset : ZSTDirp_continue; in ZSTD_resetCCtx_internal()
2075 … &params->cParams, &params->ldmParams, zc->staticSize != 0, params->useRowMatchFinder, in ZSTD_resetCCtx_internal()
2080 if (!zc->staticSize) ZSTD_cwksp_bump_oversized_duration(ws, 0); in ZSTD_resetCCtx_internal()
[all …]
H A Dzstd_compress_superblock.c666 size_t ZSTD_compressSuperBlock(ZSTD_CCtx* zc, in ZSTD_compressSuperBlock() argument
673 FORWARD_IF_ERROR(ZSTD_buildBlockEntropyStats(&zc->seqStore, in ZSTD_compressSuperBlock()
674 &zc->blockState.prevCBlock->entropy, in ZSTD_compressSuperBlock()
675 &zc->blockState.nextCBlock->entropy, in ZSTD_compressSuperBlock()
676 &zc->appliedParams, in ZSTD_compressSuperBlock()
678 zc->tmpWorkspace, zc->tmpWkspSize /* statically allocated in resetCCtx */), ""); in ZSTD_compressSuperBlock()
680 return ZSTD_compressSubBlock_multi(&zc->seqStore, in ZSTD_compressSuperBlock()
681 zc->blockState.prevCBlock, in ZSTD_compressSuperBlock()
682 zc->blockState.nextCBlock, in ZSTD_compressSuperBlock()
684 &zc->appliedParams, in ZSTD_compressSuperBlock()
[all …]
/linux/io_uring/
H A Dnet.c1243 struct io_recvzc *zc = io_kiocb_to_cmd(req, struct io_recvzc); in io_recv()
1250 zc->ifq = xa_load(&req->ctx->zcrx_ctxs, ifq_idx);
1251 if (!zc->ifq) in io_recvzc_prep()
1254 zc->len = READ_ONCE(sqe->len); in io_recvzc_prep()
1255 zc->flags = READ_ONCE(sqe->ioprio); in io_recvzc_prep()
1256 zc->msg_flags = READ_ONCE(sqe->msg_flags); in io_recvzc_prep()
1257 if (zc->msg_flags) in io_recvzc_prep()
1259 if (zc->flags & ~(IORING_RECVSEND_POLL_FIRST | IORING_RECV_MULTISHOT)) in io_recvzc_prep()
1262 if (!(zc->flags & IORING_RECV_MULTISHOT)) in io_recvzc_prep()
1272 struct io_recvzc *zc in io_recvzc_prep()
1253 struct io_recvzc *zc = io_kiocb_to_cmd(req, struct io_recvzc); io_recvzc_prep() local
1282 struct io_recvzc *zc = io_kiocb_to_cmd(req, struct io_recvzc); io_recvzc() local
1318 struct io_sr_msg *zc = io_kiocb_to_cmd(req, struct io_sr_msg); io_send_zc_cleanup() local
1335 struct io_sr_msg *zc = io_kiocb_to_cmd(req, struct io_sr_msg); io_send_zc_prep() local
1466 struct io_sr_msg *zc = io_kiocb_to_cmd(req, struct io_sr_msg); io_send_zc() local
[all...]
/linux/tools/testing/selftests/net/
H A Dtcp_mmap.c173 struct tcp_zerocopy_receive zc; in child_thread() local
219 socklen_t zc_len = sizeof(zc); in child_thread()
222 memset(&zc, 0, sizeof(zc)); in child_thread()
223 zc.address = (__u64)((unsigned long)addr); in child_thread()
224 zc.length = min(chunk_size, FILE_SZ - total); in child_thread()
227 &zc, &zc_len); in child_thread()
231 if (zc.length) { in child_thread()
232 assert(zc.length <= chunk_size); in child_thread()
234 EVP_DigestUpdate(ctx, addr, zc.length); in child_thread()
235 total_mmap += zc.length; in child_thread()
[all …]
/linux/net/ipv4/
H A Dtcp.c989 /* skb changing from pure zc to mixed, must charge zc */
1089 int zc = 0; in tcp_sendmsg_locked() local
1106 zc = MSG_ZEROCOPY; in tcp_sendmsg_locked()
1116 zc = MSG_ZEROCOPY; in tcp_sendmsg_locked()
1131 zc = MSG_SPLICE_PAGES; in tcp_sendmsg_locked()
1243 if (zc == 0) { in tcp_sendmsg_locked()
1288 } else if (zc == MSG_ZEROCOPY) { in tcp_sendmsg_locked()
1310 } else if (zc == MSG_SPLICE_PAGES) { in tcp_sendmsg_locked()
1910 struct tcp_zerocopy_receive *zc, in tcp_zerocopy_set_hint_for_skb() argument
1918 zc->recv_skip_hint = skb->len - offset; in tcp_zerocopy_set_hint_for_skb()
[all …]
/linux/arch/loongarch/include/asm/
H A Dfutex.h25 "=ZC" (*uaddr) \
26 : "0" (0), "ZC" (*uaddr), "Jr" (oparg) \
85 : "+r" (ret), "=&r" (val), "=ZC" (*uaddr) in futex_atomic_cmpxchg_inatomic()
86 : "ZC" (*uaddr), "Jr" (oldval), "Jr" (newval) in futex_atomic_cmpxchg_inatomic()
H A Dcmpxchg.h57 : "=&r" (old32), "=&r" (temp), "=ZC" (*ptr32) in __xchg_small()
58 : "ZC" (*ptr32), "Jr" (mask), "Jr" (val << shift) in __xchg_small()
155 : "=&r" (old32), "=&r" (temp), "=ZC" (*ptr32) in __cmpxchg_small()
156 : "ZC" (*ptr32), "Jr" (mask), "Jr" (old), "Jr" (new) in __cmpxchg_small()
H A Datomic.h169 : "=&r" (result), "=&r" (temp), "+ZC" (v->counter) in arch_atomic_sub_if_positive()
181 : "=&r" (result), "=&r" (temp), "+ZC" (v->counter) in arch_atomic_sub_if_positive()
328 : "=&r" (result), "=&r" (temp), "+ZC" (v->counter) in arch_atomic64_sub_if_positive()
340 : "=&r" (result), "=&r" (temp), "+ZC" (v->counter) in arch_atomic64_sub_if_positive()
/linux/sound/soc/codecs/
H A Dwm8523.h104 #define WM8523_ZC 0x0010 /* ZC */
105 #define WM8523_ZC_MASK 0x0010 /* ZC */
106 #define WM8523_ZC_SHIFT 4 /* ZC */
107 #define WM8523_ZC_WIDTH 1 /* ZC */
H A Dwm9090.c171 SOC_SINGLE("IN1A ZC Switch", WM9090_IN1_LINE_INPUT_A_VOLUME, 6, 1, 0),
176 SOC_SINGLE("IN2A ZC Switch", WM9090_IN2_LINE_INPUT_A_VOLUME, 6, 1, 0),
200 SOC_DOUBLE_R("Headphone ZC Switch", WM9090_LEFT_OUTPUT_VOLUME,
206 SOC_SINGLE("Speaker ZC Switch", WM9090_SPEAKER_VOLUME_LEFT, 7, 1, 0),
214 SOC_SINGLE("IN1B ZC Switch", WM9090_IN1_LINE_INPUT_B_VOLUME, 6, 1, 0),
228 SOC_SINGLE("IN2B ZC Switch", WM9090_IN2_LINE_INPUT_B_VOLUME, 6, 1, 0),
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsockopt_sk.c22 struct tcp_zerocopy_receive zc; in getsetsockopt() member
168 optlen = sizeof(buf.zc); in getsetsockopt()
177 buf.zc.address = 12345; /* Not page aligned. Rejected by tcp_zerocopy_receive() */ in getsetsockopt()
178 optlen = sizeof(buf.zc); in getsetsockopt()
/linux/net/tls/
H A Dtls_sw.c53 bool zc;
167 char content_type = darg->zc ? darg->tail : 0; in tls_padding_length()
1493 * zc | Zero-copy decrypt allowed | Zero-copy performed
1497 * If ZC decryption was performed darg.skb will point to the input skb.
1501 * or in skb buffers itself. The input parameter 'darg->zc' indicates if
1505 * zero-copy gets disabled and 'darg->zc' is updated.
1533 if (darg->zc && (out_iov || out_sg)) { in tls_decrypt_sg()
1542 darg->zc = false; in tls_decrypt_sg()
1698 /* If opportunistic TLS 1.3 ZC failed retry without ZC */ in tls_decrypt_sw()
1699 if (unlikely(darg->zc && prot->version == TLS_1_3_VERSION && in tls_decrypt_sw()
[all …]
/linux/Documentation/arch/riscv/
H A Dhwprobe.rst220 * :c:macro:`RISCV_HWPROBE_EXT_ZCA`: The Zca extension part of Zc* standard
225 * :c:macro:`RISCV_HWPROBE_EXT_ZCB`: The Zcb extension part of Zc* standard
230 * :c:macro:`RISCV_HWPROBE_EXT_ZCD`: The Zcd extension part of Zc* standard
235 * :c:macro:`RISCV_HWPROBE_EXT_ZCF`: The Zcf extension part of Zc* standard
/linux/include/net/
H A Dxdp_sock.h34 bool zc; member
57 bool zc; member

1234