/drivers/s390/crypto/ |
D | zcrypt_queue.c | 43 struct zcrypt_queue *zq = dev_get_drvdata(dev); in online_show() local 45 int online = aq->config && 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() 66 zq->online = online; in online_store() 69 AP_QID_CARD(zq->queue->qid), in online_store() 70 AP_QID_QUEUE(zq->queue->qid), 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 scnprintf(buf, PAGE_SIZE, "%d\n", atomic_read(&zq->load)); in load_show() [all …]
|
D | zcrypt_msgtype6.c | 248 static int ICAMEX_msg_to_type6MEX_msgX(struct zcrypt_queue *zq, in ICAMEX_msg_to_type6MEX_msgX() argument 297 msg->cprbx.domain = AP_QID_QUEUE(zq->queue->qid); in ICAMEX_msg_to_type6MEX_msgX() 317 static int ICACRT_msg_to_type6CRT_msgX(struct zcrypt_queue *zq, in ICACRT_msg_to_type6CRT_msgX() argument 367 msg->cprbx.domain = AP_QID_QUEUE(zq->queue->qid); in ICACRT_msg_to_type6CRT_msgX() 599 static int convert_type86_ica(struct zcrypt_queue *zq, in convert_type86_ica() argument 653 AP_QID_CARD(zq->queue->qid), in convert_type86_ica() 654 AP_QID_QUEUE(zq->queue->qid), in convert_type86_ica() 658 zq->online = 0; in convert_type86_ica() 660 AP_QID_CARD(zq->queue->qid), in convert_type86_ica() 661 AP_QID_QUEUE(zq->queue->qid), in convert_type86_ica() [all …]
|
D | zcrypt_msgtype50.c | 200 static int ICAMEX_msg_to_type50MEX_msg(struct zcrypt_queue *zq, in ICAMEX_msg_to_type50MEX_msg() argument 267 static int ICACRT_msg_to_type50CRT_msg(struct zcrypt_queue *zq, in ICACRT_msg_to_type50CRT_msg() argument 312 (zq->zcard->max_mod_size == CEX3A_MAX_MOD_SIZE)) { in ICACRT_msg_to_type50CRT_msg() 359 static int convert_type80(struct zcrypt_queue *zq, in convert_type80() argument 369 zq->online = 0; in convert_type80() 371 AP_QID_CARD(zq->queue->qid), in convert_type80() 372 AP_QID_QUEUE(zq->queue->qid), in convert_type80() 375 AP_QID_CARD(zq->queue->qid), in convert_type80() 376 AP_QID_QUEUE(zq->queue->qid), in convert_type80() 378 ap_send_online_uevent(&zq->queue->ap_dev, zq->online); in convert_type80() [all …]
|
D | zcrypt_cex2a.c | 153 struct zcrypt_queue *zq = NULL; in zcrypt_cex2a_queue_probe() local 158 zq = zcrypt_queue_alloc(CEX2A_MAX_RESPONSE_SIZE); in zcrypt_cex2a_queue_probe() 159 if (!zq) in zcrypt_cex2a_queue_probe() 163 zq = zcrypt_queue_alloc(CEX3A_MAX_RESPONSE_SIZE); in zcrypt_cex2a_queue_probe() 164 if (!zq) in zcrypt_cex2a_queue_probe() 168 if (!zq) in zcrypt_cex2a_queue_probe() 170 zq->ops = zcrypt_msgtype(MSGTYPE50_NAME, MSGTYPE50_VARIANT_DEFAULT); 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() [all …]
|
D | zcrypt_api.c | 572 struct zcrypt_queue *zq, in zcrypt_pick_queue() argument 576 if (!zq || !try_module_get(zq->queue->ap_dev.device.driver->owner)) in zcrypt_pick_queue() 578 zcrypt_queue_get(zq); in zcrypt_pick_queue() 579 get_device(&zq->queue->ap_dev.device); in zcrypt_pick_queue() 581 atomic_add(weight, &zq->load); in zcrypt_pick_queue() 582 zq->request_count++; in zcrypt_pick_queue() 583 *pmod = zq->queue->ap_dev.device.driver->owner; in zcrypt_pick_queue() 584 return zq; in zcrypt_pick_queue() 588 struct zcrypt_queue *zq, in zcrypt_drop_queue() argument 592 zq->request_count--; in zcrypt_drop_queue() [all …]
|
D | zcrypt_cex4.c | 109 struct zcrypt_queue *zq = dev_get_drvdata(dev); in cca_mkvps_show() local 117 cca_get_info(AP_QID_CARD(zq->queue->qid), in cca_mkvps_show() 118 AP_QID_QUEUE(zq->queue->qid), in cca_mkvps_show() 119 &ci, zq->online); in cca_mkvps_show() 312 struct zcrypt_queue *zq = dev_get_drvdata(dev); in ep11_mkvps_show() local 321 if (zq->online) in ep11_mkvps_show() 322 ep11_get_domain_info(AP_QID_CARD(zq->queue->qid), in ep11_mkvps_show() 323 AP_QID_QUEUE(zq->queue->qid), in ep11_mkvps_show() 360 struct zcrypt_queue *zq = dev_get_drvdata(dev); in ep11_queue_op_modes_show() local 366 if (zq->online) in ep11_queue_op_modes_show() [all …]
|
D | zcrypt_cex2c.c | 100 struct zcrypt_queue *zq = dev_get_drvdata(dev); in cca_mkvps_show() local 108 cca_get_info(AP_QID_CARD(zq->queue->qid), in cca_mkvps_show() 109 AP_QID_QUEUE(zq->queue->qid), in cca_mkvps_show() 110 &ci, zq->online); in cca_mkvps_show() 336 struct zcrypt_queue *zq; in zcrypt_cex2c_queue_probe() local 339 zq = zcrypt_queue_alloc(CEX2C_MAX_XCRB_MESSAGE_SIZE); in zcrypt_cex2c_queue_probe() 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() [all …]
|
D | zcrypt_card.c | 66 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()
|
D | zcrypt_error.h | 78 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()
|
D | zcrypt_api.h | 148 bool zcrypt_queue_force_online(struct zcrypt_queue *zq, int online);
|
/drivers/memory/ |
D | emif.c | 309 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 …]
|