Lines Matching refs:chn

578 	int subblk_offset, chn, chnend, rc;
585 chn = idx - 1;
588 chn = 0;
592 for (; chn < chnend; chn++) {
593 if (tas_priv->tasdevice[chn].is_loading == false)
612 rc = tasdevice_dev_write(tas_priv, chn,
644 rc = tasdevice_dev_bulk_write(tas_priv, chn,
681 rc = tasdevice_dev_update_bits(tas_priv, chn,
700 tas_priv->tasdevice[chn].cur_prog = -1;
701 tas_priv->tasdevice[chn].cur_conf = -1;
703 tas_priv->tasdevice[chn].cur_conf = -1;
717 int j, k, chn, chnend;
739 chn = blk_data[j]->dev_idx - 1;
742 chn = 0;
745 for (; chn < chnend; chn++)
746 tas_priv->tasdevice[chn].is_loading = true;
1342 unsigned short chn, unsigned char book, unsigned char page,
1377 ret = tasdevice_dev_bulk_read(tasdevice, chn,
1458 struct tasdev_blk *block, int chn, unsigned char book,
1465 ret = tasdev_multibytes_chksum(tas_priv, chn, book, page, reg,
1468 ret = do_singlereg_checksum(tas_priv, chn, book, page, reg,
1483 set_err_prg_cfg(block->type, &tas_priv->tasdevice[chn]);
1490 struct tasdev_blk *block, int chn, unsigned char book,
1498 ret = tasdevice_dev_bulk_write(tas_priv, chn,
1503 ret = tasdev_bytes_chksum(tas_priv, block, chn,
1506 ret = tasdevice_dev_write(tas_priv, chn,
1511 ret = tasdev_bytes_chksum(tas_priv, block, chn, book,
1526 struct tasdev_blk *block, int chn)
1531 ret = tasdevice_dev_read(tas_priv, chn, TASDEVICE_I2CChecksum,
1534 dev_err(tas_priv->dev, "%s: Chn %d\n", __func__, chn);
1535 set_err_prg_cfg(block->type, &tas_priv->tasdevice[chn]);
1541 chn);
1544 tas_priv->tasdevice[chn].err_code |= ERROR_PRAM_CRCCHK;
1550 &tas_priv->tasdevice[chn]);
1552 tas_priv->tasdevice[chn].err_code &= ~ERROR_PRAM_CRCCHK;
1559 struct tasdev_blk *block, int chn)
1574 ret = tasdevice_dev_write(tas_priv, chn,
1596 ret = tasdevice_dev_write(tas_priv, chn,
1603 block, chn, book, page, offset,
1625 block, chn, book, page, offset, data,
1638 ret = tasdev_block_chksum(tas_priv, block, chn);
1652 tas_priv->tasdevice[chn].err_code &=
1669 int chn = 0;
1674 chn = 0;
1680 chn = 0;
1686 chn = 1;
1692 chn = 2;
1698 chn = 3;
1707 for (; chn < chnend; chn++) {
1709 if (tas_priv->tasdevice[chn].is_loading == false)
1711 ret = tasdev_load_blk(tas_priv, block, chn);
1714 chn, block->type);