/drivers/s390/char/ |
D | sclp_early.c | 64 static int __init sclp_cmd_sync_early(sclp_cmdw_t cmd, void *sccb) in sclp_cmd_sync_early() argument 69 rc = sclp_service_call(cmd, sccb); in sclp_cmd_sync_early() 82 static int __init sclp_read_info_early(struct read_info_sccb *sccb) in sclp_read_info_early() argument 90 memset(sccb, 0, sizeof(*sccb)); in sclp_read_info_early() 91 sccb->header.length = sizeof(*sccb); in sclp_read_info_early() 92 sccb->header.function_code = 0x80; in sclp_read_info_early() 93 sccb->header.control_mask[2] = 0x80; in sclp_read_info_early() 94 rc = sclp_cmd_sync_early(commands[i], sccb); in sclp_read_info_early() 99 if (sccb->header.response_code == 0x10) in sclp_read_info_early() 101 if (sccb->header.response_code != 0x1f0) in sclp_read_info_early() [all …]
|
D | sclp_cmd.c | 39 int sclp_sync_request(sclp_cmdw_t cmd, void *sccb) in sclp_sync_request() argument 41 return sclp_sync_request_timeout(cmd, sccb, 0); in sclp_sync_request() 44 int sclp_sync_request_timeout(sclp_cmdw_t cmd, void *sccb, int timeout) in sclp_sync_request_timeout() argument 56 request->sccb = sccb; in sclp_sync_request_timeout() 97 struct read_cpu_info_sccb *sccb) in sclp_fill_core_info() argument 99 char *page = (char *) sccb; in sclp_fill_core_info() 102 info->configured = sccb->nr_configured; in sclp_fill_core_info() 103 info->standby = sccb->nr_standby; in sclp_fill_core_info() 104 info->combined = sccb->nr_configured + sccb->nr_standby; in sclp_fill_core_info() 105 memcpy(&info->core, page + sccb->offset_configured, in sclp_fill_core_info() [all …]
|
D | sclp_sdias.c | 31 static struct sdias_sccb sccb __attribute__((aligned(4096))); variable 80 if (!(sccb.evbuf.hdr.flags & 0x80)) { in sdias_sclp_send() 82 sccb.evbuf.hdr.flags); in sdias_sclp_send() 89 memcpy(&sdias_evbuf, &sccb.evbuf, sizeof(sdias_evbuf)); in sdias_sclp_send() 111 memset(&sccb, 0, sizeof(sccb)); in sclp_sdias_blk_count() 114 sccb.hdr.length = sizeof(sccb); in sclp_sdias_blk_count() 115 sccb.evbuf.hdr.length = sizeof(struct sdias_evbuf); in sclp_sdias_blk_count() 116 sccb.evbuf.hdr.type = EVTYP_SDIAS; in sclp_sdias_blk_count() 117 sccb.evbuf.event_qual = SDIAS_EQ_SIZE; in sclp_sdias_blk_count() 118 sccb.evbuf.data_id = SDIAS_DI_FCP_DUMP; in sclp_sdias_blk_count() [all …]
|
D | sclp_pci.c | 58 struct pci_cfg_sccb *sccb; in do_pci_configure() local 64 sccb = (struct pci_cfg_sccb *) get_zeroed_page(GFP_KERNEL | GFP_DMA); in do_pci_configure() 65 if (!sccb) in do_pci_configure() 68 sccb->header.length = PAGE_SIZE; in do_pci_configure() 69 sccb->atype = SCLP_ATYPE_PCI; in do_pci_configure() 70 sccb->aid = fid; in do_pci_configure() 71 rc = sclp_sync_request(cmd, sccb); in do_pci_configure() 74 switch (sccb->header.response_code) { in do_pci_configure() 80 cmd, sccb->header.response_code); in do_pci_configure() 85 free_page((unsigned long) sccb); in do_pci_configure() [all …]
|
D | sclp_ftp.c | 40 req->sccb, 24, req->sccb); in sclp_ftp_txcb() 87 struct sclp_diag_sccb *sccb; in sclp_ftp_et7() local 93 sccb = (void *) get_zeroed_page(GFP_KERNEL | GFP_DMA); in sclp_ftp_et7() 94 if (!req || !sccb) { in sclp_ftp_et7() 99 sccb->hdr.length = SCLP_DIAG_FTP_EVBUF_LEN + in sclp_ftp_et7() 101 sccb->evbuf.hdr.type = EVTYP_DIAG_TEST; in sclp_ftp_et7() 102 sccb->evbuf.hdr.length = SCLP_DIAG_FTP_EVBUF_LEN; in sclp_ftp_et7() 103 sccb->evbuf.hdr.flags = 0; /* clear processed-buffer */ in sclp_ftp_et7() 104 sccb->evbuf.route = SCLP_DIAG_FTP_ROUTE; in sclp_ftp_et7() 105 sccb->evbuf.mdd.ftp.pcx = SCLP_DIAG_FTP_XPCX; in sclp_ftp_et7() [all …]
|
D | sclp_rw.c | 50 struct sccb_header *sccb; in sclp_make_buffer() local 52 sccb = (struct sccb_header *) page; in sclp_make_buffer() 57 buffer = ((struct sclp_buffer *) ((addr_t) sccb + PAGE_SIZE)) - 1; in sclp_make_buffer() 58 buffer->sccb = sccb; in sclp_make_buffer() 68 memset(sccb, 0, sizeof(struct sccb_header)); in sclp_make_buffer() 69 sccb->length = sizeof(struct sccb_header); in sclp_make_buffer() 81 return buffer->sccb; in sclp_unmake_buffer() 91 struct sccb_header *sccb; in sclp_initialize_mto() local 102 sccb = buffer->sccb; in sclp_initialize_mto() 103 if ((MAX_SCCB_ROOM - sccb->length) < msg_size) in sclp_initialize_mto() [all …]
|
D | sclp_async.c | 26 static struct sclp_async_sccb *sccb; variable 128 sccb->evbuf.header.type = EVTYP_ASYNC; in sclp_async_send_wait() 129 sccb->evbuf.rtype = 0xA5; in sclp_async_send_wait() 130 sccb->evbuf.otype = 0x00; in sclp_async_send_wait() 131 evb = &sccb->evbuf; in sclp_async_send_wait() 133 request->sccb = sccb; in sclp_async_send_wait() 135 strncpy(sccb->evbuf.data, message, sizeof(sccb->evbuf.data)); in sclp_async_send_wait() 140 strncpy(sccb->evbuf.comp_id, CONFIG_SCLP_ASYNC_ID, in sclp_async_send_wait() 141 sizeof(sccb->evbuf.comp_id)); in sclp_async_send_wait() 142 sccb->evbuf.header.length = sizeof(sccb->evbuf); in sclp_async_send_wait() [all …]
|
D | sclp_vt220.c | 127 page = request->sclp_req.sccb; in sclp_vt220_process_queue() 159 struct sclp_vt220_sccb *sccb; in sclp_vt220_callback() local 166 sccb = (struct sclp_vt220_sccb *) vt220_request->sclp_req.sccb; in sclp_vt220_callback() 169 switch (sccb->header.response_code) { in sclp_vt220_callback() 180 if (sclp_remove_processed((struct sccb_header *) sccb) > 0) { in sclp_vt220_callback() 182 sccb->header.response_code = 0x0000; in sclp_vt220_callback() 192 sccb->header.response_code = 0x0000; in sclp_vt220_callback() 227 struct sclp_vt220_sccb *sccb; in sclp_vt220_emit_current() local 231 sccb = (struct sclp_vt220_sccb *) in sclp_vt220_emit_current() 232 sclp_vt220_current_request->sclp_req.sccb; in sclp_vt220_emit_current() [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.c | 152 sclp_service_call(sclp_cmdw_t command, void *sccb) in sclp_service_call() argument 163 : "+&d" (cc) : "d" (command), "a" (__pa(sccb)) in sclp_service_call() 302 rc = sclp_service_call(req->command, req->sccb); in __sclp_start_request() 339 if (!req->sccb) in sclp_process_queue() 403 if (!req->sccb) { in sclp_add_request() 422 sclp_dispatch_evbufs(struct sccb_header *sccb) in sclp_dispatch_evbufs() argument 433 for (offset = sizeof(struct sccb_header); offset < sccb->length; in sclp_dispatch_evbufs() 435 evbuf = (struct evbuf_header *) ((addr_t) sccb + offset); in sclp_dispatch_evbufs() 464 struct sccb_header *sccb; in sclp_read_cb() local 466 sccb = (struct sccb_header *) req->sccb; in sclp_read_cb() [all …]
|
D | sclp_config.c | 93 struct sclp_ofb_sccb *sccb; in sclp_ofb_send_req() local 98 sccb = (struct sclp_ofb_sccb *) get_zeroed_page(GFP_KERNEL | GFP_DMA); in sclp_ofb_send_req() 99 if (!sccb) in sclp_ofb_send_req() 102 sccb->header.length = sizeof(struct sclp_ofb_sccb); in sclp_ofb_send_req() 103 sccb->ofb_evbuf.header.length = sizeof(struct sclp_ofb_evbuf); in sclp_ofb_send_req() 104 sccb->ofb_evbuf.header.type = EVTYP_CONFMGMDATA; in sclp_ofb_send_req() 105 sccb->ofb_evbuf.cm_data.ev_qualifier = EV_QUAL_OPEN4BUSINESS; in sclp_ofb_send_req() 106 memcpy(sccb->ofb_evbuf.ev_data, ev_data, len); in sclp_ofb_send_req() 113 rc = sclp_sync_request(SCLP_CMDW_WRITE_EVENT_DATA, sccb); in sclp_ofb_send_req() 117 response = sccb->header.response_code; in sclp_ofb_send_req() [all …]
|
D | sclp_cpi_sys.c | 81 struct cpi_sccb *sccb; in cpi_prepare_req() local 87 sccb = (struct cpi_sccb *) get_zeroed_page(GFP_KERNEL | GFP_DMA); in cpi_prepare_req() 88 if (!sccb) { in cpi_prepare_req() 94 sccb->header.length = sizeof(struct cpi_sccb); in cpi_prepare_req() 95 sccb->cpi_evbuf.header.length = sizeof(struct cpi_evbuf); in cpi_prepare_req() 96 sccb->cpi_evbuf.header.type = EVTYP_CTLPROGIDENT; in cpi_prepare_req() 97 evb = &sccb->cpi_evbuf; in cpi_prepare_req() 113 req->sccb = sccb; in cpi_prepare_req() 121 free_page((unsigned long) req->sccb); in cpi_free_req() 162 response = ((struct cpi_sccb *) req->sccb)->header.response_code; in cpi_req()
|
D | sclp.h | 132 void *sccb; /* pointer to the sccb to execute */ member 181 int sclp_remove_processed(struct sccb_header *sccb); 184 int sclp_service_call(sclp_cmdw_t command, void *sccb); 185 int sclp_sync_request(sclp_cmdw_t command, void *sccb); 186 int sclp_sync_request_timeout(sclp_cmdw_t command, void *sccb, int timeout);
|
D | sclp_rw.h | 67 void *sccb; member
|
/drivers/scsi/ |
D | FlashPoint.c | 28 struct sccb; 29 typedef void (*CALL_BK_FN) (struct sccb *); 74 struct sccb { struct 108 struct sccb *Sccb_forwardlink; argument 109 struct sccb *Sccb_backlink; argument 212 struct sccb *TarSelQ_Head; 213 struct sccb *TarSelQ_Tail; 249 struct sccb *currentSCCB; 262 struct sccb *discQ_Tbl[QUEUE_DEPTH]; 795 struct sccb *pCurrSCCB); [all …]
|