Lines Matching refs:fno
1019 static int sd_write_ext_reg(struct mmc_card *card, u8 fno, u8 page, u16 offset, in sd_write_ext_reg() argument
1045 cmd.arg = fno << 27 | page << 18 | offset << 9; in sd_write_ext_reg()
1079 static int sd_read_ext_reg(struct mmc_card *card, u8 fno, u8 page, in sd_read_ext_reg() argument
1093 cmd_args = fno << 27 | page << 18 | offset << 9 | (len -1); in sd_read_ext_reg()
1099 static int sd_parse_ext_reg_power(struct mmc_card *card, u8 fno, u8 page, in sd_parse_ext_reg_power() argument
1110 err = sd_read_ext_reg(card, fno, page, offset, 512, reg_buf); in sd_parse_ext_reg_power()
1132 card->ext_power.fno = fno; in sd_parse_ext_reg_power()
1141 static int sd_parse_ext_reg_perf(struct mmc_card *card, u8 fno, u8 page, in sd_parse_ext_reg_perf() argument
1151 err = sd_read_ext_reg(card, fno, page, offset, 512, reg_buf); in sd_parse_ext_reg_perf()
1181 card->ext_perf.fno = fno; in sd_parse_ext_reg_perf()
1193 u8 num_regs, fno, page; in sd_parse_ext_reg() local
1228 fno = reg_addr >> 18 & 0xf; in sd_parse_ext_reg()
1232 return sd_parse_ext_reg_power(card, fno, page, offset); in sd_parse_ext_reg()
1236 return sd_parse_ext_reg_perf(card, fno, page, offset); in sd_parse_ext_reg()
1316 u8 *reg_buf, fno, page; in sd_flush_cache() local
1331 fno = card->ext_perf.fno; in sd_flush_cache()
1335 err = sd_write_ext_reg(card, fno, page, offset, BIT(0)); in sd_flush_cache()
1351 err = sd_read_ext_reg(card, fno, page, offset, 1, reg_buf); in sd_flush_cache()
1380 err = sd_write_ext_reg(card, card->ext_perf.fno, card->ext_perf.page, in sd_enable_cache()
1653 err = sd_read_ext_reg(card, card->ext_power.fno, card->ext_power.page, in sd_busy_poweroff_notify_cb()
1679 err = sd_write_ext_reg(card, card->ext_power.fno, card->ext_power.page, in sd_poweroff_notify()