Lines Matching defs:chn
863 int subblk_offset, chn, chnend, rc;
870 chn = idx - 1;
874 chn = tas_priv->index;
875 chnend = chn + 1;
877 chn = 0;
882 for (; chn < chnend; chn++) {
883 if (tas_priv->tasdevice[chn].is_loading == false)
902 rc = tasdevice_dev_write(tas_priv, chn,
934 rc = tasdevice_dev_bulk_write(tas_priv, chn,
971 rc = tas_priv->update_bits(tas_priv, chn,
990 tas_priv->tasdevice[chn].cur_prog = -1;
991 tas_priv->tasdevice[chn].cur_conf = -1;
993 tas_priv->tasdevice[chn].cur_conf = -1;
1007 int j, k, chn, chnend;
1029 chn = blk_data[j]->dev_idx - 1;
1032 chn = 0;
1035 for (; chn < chnend; chn++)
1036 tas_priv->tasdevice[chn].is_loading = true;
1501 unsigned short chn, unsigned char book, unsigned char page,
1536 ret = tasdevice->dev_bulk_read(tasdevice, chn,
1617 struct tasdev_blk *block, int chn, unsigned char book,
1624 ret = tasdev_multibytes_chksum(tas_priv, chn, book, page, reg,
1627 ret = do_singlereg_checksum(tas_priv, chn, book, page, reg,
1642 set_err_prg_cfg(block->type, &tas_priv->tasdevice[chn]);
1649 struct tasdev_blk *block, int chn, unsigned char book,
1657 ret = tasdevice_dev_bulk_write(tas_priv, chn,
1662 ret = tasdev_bytes_chksum(tas_priv, block, chn,
1665 ret = tasdevice_dev_write(tas_priv, chn,
1670 ret = tasdev_bytes_chksum(tas_priv, block, chn, book,
1685 struct tasdev_blk *block, int chn)
1690 ret = tas_priv->dev_read(tas_priv, chn, TASDEVICE_CHECKSUM_REG,
1693 dev_err(tas_priv->dev, "%s: Chn %d\n", __func__, chn);
1694 set_err_prg_cfg(block->type, &tas_priv->tasdevice[chn]);
1700 chn);
1703 tas_priv->tasdevice[chn].err_code |= ERROR_PRAM_CRCCHK;
1709 &tas_priv->tasdevice[chn]);
1711 tas_priv->tasdevice[chn].err_code &= ~ERROR_PRAM_CRCCHK;
1718 struct tasdev_blk *block, int chn)
1733 ret = tasdevice_dev_write(tas_priv, chn,
1755 ret = tasdevice_dev_write(tas_priv, chn,
1762 block, chn, book, page, offset,
1784 block, chn, book, page, offset, data,
1797 ret = tasdev_block_chksum(tas_priv, block, chn);
1811 tas_priv->tasdevice[chn].err_code &=
1828 int chn = 0;
1833 chn = 0;
1839 chn = 0;
1845 chn = 1;
1851 chn = 2;
1857 chn = 3;
1866 for (; chn < chnend; chn++) {
1868 if (tas_priv->tasdevice[chn].is_loading == false)
1870 ret = tasdev_load_blk(tas_priv, block, chn);
1873 chn, block->type);
2402 dev_err(priv->dev, "chn %d r0_reg bulk_wr err = %d\n", i, rc);
2408 dev_err(priv->dev, "chn %d r0_low_reg err = %d\n", i, rc);
2414 dev_err(priv->dev, "chn %d invr0_reg err = %d\n", i, rc);
2420 dev_err(priv->dev, "chn %d pow_reg bulk_wr err = %d\n", i, rc);
2426 dev_err(priv->dev, "chn %d tlimit_reg err = %d\n", i, rc);