/openbmc/linux/drivers/s390/crypto/ |
H A D | zcrypt_card.c | 76 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 D | zcrypt_cex4.c | 468 struct zcrypt_card *zc; in zcrypt_cex4_card_probe() local 471 zc = zcrypt_card_alloc(); in zcrypt_cex4_card_probe() 472 if (!zc) in zcrypt_cex4_card_probe() 474 zc->card = ac; in zcrypt_cex4_card_probe() 508 zc->max_exp_bit_length = in zcrypt_cex4_card_probe() 512 zc->max_exp_bit_length = in zcrypt_cex4_card_probe() 587 zcrypt_card_free(zc); in zcrypt_cex4_card_probe() 590 zc->online = 1; in zcrypt_cex4_card_probe() 594 zcrypt_card_free(zc); in zcrypt_cex4_card_probe() 603 zcrypt_card_free(zc); in zcrypt_cex4_card_probe() [all …]
|
H A D | zcrypt_api.c | 677 if (!zc->online || !zc->card->config || zc->card->chkstop || in zcrypt_rsa_modexpo() 711 pref_zc = zc; in zcrypt_rsa_modexpo() 782 if (!zc->online || !zc->card->config || zc->card->chkstop || in zcrypt_rsa_crt() 816 pref_zc = zc; in zcrypt_rsa_crt() 897 if (!zc->online || !zc->card->config || zc->card->chkstop || in _zcrypt_send_cprb() 936 pref_zc = zc; in _zcrypt_send_cprb() 1068 if (!zc->online || !zc->card->config || zc->card->chkstop || in _zcrypt_send_ep11_cprb() 1108 pref_zc = zc; in _zcrypt_send_ep11_cprb() 1181 if (!zc->online || !zc->card->config || zc->card->chkstop || in zcrypt_rng() 1195 pref_zc = zc; in zcrypt_rng() [all …]
|
H A D | zcrypt_queue.c | 56 struct zcrypt_card *zc = zq->zcard; in online_store() local 64 if (online && !zc->online) in online_store() 168 struct zcrypt_card *zc; in zcrypt_queue_register() local 172 zc = dev_get_drvdata(&zq->queue->card->ap_dev.device); in zcrypt_queue_register() 173 zcrypt_card_get(zc); in zcrypt_queue_register() 174 zq->zcard = zc; in zcrypt_queue_register() 181 list_add_tail(&zq->list, &zc->zqueues); in zcrypt_queue_register() 203 zcrypt_card_put(zc); in zcrypt_queue_register() 216 struct zcrypt_card *zc; in zcrypt_queue_unregister() local 222 zc = zq->zcard; in zcrypt_queue_unregister() [all …]
|
/openbmc/linux/drivers/hid/ |
H A D | hid-zydacron.c | 50 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 …]
|
/openbmc/linux/arch/mips/math-emu/ |
H A D | sp_maddf.c | 49 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 D | dp_maddf.c | 81 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 D | ieee754int.h | 52 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)
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | tcp_mmap.c | 173 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 …]
|
/openbmc/linux/io_uring/ |
H A D | net.c | 332 ret = move_addr_to_kernel(zc->addr, zc->addr_len, &io->addr); in io_send_prep_async() 1026 if (zc->notif) { in io_send_zc_cleanup() 1028 zc->notif = NULL; in io_send_zc_cleanup() 1093 zc->done_io = 0; in io_send_zc_prep() 1180 if (zc->addr) { in io_send_zc() 1186 ret = move_addr_to_kernel(zc->addr, zc->addr_len, &__address); in io_send_zc() 1200 (u64)(uintptr_t)zc->buf, zc->len); in io_send_zc() 1206 ret = import_ubuf(ITER_SOURCE, zc->buf, zc->len, &msg.msg_iter); in io_send_zc() 1209 ret = io_notif_account_mem(zc->notif, zc->len); in io_send_zc() 1231 zc->len -= ret; in io_send_zc() [all …]
|
/openbmc/linux/lib/zstd/compress/ |
H A D | zstd_compress.c | 1760 zc->isFirstBlock = 1; in ZSTD_resetCCtx_internal() 1852 zc->dictID = 0; in ZSTD_resetCCtx_internal() 1913 zc->initialized = 1; in ZSTD_resetCCtx_internal() 2764 if (zc->externSeqStore.pos < zc->externSeqStore.size) { in ZSTD_buildSeqStore() 2773 assert(zc->externSeqStore.pos <= zc->externSeqStore.size); in ZSTD_buildSeqStore() 2813 ZSTD_Sequence* outSeqs = &zc->seqCollector.seqStart[zc->seqCollector.seqIndex]; in ZSTD_copyBlockSequences() 2817 assert(zc->seqCollector.seqIndex + 1 < zc->seqCollector.maxSequences); in ZSTD_copyBlockSequences() 3432 zc->bmi2); in ZSTD_compressSeqStore_singleBlock() 3541 ZSTD_deriveBlockSplitsHelper(&splits, 0, nbSeq, zc, &zc->seqStore); in ZSTD_deriveBlockSplits() 3663 nbSeq = (U32)(zc->seqStore.sequences - zc->seqStore.sequencesStart); in ZSTD_compressBlock_splitBlock() [all …]
|
H A D | zstd_compress_superblock.c | 551 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() 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() 571 zc->bmi2, lastBlock, in ZSTD_compressSuperBlock() [all …]
|
H A D | zstd_compress_superblock.h | 27 size_t ZSTD_compressSuperBlock(ZSTD_CCtx* zc,
|
/openbmc/linux/net/ipv4/ |
H A D | tcp.c | 1047 int zc = 0; in tcp_sendmsg_locked() local 1179 if (zc == 0) { in tcp_sendmsg_locked() 1869 zc->length = 0; in receive_fallback_to_copy() 1944 zc->copybuf_len = tcp_copy_straggler_data(zc, skb, copylen, &offset, in tcp_zc_handle_leftover() 2044 zc->msg_flags = 0; in tcp_zc_finalize_rx_tstamp() 2102 zc->msg_flags = 0; in tcp_zerocopy_receive() 2116 zc->length = 0; in tcp_zerocopy_receive() 2187 &seq, zc, in tcp_zerocopy_receive() 4238 len = sizeof(zc); in do_tcp_getsockopt() 4244 if (zc.reserved) in do_tcp_getsockopt() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | sockopt_sk.c | 22 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()
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_xsk.h | 30 int ice_realloc_zc_buf(struct ice_vsi *vsi, bool zc); 76 bool __always_unused zc) in ice_realloc_zc_buf() argument
|
/openbmc/linux/include/net/ |
H A D | xdp_sock.h | 33 bool zc; member 56 bool zc; member
|
/openbmc/qemu/tests/tcg/cris/bare/ |
H A D | check_movemrv32.s | 54 clearf zc 68 setf zc
|
H A D | check_bcc.s | 67 setf zc 74 setf zc
|
/openbmc/u-boot/fs/zfs/ |
H A D | zfs.c | 278 zec->zec_cksum = zc; in zio_checksum_verify() 281 zc = expected_cksum; in zio_checksum_verify() 286 if ((actual_cksum.zc_word[0] != zc.zc_word[0]) in zio_checksum_verify() 287 || (actual_cksum.zc_word[1] != zc.zc_word[1]) in zio_checksum_verify() 288 || (actual_cksum.zc_word[2] != zc.zc_word[2]) in zio_checksum_verify() 349 zio_cksum_t zc; in uberblock_verify() local 372 memset(&zc, 0, sizeof(zc)); in uberblock_verify() 373 zc.zc_word[0] = cpu_to_zfs64(offset, endian); in uberblock_verify() 458 zio_cksum_t zc; in zio_read_gang() local 460 memset(&zc, 0, sizeof(zc)); in zio_read_gang() [all …]
|
/openbmc/linux/Documentation/netlink/specs/ |
H A D | netdev.yaml | 66 name: xdp-zc-max-segs 86 - xdp-zc-max-segs
|
/openbmc/linux/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_xsk.h | 39 int i40e_realloc_rx_bi_zc(struct i40e_vsi *vsi, bool zc);
|
/openbmc/linux/net/xdp/ |
H A D | xsk.c | 850 if (xs->zc) in __xsk_sendmsg() 855 if (xs->zc && xsk_no_wakeup(sk)) in __xsk_sendmsg() 860 if (xs->zc) in __xsk_sendmsg() 899 if (xs->pool->cached_need_wakeup & XDP_WAKEUP_RX && xs->zc) in __xsk_recvmsg() 932 if (xs->zc) in xsk_poll() 1234 xs->zc = xs->umem->zc; in xsk_bind() 1491 if (xs->zc) in xsk_getsockopt()
|
H A D | xsk_buff_pool.c | 133 if (pool->umem->zc) { in xp_disable_drv_zc() 213 pool->umem->zc = true; in xp_assign_dev() 238 flags = umem->zc ? XDP_ZEROCOPY : XDP_COPY; in xp_assign_dev_shared()
|
/openbmc/linux/net/tls/ |
H A D | tls_sw.c | 53 bool zc; 167 char content_type = darg->zc ? darg->tail : 0; in tls_padding_length() 1487 if (darg->zc && (out_iov || out_sg)) { in tls_decrypt_sg() 1496 darg->zc = false; in tls_decrypt_sg() 1653 darg->zc = false; in tls_decrypt_sw() 1696 darg->zc &= !(prot->version == TLS_1_3_VERSION && in tls_decrypt_device() 1702 if (!darg->zc) { in tls_decrypt_device() 1747 struct tls_decrypt_arg darg = { .zc = true, }; in decrypt_skb() 2033 darg.zc = true; in tls_sw_recvmsg() 2058 DEBUG_NET_WARN_ON_ONCE(darg.zc); in tls_sw_recvmsg() [all …]
|