Searched refs:mtod (Results 1 - 25 of 91) sorted by relevance

1234

/haiku/src/libs/compat/openbsd_wlan/net80211/
H A Dieee80211_crypto_wep.c108 wh = mtod(m0, struct ieee80211_frame *);
110 memcpy(mtod(n0, caddr_t), wh, hdrlen);
118 ivp = mtod(n0, u_int8_t *) + hdrlen;
161 crc = ether_crc32_le_update(crc, mtod(m, caddr_t) + moff, len);
162 rc4_crypt(&ctx->rc4, mtod(m, caddr_t) + moff,
163 mtod(n, caddr_t) + noff, len);
180 icvp = mtod(n, caddr_t) + n->m_len;
211 wh = mtod(m0, struct ieee80211_frame *);
242 memcpy(mtod(n0, caddr_t), wh, hdrlen);
243 wh = mtod(n
[all...]
H A Dieee80211_crypto_ccmp.c195 wh = mtod(m0, struct ieee80211_frame *);
197 memcpy(mtod(n0, caddr_t), wh, hdrlen);
202 ivp = mtod(n0, u_int8_t *) + hdrlen;
253 src = mtod(m, u_int8_t *) + moff;
254 dst = mtod(n, u_int8_t *) + noff;
288 mic = mtod(n, u_int8_t *) + n->m_len;
311 wh = mtod(m, struct ieee80211_frame *);
358 wh = mtod(m0, struct ieee80211_frame *);
401 memcpy(mtod(n0, caddr_t), wh, hdrlen);
402 wh = mtod(n
[all...]
H A Dieee80211_crypto_tkip.c130 wh = mtod(m0, struct ieee80211_frame *);
165 pos = mtod(m, caddr_t) + off;
171 pos = mtod(m, caddr_t);
212 wh = mtod(m0, struct ieee80211_frame *);
214 memcpy(mtod(n0, caddr_t), wh, hdrlen);
219 ivp = mtod(n0, u_int8_t *) + hdrlen;
270 crc = ether_crc32_le_update(crc, mtod(m, caddr_t) + moff, len);
271 rc4_crypt(&ctx->rc4, mtod(m, caddr_t) + moff,
272 mtod(n, caddr_t) + noff, len);
289 mic = mtod(
[all...]
H A Dieee80211_output.c138 wh = mtod(m, struct ieee80211_frame *);
201 wh = mtod(m, struct ieee80211_frame *);
546 wh = mtod(m, struct ieee80211_frame *);
585 memcpy(&eh, mtod(m, caddr_t), sizeof(struct ether_header));
640 llc = mtod(m, struct llc *);
652 wh = mtod(m, struct ieee80211_frame *);
1276 frm = mtod(m, u_int8_t *);
1288 m->m_pkthdr.len = m->m_len = frm - mtod(m, u_int8_t *);
1336 frm = mtod(m, u_int8_t *);
1364 m->m_pkthdr.len = m->m_len = frm - mtod(
[all...]
H A Dieee80211_crypto_bip.c96 wh = mtod(m0, struct ieee80211_frame *);
127 mmie = mtod(m, u_int8_t *) + m->m_len;
161 wh = mtod(m0, struct ieee80211_frame *);
171 mmie = mtod(m0, u_int8_t *) + m0->m_len - IEEE80211_MMIE_LEN;
H A Dieee80211_pae_output.c75 eh = mtod(m, struct ether_header *);
274 key = mtod(m, struct ieee80211_eapol_key *);
325 key = mtod(m, struct ieee80211_eapol_key *);
390 key = mtod(m, struct ieee80211_eapol_key *);
451 key = mtod(m, struct ieee80211_eapol_key *);
515 key = mtod(m, struct ieee80211_eapol_key *);
575 key = mtod(m, struct ieee80211_eapol_key *);
618 key = mtod(m, struct ieee80211_eapol_key *);
H A Dieee80211_input.c171 wh = mtod(m, struct ieee80211_frame *);
210 memmove(mtod(m, caddr_t) + IEEE80211_CCMP_HDRLEN, wh, hdrlen);
239 wh = mtod(m, struct ieee80211_frame *);
241 memmove(mtod(m, caddr_t) + IEEE80211_TKIP_HDRLEN, wh, hdrlen);
294 wh = mtod(m, struct ieee80211_frame *);
597 wh = mtod(m, struct ieee80211_frame *);
654 wh = mtod(m, struct ieee80211_frame *);
735 wh = mtod(m, struct ieee80211_frame *);
764 owh = mtod(df->df_m, struct ieee80211_frame *);
828 wh = mtod(
[all...]
/haiku/src/libs/compat/freebsd_wlan/net80211/
H A Dieee80211_crypto_ccmp.c174 hdrlen = ieee80211_hdrspace(ic, mtod(m, void *));
175 wh = mtod(m, const struct ieee80211_frame *);
195 ivp = mtod(m, uint8_t *);
253 wh = mtod(m, struct ieee80211_frame *);
254 ivp = mtod(m, uint8_t *) + hdrlen;
292 ovbcopy(mtod(m, void *), mtod(m, uint8_t *) + ccmp.ic_header,
462 wh = mtod(m, struct ieee80211_frame *);
468 pos = mtod(m, uint8_t *) + hdrlen + ccmp.ic_header;
514 pos_next = mtod(
[all...]
H A Dieee80211_crypto_wep.c190 hdrlen = ieee80211_hdrspace(ic, mtod(m, void *));
191 wh = mtod(m, struct ieee80211_frame *);
208 ivp = mtod(m, uint8_t *);
247 wh = mtod(m, struct ieee80211_frame *);
270 ovbcopy(mtod(m, void *), mtod(m, uint8_t *) + wep.ic_header, hdrlen);
362 memcpy(rc4key, mtod(m, uint8_t *) + hdrlen, IEEE80211_WEP_IVLEN);
381 pos = mtod(m, uint8_t *) + off;
397 ether_sprintf(mtod(m0,
407 pos = mtod(
[all...]
H A Dieee80211_crypto_none.c105 struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *);
126 struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *);
H A Dieee80211_crypto_tkip.c187 wh = mtod(m, struct ieee80211_frame *);
195 struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *);
212 hdrlen = ieee80211_hdrspace(ic, mtod(m, void *));
220 ivp = mtod(m, uint8_t *);
246 wh = mtod(m, struct ieee80211_frame *);
258 struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *);
309 wh = mtod(m, struct ieee80211_frame *);
310 ivp = mtod(m, uint8_t *) + hdrlen;
366 memmove(mtod(m, uint8_t *) + tkip.ic_header, mtod(
[all...]
H A Dieee80211_input.c176 struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *);
220 lwh = mtod(mfrag, struct ieee80211_frame *);
263 struct ether_header *eh = mtod(m, struct ether_header *);
312 memcpy(&wh, mtod(m, caddr_t), hdrlen);
313 llc = (struct llc *)(mtod(m, caddr_t) + hdrlen);
325 eh = mtod(m, struct ether_header *);
345 if (!ALIGNED_POINTER(mtod(m, caddr_t) + sizeof(*eh), uint32_t)) {
352 eh = mtod(m, struct ether_header *);
378 eh = mtod(m, struct ether_header *); /* 802.3 header is first */
383 ovbcopy(eh, mtod(
[all...]
H A Dieee80211_wds.c239 const struct ether_header *eh = mtod(m, const struct ether_header *);
442 wh = mtod(m, struct ieee80211_frame *);
467 wh = mtod(m, struct ieee80211_frame *);
575 wh = mtod(m, struct ieee80211_frame *);
635 eh = mtod(m, struct ether_header *);
749 wh = mtod(m0, struct ieee80211_frame *);
751 efrm = mtod(m0, u_int8_t *) + m0->m_len;
H A Dieee80211_superg.c298 llc = (struct llc *)(mtod(m, uint8_t *) +
384 ETHER_HEADER_COPY(&eh1, mtod(m1, caddr_t));
399 ETHER_HEADER_COPY(&eh2, mtod(m2, caddr_t));
455 memset(mtod(m1, void *), 0, sizeof(uint32_t)+2);
464 llc = mtod(m1, struct llc *);
515 ETHER_HEADER_COPY(&eh1, mtod(m1, caddr_t));
533 ETHER_HEADER_COPY(&eh2, mtod(m2, caddr_t));
810 ETHER_IS_MULTICAST(mtod(m, struct ether_header *)->ether_dhost)) {
913 if (ETHER_IS_MULTICAST(mtod(m, struct ether_header *)->ether_dhost))
H A Dieee80211_output.c373 eh = mtod(m, struct ether_header *);
601 wh = mtod(m, struct ieee80211_frame *);
810 wh = mtod(m, struct ieee80211_frame *);
897 struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *);
1043 wh = mtod(m, struct ieee80211_frame *);
1142 wh = mtod(m, struct ieee80211_frame *); /* NB: a little lie */
1208 struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *);
1233 eh = mtod(m, struct ether_header *);
1497 ETHER_HEADER_COPY(&eh, mtod(m, caddr_t));
1657 llc = mtod(
[all...]
H A Dieee80211_adhoc.c341 wh = mtod(m, struct ieee80211_frame *);
367 wh = mtod(m, struct ieee80211_frame *);
514 wh = mtod(m, struct ieee80211_frame *);
574 eh = mtod(m, struct ether_header *);
715 wh = mtod(m0, struct ieee80211_frame *);
717 efrm = mtod(m0, uint8_t *) + m0->m_len;
1015 wh = mtod(m0, struct ieee80211_frame *);
H A Dieee80211_hostap.c363 struct ether_header *eh = mtod(m, struct ether_header *);
507 wh = mtod(m, struct ieee80211_frame *);
533 wh = mtod(m, struct ieee80211_frame *);
702 wh = mtod(m, struct ieee80211_frame *);
760 eh = mtod(m, struct ether_header *);
872 wh = mtod(m, struct ieee80211_frame *);
1648 l2uf = mtod(m, struct l2_update_frame *);
1755 wh = mtod(m0, struct ieee80211_frame *);
1757 efrm = mtod(m0, uint8_t *) + m0->m_len;
2391 wh = mtod(m
[all...]
H A Dieee80211_crypto.c567 wh = mtod(m, struct ieee80211_frame *);
656 wh = mtod(m, struct ieee80211_frame *);
709 wh = mtod(m, struct ieee80211_frame *);
/haiku/src/libs/compat/freebsd_network/
H A Dfbsd_uipc_mbuf2.c215 m_copydata(n->m_next, 0, tlen, mtod(n, caddr_t) + n->m_len);
224 bcopy(mtod(n, caddr_t) + off, mtod(n->m_next, caddr_t), hlen);
245 bcopy(mtod(n, caddr_t) + off, mtod(o, caddr_t), hlen);
248 m_copydata(n->m_next, 0, tlen, mtod(o, caddr_t) + o->m_len);
301 m_copydata(m, off, len, mtod(n, caddr_t));
H A Dfbsd_uipc_mbuf.c488 bcopy(mtod(m, caddr_t)+off, mtod(n, caddr_t),
531 bcopy(mtod(m, char *), mtod(n, char *), n->m_len);
548 bcopy(mtod(m, char *), mtod(n, char *), n->m_len);
580 bcopy(mtod(m, caddr_t) + off, cp, count);
681 bcopy(mtod(n, caddr_t), mtod(m, caddr_t) + m->m_len,
779 * and in the data area of an mbuf (so that mtod wil
[all...]
H A Dfbsd_ether.c144 evl = mtod(m, struct ether_vlan_header *);
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/
H A Dif_rtwn_tx.c127 wh = mtod(m, struct ieee80211_frame *);
169 wh = mtod(m, struct ieee80211_frame *);
217 wh = mtod(m, struct ieee80211_frame *);
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/pci/
H A Drtwn_pci_rx.c140 error = bus_dmamap_load(ring->data_dmat, rx_data->map, mtod(m1, void *),
146 mtod(rx_data->m, void *), MJUMPAGESIZE,
215 memcpy(pc->pc_rx_buf + desc_size, mtod(rx_data->m, void *), pktlen);
/haiku/src/add-ons/kernel/drivers/network/wlan/marvell88w8335/dev/malo/
H A Dif_malo.c1045 wh = mtod(m0, struct ieee80211_frame *);
1090 wh = mtod(m0, struct ieee80211_frame *);
1121 mtod(m0, const uint8_t *), m0->m_len, 0, -1);
1128 tr = mtod(m0, struct malo_txrec *);
1148 tr = mtod(m0, struct malo_txrec *);
1189 mtod(m0, const uint8_t *)+sizeof(uint16_t),
1354 mtod(m, caddr_t), MJUMPAGESIZE,
1598 mtod(bf->bf_m, const struct malo_txrec *);
2015 data = mtod(m, uint8_t *);
2053 wh = mtod(
[all...]
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/
H A Dif_ath_tx.c187 wh = mtod(m0, const struct ieee80211_frame *);
202 wh = mtod(bf->bf_m, struct ieee80211_frame *);
239 wh = mtod(m0, const struct ieee80211_frame *);
724 wh = mtod(bf_last->bf_m, struct ieee80211_frame *);
1058 wh = mtod(bf->bf_m, struct ieee80211_frame *);
1132 wh = mtod(bf->bf_m, struct ieee80211_frame *);
1451 wh = mtod(m0, struct ieee80211_frame *);
1583 wh = mtod(m0, struct ieee80211_frame *);
1602 wh = mtod(m0, struct ieee80211_frame *);
1616 wh = mtod(m
[all...]

Completed in 226 milliseconds

1234