/linux-4.19.296/drivers/s390/crypto/ |
D | zcrypt_queue.c | 45 struct zcrypt_queue *zq = to_ap_queue(dev)->private; in online_show() local 47 return snprintf(buf, PAGE_SIZE, "%d\n", zq->online); in online_show() 54 struct zcrypt_queue *zq = to_ap_queue(dev)->private; in online_store() local 55 struct zcrypt_card *zc = zq->zcard; in online_store() 63 zq->online = online; in online_store() 66 AP_QID_CARD(zq->queue->qid), in online_store() 67 AP_QID_QUEUE(zq->queue->qid), in online_store() 71 ap_flush_queue(zq->queue); in online_store() 81 struct zcrypt_queue *zq = to_ap_queue(dev)->private; in load_show() local 83 return snprintf(buf, PAGE_SIZE, "%d\n", atomic_read(&zq->load)); in load_show() [all …]
|
D | zcrypt_msgtype6.c | 251 static int ICAMEX_msg_to_type6MEX_msgX(struct zcrypt_queue *zq, in ICAMEX_msg_to_type6MEX_msgX() argument 300 msg->cprbx.domain = AP_QID_QUEUE(zq->queue->qid); in ICAMEX_msg_to_type6MEX_msgX() 320 static int ICACRT_msg_to_type6CRT_msgX(struct zcrypt_queue *zq, in ICACRT_msg_to_type6CRT_msgX() argument 370 msg->cprbx.domain = AP_QID_QUEUE(zq->queue->qid); in ICACRT_msg_to_type6CRT_msgX() 601 static int convert_type86_ica(struct zcrypt_queue *zq, in convert_type86_ica() argument 656 AP_QID_CARD(zq->queue->qid), in convert_type86_ica() 657 AP_QID_QUEUE(zq->queue->qid), in convert_type86_ica() 662 zq->zcard->min_mod_size = in convert_type86_ica() 666 AP_QID_CARD(zq->queue->qid), in convert_type86_ica() 667 AP_QID_QUEUE(zq->queue->qid), in convert_type86_ica() [all …]
|
D | zcrypt_api.c | 156 struct zcrypt_queue *zq, in zcrypt_pick_queue() argument 159 if (!zq || !try_module_get(zq->queue->ap_dev.drv->driver.owner)) in zcrypt_pick_queue() 161 zcrypt_queue_get(zq); in zcrypt_pick_queue() 162 get_device(&zq->queue->ap_dev.device); in zcrypt_pick_queue() 164 atomic_add(weight, &zq->load); in zcrypt_pick_queue() 165 zq->request_count++; in zcrypt_pick_queue() 166 return zq; in zcrypt_pick_queue() 170 struct zcrypt_queue *zq, in zcrypt_drop_queue() argument 173 struct module *mod = zq->queue->ap_dev.drv->driver.owner; in zcrypt_drop_queue() 175 zq->request_count--; in zcrypt_drop_queue() [all …]
|
D | zcrypt_cex2a.c | 159 struct zcrypt_queue *zq = NULL; in zcrypt_cex2a_queue_probe() local 164 zq = zcrypt_queue_alloc(CEX2A_MAX_RESPONSE_SIZE); in zcrypt_cex2a_queue_probe() 165 if (!zq) in zcrypt_cex2a_queue_probe() 169 zq = zcrypt_queue_alloc(CEX3A_MAX_RESPONSE_SIZE); in zcrypt_cex2a_queue_probe() 170 if (!zq) in zcrypt_cex2a_queue_probe() 174 if (!zq) in zcrypt_cex2a_queue_probe() 176 zq->ops = zcrypt_msgtype(MSGTYPE50_NAME, MSGTYPE50_VARIANT_DEFAULT); in zcrypt_cex2a_queue_probe() 177 zq->queue = aq; in zcrypt_cex2a_queue_probe() 178 zq->online = 1; in zcrypt_cex2a_queue_probe() 179 atomic_set(&zq->load, 0); in zcrypt_cex2a_queue_probe() [all …]
|
D | zcrypt_cex4.c | 228 struct zcrypt_queue *zq; in zcrypt_cex4_queue_probe() local 232 zq = zcrypt_queue_alloc(CEX4A_MAX_MESSAGE_SIZE); in zcrypt_cex4_queue_probe() 233 if (!zq) in zcrypt_cex4_queue_probe() 235 zq->ops = zcrypt_msgtype(MSGTYPE50_NAME, in zcrypt_cex4_queue_probe() 238 zq = zcrypt_queue_alloc(CEX4C_MAX_MESSAGE_SIZE); in zcrypt_cex4_queue_probe() 239 if (!zq) in zcrypt_cex4_queue_probe() 241 zq->ops = zcrypt_msgtype(MSGTYPE06_NAME, in zcrypt_cex4_queue_probe() 244 zq = zcrypt_queue_alloc(CEX4C_MAX_MESSAGE_SIZE); in zcrypt_cex4_queue_probe() 245 if (!zq) in zcrypt_cex4_queue_probe() 247 zq->ops = zcrypt_msgtype(MSGTYPE06_NAME, in zcrypt_cex4_queue_probe() [all …]
|
D | zcrypt_pcixcc.c | 239 struct zcrypt_queue *zq; in zcrypt_pcixcc_queue_probe() local 242 zq = zcrypt_queue_alloc(PCIXCC_MAX_XCRB_MESSAGE_SIZE); in zcrypt_pcixcc_queue_probe() 243 if (!zq) in zcrypt_pcixcc_queue_probe() 245 zq->queue = aq; in zcrypt_pcixcc_queue_probe() 246 zq->online = 1; in zcrypt_pcixcc_queue_probe() 247 atomic_set(&zq->load, 0); in zcrypt_pcixcc_queue_probe() 250 zcrypt_queue_free(zq); in zcrypt_pcixcc_queue_probe() 254 zq->ops = zcrypt_msgtype(MSGTYPE06_NAME, in zcrypt_pcixcc_queue_probe() 257 zq->ops = zcrypt_msgtype(MSGTYPE06_NAME, in zcrypt_pcixcc_queue_probe() 259 ap_queue_init_reply(aq, &zq->reply); in zcrypt_pcixcc_queue_probe() [all …]
|
D | zcrypt_msgtype50.c | 202 static int ICAMEX_msg_to_type50MEX_msg(struct zcrypt_queue *zq, in ICAMEX_msg_to_type50MEX_msg() argument 263 static int ICACRT_msg_to_type50CRT_msg(struct zcrypt_queue *zq, in ICACRT_msg_to_type50CRT_msg() argument 308 (zq->zcard->max_mod_size == CEX3A_MAX_MOD_SIZE)) { in ICACRT_msg_to_type50CRT_msg() 350 static int convert_type80(struct zcrypt_queue *zq, in convert_type80() argument 360 zq->online = 0; in convert_type80() 362 AP_QID_CARD(zq->queue->qid), in convert_type80() 363 AP_QID_QUEUE(zq->queue->qid)); in convert_type80() 366 AP_QID_CARD(zq->queue->qid), in convert_type80() 367 AP_QID_QUEUE(zq->queue->qid), in convert_type80() 371 if (zq->zcard->user_space_type == ZCRYPT_CEX2A) in convert_type80() [all …]
|
D | zcrypt_error.h | 81 static inline int convert_error(struct zcrypt_queue *zq, in convert_error() argument 85 int card = AP_QID_CARD(zq->queue->qid); in convert_error() 86 int queue = AP_QID_QUEUE(zq->queue->qid); in convert_error() 113 zq->online = 0; in convert_error() 125 zq->online = 0; in convert_error() 133 zq->online = 0; in convert_error()
|
D | zcrypt_card.c | 65 struct zcrypt_queue *zq; in online_store() local 77 list_for_each_entry(zq, &zc->zqueues, list) in online_store() 78 zcrypt_queue_force_online(zq, online); in online_store()
|
/linux-4.19.296/drivers/memory/ |
D | emif.c | 552 u32 zq = 0, val = 0; in get_zq_config_reg() local 555 zq |= val << ZQ_REFINTERVAL_SHIFT; in get_zq_config_reg() 558 zq |= val << ZQ_ZQCL_MULT_SHIFT; in get_zq_config_reg() 561 zq |= val << ZQ_ZQINIT_MULT_SHIFT; in get_zq_config_reg() 563 zq |= ZQ_SFEXITEN_ENABLE << ZQ_SFEXITEN_SHIFT; in get_zq_config_reg() 566 zq |= ZQ_DUALCALEN_ENABLE << ZQ_DUALCALEN_SHIFT; in get_zq_config_reg() 568 zq |= ZQ_DUALCALEN_DISABLE << ZQ_DUALCALEN_SHIFT; in get_zq_config_reg() 570 zq |= ZQ_CS0EN_MASK; /* CS0 is used for sure */ in get_zq_config_reg() 573 zq |= val << ZQ_CS1EN_SHIFT; in get_zq_config_reg() 575 return zq; in get_zq_config_reg() [all …]
|