Home
last modified time | relevance | path

Searched refs:zq (Results 1 – 5 of 5) 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_api.c577 struct zcrypt_queue *zq, in zcrypt_pick_queue() argument
581 if (!zq || !try_module_get(zq->queue->ap_dev.device.driver->owner)) in zcrypt_pick_queue()
584 zcrypt_queue_get(zq); in zcrypt_pick_queue()
585 get_device(&zq->queue->ap_dev.device); in zcrypt_pick_queue()
587 atomic_add(weight, &zq->load); in zcrypt_pick_queue()
588 zq->request_count++; in zcrypt_pick_queue()
589 *pmod = zq->queue->ap_dev.device.driver->owner; in zcrypt_pick_queue()
590 return zq; in zcrypt_pick_queue()
594 struct zcrypt_queue *zq, in zcrypt_drop_queue() argument
598 zq->request_count--; in zcrypt_drop_queue()
[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()
/linux/drivers/memory/
H A Demif.c301 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()
[all …]