Lines Matching refs:hmaptest
743 dhd_hmaptest_t hmaptest; /* for hmaptest */ member
3354 if (dhd_dma_buf_alloc(dhd, &prot->hmaptest.mem, HMAP_SANDBOX_BUFFER_LEN)) { in dhd_prot_allocate_bufs()
3362 scratch_pa = prot->hmaptest.mem.pa; in dhd_prot_allocate_bufs()
3363 scratch_len = prot->hmaptest.mem.len; in dhd_prot_allocate_bufs()
3970 prot->hmaptest.in_progress = FALSE; in dhd_prot_init()
4233 dhd_dma_buf_free(dhd, &prot->hmaptest.mem); in dhd_prot_detach()
4362 dhd_dma_buf_reset(dhd, &prot->hmaptest.mem); in dhd_prot_reset()
5511 dhd->prot->hmap_rx_buf_va = (char *)dhd->prot->hmaptest.mem.va in BCMFASTPATH()
5512 + dhd->prot->hmaptest.offset; in BCMFASTPATH()
5516 ((char *)dhd->prot->hmaptest.mem.va + dhd->prot->hmaptest.mem.len)) { in BCMFASTPATH()
5520 dhd->prot->hmaptest.in_progress = FALSE; in BCMFASTPATH()
6739 prot->hmaptest.in_progress = FALSE; in BCMFASTPATH()
7978 prot->hmaptest.in_progress = FALSE; in BCMFASTPATH()
8755 dhd->prot->hmap_tx_buf_va = (char *)dhd->prot->hmaptest.mem.va
8756 + dhd->prot->hmaptest.offset;
8760 ((char *)dhd->prot->hmaptest.mem.va + dhd->prot->hmaptest.mem.len)) {
8764 dhd->prot->hmaptest.in_progress = FALSE;
9164 uint32 len = dhd->prot->hmaptest.len;
9168 end_usec -= prot->hmaptest.start_usec;
9172 prot->hmaptest.in_progress = FALSE;
9173 if (prot->hmaptest.accesstype == HMAPTEST_ACCESS_M2M) {
9175 } else if (prot->hmaptest.accesstype == HMAPTEST_ACCESS_ARM) {
9180 readbuf = (char *)dhd->prot->hmaptest.mem.va + dhd->prot->hmaptest.offset;
9181 OSL_CACHE_FLUSH(dhd->prot->hmaptest.mem.va,
9182 dhd->prot->hmaptest.mem.len);
9183 if (prot->hmaptest.is_write) {
9211 scratch_pa = prot->hmaptest.mem.pa;
9212 scratch_len = prot->hmaptest.mem.len;
9291 dhd->prot->hmaptest.in_progress = FALSE;
9331 scratch_pa = prot->hmaptest.mem.pa;
9332 scratch_len = prot->hmaptest.mem.len;
9350 OSL_CACHE_FLUSH(dhd->prot->hmaptest.mem.va,
9351 dhd->prot->hmaptest.mem.len);
9411 if (prot->hmaptest.in_progress) {
9416 prot->hmaptest.in_progress = TRUE;
9422 prot->hmaptest.accesstype = hmaptest_params->accesstype;
9423 prot->hmaptest.is_write = hmaptest_params->is_write;
9424 prot->hmaptest.len = hmaptest_params->xfer_len;
9425 prot->hmaptest.offset = hmaptest_params->host_offset;
9426 offset = prot->hmaptest.offset;
9429 prot->hmaptest.is_write, prot->hmaptest.accesstype,
9430 offset, prot->hmaptest.len, hmaptest_params->value));
9433 (uint32)PHYSADDRLO(prot->hmaptest.mem.pa),
9434 (uint32)PHYSADDRHI(prot->hmaptest.mem.pa)));
9436 if (prot->hmaptest.accesstype == HMAPTEST_ACCESS_D11) {
9437 if (prot->hmaptest.is_write) {
9448 uint32 maxbuflen = MIN(prot->hmaptest.len, (PKTBUFSZ));
9449 char *fillbuf = (char *)dhd->prot->hmaptest.mem.va
9452 ((char *)dhd->prot->hmaptest.mem.va + dhd->prot->hmaptest.mem.len)) {
9454 dhd->prot->hmaptest.in_progress = FALSE;
9458 if (prot->hmaptest.accesstype == HMAPTEST_ACCESS_M2M) {
9460 } else if (prot->hmaptest.accesstype == HMAPTEST_ACCESS_ARM) {
9463 prot->hmaptest.in_progress = FALSE;
9478 OSL_CACHE_FLUSH(dhd->prot->hmaptest.mem.va,
9479 dhd->prot->hmaptest.mem.len);
9489 if (prot->hmaptest.accesstype == HMAPTEST_ACCESS_D11) {
9494 scratch_lin = (uint64)(PHYSADDRLO(prot->hmaptest.mem.pa) & 0xffffffff)
9495 | (((uint64)PHYSADDRHI(prot->hmaptest.mem.pa) & 0xffffffff) << 32);
9502 prot->hmaptest.start_usec = OSL_SYSUPTIME_US();