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