Lines Matching refs:nslots
627 unsigned int nslots = nr_slots(alloc_size), stride; in swiotlb_do_find_slots() local
634 BUG_ON(!nslots); in swiotlb_do_find_slots()
648 if (unlikely(nslots > mem->area_nslabs - area->used)) in swiotlb_do_find_slots()
669 if (!iommu_is_span_boundary(slot_index, nslots, in swiotlb_do_find_slots()
672 if (mem->slots[slot_index].list >= nslots) in swiotlb_do_find_slots()
683 for (i = slot_index; i < slot_index + nslots; i++) { in swiotlb_do_find_slots()
696 if (index + nslots < mem->area_nslabs) in swiotlb_do_find_slots()
697 area->index = index + nslots; in swiotlb_do_find_slots()
700 area->used += nslots; in swiotlb_do_find_slots()
795 int nslots = nr_slots(mem->slots[index].alloc_size + offset); in swiotlb_release_slots() local
809 if (index + nslots < ALIGN(index + 1, IO_TLB_SEGSIZE)) in swiotlb_release_slots()
810 count = mem->slots[index + nslots].list; in swiotlb_release_slots()
818 for (i = index + nslots - 1; i >= index; i--) { in swiotlb_release_slots()
832 area->used -= nslots; in swiotlb_release_slots()