Home
last modified time | relevance | path

Searched refs:ccw (Results 1 – 25 of 30) sorted by relevance

12

/drivers/s390/virtio/
Dvirtio_ccw.c324 struct ccw1 *ccw, __u32 intparm) in ccw_io_helper() argument
333 ret = ccw_device_start(vcdev->cdev, ccw, intparm, 0, 0); in ccw_io_helper()
349 struct ccw1 *ccw) in virtio_ccw_drop_indicator() argument
364 ccw->cmd_code = CCW_CMD_SET_IND_ADAPTER; in virtio_ccw_drop_indicator()
365 ccw->count = sizeof(*thinint_area); in virtio_ccw_drop_indicator()
366 ccw->cda = (__u32)(unsigned long) thinint_area; in virtio_ccw_drop_indicator()
374 ccw->cmd_code = CCW_CMD_SET_IND; in virtio_ccw_drop_indicator()
375 ccw->count = sizeof(indicators(vcdev)); in virtio_ccw_drop_indicator()
376 ccw->cda = (__u32)(unsigned long) indicatorp; in virtio_ccw_drop_indicator()
380 ccw->flags = 0; in virtio_ccw_drop_indicator()
[all …]
/drivers/s390/char/
Dtape.h303 tape_ccw_cc(struct ccw1 *ccw, __u8 cmd_code, __u16 memsize, void *cda) in tape_ccw_cc() argument
305 ccw->cmd_code = cmd_code; in tape_ccw_cc()
306 ccw->flags = CCW_FLAG_CC; in tape_ccw_cc()
307 ccw->count = memsize; in tape_ccw_cc()
308 ccw->cda = (__u32)(addr_t) cda; in tape_ccw_cc()
309 return ccw + 1; in tape_ccw_cc()
313 tape_ccw_end(struct ccw1 *ccw, __u8 cmd_code, __u16 memsize, void *cda) in tape_ccw_end() argument
315 ccw->cmd_code = cmd_code; in tape_ccw_end()
316 ccw->flags = 0; in tape_ccw_end()
317 ccw->count = memsize; in tape_ccw_end()
[all …]
Dtape_std.c269 struct ccw1 *ccw; in tape_std_mtfsf() local
276 ccw = tape_ccw_cc(request->cpaddr, MODE_SET_DB, 1, in tape_std_mtfsf()
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()
293 struct ccw1 *ccw; in tape_std_mtfsr() local
301 ccw = tape_ccw_cc(request->cpaddr, MODE_SET_DB, 1, in tape_std_mtfsr()
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()
325 struct ccw1 *ccw; in tape_std_mtbsr() local
333 ccw = tape_ccw_cc(request->cpaddr, MODE_SET_DB, 1, in tape_std_mtbsr()
[all …]
Draw3270.c159 rq->ccw.cda = __pa(rq->buffer); in raw3270_request_alloc()
160 rq->ccw.flags = CCW_FLAG_SLI; in raw3270_request_alloc()
182 rq->ccw.cmd_code = 0; in raw3270_request_reset()
183 rq->ccw.count = 0; in raw3270_request_reset()
184 rq->ccw.cda = __pa(rq->buffer); in raw3270_request_reset()
185 rq->ccw.flags = CCW_FLAG_SLI; in raw3270_request_reset()
196 rq->ccw.cmd_code = cmd; in raw3270_request_set_cmd()
205 if (size + rq->ccw.count > rq->size) in raw3270_request_add_data()
207 memcpy(rq->buffer + rq->ccw.count, data, size); in raw3270_request_add_data()
208 rq->ccw.count += size; in raw3270_request_add_data()
[all …]
Dcon3215.c146 struct ccw1 *ccw; in raw3215_mk_read_req() local
158 ccw = req->ccws; in raw3215_mk_read_req()
159 ccw->cmd_code = 0x0A; /* read inquiry */ in raw3215_mk_read_req()
160 ccw->flags = 0x20; /* ignore incorrect length */ in raw3215_mk_read_req()
161 ccw->count = 160; in raw3215_mk_read_req()
162 ccw->cda = (__u32) __pa(raw->inbuf); in raw3215_mk_read_req()
174 struct ccw1 *ccw; in raw3215_mk_write_req() local
191 ccw = req->ccws; in raw3215_mk_write_req()
217 if (ccw > req->ccws) in raw3215_mk_write_req()
218 ccw[-1].flags |= 0x40; /* use command chaining */ in raw3215_mk_write_req()
[all …]
Draw3270.h101 struct ccw1 ccw; /* single ccw. */ member
Dfs3270.c139 fp->init->ccw.count = fp->rdbuf_size; in fs3270_activate()
/drivers/s390/block/
Ddasd_fba.c55 MODULE_DEVICE_TABLE(ccw, dasd_fba_ids);
80 define_extent(struct ccw1 * ccw, struct DE_fba_data *data, int rw, in define_extent() argument
83 ccw->cmd_code = DASD_FBA_CCW_DEFINE_EXTENT; in define_extent()
84 ccw->flags = 0; in define_extent()
85 ccw->count = 16; in define_extent()
86 ccw->cda = (__u32) __pa(data); in define_extent()
100 locate_record(struct ccw1 * ccw, struct LO_fba_data *data, int rw, in locate_record() argument
103 ccw->cmd_code = DASD_FBA_CCW_LOCATE; in locate_record()
104 ccw->flags = 0; in locate_record()
105 ccw->count = 8; in locate_record()
[all …]
Ddasd_eckd.c74 MODULE_DEVICE_TABLE(ccw, dasd_eckd_ids);
87 struct ccw1 ccw; member
94 struct ccw1 ccw[2]; member
110 struct ccw1 ccw; member
252 static int set_timestamp(struct ccw1 *ccw, struct DE_eckd_data *data, in set_timestamp() argument
271 if (ccw) { in set_timestamp()
272 ccw->count = sizeof(struct DE_eckd_data); in set_timestamp()
273 ccw->flags |= CCW_FLAG_SLI; in set_timestamp()
280 define_extent(struct ccw1 *ccw, struct DE_eckd_data *data, unsigned int trk, in define_extent() argument
289 if (ccw) { in define_extent()
[all …]
Ddasd_3990_erp.c201 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()
1618 struct ccw1 *ccw, *oldccw; in dasd_3990_erp_action_1B_32() local
1712 ccw = erp->cpaddr; in dasd_3990_erp_action_1B_32()
1713 memset(ccw, 0, sizeof(struct ccw1)); in dasd_3990_erp_action_1B_32()
1714 ccw->cmd_code = DASD_ECKD_CCW_DEFINE_EXTENT; in dasd_3990_erp_action_1B_32()
[all …]
Ddasd_alias.c420 struct ccw1 *ccw; in read_unit_address_configuration() local
442 ccw = cqr->cpaddr; in read_unit_address_configuration()
443 ccw->cmd_code = DASD_ECKD_CCW_PSF; in read_unit_address_configuration()
444 ccw->count = sizeof(struct dasd_psf_prssd_data); in read_unit_address_configuration()
445 ccw->flags |= CCW_FLAG_CC; in read_unit_address_configuration()
446 ccw->cda = (__u32)(addr_t) prssdp; in read_unit_address_configuration()
451 ccw++; in read_unit_address_configuration()
452 ccw->cmd_code = DASD_ECKD_CCW_RSSD; in read_unit_address_configuration()
453 ccw->count = sizeof(*(lcu->uac)); in read_unit_address_configuration()
454 ccw->cda = (__u32)(addr_t) lcu->uac; in read_unit_address_configuration()
[all …]
Ddasd_eer.c461 struct ccw1 *ccw; in dasd_eer_enable() local
490 ccw = cqr->cpaddr; in dasd_eer_enable()
491 ccw->cmd_code = DASD_ECKD_CCW_SNSS; in dasd_eer_enable()
492 ccw->count = SNSS_DATA_SIZE; in dasd_eer_enable()
493 ccw->flags = 0; in dasd_eer_enable()
494 ccw->cda = (__u32)(addr_t) cqr->data; in dasd_eer_enable()
Ddasd.c3939 struct ccw1 *ccw; in dasd_generic_build_rdc() local
3952 ccw = cqr->cpaddr; in dasd_generic_build_rdc()
3953 ccw->cmd_code = CCW_CMD_RDC; in dasd_generic_build_rdc()
3954 ccw->cda = (__u32)(addr_t) cqr->data; in dasd_generic_build_rdc()
3955 ccw->flags = 0; in dasd_generic_build_rdc()
3956 ccw->count = rdc_buffer_size; in dasd_generic_build_rdc()
/drivers/dma/
Dmxs-dma.c115 struct mxs_dma_ccw *ccw; member
402 mxs_chan->ccw = dma_alloc_coherent(mxs_dma->dma_device.dev, in mxs_dma_alloc_chan_resources()
405 if (!mxs_chan->ccw) { in mxs_dma_alloc_chan_resources()
433 mxs_chan->ccw, mxs_chan->ccw_phys); in mxs_dma_alloc_chan_resources()
448 mxs_chan->ccw, mxs_chan->ccw_phys); in mxs_dma_free_chan_resources()
482 struct mxs_dma_ccw *ccw; in mxs_dma_prep_slave_sg() local
507 ccw = &mxs_chan->ccw[idx - 1]; in mxs_dma_prep_slave_sg()
508 ccw->next = mxs_chan->ccw_phys + sizeof(*ccw) * idx; in mxs_dma_prep_slave_sg()
509 ccw->bits |= CCW_CHAIN; in mxs_dma_prep_slave_sg()
510 ccw->bits &= ~CCW_IRQ; in mxs_dma_prep_slave_sg()
[all …]
/drivers/s390/cio/
Dvfio_ccw_cp.c300 static inline int ccw_does_data_transfer(struct ccw1 *ccw) in ccw_does_data_transfer() argument
303 if (ccw->count == 0) in ccw_does_data_transfer()
307 if (ccw_is_noop(ccw)) in ccw_does_data_transfer()
311 if (!ccw_is_skip(ccw)) in ccw_does_data_transfer()
319 if (ccw_is_read(ccw) || ccw_is_read_backward(ccw)) in ccw_does_data_transfer()
322 if (ccw_is_sense(ccw)) in ccw_does_data_transfer()
348 static inline int is_tic_within_range(struct ccw1 *ccw, u32 head, int len) in is_tic_within_range() argument
350 if (!ccw_is_tic(ccw)) in is_tic_within_range()
353 return is_cpa_within_range(ccw->cda, head, len); in is_tic_within_range()
392 struct ccw1 *ccw = chain->ch_ccw + idx; in ccwchain_cda_free() local
[all …]
Dqdio_main.c920 kfree(irq_ptr->ccw); in qdio_free()
950 irq_ptr->ccw = kmalloc(sizeof(*irq_ptr->ccw), GFP_KERNEL | GFP_DMA); in qdio_allocate()
951 if (!irq_ptr->ccw) in qdio_allocate()
955 kmemleak_not_leak(irq_ptr->ccw); in qdio_allocate()
994 kfree(irq_ptr->ccw); in qdio_allocate()
1070 irq_ptr->ccw->cmd_code = ciw->cmd; in qdio_establish()
1071 irq_ptr->ccw->flags = CCW_FLAG_SLI; in qdio_establish()
1072 irq_ptr->ccw->count = ciw->count; in qdio_establish()
1073 irq_ptr->ccw->cda = (u32) virt_to_phys(irq_ptr->qdr); in qdio_establish()
1078 rc = ccw_device_start(cdev, irq_ptr->ccw, QDIO_DOING_ESTABLISH, 0, 0); in qdio_establish()
[all …]
Dblacklist.c179 from_ssid = ipl_info.data.ccw.dev_id.ssid; in blacklist_parse_parameters()
180 from = ipl_info.data.ccw.dev_id.devno; in blacklist_parse_parameters()
Dqdio.h239 struct ccw1 *ccw; member
/drivers/s390/net/
Dctcm_mpc.c1510 rc = ccw_device_start(ch->cdev, &ch->ccw[15], 0, 0xff, 0); in mpc_action_send_discontact()
1692 ch->ccw[8].flags = CCW_FLAG_SLI | CCW_FLAG_CC; in mpc_action_side_xid()
1693 ch->ccw[8].count = 0; in mpc_action_side_xid()
1694 ch->ccw[8].cda = 0x00; in mpc_action_side_xid()
1705 ch->ccw[9].cmd_code = CCW_CMD_WRITE; in mpc_action_side_xid()
1706 ch->ccw[9].flags = CCW_FLAG_SLI | CCW_FLAG_CC; in mpc_action_side_xid()
1707 ch->ccw[9].count = TH_HEADER_LENGTH; in mpc_action_side_xid()
1708 ch->ccw[9].cda = virt_to_phys(ch->xid_th); in mpc_action_side_xid()
1712 ch->ccw[10].cmd_code = CCW_CMD_WRITE; in mpc_action_side_xid()
1713 ch->ccw[10].flags = CCW_FLAG_SLI | CCW_FLAG_CC; in mpc_action_side_xid()
[all …]
Dctcm_fsms.c279 clear_normalized_cda(&ch->ccw[4]); in chx_txdone()
307 ch->ccw[1].count = ch->trans_skb->len; in chx_txdone()
310 rc = ccw_device_start(ch->cdev, &ch->ccw[0], 0, 0xff, 0); in chx_txdone()
418 ch->ccw[1].count = ch->max_bufsize; in chx_rx()
419 rc = ccw_device_start(ch->cdev, &ch->ccw[0], 0, 0xff, 0); in chx_rx()
475 ch->ccw[1].count = 2; /* Transfer only length */ in chx_firstio()
479 rc = ccw_device_start(ch->cdev, &ch->ccw[0], 0, 0xff, 0); in chx_firstio()
525 ch->ccw[1].count = ch->max_bufsize; in chx_rxidle()
527 rc = ccw_device_start(ch->cdev, &ch->ccw[0], 0, 0xff, 0); in chx_rxidle()
563 CTCM_CCW_DUMP((char *)&ch->ccw[6], sizeof(struct ccw1) * 2); in ctcm_chx_setmode()
[all …]
Dctcm_main.c220 clear_normalized_cda(&ch->ccw[4]); in channel_remove()
222 clear_normalized_cda(&ch->ccw[1]); in channel_remove()
230 kfree(ch->ccw); in channel_remove()
384 clear_normalized_cda(&ch->ccw[1]); in ctcm_ch_alloc_buffer()
395 ch->ccw[1].count = ch->max_bufsize; in ctcm_ch_alloc_buffer()
396 if (set_normalized_cda(&ch->ccw[1], ch->trans_skb->data)) { 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()
535 if (set_normalized_cda(&ch->ccw[4], skb->data)) { in ctcm_transmit_skb()
554 ch->ccw[1].count = skb->len; in ctcm_transmit_skb()
[all …]
Dctcm_main.h148 struct ccw1 *ccw; member
Dqeth_core_main.c423 static void qeth_setup_ccw(struct ccw1 *ccw, u8 cmd_code, u8 flags, u32 len, in qeth_setup_ccw() argument
426 ccw->cmd_code = cmd_code; in qeth_setup_ccw()
427 ccw->flags = flags | CCW_FLAG_SLI; in qeth_setup_ccw()
428 ccw->count = len; in qeth_setup_ccw()
429 ccw->cda = (__u32)virt_to_phys(data); in qeth_setup_ccw()
436 struct ccw1 *ccw = __ccw_from_cmd(iob); in __qeth_issue_next_read() local
444 qeth_setup_ccw(ccw, CCW_CMD_READ, 0, iob->length, iob->data); in __qeth_issue_next_read()
450 rc = ccw_device_start(channel->ccwdev, ccw, (addr_t) iob, 0, 0); in __qeth_issue_next_read()
2224 struct ccw1 *ccw = __ccw_from_cmd(iob); in qeth_idx_setup_activate_cmd() local
2226 qeth_setup_ccw(&ccw[0], CCW_CMD_WRITE, CCW_FLAG_CC, IDX_ACTIVATE_SIZE, in qeth_idx_setup_activate_cmd()
[all …]
/drivers/crypto/nx/
Dnx-common-powernv.c464 u32 ccw; in nx842_exec_icswx() local
485 ccw = 0; in nx842_exec_icswx()
486 ccw = SET_FIELD(CCW_CT, ccw, nx842_ct); in nx842_exec_icswx()
487 ccw = SET_FIELD(CCW_CI_842, ccw, 0); /* use 0 for hw auto-selection */ in nx842_exec_icswx()
488 ccw = SET_FIELD(CCW_FC_842, ccw, fc); in nx842_exec_icswx()
493 ret = icswx(cpu_to_be32(ccw), crb); in nx842_exec_icswx()
496 (unsigned int)ccw, in nx842_exec_icswx()
497 (unsigned int)be32_to_cpu(crb->ccw)); in nx842_exec_icswx()
568 u32 ccw; in nx842_exec_vas() local
582 ccw = 0; in nx842_exec_vas()
[all …]
/drivers/s390/scsi/
Dzfcp_ccw.c87 MODULE_DEVICE_TABLE(ccw, zfcp_ccw_device_id);

12