Lines Matching defs:ptr
117 static void xhci_ctx_set_le32(struct xhci_softc *sc, volatile uint32_t *ptr, uint32_t val);
118 static uint32_t xhci_ctx_get_le32(struct xhci_softc *sc, volatile uint32_t *ptr);
119 static void xhci_ctx_set_le64(struct xhci_softc *sc, volatile uint64_t *ptr, uint64_t val);
121 static uint64_t xhci_ctx_get_le64(struct xhci_softc *sc, volatile uint64_t *ptr);
189 xhci_ctx_set_le32(struct xhci_softc *sc, volatile uint32_t *ptr, uint32_t val)
195 offset = ((uintptr_t)ptr) & ((XHCI_PAGE_SIZE - 1) & ~(31U));
196 ptr = (volatile uint32_t *)(((volatile uint8_t *)ptr) + offset);
198 *ptr = htole32(val);
202 xhci_ctx_get_le32(struct xhci_softc *sc, volatile uint32_t *ptr)
208 offset = ((uintptr_t)ptr) & ((XHCI_PAGE_SIZE - 1) & ~(31U));
209 ptr = (volatile uint32_t *)(((volatile uint8_t *)ptr) + offset);
211 return (le32toh(*ptr));
215 xhci_ctx_set_le64(struct xhci_softc *sc, volatile uint64_t *ptr, uint64_t val)
221 offset = ((uintptr_t)ptr) & ((XHCI_PAGE_SIZE - 1) & ~(31U));
222 ptr = (volatile uint64_t *)(((volatile uint8_t *)ptr) + offset);
224 *ptr = htole64(val);
229 xhci_ctx_get_le64(struct xhci_softc *sc, volatile uint64_t *ptr)
235 offset = ((uintptr_t)ptr) & ((XHCI_PAGE_SIZE - 1) & ~(31U));
236 ptr = (volatile uint64_t *)(((volatile uint8_t *)ptr) + offset);
238 return (le64toh(*ptr));
3134 #define HSETW(ptr, val) ptr = { (uint8_t)(val), (uint8_t)((val) >> 8) }
3235 const void *ptr;
3248 ptr = (const void *)&sc->sc_hub_desc;
3282 ptr = (const void *)&xhci_devd;
3291 ptr = (const void *)&xhci_bosd;
3300 ptr = (const void *)&xhci_confd;
3652 *pptr = ptr;
3826 DPRINTF("Could not set dequeue ptr for endpoint %u\n", epno);