Home
last modified time | relevance | path

Searched refs:zc (Results 1 – 25 of 41) sorted by relevance

12

/linux-6.15/drivers/s390/crypto/
H A Dzcrypt_card.c76 zc->online = online; in online_store()
77 id = zc->card->id; in online_store()
139 struct zcrypt_card *zc; in zcrypt_card_alloc() local
141 zc = kzalloc(sizeof(*zc), GFP_KERNEL); in zcrypt_card_alloc()
142 if (!zc) in zcrypt_card_alloc()
146 kref_init(&zc->refcount); in zcrypt_card_alloc()
147 return zc; in zcrypt_card_alloc()
153 kfree(zc); in zcrypt_card_free()
166 kref_get(&zc->refcount); in zcrypt_card_get()
190 zc->online = 1; in zcrypt_card_register()
[all …]
H A Dzcrypt_cex4.c472 struct zcrypt_card *zc; in zcrypt_cex4_card_probe() local
475 zc = zcrypt_card_alloc(); in zcrypt_cex4_card_probe()
476 if (!zc) in zcrypt_cex4_card_probe()
478 zc->card = ac; in zcrypt_cex4_card_probe()
511 zc->max_exp_bit_length = in zcrypt_cex4_card_probe()
515 zc->max_exp_bit_length = in zcrypt_cex4_card_probe()
590 zcrypt_card_free(zc); in zcrypt_cex4_card_probe()
593 zc->online = 1; in zcrypt_cex4_card_probe()
597 zcrypt_card_free(zc); in zcrypt_cex4_card_probe()
606 zcrypt_card_free(zc); in zcrypt_cex4_card_probe()
[all …]
H A Dzcrypt_api.c675 if (!zc->online || !zc->card->config || zc->card->chkstop || in zcrypt_rsa_modexpo()
676 !(zc->card->hwinfo.accel || zc->card->hwinfo.cca)) in zcrypt_rsa_modexpo()
709 pref_zc = zc; in zcrypt_rsa_modexpo()
779 if (!zc->online || !zc->card->config || zc->card->chkstop || in zcrypt_rsa_crt()
780 !(zc->card->hwinfo.accel || zc->card->hwinfo.cca)) in zcrypt_rsa_crt()
813 pref_zc = zc; in zcrypt_rsa_crt()
895 if (!zc->online || !zc->card->config || zc->card->chkstop || in _zcrypt_send_cprb()
934 pref_zc = zc; in _zcrypt_send_cprb()
1091 if (!zc->online || !zc->card->config || zc->card->chkstop || in _zcrypt_send_ep11_cprb()
1225 if (!zc->online || !zc->card->config || zc->card->chkstop || in zcrypt_rng()
[all …]
H A Dzcrypt_queue.c56 struct zcrypt_card *zc = zq->zcard; in online_store() local
65 if (online && !zc->online) in online_store()
169 struct zcrypt_card *zc; in zcrypt_queue_register() local
173 zc = dev_get_drvdata(&zq->queue->card->ap_dev.device); in zcrypt_queue_register()
174 zcrypt_card_get(zc); in zcrypt_queue_register()
175 zq->zcard = zc; in zcrypt_queue_register()
182 list_add_tail(&zq->list, &zc->zqueues); in zcrypt_queue_register()
204 zcrypt_card_put(zc); in zcrypt_queue_register()
217 struct zcrypt_card *zc; in zcrypt_queue_unregister() local
223 zc = zq->zcard; in zcrypt_queue_unregister()
[all …]
/linux-6.15/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()
124 zc->last_key[index] = 0; in zc_raw_event()
153 zc->last_key[index] = key; in zc_raw_event()
167 struct zc_device *zc; in zc_probe() local
169 zc = devm_kzalloc(&hdev->dev, sizeof(*zc), GFP_KERNEL); in zc_probe()
170 if (zc == NULL) { in zc_probe()
[all …]
/linux-6.15/drivers/md/
H A Ddm-zone.c228 struct dm_device_zone_count *zc = data; in dm_device_count_zones_cb() local
231 zc->total_nr_seq_zones++; in dm_device_count_zones_cb()
232 if (zone->start >= zc->start && in dm_device_count_zones_cb()
233 zone->start < zc->start + zc->len) in dm_device_count_zones_cb()
234 zc->target_nr_seq_zones++; in dm_device_count_zones_cb()
241 struct dm_device_zone_count *zc) in dm_device_count_zones() argument
246 dm_device_count_zones_cb, zc); in dm_device_count_zones()
268 struct dm_device_zone_count zc = { in device_get_zone_resource_limits() local
280 ret = dm_device_count_zones(dev, &zc); in device_get_zone_resource_limits()
290 if (!zc.target_nr_seq_zones) in device_get_zone_resource_limits()
[all …]
/linux-6.15/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 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()
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)
/linux-6.15/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()
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()
237 hash_zone(addr, zc.length); in child_thread()
242 total += zc.length; in child_thread()
[all …]
/linux-6.15/lib/zstd/compress/
H A Dzstd_compress.c2131 zc->dictID = 0; in ZSTD_resetCCtx_internal()
3221 if (zc->externSeqStore.pos < zc->externSeqStore.size) { in ZSTD_buildSeqStore()
3239 assert(zc->externSeqStore.pos <= zc->externSeqStore.size); in ZSTD_buildSeqStore()
3339 ZSTD_validateSeqStore(&zc->seqStore, &zc->appliedParams.cParams); in ZSTD_buildSeqStore()
3871 zc->tmpWorkspace, zc->tmpWkspSize), ""); in ZSTD_buildEntropyStatisticsAndEstimateSubBlockSize()
3878 zc->tmpWorkspace, zc->tmpWkspSize, in ZSTD_buildEntropyStatisticsAndEstimateSubBlockSize()
4163 ZSTD_deriveBlockSplitsHelper(&splits, 0, nbSeq, zc, &zc->seqStore); in ZSTD_deriveBlockSplits()
4216 ZSTD_compressSeqStore_singleBlock(zc, &zc->seqStore, in ZSTD_compressBlock_splitBlock_internal()
4288 nbSeq = (U32)(zc->seqStore.sequences - zc->seqStore.sequencesStart); in ZSTD_compressBlock_splitBlock()
4335 zc->bmi2); in ZSTD_compressBlock_internal()
[all …]
H A Dzstd_compress_superblock.c666 size_t ZSTD_compressSuperBlock(ZSTD_CCtx* zc, in ZSTD_compressSuperBlock() argument
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()
687 zc->bmi2, lastBlock, in ZSTD_compressSuperBlock()
[all …]
H A Dzstd_compress_superblock.h28 size_t ZSTD_compressSuperBlock(ZSTD_CCtx* zc,
/linux-6.15/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()
129 int zc = !!(ublk_queue_use_zc(q) != 0); in stripe_queue_tgt_rw_io() local
130 enum io_uring_op op = stripe_to_uring_op(iod, zc); in stripe_queue_tgt_rw_io()
134 int i, extra = zc ? 2 : 0; in stripe_queue_tgt_rw_io()
141 if (zc) { in stripe_queue_tgt_rw_io()
148 for (i = zc; i < s->nr + extra - zc; i++) { in stripe_queue_tgt_rw_io()
149 struct stripe *t = &s->s[i - zc]; in stripe_queue_tgt_rw_io()
156 if (zc) { in stripe_queue_tgt_rw_io()
166 if (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()
32 int zc = ublk_queue_use_zc(q); in loop_queue_tgt_rw_io() local
33 enum io_uring_op op = ublk_to_uring_op(iod, zc); in loop_queue_tgt_rw_io()
36 if (!zc) { in loop_queue_tgt_rw_io()
H A Dnull.c97 int zc = ublk_queue_use_zc(q); in ublk_null_queue_io() local
100 if (!zc) { in ublk_null_queue_io()
/linux-6.15/io_uring/
H A Dnet.c1208 if (!zc->ifq) in io_recvzc_prep()
1213 if (zc->msg_flags) in io_recvzc_prep()
1241 len = zc->len; in io_recvzc()
1242 ret = io_zcrx_recv(req, zc->ifq, sock, zc->msg_flags | MSG_DONTWAIT, in io_recvzc()
1269 if (zc->notif) { in io_send_zc_cleanup()
1271 zc->notif = NULL; in io_send_zc_cleanup()
1286 zc->done_io = 0; in io_send_zc_prep()
1287 zc->retry = false; in io_send_zc_prep()
1453 zc->len -= ret; in io_send_zc()
1454 zc->buf += ret; in io_send_zc()
[all …]
/linux-6.15/net/ipv4/
H A Dtcp.c1069 int zc = 0; in tcp_sendmsg_locked() local
1201 if (zc == 0) { in tcp_sendmsg_locked()
1907 zc->length = 0; in receive_fallback_to_copy()
1981 zc->copybuf_len = tcp_copy_straggler_data(zc, skb, copylen, &offset, in tcp_zc_handle_leftover()
2081 zc->msg_flags = 0; in tcp_zc_finalize_rx_tstamp()
2139 zc->msg_flags = 0; in tcp_zerocopy_receive()
2153 zc->length = 0; in tcp_zerocopy_receive()
2230 &seq, zc, in tcp_zerocopy_receive()
4619 len = sizeof(zc); in do_tcp_getsockopt()
4625 if (zc.reserved) in do_tcp_getsockopt()
[all …]
/linux-6.15/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-6.15/drivers/net/ethernet/intel/ice/
H A Dice_xsk.h25 int ice_realloc_zc_buf(struct ice_vsi *vsi, bool zc);
74 bool __always_unused zc) in ice_realloc_zc_buf() argument
/linux-6.15/include/net/
H A Dxdp_sock.h34 bool zc; member
57 bool zc; member
/linux-6.15/drivers/net/ethernet/intel/i40e/
H A Di40e_xsk.h31 int i40e_realloc_rx_bi_zc(struct i40e_vsi *vsi, bool zc);
/linux-6.15/net/tls/
H A Dtls_sw.c53 bool zc;
167 char content_type = darg->zc ? darg->tail : 0; in tls_padding_length()
1491 if (darg->zc && (out_iov || out_sg)) { in tls_decrypt_sg()
1500 darg->zc = false; in tls_decrypt_sg()
1657 darg->zc = false; in tls_decrypt_sw()
1700 darg->zc &= !(prot->version == TLS_1_3_VERSION && in tls_decrypt_device()
1706 if (!darg->zc) { in tls_decrypt_device()
1781 struct tls_decrypt_arg darg = { .zc = true, }; in decrypt_skb()
2067 darg.zc = true; in tls_sw_recvmsg()
2092 DEBUG_NET_WARN_ON_ONCE(darg.zc); in tls_sw_recvmsg()
[all …]
/linux-6.15/net/xdp/
H A Dxsk.c921 if (xs->zc && xsk_no_wakeup(sk)) in __xsk_sendmsg()
926 if (xs->zc) in __xsk_sendmsg()
965 if (xs->pool->cached_need_wakeup & XDP_WAKEUP_RX && xs->zc) in __xsk_recvmsg()
998 if (xs->zc) in xsk_poll()
1302 xs->zc = xs->umem->zc; in xsk_bind()
1579 if (xs->zc) in xsk_getsockopt()
/linux-6.15/Documentation/devicetree/bindings/sound/
H A Dcs35l34.txt41 - cirrus,gain-zc-disable: Boolean property. If set, the gain change will take

12