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