/linux/drivers/s390/crypto/ |
H A D | zcrypt_queue.c | 44 struct zcrypt_queue *zq = dev_get_drvdata(dev); in online_show() local 46 int online = aq->config && !aq->chkstop && zq->online ? 1 : 0; in online_show() 55 struct zcrypt_queue *zq = dev_get_drvdata(dev); in online_store() local 57 struct zcrypt_card *zc = zq->zcard; in online_store() 68 zq->online = online; in online_store() 71 __func__, AP_QID_CARD(zq->queue->qid), in online_store() 72 AP_QID_QUEUE(zq->queue->qid), online); in online_store() 77 ap_flush_queue(zq->queue); in online_store() 87 struct zcrypt_queue *zq = dev_get_drvdata(dev); in load_show() local 89 return sysfs_emit(buf, "%d\n", atomic_read(&zq in load_show() 104 zcrypt_queue_force_online(struct zcrypt_queue * zq,int online) zcrypt_queue_force_online() argument 117 struct zcrypt_queue *zq; zcrypt_queue_alloc() local 136 zcrypt_queue_free(struct zcrypt_queue * zq) zcrypt_queue_free() argument 145 struct zcrypt_queue *zq = zcrypt_queue_release() local 150 zcrypt_queue_get(struct zcrypt_queue * zq) zcrypt_queue_get() argument 156 zcrypt_queue_put(struct zcrypt_queue * zq) zcrypt_queue_put() argument 168 zcrypt_queue_register(struct zcrypt_queue * zq) zcrypt_queue_register() argument 216 zcrypt_queue_unregister(struct zcrypt_queue * zq) zcrypt_queue_unregister() argument [all...] |
H A D | zcrypt_msgtype6.c | 180 * @zq: crypto device pointer 186 static int icamex_msg_to_type6mex_msgx(struct zcrypt_queue *zq, in icamex_msg_to_type6mex_msgx() argument 235 msg->cprbx.domain = AP_QID_QUEUE(zq->queue->qid); in icamex_msg_to_type6mex_msgx() 249 * @zq: crypto device pointer 255 static int icacrt_msg_to_type6crt_msgx(struct zcrypt_queue *zq, in icacrt_msg_to_type6crt_msgx() argument 305 msg->cprbx.domain = AP_QID_QUEUE(zq->queue->qid); in icacrt_msg_to_type6crt_msgx() 318 * @zq: crypto device pointer 541 * @zq: crypto device pointer 563 static int convert_type86_ica(struct zcrypt_queue *zq, in convert_type86_ica() argument 581 __func__, AP_QID_CARD(zq in convert_type86_ica() 617 convert_type86_xcrb(bool userspace,struct zcrypt_queue * zq,struct ap_message * reply,struct ica_xcRB * xcrb) convert_type86_xcrb() argument 660 convert_type86_ep11_xcrb(bool userspace,struct zcrypt_queue * zq,struct ap_message * reply,struct ep11_urb * xcrb) convert_type86_ep11_xcrb() argument 681 convert_type86_rng(struct zcrypt_queue * zq,struct ap_message * reply,char * buffer) convert_type86_rng() argument 698 convert_response_ica(struct zcrypt_queue * zq,struct ap_message * reply,char __user * outputdata,unsigned int outputdatalength) convert_response_ica() argument 742 convert_response_xcrb(bool userspace,struct zcrypt_queue * zq,struct ap_message * reply,struct ica_xcRB * xcrb) convert_response_xcrb() argument 777 convert_response_ep11_xcrb(bool userspace,struct zcrypt_queue * zq,struct ap_message * reply,struct ep11_urb * xcrb) convert_response_ep11_xcrb() argument 807 convert_response_rng(struct zcrypt_queue * zq,struct ap_message * reply,char * data) convert_response_rng() argument 961 zcrypt_msgtype6_modexpo(struct zcrypt_queue * zq,struct ica_rsa_modexpo * mex,struct ap_message * ap_msg) zcrypt_msgtype6_modexpo() argument 1008 zcrypt_msgtype6_modexpo_crt(struct zcrypt_queue * zq,struct ica_rsa_modexpo_crt * crt,struct ap_message * ap_msg) zcrypt_msgtype6_modexpo_crt() argument 1078 zcrypt_msgtype6_send_cprb(bool userspace,struct zcrypt_queue * zq,struct ica_xcRB * xcrb,struct ap_message * ap_msg) zcrypt_msgtype6_send_cprb() argument 1169 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 1287 zcrypt_msgtype6_rng(struct zcrypt_queue * zq,char * buffer,struct ap_message * ap_msg) zcrypt_msgtype6_rng() argument [all...] |
H A D | zcrypt_msgtype50.c | 189 * @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 457 zcrypt_msgtype50_modexpo(struct zcrypt_queue * zq,struct ica_rsa_modexpo * mex,struct ap_message * ap_msg) zcrypt_msgtype50_modexpo() argument 506 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 D | zcrypt_api.c | 579 struct zcrypt_queue *zq, in zcrypt_pick_queue() argument 583 if (!zq || !try_module_get(zq->queue->ap_dev.device.driver->owner)) in zcrypt_pick_queue() 586 zcrypt_queue_get(zq); in zcrypt_pick_queue() 587 get_device(&zq->queue->ap_dev.device); in zcrypt_pick_queue() 589 atomic_add(weight, &zq->load); in zcrypt_pick_queue() 590 zq->request_count++; in zcrypt_pick_queue() 591 *pmod = zq->queue->ap_dev.device.driver->owner; in zcrypt_pick_queue() 592 return zq; in zcrypt_pick_queue() 596 struct zcrypt_queue *zq, in zcrypt_drop_queue() argument 624 zcrypt_queue_compare(struct zcrypt_queue * zq,struct zcrypt_queue * pref_zq,unsigned int weight,unsigned int pref_weight) zcrypt_queue_compare() argument 647 struct zcrypt_queue *zq, *pref_zq; zcrypt_rsa_modexpo() local 752 struct zcrypt_queue *zq, *pref_zq; zcrypt_rsa_crt() local 858 struct zcrypt_queue *zq, *pref_zq; _zcrypt_send_cprb() local 1045 struct zcrypt_queue *zq, *pref_zq; _zcrypt_send_ep11_cprb() local 1217 struct zcrypt_queue *zq, *pref_zq; zcrypt_rng() local 1284 struct zcrypt_queue *zq; zcrypt_device_status_mask() local 1312 struct zcrypt_queue *zq; zcrypt_device_status_mask_ext() local 1341 struct zcrypt_queue *zq; zcrypt_device_status_ext() local 1368 struct zcrypt_queue *zq; zcrypt_status_mask() local 1388 struct zcrypt_queue *zq; zcrypt_qdepth_mask() local 1414 struct zcrypt_queue *zq; zcrypt_perdev_reqcnt() local 1440 struct zcrypt_queue *zq; zcrypt_pendingq_count() local 1463 struct zcrypt_queue *zq; zcrypt_requestq_count() local [all...] |
H A D | zcrypt_cex4.c | 114 struct zcrypt_queue *zq = dev_get_drvdata(dev); in cca_mkvps_show() local 120 cca_get_info(AP_QID_CARD(zq->queue->qid), in cca_mkvps_show() 121 AP_QID_QUEUE(zq->queue->qid), in cca_mkvps_show() 334 struct zcrypt_queue *zq = dev_get_drvdata(dev); in ep11_mkvps_show() local 343 if (zq->online) in ep11_mkvps_show() 344 ep11_get_domain_info(AP_QID_CARD(zq->queue->qid), in ep11_mkvps_show() 345 AP_QID_QUEUE(zq->queue->qid), in ep11_mkvps_show() 384 struct zcrypt_queue *zq = dev_get_drvdata(dev); in ep11_queue_op_modes_show() local 390 if (zq->online) in ep11_queue_op_modes_show() 391 ep11_get_domain_info(AP_QID_CARD(zq in ep11_queue_op_modes_show() 648 struct zcrypt_queue *zq; zcrypt_cex4_queue_probe() local 711 struct zcrypt_queue *zq = dev_get_drvdata(&ap_dev->device); zcrypt_cex4_queue_remove() local [all...] |
H A D | zcrypt_card.c | 67 struct zcrypt_queue *zq; in online_store() local 91 list_for_each_entry(zq, &zc->zqueues, list) in online_store() 95 list_for_each_entry(zq, &zc->zqueues, list) in online_store() 96 if (zcrypt_queue_force_online(zq, online)) in online_store() 98 zcrypt_queue_get(zq); in online_store() 99 zq_uelist[i++] = zq; in online_store() 104 zq = zq_uelist[i]; in online_store() 105 ap_send_online_uevent(&zq->queue->ap_dev, online); in online_store() 106 zcrypt_queue_put(zq); in online_store()
|
H A D | zcrypt_api.h | 163 bool zcrypt_queue_force_online(struct zcrypt_queue *zq, int online);
|
/linux/drivers/memory/ |
H A D | emif.c | 301 u32 zq = 0, val = 0; in get_zq_config_reg() local 304 zq |= val << ZQ_REFINTERVAL_SHIFT; in get_zq_config_reg() 307 zq |= val << ZQ_ZQCL_MULT_SHIFT; in get_zq_config_reg() 310 zq |= val << ZQ_ZQINIT_MULT_SHIFT; in get_zq_config_reg() 312 zq |= ZQ_SFEXITEN_ENABLE << ZQ_SFEXITEN_SHIFT; in get_zq_config_reg() 315 zq |= ZQ_DUALCALEN_ENABLE << ZQ_DUALCALEN_SHIFT; in get_zq_config_reg() 317 zq |= ZQ_DUALCALEN_DISABLE << ZQ_DUALCALEN_SHIFT; in get_zq_config_reg() 319 zq |= ZQ_CS0EN_MASK; /* CS0 is used for sure */ in get_zq_config_reg() 322 zq |= val << ZQ_CS1EN_SHIFT; in get_zq_config_reg() 324 return zq; in get_zq_config_reg() 706 u32 pwr_mgmt_ctrl, zq, temp_alert_cfg; emif_onetime_settings() local [all...] |