Lines Matching refs:gen_info_buf
1189 static int sd_parse_ext_reg(struct mmc_card *card, u8 *gen_info_buf, in sd_parse_ext_reg() argument
1205 memcpy(&sfc, &gen_info_buf[ext], 2); in sd_parse_ext_reg()
1208 memcpy(next_ext_addr, &gen_info_buf[ext + 40], 2); in sd_parse_ext_reg()
1211 num_regs = gen_info_buf[ext + 42]; in sd_parse_ext_reg()
1218 memcpy(®_addr, &gen_info_buf[ext + 44], 4); in sd_parse_ext_reg()
1243 u8 num_ext, *gen_info_buf; in sd_read_ext_regs() local
1252 gen_info_buf = kzalloc(512, GFP_KERNEL); in sd_read_ext_regs()
1253 if (!gen_info_buf) in sd_read_ext_regs()
1260 err = sd_read_ext_reg(card, 0, 0, 0, 512, gen_info_buf); in sd_read_ext_regs()
1268 memcpy(&rev, &gen_info_buf[0], 2); in sd_read_ext_regs()
1271 memcpy(&len, &gen_info_buf[2], 2); in sd_read_ext_regs()
1274 num_ext = gen_info_buf[4]; in sd_read_ext_regs()
1294 err = sd_parse_ext_reg(card, gen_info_buf, &next_ext_addr); in sd_read_ext_regs()
1303 kfree(gen_info_buf); in sd_read_ext_regs()