/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_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_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_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 | 571 static inline struct zcrypt_queue *zcrypt_pick_queue(struct zcrypt_card *zc, in zcrypt_pick_queue() argument 580 atomic_add(weight, &zc->load); in zcrypt_pick_queue() 587 static inline void zcrypt_drop_queue(struct zcrypt_card *zc, in zcrypt_drop_queue() argument 593 atomic_sub(weight, &zc->load); in zcrypt_drop_queue() 600 static inline bool zcrypt_card_compare(struct zcrypt_card *zc, in zcrypt_card_compare() argument 607 weight += atomic_read(&zc->load); in zcrypt_card_compare() 610 return atomic64_read(&zc->card->total_request_count) < in zcrypt_card_compare() 637 struct zcrypt_card *zc, *pref_zc; in zcrypt_rsa_modexpo() local 674 for_each_zcrypt_card(zc) { in zcrypt_rsa_modexpo() 676 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 …]
|
/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 …]
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_xsk.h | 36 int i40e_realloc_rx_bi_zc(struct i40e_vsi *vsi, bool zc);
|
D | i40e_xsk.c | 63 int i40e_realloc_rx_bi_zc(struct i40e_vsi *vsi, bool zc) in i40e_realloc_rx_bi_zc() argument 70 if (i40e_realloc_rx_xdp_bi(rx_ring, zc)) in i40e_realloc_rx_bi_zc()
|
/drivers/scsi/ |
D | scsi_debug.c | 2691 enum sdebug_z_cond zc; in zbc_close_zone() local 2696 zc = zsp->z_cond; in zbc_close_zone() 2697 if (!(zc == ZC2_IMPLICIT_OPEN || zc == ZC3_EXPLICIT_OPEN)) in zbc_close_zone() 2700 if (zc == ZC2_IMPLICIT_OPEN) in zbc_close_zone() 2729 enum sdebug_z_cond zc; in zbc_open_zone() local 2734 zc = zsp->z_cond; in zbc_open_zone() 2735 if ((explicit && zc == ZC3_EXPLICIT_OPEN) || in zbc_open_zone() 2736 (!explicit && zc == ZC2_IMPLICIT_OPEN)) in zbc_open_zone() 4486 enum sdebug_z_cond zc; in resp_open_zone() local 4534 zc = zsp->z_cond; in resp_open_zone() [all …]
|