Home
last modified time | relevance | path

Searched refs:ms_gdev (Results 1 – 2 of 2) sorted by relevance

/utopia/UTPA2-700.0.x/modules/usb/drv/usb_ecos/newhost/
H A DdrvBus.c94 void ms_device_bind_driver(struct device_s * ms_gdev) in ms_device_bind_driver() argument
97 ms_gdev->bus_id,ms_gdev->driver->name); in ms_device_bind_driver()
98 ms_insert_list_before(&ms_gdev->driver_list,&ms_gdev->driver->devices); in ms_device_bind_driver()
109 static int ms_bus_match(struct device_s * ms_gdev, struct device_driver * ms_drv) in ms_bus_match() argument
114 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()
120 if ((ms_err = ms_drv->probe(ms_gdev))) in ms_bus_match()
122 ms_gdev->driver = NULL; in ms_bus_match()
126 ms_device_bind_driver(ms_gdev); in ms_bus_match()
140 static int ms_device_attach(struct device_s * ms_gdev) in ms_device_attach() argument
[all …]
H A DdrvCore.c94 void ms_device_initialize(struct device_s *ms_gdev) in ms_device_initialize() argument
96 ms_list_init(&ms_gdev->node); in ms_device_initialize()
97 ms_list_init(&ms_gdev->children); in ms_device_initialize()
98 ms_list_init(&ms_gdev->driver_list); in ms_device_initialize()
99 ms_list_init(&ms_gdev->bus_list); in ms_device_initialize()
100 osapi_atomic_set(&ms_gdev->dev_refcnt,1); in ms_device_initialize()
110 int ms_device_add(struct device_s *ms_gdev) in ms_device_add() argument
114 if (!ms_gdev || !strlen(ms_gdev->bus_id)) in ms_device_add()
117 parent = ms_gdev->parent; in ms_device_add()
120 ms_gdev->bus_id, ms_gdev->dev_name); in ms_device_add()
[all …]