Lines Matching refs:writable
85 static int usnic_uiom_get_pages(unsigned long addr, size_t size, int writable, in usnic_uiom_get_pages() argument
137 flags |= (writable) ? IOMMU_WRITE : 0; in usnic_uiom_get_pages()
139 gup_flags |= (writable) ? 0 : FOLL_FORCE; in usnic_uiom_get_pages()
221 int writable = 0; in __usnic_uiom_reg_release() local
235 writable = 1; in __usnic_uiom_reg_release()
240 usnic_uiom_put_pages(&uiomr->chunk_list, dirty & writable); in __usnic_uiom_reg_release()
259 flags |= (uiomr->writable) ? IOMMU_WRITE : 0; in usnic_uiom_map_sorted_intervals()
336 int writable, int dmasync) in usnic_uiom_reg_get() argument
351 writable = 1; in usnic_uiom_reg_get()
366 uiomr->writable = writable; in usnic_uiom_reg_get()
369 err = usnic_uiom_get_pages(addr, size, writable, dmasync, in usnic_uiom_reg_get()
379 (writable) ? IOMMU_WRITE : 0, in usnic_uiom_reg_get()
398 (writable) ? IOMMU_WRITE : 0); in usnic_uiom_reg_get()