Lines Matching refs:book
1367 static bool check_inpage_yram(struct tas_crc *cd, unsigned char book, in check_inpage_yram() argument
1372 if (book == TAS2781_YRAM_BOOK1) { in check_inpage_yram()
1376 if (book == TAS2781_YRAM_BOOK2 && page == TAS2781_YRAM5_PAGE) in check_inpage_yram()
1413 static bool check_inblock_yram(struct tas_crc *cd, unsigned char book, in check_inblock_yram() argument
1418 if (book == TAS2781_YRAM_BOOK1 || book == TAS2781_YRAM_BOOK2) in check_inblock_yram()
1424 static bool check_yram(struct tas_crc *cd, unsigned char book, in check_yram() argument
1429 in = check_inpage_yram(cd, book, page, reg, len); in check_yram()
1432 in = check_inblock_yram(cd, book, page, reg, len); in check_yram()
1439 unsigned short chn, unsigned char book, unsigned char page, in tasdev_multibytes_chksum() argument
1455 if ((book == TASDEVICE_BOOK_ID(TAS2781_SA_COEFF_SWAP_REG)) in tasdev_multibytes_chksum()
1464 in = check_yram(&crc_data, book, page, reg, len); in tasdev_multibytes_chksum()
1475 TASDEVICE_REG(book, page, crc_data.offset), in tasdev_multibytes_chksum()
1481 if ((book == TASDEVICE_BOOK_ID(TAS2781_SA_COEFF_SWAP_REG)) in tasdev_multibytes_chksum()
1503 unsigned short chl, unsigned char book, unsigned char page, in do_singlereg_checksum() argument
1511 if ((book == TASDEVICE_BOOK_ID(TAS2781_SA_COEFF_SWAP_REG)) in do_singlereg_checksum()
1521 in = check_yram(&crc_data, book, page, reg, 1); in do_singlereg_checksum()
1525 TASDEVICE_REG(book, page, reg), &nData1); in do_singlereg_checksum()
1532 book, page, reg, val, nData1); in do_singlereg_checksum()
1555 struct tasdev_blk *block, int chn, unsigned char book, in tasdev_bytes_chksum() argument
1562 ret = tasdev_multibytes_chksum(tas_priv, chn, book, page, reg, in tasdev_bytes_chksum()
1565 ret = do_singlereg_checksum(tas_priv, chn, book, page, reg, in tasdev_bytes_chksum()
1587 struct tasdev_blk *block, int chn, unsigned char book, in tasdev_multibytes_wr() argument
1596 TASDEVICE_REG(book, page, reg), data + 3, len); in tasdev_multibytes_wr()
1601 book, page, reg, len, 0, crc_chksum); in tasdev_multibytes_wr()
1604 TASDEVICE_REG(book, page, reg), data[3]); in tasdev_multibytes_wr()
1608 ret = tasdev_bytes_chksum(tas_priv, block, chn, book, in tasdev_multibytes_wr()
1664 unsigned char book; in tasdev_load_blk() local
1685 book = data[0]; in tasdev_load_blk()
1694 TASDEVICE_REG(book, page, offset), in tasdev_load_blk()
1700 block, chn, book, page, offset, in tasdev_load_blk()
1710 sleep_time = ((book << 8) + page)*1000; in tasdev_load_blk()
1717 len = (book << 8) + page; in tasdev_load_blk()
1718 book = data[0]; in tasdev_load_blk()
1722 block, chn, book, page, offset, data, in tasdev_load_blk()