Lines Matching refs:residue

4284 	len = (flash->residue < BFA_FLASH_DMA_BUF_SZ) ?  in bfa_flash_write_send()
4285 flash->residue : BFA_FLASH_DMA_BUF_SZ; in bfa_flash_write_send()
4289 msg->last = (len == flash->residue) ? 1 : 0; in bfa_flash_write_send()
4297 flash->residue -= len; in bfa_flash_write_send()
4317 len = (flash->residue < BFA_FLASH_DMA_BUF_SZ) ? in bfa_flash_read_send()
4318 flash->residue : BFA_FLASH_DMA_BUF_SZ; in bfa_flash_read_send()
4416 if (status != BFA_STATUS_OK || flash->residue == 0) { in bfa_flash_intr()
4436 flash->residue -= len; in bfa_flash_intr()
4438 if (flash->residue == 0) { in bfa_flash_intr()
4653 flash->residue = len; in bfa_flash_update_part()
4707 flash->residue = len; in bfa_flash_read_part()
5383 len = (phy->residue < BFA_PHY_DMA_BUF_SZ) ? in bfa_phy_write_send()
5384 phy->residue : BFA_PHY_DMA_BUF_SZ; in bfa_phy_write_send()
5388 msg->last = (len == phy->residue) ? 1 : 0; in bfa_phy_write_send()
5402 phy->residue -= len; in bfa_phy_write_send()
5421 len = (phy->residue < BFA_PHY_DMA_BUF_SZ) ? in bfa_phy_read_send()
5422 phy->residue : BFA_PHY_DMA_BUF_SZ; in bfa_phy_read_send()
5646 phy->residue = len; in bfa_phy_update()
5697 phy->residue = len; in bfa_phy_read()
5775 if (status != BFA_STATUS_OK || phy->residue == 0) { in bfa_phy_intr()
5806 phy->residue -= len; in bfa_phy_intr()
5809 if (phy->residue == 0) { in bfa_phy_intr()
6256 len = (fru->residue < BFA_FRU_DMA_BUF_SZ) ? in bfa_fru_write_send()
6257 fru->residue : BFA_FRU_DMA_BUF_SZ; in bfa_fru_write_send()
6263 msg->last = (len == fru->residue) ? 1 : 0; in bfa_fru_write_send()
6265 msg->trfr_cmpl = (len == fru->residue) ? fru->trfr_cmpl : 0; in bfa_fru_write_send()
6272 fru->residue -= len; in bfa_fru_write_send()
6290 len = (fru->residue < BFA_FRU_DMA_BUF_SZ) ? in bfa_fru_read_send()
6291 fru->residue : BFA_FRU_DMA_BUF_SZ; in bfa_fru_read_send()
6405 fru->residue = len; in bfa_fruvpd_update()
6455 fru->residue = len; in bfa_fruvpd_read()
6524 fru->residue = len; in bfa_tfru_write()
6569 fru->residue = len; in bfa_tfru_read()
6607 if (status != BFA_STATUS_OK || fru->residue == 0) { in bfa_fru_intr()
6639 fru->residue -= len; in bfa_fru_intr()
6642 if (fru->residue == 0) { in bfa_fru_intr()
7026 u32 off, l, s, residue, fifo_sz; in bfa_flash_raw_read() local
7028 residue = len; in bfa_flash_raw_read()
7035 while (residue) { in bfa_flash_raw_read()
7039 if (l > residue) in bfa_flash_raw_read()
7040 l = residue; in bfa_flash_raw_read()
7059 residue -= l; in bfa_flash_raw_read()