Lines Matching refs:stat
69 struct rtwn_rx_stat_common *stat) in rtwn_rx_check_pre_alloc() argument
83 rxdw0 = le32toh(stat->rxdw0); in rtwn_rx_check_pre_alloc()
109 rtwn_rx_copy_to_mbuf(struct rtwn_softc *sc, struct rtwn_rx_stat_common *stat, in rtwn_rx_copy_to_mbuf() argument
120 __func__, le32toh(stat->rxdw0), le32toh(stat->rxdw1), in rtwn_rx_copy_to_mbuf()
121 le32toh(stat->rxdw2), le32toh(stat->rxdw3), le32toh(stat->rxdw4), in rtwn_rx_copy_to_mbuf()
122 le32toh(stat->tsf_low)); in rtwn_rx_copy_to_mbuf()
124 if (rtwn_rx_check_pre_alloc(sc, stat) != 0) in rtwn_rx_copy_to_mbuf()
135 memcpy(mtod(m, uint8_t *), (uint8_t *)stat, totlen); in rtwn_rx_copy_to_mbuf()
155 struct rtwn_rx_stat_common *stat = &uc->uc_rx_stat; in rtwn_rxeof_fragmented() local
162 if (uc->uc_rx_stat_len < sizeof(*stat)) { in rtwn_rxeof_fragmented()
163 min_len = min(sizeof(*stat) - uc->uc_rx_stat_len, len); in rtwn_rxeof_fragmented()
164 memcpy((uint8_t *)stat + uc->uc_rx_stat_len, buf, min_len); in rtwn_rxeof_fragmented()
170 if (uc->uc_rx_stat_len < sizeof(*stat)) in rtwn_rxeof_fragmented()
179 "tsfl %08X\n", __func__, le32toh(stat->rxdw0), in rtwn_rxeof_fragmented()
180 le32toh(stat->rxdw1), le32toh(stat->rxdw2), in rtwn_rxeof_fragmented()
181 le32toh(stat->rxdw3), le32toh(stat->rxdw4), in rtwn_rxeof_fragmented()
182 le32toh(stat->tsf_low)); in rtwn_rxeof_fragmented()
185 rxdw0 = le32toh(stat->rxdw0); in rtwn_rxeof_fragmented()
188 totlen = sizeof(*stat) + infosz + pktlen; in rtwn_rxeof_fragmented()
190 if (rtwn_rx_check_pre_alloc(sc, stat) == 0) { in rtwn_rxeof_fragmented()
194 (caddr_t)stat); in rtwn_rxeof_fragmented()
206 uc->uc_rx_off = sizeof(*stat); in rtwn_rxeof_fragmented()
241 struct rtwn_rx_stat_common *stat; in rtwn_rxeof() local
253 while (len >= sizeof(*stat)) { in rtwn_rxeof()
254 stat = (struct rtwn_rx_stat_common *)buf; in rtwn_rxeof()
255 rxdw0 = le32toh(stat->rxdw0); in rtwn_rxeof()
264 totlen = sizeof(*stat) + infosz + pktlen; in rtwn_rxeof()
273 m0 = m = rtwn_rx_copy_to_mbuf(sc, stat, totlen); in rtwn_rxeof()
275 m->m_nextpkt = rtwn_rx_copy_to_mbuf(sc, stat, totlen); in rtwn_rxeof()
352 struct rtwn_rx_stat_common stat; in rtwn_rx_frame() local
355 m_copydata(m, 0, sizeof(stat), (caddr_t)&stat); in rtwn_rx_frame()
356 m_adj(m, sizeof(stat)); in rtwn_rx_frame()
358 return (rtwn_rx_common(sc, m, &stat)); in rtwn_rx_frame()