Lines Matching refs:osl_t
75 static void osl_dma_lock(osl_t *osh);
76 static void osl_dma_unlock(osl_t *osh);
77 static void osl_dma_lock_init(osl_t *osh);
193 osl_dma_map_dump(osl_t *osh) in osl_dma_map_dump()
236 osl_dma_map_log_deinit(osl_t *osh) in osl_dma_map_log_deinit()
250 osl_dma_map_logging(osl_t *osh, void *handle, dmaaddr_t pa, uint32 len) in osl_dma_map_logging()
281 osl_t *
291 osl_t *osh; in osl_attach()
295 if (!(osh = kmalloc(sizeof(osl_t), flags))) in osl_attach()
300 bzero(osh, sizeof(osl_t)); in osl_attach()
380 void osl_set_bus_handle(osl_t *osh, void *bus_handle) in osl_set_bus_handle()
385 void* osl_get_bus_handle(osl_t *osh) in osl_get_bus_handle()
391 void osl_set_bpt_cb(osl_t *osh, void *bpt_cb, void *bpt_ctx) in osl_set_bpt_cb()
401 osl_detach(osl_t *osh) in osl_detach()
434 BCMFASTPATH(osl_flag_set)(osl_t *osh, uint32 mask) in BCMFASTPATH()
440 osl_flag_clr(osl_t *osh, uint32 mask) in osl_flag_clr()
446 osl_is_flag_set(osl_t *osh, uint32 mask) in osl_is_flag_set()
476 osl_pci_read_config(osl_t *osh, uint offset, uint size) in osl_pci_read_config()
502 osl_pci_write_config(osl_t *osh, uint offset, uint size, uint val) in osl_pci_write_config()
532 osl_pci_bus(osl_t *osh) in osl_pci_bus()
545 osl_pci_slot(osl_t *osh) in osl_pci_slot()
558 osl_pcie_domain(osl_t *osh) in osl_pcie_domain()
567 osl_pcie_bus(osl_t *osh) in osl_pcie_bus()
576 osl_pci_device(osl_t *osh) in osl_pci_device()
594 osl_malloc(osl_t *osh, uint size) in osl_malloc()
651 osl_mallocz(osl_t *osh, uint size) in osl_mallocz()
675 osl_mfree(osl_t *osh, void *addr, uint size) in osl_mfree()
725 osl_vmalloc(osl_t *osh, uint size) in osl_vmalloc()
745 osl_vmallocz(osl_t *osh, uint size) in osl_vmallocz()
769 osl_vmfree(osl_t *osh, void *addr, uint size) in osl_vmfree()
782 osl_check_memleak(osl_t *osh) in osl_check_memleak()
792 osl_malloced(osl_t *osh) in osl_malloced()
799 osl_malloc_failed(osl_t *osh) in osl_malloc_failed()
807 osl_debug_malloc(osl_t *osh, uint size, int line, const char* file) in osl_debug_malloc()
853 osl_debug_mallocz(osl_t *osh, uint size, int line, const char* file) in osl_debug_mallocz()
867 osl_debug_mfree(osl_t *osh, void *addr, uint size, int line, const char* file) in osl_debug_mfree()
896 if (osh && ((osl_t*)p->osh)->cmn != osh->cmn) { in osl_debug_mfree()
898 ((osl_t*)p->osh)->cmn, osh->cmn); in osl_debug_mfree()
902 ASSERT(((osl_t*)p->osh)->cmn == osh->cmn); in osl_debug_mfree()
926 osl_debug_vmalloc(osl_t *osh, uint size, int line, const char* file) in osl_debug_vmalloc()
972 osl_debug_vmallocz(osl_t *osh, uint size, int line, const char* file) in osl_debug_vmallocz()
986 osl_debug_vmfree(osl_t *osh, void *addr, uint size, int line, const char* file) in osl_debug_vmfree()
1008 if (osh && ((osl_t*)p->osh)->cmn != osh->cmn) { in osl_debug_vmfree()
1010 ((osl_t*)p->osh)->cmn, osh->cmn); in osl_debug_vmfree()
1013 ASSERT(((osl_t*)p->osh)->cmn == osh->cmn); in osl_debug_vmfree()
1037 osl_debug_memdump(osl_t *osh, struct bcmstrbuf *b) in osl_debug_memdump()
1115 osl_dma_alloc_consistent(osl_t *osh, uint size, uint16 align_bits, uint *alloced, dmaaddr_t *pap) in osl_dma_alloc_consistent()
1156 osl_dma_free_consistent(osl_t *osh, void *va, uint size, dmaaddr_t pa) in osl_dma_free_consistent()
1183 BCMFASTPATH(osl_dma_flush)(osl_t *osh, void *va, uint size, int direction, void *p, in BCMFASTPATH()
1190 BCMFASTPATH(osl_dma_map)(osl_t *osh, void *va, uint size, int direction, void *p, in BCMFASTPATH()
1226 BCMFASTPATH(osl_dma_unmap)(osl_t *osh, dmaaddr_t pa, uint size, int direction) in BCMFASTPATH()
1260 extern void osl_preempt_disable(osl_t *osh) in osl_preempt_disable()
1265 extern void osl_preempt_enable(osl_t *osh) in osl_preempt_enable()
1437 osl_readb(osl_t *osh, volatile uint8 *r) in osl_readb()
1446 osl_readw(osl_t *osh, volatile uint16 *r) in osl_readw()
1455 osl_readl(osl_t *osh, volatile uint32 *r) in osl_readl()
1464 osl_writeb(osl_t *osh, volatile uint8 *r, uint8 v) in osl_writeb()
1473 osl_writew(osl_t *osh, volatile uint16 *r, uint16 v) in osl_writew()
1482 osl_writel(osl_t *osh, volatile uint32 *r, uint32 v) in osl_writel()
1724 inline void osl_bpt_rreg(osl_t *osh, ulong addr, volatile void *v, uint size) in osl_bpt_rreg()
1773 osl_timer_init(osl_t *osh, const char *name, void (*fn)(void *arg), void *arg) in osl_timer_init()
1802 osl_timer_add(osl_t *osh, osl_timer_t *t, uint32 ms, bool periodic) in osl_timer_add()
1826 osl_timer_update(osl_t *osh, osl_timer_t *t, uint32 ms, bool periodic) in osl_timer_update()
1851 osl_timer_del(osl_t *osh, osl_timer_t *t) in osl_timer_del()
1887 osl_spin_lock_init(osl_t *osh) in osl_spin_lock_init()
1898 osl_spin_lock_deinit(osl_t *osh, void *lock) in osl_spin_lock_deinit()
1979 osl_mutex_lock_init(osl_t *osh) in osl_mutex_lock_init()
1991 osl_mutex_lock_deinit(osl_t *osh, void *mutex) in osl_mutex_lock_deinit()
2024 osl_dma_lock(osl_t *osh) in osl_dma_lock()
2043 osl_dma_unlock(osl_t *osh) in osl_dma_unlock()
2054 osl_dma_lock_init(osl_t *osh) in osl_dma_lock_init()