Lines Matching refs:chn

679 	int subblk_offset, chn, chnend, rc;
686 chn = idx - 1;
689 chn = 0;
693 for (; chn < chnend; chn++) {
694 if (tas_priv->tasdevice[chn].is_loading == false)
713 rc = tasdevice_dev_write(tas_priv, chn,
745 rc = tasdevice_dev_bulk_write(tas_priv, chn,
782 rc = tasdevice_dev_update_bits(tas_priv, chn,
801 tas_priv->tasdevice[chn].cur_prog = -1;
802 tas_priv->tasdevice[chn].cur_conf = -1;
804 tas_priv->tasdevice[chn].cur_conf = -1;
818 int j, k, chn, chnend;
840 chn = blk_data[j]->dev_idx - 1;
843 chn = 0;
846 for (; chn < chnend; chn++)
847 tas_priv->tasdevice[chn].is_loading = true;
1312 unsigned short chn, unsigned char book, unsigned char page,
1347 ret = tasdevice_dev_bulk_read(tasdevice, chn,
1428 struct tasdev_blk *block, int chn, unsigned char book,
1435 ret = tasdev_multibytes_chksum(tas_priv, chn, book, page, reg,
1438 ret = do_singlereg_checksum(tas_priv, chn, book, page, reg,
1453 set_err_prg_cfg(block->type, &tas_priv->tasdevice[chn]);
1460 struct tasdev_blk *block, int chn, unsigned char book,
1468 ret = tasdevice_dev_bulk_write(tas_priv, chn,
1473 ret = tasdev_bytes_chksum(tas_priv, block, chn,
1476 ret = tasdevice_dev_write(tas_priv, chn,
1481 ret = tasdev_bytes_chksum(tas_priv, block, chn, book,
1496 struct tasdev_blk *block, int chn)
1501 ret = tasdevice_dev_read(tas_priv, chn, TASDEVICE_I2CChecksum,
1504 dev_err(tas_priv->dev, "%s: Chn %d\n", __func__, chn);
1505 set_err_prg_cfg(block->type, &tas_priv->tasdevice[chn]);
1511 chn);
1514 tas_priv->tasdevice[chn].err_code |= ERROR_PRAM_CRCCHK;
1520 &tas_priv->tasdevice[chn]);
1522 tas_priv->tasdevice[chn].err_code &= ~ERROR_PRAM_CRCCHK;
1529 struct tasdev_blk *block, int chn)
1544 ret = tasdevice_dev_write(tas_priv, chn,
1566 ret = tasdevice_dev_write(tas_priv, chn,
1573 block, chn, book, page, offset,
1595 block, chn, book, page, offset, data,
1608 ret = tasdev_block_chksum(tas_priv, block, chn);
1622 tas_priv->tasdevice[chn].err_code &=
1639 int chn = 0;
1644 chn = 0;
1650 chn = 0;
1656 chn = 1;
1662 chn = 2;
1668 chn = 3;
1677 for (; chn < chnend; chn++) {
1679 if (tas_priv->tasdevice[chn].is_loading == false)
1681 ret = tasdev_load_blk(tas_priv, block, chn);
1684 chn, block->type);