/linux-4.19.296/drivers/s390/crypto/ |
D | zcrypt_cex4.c | 101 struct zcrypt_card *zc; in zcrypt_cex4_card_probe() local 104 zc = zcrypt_card_alloc(); in zcrypt_cex4_card_probe() 105 if (!zc) in zcrypt_cex4_card_probe() 107 zc->card = ac; in zcrypt_cex4_card_probe() 108 ac->private = zc; in zcrypt_cex4_card_probe() 111 zc->type_string = "CEX4A"; in zcrypt_cex4_card_probe() 112 zc->user_space_type = ZCRYPT_CEX4; in zcrypt_cex4_card_probe() 113 memcpy(zc->speed_rating, CEX4A_SPEED_IDX, in zcrypt_cex4_card_probe() 116 zc->type_string = "CEX5A"; in zcrypt_cex4_card_probe() 117 zc->user_space_type = ZCRYPT_CEX5; in zcrypt_cex4_card_probe() [all …]
|
D | zcrypt_card.c | 44 struct zcrypt_card *zc = to_ap_card(dev)->private; in type_show() local 46 return snprintf(buf, PAGE_SIZE, "%s\n", zc->type_string); in type_show() 55 struct zcrypt_card *zc = to_ap_card(dev)->private; in online_show() local 57 return snprintf(buf, PAGE_SIZE, "%d\n", zc->online); in online_show() 64 struct zcrypt_card *zc = to_ap_card(dev)->private; in online_store() local 71 zc->online = online; in online_store() 72 id = zc->card->id; in online_store() 77 list_for_each_entry(zq, &zc->zqueues, list) in online_store() 89 struct zcrypt_card *zc = to_ap_card(dev)->private; in load_show() local 91 return snprintf(buf, PAGE_SIZE, "%d\n", atomic_read(&zc->load)); in load_show() [all …]
|
D | zcrypt_cex2a.c | 87 struct zcrypt_card *zc; in zcrypt_cex2a_card_probe() local 90 zc = zcrypt_card_alloc(); in zcrypt_cex2a_card_probe() 91 if (!zc) in zcrypt_cex2a_card_probe() 93 zc->card = ac; in zcrypt_cex2a_card_probe() 94 ac->private = zc; in zcrypt_cex2a_card_probe() 97 zc->min_mod_size = CEX2A_MIN_MOD_SIZE; in zcrypt_cex2a_card_probe() 98 zc->max_mod_size = CEX2A_MAX_MOD_SIZE; in zcrypt_cex2a_card_probe() 99 memcpy(zc->speed_rating, CEX2A_SPEED_IDX, in zcrypt_cex2a_card_probe() 101 zc->max_exp_bit_length = CEX2A_MAX_MOD_SIZE; in zcrypt_cex2a_card_probe() 102 zc->type_string = "CEX2A"; in zcrypt_cex2a_card_probe() [all …]
|
D | zcrypt_pcixcc.c | 168 struct zcrypt_card *zc; in zcrypt_pcixcc_card_probe() local 171 zc = zcrypt_card_alloc(); in zcrypt_pcixcc_card_probe() 172 if (!zc) in zcrypt_pcixcc_card_probe() 174 zc->card = ac; in zcrypt_pcixcc_card_probe() 175 ac->private = zc; in zcrypt_pcixcc_card_probe() 178 zc->user_space_type = ZCRYPT_CEX2C; in zcrypt_pcixcc_card_probe() 179 zc->type_string = "CEX2C"; in zcrypt_pcixcc_card_probe() 180 memcpy(zc->speed_rating, CEX2C_SPEED_IDX, in zcrypt_pcixcc_card_probe() 182 zc->min_mod_size = PCIXCC_MIN_MOD_SIZE; in zcrypt_pcixcc_card_probe() 183 zc->max_mod_size = PCIXCC_MAX_MOD_SIZE; in zcrypt_pcixcc_card_probe() [all …]
|
D | zcrypt_api.c | 155 static inline struct zcrypt_queue *zcrypt_pick_queue(struct zcrypt_card *zc, in zcrypt_pick_queue() argument 163 atomic_add(weight, &zc->load); in zcrypt_pick_queue() 169 static inline void zcrypt_drop_queue(struct zcrypt_card *zc, in zcrypt_drop_queue() argument 176 atomic_sub(weight, &zc->load); in zcrypt_drop_queue() 183 static inline bool zcrypt_card_compare(struct zcrypt_card *zc, in zcrypt_card_compare() argument 190 weight += atomic_read(&zc->load); in zcrypt_card_compare() 193 return atomic64_read(&zc->card->total_request_count) > in zcrypt_card_compare() 218 struct zcrypt_card *zc, *pref_zc; in zcrypt_rsa_modexpo() local 246 for_each_zcrypt_card(zc) { in zcrypt_rsa_modexpo() 248 if (!zc->online || !(zc->card->functions & 0x18000000)) in zcrypt_rsa_modexpo() [all …]
|
D | zcrypt_queue.c | 55 struct zcrypt_card *zc = zq->zcard; in online_store() local 61 if (online && !zc->online) in online_store() 160 struct zcrypt_card *zc; in zcrypt_queue_register() local 164 zc = zq->queue->card->private; in zcrypt_queue_register() 165 zcrypt_card_get(zc); in zcrypt_queue_register() 166 zq->zcard = zc; in zcrypt_queue_register() 172 list_add_tail(&zq->list, &zc->zqueues); in zcrypt_queue_register() 197 zcrypt_card_put(zc); in zcrypt_queue_register() 210 struct zcrypt_card *zc; in zcrypt_queue_unregister() local 215 zc = zq->zcard; in zcrypt_queue_unregister() [all …]
|
/linux-4.19.296/drivers/hid/ |
D | hid-zydacron.c | 53 struct zc_device *zc = hid_get_drvdata(hdev); in zc_input_mapping() local 54 zc->input_ep81 = hi->input; in zc_input_mapping() 107 zc->last_key[i] = 0; in zc_input_mapping() 115 struct zc_device *zc = hid_get_drvdata(hdev); in zc_raw_event() local 124 key = zc->last_key[index]; in zc_raw_event() 126 input_event(zc->input_ep81, EV_KEY, key, 0); in zc_raw_event() 127 zc->last_key[index] = 0; in zc_raw_event() 155 input_event(zc->input_ep81, EV_KEY, key, 1); in zc_raw_event() 156 zc->last_key[index] = key; in zc_raw_event() 170 struct zc_device *zc; in zc_probe() local [all …]
|
/linux-4.19.296/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-4.19.296/include/net/ |
D | xdp_sock.h | 44 bool zc; member 59 bool zc; member
|