Home
last modified time | relevance | path

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

/linux-4.1.27/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.c82 struct zcrypt_device *zdev = to_ap_dev(dev)->private; in zcrypt_type_show() local
83 return snprintf(buf, PAGE_SIZE, "%s\n", zdev->type_string); in zcrypt_type_show()
91 struct zcrypt_device *zdev = to_ap_dev(dev)->private; in zcrypt_online_show() local
92 return snprintf(buf, PAGE_SIZE, "%d\n", zdev->online); in zcrypt_online_show()
99 struct zcrypt_device *zdev = to_ap_dev(dev)->private; in zcrypt_online_store() local
104 zdev->online = online; in zcrypt_online_store()
105 ZCRYPT_DBF_DEV(DBF_INFO, zdev, "dev%04xo%dman", zdev->ap_dev->qid, in zcrypt_online_store()
106 zdev->online); in zcrypt_online_store()
108 ap_flush_queue(zdev->ap_dev); in zcrypt_online_store()
150 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_pcica.c84 static int ICAMEX_msg_to_type4MEX_msg(struct zcrypt_device *zdev, in ICAMEX_msg_to_type4MEX_msg() argument
133 static int ICACRT_msg_to_type4CRT_msg(struct zcrypt_device *zdev, in ICACRT_msg_to_type4CRT_msg() argument
194 static int convert_type84(struct zcrypt_device *zdev, in convert_type84() argument
204 zdev->online = 0; in convert_type84()
206 zdev->ap_dev->qid); in convert_type84()
207 ZCRYPT_DBF_DEV(DBF_ERR, zdev, "dev%04xo%drc%d", in convert_type84()
208 zdev->ap_dev->qid, zdev->online, t84h->code); in convert_type84()
218 static int convert_response(struct zcrypt_device *zdev, in convert_response() argument
227 return convert_error(zdev, reply); in convert_response()
229 return convert_type84(zdev, reply, in convert_response()
[all …]
Dzcrypt_pcicc.c154 static int ICAMEX_msg_to_type6MEX_msg(struct zcrypt_device *zdev, in ICAMEX_msg_to_type6MEX_msg() argument
223 msg->cprb.usage_domain[0]= AP_QID_QUEUE(zdev->ap_dev->qid); in ICAMEX_msg_to_type6MEX_msg()
241 static int ICACRT_msg_to_type6CRT_msg(struct zcrypt_device *zdev, in ICACRT_msg_to_type6CRT_msg() argument
286 msg->cprb.usage_domain[0] = AP_QID_QUEUE(zdev->ap_dev->qid); in ICACRT_msg_to_type6CRT_msg()
315 static int convert_type86(struct zcrypt_device *zdev, in convert_type86() argument
368 zdev->max_mod_size = PCICC_MAX_MOD_SIZE_OLD; in convert_type86()
372 zdev->max_mod_size = PCICC_MAX_MOD_SIZE_OLD; in convert_type86()
377 zdev->online = 0; in convert_type86()
379 zdev->ap_dev->qid); in convert_type86()
380 ZCRYPT_DBF_DEV(DBF_ERR, zdev, "dev%04xo%drc%d", in convert_type86()
[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.1.27/arch/s390/pci/
Dpci.c86 struct zpci_dev *tmp, *zdev = NULL; in get_zdev_by_fid() local
91 zdev = tmp; in get_zdev_by_fid()
96 return zdev; in get_zdev_by_fid()
117 static int zpci_set_airq(struct zpci_dev *zdev) in zpci_set_airq() argument
119 u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, ZPCI_MOD_FC_REG_INT); in zpci_set_airq()
124 fib.noi = airq_iv_end(zdev->aibv); in zpci_set_airq()
125 fib.aibv = (unsigned long) zdev->aibv->vector; in zpci_set_airq()
127 fib.aisb = (unsigned long) zpci_aisb_iv->vector + (zdev->aisb/64)*8; in zpci_set_airq()
128 fib.aisbo = zdev->aisb & 63; in zpci_set_airq()
140 static int mod_pci(struct zpci_dev *zdev, int fn, u8 dmaas, struct mod_pci_args *args) in mod_pci() argument
[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()
117 static void dma_update_cpu_trans(struct zpci_dev *zdev, void *page_addr, in dma_update_cpu_trans() argument
122 entry = dma_walk_cpu_trans(zdev->dma_table, dma_addr); in dma_update_cpu_trans()
142 static int dma_update_trans(struct zpci_dev *zdev, unsigned long pa, in dma_update_trans() argument
154 spin_lock_irqsave(&zdev->dma_table_lock, irq_flags); in dma_update_trans()
155 if (!zdev->dma_table) in dma_update_trans()
159 dma_update_cpu_trans(zdev, page_addr, dma_addr, flags); in dma_update_trans()
171 if (!zdev->tlb_refresh && in dma_update_trans()
[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_event.c48 struct zpci_dev *zdev = get_zdev_by_fid(ccdf->fid); in __zpci_event_error() local
53 if (!zdev) in __zpci_event_error()
57 pci_name(zdev->pdev), ccdf->pec, ccdf->fid); in __zpci_event_error()
68 struct zpci_dev *zdev = get_zdev_by_fid(ccdf->fid); in __zpci_event_availability() local
69 struct pci_dev *pdev = zdev ? zdev->pdev : NULL; in __zpci_event_availability()
79 if (!zdev || zdev->state != ZPCI_FN_STATE_STANDBY) in __zpci_event_availability()
81 zdev->state = ZPCI_FN_STATE_CONFIGURED; in __zpci_event_availability()
82 zdev->fh = ccdf->fh; in __zpci_event_availability()
83 ret = zpci_enable_device(zdev); in __zpci_event_availability()
86 pci_rescan_bus(zdev->bus); in __zpci_event_availability()
[all …]
Dpci_sysfs.c19 struct zpci_dev *zdev = get_zdev(to_pci_dev(dev)); \
21 return sprintf(buf, fmt, zdev->member); \
41 struct zpci_dev *zdev = get_zdev(pdev); in recover_store() local
48 ret = zpci_disable_device(zdev); in recover_store()
52 ret = zpci_enable_device(zdev); in recover_store()
56 pci_rescan_bus(zdev->bus); in recover_store()
67 struct zpci_dev *zdev = get_zdev(pdev); in util_string_read() local
69 return memory_read_from_buffer(buf, count, &off, zdev->util_str, in util_string_read()
70 sizeof(zdev->util_str)); in util_string_read()
/linux-4.1.27/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.1.27/arch/s390/include/asm/
Dpci.h124 static inline bool zdev_enabled(struct zpci_dev *zdev) in zdev_enabled() argument
126 return (zdev->fh & (1UL << 31)) ? true : false; in zdev_enabled()
166 static inline int zpci_init_slot(struct zpci_dev *zdev) in zpci_init_slot() argument
170 static inline void zpci_exit_slot(struct zpci_dev *zdev) {} in zpci_exit_slot() argument
/linux-4.1.27/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()