Lines Matching refs:stat
71 struct rtwn_rx_stat_common *stat) in rtwn_rx_check_pre_alloc() argument
85 rxdw0 = le32toh(stat->rxdw0); in rtwn_rx_check_pre_alloc()
111 rtwn_rx_copy_to_mbuf(struct rtwn_softc *sc, struct rtwn_rx_stat_common *stat, in rtwn_rx_copy_to_mbuf() argument
122 __func__, le32toh(stat->rxdw0), le32toh(stat->rxdw1), in rtwn_rx_copy_to_mbuf()
123 le32toh(stat->rxdw2), le32toh(stat->rxdw3), le32toh(stat->rxdw4), in rtwn_rx_copy_to_mbuf()
124 le32toh(stat->tsf_low)); in rtwn_rx_copy_to_mbuf()
126 if (rtwn_rx_check_pre_alloc(sc, stat) != 0) in rtwn_rx_copy_to_mbuf()
137 memcpy(mtod(m, uint8_t *), (uint8_t *)stat, totlen); in rtwn_rx_copy_to_mbuf()
157 struct rtwn_rx_stat_common *stat = &uc->uc_rx_stat; in rtwn_rxeof_fragmented() local
164 if (uc->uc_rx_stat_len < sizeof(*stat)) { in rtwn_rxeof_fragmented()
165 min_len = min(sizeof(*stat) - uc->uc_rx_stat_len, len); in rtwn_rxeof_fragmented()
166 memcpy((uint8_t *)stat + uc->uc_rx_stat_len, buf, min_len); in rtwn_rxeof_fragmented()
172 if (uc->uc_rx_stat_len < sizeof(*stat)) in rtwn_rxeof_fragmented()
181 "tsfl %08X\n", __func__, le32toh(stat->rxdw0), in rtwn_rxeof_fragmented()
182 le32toh(stat->rxdw1), le32toh(stat->rxdw2), in rtwn_rxeof_fragmented()
183 le32toh(stat->rxdw3), le32toh(stat->rxdw4), in rtwn_rxeof_fragmented()
184 le32toh(stat->tsf_low)); in rtwn_rxeof_fragmented()
187 rxdw0 = le32toh(stat->rxdw0); in rtwn_rxeof_fragmented()
190 totlen = sizeof(*stat) + infosz + pktlen; in rtwn_rxeof_fragmented()
192 if (rtwn_rx_check_pre_alloc(sc, stat) == 0) { in rtwn_rxeof_fragmented()
196 (caddr_t)stat); in rtwn_rxeof_fragmented()
208 uc->uc_rx_off = sizeof(*stat); in rtwn_rxeof_fragmented()
243 struct rtwn_rx_stat_common *stat; in rtwn_rxeof() local
255 while (len >= sizeof(*stat)) { in rtwn_rxeof()
256 stat = (struct rtwn_rx_stat_common *)buf; in rtwn_rxeof()
257 rxdw0 = le32toh(stat->rxdw0); in rtwn_rxeof()
266 totlen = sizeof(*stat) + infosz + pktlen; in rtwn_rxeof()
275 m0 = m = rtwn_rx_copy_to_mbuf(sc, stat, totlen); in rtwn_rxeof()
277 m->m_nextpkt = rtwn_rx_copy_to_mbuf(sc, stat, totlen); in rtwn_rxeof()
354 struct rtwn_rx_stat_common stat; in rtwn_rx_frame() local
357 m_copydata(m, 0, sizeof(stat), (caddr_t)&stat); in rtwn_rx_frame()
358 m_adj(m, sizeof(stat)); in rtwn_rx_frame()
360 return (rtwn_rx_common(sc, m, &stat)); in rtwn_rx_frame()