| /linux/drivers/s390/char/ |
| A D | tape.h | 308 ccw->cda = 0; in tape_ccw_cc() 311 return ccw + 1; in tape_ccw_cc() 318 ccw->flags = 0; in tape_ccw_end() 320 ccw->cda = 0; in tape_ccw_end() 323 return ccw + 1; in tape_ccw_end() 332 ccw->cda = virt_to_dma32(&ccw->cmd_code); in tape_ccw_cmd() 343 ccw->cda = virt_to_dma32(&ccw->cmd_code); in tape_ccw_repeat() 344 ccw++; in tape_ccw_repeat() 346 return ccw; in tape_ccw_repeat() 355 return ccw++; in tape_ccw_cc_idal() [all …]
|
| A D | tape_std.c | 278 ccw = tape_ccw_repeat(ccw, FORSPACEFILE, mt_count); in tape_std_mtfsf() 279 ccw = tape_ccw_end(ccw, NOP, 0, NULL); in tape_std_mtfsf() 303 ccw = tape_ccw_repeat(ccw, FORSPACEBLOCK, mt_count); in tape_std_mtfsr() 304 ccw = tape_ccw_end(ccw, NOP, 0, NULL); in tape_std_mtfsr() 336 ccw = tape_ccw_end(ccw, NOP, 0, NULL); in tape_std_mtbsr() 365 ccw = tape_ccw_repeat(ccw, WRITETAPEMARK, mt_count); in tape_std_mtweof() 366 ccw = tape_ccw_end(ccw, NOP, 0, NULL); in tape_std_mtweof() 391 ccw = tape_ccw_end(ccw, NOP, 0, NULL); in tape_std_mtbsfm() 416 ccw = tape_ccw_end(ccw, NOP, 0, NULL); in tape_std_mtbsf() 446 ccw = tape_ccw_repeat(ccw, FORSPACEFILE, mt_count); in tape_std_mtfsfm() [all …]
|
| A D | raw3270.c | 167 rq->ccw.flags = CCW_FLAG_SLI; in raw3270_request_alloc() 190 rq->ccw.cmd_code = 0; in raw3270_request_reset() 191 rq->ccw.count = 0; in raw3270_request_reset() 194 rq->ccw.flags = CCW_FLAG_SLI; in raw3270_request_reset() 206 rq->ccw.cmd_code = cmd; in raw3270_request_set_cmd() 218 rq->ccw.count += size; in raw3270_request_add_data() 228 rq->ccw.cda = virt_to_dma32(data); in raw3270_request_set_data() 229 rq->ccw.count = size; in raw3270_request_set_data() 239 rq->ccw.count = ib->size; in raw3270_request_set_idal() 240 rq->ccw.flags |= CCW_FLAG_IDA; in raw3270_request_set_idal() [all …]
|
| A D | con3215.c | 146 struct ccw1 *ccw; in raw3215_mk_read_req() local 158 ccw = req->ccws; in raw3215_mk_read_req() 161 ccw->count = 160; in raw3215_mk_read_req() 174 struct ccw1 *ccw; in raw3215_mk_write_req() local 191 ccw = req->ccws; in raw3215_mk_write_req() 225 ccw->count = count; in raw3215_mk_write_req() 228 ccw++; in raw3215_mk_write_req() 235 if (ccw > req->ccws) in raw3215_mk_write_req() 238 ccw->flags = 0; in raw3215_mk_write_req() 239 ccw->cda = 0; in raw3215_mk_write_req() [all …]
|
| /linux/drivers/s390/virtio/ |
| A D | virtio_ccw.c | 527 if (!ccw) in virtio_ccw_del_vqs() 535 ccw_device_dma_free(vcdev->cdev, ccw, sizeof(*ccw)); in virtio_ccw_del_vqs() 702 if (!ccw) in virtio_ccw_find_vqs() 779 if (!ccw) in virtio_ccw_reset() 803 if (!ccw) in virtio_ccw_get_features() 865 if (!ccw) in virtio_ccw_finalize_features() 918 if (!ccw) in virtio_ccw_get_config() 958 if (!ccw) in virtio_ccw_set_config() 995 if (!ccw) in virtio_ccw_get_status() 1022 if (!ccw) in virtio_ccw_set_status() [all …]
|
| /linux/drivers/s390/block/ |
| A D | dasd_fba.c | 80 ccw->flags = 0; in define_extent() 81 ccw->count = 16; in define_extent() 100 ccw->flags = 0; in locate_record() 101 ccw->count = 8; in locate_record() 250 ccw->count = 0; in ccw_write_no_data() 517 ccw++; in dasd_fba_build_cp_regular() 534 ccw++; in dasd_fba_build_cp_regular() 578 ccw++; in dasd_fba_free_cp() 580 ccw++; in dasd_fba_free_cp() 586 ccw++; in dasd_fba_free_cp() [all …]
|
| A D | dasd_eckd.c | 1544 ccw++; in dasd_eckd_read_features() 1613 ccw++; in dasd_eckd_read_vol_info() 1797 ccw++; in dasd_eckd_read_ext_pool_info() 2255 ccw++; in dasd_eckd_analysis_ccw() 2640 ccw++; in dasd_eckd_build_check() 4896 ccw++; in dasd_eckd_free_cp() 5302 ccw++; in dasd_eckd_performance() 5451 ccw++; in dasd_symm_io() 5907 ccw++; in dasd_eckd_read_message_buffer() 5995 ccw++; in dasd_eckd_query_host_access() [all …]
|
| A D | dasd_3990_erp.c | 197 struct ccw1 *ccw; in dasd_3990_erp_DCTL() local 218 ccw->count = 4; in dasd_3990_erp_DCTL() 1689 ccw->count = 16; in dasd_3990_erp_action_1B_32() 1693 ccw++; in dasd_3990_erp_action_1B_32() 1697 ccw->count = 16; in dasd_3990_erp_action_1B_32() 1701 ccw++; in dasd_3990_erp_action_1B_32() 1703 ccw->cda = cpa; in dasd_3990_erp_action_1B_32() 1748 struct ccw1 *ccw; in dasd_3990_update_1B() local 1828 ccw->cda = cpa; in dasd_3990_update_1B() 2341 struct ccw1 *ccw; in dasd_3990_erp_add_erp() local [all …]
|
| A D | dasd_alias.c | 412 struct ccw1 *ccw; in read_unit_address_configuration() local 434 ccw = cqr->cpaddr; in read_unit_address_configuration() 435 ccw->cmd_code = DASD_ECKD_CCW_PSF; in read_unit_address_configuration() 437 ccw->flags |= CCW_FLAG_CC; in read_unit_address_configuration() 438 ccw->cda = virt_to_dma32(prssdp); in read_unit_address_configuration() 443 ccw++; in read_unit_address_configuration() 445 ccw->count = sizeof(*(lcu->uac)); in read_unit_address_configuration() 733 struct ccw1 *ccw; in reset_summary_unit_check() local 738 ccw = cqr->cpaddr; in reset_summary_unit_check() 740 ccw->flags = CCW_FLAG_SLI; in reset_summary_unit_check() [all …]
|
| A D | dasd_eer.c | 455 struct ccw1 *ccw; in dasd_eer_enable() local 484 ccw = cqr->cpaddr; in dasd_eer_enable() 485 ccw->cmd_code = DASD_ECKD_CCW_SNSS; in dasd_eer_enable() 486 ccw->count = SNSS_DATA_SIZE; in dasd_eer_enable() 487 ccw->flags = 0; in dasd_eer_enable() 488 ccw->cda = virt_to_dma32(cqr->data); in dasd_eer_enable()
|
| /linux/drivers/dma/ |
| A D | mxs-dma.c | 404 if (!mxs_chan->ccw) { in mxs_dma_alloc_chan_resources() 506 ccw = &mxs_chan->ccw[idx - 1]; in mxs_dma_prep_slave_sg() 507 ccw->next = mxs_chan->ccw_phys + sizeof(*ccw) * idx; in mxs_dma_prep_slave_sg() 516 ccw = &mxs_chan->ccw[idx++]; in mxs_dma_prep_slave_sg() 522 ccw->bits = 0; in mxs_dma_prep_slave_sg() 541 ccw = &mxs_chan->ccw[idx++]; in mxs_dma_prep_slave_sg() 543 ccw->next = mxs_chan->ccw_phys + sizeof(*ccw) * idx; in mxs_dma_prep_slave_sg() 547 ccw->bits = 0; in mxs_dma_prep_slave_sg() 605 struct mxs_dma_ccw *ccw = &mxs_chan->ccw[i]; in mxs_dma_prep_dma_cyclic() local 610 ccw->next = mxs_chan->ccw_phys + sizeof(*ccw) * (i + 1); in mxs_dma_prep_dma_cyclic() [all …]
|
| /linux/drivers/s390/cio/ |
| A D | vfio_ccw_cp.c | 264 if (ccw->count == 0) in ccw_does_data_transfer() 268 if (ccw_is_noop(ccw)) in ccw_does_data_transfer() 280 if (ccw_is_read(ccw) || ccw_is_read_backward(ccw)) in ccw_does_data_transfer() 312 if (!ccw_is_tic(ccw)) in is_tic_within_range() 357 if (ccw_is_tic(ccw)) in ccwchain_cda_free() 392 if (!ccw_is_chain(ccw) && !is_tic_within_range(ccw, iova, cnt)) in ccwchain_calc_length() 395 ccw++; in ccwchain_calc_length() 575 if (ccw->count) in ccw_count_idaws() 576 bytes = ccw->count; in ccw_count_idaws() 674 ccw->cda = 0; in ccwchain_fetch_ccw() [all …]
|
| A D | qdio_main.c | 938 kfree(irq_ptr->ccw); in qdio_free() 968 irq_ptr->ccw = kmalloc(sizeof(*irq_ptr->ccw), GFP_KERNEL | GFP_DMA); in qdio_allocate() 969 if (!irq_ptr->ccw) in qdio_allocate() 973 kmemleak_not_leak(irq_ptr->ccw); in qdio_allocate() 1012 kfree(irq_ptr->ccw); in qdio_allocate() 1088 irq_ptr->ccw->cmd_code = ciw->cmd; in qdio_establish() 1089 irq_ptr->ccw->flags = CCW_FLAG_SLI; in qdio_establish() 1090 irq_ptr->ccw->count = ciw->count; in qdio_establish() 1169 irq_ptr->ccw->cmd_code = ciw->cmd; in qdio_activate() 1171 irq_ptr->ccw->count = ciw->count; in qdio_activate() [all …]
|
| /linux/arch/s390/include/asm/ |
| A D | idals.h | 93 if (ccw->flags & CCW_FLAG_IDA) in set_normalized_cda() 101 ccw->flags |= CCW_FLAG_IDA; in set_normalized_cda() 104 ccw->cda = virt_to_dma32(vaddr); in set_normalized_cda() 113 if (ccw->flags & CCW_FLAG_IDA) { in clear_normalized_cda() 114 kfree(dma32_to_virt(ccw->cda)); in clear_normalized_cda() 115 ccw->flags &= ~CCW_FLAG_IDA; in clear_normalized_cda() 117 ccw->cda = 0; in clear_normalized_cda() 202 ccw->cda = virt_to_dma32(ib->data); in idal_buffer_set_cda() 203 ccw->flags |= CCW_FLAG_IDA; in idal_buffer_set_cda() 211 ccw->cda = virt_to_dma32(vaddr); in idal_buffer_set_cda() [all …]
|
| A D | ipl.h | 24 struct ipl_pb0_ccw ccw; member 86 } ccw; member
|
| /linux/Documentation/driver-api/ |
| A D | s390-drivers.rst | 39 device on the ccw bus and are described below. 40 * I/O subchannels bound to the vfio-ccw driver. See 41 Documentation/arch/s390/vfio-ccw.rst. 47 The ccw bus 50 The ccw bus typically contains the majority of devices available to a 51 s390 system. Named after the channel command word (ccw), the basic 52 command structure used to address its devices, the ccw bus contains 56 subchannel directly, but only via the I/O device on the ccw bus, the ccw 70 ccw devices 75 provides the abstractions of ccw devices and ccw device drivers. [all …]
|
| /linux/drivers/s390/net/ |
| A D | ctcm_mpc.c | 1696 ch->ccw[8].count = 0; in mpc_action_side_xid() 1697 ch->ccw[8].cda = 0x00; in mpc_action_side_xid() 1717 ch->ccw[10].count = XID2_LENGTH; in mpc_action_side_xid() 1727 ch->ccw[12].count = XID2_LENGTH; in mpc_action_side_xid() 1734 ch->ccw[9].cmd_code = CCW_CMD_READ; in mpc_action_side_xid() 1741 ch->ccw[10].count = XID2_LENGTH; in mpc_action_side_xid() 1755 ch->ccw[12].count = XID2_LENGTH; in mpc_action_side_xid() 1765 ch->ccw[13].count = 4; in mpc_action_side_xid() 1768 ch->ccw[14].flags = CCW_FLAG_SLI; in mpc_action_side_xid() 1769 ch->ccw[14].count = 0; in mpc_action_side_xid() [all …]
|
| A D | ctcm_fsms.c | 606 ch->ccw[1].count = 0; in ctcm_chx_start() 610 ch->ccw[1].count = 0; in ctcm_chx_start() 622 ch->ccw[0].count = 0; in ctcm_chx_start() 623 ch->ccw[0].cda = 0; in ctcm_chx_start() 625 ch->ccw[2].flags = CCW_FLAG_SLI; in ctcm_chx_start() 626 ch->ccw[2].count = 0; in ctcm_chx_start() 627 ch->ccw[2].cda = 0; in ctcm_chx_start() 628 memcpy(&ch->ccw[3], &ch->ccw[0], sizeof(struct ccw1) * 3); in ctcm_chx_start() 629 ch->ccw[4].cda = 0; in ctcm_chx_start() 1020 ch->ccw[4].count = skb->len; in ctcm_chx_txretry() [all …]
|
| A D | ctcm_main.c | 230 kfree(ch->ccw); in channel_remove() 384 clear_normalized_cda(&ch->ccw[1]); in ctcm_ch_alloc_buffer() 407 ch->ccw[1].count = 0; in ctcm_ch_alloc_buffer() 534 ch->ccw[4].count = block_len; in ctcm_transmit_skb() 554 ch->ccw[1].count = skb->len; in ctcm_transmit_skb() 755 ch->ccw[4].count = skb->len; in ctcmpc_transmit_skb() 771 ch->ccw[1].count = skb->len; in ctcmpc_transmit_skb() 1332 if (ch->ccw == NULL) in add_channel() 1383 ch->ccw[6].flags = CCW_FLAG_SLI; in add_channel() 1386 ch->ccw[7].flags = CCW_FLAG_SLI; in add_channel() [all …]
|
| /linux/arch/s390/kernel/ |
| A D | ipl_vmparm.c | 16 if ((ipb->ccw.vm_flags & IPL_PB0_CCW_VM_FLAG_VP) && in ipl_block_get_ascii_vmparm() 17 (ipb->ccw.vm_parm_len > 0)) { in ipl_block_get_ascii_vmparm() 19 len = min_t(size_t, size - 1, ipb->ccw.vm_parm_len); in ipl_block_get_ascii_vmparm() 20 memcpy(dest, ipb->ccw.vm_parm, len); in ipl_block_get_ascii_vmparm()
|
| A D | ipl.c | 417 ipl_block.ccw.devno); in sys_ipl_device_show() 757 ipb->ccw.vm_parm_len = ip_len; in reipl_generic_vmparm_store() 760 memcpy(ipb->ccw.vm_parm, buf, ip_len); in reipl_generic_vmparm_store() 761 ASCEBC(ipb->ccw.vm_parm, ip_len); in reipl_generic_vmparm_store() 891 DEFINE_GENERIC_LOADPARM(ccw); 1279 ipb->ccw.vm_parm_len = ipl_block.ccw.vm_parm_len; in reipl_block_ccw_fill_parms() 1280 memcpy(ipb->ccw.vm_parm, in reipl_block_ccw_fill_parms() 1321 reipl_block_ccw->ccw.ssid = ipl_block.ccw.ssid; in reipl_ccw_init() 1322 reipl_block_ccw->ccw.devno = ipl_block.ccw.devno; in reipl_ccw_init() 2310 ipl_info.data.ccw.dev_id.ssid = ipl_block.ccw.ssid; in setup_ipl() [all …]
|
| /linux/drivers/crypto/nx/ |
| A D | nx-common-powernv.c | 461 u32 ccw; in nx842_exec_icswx() local 482 ccw = 0; in nx842_exec_icswx() 483 ccw = SET_FIELD(CCW_CT, ccw, nx842_ct); in nx842_exec_icswx() 484 ccw = SET_FIELD(CCW_CI_842, ccw, 0); /* use 0 for hw auto-selection */ in nx842_exec_icswx() 485 ccw = SET_FIELD(CCW_FC_842, ccw, fc); in nx842_exec_icswx() 490 ret = icswx(cpu_to_be32(ccw), crb); in nx842_exec_icswx() 493 (unsigned int)ccw, in nx842_exec_icswx() 565 u32 ccw; in nx842_exec_vas() local 579 ccw = 0; in nx842_exec_vas() 580 ccw = SET_FIELD(CCW_FC_842, ccw, fc); in nx842_exec_vas() [all …]
|
| /linux/Documentation/arch/s390/ |
| A D | vfio-ccw.rst | 2 vfio-ccw: the basic infrastructure 43 Motivation of vfio-ccw 86 Back to vfio-ccw, in short: 99 Physical vfio ccw device and its child mdev 175 2. Create a mediated vfio ccw device. 190 vfio-ccw I/O region 246 vfio-ccw cmd region 285 vfio-ccw schib region 301 vfio-ccw crw region 321 vfio-ccw operation details [all …]
|
| A D | driver-model.rst | 11 All ccw devices are accessed via a subchannel, this is reflected in the 29 system; it is a pseudo subchannel where disconnected ccw devices are moved to 30 if they are displaced by another ccw device becoming operational on their 31 former subchannel. The ccw devices will be moved again to a proper subchannel 35 be found under bus/ccw/devices/. 37 All ccw devices export some data via sysfs. 69 1.1 Bringing up a ccw device 80 1.2 Writing a driver for ccw devices 249 The ccw driver provides a 'group' attribute. Piping bus ids of ccw devices to 252 ccw device. [all …]
|
| /linux/arch/powerpc/include/asm/ |
| A D | icswx.h | 142 __be32 ccw; member 185 static inline int icswx(__be32 ccw, struct coprocessor_request_block *crb) in icswx() argument 187 __be64 ccw_reg = ccw; in icswx()
|