Home
last modified time | relevance | path

Searched refs:subclass (Results 1 – 25 of 96) sorted by relevance

1234

/linux/include/linux/
H A Dspinlock_rt.h35 extern void rt_spin_lock_nested(spinlock_t *lock, int subclass) __acquires(lock);
49 # define __spin_lock_nested(lock, subclass) \
50 rt_spin_lock_nested(lock, subclass)
57 # define __spin_lock_irqsave_nested(lock, flags, subclass) \
61 __spin_lock_nested(lock, subclass); \
66 * Always evaluate the 'subclass' argument to avoid that the compiler
70 # define __spin_lock_nested(lock, subclass) spin_lock(((void)(subclass), (lock))) argument
71 # define __spin_lock_nest_lock(lock, subclass) spin_lock(((void)(subclass), (loc argument
48 __spin_lock_nested(lock,subclass) global() argument
56 __spin_lock_irqsave_nested(lock,flags,subclass) global() argument
69 __spin_lock_nested(lock,subclass) global() argument
75 spin_lock_nested(lock,subclass) global() argument
81 spin_lock_irqsave_nested(lock,flags,subclass) global() argument
[all...]
H A Dmutex.h185 extern void mutex_lock_nested(struct mutex *lock, unsigned int subclass) __acquires(lock);
188 unsigned int subclass) __cond_acquires(0, lock);
190 unsigned int subclass, struct lockdep_map *nest_lock) __cond_acquires(0, lock);
191 extern void mutex_lock_io_nested(struct mutex *lock, unsigned int subclass) __acquires(lock);
210 #define mutex_lock_killable_nested(lock, subclass) \ argument
211 _mutex_lock_killable(lock, subclass, NULL)
219 # define mutex_lock_nested(lock, subclass) mutex_lock(lock) argument
220 # define mutex_lock_interruptible_nested(lock, subclass) mutex_lock_interruptible(lock) argument
221 # define mutex_lock_killable_nested(lock, subclass) mutex_lock_killable(lock) argument
224 # define mutex_lock_io_nested(lock, subclass) mutex_lock_i argument
[all...]
H A Drwsem.h304 extern void down_read_nested(struct rw_semaphore *sem, int subclass) __acquires_shared(sem); argument
305 extern int __must_check down_read_killable_nested(struct rw_semaphore *sem, int subclass) __cond_acquires_shared(0, sem); argument
306 extern void down_write_nested(struct rw_semaphore *sem, int subclass) __acquires(sem);
307 extern int down_write_killable_nested(struct rw_semaphore *sem, int subclass) __cond_acquires(0, sem);
325 # define down_read_nested(sem, subclass) down_read(sem)
326 # define down_read_killable_nested(sem, subclass) down_read_killable(sem)
328 # define down_write_nested(sem, subclass) down_write(sem)
329 # define down_write_killable_nested(sem, subclass) down_write_killable(sem)
301 down_read_nested(sem,subclass) global() argument
302 down_read_killable_nested(sem,subclass) global() argument
H A Dspinlock.h220 # define raw_spin_lock_nested(lock, subclass) \ argument
221 _raw_spin_lock_nested(lock, subclass)
230 * Always evaluate the 'subclass' argument to avoid that the compiler
234 # define raw_spin_lock_nested(lock, subclass) \ argument
235 _raw_spin_lock(((void)(subclass), (lock)))
248 #define raw_spin_lock_irqsave_nested(lock, flags, subclass) \ argument
251 flags = _raw_spin_lock_irqsave_nested(lock, subclass); \
254 #define raw_spin_lock_irqsave_nested(lock, flags, subclass) \ argument
269 #define raw_spin_lock_irqsave_nested(lock, flags, subclass) \ argument
356 #define spin_lock_nested(lock, subclass) \ in spin_lock_bh()
364 spin_lock_nested(lock,subclass) global() argument
384 spin_lock_irqsave_nested(lock,flags,subclass) global() argument
[all...]
H A Dlockdep.h129 struct lock_class_key *key, int subclass, u8 inner, u8 outer, u8 lock_type);
133 struct lock_class_key *key, int subclass, u8 inner, u8 outer) in lockdep_init_map_waits() argument
135 lockdep_init_map_type(lock, name, key, subclass, inner, outer, LD_LOCK_NORMAL); in lockdep_init_map_waits()
140 struct lock_class_key *key, int subclass, u8 inner) in lockdep_init_map_wait() argument
142 lockdep_init_map_waits(lock, name, key, subclass, inner, LD_WAIT_INV); in lockdep_init_map_wait()
146 struct lock_class_key *key, int subclass) in lockdep_init_map() argument
148 lockdep_init_map_wait(lock, name, key, subclass, LD_WAIT_INV); in lockdep_init_map()
227 extern void lock_acquire(struct lockdep_map *lock, unsigned int subclass,
233 extern void lock_sync(struct lockdep_map *lock, unsigned int subclass,
256 struct lock_class_key *key, unsigned int subclass,
263 lock_set_subclass(struct lockdep_map * lock,unsigned int subclass,unsigned long ip) lock_set_subclass() argument
561 might_lock_nested(lock,subclass) global() argument
627 might_lock_nested(lock,subclass) global() argument
[all...]
H A Drwlock_rt.h31 extern void rt_write_lock_nested(rwlock_t *rwlock, int subclass) __acquires(rwlock);
96 static __always_inline void write_lock_nested(rwlock_t *rwlock, int subclass) in write_lock_bh()
99 rt_write_lock_nested(rwlock, subclass); in write_lock_bh()
102 #define write_lock_nested(lock, subclass) rt_write_lock(((void)(subclass), (lock))) in write_lock_irq()
88 write_lock_nested(rwlock_t * rwlock,int subclass) write_lock_nested() argument
93 write_lock_nested(lock,subclass) global() argument
H A Dtty_ldisc.h46 int ldsem_down_read_nested(struct ld_semaphore *sem, int subclass,
48 int ldsem_down_write_nested(struct ld_semaphore *sem, int subclass,
51 # define ldsem_down_read_nested(sem, subclass, timeout) \ argument
53 # define ldsem_down_write_nested(sem, subclass, timeout) \ argument
H A Drwlock.h59 #define write_lock_nested(lock, subclass) _raw_write_lock_nested(lock, subclass) argument
61 #define write_lock_nested(lock, subclass) _raw_write_lock(lock) argument
/linux/kernel/locking/
H A Drtmutex_api.c43 unsigned int subclass) in __rt_mutex_lock_common() argument
48 mutex_acquire_nest(&lock->dep_map, subclass, 0, nest_lock, _RET_IP_); in __rt_mutex_lock_common()
68 void __sched rt_mutex_lock_nested(struct rt_mutex *lock, unsigned int subclass) in rt_mutex_lock_nested() argument
70 __rt_mutex_lock_common(lock, TASK_UNINTERRUPTIBLE, NULL, subclass); in rt_mutex_lock_nested()
526 unsigned int subclass, in __mutex_lock_common() argument
533 mutex_acquire_nest(&lock->dep_map, subclass, 0, nest_lock, ip); in __mutex_lock_common()
550 void __sched mutex_lock_nested(struct mutex *lock, unsigned int subclass) in mutex_lock_nested() argument
552 __mutex_lock_common(lock, TASK_UNINTERRUPTIBLE, subclass, NULL, _RET_IP_); in mutex_lock_nested()
564 unsigned int subclass) in mutex_lock_interruptible_nested() argument
566 return __mutex_lock_common(lock, TASK_INTERRUPTIBLE, subclass, NULL, _RET_IP_); in mutex_lock_interruptible_nested()
[all …]
H A Dspinlock.c305 #define __raw_write_lock_nested(lock, subclass) __raw_write_lock(((void)(subclass), (lock))) argument
308 void __lockfunc _raw_write_lock_nested(rwlock_t *lock, int subclass) in _raw_write_lock_nested() argument
310 __raw_write_lock_nested(lock, subclass); in _raw_write_lock_nested()
375 void __lockfunc _raw_spin_lock_nested(raw_spinlock_t *lock, int subclass) in _raw_spin_lock_nested() argument
378 spin_acquire(&lock->dep_map, subclass, 0, _RET_IP_); in _raw_spin_lock_nested()
384 int subclass) in _raw_spin_lock_irqsave_nested() argument
390 spin_acquire(&lock->dep_map, subclass, 0, _RET_IP_); in _raw_spin_lock_irqsave_nested()
H A Dmutex.c578 __mutex_lock_common(struct mutex *lock, unsigned int state, unsigned int subclass, in __mutex_lock_common() argument
614 mutex_acquire_nest(&lock->dep_map, subclass, 0, nest_lock, ip); in __mutex_lock_common()
773 __mutex_lock(struct mutex *lock, unsigned int state, unsigned int subclass, in __mutex_lock() argument
776 return __mutex_lock_common(lock, state, subclass, nest_lock, ip, NULL, false); in __mutex_lock()
780 __ww_mutex_lock(struct mutex *lock, unsigned int state, unsigned int subclass, in __ww_mutex_lock() argument
783 return __mutex_lock_common(lock, state, subclass, NULL, ip, ww_ctx, true); in __ww_mutex_lock()
826 mutex_lock_nested(struct mutex *lock, unsigned int subclass) in mutex_lock_nested() argument
828 __mutex_lock(lock, TASK_UNINTERRUPTIBLE, subclass, NULL, _RET_IP_); in mutex_lock_nested()
841 _mutex_lock_killable(struct mutex *lock, unsigned int subclass, in _mutex_lock_killable() argument
844 return __mutex_lock(lock, TASK_KILLABLE, subclass, nest, _RET_IP_); in _mutex_lock_killable()
[all …]
H A Dspinlock_rt.c62 void __sched rt_spin_lock_nested(spinlock_t *lock, int subclass) in rt_spin_lock_nested() argument
64 spin_acquire(&lock->dep_map, subclass, 0, _RET_IP_); in rt_spin_lock_nested()
250 void __sched rt_write_lock_nested(rwlock_t *rwlock, int subclass) __acquires(RCU) in rt_write_lock_nested() argument
253 rwlock_acquire(&rwlock->dep_map, subclass, 0, _RET_IP_); in rt_write_lock_nested()
H A Dlockdep.c730 if (class->subclass) in __print_lock_name()
731 printk(KERN_CONT "/%d", class->subclass); in __print_lock_name()
876 if (new_class->key - new_class->subclass == class->key) in count_matching_names()
887 look_up_lock_class(const struct lockdep_map *lock, unsigned int subclass) in look_up_lock_class() argument
893 if (unlikely(subclass >= MAX_LOCKDEP_SUBCLASSES)) { in look_up_lock_class()
898 "BUG: looking up invalid subclass: %u\n", subclass); in look_up_lock_class()
923 key = lock->key->subkeys + subclass; in look_up_lock_class()
1285 register_lock_class(struct lockdep_map *lock, unsigned int subclass, int force) in register_lock_class() argument
1294 class = look_up_lock_class(lock, subclass); in register_lock_class()
1305 key = lock->key->subkeys + subclass; in register_lock_class()
[all …]
/linux/arch/arm/mach-omap2/
H A Dsoc.h108 #define IS_OMAP_SUBCLASS(subclass, id) \ argument
109 static inline int is_omap ##subclass (void) \
114 #define IS_TI_SUBCLASS(subclass, id) \ argument
115 static inline int is_ti ##subclass (void) \
120 #define IS_AM_SUBCLASS(subclass, id) \ argument
121 static inline int is_am ##subclass (void) \
126 #define IS_DRA_SUBCLASS(subclass, id) \ argument
127 static inline int is_dra ##subclass (void) \
134 #define IS_DRA_SUBCLASS_PACKAGE(subclass, package, id) \ argument
135 static inline int is_dra ##subclass ##_ ##package (void) \
[all …]
/linux/drivers/tty/
H A Dtty_ldsem.c296 int subclass, long timeout) in __ldsem_down_read_nested() argument
300 rwsem_acquire_read(&sem->dep_map, subclass, 0, _RET_IP_); in __ldsem_down_read_nested()
315 int subclass, long timeout) in __ldsem_down_write_nested() argument
319 rwsem_acquire(&sem->dep_map, subclass, 0, _RET_IP_); in __ldsem_down_write_nested()
400 int ldsem_down_read_nested(struct ld_semaphore *sem, int subclass, long timeout) in ldsem_down_read_nested() argument
403 return __ldsem_down_read_nested(sem, subclass, timeout); in ldsem_down_read_nested()
406 int ldsem_down_write_nested(struct ld_semaphore *sem, int subclass, in ldsem_down_write_nested() argument
410 return __ldsem_down_write_nested(sem, subclass, timeout); in ldsem_down_write_nested()
/linux/arch/s390/kernel/
H A Dirq.c399 void irq_subclass_register(enum irq_subclass subclass) in irq_subclass_register() argument
402 if (!irq_subclass_refcount[subclass]) in irq_subclass_register()
403 system_ctl_set_bit(0, subclass); in irq_subclass_register()
404 irq_subclass_refcount[subclass]++; in irq_subclass_register()
409 void irq_subclass_unregister(enum irq_subclass subclass) in irq_subclass_unregister() argument
412 irq_subclass_refcount[subclass]--; in irq_subclass_unregister()
413 if (!irq_subclass_refcount[subclass]) in irq_subclass_unregister()
414 system_ctl_clear_bit(0, subclass); in irq_subclass_unregister()
/linux/tools/usb/usbip/libsrc/
H A Dusbip_common.c296 uint8_t subclass, uint8_t protocol) in usbip_names_get_class() argument
300 if (class == 0 && subclass == 0 && protocol == 0) { in usbip_names_get_class()
301 snprintf(buff, size, "(Defined at Interface level) (%02x/%02x/%02x)", class, subclass, protocol); in usbip_names_get_class()
305 p = names_protocol(class, subclass, protocol); in usbip_names_get_class()
309 s = names_subclass(class, subclass); in usbip_names_get_class()
317 snprintf(buff, size, "%s / %s / %s (%02x/%02x/%02x)", c, s, p, class, subclass, protocol); in usbip_names_get_class()
H A Dnames.c43 struct subclass { struct
44 struct subclass *next; argument
80 static struct subclass *subclasses[HASHSZ] = { NULL, };
118 struct subclass *s; in names_subclass()
249 struct subclass *s; in new_subclass()
256 s = my_malloc(sizeof(struct subclass) + strlen(name)); in new_subclass()
/linux/fs/jfs/
H A Djfs_incore.h108 #define IREAD_LOCK(ip, subclass) \ argument
109 down_read_nested(&JFS_IP(ip)->rdwrlock, subclass)
111 #define IWRITE_LOCK(ip, subclass) \ argument
112 down_write_nested(&JFS_IP(ip)->rdwrlock, subclass)
/linux/rust/kernel/
H A Dusb.rs154 pub const fn from_device_info(class: u8, subclass: u8, protocol: u8) -> Self { in from_device_info()
158 bDeviceSubClass: subclass, in from_device_info()
166 pub const fn from_interface_info(class: u8, subclass: u8, protocol: u8) -> Self { in from_interface_info()
170 bInterfaceSubClass: subclass, in from_interface_info()
221 subclass: u8, in from_device_and_interface_info()
230 bInterfaceSubClass: subclass, in from_device_and_interface_info()
/linux/Documentation/usb/
H A Dfunctionfs-desc.rst19 Standard USB interface descriptors may be written. The class/subclass of the
26 Class-specific descriptors are accepted only for the class/subclass of the
33 When the interface class is USB_CLASS_APP_SPEC and the interface subclass
/linux/Documentation/ABI/testing/
H A Dconfigfs-usb-gadget-hid12 subclass HID device subclass to use
H A Dconfigfs-usb-gadget-rndis17 subclass USB interface subclass, default is 06 (hex)
/linux/tools/include/linux/
H A Drwsem.h41 #define down_read_nested(sem, subclass) down_read(sem) argument
42 #define down_write_nested(sem, subclass) down_write(sem) argument
/linux/arch/s390/include/asm/
H A Dirq.h118 void irq_subclass_register(enum irq_subclass subclass);
119 void irq_subclass_unregister(enum irq_subclass subclass);

1234