• Home
  • Raw
  • Download

Lines Matching refs:osh

188 sdioh_attach(osl_t *osh, void *bar0, uint irq)  in sdioh_attach()  argument
193 if ((sd = (sdioh_info_t *)MALLOC(osh, sizeof(sdioh_info_t))) == NULL) { in sdioh_attach()
194 sd_err(("sdioh_attach: out of memory, malloced %d bytes\n", MALLOCED(osh))); in sdioh_attach()
199 sd->osh = osh; in sdioh_attach()
202 MFREE(sd->osh, sd, sizeof(sdioh_info_t)); in sdioh_attach()
205 sd->mem_space = (volatile char *)sdstd_reg_map(osh, (uintptr)bar0, SDIOH_REG_WINSZ); in sdioh_attach()
211 MFREE(sd->osh, sd, sizeof(sdioh_info_t)); in sdioh_attach()
237 sdstd_reg_unmap(osh, (uintptr)sd->mem_space, SDIOH_REG_WINSZ); in sdioh_attach()
241 MFREE(sd->osh, sd, sizeof(sdioh_info_t)); in sdioh_attach()
246 OSL_DMADDRWIDTH(osh, 32); in sdioh_attach()
255 sdstd_reg_unmap(osh, (uintptr)sd->mem_space, SDIOH_REG_WINSZ); in sdioh_attach()
260 MFREE(sd->osh, sd, sizeof(sdioh_info_t)); in sdioh_attach()
269 sdioh_detach(osl_t *osh, sdioh_info_t *sd) in sdioh_detach() argument
280 sdstd_reg_unmap(osh, (uintptr)sd->mem_space, SDIOH_REG_WINSZ); in sdioh_detach()
285 MFREE(sd->osh, sd, sizeof(sdioh_info_t)); in sdioh_detach()
870 if ((localbuf = (uint8 *)MALLOC(sd->osh, len)) == NULL) { in sdioh_request_buffer()
872 MALLOCED(sd->osh))); in sdioh_request_buffer()
892 MFREE(sd->osh, localbuf, len); in sdioh_request_buffer()
1305 if ((OSL_PCI_READ_CONFIG(sd->osh, PCI_CFG_VID, 4) & 0xFFFF) == VENDOR_SI_IMAGE) { in sdstd_host_init()
1309 } else if ((OSL_PCI_READ_CONFIG(sd->osh, PCI_CFG_VID, 4) & 0xFFFF) == VENDOR_BROADCOM) { in sdstd_host_init()
1313 } else if ((OSL_PCI_READ_CONFIG(sd->osh, PCI_CFG_VID, 4) & 0xFFFF) == VENDOR_TI) { in sdstd_host_init()
1317 } else if ((OSL_PCI_READ_CONFIG(sd->osh, PCI_CFG_VID, 4) & 0xFFFF) == VENDOR_RICOH) { in sdstd_host_init()
1322 } else if ((OSL_PCI_READ_CONFIG(sd->osh, PCI_CFG_VID, 4) & 0xFFFF) == VENDOR_JMICRON) { in sdstd_host_init()
1336 first_bar = OSL_PCI_READ_CONFIG(sd->osh, SD_SlotInfo, 4) & 0x7; in sdstd_host_init()
1337 num_slots = (OSL_PCI_READ_CONFIG(sd->osh, SD_SlotInfo, 4) & 0xff) >> 4; in sdstd_host_init()
1341 if (OSL_PCI_READ_CONFIG(sd->osh, PCI_CFG_VID, 4) == in sdstd_host_init()
1345 OSL_PCI_WRITE_CONFIG(sd->osh, PCI_BAR0_WIN, 4, 0x18001000); in sdstd_host_init()
1360 sdstd_reg_unmap(sd->osh, (uintptr)sd->mem_space, SDIOH_REG_WINSZ); in sdstd_host_init()
1367 bar = OSL_PCI_READ_CONFIG(sd->osh, PCI_CFG_BAR0 + (4*(slot + first_bar)), 4); in sdstd_host_init()
1368 sd->mem_space = (volatile char *)sdstd_reg_map(sd->osh, in sdstd_host_init()
1388 sdstd_reg_unmap(sd->osh, (uintptr)sd->mem_space, SDIOH_REG_WINSZ); in sdstd_host_init()
1398 bar = OSL_PCI_READ_CONFIG(sd->osh, PCI_CFG_BAR0 + (4*(full_slot + first_bar)), 4); in sdstd_host_init()
1399 sd->mem_space = (volatile char *)sdstd_reg_map(sd->osh, (uintptr)bar, SDIOH_REG_WINSZ); in sdstd_host_init()
1404 OSL_PCI_READ_CONFIG(sd->osh, PCI_CFG_BAR0 + (4*(full_slot + first_bar)), 4), in sdstd_host_init()
2924 if ((va = DMA_ALLOC_CONSISTENT(sd->osh, SD_PAGE, in sd_map_dma()
2942 if ((va = DMA_ALLOC_CONSISTENT(sd->osh, SD_PAGE, in sd_map_dma()
2968 DMA_FREE_CONSISTENT(sd->osh, sd->dma_start_buf, sd->alloced_dma_size, in sd_unmap_dma()
2973 DMA_FREE_CONSISTENT(sd->osh, sd->adma2_dscr_start_buf, sd->alloced_adma2_dscr_size, in sd_unmap_dma()