Lines Matching full:book
1238 static bool check_inpage_yram(struct tas_crc *cd, unsigned char book, in check_inpage_yram() argument
1243 if (book == TAS2781_YRAM_BOOK1) { in check_inpage_yram()
1247 if (book == TAS2781_YRAM_BOOK2 && page == TAS2781_YRAM5_PAGE) in check_inpage_yram()
1284 static bool check_inblock_yram(struct tas_crc *cd, unsigned char book, in check_inblock_yram() argument
1289 if (book == TAS2781_YRAM_BOOK1 || book == TAS2781_YRAM_BOOK2) in check_inblock_yram()
1295 static bool check_yram(struct tas_crc *cd, unsigned char book, in check_yram() argument
1300 in = check_inpage_yram(cd, book, page, reg, len); in check_yram()
1303 in = check_inblock_yram(cd, book, page, reg, len); in check_yram()
1310 unsigned short chn, unsigned char book, unsigned char page, in tasdev_multibytes_chksum() argument
1326 if ((book == TASDEVICE_BOOK_ID(TAS2781_SA_COEFF_SWAP_REG)) in tasdev_multibytes_chksum()
1335 in = check_yram(&crc_data, book, page, reg, len); in tasdev_multibytes_chksum()
1346 TASDEVICE_REG(book, page, crc_data.offset), in tasdev_multibytes_chksum()
1352 if ((book == TASDEVICE_BOOK_ID(TAS2781_SA_COEFF_SWAP_REG)) in tasdev_multibytes_chksum()
1374 unsigned short chl, unsigned char book, unsigned char page, in do_singlereg_checksum() argument
1382 if ((book == TASDEVICE_BOOK_ID(TAS2781_SA_COEFF_SWAP_REG)) in do_singlereg_checksum()
1392 in = check_yram(&crc_data, book, page, reg, 1); in do_singlereg_checksum()
1396 TASDEVICE_REG(book, page, reg), &nData1); in do_singlereg_checksum()
1403 book, page, reg, val, nData1); in do_singlereg_checksum()
1426 struct tasdev_blk *block, int chn, unsigned char book, in tasdev_bytes_chksum() argument
1433 ret = tasdev_multibytes_chksum(tas_priv, chn, book, page, reg, in tasdev_bytes_chksum()
1436 ret = do_singlereg_checksum(tas_priv, chn, book, page, reg, in tasdev_bytes_chksum()
1458 struct tasdev_blk *block, int chn, unsigned char book, in tasdev_multibytes_wr() argument
1467 TASDEVICE_REG(book, page, reg), data + 3, len); in tasdev_multibytes_wr()
1472 book, page, reg, len, 0, crc_chksum); in tasdev_multibytes_wr()
1475 TASDEVICE_REG(book, page, reg), data[3]); in tasdev_multibytes_wr()
1479 ret = tasdev_bytes_chksum(tas_priv, block, chn, book, in tasdev_multibytes_wr()
1535 unsigned char book; in tasdev_load_blk() local
1556 book = data[0]; in tasdev_load_blk()
1565 TASDEVICE_REG(book, page, offset), in tasdev_load_blk()
1571 block, chn, book, page, offset, in tasdev_load_blk()
1580 /*book -- data[0] page -- data[1]*/ in tasdev_load_blk()
1581 sleep_time = ((book << 8) + page)*1000; in tasdev_load_blk()
1588 len = (book << 8) + page; in tasdev_load_blk()
1589 book = data[0]; in tasdev_load_blk()
1593 block, chn, book, page, offset, data, in tasdev_load_blk()