/Linux-v5.15/drivers/s390/crypto/ |
D | zcrypt_card.c | 42 struct zcrypt_card *zc = dev_get_drvdata(dev); in type_show() local 44 return scnprintf(buf, PAGE_SIZE, "%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 && 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 …]
|
D | zcrypt_cex2a.c | 85 struct zcrypt_card *zc; in zcrypt_cex2a_card_probe() local 88 zc = zcrypt_card_alloc(); in zcrypt_cex2a_card_probe() 89 if (!zc) in zcrypt_cex2a_card_probe() 91 zc->card = ac; in zcrypt_cex2a_card_probe() 92 dev_set_drvdata(&ap_dev->device, zc); in zcrypt_cex2a_card_probe() 95 zc->min_mod_size = CEX2A_MIN_MOD_SIZE; in zcrypt_cex2a_card_probe() 96 zc->max_mod_size = CEX2A_MAX_MOD_SIZE; in zcrypt_cex2a_card_probe() 97 zc->speed_rating = CEX2A_SPEED_IDX; in zcrypt_cex2a_card_probe() 98 zc->max_exp_bit_length = CEX2A_MAX_MOD_SIZE; in zcrypt_cex2a_card_probe() 99 zc->type_string = "CEX2A"; in zcrypt_cex2a_card_probe() [all …]
|
D | zcrypt_cex4.c | 78 struct zcrypt_card *zc = dev_get_drvdata(dev); in cca_serialnr_show() local 85 cca_get_info(ac->id, ap_domain_index, &ci, zc->online); in cca_serialnr_show() 190 struct zcrypt_card *zc = dev_get_drvdata(dev); in ep11_api_ordinalnr_show() local 196 ep11_get_card_info(ac->id, &ci, zc->online); in ep11_api_ordinalnr_show() 211 struct zcrypt_card *zc = dev_get_drvdata(dev); in ep11_fw_version_show() local 217 ep11_get_card_info(ac->id, &ci, zc->online); in ep11_fw_version_show() 234 struct zcrypt_card *zc = dev_get_drvdata(dev); in ep11_serialnr_show() local 240 ep11_get_card_info(ac->id, &ci, zc->online); in ep11_serialnr_show() 267 struct zcrypt_card *zc = dev_get_drvdata(dev); in ep11_card_op_modes_show() local 274 ep11_get_card_info(ac->id, &ci, zc->online); in ep11_card_op_modes_show() [all …]
|
D | zcrypt_cex2c.c | 69 struct zcrypt_card *zc = dev_get_drvdata(dev); in cca_serialnr_show() local 76 cca_get_info(ac->id, ap_domain_index, &ci, zc->online); in cca_serialnr_show() 257 struct zcrypt_card *zc; in zcrypt_cex2c_card_probe() local 260 zc = zcrypt_card_alloc(); in zcrypt_cex2c_card_probe() 261 if (!zc) in zcrypt_cex2c_card_probe() 263 zc->card = ac; in zcrypt_cex2c_card_probe() 264 dev_set_drvdata(&ap_dev->device, zc); in zcrypt_cex2c_card_probe() 267 zc->user_space_type = ZCRYPT_CEX2C; in zcrypt_cex2c_card_probe() 268 zc->type_string = "CEX2C"; in zcrypt_cex2c_card_probe() 269 zc->speed_rating = CEX2C_SPEED_IDX; in zcrypt_cex2c_card_probe() [all …]
|
D | zcrypt_api.c | 570 static inline struct zcrypt_queue *zcrypt_pick_queue(struct zcrypt_card *zc, in zcrypt_pick_queue() argument 579 atomic_add(weight, &zc->load); in zcrypt_pick_queue() 586 static inline void zcrypt_drop_queue(struct zcrypt_card *zc, in zcrypt_drop_queue() argument 592 atomic_sub(weight, &zc->load); in zcrypt_drop_queue() 599 static inline bool zcrypt_card_compare(struct zcrypt_card *zc, in zcrypt_card_compare() argument 606 weight += atomic_read(&zc->load); in zcrypt_card_compare() 609 return atomic64_read(&zc->card->total_request_count) < in zcrypt_card_compare() 636 struct zcrypt_card *zc, *pref_zc; in zcrypt_rsa_modexpo() local 673 for_each_zcrypt_card(zc) { in zcrypt_rsa_modexpo() 675 if (!zc->online || !zc->card->config || in zcrypt_rsa_modexpo() [all …]
|
D | zcrypt_queue.c | 56 struct zcrypt_card *zc = zq->zcard; in online_store() local 64 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() 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 221 zc = zq->zcard; in zcrypt_queue_unregister() [all …]
|
/Linux-v5.15/drivers/hid/ |
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() 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-v5.15/lib/zstd/ |
D | compress.c | 242 static size_t ZSTD_resetCCtx_advanced(ZSTD_CCtx *zc, ZSTD_parameters params, U64 frameContentSize, … in ZSTD_resetCCtx_advanced() argument 245 if (ZSTD_equivalentParams(params, zc->params)) { in ZSTD_resetCCtx_advanced() 246 zc->flagStaticTables = 0; in ZSTD_resetCCtx_advanced() 247 zc->flagStaticHufTable = HUF_repeat_none; in ZSTD_resetCCtx_advanced() 248 return ZSTD_continueCCtx(zc, params, frameContentSize); in ZSTD_resetCCtx_advanced() 269 if (zc->workSpaceSize < neededSpace) { in ZSTD_resetCCtx_advanced() 270 ZSTD_free(zc->workSpace, zc->customMem); in ZSTD_resetCCtx_advanced() 271 zc->workSpace = ZSTD_malloc(neededSpace, zc->customMem); in ZSTD_resetCCtx_advanced() 272 if (zc->workSpace == NULL) in ZSTD_resetCCtx_advanced() 274 zc->workSpaceSize = neededSpace; in ZSTD_resetCCtx_advanced() [all …]
|
D | zstd_opt.h | 215 U32 ZSTD_insertAndFindFirstIndexHash3(ZSTD_CCtx *zc, const BYTE *ip) in ZSTD_insertAndFindFirstIndexHash3() argument 217 U32 *const hashTable3 = zc->hashTable3; in ZSTD_insertAndFindFirstIndexHash3() 218 U32 const hashLog3 = zc->hashLog3; in ZSTD_insertAndFindFirstIndexHash3() 219 const BYTE *const base = zc->base; in ZSTD_insertAndFindFirstIndexHash3() 220 U32 idx = zc->nextToUpdate3; in ZSTD_insertAndFindFirstIndexHash3() 221 const U32 target = zc->nextToUpdate3 = (U32)(ip - base); in ZSTD_insertAndFindFirstIndexHash3() 235 static U32 ZSTD_insertBtAndGetAllMatches(ZSTD_CCtx *zc, const BYTE *const ip, const BYTE *const iLi… in ZSTD_insertBtAndGetAllMatches() argument 238 const BYTE *const base = zc->base; in ZSTD_insertBtAndGetAllMatches() 240 const U32 hashLog = zc->params.cParams.hashLog; in ZSTD_insertBtAndGetAllMatches() 242 U32 *const hashTable = zc->hashTable; in ZSTD_insertBtAndGetAllMatches() [all …]
|
/Linux-v5.15/tools/testing/selftests/net/ |
D | tcp_mmap.c | 151 struct tcp_zerocopy_receive zc; in child_thread() local 188 socklen_t zc_len = sizeof(zc); in child_thread() 191 memset(&zc, 0, sizeof(zc)); in child_thread() 192 zc.address = (__u64)((unsigned long)addr); in child_thread() 193 zc.length = chunk_size; in child_thread() 196 &zc, &zc_len); in child_thread() 200 if (zc.length) { in child_thread() 201 assert(zc.length <= chunk_size); in child_thread() 202 total_mmap += zc.length; in child_thread() 204 hash_zone(addr, zc.length); in child_thread() [all …]
|
/Linux-v5.15/arch/mips/math-emu/ |
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()
|
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()
|
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)
|
/Linux-v5.15/net/ipv4/ |
D | tcp.c | 1209 bool zc = false; in tcp_sendmsg_locked() local 1222 zc = sk->sk_route_caps & NETIF_F_SG; in tcp_sendmsg_locked() 1223 if (!zc) in tcp_sendmsg_locked() 1330 if (skb_availroom(skb) > 0 && !zc) { in tcp_sendmsg_locked() 1336 } else if (!zc) { in tcp_sendmsg_locked() 1817 struct tcp_zerocopy_receive *zc, in tcp_zerocopy_set_hint_for_skb() argument 1825 zc->recv_skip_hint = skb->len - offset; in tcp_zerocopy_set_hint_for_skb() 1841 zc->recv_skip_hint -= partial_frag_remainder; in tcp_zerocopy_set_hint_for_skb() 1849 mappable_offset = find_next_mappable_frag(frag, zc->recv_skip_hint); in tcp_zerocopy_set_hint_for_skb() 1850 zc->recv_skip_hint = mappable_offset + partial_frag_remainder; in tcp_zerocopy_set_hint_for_skb() [all …]
|
/Linux-v5.15/tools/testing/selftests/bpf/prog_tests/ |
D | sockopt_sk.c | 21 struct tcp_zerocopy_receive zc; in getsetsockopt() member 167 optlen = sizeof(buf.zc); in getsetsockopt() 176 buf.zc.address = 12345; /* rejected by BPF */ in getsetsockopt() 177 optlen = sizeof(buf.zc); in getsetsockopt()
|
/Linux-v5.15/include/net/ |
D | xdp_sock.h | 30 bool zc; member 52 bool zc; member
|
/Linux-v5.15/net/tls/ |
D | tls_sw.c | 1412 int *chunk, bool *zc, bool async) in decrypt_internal() argument 1428 if (*zc && (out_iov || out_sg)) { in decrypt_internal() 1437 *zc = false; in decrypt_internal() 1529 *zc = false; in decrypt_internal() 1547 struct iov_iter *dest, int *chunk, bool *zc, in decrypt_skb_update() argument 1565 err = decrypt_internal(sk, skb, dest, NULL, chunk, zc, in decrypt_skb_update() 1577 *zc = false; in decrypt_skb_update() 1591 *zc = false; in decrypt_skb_update() 1600 bool zc = true; in decrypt_skb() local 1603 return decrypt_internal(sk, skb, NULL, sgout, &chunk, &zc, false); in decrypt_skb() [all …]
|
/Linux-v5.15/net/xdp/ |
D | xsk_buff_pool.c | 110 if (pool->umem->zc) { in xp_disable_drv_zc() 179 pool->umem->zc = true; in xp_assign_dev() 203 flags = umem->zc ? XDP_ZEROCOPY : XDP_COPY; in xp_assign_dev_shared()
|
D | xsk.c | 623 return xs->zc ? xsk_zc_xmit(xs) : xsk_generic_xmit(sk); in __xsk_sendmsg() 682 if (xs->pool->cached_need_wakeup & XDP_WAKEUP_RX && xs->zc) in xsk_recvmsg() 703 if (xs->zc) in xsk_poll() 986 xs->zc = xs->umem->zc; in xsk_bind() 1240 if (xs->zc) in xsk_getsockopt()
|
D | xdp_umem.c | 59 umem->zc = false; in xdp_umem_release()
|
D | xsk_diag.c | 65 if (umem->zc) in xsk_diag_put_umem()
|
/Linux-v5.15/drivers/scsi/ |
D | scsi_debug.c | 2679 enum sdebug_z_cond zc; in zbc_close_zone() local 2684 zc = zsp->z_cond; in zbc_close_zone() 2685 if (!(zc == ZC2_IMPLICIT_OPEN || zc == ZC3_EXPLICIT_OPEN)) in zbc_close_zone() 2688 if (zc == ZC2_IMPLICIT_OPEN) in zbc_close_zone() 2717 enum sdebug_z_cond zc; in zbc_open_zone() local 2722 zc = zsp->z_cond; in zbc_open_zone() 2723 if ((explicit && zc == ZC3_EXPLICIT_OPEN) || in zbc_open_zone() 2724 (!explicit && zc == ZC2_IMPLICIT_OPEN)) in zbc_open_zone() 4452 enum sdebug_z_cond zc; in resp_open_zone() local 4500 zc = zsp->z_cond; in resp_open_zone() [all …]
|
/Linux-v5.15/Documentation/devicetree/bindings/sound/ |
D | cs35l34.txt | 41 - cirrus,gain-zc-disable: Boolean property. If set, the gain change will take
|
D | cs35l35.txt | 66 - cirrus,amp-gain-zc : Boolean to determine if to use Amplifier gain-change
|