• Home
  • Raw
  • Download

Lines Matching refs:ic

401 	struct mmc_ioc_cmd ic;  member
423 if (copy_from_user(&idata->ic, user, sizeof(idata->ic))) { in mmc_blk_ioctl_copy_from_user()
428 idata->buf_bytes = (u64) idata->ic.blksz * idata->ic.blocks; in mmc_blk_ioctl_copy_from_user()
440 idata->ic.data_ptr, idata->buf_bytes); in mmc_blk_ioctl_copy_from_user()
457 struct mmc_ioc_cmd *ic = &idata->ic; in mmc_blk_ioctl_copy_to_user() local
459 if (copy_to_user(&(ic_ptr->response), ic->response, in mmc_blk_ioctl_copy_to_user()
460 sizeof(ic->response))) in mmc_blk_ioctl_copy_to_user()
463 if (!idata->ic.write_flag) { in mmc_blk_ioctl_copy_to_user()
464 if (copy_to_user((void __user *)(unsigned long)ic->data_ptr, in mmc_blk_ioctl_copy_to_user()
507 cmd.opcode = idata->ic.opcode; in __mmc_blk_ioctl_cmd()
508 cmd.arg = idata->ic.arg; in __mmc_blk_ioctl_cmd()
509 cmd.flags = idata->ic.flags; in __mmc_blk_ioctl_cmd()
514 data.blksz = idata->ic.blksz; in __mmc_blk_ioctl_cmd()
515 data.blocks = idata->ic.blocks; in __mmc_blk_ioctl_cmd()
519 if (idata->ic.write_flag) in __mmc_blk_ioctl_cmd()
528 if (idata->ic.data_timeout_ns) in __mmc_blk_ioctl_cmd()
529 data.timeout_ns = idata->ic.data_timeout_ns; in __mmc_blk_ioctl_cmd()
541 data.timeout_ns = idata->ic.cmd_timeout_ms * 1000000; in __mmc_blk_ioctl_cmd()
553 if (idata->ic.is_acmd) { in __mmc_blk_ioctl_cmd()
566 sbc.arg = data.blocks | (idata->ic.write_flag & BIT(31)); in __mmc_blk_ioctl_cmd()
568 sbc.arg = prev_idata->ic.arg; in __mmc_blk_ioctl_cmd()
575 return mmc_sanitize(card, idata->ic.cmd_timeout_ms); in __mmc_blk_ioctl_cmd()
578 memcpy(&idata->ic.response, cmd.resp, sizeof(cmd.resp)); in __mmc_blk_ioctl_cmd()
581 memcpy(&prev_idata->ic.response, sbc.resp, sizeof(sbc.resp)); in __mmc_blk_ioctl_cmd()
634 if (idata->ic.postsleep_min_us) in __mmc_blk_ioctl_cmd()
635 usleep_range(idata->ic.postsleep_min_us, idata->ic.postsleep_max_us); in __mmc_blk_ioctl_cmd()
642 err = mmc_poll_for_busy(card, idata->ic.cmd_timeout_ms ? : MMC_BLK_TIMEOUT_MS, in __mmc_blk_ioctl_cmd()
677 idata->ic.write_flag ? REQ_OP_DRV_OUT : REQ_OP_DRV_IN, 0); in mmc_blk_ioctl_cmd()
748 idata[0]->ic.write_flag ? REQ_OP_DRV_OUT : REQ_OP_DRV_IN, 0); in mmc_blk_ioctl_multi_cmd()
1073 if (idata[i - 1]->ic.opcode == MMC_SET_BLOCK_COUNT && in mmc_blk_check_sbc()
1074 mmc_op_multi(idata[i]->ic.opcode)) { in mmc_blk_check_sbc()