Lines Matching refs:ccws
215 memset(card->read.ccws, 0, sizeof (struct ccw1) * (LCS_NUM_BUFFS + 1)); in lcs_setup_read_ccws()
217 card->read.ccws[cnt].cmd_code = LCS_CCW_READ; in lcs_setup_read_ccws()
218 card->read.ccws[cnt].count = LCS_IOBUFFERSIZE; in lcs_setup_read_ccws()
219 card->read.ccws[cnt].flags = in lcs_setup_read_ccws()
225 card->read.ccws[cnt].cda = in lcs_setup_read_ccws()
233 card->read.ccws[0].flags &= ~CCW_FLAG_PCI; in lcs_setup_read_ccws()
234 card->read.ccws[LCS_NUM_BUFFS - 1].flags &= ~CCW_FLAG_PCI; in lcs_setup_read_ccws()
235 card->read.ccws[LCS_NUM_BUFFS - 1].flags |= CCW_FLAG_SUSPEND; in lcs_setup_read_ccws()
237 card->read.ccws[LCS_NUM_BUFFS].cmd_code = LCS_CCW_TRANSFER; in lcs_setup_read_ccws()
238 card->read.ccws[LCS_NUM_BUFFS].cda = in lcs_setup_read_ccws()
239 (__u32)virt_to_phys(card->read.ccws); in lcs_setup_read_ccws()
270 memset(card->write.ccws, 0, sizeof(struct ccw1) * (LCS_NUM_BUFFS + 1)); in lcs_setup_write_ccws()
272 card->write.ccws[cnt].cmd_code = LCS_CCW_WRITE; in lcs_setup_write_ccws()
273 card->write.ccws[cnt].count = 0; in lcs_setup_write_ccws()
274 card->write.ccws[cnt].flags = in lcs_setup_write_ccws()
280 card->write.ccws[cnt].cda = in lcs_setup_write_ccws()
284 card->write.ccws[LCS_NUM_BUFFS].cmd_code = LCS_CCW_TRANSFER; in lcs_setup_write_ccws()
285 card->write.ccws[LCS_NUM_BUFFS].cda = in lcs_setup_write_ccws()
286 (__u32)virt_to_phys(card->write.ccws); in lcs_setup_write_ccws()
484 channel->ccws + channel->io_idx, 0, 0, in lcs_start_channel()
624 if (channel->ccws[channel->io_idx].flags & CCW_FLAG_SUSPEND) in __lcs_resume_channel()
651 if (channel->ccws[next].flags & CCW_FLAG_SUSPEND) { in __lcs_ready_buffer_bits()
653 if (!(channel->ccws[prev].flags & CCW_FLAG_SUSPEND)) in __lcs_ready_buffer_bits()
655 channel->ccws[index].flags |= CCW_FLAG_PCI; in __lcs_ready_buffer_bits()
657 channel->ccws[index].flags &= ~CCW_FLAG_SUSPEND; in __lcs_ready_buffer_bits()
674 channel->ccws[index].count = buffer->count; in lcs_ready_buffer()
699 channel->ccws[index].flags |= CCW_FLAG_SUSPEND; in __lcs_processed_buffer()
700 channel->ccws[index].flags &= ~CCW_FLAG_PCI; in __lcs_processed_buffer()
712 channel->ccws[next].flags &= ~CCW_FLAG_PCI; in __lcs_processed_buffer()
1408 - channel->ccws; in lcs_irq()