Home
last modified time | relevance | path

Searched refs:pdev (Results 1 – 20 of 20) sorted by relevance

/AliOS-Things-master/components/epoll/example/
A Dtest_device.c40 event_dev_t *pdev = (event_dev_t *)aos_malloc(sizeof * pdev); in event_open() local
41 memset(pdev, 0, sizeof (*pdev)); in event_open()
43 dlist_init(&pdev->bufs); in event_open()
45 file->f_arg = pdev; in event_open()
66 aos_free(pdev); in event_close()
82 pdev->cache_count --; in _event_write()
92 pdev->counter ++; in _event_write()
104 pdev->poll_cb(pdev->fd, pdev->poll_data); in _event_write()
176 pdev->poll_cb = notify; in event_poll()
178 pdev->poll_data = opa; in event_poll()
[all …]
/AliOS-Things-master/components/select/example/
A Dtest_device.c40 event_dev_t *pdev = (event_dev_t *)aos_malloc(sizeof * pdev); in event_open() local
41 memset(pdev, 0, sizeof (*pdev)); in event_open()
43 dlist_init(&pdev->bufs); in event_open()
45 file->f_arg = pdev; in event_open()
66 aos_free(pdev); in event_close()
82 pdev->cache_count --; in _event_write()
92 pdev->counter ++; in _event_write()
104 pdev->poll_cb(pdev->fd, pdev->poll_data); in _event_write()
176 pdev->poll_cb = notify; in event_poll()
178 pdev->poll_data = opa; in event_poll()
[all …]
/AliOS-Things-master/components/epoll/src/
A Ddevice.c37 epoll_dev_t *pdev = NULL; in lwip_epoll_notify() local
44 pdev = item->epoll; in lwip_epoll_notify()
45 if (pdev == NULL) { in lwip_epoll_notify()
69 epoll_dev_t *pdev = NULL; in vfs_epoll_notify() local
76 pdev = item->epoll; in vfs_epoll_notify()
77 if (pdev == NULL) { in vfs_epoll_notify()
143 if (pdev == NULL) { in epoll_open()
167 file->f_arg = pdev; in epoll_open()
183 free(pdev); in epoll_open()
194 if (pdev == NULL) { in epoll_close()
[all …]
/AliOS-Things-master/hardware/chip/haas1000/hal/
A Dusbd.c17 usbd_stat_t usbd_hal_init(void *pdev) in usbd_hal_init() argument
29 usbd_stat_t usbd_hal_deinit(void *pdev) in usbd_hal_deinit() argument
41 usbd_stat_t usbd_hal_start(void *pdev) in usbd_hal_start() argument
53 usbd_stat_t usbd_hal_stop(void *pdev) in usbd_hal_stop() argument
98 void usbd_hal_set_address(void *pdev, uint8_t address) in usbd_hal_set_address() argument
125 void usbd_hal_ep0_read(void *pdev) in usbd_hal_ep0_read() argument
146 uint32_t usbd_hal_get_ep0_read_result(void *pdev, uint8_t *buffer) in usbd_hal_get_ep0_read_result() argument
160 void usbd_hal_ep0_write(void *pdev, uint8_t *buffer, uint32_t size) in usbd_hal_ep0_write() argument
180 void usbd_hal_ep0_stall(void *pdev) in usbd_hal_ep0_stall() argument
268 void usbd_hal_stall_endpoint(void *pdev, uint8_t endpoint) in usbd_hal_stall_endpoint() argument
[all …]
/AliOS-Things-master/components/drivers/core/base/include/aos/hal/
A Dusbd.h41 usbd_stat_t usbd_hal_init(void *pdev);
50 usbd_stat_t usbd_hal_deinit(void *pdev);
59 usbd_stat_t usbd_hal_start(void *pdev);
68 usbd_stat_t usbd_hal_stop(void *pdev);
98 void usbd_hal_set_address(void *pdev, uint8_t address);
119 void usbd_hal_ep0_read(void *pdev);
134 uint32_t usbd_hal_get_ep0_read_result(void *pdev, uint8_t *buffer);
145 void usbd_hal_ep0_write(void *pdev, uint8_t *buffer, uint32_t size);
159 void usbd_hal_ep0_stall(void *pdev);
229 void usbd_hal_stall_endpoint(void *pdev, uint8_t endpoint);
[all …]
/AliOS-Things-master/components/drivers/core/base/include/drivers/platform/
A Du_platform_bus.h48 static inline void *u_platform_get_user_data(const struct u_platform_device *pdev) in u_platform_get_user_data() argument
50 return pdev->dev.user_data; in u_platform_get_user_data()
53 static inline void u_platform_set_user_data(struct u_platform_device *pdev, in u_platform_set_user_data() argument
56 pdev->dev.user_data = data; in u_platform_set_user_data()
63 void u_platform_device_del(u_platform_device_t *pdev);
/AliOS-Things-master/components/drivers/core/base/devicevfs/src/
A Ddevice_vfs_core.c31 struct u_platform_device *pdev; member
761 pdev = (struct u_platform_device *)malloc(sizeof(*pdev)); in aos_dev_reg_with_flag()
775 memset(pdev, 0, sizeof(*pdev)); in aos_dev_reg_with_flag()
783 if (!pdev->name) { in aos_dev_reg_with_flag()
789 pdev->id = 0; in aos_dev_reg_with_flag()
868 dev_n->pdev = pdev; in aos_dev_reg_with_flag()
909 if (pdev->name) in aos_dev_reg_with_flag()
911 pdev->name = NULL; in aos_dev_reg_with_flag()
914 if (pdev) { in aos_dev_reg_with_flag()
915 free(pdev); in aos_dev_reg_with_flag()
[all …]
/AliOS-Things-master/components/drivers/core/base/platform/
A Du_platform_bus.c146 struct u_platform_device *pdev = to_u_platform_device(dev); in u_platform_bus_match() local
149 …v:%p, pdev:%p, pdrv:%p, pdev->name:%p, drv->name:%p\r\n", dev, drv, pdev, pdrv, pdev->name, drv->n… in u_platform_bus_match()
150 if (!pdev->name || !drv->name) { in u_platform_bus_match()
153 ddkc_dbg("pdev->name:%s, drv->name:%s\r\n", pdev->name, drv->name); in u_platform_bus_match()
156 return (strcmp(pdev->name, drv->name) == 0); in u_platform_bus_match()
258 void u_platform_device_del(u_platform_device_t *pdev) { in u_platform_device_del() argument
259 if (pdev) { in u_platform_device_del()
260 u_device_unregister(&pdev->dev); in u_platform_device_del()
/AliOS-Things-master/components/SDL2/src/core/linux/
A DSDL_udev.c300 static void get_caps(struct udev_device *dev, struct udev_device *pdev, const char *attr, unsigned … in get_caps() argument
309 value = _this->syms.udev_device_get_sysattr_value(pdev, attr); in get_caps()
334 struct udev_device *pdev; in guess_device_class() local
343 pdev = dev; in guess_device_class()
344 while (pdev && !_this->syms.udev_device_get_sysattr_value(pdev, "capabilities/ev")) { in guess_device_class()
345 pdev = _this->syms.udev_device_get_parent_with_subsystem_devtype(pdev, "input", NULL); in guess_device_class()
347 if (!pdev) { in guess_device_class()
351 get_caps(dev, pdev, "capabilities/ev", bitmask_ev, SDL_arraysize(bitmask_ev)); in guess_device_class()
352 get_caps(dev, pdev, "capabilities/abs", bitmask_abs, SDL_arraysize(bitmask_abs)); in guess_device_class()
353 get_caps(dev, pdev, "capabilities/rel", bitmask_rel, SDL_arraysize(bitmask_rel)); in guess_device_class()
[all …]
/AliOS-Things-master/components/drivers/core/base/device/
A Ddevice.c28 static int bridge_device_probe (struct u_platform_device *pdev) { in bridge_device_probe() argument
33 static int bridge_device_remove (struct u_platform_device *pdev) { in bridge_device_remove() argument
38 static void bridge_device_shutdown (struct u_platform_device *pdev) { in bridge_device_shutdown() argument
43 static int bridge_device_suspend (struct u_platform_device *pdev, int /*pm_message_t */state) { in bridge_device_suspend() argument
48 static int bridge_device_resume (struct u_platform_device *pdev) { in bridge_device_resume() argument
53 int bridge_device_init (struct u_platform_device *pdev) { in bridge_device_init() argument
57 int bridge_device_deinit (struct u_platform_device *pdev) { in bridge_device_deinit() argument
61 int bridge_device_pm (struct u_platform_device *pdev, u_pm_ops_t state) { in bridge_device_pm() argument
/AliOS-Things-master/components/drivers/peripheral/watchdog/src/
A Dwdg_dev.c123 int wdg_device_probe (struct u_platform_device *pdev) { in wdg_device_probe() argument
130 int wdg_device_remove (struct u_platform_device *pdev) { in wdg_device_remove() argument
135 void wdg_device_shutdown (struct u_platform_device *pdev) { in wdg_device_shutdown() argument
140 int wdg_device_suspend (struct u_platform_device *pdev, u_pm_ops_t state) { in wdg_device_suspend() argument
145 int wdg_device_resume (struct u_platform_device *pdev) { in wdg_device_resume() argument
/AliOS-Things-master/components/drivers/peripheral/adc/src/
A Dadc_dev.c111 int adc_device_init (struct u_platform_device *pdev) { in adc_device_init() argument
118 int adc_device_deinit (struct u_platform_device *pdev) { in adc_device_deinit() argument
123 int adc_device_pm (struct u_platform_device *pdev, u_pm_ops_t state) { in adc_device_pm() argument
/AliOS-Things-master/components/drivers/peripheral/flash/src/
A Dflash_dev.c210 int flash_device_init (struct u_platform_device *pdev) { in flash_device_init() argument
216 user_data = u_platform_get_user_data(pdev); in flash_device_init()
226 int flash_device_deinit (struct u_platform_device *pdev) { in flash_device_deinit() argument
231 int flash_device_pm (struct u_platform_device *pdev, u_pm_ops_t state) { in flash_device_pm() argument
/AliOS-Things-master/components/drivers/peripheral/wifi/src/
A Dvfs_wifi_drv.c247 int wifi_device_init (struct u_platform_device *pdev) { in wifi_device_init() argument
251 vfs_wifi_t *vd = (vfs_wifi_t *)u_platform_get_user_data(pdev); in wifi_device_init()
259 int wifi_device_deinit (struct u_platform_device *pdev) { in wifi_device_deinit() argument
264 int wifi_device_pm (struct u_platform_device *pdev, u_pm_ops_t state) { in wifi_device_pm() argument
/AliOS-Things-master/components/drivers/peripheral/pwm/src/
A Dpwm_dev.c140 int pwm_device_init (struct u_platform_device *pdev) { in pwm_device_init() argument
147 int pwm_device_deinit (struct u_platform_device *pdev) { in pwm_device_deinit() argument
152 int pwm_device_pm (struct u_platform_device *pdev, u_pm_ops_t state) { in pwm_device_pm() argument
/AliOS-Things-master/components/drivers/peripheral/gpio/src/
A Dgpio_dev.c256 int gpio_device_init (struct u_platform_device *pdev) { in gpio_device_init() argument
263 int gpio_device_deinit (struct u_platform_device *pdev) { in gpio_device_deinit() argument
268 int gpio_device_pm (struct u_platform_device *pdev, u_pm_ops_t state) { in gpio_device_pm() argument
/AliOS-Things-master/components/drivers/peripheral/timer/src/
A Dtimer_dev.c174 int timer_device_init (struct u_platform_device *pdev) { in timer_device_init() argument
181 int timer_device_deinit (struct u_platform_device *pdev) { in timer_device_deinit() argument
186 int timer_device_pm (struct u_platform_device *pdev, u_pm_ops_t state) { in timer_device_pm() argument
/AliOS-Things-master/components/drivers/peripheral/uart/src/
A Duart_dev.c514 int uart_device_init (struct u_platform_device *pdev) { in uart_device_init() argument
519 user_data = u_platform_get_user_data(pdev); in uart_device_init()
520 ddkc_dbg("pdev:%p, user_data:%p\r\n", pdev, user_data); in uart_device_init()
524 int uart_device_deinit (struct u_platform_device *pdev) { in uart_device_deinit() argument
529 int uart_device_pm (struct u_platform_device *pdev, u_pm_ops_t state) { in uart_device_pm() argument
/AliOS-Things-master/components/drivers/peripheral/i2c/src/
A Di2c_dev.c328 int i2c_device_init (struct u_platform_device *pdev) { in i2c_device_init() argument
335 int i2c_device_deinit (struct u_platform_device *pdev) { in i2c_device_deinit() argument
340 int i2c_device_pm (struct u_platform_device *pdev, u_pm_ops_t state) { in i2c_device_pm() argument
/AliOS-Things-master/components/drivers/peripheral/spi/src/
A Dspi_dev.c471 int spi_device_init (struct u_platform_device *pdev) { in spi_device_init() argument
478 int spi_device_deinit (struct u_platform_device *pdev) { in spi_device_deinit() argument
483 int spi_device_pm (struct u_platform_device *pdev, u_pm_ops_t state) { in spi_device_pm() argument

Completed in 23 milliseconds