Lines Matching refs:blksz
99 static void sd_cmd_set_data_len(struct rtsx_pcr *pcr, u16 blocks, u16 blksz) in sd_cmd_set_data_len() argument
103 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD_BYTE_CNT_L, 0xFF, blksz); in sd_cmd_set_data_len()
104 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD_BYTE_CNT_H, 0xFF, blksz >> 8); in sd_cmd_set_data_len()
436 size_t data_len = data->blksz * data->blocks; in sd_read_long_data()
450 sd_cmd_set_data_len(pcr, data->blocks, data->blksz); in sd_read_long_data()
493 size_t data_len = data->blksz * data->blocks; in sd_write_long_data()
509 sd_cmd_set_data_len(pcr, data->blocks, data->blksz); in sd_write_long_data()
585 buf = kzalloc(data->blksz, GFP_NOIO); in sd_normal_rw()
595 cmd->error = sd_read_data(host, cmd, (u16)data->blksz, buf, in sd_normal_rw()
596 data->blksz, 200); in sd_normal_rw()
601 sg_copy_from_buffer(data->sg, data->sg_len, buf, data->blksz); in sd_normal_rw()
603 sg_copy_to_buffer(data->sg, data->sg_len, buf, data->blksz); in sd_normal_rw()
605 cmd->error = sd_write_data(host, cmd, (u16)data->blksz, buf, in sd_normal_rw()
606 data->blksz, 200); in sd_normal_rw()
783 return (cmd->opcode == SD_IO_RW_EXTENDED) && (data->blksz == 512); in sdio_extblock_cmd()
833 data_size = data->blocks * data->blksz; in sd_request()
852 data->bytes_xfered = data->blocks * data->blksz; in sd_request()