Home
last modified time | relevance | path

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

123456

/linux-6.15/drivers/s390/crypto/
Dzcrypt_card.c42 struct zcrypt_card *zc = dev_get_drvdata(dev); in type_show() local
44 return sysfs_emit(buf, "%s\n", zc->type_string); in type_show()
53 struct zcrypt_card *zc = dev_get_drvdata(dev); in online_show() local
55 int online = ac->config && !ac->chkstop && zc->online ? 1 : 0; in online_show()
64 struct zcrypt_card *zc = dev_get_drvdata(dev); in online_store() local
76 zc->online = online; in online_store()
77 id = zc->card->id; in online_store()
90 list_for_each_entry(zq, &zc->zqueues, list) in online_store()
94 list_for_each_entry(zq, &zc->zqueues, list) in online_store()
119 struct zcrypt_card *zc = dev_get_drvdata(dev); in load_show() local
[all …]
Dzcrypt_cex4.c82 struct zcrypt_card *zc = dev_get_drvdata(dev); in cca_serialnr_show() local
89 cca_get_info(ac->id, ap_domain_index, &ci, zc->online); in cca_serialnr_show()
213 struct zcrypt_card *zc = dev_get_drvdata(dev); in ep11_api_ordinalnr_show() local
219 ep11_get_card_info(ac->id, &ci, zc->online); in ep11_api_ordinalnr_show()
234 struct zcrypt_card *zc = dev_get_drvdata(dev); in ep11_fw_version_show() local
240 ep11_get_card_info(ac->id, &ci, zc->online); in ep11_fw_version_show()
257 struct zcrypt_card *zc = dev_get_drvdata(dev); in ep11_serialnr_show() local
263 ep11_get_card_info(ac->id, &ci, zc->online); in ep11_serialnr_show()
294 struct zcrypt_card *zc = dev_get_drvdata(dev); in ep11_card_op_modes_show() local
301 ep11_get_card_info(ac->id, &ci, zc->online); in ep11_card_op_modes_show()
[all …]
Dzcrypt_api.c573 static inline struct zcrypt_queue *zcrypt_pick_queue(struct zcrypt_card *zc, in zcrypt_pick_queue() argument
580 zcrypt_card_get(zc); in zcrypt_pick_queue()
583 atomic_add(weight, &zc->load); in zcrypt_pick_queue()
590 static inline void zcrypt_drop_queue(struct zcrypt_card *zc, in zcrypt_drop_queue() argument
596 atomic_sub(weight, &zc->load); in zcrypt_drop_queue()
600 zcrypt_card_put(zc); in zcrypt_drop_queue()
604 static inline bool zcrypt_card_compare(struct zcrypt_card *zc, in zcrypt_card_compare() argument
611 weight += atomic_read(&zc->load); in zcrypt_card_compare()
614 return atomic64_read(&zc->card->total_request_count) < in zcrypt_card_compare()
641 struct zcrypt_card *zc, *pref_zc; in zcrypt_rsa_modexpo() local
[all …]
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/
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-6.15/drivers/md/
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/tools/testing/selftests/ublk/
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()
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()
[all …]
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()
/linux-6.15/arch/mips/math-emu/
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()
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)
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-6.15/io_uring/
Dnet.c1197 struct io_recvzc *zc = io_kiocb_to_cmd(req, struct io_recvzc); in io_recvzc_prep() local
1207 zc->ifq = req->ctx->ifq; in io_recvzc_prep()
1208 if (!zc->ifq) in io_recvzc_prep()
1210 zc->len = READ_ONCE(sqe->len); in io_recvzc_prep()
1211 zc->flags = READ_ONCE(sqe->ioprio); in io_recvzc_prep()
1212 zc->msg_flags = READ_ONCE(sqe->msg_flags); in io_recvzc_prep()
1213 if (zc->msg_flags) in io_recvzc_prep()
1215 if (zc->flags & ~(IORING_RECVSEND_POLL_FIRST | IORING_RECV_MULTISHOT)) in io_recvzc_prep()
1218 if (!(zc->flags & IORING_RECV_MULTISHOT)) in io_recvzc_prep()
1228 struct io_recvzc *zc = io_kiocb_to_cmd(req, struct io_recvzc); in io_recvzc() local
[all …]
/linux-6.15/lib/zstd/compress/
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 …]
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-6.15/tools/testing/selftests/net/
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-6.15/net/ipv4/
Dtcp.c971 /* skb changing from pure zc to mixed, must charge zc */
1069 int zc = 0; in tcp_sendmsg_locked() local
1078 zc = MSG_ZEROCOPY; in tcp_sendmsg_locked()
1087 zc = MSG_ZEROCOPY; in tcp_sendmsg_locked()
1093 zc = MSG_SPLICE_PAGES; in tcp_sendmsg_locked()
1201 if (zc == 0) { in tcp_sendmsg_locked()
1246 } else if (zc == MSG_ZEROCOPY) { in tcp_sendmsg_locked()
1267 } else if (zc == MSG_SPLICE_PAGES) { in tcp_sendmsg_locked()
1860 struct tcp_zerocopy_receive *zc, in tcp_zerocopy_set_hint_for_skb() argument
1868 zc->recv_skip_hint = skb->len - offset; in tcp_zerocopy_set_hint_for_skb()
[all …]
/linux-6.15/arch/loongarch/include/asm/
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()
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()
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-6.15/Documentation/networking/
Diou-zcrx.rst10 io_uring zero copy Rx (ZC Rx) is a feature that removes kernel-to-user copy on
20 Several NIC HW features are required for io_uring ZC Rx to work. For now the
36 configured for io_uring ZC Rx.
42 copy flows away from queues that are configured for io_uring ZC Rx.
108 Register ZC Rx
/linux-6.15/sound/soc/codecs/
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 */
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-6.15/tools/testing/selftests/bpf/prog_tests/
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/
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/Documentation/devicetree/bindings/riscv/
Dextensions.yaml303 The Zca extension part of Zc* standard extensions for code size
307 of zc.adoc to src tree.").
311 The Zcb extension part of Zc* standard extensions for code size
315 of zc.adoc to src tree.").
319 The Zcd extension part of Zc* standard extensions for code size
323 of zc.adoc to src tree.").
327 The Zcf extension part of Zc* standard extensions for code size
331 of zc.adoc to src tree.").

123456