Home
last modified time | relevance | path

Searched refs:zq (Results 1 – 11 of 11) sorted by relevance

/linux/drivers/s390/crypto/
A Dzcrypt_queue.c66 zq->online = online; in online_store()
105 zq->online = online; in zcrypt_queue_force_online()
118 if (!zq) in zcrypt_queue_alloc()
121 if (!zq->reply.msg) in zcrypt_queue_alloc()
126 return zq; in zcrypt_queue_alloc()
129 kfree(zq); in zcrypt_queue_alloc()
137 kfree(zq); in zcrypt_queue_free()
174 zq->zcard = zc; in zcrypt_queue_register()
189 if (zq->ops->rng) { in zcrypt_queue_register()
222 zc = zq->zcard; in zcrypt_queue_unregister()
[all …]
A Dzcrypt_msgtype6.c654 AP_QID_QUEUE(zq->queue->qid), in convert_type86_ica()
658 zq->online = 0; in convert_type86_ica()
667 ap_send_online_uevent(&zq->queue->ap_dev, zq->online); in convert_type86_ica()
804 zq->online = 0; in convert_response_ica()
813 ap_send_online_uevent(&zq->queue->ap_dev, zq->online); in convert_response_ica()
839 zq->online = 0; in convert_response_xcrb()
848 ap_send_online_uevent(&zq->queue->ap_dev, zq->online); in convert_response_xcrb()
869 zq->online = 0; in convert_response_ep11_xcrb()
878 ap_send_online_uevent(&zq->queue->ap_dev, zq->online); in convert_response_ep11_xcrb()
900 zq->online = 0; in convert_response_rng()
[all …]
A Dzcrypt_cex2a.c153 struct zcrypt_queue *zq = NULL; in zcrypt_cex2a_queue_probe() local
159 if (!zq) in zcrypt_cex2a_queue_probe()
164 if (!zq) in zcrypt_cex2a_queue_probe()
168 if (!zq) in zcrypt_cex2a_queue_probe()
171 zq->queue = aq; in zcrypt_cex2a_queue_probe()
172 zq->online = 1; in zcrypt_cex2a_queue_probe()
173 atomic_set(&zq->load, 0); in zcrypt_cex2a_queue_probe()
175 ap_queue_init_reply(aq, &zq->reply); in zcrypt_cex2a_queue_probe()
178 rc = zcrypt_queue_register(zq); in zcrypt_cex2a_queue_probe()
180 zcrypt_queue_free(zq); in zcrypt_cex2a_queue_probe()
[all …]
A Dzcrypt_msgtype50.c369 zq->online = 0; in convert_type80()
371 AP_QID_CARD(zq->queue->qid), in convert_type80()
376 ap_send_online_uevent(&zq->queue->ap_dev, zq->online); in convert_type80()
400 return convert_error(zq, reply); in convert_response_cex2a()
402 return convert_type80(zq, reply, in convert_response_cex2a()
405 zq->online = 0; in convert_response_cex2a()
407 AP_QID_CARD(zq->queue->qid), in convert_response_cex2a()
408 AP_QID_QUEUE(zq->queue->qid), in convert_response_cex2a()
414 ap_send_online_uevent(&zq->queue->ap_dev, zq->online); in convert_response_cex2a()
497 ap_cancel_message(zq->queue, ap_msg); in zcrypt_cex2a_modexpo()
[all …]
A Dzcrypt_api.c574 if (!zq || !try_module_get(zq->queue->ap_dev.device.driver->owner)) in zcrypt_pick_queue()
580 zq->request_count++; in zcrypt_pick_queue()
582 return zq; in zcrypt_pick_queue()
694 if (!zq->online || !zq->ops->rsa_modexpo || in zcrypt_rsa_modexpo()
709 pref_zq = zq; in zcrypt_rsa_modexpo()
802 if (!zq->online || !zq->ops->rsa_modexpo_crt || in zcrypt_rsa_crt()
817 pref_zq = zq; in zcrypt_rsa_crt()
936 pref_zq = zq; in _zcrypt_send_cprb()
1108 pref_zq = zq; in _zcrypt_send_ep11_cprb()
1178 if (!zq->online || !zq->ops->rng || in zcrypt_rng()
[all …]
A Dzcrypt_cex4.c119 &ci, zq->online); in cca_mkvps_show()
321 if (zq->online) in ep11_mkvps_show()
366 if (zq->online) in ep11_queue_op_modes_show()
598 struct zcrypt_queue *zq; in zcrypt_cex4_queue_probe() local
603 if (!zq) in zcrypt_cex4_queue_probe()
609 if (!zq) in zcrypt_cex4_queue_probe()
615 if (!zq) in zcrypt_cex4_queue_probe()
623 zq->queue = aq; in zcrypt_cex4_queue_probe()
624 zq->online = 1; in zcrypt_cex4_queue_probe()
632 zcrypt_queue_free(zq); in zcrypt_cex4_queue_probe()
[all …]
A Dzcrypt_cex2c.c110 &ci, zq->online); in cca_mkvps_show()
336 struct zcrypt_queue *zq; in zcrypt_cex2c_queue_probe() local
340 if (!zq) in zcrypt_cex2c_queue_probe()
342 zq->queue = aq; in zcrypt_cex2c_queue_probe()
343 zq->online = 1; in zcrypt_cex2c_queue_probe()
344 atomic_set(&zq->load, 0); in zcrypt_cex2c_queue_probe()
348 zcrypt_queue_free(zq); in zcrypt_cex2c_queue_probe()
363 zcrypt_queue_free(zq); in zcrypt_cex2c_queue_probe()
371 zcrypt_queue_unregister(zq); in zcrypt_cex2c_queue_probe()
372 zcrypt_queue_free(zq); in zcrypt_cex2c_queue_probe()
[all …]
A Dzcrypt_card.c66 struct zcrypt_queue *zq; in online_store() local
90 list_for_each_entry(zq, &zc->zqueues, list) in online_store()
93 zq_uelist = kcalloc(maxzqs + 1, sizeof(zq), GFP_ATOMIC); in online_store()
94 list_for_each_entry(zq, &zc->zqueues, list) in online_store()
95 if (zcrypt_queue_force_online(zq, online)) in online_store()
97 zcrypt_queue_get(zq); in online_store()
98 zq_uelist[i++] = zq; in online_store()
103 zq = zq_uelist[i]; in online_store()
104 ap_send_online_uevent(&zq->queue->ap_dev, online); in online_store()
105 zcrypt_queue_put(zq); in online_store()
A Dzcrypt_error.h78 static inline int convert_error(struct zcrypt_queue *zq, in convert_error() argument
82 int card = AP_QID_CARD(zq->queue->qid); in convert_error()
83 int queue = AP_QID_QUEUE(zq->queue->qid); in convert_error()
A Dzcrypt_api.h148 bool zcrypt_queue_force_online(struct zcrypt_queue *zq, int online);
/linux/drivers/memory/
A Demif.c309 u32 zq = 0, val = 0; in get_zq_config_reg() local
312 zq |= val << ZQ_REFINTERVAL_SHIFT; in get_zq_config_reg()
315 zq |= val << ZQ_ZQCL_MULT_SHIFT; in get_zq_config_reg()
318 zq |= val << ZQ_ZQINIT_MULT_SHIFT; in get_zq_config_reg()
320 zq |= ZQ_SFEXITEN_ENABLE << ZQ_SFEXITEN_SHIFT; in get_zq_config_reg()
323 zq |= ZQ_DUALCALEN_ENABLE << ZQ_DUALCALEN_SHIFT; in get_zq_config_reg()
325 zq |= ZQ_DUALCALEN_DISABLE << ZQ_DUALCALEN_SHIFT; in get_zq_config_reg()
327 zq |= ZQ_CS0EN_MASK; /* CS0 is used for sure */ in get_zq_config_reg()
330 zq |= val << ZQ_CS1EN_SHIFT; in get_zq_config_reg()
332 return zq; in get_zq_config_reg()
[all …]

Completed in 29 milliseconds