Searched refs:segment_offset (Results 1 – 2 of 2) sorted by relevance
2099 size_t segment_len = 0, segment_offset = 0, current_offset = 0; in lpfc_bsg_diag_test() local2252 segment_offset = ELX_LOOPBACK_HEADER_SZ; in lpfc_bsg_diag_test()2254 segment_offset = 0; in lpfc_bsg_diag_test()2256 BUG_ON(segment_offset >= segment_len); in lpfc_bsg_diag_test()2257 memcpy(curr->virt + segment_offset, in lpfc_bsg_diag_test()2259 segment_len - segment_offset); in lpfc_bsg_diag_test()2261 current_offset += segment_len - segment_offset; in lpfc_bsg_diag_test()
82 unsigned long segment_offset; in xhci_trb_virt_to_dma() local87 segment_offset = trb - seg->trbs; in xhci_trb_virt_to_dma()88 if (segment_offset > TRBS_PER_SEGMENT) in xhci_trb_virt_to_dma()90 return seg->dma + (segment_offset * sizeof(*trb)); in xhci_trb_virt_to_dma()