/drivers/s390/char/ |
D | tape.h | 350 tape_ccw_cc(struct ccw1 *ccw, __u8 cmd_code, __u16 memsize, void *cda) in tape_ccw_cc() argument 352 ccw->cmd_code = cmd_code; in tape_ccw_cc() 353 ccw->flags = CCW_FLAG_CC; in tape_ccw_cc() 354 ccw->count = memsize; in tape_ccw_cc() 355 ccw->cda = (__u32)(addr_t) cda; in tape_ccw_cc() 356 return ccw + 1; in tape_ccw_cc() 360 tape_ccw_end(struct ccw1 *ccw, __u8 cmd_code, __u16 memsize, void *cda) in tape_ccw_end() argument 362 ccw->cmd_code = cmd_code; in tape_ccw_end() 363 ccw->flags = 0; in tape_ccw_end() 364 ccw->count = memsize; in tape_ccw_end() [all …]
|
D | tape_std.c | 275 struct ccw1 *ccw; in tape_std_mtfsf() local 282 ccw = tape_ccw_cc(request->cpaddr, MODE_SET_DB, 1, in tape_std_mtfsf() 284 ccw = tape_ccw_repeat(ccw, FORSPACEFILE, mt_count); in tape_std_mtfsf() 285 ccw = tape_ccw_end(ccw, NOP, 0, NULL); in tape_std_mtfsf() 299 struct ccw1 *ccw; in tape_std_mtfsr() local 307 ccw = tape_ccw_cc(request->cpaddr, MODE_SET_DB, 1, in tape_std_mtfsr() 309 ccw = tape_ccw_repeat(ccw, FORSPACEBLOCK, mt_count); in tape_std_mtfsr() 310 ccw = tape_ccw_end(ccw, NOP, 0, NULL); in tape_std_mtfsr() 331 struct ccw1 *ccw; in tape_std_mtbsr() local 339 ccw = tape_ccw_cc(request->cpaddr, MODE_SET_DB, 1, in tape_std_mtbsr() [all …]
|
D | raw3270.c | 139 rq->ccw.cda = __pa(rq->buffer); in raw3270_request_alloc() 140 rq->ccw.flags = CCW_FLAG_SLI; in raw3270_request_alloc() 162 rq->ccw.cmd_code = 0; in raw3270_request_reset() 163 rq->ccw.count = 0; in raw3270_request_reset() 164 rq->ccw.cda = __pa(rq->buffer); in raw3270_request_reset() 165 rq->ccw.flags = CCW_FLAG_SLI; in raw3270_request_reset() 176 rq->ccw.cmd_code = cmd; in raw3270_request_set_cmd() 185 if (size + rq->ccw.count > rq->size) in raw3270_request_add_data() 187 memcpy(rq->buffer + rq->ccw.count, data, size); in raw3270_request_add_data() 188 rq->ccw.count += size; in raw3270_request_add_data() [all …]
|
D | tape_34xx.c | 1140 struct ccw1 *ccw; in tape_34xx_bread() local 1165 ccw = request->cpaddr; in tape_34xx_bread() 1166 ccw = tape_ccw_cc(ccw, MODE_SET_DB, 1, device->modeset_byte); in tape_34xx_bread() 1176 ccw = tape_ccw_cc(ccw, NOP, 0, NULL); in tape_34xx_bread() 1177 ccw = tape_ccw_cc(ccw, NOP, 0, NULL); in tape_34xx_bread() 1182 ccw->flags = CCW_FLAG_CC; in tape_34xx_bread() 1183 ccw->cmd_code = READ_FORWARD; in tape_34xx_bread() 1184 ccw->count = TAPEBLOCK_HSEC_SIZE; in tape_34xx_bread() 1185 set_normalized_cda(ccw, (void*) __pa(dst)); in tape_34xx_bread() 1186 ccw++; in tape_34xx_bread() [all …]
|
D | con3215.c | 148 struct ccw1 *ccw; in raw3215_mk_read_req() local 160 ccw = req->ccws; in raw3215_mk_read_req() 161 ccw->cmd_code = 0x0A; /* read inquiry */ in raw3215_mk_read_req() 162 ccw->flags = 0x20; /* ignore incorrect length */ in raw3215_mk_read_req() 163 ccw->count = 160; in raw3215_mk_read_req() 164 ccw->cda = (__u32) __pa(raw->inbuf); in raw3215_mk_read_req() 176 struct ccw1 *ccw; in raw3215_mk_write_req() local 193 ccw = req->ccws; in raw3215_mk_write_req() 219 if (ccw > req->ccws) in raw3215_mk_write_req() 220 ccw[-1].flags |= 0x40; /* use command chaining */ in raw3215_mk_write_req() [all …]
|
D | tape_3590.c | 681 struct ccw1 *ccw; in tape_3590_bread() local 700 ccw = request->cpaddr; in tape_3590_bread() 701 ccw = tape_ccw_cc(ccw, MODE_SET_DB, 1, device->modeset_byte); in tape_3590_bread() 708 ccw = tape_ccw_cc(ccw, NOP, 0, NULL); in tape_3590_bread() 713 ccw->flags = CCW_FLAG_CC; in tape_3590_bread() 714 ccw->cmd_code = READ_FORWARD; in tape_3590_bread() 715 ccw->count = TAPEBLOCK_HSEC_SIZE; in tape_3590_bread() 716 set_normalized_cda(ccw, (void *) __pa(dst)); in tape_3590_bread() 717 ccw++; in tape_3590_bread() 722 ccw = tape_ccw_end(ccw, NOP, 0, NULL); in tape_3590_bread() [all …]
|
D | raw3270.h | 99 struct ccw1 ccw; /* single ccw. */ member
|
D | fs3270.c | 138 fp->init->ccw.count = fp->rdbuf_size; in fs3270_activate()
|
/drivers/dma/ |
D | mxs-dma.c | 113 struct mxs_dma_ccw *ccw; member 282 mxs_chan->ccw = dma_alloc_coherent(mxs_dma->dma_device.dev, PAGE_SIZE, in mxs_dma_alloc_chan_resources() 284 if (!mxs_chan->ccw) { in mxs_dma_alloc_chan_resources() 289 memset(mxs_chan->ccw, 0, PAGE_SIZE); in mxs_dma_alloc_chan_resources() 316 mxs_chan->ccw, mxs_chan->ccw_phys); in mxs_dma_alloc_chan_resources() 331 mxs_chan->ccw, mxs_chan->ccw_phys); in mxs_dma_free_chan_resources() 365 struct mxs_dma_ccw *ccw; in mxs_dma_prep_slave_sg() local 391 ccw = &mxs_chan->ccw[idx - 1]; in mxs_dma_prep_slave_sg() 392 ccw->next = mxs_chan->ccw_phys + sizeof(*ccw) * idx; in mxs_dma_prep_slave_sg() 393 ccw->bits |= CCW_CHAIN; in mxs_dma_prep_slave_sg() [all …]
|
/drivers/s390/block/ |
D | dasd_fba.c | 52 MODULE_DEVICE_TABLE(ccw, dasd_fba_ids); 86 define_extent(struct ccw1 * ccw, struct DE_fba_data *data, int rw, in define_extent() argument 89 ccw->cmd_code = DASD_FBA_CCW_DEFINE_EXTENT; in define_extent() 90 ccw->flags = 0; in define_extent() 91 ccw->count = 16; in define_extent() 92 ccw->cda = (__u32) __pa(data); in define_extent() 106 locate_record(struct ccw1 * ccw, struct LO_fba_data *data, int rw, in locate_record() argument 109 ccw->cmd_code = DASD_FBA_CCW_LOCATE; in locate_record() 110 ccw->flags = 0; in locate_record() 111 ccw->count = 8; in locate_record() [all …]
|
D | dasd_eckd.c | 86 MODULE_DEVICE_TABLE(ccw, dasd_eckd_ids); 97 struct ccw1 ccw; member 107 struct ccw1 ccw; member 225 define_extent(struct ccw1 *ccw, struct DE_eckd_data *data, unsigned int trk, in define_extent() argument 235 ccw->cmd_code = DASD_ECKD_CCW_DEFINE_EXTENT; in define_extent() 236 ccw->flags = 0; in define_extent() 237 ccw->count = 16; in define_extent() 238 ccw->cda = (__u32) __pa(data); in define_extent() 260 rc = check_XRC (ccw, data, device); in define_extent() 265 rc = check_XRC (ccw, data, device); in define_extent() [all …]
|
D | dasd_3990_erp.c | 201 struct ccw1 *ccw; in dasd_3990_erp_DCTL() local 219 ccw = dctl_cqr->cpaddr; in dasd_3990_erp_DCTL() 220 memset(ccw, 0, sizeof(struct ccw1)); in dasd_3990_erp_DCTL() 221 ccw->cmd_code = CCW_CMD_DCTL; in dasd_3990_erp_DCTL() 222 ccw->count = 4; in dasd_3990_erp_DCTL() 223 ccw->cda = (__u32)(addr_t) DCTL_data; in dasd_3990_erp_DCTL() 1600 struct ccw1 *ccw, *oldccw; in dasd_3990_erp_action_1B_32() local 1694 ccw = erp->cpaddr; in dasd_3990_erp_action_1B_32() 1695 memset(ccw, 0, sizeof(struct ccw1)); in dasd_3990_erp_action_1B_32() 1696 ccw->cmd_code = DASD_ECKD_CCW_DEFINE_EXTENT; in dasd_3990_erp_action_1B_32() [all …]
|
D | dasd_alias.c | 392 struct ccw1 *ccw; in read_unit_address_configuration() local 414 ccw = cqr->cpaddr; in read_unit_address_configuration() 415 ccw->cmd_code = DASD_ECKD_CCW_PSF; in read_unit_address_configuration() 416 ccw->count = sizeof(struct dasd_psf_prssd_data); in read_unit_address_configuration() 417 ccw->flags |= CCW_FLAG_CC; in read_unit_address_configuration() 418 ccw->cda = (__u32)(addr_t) prssdp; in read_unit_address_configuration() 423 ccw++; in read_unit_address_configuration() 424 ccw->cmd_code = DASD_ECKD_CCW_RSSD; in read_unit_address_configuration() 425 ccw->count = sizeof(*(lcu->uac)); in read_unit_address_configuration() 426 ccw->cda = (__u32)(addr_t) lcu->uac; in read_unit_address_configuration() [all …]
|
D | dasd_eer.c | 459 struct ccw1 *ccw; in dasd_eer_enable() local 478 ccw = cqr->cpaddr; in dasd_eer_enable() 479 ccw->cmd_code = DASD_ECKD_CCW_SNSS; in dasd_eer_enable() 480 ccw->count = SNSS_DATA_SIZE; in dasd_eer_enable() 481 ccw->flags = 0; in dasd_eer_enable() 482 ccw->cda = (__u32)(addr_t) cqr->data; in dasd_eer_enable()
|
D | dasd.c | 1277 struct ccw1 *ccw; in dasd_kfree_request() local 1280 ccw = cqr->cpaddr; in dasd_kfree_request() 1282 clear_normalized_cda(ccw); in dasd_kfree_request() 1283 } while (ccw++->flags & (CCW_FLAG_CC | CCW_FLAG_DC)); in dasd_kfree_request() 3390 struct ccw1 *ccw; in dasd_generic_build_rdc() local 3403 ccw = cqr->cpaddr; in dasd_generic_build_rdc() 3404 ccw->cmd_code = CCW_CMD_RDC; in dasd_generic_build_rdc() 3407 ccw->cda = (__u32)(addr_t) idaw; in dasd_generic_build_rdc() 3408 ccw->flags = CCW_FLAG_IDA; in dasd_generic_build_rdc() 3411 ccw->cda = (__u32)(addr_t) rdc_buffer; in dasd_generic_build_rdc() [all …]
|
D | dasd_int.h | 652 dasd_kmalloc_set_cda(struct ccw1 *ccw, void *cda, struct dasd_device *device) in dasd_kmalloc_set_cda() argument 654 return set_normalized_cda(ccw, cda); in dasd_kmalloc_set_cda()
|
/drivers/s390/net/ |
D | ctcm_mpc.c | 1544 rc = ccw_device_start(ch->cdev, &ch->ccw[15], in mpc_action_send_discontact() 1728 ch->ccw[8].flags = CCW_FLAG_SLI | CCW_FLAG_CC; in mpc_action_side_xid() 1729 ch->ccw[8].count = 0; in mpc_action_side_xid() 1730 ch->ccw[8].cda = 0x00; in mpc_action_side_xid() 1741 ch->ccw[9].cmd_code = CCW_CMD_WRITE; in mpc_action_side_xid() 1742 ch->ccw[9].flags = CCW_FLAG_SLI | CCW_FLAG_CC; in mpc_action_side_xid() 1743 ch->ccw[9].count = TH_HEADER_LENGTH; in mpc_action_side_xid() 1744 ch->ccw[9].cda = virt_to_phys(ch->xid_th); in mpc_action_side_xid() 1748 ch->ccw[10].cmd_code = CCW_CMD_WRITE; in mpc_action_side_xid() 1749 ch->ccw[10].flags = CCW_FLAG_SLI | CCW_FLAG_CC; in mpc_action_side_xid() [all …]
|
D | ctcm_fsms.c | 282 clear_normalized_cda(&ch->ccw[4]); in chx_txdone() 310 ch->ccw[1].count = ch->trans_skb->len; in chx_txdone() 313 rc = ccw_device_start(ch->cdev, &ch->ccw[0], in chx_txdone() 422 ch->ccw[1].count = ch->max_bufsize; in chx_rx() 423 rc = ccw_device_start(ch->cdev, &ch->ccw[0], in chx_rx() 480 ch->ccw[1].count = 2; /* Transfer only length */ in chx_firstio() 484 rc = ccw_device_start(ch->cdev, &ch->ccw[0], in chx_firstio() 531 ch->ccw[1].count = ch->max_bufsize; in chx_rxidle() 533 rc = ccw_device_start(ch->cdev, &ch->ccw[0], in chx_rxidle() 570 CTCM_CCW_DUMP((char *)&ch->ccw[6], sizeof(struct ccw1) * 2); in ctcm_chx_setmode() [all …]
|
D | ctcm_main.c | 221 clear_normalized_cda(&ch->ccw[4]); in channel_remove() 223 clear_normalized_cda(&ch->ccw[1]); in channel_remove() 231 kfree(ch->ccw); in channel_remove() 385 clear_normalized_cda(&ch->ccw[1]); in ctcm_ch_alloc_buffer() 396 ch->ccw[1].count = ch->max_bufsize; in ctcm_ch_alloc_buffer() 397 if (set_normalized_cda(&ch->ccw[1], ch->trans_skb->data)) { in ctcm_ch_alloc_buffer() 408 ch->ccw[1].count = 0; in ctcm_ch_alloc_buffer() 535 ch->ccw[4].count = block_len; in ctcm_transmit_skb() 536 if (set_normalized_cda(&ch->ccw[4], skb->data)) { in ctcm_transmit_skb() 555 ch->ccw[1].count = skb->len; in ctcm_transmit_skb() [all …]
|
D | qeth_core_main.c | 472 rc = ccw_device_start(card->read.ccwdev, &card->read.ccw, in qeth_issue_next_read() 643 memcpy(&channel->ccw, READ_CCW, sizeof(struct ccw1)); in qeth_setup_ccw() 645 memcpy(&channel->ccw, WRITE_CCW, sizeof(struct ccw1)); in qeth_setup_ccw() 646 channel->ccw.count = len; in qeth_setup_ccw() 647 channel->ccw.cda = (__u32) __pa(iob); in qeth_setup_ccw() 1632 channel->ccw.cmd_code = ciw->cmd; in qeth_read_conf_data() 1633 channel->ccw.cda = (__u32) __pa(rcd_buf); in qeth_read_conf_data() 1634 channel->ccw.count = ciw->count; in qeth_read_conf_data() 1635 channel->ccw.flags = CCW_FLAG_SLI; in qeth_read_conf_data() 1638 ret = ccw_device_start_timeout(channel->ccwdev, &channel->ccw, in qeth_read_conf_data() [all …]
|
D | ctcm_main.h | 149 struct ccw1 *ccw; member
|
/drivers/s390/cio/ |
D | qdio_main.c | 1429 irq_ptr->ccw.cmd_code = irq_ptr->equeue.cmd; in qdio_establish() 1430 irq_ptr->ccw.flags = CCW_FLAG_SLI; in qdio_establish() 1431 irq_ptr->ccw.count = irq_ptr->equeue.count; in qdio_establish() 1432 irq_ptr->ccw.cda = (u32)((addr_t)irq_ptr->qdr); in qdio_establish() 1437 rc = ccw_device_start(cdev, &irq_ptr->ccw, QDIO_DOING_ESTABLISH, 0, 0); in qdio_establish() 1499 irq_ptr->ccw.cmd_code = irq_ptr->aqueue.cmd; in qdio_activate() 1500 irq_ptr->ccw.flags = CCW_FLAG_SLI; in qdio_activate() 1501 irq_ptr->ccw.count = irq_ptr->aqueue.count; in qdio_activate() 1502 irq_ptr->ccw.cda = 0; in qdio_activate() 1507 rc = ccw_device_start(cdev, &irq_ptr->ccw, QDIO_DOING_ACTIVATE, in qdio_activate()
|
D | qdio_setup.c | 426 memset(&irq_ptr->ccw, 0, sizeof(irq_ptr->ccw)); in qdio_setup_irq()
|
D | qdio.h | 336 struct ccw1 ccw; member
|
/drivers/s390/scsi/ |
D | zfcp_ccw.c | 72 MODULE_DEVICE_TABLE(ccw, zfcp_ccw_device_id);
|