Home
last modified time | relevance | path

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

12345

/linux/drivers/s390/crypto/
H A 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 …]
H A 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 …]
H A 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 …]
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/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/lib/zstd/compress/
H A Dzstd_compress.c1748 static size_t ZSTD_resetCCtx_internal(ZSTD_CCtx* zc, in ZSTD_resetCCtx_internal() argument
1755 ZSTD_cwksp* const ws = &zc->workspace; in ZSTD_resetCCtx_internal()
1760 zc->isFirstBlock = 1; in ZSTD_resetCCtx_internal()
1765 zc->appliedParams = *params; in ZSTD_resetCCtx_internal()
1766 params = &zc->appliedParams; in ZSTD_resetCCtx_internal()
1773 ZSTD_ldm_adjustParameters(&zc->appliedParams.ldmParams, &params->cParams); in ZSTD_resetCCtx_internal()
1790 int const indexTooClose = ZSTD_indexTooCloseToMax(zc->blockState.matchState.window); in ZSTD_resetCCtx_internal()
1793 (indexTooClose || dictTooBig || !zc->initialized) ? ZSTDirp_reset : ZSTDirp_continue; in ZSTD_resetCCtx_internal()
1797 … &params->cParams, &params->ldmParams, zc->staticSize != 0, params->useRowMatchFinder, in ZSTD_resetCCtx_internal()
1803 if (!zc->staticSize) ZSTD_cwksp_bump_oversized_duration(ws, 0); in ZSTD_resetCCtx_internal()
[all …]
H A Dzstd_compress_superblock.c551 size_t ZSTD_compressSuperBlock(ZSTD_CCtx* zc, in ZSTD_compressSuperBlock() argument
557 FORWARD_IF_ERROR(ZSTD_buildBlockEntropyStats(&zc->seqStore, in ZSTD_compressSuperBlock()
558 &zc->blockState.prevCBlock->entropy, in ZSTD_compressSuperBlock()
559 &zc->blockState.nextCBlock->entropy, in ZSTD_compressSuperBlock()
560 &zc->appliedParams, in ZSTD_compressSuperBlock()
562zc->entropyWorkspace, ENTROPY_WORKSPACE_SIZE /* statically allocated in resetCCtx */), ""); in ZSTD_compressSuperBlock()
564 return ZSTD_compressSubBlock_multi(&zc->seqStore, in ZSTD_compressSuperBlock()
565 zc->blockState.prevCBlock, in ZSTD_compressSuperBlock()
566 zc->blockState.nextCBlock, in ZSTD_compressSuperBlock()
568 &zc->appliedParams, in ZSTD_compressSuperBlock()
[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/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.c963 /* skb changing from pure zc to mixed, must charge zc */
1061 int zc = 0; in tcp_sendmsg_locked() local
1070 zc = MSG_ZEROCOPY; in tcp_sendmsg_locked()
1079 zc = MSG_ZEROCOPY; in tcp_sendmsg_locked()
1085 zc = MSG_SPLICE_PAGES; in tcp_sendmsg_locked()
1193 if (zc == 0) { in tcp_sendmsg_locked()
1238 } else if (zc == MSG_ZEROCOPY) { in tcp_sendmsg_locked()
1259 } else if (zc == MSG_SPLICE_PAGES) { in tcp_sendmsg_locked()
1852 struct tcp_zerocopy_receive *zc, in tcp_zerocopy_set_hint_for_skb() argument
1860 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/io_uring/
H A Dnet.c1217 struct io_sr_msg *zc = io_kiocb_to_cmd(req, struct io_sr_msg); in io_send_zc_cleanup() local
1222 if (zc->notif) { in io_send_zc_cleanup()
1223 io_notif_flush(zc->notif); in io_send_zc_cleanup()
1224 zc->notif = NULL; in io_send_zc_cleanup()
1233 struct io_sr_msg *zc = io_kiocb_to_cmd(req, struct io_sr_msg); in io_send_zc_prep() local
1237 zc->done_io = 0; in io_send_zc_prep()
1246 notif = zc->notif = io_alloc_notif(ctx); in io_send_zc_prep()
1254 zc->flags = READ_ONCE(sqe->ioprio); in io_send_zc_prep()
1255 if (unlikely(zc->flags & ~IO_ZC_FLAGS_COMMON)) { in io_send_zc_prep()
1256 if (zc->flags & ~IO_ZC_FLAGS_VALID) in io_send_zc_prep()
[all …]
/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),
H A Dwm8770.c137 SOC_SINGLE("DAC Playback ZC Switch", WM8770_DACCTRL1, 0, 1, 0),
142 SOC_SINGLE("VOUT Playback ZC Switch", WM8770_MSALGVOL, 7, 1, 0),
147 SOC_DOUBLE_R("VOUT1 Playback ZC Switch", WM8770_VOUT1LVOL,
151 SOC_DOUBLE_R("VOUT2 Playback ZC Switch", WM8770_VOUT2LVOL,
155 SOC_DOUBLE_R("VOUT3 Playback ZC Switch", WM8770_VOUT3LVOL,
159 SOC_DOUBLE_R("VOUT4 Playback ZC Switch", WM8770_VOUT4LVOL,
H A Dwm8990.c134 SOC_SINGLE("LOUT ZC", WM8990_LEFT_OUTPUT_VOLUME, WM8990_LOZC_BIT, 1, 0),
139 SOC_SINGLE("ROUT ZC", WM8990_RIGHT_OUTPUT_VOLUME, WM8990_ROZC_BIT, 1, 0),
144 SOC_SINGLE("LOPGA ZC Switch", WM8990_LEFT_OPGA_VOLUME,
150 SOC_SINGLE("ROPGA ZC Switch", WM8990_RIGHT_OPGA_VOLUME,
187 SOC_SINGLE("Speaker ZC Switch", WM8990_CLASSD4,
240 SOC_SINGLE("LIN12 ZC Switch", WM8990_LEFT_LINE_INPUT_1_2_VOLUME,
253 SOC_SINGLE("LIN34 ZC Switch", WM8990_LEFT_LINE_INPUT_3_4_VOLUME,
266 SOC_SINGLE("RIN12 ZC Switch", WM8990_RIGHT_LINE_INPUT_1_2_VOLUME,
279 SOC_SINGLE("RIN34 ZC Switch", WM8990_RIGHT_LINE_INPUT_3_4_VOLUME,
H A Dwm9712.c140 SOC_SINGLE("Speaker Playback ZC Switch", AC97_MASTER, 7, 1, 0),
142 SOC_SINGLE("Headphone Playback ZC Switch", AC97_HEADPHONE, 7, 1, 0),
143 SOC_SINGLE("Mono Playback ZC Switch", AC97_MASTER_MONO, 7, 1, 0),
153 SOC_SINGLE("ALC ZC Timeout", AC97_PCI_SVID, 9, 3, 1),
154 SOC_SINGLE("ALC ZC Switch", AC97_PCI_SVID, 8, 1, 0),
163 SOC_SINGLE("Out3 ZC Switch", AC97_AUX, 7, 1, 1),
195 SOC_SINGLE("Capture ZC Switch", AC97_REC_GAIN, 7, 1, 0),
H A Dwm8400.c170 SOC_SINGLE("LOUT ZC", WM8400_LEFT_OUTPUT_VOLUME, WM8400_LOZC_SHIFT, 1, 0),
175 SOC_SINGLE("ROUT ZC", WM8400_RIGHT_OUTPUT_VOLUME, WM8400_ROZC_SHIFT, 1, 0),
180 SOC_SINGLE("LOPGA ZC Switch", WM8400_LEFT_OPGA_VOLUME,
186 SOC_SINGLE("ROPGA ZC Switch", WM8400_RIGHT_OPGA_VOLUME,
264 SOC_SINGLE("LIN12 ZC Switch", WM8400_LEFT_LINE_INPUT_1_2_VOLUME,
277 SOC_SINGLE("LIN34 ZC Switch", WM8400_LEFT_LINE_INPUT_3_4_VOLUME,
290 SOC_SINGLE("RIN12 ZC Switch", WM8400_RIGHT_LINE_INPUT_1_2_VOLUME,
303 SOC_SINGLE("RIN34 ZC Switch", WM8400_RIGHT_LINE_INPUT_3_4_VOLUME,
/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/drivers/net/ethernet/intel/ice/
H A Dice_xsk.h33 int ice_realloc_zc_buf(struct ice_vsi *vsi, bool zc);
82 bool __always_unused zc) in ice_realloc_zc_buf() argument
/linux/net/tls/
H A Dtls_sw.c53 bool zc;
167 char content_type = darg->zc ? darg->tail : 0; in tls_padding_length()
1451 * zc | Zero-copy decrypt allowed | Zero-copy performed
1455 * If ZC decryption was performed darg.skb will point to the input skb.
1459 * or in skb buffers itself. The input parameter 'darg->zc' indicates if
1463 * zero-copy gets disabled and 'darg->zc' is updated.
1491 if (darg->zc && (out_iov || out_sg)) { in tls_decrypt_sg()
1500 darg->zc = false; in tls_decrypt_sg()
1654 /* If opportunistic TLS 1.3 ZC failed retry without ZC */ in tls_decrypt_sw()
1655 if (unlikely(darg->zc && prot->version == TLS_1_3_VERSION && in tls_decrypt_sw()
[all …]

12345