/linux-4.19.296/drivers/s390/char/ |
D | sclp_early.c | 65 static int __init sclp_early_read_info(struct read_info_sccb *sccb) in sclp_early_read_info() argument 72 memset(sccb, 0, sizeof(*sccb)); in sclp_early_read_info() 73 sccb->header.length = sizeof(*sccb); in sclp_early_read_info() 74 sccb->header.function_code = 0x80; in sclp_early_read_info() 75 sccb->header.control_mask[2] = 0x80; in sclp_early_read_info() 76 if (sclp_early_cmd(commands[i], sccb)) in sclp_early_read_info() 78 if (sccb->header.response_code == 0x10) in sclp_early_read_info() 80 if (sccb->header.response_code != 0x1f0) in sclp_early_read_info() 86 static void __init sclp_early_facilities_detect(struct read_info_sccb *sccb) in sclp_early_facilities_detect() argument 91 if (sclp_early_read_info(sccb)) in sclp_early_facilities_detect() [all …]
|
D | sclp_early_core.c | 59 int sclp_early_cmd(sclp_cmdw_t cmd, void *sccb) in sclp_early_cmd() argument 65 rc = sclp_service_call(cmd, sccb); in sclp_early_cmd() 84 struct write_sccb *sccb; in sclp_early_print_lm() local 90 sccb = (struct write_sccb *) &sclp_early_sccb; in sclp_early_print_lm() 91 end = (unsigned char *) sccb + sizeof(sclp_early_sccb) - 1; in sclp_early_print_lm() 92 memset(sccb, 0, sizeof(*sccb)); in sclp_early_print_lm() 93 ptr = (unsigned char *) &sccb->msg.mdb.mto; in sclp_early_print_lm() 109 len = ptr - (unsigned char *) sccb; in sclp_early_print_lm() 110 sccb->header.length = len - offsetof(struct write_sccb, header); in sclp_early_print_lm() 111 msg = &sccb->msg; in sclp_early_print_lm() [all …]
|
D | sclp_sdias.c | 32 static struct sdias_sccb sccb __attribute__((aligned(4096))); variable 81 if (!(sccb.evbuf.hdr.flags & 0x80)) { in sdias_sclp_send() 83 sccb.evbuf.hdr.flags); in sdias_sclp_send() 90 memcpy(&sdias_evbuf, &sccb.evbuf, sizeof(sdias_evbuf)); in sdias_sclp_send() 112 memset(&sccb, 0, sizeof(sccb)); in sclp_sdias_blk_count() 115 sccb.hdr.length = sizeof(sccb); in sclp_sdias_blk_count() 116 sccb.evbuf.hdr.length = sizeof(struct sdias_evbuf); in sclp_sdias_blk_count() 117 sccb.evbuf.hdr.type = EVTYP_SDIAS; in sclp_sdias_blk_count() 118 sccb.evbuf.event_qual = SDIAS_EQ_SIZE; in sclp_sdias_blk_count() 119 sccb.evbuf.data_id = SDIAS_DI_FCP_DUMP; in sclp_sdias_blk_count() [all …]
|
D | sclp_cmd.c | 40 int sclp_sync_request(sclp_cmdw_t cmd, void *sccb) in sclp_sync_request() argument 42 return sclp_sync_request_timeout(cmd, sccb, 0); in sclp_sync_request() 45 int sclp_sync_request_timeout(sclp_cmdw_t cmd, void *sccb, int timeout) in sclp_sync_request_timeout() argument 57 request->sccb = sccb; in sclp_sync_request_timeout() 90 struct read_cpu_info_sccb *sccb; in _sclp_get_core_info() local 94 sccb = (void *) get_zeroed_page(GFP_KERNEL | GFP_DMA); in _sclp_get_core_info() 95 if (!sccb) in _sclp_get_core_info() 97 sccb->header.length = sizeof(*sccb); in _sclp_get_core_info() 98 rc = sclp_sync_request_timeout(SCLP_CMDW_READ_CPU_INFO, sccb, in _sclp_get_core_info() 102 if (sccb->header.response_code != 0x0010) { in _sclp_get_core_info() [all …]
|
D | sclp_pci.c | 59 struct pci_cfg_sccb *sccb; in do_pci_configure() local 65 sccb = (struct pci_cfg_sccb *) get_zeroed_page(GFP_KERNEL | GFP_DMA); in do_pci_configure() 66 if (!sccb) in do_pci_configure() 69 sccb->header.length = PAGE_SIZE; in do_pci_configure() 70 sccb->atype = SCLP_ATYPE_PCI; in do_pci_configure() 71 sccb->aid = fid; in do_pci_configure() 72 rc = sclp_sync_request(cmd, sccb); in do_pci_configure() 75 switch (sccb->header.response_code) { in do_pci_configure() 81 cmd, sccb->header.response_code); in do_pci_configure() 86 free_page((unsigned long) sccb); in do_pci_configure() [all …]
|
D | sclp.h | 128 #define sccb_get_generic_mask(sccb, i) \ argument 130 __typeof__(sccb) __sccb = sccb; \ 134 #define sccb_get_recv_mask(sccb) sccb_get_generic_mask(sccb, 0) argument 135 #define sccb_get_send_mask(sccb) sccb_get_generic_mask(sccb, 1) argument 136 #define sccb_get_sclp_recv_mask(sccb) sccb_get_generic_mask(sccb, 2) argument 137 #define sccb_get_sclp_send_mask(sccb) sccb_get_generic_mask(sccb, 3) argument 139 #define sccb_set_generic_mask(sccb, i, val) \ argument 141 __typeof__(sccb) __sccb = sccb; \ 145 #define sccb_set_recv_mask(sccb, val) sccb_set_generic_mask(sccb, 0, val) argument 146 #define sccb_set_send_mask(sccb, val) sccb_set_generic_mask(sccb, 1, val) argument [all …]
|
D | sclp_ftp.c | 41 req->sccb, 24, req->sccb); in sclp_ftp_txcb() 88 struct sclp_diag_sccb *sccb; in sclp_ftp_et7() local 94 sccb = (void *) get_zeroed_page(GFP_KERNEL | GFP_DMA); in sclp_ftp_et7() 95 if (!req || !sccb) { in sclp_ftp_et7() 100 sccb->hdr.length = SCLP_DIAG_FTP_EVBUF_LEN + in sclp_ftp_et7() 102 sccb->evbuf.hdr.type = EVTYP_DIAG_TEST; in sclp_ftp_et7() 103 sccb->evbuf.hdr.length = SCLP_DIAG_FTP_EVBUF_LEN; in sclp_ftp_et7() 104 sccb->evbuf.hdr.flags = 0; /* clear processed-buffer */ in sclp_ftp_et7() 105 sccb->evbuf.route = SCLP_DIAG_FTP_ROUTE; in sclp_ftp_et7() 106 sccb->evbuf.mdd.ftp.pcx = SCLP_DIAG_FTP_XPCX; in sclp_ftp_et7() [all …]
|
D | sclp_async.c | 27 static struct sclp_async_sccb *sccb; variable 105 sccb->evbuf.header.type = EVTYP_ASYNC; in sclp_async_send_wait() 106 sccb->evbuf.rtype = 0xA5; in sclp_async_send_wait() 107 sccb->evbuf.otype = 0x00; in sclp_async_send_wait() 108 evb = &sccb->evbuf; in sclp_async_send_wait() 110 request->sccb = sccb; in sclp_async_send_wait() 112 strncpy(sccb->evbuf.data, message, sizeof(sccb->evbuf.data)); in sclp_async_send_wait() 117 strncpy(sccb->evbuf.comp_id, CONFIG_SCLP_ASYNC_ID, in sclp_async_send_wait() 118 sizeof(sccb->evbuf.comp_id)); in sclp_async_send_wait() 119 sccb->evbuf.header.length = sizeof(sccb->evbuf); in sclp_async_send_wait() [all …]
|
D | sclp_rw.c | 51 struct sccb_header *sccb; in sclp_make_buffer() local 53 sccb = (struct sccb_header *) page; in sclp_make_buffer() 58 buffer = ((struct sclp_buffer *) ((addr_t) sccb + PAGE_SIZE)) - 1; in sclp_make_buffer() 59 buffer->sccb = sccb; in sclp_make_buffer() 69 memset(sccb, 0, sizeof(struct sccb_header)); in sclp_make_buffer() 70 sccb->length = sizeof(struct sccb_header); in sclp_make_buffer() 82 return buffer->sccb; in sclp_unmake_buffer() 92 struct sccb_header *sccb; in sclp_initialize_mto() local 103 sccb = buffer->sccb; in sclp_initialize_mto() 104 if ((MAX_SCCB_ROOM - sccb->length) < msg_size) in sclp_initialize_mto() [all …]
|
D | sclp_ctl.c | 58 struct sccb_header *sccb; in sclp_ctl_ioctl_sccb() local 66 sccb = (void *) get_zeroed_page(GFP_KERNEL | GFP_DMA); in sclp_ctl_ioctl_sccb() 67 if (!sccb) in sclp_ctl_ioctl_sccb() 70 copy_from_user(sccb, u64_to_uptr(ctl_sccb.sccb), PAGE_SIZE); in sclp_ctl_ioctl_sccb() 72 sizeof(sccb->length) > copied || sccb->length > copied) { in sclp_ctl_ioctl_sccb() 76 if (sccb->length < 8) { in sclp_ctl_ioctl_sccb() 80 rc = sclp_sync_request(ctl_sccb.cmdw, sccb); in sclp_ctl_ioctl_sccb() 83 if (copy_to_user(u64_to_uptr(ctl_sccb.sccb), sccb, sccb->length)) in sclp_ctl_ioctl_sccb() 86 free_page((unsigned long) sccb); in sclp_ctl_ioctl_sccb()
|
D | sclp_vt220.c | 128 page = request->sclp_req.sccb; in sclp_vt220_process_queue() 160 struct sclp_vt220_sccb *sccb; in sclp_vt220_callback() local 167 sccb = (struct sclp_vt220_sccb *) vt220_request->sclp_req.sccb; in sclp_vt220_callback() 170 switch (sccb->header.response_code) { in sclp_vt220_callback() 181 if (sclp_remove_processed((struct sccb_header *) sccb) > 0) { in sclp_vt220_callback() 183 sccb->header.response_code = 0x0000; in sclp_vt220_callback() 193 sccb->header.response_code = 0x0000; in sclp_vt220_callback() 228 struct sclp_vt220_sccb *sccb; in sclp_vt220_emit_current() local 232 sccb = (struct sclp_vt220_sccb *) in sclp_vt220_emit_current() 233 sclp_vt220_current_request->sclp_req.sccb; in sclp_vt220_emit_current() [all …]
|
D | sclp.c | 279 rc = sclp_service_call(req->command, req->sccb); in __sclp_start_request() 316 if (!req->sccb) in sclp_process_queue() 380 if (!req->sccb) { in sclp_add_request() 399 sclp_dispatch_evbufs(struct sccb_header *sccb) in sclp_dispatch_evbufs() argument 410 for (offset = sizeof(struct sccb_header); offset < sccb->length; in sclp_dispatch_evbufs() 412 evbuf = (struct evbuf_header *) ((addr_t) sccb + offset); in sclp_dispatch_evbufs() 441 struct sccb_header *sccb; in sclp_read_cb() local 443 sccb = (struct sccb_header *) req->sccb; in sclp_read_cb() 444 if (req->status == SCLP_REQ_DONE && (sccb->response_code == 0x20 || in sclp_read_cb() 445 sccb->response_code == 0x220)) in sclp_read_cb() [all …]
|
D | sclp_config.c | 96 struct sclp_ofb_sccb *sccb; in sclp_ofb_send_req() local 101 sccb = (struct sclp_ofb_sccb *) get_zeroed_page(GFP_KERNEL | GFP_DMA); in sclp_ofb_send_req() 102 if (!sccb) in sclp_ofb_send_req() 105 sccb->header.length = sizeof(struct sclp_ofb_sccb); in sclp_ofb_send_req() 106 sccb->ofb_evbuf.header.length = sizeof(struct sclp_ofb_evbuf); in sclp_ofb_send_req() 107 sccb->ofb_evbuf.header.type = EVTYP_CONFMGMDATA; in sclp_ofb_send_req() 108 sccb->ofb_evbuf.cm_data.ev_qualifier = EV_QUAL_OPEN4BUSINESS; in sclp_ofb_send_req() 109 memcpy(sccb->ofb_evbuf.ev_data, ev_data, len); in sclp_ofb_send_req() 116 rc = sclp_sync_request(SCLP_CMDW_WRITE_EVENT_DATA, sccb); in sclp_ofb_send_req() 120 response = sccb->header.response_code; in sclp_ofb_send_req() [all …]
|
D | sclp_cpi_sys.c | 82 struct cpi_sccb *sccb; in cpi_prepare_req() local 88 sccb = (struct cpi_sccb *) get_zeroed_page(GFP_KERNEL | GFP_DMA); in cpi_prepare_req() 89 if (!sccb) { in cpi_prepare_req() 95 sccb->header.length = sizeof(struct cpi_sccb); in cpi_prepare_req() 96 sccb->cpi_evbuf.header.length = sizeof(struct cpi_evbuf); in cpi_prepare_req() 97 sccb->cpi_evbuf.header.type = EVTYP_CTLPROGIDENT; in cpi_prepare_req() 98 evb = &sccb->cpi_evbuf; in cpi_prepare_req() 114 req->sccb = sccb; in cpi_prepare_req() 122 free_page((unsigned long) req->sccb); in cpi_free_req() 163 response = ((struct cpi_sccb *) req->sccb)->header.response_code; in cpi_req()
|
D | sclp_sd.c | 191 struct sclp_sd_sccb *sccb = (void *) page; in sclp_sd_sync() local 196 sclp_sd_listener_init(&listener, (u32) (addr_t) sccb); in sclp_sd_sync() 200 memset(sccb, 0, PAGE_SIZE); in sclp_sd_sync() 201 sccb->hdr.length = sizeof(sccb->hdr) + sizeof(sccb->evbuf); in sclp_sd_sync() 202 evbuf = &sccb->evbuf; in sclp_sd_sync() 216 rc = sclp_sync_request(SCLP_CMDW_WRITE_EVENT_DATA, sccb); in sclp_sd_sync() 222 if (sccb->hdr.response_code == 0x73f0) { in sclp_sd_sync() 227 if (sccb->hdr.response_code != 0x0020 || !(evbuf->hdr.flags & 0x80)) { in sclp_sd_sync() 260 eq, di, sccb->hdr.response_code, evbuf->hdr.flags, in sclp_sd_sync()
|
D | sclp_rw.h | 68 void *sccb; member
|
/linux-4.19.296/drivers/base/regmap/ |
D | Makefile | 18 obj-$(CONFIG_REGMAP_SCCB) += regmap-sccb.o
|