Lines Matching defs:offset
2517 * @off: The offset to seek to or the amount to seek by.
2522 * @whence parameter indicates whether @off is the offset to directly seek to,
2524 * what the new offset of the debugfs file will be and assigns that value to the
2528 * This function returns the new offset if successful and returns a negative
3298 int offset_label, offset, len = 0, index = LPFC_PCI_CFG_RD_SIZE;
3358 offset_label = idiag.offset.last_rd;
3359 offset = offset_label;
3365 pci_read_config_dword(pdev, offset, &u32val);
3368 offset += sizeof(uint32_t);
3369 if (offset >= LPFC_PCI_CFG_SIZE) {
3385 /* Set up the offset for next portion of pci cfg read */
3387 idiag.offset.last_rd += LPFC_PCI_CFG_RD_SIZE;
3388 if (idiag.offset.last_rd >= LPFC_PCI_CFG_SIZE)
3389 idiag.offset.last_rd = 0;
3391 idiag.offset.last_rd = 0;
3448 /* Starting offset to browse */
3449 idiag.offset.last_rd = where;
3594 int offset_label, offset, offset_run, len = 0, index;
3620 offset = idiag.cmd.data[IDIAG_BARACC_OFF_SET_INDX];
3649 offset_run = offset;
3661 offset_label = idiag.offset.last_rd;
3680 if (offset_run >= offset +
3699 /* Set up the offset for next portion of pci bar read */
3701 idiag.offset.last_rd += LPFC_PCI_BAR_RD_SIZE;
3703 if (idiag.offset.last_rd >= bar_size)
3704 idiag.offset.last_rd = 0;
3706 if (offset_run >= offset +
3708 idiag.offset.last_rd = offset;
3712 idiag.offset.last_rd = 0;
3714 idiag.offset.last_rd = offset;
3745 uint32_t bar_num, bar_size, offset, value, acc_range;
3802 offset = idiag.cmd.data[IDIAG_BARACC_OFF_SET_INDX];
3803 if (offset % sizeof(uint32_t))
3813 if (offset > bar_size - sizeof(uint32_t))
3815 /* Starting offset to browse */
3816 idiag.offset.last_rd = offset;
3818 if (offset + acc_range * sizeof(uint32_t) > bar_size)
3820 /* Starting offset to browse */
3821 idiag.offset.last_rd = offset;
3834 writel(value, mem_mapped_bar + offset);
3835 readl(mem_mapped_bar + offset);
3838 u32val = readl(mem_mapped_bar + offset);
3840 writel(u32val, mem_mapped_bar + offset);
3841 readl(mem_mapped_bar + offset);
3844 u32val = readl(mem_mapped_bar + offset);
3846 writel(u32val, mem_mapped_bar + offset);
3847 readl(mem_mapped_bar + offset);
4208 int offset, esize;
4218 offset = 0;
4224 offset += sizeof(uint32_t);
4226 if (esize > 0 && !(offset % (4 * sizeof(uint32_t))))
4293 last_index = idiag.offset.last_rd;
4303 /* Set up the offset for next portion of pci cfg read */
4306 idiag.offset.last_rd = index;
4335 uint32_t qidx, quetp, queid, index, count, offset, value;
4352 offset = idiag.cmd.data[IDIAG_QUEACC_OFFST_INDX];
4530 idiag.offset.last_rd = index;
4538 if (offset > pque->entry_size/sizeof(uint32_t) - 1)
4541 pentry += offset;
6225 idiag.offset.last_rd = 0;
6234 idiag.offset.last_rd = 0;