Home
last modified time | relevance | path

Searched refs:__driver (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/scripts/coccinelle/api/
Dplatform_no_drv_owner.cocci16 identifier __driver;
19 module_i2c_driver(__driver);
21 module_platform_driver(__driver);
23 module_platform_driver_probe(__driver, ...);
27 identifier match1.__driver;
29 static struct platform_driver __driver = {
36 identifier match1.__driver;
38 static struct i2c_driver __driver = {
45 identifier __driver;
48 platform_driver_register(&__driver)
[all …]
/linux-6.1.9/include/linux/device/
Ddriver.h262 #define module_driver(__driver, __register, __unregister, ...) \ argument
263 static int __init __driver##_init(void) \
265 return __register(&(__driver) , ##__VA_ARGS__); \
267 module_init(__driver##_init); \
268 static void __exit __driver##_exit(void) \
270 __unregister(&(__driver) , ##__VA_ARGS__); \
272 module_exit(__driver##_exit);
289 #define builtin_driver(__driver, __register, ...) \ argument
290 static int __init __driver##_init(void) \
292 return __register(&(__driver) , ##__VA_ARGS__); \
[all …]
/linux-6.1.9/drivers/usb/storage/
Dusb.h197 #define module_usb_stor_driver(__driver, __sht, __name) \ argument
198 static int __init __driver##_init(void) \
201 return usb_register(&(__driver)); \
203 module_init(__driver##_init); \
204 static void __exit __driver##_exit(void) \
206 usb_deregister(&(__driver)); \
208 module_exit(__driver##_exit)