Lines Matching refs:locker

2513 	dhd_pktid_item_t *locker;  in dhd_pktid_map_reset()  local
2527 locker = &map->lockers[nkey]; in dhd_pktid_map_reset()
2528 locker->state = LOCKER_IS_FREE; in dhd_pktid_map_reset()
2529 data_tx = (locker->pkttype == PKTTYPE_DATA_TX); in dhd_pktid_map_reset()
2539 locker->pa, nkey, locker->len, in dhd_pktid_map_reset()
2540 locker->pkttype); in dhd_pktid_map_reset()
2543 DMA_UNMAP(osh, locker->pa, locker->len, locker->dir, 0, locker->dmah); in dhd_pktid_map_reset()
2544 dhd_prot_packet_free(dhd, (ulong*)locker->pkt, in dhd_pktid_map_reset()
2545 locker->pkttype, data_tx); in dhd_pktid_map_reset()
2567 dhd_pktid_item_t *locker; in dhd_pktid_map_reset_ioctl() local
2584 locker = &map->lockers[nkey]; in dhd_pktid_map_reset_ioctl()
2585 retbuf.va = locker->pkt; in dhd_pktid_map_reset_ioctl()
2586 retbuf.len = locker->len; in dhd_pktid_map_reset_ioctl()
2587 retbuf.pa = locker->pa; in dhd_pktid_map_reset_ioctl()
2588 retbuf.dmah = locker->dmah; in dhd_pktid_map_reset_ioctl()
2589 retbuf.secdma = locker->secdma; in dhd_pktid_map_reset_ioctl()
2708 dhd_pktid_item_t *locker; in dhd_pktid_map_reserve() local
2736 locker = &map->lockers[nkey]; /* save packet metadata in locker */ in dhd_pktid_map_reserve()
2738 locker->pkt = pkt; /* pkt is saved, other params not yet saved. */ in dhd_pktid_map_reserve()
2739 locker->len = 0; in dhd_pktid_map_reserve()
2740 locker->state = LOCKER_IS_BUSY; /* reserve this locker */ in dhd_pktid_map_reserve()
2762 dhd_pktid_item_t *locker; in dhd_pktid_map_save_metadata() local
2786 locker = &map->lockers[nkey]; in dhd_pktid_map_save_metadata()
2794 locker->mpkt = mpkt; in dhd_pktid_map_save_metadata()
2795 locker->mpkt_pa = mpkt_pa; in dhd_pktid_map_save_metadata()
2796 locker->mpkt_len = mpkt_len; in dhd_pktid_map_save_metadata()
2797 locker->dmah = dmah; in dhd_pktid_map_save_metadata()
2813 dhd_pktid_item_t *locker; in dhd_pktid_map_save() local
2837 locker = &map->lockers[nkey]; in dhd_pktid_map_save()
2839 ASSERT(((locker->state == LOCKER_IS_BUSY) && (locker->pkt == pkt)) || in dhd_pktid_map_save()
2840 ((locker->state == LOCKER_IS_RSVD) && (locker->pkt == NULL))); in dhd_pktid_map_save()
2843 locker->dir = dir; in dhd_pktid_map_save()
2844 locker->pa = pa; in dhd_pktid_map_save()
2845 locker->len = (uint16)len; /* 16bit len */ in dhd_pktid_map_save()
2846 locker->dmah = dmah; /* 16bit len */ in dhd_pktid_map_save()
2847 locker->secdma = secdma; in dhd_pktid_map_save()
2848 locker->pkttype = pkttype; in dhd_pktid_map_save()
2849 locker->pkt = pkt; in dhd_pktid_map_save()
2850 locker->state = LOCKER_IS_BUSY; /* make this locker busy */ in dhd_pktid_map_save()
2886 dhd_pktid_item_t *locker; in BCMFASTPATH() local
2913 locker = &map->lockers[nkey]; in BCMFASTPATH()
2914 mpkt = locker->mpkt; in BCMFASTPATH()
2915 *pmpkt_pa = locker->mpkt_pa; in BCMFASTPATH()
2916 *pmpkt_len = locker->mpkt_len; in BCMFASTPATH()
2918 *pdmah = locker->dmah; in BCMFASTPATH()
2919 locker->mpkt = NULL; in BCMFASTPATH()
2920 locker->mpkt_len = 0; in BCMFASTPATH()
2921 locker->dmah = NULL; in BCMFASTPATH()
2940 dhd_pktid_item_t *locker; in BCMFASTPATH() local
2968 locker = &map->lockers[nkey]; in BCMFASTPATH()
2975 if (locker->state == LOCKER_IS_FREE) { in BCMFASTPATH()
2996 if ((pkttype != PKTTYPE_NO_CHECK) && (locker->pkttype != pkttype)) { in BCMFASTPATH()
3001 PHYSADDRTOULONG(locker->pa, locker_addr); in BCMFASTPATH()
3003 locker_addr = PHYSADDRLO(locker->pa); in BCMFASTPATH()
3007 __FUNCTION__, __LINE__, locker->state, locker->pkttype, in BCMFASTPATH()
3025 locker->state = LOCKER_IS_FREE; /* open and free Locker */ in BCMFASTPATH()
3028 locker->state = LOCKER_IS_RSVD; in BCMFASTPATH()
3035 DHD_PKTID_LOG(dhd, dhd->prot->pktid_dma_unmap, locker->pa, nkey, in BCMFASTPATH()
3036 (uint32)locker->len, pkttype); in BCMFASTPATH()
3039 *pa = locker->pa; /* return contents of locker */ in BCMFASTPATH()
3040 *len = (uint32)locker->len; in BCMFASTPATH()
3041 *dmah = locker->dmah; in BCMFASTPATH()
3042 *secdma = locker->secdma; in BCMFASTPATH()
3044 pkt = locker->pkt; in BCMFASTPATH()
3045 locker->pkt = NULL; /* Clear pkt */ in BCMFASTPATH()
3046 locker->len = 0; in BCMFASTPATH()