Lines Matching refs:scn
38 hif_ce_dump_target_memory(struct hif_softc *scn, void *ramdump_base, in hif_ce_dump_target_memory() argument
46 if (Q_TARGET_ACCESS_BEGIN(scn) < 0) in hif_ce_dump_target_memory()
50 val = hif_read32_mb(scn, scn->mem + loc + j); in hif_ce_dump_target_memory()
56 Q_TARGET_ACCESS_END(scn); in hif_ce_dump_target_memory()
68 (scn->mem_pa + addr)
76 #define TARG_CPU_SPACE_TO_CE_SPACE_AR900B(scn, pci_addr, addr) \ argument
77 (hif_read32_mb(scn, (pci_addr) + (WIFICMN_PCIE_BAR_REG_ADDRESS)) \
98 struct hif_softc *scn = sc; in get_ce_phy_addr() local
124 struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx); in hif_diag_read_mem() local
126 struct HIF_CE_state *hif_state = HIF_GET_CE_STATE(scn); in hif_diag_read_mem()
191 A_TARGET_ACCESS_LIKELY(scn); in hif_diag_read_mem()
200 data_buf = qdf_mem_alloc_consistent(scn->qdf_dev, scn->qdf_dev->dev, in hif_diag_read_mem()
218 if (Q_TARGET_ACCESS_BEGIN(scn) < 0) { in hif_diag_read_mem()
224 ce_phy_addr = get_ce_phy_addr(scn, address, target_type); in hif_diag_read_mem()
226 if (Q_TARGET_ACCESS_END(scn) < 0) { in hif_diag_read_mem()
284 A_TARGET_ACCESS_UNLIKELY(scn); in hif_diag_read_mem()
292 qdf_mem_free_consistent(scn->qdf_dev, scn->qdf_dev->dev, in hif_diag_read_mem()
303 struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx); in hif_diag_read_access() local
310 if (Q_TARGET_ACCESS_BEGIN(scn) < 0) in hif_diag_read_access()
312 *data = A_TARGET_READ(scn, address); in hif_diag_read_access()
313 if (Q_TARGET_ACCESS_END(scn) < 0) in hif_diag_read_access()
330 struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx); in hif_diag_write_mem() local
363 A_TARGET_ACCESS_LIKELY(scn); in hif_diag_write_mem()
372 data_buf = qdf_mem_alloc_consistent(scn->qdf_dev, scn->qdf_dev->dev, in hif_diag_write_mem()
381 qdf_mem_dma_sync_single_for_device(scn->qdf_dev, CE_data_base, in hif_diag_write_mem()
386 if (Q_TARGET_ACCESS_BEGIN(scn) < 0) { in hif_diag_write_mem()
392 ce_phy_addr = get_ce_phy_addr(scn, address, target_type); in hif_diag_write_mem()
394 if (Q_TARGET_ACCESS_END(scn) < 0) { in hif_diag_write_mem()
470 A_TARGET_ACCESS_UNLIKELY(scn); in hif_diag_write_mem()
473 qdf_mem_free_consistent(scn->qdf_dev, scn->qdf_dev->dev, in hif_diag_write_mem()
488 struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx); in hif_diag_write_access() local
498 if (Q_TARGET_ACCESS_BEGIN(scn) < 0) in hif_diag_write_access()
500 A_TARGET_WRITE(scn, address, data); in hif_diag_write_access()
501 if (Q_TARGET_ACCESS_END(scn) < 0) in hif_diag_write_access()