Lines Matching refs:idata
41 struct mmc_ioc_cmd idata; in read_extcsd() local
42 memset(&idata, 0, sizeof(idata)); in read_extcsd()
44 idata.write_flag = 0; in read_extcsd()
45 idata.opcode = MMC_SEND_EXT_CSD; in read_extcsd()
46 idata.arg = 0; in read_extcsd()
47 idata.flags = MMC_RSP_SPI_R1 | MMC_RSP_R1 | MMC_CMD_ADTC; in read_extcsd()
48 idata.blksz = 512; in read_extcsd()
49 idata.blocks = 1; in read_extcsd()
50 mmc_ioc_cmd_set_data(idata, ext_csd); in read_extcsd()
52 ret = ioctl(fd, MMC_IOC_CMD, &idata); in read_extcsd()
62 struct mmc_ioc_cmd idata; in write_extcsd_value() local
64 memset(&idata, 0, sizeof(idata)); in write_extcsd_value()
65 idata.write_flag = 1; in write_extcsd_value()
66 idata.opcode = MMC_SWITCH; in write_extcsd_value()
67 idata.arg = (MMC_SWITCH_MODE_WRITE_BYTE << 24) | in write_extcsd_value()
71 idata.flags = MMC_RSP_SPI_R1B | MMC_RSP_R1B | MMC_CMD_AC; in write_extcsd_value()
73 ret = ioctl(fd, MMC_IOC_CMD, &idata); in write_extcsd_value()
83 struct mmc_ioc_cmd idata; in send_status() local
85 memset(&idata, 0, sizeof(idata)); in send_status()
86 idata.opcode = MMC_SEND_STATUS; in send_status()
87 idata.arg = (1 << 16); in send_status()
88 idata.flags = MMC_RSP_R1 | MMC_CMD_AC; in send_status()
90 ret = ioctl(fd, MMC_IOC_CMD, &idata); in send_status()
94 *response = idata.response[0]; in send_status()