/drivers/s390/crypto/ |
D | zcrypt_cex4.c | 73 struct zcrypt_device *zdev = NULL; in zcrypt_cex4_probe() local 80 zdev = zcrypt_device_alloc(CEX4A_MAX_MESSAGE_SIZE); in zcrypt_cex4_probe() 81 if (!zdev) in zcrypt_cex4_probe() 84 zdev->type_string = "CEX4A"; in zcrypt_cex4_probe() 85 zdev->speed_rating = CEX4A_SPEED_RATING; in zcrypt_cex4_probe() 87 zdev->type_string = "CEX5A"; in zcrypt_cex4_probe() 88 zdev->speed_rating = CEX5A_SPEED_RATING; in zcrypt_cex4_probe() 90 zdev->user_space_type = ZCRYPT_CEX3A; in zcrypt_cex4_probe() 91 zdev->min_mod_size = CEX4A_MIN_MOD_SIZE; in zcrypt_cex4_probe() 94 zdev->max_mod_size = in zcrypt_cex4_probe() [all …]
|
D | zcrypt_api.c | 86 struct zcrypt_device *zdev = to_ap_dev(dev)->private; in zcrypt_type_show() local 87 return snprintf(buf, PAGE_SIZE, "%s\n", zdev->type_string); in zcrypt_type_show() 95 struct zcrypt_device *zdev = to_ap_dev(dev)->private; in zcrypt_online_show() local 96 return snprintf(buf, PAGE_SIZE, "%d\n", zdev->online); in zcrypt_online_show() 103 struct zcrypt_device *zdev = to_ap_dev(dev)->private; in zcrypt_online_store() local 108 zdev->online = online; in zcrypt_online_store() 109 ZCRYPT_DBF_DEV(DBF_INFO, zdev, "dev%04xo%dman", zdev->ap_dev->qid, in zcrypt_online_store() 110 zdev->online); in zcrypt_online_store() 112 ap_flush_queue(zdev->ap_dev); in zcrypt_online_store() 154 static void __zcrypt_increase_preference(struct zcrypt_device *zdev) in __zcrypt_increase_preference() argument [all …]
|
D | zcrypt_cex2a.c | 89 struct zcrypt_device *zdev = NULL; in zcrypt_cex2a_probe() local 94 zdev = zcrypt_device_alloc(CEX2A_MAX_RESPONSE_SIZE); in zcrypt_cex2a_probe() 95 if (!zdev) in zcrypt_cex2a_probe() 97 zdev->user_space_type = ZCRYPT_CEX2A; in zcrypt_cex2a_probe() 98 zdev->type_string = "CEX2A"; in zcrypt_cex2a_probe() 99 zdev->min_mod_size = CEX2A_MIN_MOD_SIZE; in zcrypt_cex2a_probe() 100 zdev->max_mod_size = CEX2A_MAX_MOD_SIZE; in zcrypt_cex2a_probe() 101 zdev->short_crt = 1; in zcrypt_cex2a_probe() 102 zdev->speed_rating = CEX2A_SPEED_RATING; in zcrypt_cex2a_probe() 103 zdev->max_exp_bit_length = CEX2A_MAX_MOD_SIZE; in zcrypt_cex2a_probe() [all …]
|
D | zcrypt_pcixcc.c | 269 struct zcrypt_device *zdev; in zcrypt_pcixcc_probe() local 272 zdev = zcrypt_device_alloc(PCIXCC_MAX_XCRB_MESSAGE_SIZE); in zcrypt_pcixcc_probe() 273 if (!zdev) in zcrypt_pcixcc_probe() 275 zdev->ap_dev = ap_dev; in zcrypt_pcixcc_probe() 276 zdev->online = 1; in zcrypt_pcixcc_probe() 281 zcrypt_device_free(zdev); in zcrypt_pcixcc_probe() 284 zdev->user_space_type = rc; in zcrypt_pcixcc_probe() 286 zdev->type_string = "PCIXCC_MCL2"; in zcrypt_pcixcc_probe() 287 zdev->speed_rating = PCIXCC_MCL2_SPEED_RATING; in zcrypt_pcixcc_probe() 288 zdev->min_mod_size = PCIXCC_MIN_MOD_SIZE_OLD; in zcrypt_pcixcc_probe() [all …]
|
D | zcrypt_msgtype6.c | 161 static int ICAMEX_msg_to_type6MEX_msgX(struct zcrypt_device *zdev, in ICAMEX_msg_to_type6MEX_msgX() argument 207 msg->cprbx.domain = AP_QID_QUEUE(zdev->ap_dev->qid); in ICAMEX_msg_to_type6MEX_msgX() 210 msg->fr = (zdev->user_space_type == ZCRYPT_PCIXCC_MCL2) ? in ICAMEX_msg_to_type6MEX_msgX() 228 static int ICACRT_msg_to_type6CRT_msgX(struct zcrypt_device *zdev, in ICACRT_msg_to_type6CRT_msgX() argument 275 msg->cprbx.domain = AP_QID_QUEUE(zdev->ap_dev->qid); in ICACRT_msg_to_type6CRT_msgX() 279 msg->fr = (zdev->user_space_type == ZCRYPT_PCIXCC_MCL2) ? in ICACRT_msg_to_type6CRT_msgX() 300 static int XCRB_msg_to_type6CPRB_msgX(struct zcrypt_device *zdev, in XCRB_msg_to_type6CPRB_msgX() argument 395 static int xcrb_msg_to_type6_ep11cprb_msgx(struct zcrypt_device *zdev, in xcrb_msg_to_type6_ep11cprb_msgx() argument 463 AP_QID_QUEUE(zdev->ap_dev->qid); in xcrb_msg_to_type6_ep11cprb_msgx() 481 AP_QID_QUEUE(zdev->ap_dev->qid); in xcrb_msg_to_type6_ep11cprb_msgx() [all …]
|
D | zcrypt_error.h | 90 static inline int convert_error(struct zcrypt_device *zdev, in convert_error() argument 113 zdev->online = 0; in convert_error() 115 zdev->ap_dev->qid); in convert_error() 116 ZCRYPT_DBF_DEV(DBF_ERR, zdev, "dev%04xo%drc%d", in convert_error() 117 zdev->ap_dev->qid, zdev->online, ehdr->reply_code); in convert_error() 124 zdev->online = 0; in convert_error() 126 zdev->ap_dev->qid); in convert_error() 127 ZCRYPT_DBF_DEV(DBF_ERR, zdev, "dev%04xo%drc%d", in convert_error() 128 zdev->ap_dev->qid, zdev->online, ehdr->reply_code); in convert_error() 131 zdev->online = 0; in convert_error() [all …]
|
D | zcrypt_msgtype50.c | 185 static int ICAMEX_msg_to_type50MEX_msg(struct zcrypt_device *zdev, in ICAMEX_msg_to_type50MEX_msg() argument 243 static int ICACRT_msg_to_type50CRT_msg(struct zcrypt_device *zdev, in ICACRT_msg_to_type50CRT_msg() argument 286 (zdev->max_mod_size == CEX3A_MAX_MOD_SIZE)) { /* >= CEX3A */ in ICACRT_msg_to_type50CRT_msg() 327 static int convert_type80(struct zcrypt_device *zdev, in convert_type80() argument 337 zdev->online = 0; in convert_type80() 339 zdev->ap_dev->qid); in convert_type80() 340 ZCRYPT_DBF_DEV(DBF_ERR, zdev, "dev%04xo%drc%d", in convert_type80() 341 zdev->ap_dev->qid, zdev->online, t80h->code); in convert_type80() 345 if (zdev->user_space_type == ZCRYPT_CEX2A) in convert_type80() 355 static int convert_response(struct zcrypt_device *zdev, in convert_response() argument [all …]
|
/drivers/pci/hotplug/ |
D | s390_pci_hpc.c | 40 struct zpci_dev *zdev; member 45 int ret = sclp_pci_configure(slot->zdev->fid); in slot_configure() 47 zpci_dbg(3, "conf fid:%x, rc:%d\n", slot->zdev->fid, ret); in slot_configure() 49 slot->zdev->state = ZPCI_FN_STATE_CONFIGURED; in slot_configure() 56 int ret = sclp_pci_deconfigure(slot->zdev->fid); in slot_deconfigure() 58 zpci_dbg(3, "deconf fid:%x, rc:%d\n", slot->zdev->fid, ret); in slot_deconfigure() 60 slot->zdev->state = ZPCI_FN_STATE_STANDBY; in slot_deconfigure() 70 if (slot->zdev->state != ZPCI_FN_STATE_STANDBY) in enable_slot() 77 rc = zpci_enable_device(slot->zdev); in enable_slot() 81 pci_scan_slot(slot->zdev->bus, ZPCI_DEVFN); in enable_slot() [all …]
|
/drivers/iommu/ |
D | s390-iommu.c | 32 struct zpci_dev *zdev; member 88 struct zpci_dev *zdev = to_pci_dev(dev)->sysdata; in s390_iommu_attach_device() local 93 if (!zdev) in s390_iommu_attach_device() 100 if (zdev->dma_table) in s390_iommu_attach_device() 101 zpci_dma_exit_device(zdev); in s390_iommu_attach_device() 103 zdev->dma_table = s390_domain->dma_table; in s390_iommu_attach_device() 104 rc = zpci_register_ioat(zdev, 0, zdev->start_dma + PAGE_OFFSET, in s390_iommu_attach_device() 105 zdev->start_dma + zdev->iommu_size - 1, in s390_iommu_attach_device() 106 (u64) zdev->dma_table); in s390_iommu_attach_device() 113 domain->geometry.aperture_start = zdev->start_dma; in s390_iommu_attach_device() [all …]
|
/drivers/video/fbdev/ |
D | cirrusfb.c | 1945 struct zorro_dev *zdev = to_zorro_dev(info->device); in cirrusfb_zorro_unmap() local 1952 zorro_release_device(zdev); in cirrusfb_zorro_unmap()
|