Home
last modified time | relevance | path

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

/linux/drivers/s390/crypto/
H A Dzcrypt_queue.c43 struct zcrypt_queue *zq = dev_get_drvdata(dev); in online_show() local
45 int online = aq->config && !aq->chkstop && zq->online ? 1 : 0; in online_show()
54 struct zcrypt_queue *zq = dev_get_drvdata(dev); in online_store() local
56 struct zcrypt_card *zc = zq->zcard; in online_store()
67 zq->online = online; in online_store()
70 __func__, AP_QID_CARD(zq->queue->qid), in online_store()
71 AP_QID_QUEUE(zq->queue->qid), online); in online_store()
76 ap_flush_queue(zq->queue); in online_store()
86 struct zcrypt_queue *zq = dev_get_drvdata(dev); in load_show() local
88 return sysfs_emit(buf, "%d\n", atomic_read(&zq->load)); in load_show()
[all …]
H A Dzcrypt_msgtype6.c185 * @zq: crypto device pointer
191 static int icamex_msg_to_type6mex_msgx(struct zcrypt_queue *zq, in icamex_msg_to_type6mex_msgx() argument
240 msg->cprbx.domain = AP_QID_QUEUE(zq->queue->qid); in icamex_msg_to_type6mex_msgx()
254 * @zq: crypto device pointer
260 static int icacrt_msg_to_type6crt_msgx(struct zcrypt_queue *zq, in icacrt_msg_to_type6crt_msgx() argument
310 msg->cprbx.domain = AP_QID_QUEUE(zq->queue->qid); in icacrt_msg_to_type6crt_msgx()
323 * @zq: crypto device pointer
546 * @zq: crypto device pointer
568 static int convert_type86_ica(struct zcrypt_queue *zq,
586 __func__, AP_QID_CARD(zq in convert_type86_ica()
569 convert_type86_ica(struct zcrypt_queue * zq,struct ap_message * reply,char __user * outputdata,unsigned int outputdatalength) convert_type86_ica() argument
623 convert_type86_xcrb(bool userspace,struct zcrypt_queue * zq,struct ap_message * reply,struct ica_xcRB * xcrb) convert_type86_xcrb() argument
668 convert_type86_ep11_xcrb(bool userspace,struct zcrypt_queue * zq,struct ap_message * reply,struct ep11_urb * xcrb) convert_type86_ep11_xcrb() argument
690 convert_type86_rng(struct zcrypt_queue * zq,struct ap_message * reply,char * buffer) convert_type86_rng() argument
707 convert_response_ica(struct zcrypt_queue * zq,struct ap_message * reply,char __user * outputdata,unsigned int outputdatalength) convert_response_ica() argument
751 convert_response_xcrb(bool userspace,struct zcrypt_queue * zq,struct ap_message * reply,struct ica_xcRB * xcrb) convert_response_xcrb() argument
786 convert_response_ep11_xcrb(bool userspace,struct zcrypt_queue * zq,struct ap_message * reply,struct ep11_urb * xcrb) convert_response_ep11_xcrb() argument
816 convert_response_rng(struct zcrypt_queue * zq,struct ap_message * reply,char * data) convert_response_rng() argument
973 zcrypt_msgtype6_modexpo(struct zcrypt_queue * zq,struct ica_rsa_modexpo * mex,struct ap_message * ap_msg) zcrypt_msgtype6_modexpo() argument
1023 zcrypt_msgtype6_modexpo_crt(struct zcrypt_queue * zq,struct ica_rsa_modexpo_crt * crt,struct ap_message * ap_msg) zcrypt_msgtype6_modexpo_crt() argument
1103 zcrypt_msgtype6_send_cprb(bool userspace,struct zcrypt_queue * zq,struct ica_xcRB * xcrb,struct ap_message * ap_msg) zcrypt_msgtype6_send_cprb() argument
1201 zcrypt_msgtype6_send_ep11_cprb(bool userspace,struct zcrypt_queue * zq,struct ep11_urb * xcrb,struct ap_message * ap_msg) zcrypt_msgtype6_send_ep11_cprb() argument
1317 zcrypt_msgtype6_rng(struct zcrypt_queue * zq,char * buffer,struct ap_message * ap_msg) zcrypt_msgtype6_rng() argument
[all...]
H A Dzcrypt_msgtype50.c189 * @zq: crypto queue pointer
195 static int ICAMEX_msg_to_type50MEX_msg(struct zcrypt_queue *zq, in ICAMEX_msg_to_type50MEX_msg() argument
252 * @zq: crypto queue pointer
258 static int ICACRT_msg_to_type50CRT_msg(struct zcrypt_queue *zq, in ICACRT_msg_to_type50CRT_msg() argument
303 (zq->zcard->max_mod_size == CEX3A_MAX_MOD_SIZE)) { in ICACRT_msg_to_type50CRT_msg()
339 * @zq: crypto device pointer
346 static int convert_type80(struct zcrypt_queue *zq, in convert_type80() argument
356 zq->online = 0; in convert_type80()
358 AP_QID_CARD(zq->queue->qid), in convert_type80()
359 AP_QID_QUEUE(zq in convert_type80()
373 convert_response(struct zcrypt_queue * zq,struct ap_message * reply,char __user * outputdata,unsigned int outputdatalength) convert_response() argument
453 zcrypt_msgtype50_modexpo(struct zcrypt_queue * zq,struct ica_rsa_modexpo * mex,struct ap_message * ap_msg) zcrypt_msgtype50_modexpo() argument
503 zcrypt_msgtype50_modexpo_crt(struct zcrypt_queue * zq,struct ica_rsa_modexpo_crt * crt,struct ap_message * ap_msg) zcrypt_msgtype50_modexpo_crt() argument
[all...]
H A Dzcrypt_cex4.c113 struct zcrypt_queue *zq = dev_get_drvdata(dev); in cca_mkvps_show() local
121 cca_get_info(AP_QID_CARD(zq->queue->qid), in cca_mkvps_show()
122 AP_QID_QUEUE(zq->queue->qid), in cca_mkvps_show()
123 &ci, zq->online); in cca_mkvps_show()
339 struct zcrypt_queue *zq = dev_get_drvdata(dev); in ep11_mkvps_show() local
348 if (zq->online) in ep11_mkvps_show()
349 ep11_get_domain_info(AP_QID_CARD(zq->queue->qid), in ep11_mkvps_show()
350 AP_QID_QUEUE(zq->queue->qid), in ep11_mkvps_show()
389 struct zcrypt_queue *zq = dev_get_drvdata(dev); in ep11_queue_op_modes_show() local
395 if (zq->online) in ep11_queue_op_modes_show()
[all …]
H A Dzcrypt_card.c66 struct zcrypt_queue *zq; in online_store() local
90 list_for_each_entry(zq, &zc->zqueues, list) 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()
H 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()
H A Dzcrypt_api.h154 bool zcrypt_queue_force_online(struct zcrypt_queue *zq, int online);
/linux/drivers/memory/
H A Demif.c300 u32 zq = 0, val = 0; in get_zq_config_reg()
303 zq |= val << ZQ_REFINTERVAL_SHIFT; in get_zq_config_reg()
306 zq |= val << ZQ_ZQCL_MULT_SHIFT; in get_zq_config_reg()
309 zq |= val << ZQ_ZQINIT_MULT_SHIFT; in get_zq_config_reg()
311 zq |= ZQ_SFEXITEN_ENABLE << ZQ_SFEXITEN_SHIFT; in get_zq_config_reg()
314 zq |= ZQ_DUALCALEN_ENABLE << ZQ_DUALCALEN_SHIFT; in get_zq_config_reg()
316 zq |= ZQ_DUALCALEN_DISABLE << ZQ_DUALCALEN_SHIFT; in get_zq_config_reg()
318 zq |= ZQ_CS0EN_MASK; /* CS0 is used for sure */ in get_zq_config_reg()
321 zq |= val << ZQ_CS1EN_SHIFT; in get_zq_config_reg()
323 return zq; in get_zq_config_reg()
301 u32 zq = 0, val = 0; get_zq_config_reg() local
707 u32 pwr_mgmt_ctrl, zq, temp_alert_cfg; emif_onetime_settings() local
[all...]