Lines Matching defs:offset

1924 		 * handle page offset wrap around
2036 * @param[in] soff smem offset
2071 * handle page offset wrap around
2095 * @param[in] soff smem offset
2127 * handle page offset wrap around
3020 u32 *offset, int *buflen)
3027 if (*offset >= smem_len) {
3028 *offset = *buflen = 0;
3032 loff = *offset;
3048 *offset = *buflen = 0;
3052 *offset += dlen;
3054 if (*offset >= smem_len)
3055 *offset = 0;
4270 msg->offset = be32_to_cpu(flash->addr_off + flash->offset);
4281 memcpy(flash->dbuf_kva, flash->ubuf + flash->offset, len);
4285 flash->offset += len;
4303 msg->offset = be32_to_cpu(flash->addr_off + flash->offset);
4407 bfa_trc(flash, flash->offset);
4419 bfa_trc(flash, flash->offset);
4421 memcpy(flash->ubuf + flash->offset,
4424 flash->offset += len;
4600 * @param[in] offset - offset relative to the partition starting address
4608 u8 instance, void *buf, u32 len, u32 offset,
4615 bfa_trc(flash, offset);
4622 * 'offset' must be in sector (16kb) boundary
4624 if (!len || (len & 0x03) || (offset & 0x00003FFF))
4641 flash->offset = 0;
4642 flash->addr_off = offset;
4657 * @param[in] offset - offset relative to the partition starting address
4665 u8 instance, void *buf, u32 len, u32 offset,
4672 bfa_trc(flash, offset);
4679 * 'offset' must be in sector (16kb) boundary
4681 if (!len || (len & 0x03) || (offset & 0x00003FFF))
4695 flash->offset = 0;
4696 flash->addr_off = offset;
5367 msg->offset = cpu_to_be32(phy->addr_off + phy->offset);
5379 buf = (u16 *) (phy->ubuf + phy->offset);
5388 phy->offset += len;
5405 msg->offset = cpu_to_be32(phy->addr_off + phy->offset);
5596 * @param[in] offset - offset relative to starting address
5604 void *buf, u32 len, u32 offset,
5610 bfa_trc(phy, offset);
5632 phy->offset = 0;
5633 phy->addr_off = offset;
5647 * @param[in] offset - offset relative to starting address
5655 void *buf, u32 len, u32 offset,
5661 bfa_trc(phy, offset);
5683 phy->offset = 0;
5684 phy->addr_off = offset;
5766 bfa_trc(phy, phy->offset);
5781 u16 *buf = (u16 *)(phy->ubuf + phy->offset);
5785 bfa_trc(phy, phy->offset);
5792 phy->offset += len;
6222 msg->offset = cpu_to_be32(fru->addr_off + fru->offset);
6236 memcpy(fru->dbuf_kva, fru->ubuf + fru->offset, len);
6240 fru->offset += len;
6256 msg->offset = cpu_to_be32(fru->addr_off + fru->offset);
6339 * @param[in] offset - offset relative to starting address
6346 bfa_fruvpd_update(struct bfa_fru_s *fru, void *buf, u32 len, u32 offset,
6351 bfa_trc(fru, offset);
6373 fru->offset = 0;
6374 fru->addr_off = offset;
6389 * @param[in] offset - offset relative to starting address
6396 bfa_fruvpd_read(struct bfa_fru_s *fru, void *buf, u32 len, u32 offset,
6401 bfa_trc(fru, offset);
6423 fru->offset = 0;
6424 fru->addr_off = offset;
6461 * @param[in] offset - offset relative to starting address
6468 bfa_tfru_write(struct bfa_fru_s *fru, void *buf, u32 len, u32 offset,
6473 bfa_trc(fru, offset);
6492 fru->offset = 0;
6493 fru->addr_off = offset;
6507 * @param[in] offset - offset relative to starting address
6514 bfa_tfru_read(struct bfa_fru_s *fru, void *buf, u32 len, u32 offset,
6519 bfa_trc(fru, offset);
6537 fru->offset = 0;
6538 fru->addr_off = offset;
6580 bfa_trc(fru, fru->offset);
6602 bfa_trc(fru, fru->offset);
6605 memcpy(fru->ubuf + fru->offset, fru->dbuf_kva, len);
6607 fru->offset += len;
6858 * @param[in] offset - flash address offset
6865 bfa_flash_read_start(void __iomem *pci_bar, u32 offset, u32 len,
6892 bfa_flash_set_addr(pci_bar, offset);
6947 * @param[in] offset - flash partition address offset
6988 bfa_flash_raw_read(void __iomem *pci_bar, u32 offset, char *buf,
7003 s = offset + off;
7009 status = bfa_flash_read_start(pci_bar, offset + off, l,