Lines Matching refs:type

40  * There are also interfaces that take the lock type as an enum:
196 bool six_trylock_ip(struct six_lock *lock, enum six_lock_type type, unsigned long ip);
201 * @type: SIX_LOCK_read, SIX_LOCK_intent, or SIX_LOCK_write
205 static inline bool six_trylock_type(struct six_lock *lock, enum six_lock_type type)
207 return six_trylock_ip(lock, type, _THIS_IP_);
210 int six_lock_ip_waiter(struct six_lock *lock, enum six_lock_type type,
218 * @type: SIX_LOCK_read, SIX_LOCK_intent, or SIX_LOCK_write
229 static inline int six_lock_waiter(struct six_lock *lock, enum six_lock_type type,
233 return six_lock_ip_waiter(lock, type, wait, should_sleep_fn, p, _THIS_IP_);
239 * @type: SIX_LOCK_read, SIX_LOCK_intent, or SIX_LOCK_write
247 static inline int six_lock_ip(struct six_lock *lock, enum six_lock_type type,
253 return six_lock_ip_waiter(lock, type, &wait, should_sleep_fn, p, ip);
259 * @type: SIX_LOCK_read, SIX_LOCK_intent, or SIX_LOCK_write
266 static inline int six_lock_type(struct six_lock *lock, enum six_lock_type type,
271 return six_lock_ip_waiter(lock, type, &wait, should_sleep_fn, p, _THIS_IP_);
274 bool six_relock_ip(struct six_lock *lock, enum six_lock_type type,
280 * @type: SIX_LOCK_read, SIX_LOCK_intent, or SIX_LOCK_write
286 static inline bool six_relock_type(struct six_lock *lock, enum six_lock_type type,
289 return six_relock_ip(lock, type, seq, _THIS_IP_);
292 void six_unlock_ip(struct six_lock *lock, enum six_lock_type type, unsigned long ip);
297 * @type: SIX_LOCK_read, SIX_LOCK_intent, or SIX_LOCK_write
308 static inline void six_unlock_type(struct six_lock *lock, enum six_lock_type type)
310 six_unlock_ip(lock, type, _THIS_IP_);
313 #define __SIX_LOCK(type) \
314 static inline bool six_trylock_ip_##type(struct six_lock *lock, unsigned long ip)\
316 return six_trylock_ip(lock, SIX_LOCK_##type, ip); \
319 static inline bool six_trylock_##type(struct six_lock *lock) \
321 return six_trylock_ip(lock, SIX_LOCK_##type, _THIS_IP_); \
324 static inline int six_lock_ip_waiter_##type(struct six_lock *lock, \
329 return six_lock_ip_waiter(lock, SIX_LOCK_##type, wait, should_sleep_fn, p, ip);\
332 static inline int six_lock_ip_##type(struct six_lock *lock, \
336 return six_lock_ip(lock, SIX_LOCK_##type, should_sleep_fn, p, ip);\
339 static inline bool six_relock_ip_##type(struct six_lock *lock, u32 seq, unsigned long ip)\
341 return six_relock_ip(lock, SIX_LOCK_##type, seq, ip); \
344 static inline bool six_relock_##type(struct six_lock *lock, u32 seq) \
346 return six_relock_ip(lock, SIX_LOCK_##type, seq, _THIS_IP_); \
349 static inline int six_lock_##type(struct six_lock *lock, \
352 return six_lock_ip_##type(lock, fn, p, _THIS_IP_); \
355 static inline void six_unlock_ip_##type(struct six_lock *lock, unsigned long ip) \
357 six_unlock_ip(lock, SIX_LOCK_##type, ip); \
360 static inline void six_unlock_##type(struct six_lock *lock) \
362 six_unlock_ip(lock, SIX_LOCK_##type, _THIS_IP_); \