Home
last modified time | relevance | path

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

/Linux-v5.10/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-v5.10/include/linux/device/
Ddriver.h258 #define module_driver(__driver, __register, __unregister, ...) \ argument
259 static int __init __driver##_init(void) \
261 return __register(&(__driver) , ##__VA_ARGS__); \
263 module_init(__driver##_init); \
264 static void __exit __driver##_exit(void) \
266 __unregister(&(__driver) , ##__VA_ARGS__); \
268 module_exit(__driver##_exit);
285 #define builtin_driver(__driver, __register, ...) \ argument
286 static int __init __driver##_init(void) \
288 return __register(&(__driver) , ##__VA_ARGS__); \
[all …]
/Linux-v5.10/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)