Searched refs:__driver (Results 1 – 3 of 3) sorted by relevance
/Linux-v6.6/scripts/coccinelle/api/ |
D | platform_no_drv_owner.cocci | 16 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-v6.6/include/linux/device/ |
D | driver.h | 257 #define module_driver(__driver, __register, __unregister, ...) \ argument 258 static int __init __driver##_init(void) \ 260 return __register(&(__driver) , ##__VA_ARGS__); \ 262 module_init(__driver##_init); \ 263 static void __exit __driver##_exit(void) \ 265 __unregister(&(__driver) , ##__VA_ARGS__); \ 267 module_exit(__driver##_exit); 284 #define builtin_driver(__driver, __register, ...) \ argument 285 static int __init __driver##_init(void) \ 287 return __register(&(__driver) , ##__VA_ARGS__); \ [all …]
|
/Linux-v6.6/drivers/usb/storage/ |
D | usb.h | 197 #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)
|