Home
last modified time | relevance | path

Searched refs:mtod (Results 1 – 16 of 16) sorted by relevance

/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/
Duser_mbuf.c406 error = uiomove(mtod(mb, void *), length, uio); in m_uiotombuf()
873 memcpy(mtod(m, caddr_t) + m->m_len,mtod(n, caddr_t), (u_int)count); in m_pullup()
926 m_copydata(m, off, len, mtod(n, caddr_t)); in m_dup1()
1027 m_copydata(n->m_next, 0, tlen, mtod(n, caddr_t) + n->m_len); in m_pulldown()
1036 memcpy( mtod(n->m_next, caddr_t), mtod(n, caddr_t) + off,hlen); in m_pulldown()
1058 memcpy(mtod(o, caddr_t), mtod(n, caddr_t) + off, hlen); in m_pulldown()
1061 m_copydata(n->m_next, 0, tlen, mtod(o, caddr_t) + o->m_len); in m_pulldown()
1170 memcpy(mtod(n, caddr_t), mtod(m, caddr_t) + off, (u_int)n->m_len); in m_copym()
1284 memset(mtod(n, caddr_t), 0, MLEN); in m_copyback()
1292 memcpy(off + mtod(m, caddr_t), cp, (u_int)mlen); in m_copyback()
[all …]
Duser_ip6_var.h112 (val) = (typ)(mtod((m), caddr_t) + (off)); \
118 (val) = (typ)(mtod(t, caddr_t) + tmp); \
Duser_recv_thread.c374 iphdr = mtod(recvmbuf[0], struct ip *); in recv_function_raw()
582 sh = mtod(recvmbuf6[0], struct sctphdr *); in recv_function_raw6()
797 sh = mtod(udprecvmbuf[0], struct sctphdr *); in recv_function_udp()
984 sh = mtod(udprecvmbuf6[0], struct sctphdr *); in recv_function_udp6()
Duser_mbuf.h96 #define mtod(m, t) ((t)((m)->m_data)) macro
Duser_socket.c2887 ip = mtod(m, struct ip *);
2897 ip = mtod(m, struct ip *);
3034 ip6 = mtod(m, struct ip6_hdr *);
3044 ip6 = mtod(m, struct ip6_hdr *);
3336 sh = mtod(m, struct sctphdr *);;
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/netinet/
Dsctp_output.c2013 paramh = mtod(mret, struct sctp_paramhdr *); in sctp_add_addr_to_mbuf()
2181 memset(mtod(m_at, caddr_t) + *chunk_len, 0, *padding_len); in sctp_add_addresses_to_i_ia()
2259 memset(mtod(m_at, caddr_t) + *chunk_len, 0, *padding_len); in sctp_add_addresses_to_i_ia()
3984 ph = mtod(mret, struct sctp_paramhdr *);
4026 *signature = (uint8_t *)mtod(sig, caddr_t);
4205 ip = mtod(m, struct ip *);
4582 ip6h = mtod(m, struct ip6_hdr *);
5032 sctphdr = mtod(m, struct sctphdr *);
5136 init = mtod(m, struct sctp_init_chunk *);
5154 ali = (struct sctp_adaptation_layer_indication *)(mtod(m, caddr_t) + chunk_len);
[all …]
Dsctputil.c3181 return (mtod(m, caddr_t) + off); in sctp_m_getptr()
3186 memcpy(ptr, mtod(m, caddr_t) + off, count); in sctp_m_getptr()
3238 dp = mtod(m_last, caddr_t) + SCTP_BUF_LEN(m_last); in sctp_add_pad_tombuf()
3308 sac = mtod(m_notify, struct sctp_assoc_change *); in sctp_notify_assoc_change()
3436 spc = mtod(m_notify, struct sctp_paddr_change *); in sctp_notify_peer_addr_change()
3562 chkhdr = mtod(chk->data, struct sctp_chunkhdr *); in sctp_notify_send_failed()
3574 ssfe = mtod(m_notify, struct sctp_send_failed_event *); in sctp_notify_send_failed()
3592 ssf = mtod(m_notify, struct sctp_send_failed *); in sctp_notify_send_failed()
3681 ssfe = mtod(m_notify, struct sctp_send_failed_event *); in sctp_notify_send_failed2()
3699 ssf = mtod(m_notify, struct sctp_send_failed *); in sctp_notify_send_failed2()
[all …]
Dsctp_auth.c1060 sctp_hmac_update(hmac_algo, &ctx, mtod(m_tmp, uint8_t *) + m_offset,
1063 sctp_hmac_update(hmac_algo, &ctx, mtod(m_tmp, uint8_t *) + m_offset,
1601 data = mtod(m_tmp, uint8_t *) + m_offset;
1672 cause = mtod(op_err, struct sctp_error_auth_invalid_hmac *);
1774 auth = mtod(m_notify, struct sctp_authkey_event *);
Dsctp_asconf.c92 aph = mtod(m_reply, struct sctp_asconf_paramhdr *); in sctp_asconf_success_response()
135 aph = mtod(m_reply, struct sctp_asconf_paramhdr *); in sctp_asconf_error_response()
696 ack_cp = mtod(m_ack, struct sctp_asconf_ack_chunk *); in sctp_handle_asconf()
2402 acp = mtod(chk->data, struct sctp_asconf_chunk *); in sctp_is_addr_pending()
2643 acp = mtod(m_asconf_chk, struct sctp_asconf_chunk *); in sctp_compose_asconf()
2647 ptr = mtod(m_asconf, caddr_t); /* beginning of cluster */ in sctp_compose_asconf()
Dsctp_input.c499 cause = mtod(op_err, struct sctp_error_missing_param *); in sctp_process_init_ack()
2764 cause = mtod(op_err, struct sctp_error_stale_cookie *);
3400 ecne = mtod(chk->data, struct sctp_ecne_chunk *);
3533 if (memcmp(mtod(tp1->data, caddr_t) + SCTP_DATA_CHUNK_OVERHEAD(stcb),
3810 ch = mtod(chk->data, struct sctp_chunkhdr *);
4425 ch = mtod(chk->data, struct sctp_chunkhdr *);
5696 cause = mtod(op_err, struct sctp_gen_error_cause *);
6280 ip = mtod(m, struct ip *);
6407 ip = mtod(m, struct ip *);
Dsctp_indata.c236 cmh = mtod(ret, WSACMSGHDR *); in sctp_build_ctl_nchunk()
238 cmh = mtod(ret, struct cmsghdr *); in sctp_build_ctl_nchunk()
1857 cause = mtod(op_err, struct sctp_error_invalid_stream *); in sctp_process_a_data_chunk()
2741 to = mtod(m, caddr_t *); in sctp_process_data()
2742 from = mtod((*mm), caddr_t *); in sctp_process_data()
2916 cause = mtod(op_err, struct sctp_gen_error_cause *); in sctp_process_data()
Dsctp_usrreq.c709 struct sockaddr *addr = nam ? mtod(nam, struct sockaddr *): NULL;
7861 struct sockaddr *addr = mtod(nam, struct sockaddr *);
8619 struct sockaddr_in *sin = mtod(nam, struct sockaddr_in *);
8736 struct sockaddr_in *sin = mtod(nam, struct sockaddr_in *);
8961 addr = mtod(nam, struct sockaddr *);
Dsctp_pcb.c6507 ip = mtod(m, struct ip *);
6514 ip = mtod(m, struct ip *);
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/netinet6/
Dsctp6_usrreq.c210 ip6 = mtod(m, struct ip6_hdr *);
211 sh = (struct sctphdr *)(mtod(m, caddr_t) + iphlen);
804 struct sockaddr *addr = nam ? mtod(nam, struct sockaddr *): NULL;
980 struct sockaddr *addr = nam ? mtod(nam, struct sockaddr *): NULL;
1115 struct sockaddr *addr = mtod(nam, struct sockaddr *);
1279 struct sockaddr_in6 *sin6 = mtod(nam, struct sockaddr_in6 *);
1416 struct sockaddr_in6 *sin6 = mtod(nam, struct sockaddr_in6 *);
1511 struct sockaddr *addr = mtod(nam, struct sockaddr *);
1518 struct sockaddr *addr = mtod(nam, struct sockaddr *);
1573 struct sockaddr *addr = mtod(nam, struct sockaddr *);
[all …]
/third_party/FreeBSD/sys/dev/usb/
Dusb_hub.c3028 const struct usb_bus_methods *mtod; in usbd_filter_power_mode() local
3030 mtod = udev->bus->methods; in usbd_filter_power_mode()
3033 if (mtod->get_power_mode != NULL) in usbd_filter_power_mode()
3034 (mtod->get_power_mode) (udev, &temp); in usbd_filter_power_mode()
Dusb_transfer.c157 const struct usb_bus_methods *mtod; in usbd_get_dma_delay() local
160 mtod = udev->bus->methods; in usbd_get_dma_delay()
163 if (mtod->get_dma_delay) { in usbd_get_dma_delay()
164 (mtod->get_dma_delay) (udev, &temp); in usbd_get_dma_delay()