Lines Matching refs:iflags
66 static int __from_ib_access_flags(int iflags) in __from_ib_access_flags() argument
70 if (iflags & IB_ACCESS_LOCAL_WRITE) in __from_ib_access_flags()
72 if (iflags & IB_ACCESS_REMOTE_READ) in __from_ib_access_flags()
74 if (iflags & IB_ACCESS_REMOTE_WRITE) in __from_ib_access_flags()
76 if (iflags & IB_ACCESS_REMOTE_ATOMIC) in __from_ib_access_flags()
78 if (iflags & IB_ACCESS_MW_BIND) in __from_ib_access_flags()
80 if (iflags & IB_ZERO_BASED) in __from_ib_access_flags()
82 if (iflags & IB_ACCESS_ON_DEMAND) in __from_ib_access_flags()
89 enum ib_access_flags iflags = 0; in __to_ib_access_flags() local
92 iflags |= IB_ACCESS_LOCAL_WRITE; in __to_ib_access_flags()
94 iflags |= IB_ACCESS_REMOTE_WRITE; in __to_ib_access_flags()
96 iflags |= IB_ACCESS_REMOTE_READ; in __to_ib_access_flags()
98 iflags |= IB_ACCESS_REMOTE_ATOMIC; in __to_ib_access_flags()
100 iflags |= IB_ACCESS_MW_BIND; in __to_ib_access_flags()
102 iflags |= IB_ZERO_BASED; in __to_ib_access_flags()
104 iflags |= IB_ACCESS_ON_DEMAND; in __to_ib_access_flags()
105 return iflags; in __to_ib_access_flags()