Home
last modified time | relevance | path

Searched refs:zdev (Results 1 – 17 of 17) sorted by relevance

/linux-4.4.14/drivers/s390/crypto/
Dzcrypt_cex4.c73 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 …]
Dzcrypt_cex2a.c89 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 …]
Dzcrypt_api.c86 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 …]
Dzcrypt_pcixcc.c269 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 …]
Dzcrypt_error.h90 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 …]
Dzcrypt_msgtype6.c161 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 …]
Dzcrypt_msgtype50.c185 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 …]
/linux-4.4.14/arch/s390/pci/
Dpci.c81 struct zpci_dev *tmp, *zdev = NULL; in get_zdev_by_fid() local
86 zdev = tmp; in get_zdev_by_fid()
91 return zdev; in get_zdev_by_fid()
112 static int zpci_set_airq(struct zpci_dev *zdev) in zpci_set_airq() argument
114 u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, ZPCI_MOD_FC_REG_INT); in zpci_set_airq()
119 fib.noi = airq_iv_end(zdev->aibv); in zpci_set_airq()
120 fib.aibv = (unsigned long) zdev->aibv->vector; in zpci_set_airq()
122 fib.aisb = (unsigned long) zpci_aisb_iv->vector + (zdev->aisb/64)*8; in zpci_set_airq()
123 fib.aisbo = zdev->aisb & 63; in zpci_set_airq()
135 static int mod_pci(struct zpci_dev *zdev, int fn, u8 dmaas, struct mod_pci_args *args) in mod_pci() argument
[all …]
Dpci_debug.c44 struct zpci_dev *zdev = m->private; in pci_sw_counter_show() local
45 atomic64_t *counter = &zdev->allocated_pages; in pci_sw_counter_show()
55 struct zpci_dev *zdev = m->private; in pci_perf_show() local
59 if (!zdev) in pci_perf_show()
62 mutex_lock(&zdev->lock); in pci_perf_show()
63 if (!zdev->fmb) { in pci_perf_show()
64 mutex_unlock(&zdev->lock); in pci_perf_show()
70 seq_printf(m, "FMB @ %p\n", zdev->fmb); in pci_perf_show()
71 seq_printf(m, "Update interval: %u ms\n", zdev->fmb_update); in pci_perf_show()
72 seq_printf(m, "Samples: %u\n", zdev->fmb->samples); in pci_perf_show()
[all …]
Dpci_clp.c59 static void clp_store_query_pci_fngrp(struct zpci_dev *zdev, in clp_store_query_pci_fngrp() argument
62 zdev->tlb_refresh = response->refresh; in clp_store_query_pci_fngrp()
63 zdev->dma_mask = response->dasm; in clp_store_query_pci_fngrp()
64 zdev->msi_addr = response->msia; in clp_store_query_pci_fngrp()
65 zdev->max_msi = response->noi; in clp_store_query_pci_fngrp()
66 zdev->fmb_update = response->mui; in clp_store_query_pci_fngrp()
70 zdev->max_bus_speed = PCIE_SPEED_5_0GT; in clp_store_query_pci_fngrp()
73 zdev->max_bus_speed = PCI_SPEED_UNKNOWN; in clp_store_query_pci_fngrp()
78 static int clp_query_pci_fngrp(struct zpci_dev *zdev, u8 pfgid) in clp_query_pci_fngrp() argument
95 clp_store_query_pci_fngrp(zdev, &rrb->response); in clp_query_pci_fngrp()
[all …]
Dpci_dma.c21 static int zpci_refresh_global(struct zpci_dev *zdev) in zpci_refresh_global() argument
23 return zpci_refresh_trans((u64) zdev->fh << 32, zdev->start_dma, in zpci_refresh_global()
24 zdev->iommu_pages * PAGE_SIZE); in zpci_refresh_global()
132 static int dma_update_trans(struct zpci_dev *zdev, unsigned long pa, in dma_update_trans() argument
145 spin_lock_irqsave(&zdev->dma_table_lock, irq_flags); in dma_update_trans()
146 if (!zdev->dma_table) { in dma_update_trans()
152 entry = dma_walk_cpu_trans(zdev->dma_table, dma_addr); in dma_update_trans()
169 if (!zdev->tlb_refresh && in dma_update_trans()
174 rc = zpci_refresh_trans((u64) zdev->fh << 32, start_dma_addr, in dma_update_trans()
182 entry = dma_walk_cpu_trans(zdev->dma_table, dma_addr); in dma_update_trans()
[all …]
Dpci_event.c48 struct zpci_dev *zdev = get_zdev_by_fid(ccdf->fid); in __zpci_event_error() local
49 struct pci_dev *pdev = zdev ? zdev->pdev : NULL; in __zpci_event_error()
66 struct zpci_dev *zdev = get_zdev_by_fid(ccdf->fid); in __zpci_event_availability() local
67 struct pci_dev *pdev = zdev ? zdev->pdev : NULL; in __zpci_event_availability()
77 if (!zdev) { in __zpci_event_availability()
81 zdev = get_zdev_by_fid(ccdf->fid); in __zpci_event_availability()
83 if (!zdev || zdev->state != ZPCI_FN_STATE_STANDBY) in __zpci_event_availability()
85 zdev->state = ZPCI_FN_STATE_CONFIGURED; in __zpci_event_availability()
86 zdev->fh = ccdf->fh; in __zpci_event_availability()
87 ret = zpci_enable_device(zdev); in __zpci_event_availability()
[all …]
Dpci_sysfs.c19 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); \
21 return sprintf(buf, fmt, zdev->member); \
41 struct zpci_dev *zdev = to_zpci(pdev); in recover_store() local
49 ret = zpci_disable_device(zdev); in recover_store()
53 ret = zpci_enable_device(zdev); in recover_store()
57 pci_rescan_bus(zdev->bus); in recover_store()
74 struct zpci_dev *zdev = to_zpci(pdev); in util_string_read() local
76 return memory_read_from_buffer(buf, count, &off, zdev->util_str, in util_string_read()
77 sizeof(zdev->util_str)); in util_string_read()
/linux-4.4.14/drivers/pci/hotplug/
Ds390_pci_hpc.c40 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 …]
/linux-4.4.14/drivers/iommu/
Ds390-iommu.c32 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 …]
/linux-4.4.14/arch/s390/include/asm/
Dpci.h128 static inline bool zdev_enabled(struct zpci_dev *zdev) in zdev_enabled() argument
130 return (zdev->fh & (1UL << 31)) ? true : false; in zdev_enabled()
170 static inline int zpci_init_slot(struct zpci_dev *zdev) in zpci_init_slot() argument
174 static inline void zpci_exit_slot(struct zpci_dev *zdev) {} in zpci_exit_slot() argument
/linux-4.4.14/drivers/video/fbdev/
Dcirrusfb.c1945 struct zorro_dev *zdev = to_zorro_dev(info->device); in cirrusfb_zorro_unmap() local
1952 zorro_release_device(zdev); in cirrusfb_zorro_unmap()