Lines Matching refs:access_rw
693 .access_rw = { .uptr = (uintptr_t)tmp }, in check_access_rw()
702 for (access_cmd.access_rw.iova = iova + PAGE_SIZE - 50; in check_access_rw()
703 access_cmd.access_rw.iova < iova + PAGE_SIZE + 50; in check_access_rw()
704 access_cmd.access_rw.iova++) { in check_access_rw()
705 for (access_cmd.access_rw.length = 1; in check_access_rw()
706 access_cmd.access_rw.length < sizeof(tmp); in check_access_rw()
707 access_cmd.access_rw.length++) { in check_access_rw()
708 access_cmd.access_rw.flags = def_flags; in check_access_rw()
714 memcmp(buffer + (access_cmd.access_rw.iova - in check_access_rw()
716 tmp, access_cmd.access_rw.length)); in check_access_rw()
720 access_cmd.access_rw.flags = def_flags | in check_access_rw()
727 memcmp(buffer + (access_cmd.access_rw.iova - in check_access_rw()
729 tmp, access_cmd.access_rw.length)); in check_access_rw()
736 access_cmd.access_rw.iova = iova; in check_access_rw()
737 access_cmd.access_rw.length = BUFFER_SIZE; in check_access_rw()
738 access_cmd.access_rw.flags = def_flags; in check_access_rw()
739 access_cmd.access_rw.uptr = (uintptr_t)tmp2; in check_access_rw()
742 ASSERT_EQ(0, memcmp(buffer, tmp2, access_cmd.access_rw.length)); in check_access_rw()
746 TEST_F(iommufd_ioas, access_rw) in TEST_F() argument