Searched refs:PTR_ALIGN (Results 1 – 6 of 6) sorted by relevance
83 #define PTR_ALIGN(v) \ macro576 + PTR_ALIGN(sizeof(struct usbi_transfer))))580 - PTR_ALIGN(sizeof(struct usbi_transfer))))746 return (unsigned char *)ctx + PTR_ALIGN(sizeof(*ctx)); in usbi_get_context_priv()751 return (unsigned char *)dev + PTR_ALIGN(sizeof(*dev)); in usbi_get_device_priv()756 return (unsigned char *)dev_handle + PTR_ALIGN(sizeof(*dev_handle)); in usbi_get_device_handle_priv()
702 struct libusb_device *dev = calloc(1, PTR_ALIGN(sizeof(*dev)) + priv_size); in usbi_alloc_device()1261 _dev_handle = calloc(1, PTR_ALIGN(sizeof(*_dev_handle)) + priv_size); in libusb_wrap_sys_device()1315 _dev_handle = calloc(1, PTR_ALIGN(sizeof(*_dev_handle)) + priv_size); in libusb_open()2277 ctx = calloc(1, PTR_ALIGN(sizeof(*ctx)) + priv_size); in libusb_init()
1299 priv_size = PTR_ALIGN(usbi_backend.transfer_priv_size); in libusb_alloc_transfer()1350 priv_size = PTR_ALIGN(usbi_backend.transfer_priv_size); in libusb_free_transfer()
39 #define PTR_ALIGN(p, a) ((__typeof__(p))ALIGN((unsigned long)(p), (a))) macro
439 …itransfer = (struct usbi_transfer *)((unsigned char *)transfer_priv + PTR_ALIGN(sizeof(*transfer_p… in windows_iocp_thread()