Searched refs:ms_drv (Results 1 – 2 of 2) sorted by relevance
109 static int ms_bus_match(struct device_s * ms_gdev, struct device_driver * ms_drv) in ms_bus_match() argument114 if (ms_gdev->bus_type->match_func(ms_gdev,ms_drv)) in ms_bus_match()116 ms_gdev->driver = ms_drv; in ms_bus_match()118 if (ms_drv->probe) in ms_bus_match()120 if ((ms_err = ms_drv->probe(ms_gdev))) in ms_bus_match()144 struct device_driver * ms_drv; in ms_device_attach() local158 …ms_drv = (struct device_driver *)((char *)_mtr - (char *)offsetof(struct device_driver, bus_list) … in ms_device_attach()159 if (!ms_bus_match(ms_gdev,ms_drv)) in ms_device_attach()174 void ms_driver_attach(struct device_driver * ms_drv) in ms_driver_attach() argument176 struct ms_bus_type * ms_bus = ms_drv->bus; in ms_driver_attach()[all …]
91 int ms_driver_register(struct device_driver * ms_drv) in ms_driver_register() argument93 ms_list_init(&ms_drv->devices); in ms_driver_register()95 return ms_bus_add_driver(ms_drv); in ms_driver_register()105 void ms_driver_unregister(struct device_driver * ms_drv) in ms_driver_unregister() argument107 ms_bus_remove_driver(ms_drv); in ms_driver_unregister()