/third_party/lwip/src/include/lwip/ |
H A D | pbuf.h | 3 * pbuf API 48 /** LWIP_SUPPORT_CUSTOM_PBUF==1: Custom pbufs behave much like their pbuf type 58 /** @ingroup pbuf 60 * pbuf needs to be copied in order to be kept around beyond the current call 62 * it will make a copy iof any pbuf chain that does not consist entirely of 68 * pbuf, the application must free the pbuf immediately, rather than reusing it 75 /* @todo: We need a mechanism to prevent wasting memory in every pbuf 86 * @ingroup pbuf 87 * Enumeration of pbuf layer 186 struct pbuf { global() struct 247 struct pbuf pbuf; global() member [all...] |
H A D | icmp.h | 41 #include "lwip/pbuf.h" 80 void icmp_input(struct pbuf *p, struct netif *inp); 81 void icmp_dest_unreach(struct pbuf *p, enum icmp_dur_type t); 82 void icmp_time_exceeded(struct pbuf *p, enum icmp_te_type t); 88 #define icmp_port_unreach(isipv6, pbuf) ((isipv6) ? \ 89 icmp6_dest_unreach(pbuf, ICMP6_DUR_PORT) : \ 90 icmp_dest_unreach(pbuf, ICMP_DUR_PORT)) 92 #define icmp_port_unreach(isipv6, pbuf) do{ if(!(isipv6)) { icmp_dest_unreach(pbuf, ICMP_DUR_PORT);}}while(0) 94 #define icmp_port_unreach(isipv6, pbuf) d [all...] |
H A D | icmp6.h | 45 #include "lwip/pbuf.h" 56 void icmp6_input(struct pbuf *p, struct netif *inp); 57 void icmp6_dest_unreach(struct pbuf *p, enum icmp6_dur_code c); 58 void icmp6_packet_too_big(struct pbuf *p, u32_t mtu); 59 void icmp6_time_exceeded(struct pbuf *p, enum icmp6_te_code c); 60 void icmp6_time_exceeded_with_addrs(struct pbuf *p, enum icmp6_te_code c, 62 void icmp6_param_problem(struct pbuf *p, enum icmp6_pp_code c, const void *pointer);
|
H A D | udp.h | 45 #include "lwip/pbuf.h" 65 * The callback is responsible for freeing the pbuf 68 * ATTENTION: Be aware that 'addr' might point into the pbuf 'p' so freeing this pbuf 77 typedef void (*udp_recv_fn)(void *arg, struct udp_pcb *pcb, struct pbuf *p, 134 err_t udp_sendto_if (struct udp_pcb *pcb, struct pbuf *p, 137 err_t udp_sendto_if_src(struct udp_pcb *pcb, struct pbuf *p, 140 err_t udp_sendto (struct udp_pcb *pcb, struct pbuf *p, 142 err_t udp_send (struct udp_pcb *pcb, struct pbuf *p); 145 err_t udp_sendto_if_chksum(struct udp_pcb *pcb, struct pbuf * [all...] |
H A D | inet_chksum.h | 42 #include "lwip/pbuf.h" 75 u16_t inet_chksum_pbuf(struct pbuf *p); 81 u16_t inet_chksum_pseudo(struct pbuf *p, u8_t proto, u16_t proto_len, 83 u16_t inet_chksum_pseudo_partial(struct pbuf *p, u8_t proto, 88 u16_t ip6_chksum_pseudo(struct pbuf *p, u8_t proto, u16_t proto_len, 90 u16_t ip6_chksum_pseudo_partial(struct pbuf *p, u8_t proto, u16_t proto_len, 95 u16_t ip_chksum_pseudo(struct pbuf *p, u8_t proto, u16_t proto_len, 97 u16_t ip_chksum_pseudo_partial(struct pbuf *p, u8_t proto, u16_t proto_len,
|
H A D | ip6.h | 51 #include "lwip/pbuf.h" 66 err_t ip6_input(struct pbuf *p, struct netif *inp); 67 err_t ip6_output(struct pbuf *p, const ip6_addr_t *src, const ip6_addr_t *dest, 69 err_t ip6_output_if(struct pbuf *p, const ip6_addr_t *src, const ip6_addr_t *dest, 71 err_t ip6_output_if_src(struct pbuf *p, const ip6_addr_t *src, const ip6_addr_t *dest, 74 err_t ip6_output_hinted(struct pbuf *p, const ip6_addr_t *src, const ip6_addr_t *dest, 78 err_t ip6_options_add_hbh_ra(struct pbuf * p, u8_t nexth, u8_t value); 85 void ip6_debug_print(struct pbuf *p);
|
H A D | ip4.h | 45 #include "lwip/pbuf.h" 79 err_t ip4_input(struct pbuf *p, struct netif *inp); 80 err_t ip4_output(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, 82 err_t ip4_output_if(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, 84 err_t ip4_output_if_src(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, 87 err_t ip4_output_hinted(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, 91 err_t ip4_output_if_opt(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, 94 err_t ip4_output_if_opt_src(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, 106 void ip4_debug_print(struct pbuf *p);
|
H A D | ip4_frag.h | 43 #include "lwip/pbuf.h" 63 struct pbuf *p; 72 struct pbuf * ip4_reass(struct pbuf *p); 79 /** A custom pbuf that holds a reference to another pbuf, which is freed 80 * when this custom pbuf is freed. This is used to create a custom PBUF_REF 81 * that points into the original pbuf. */ 85 /** pointer to the original pbuf that is referenced */ 86 struct pbuf *origina [all...] |
H A D | ip6_frag.h | 45 #include "lwip/pbuf.h" 92 struct pbuf *p; 116 struct pbuf *ip6_reass(struct pbuf *p); 128 /** A custom pbuf that holds a reference to another pbuf, which is freed 129 * when this custom pbuf is freed. This is used to create a custom PBUF_REF 130 * that points into the original pbuf. */ 134 /** pointer to the original pbuf that is referenced */ 135 struct pbuf *origina [all...] |
/third_party/lwip/src/core/ |
H A D | pbuf.c | 7 * @defgroup pbuf Packet buffers (PBUF) 10 * Packets are built from the pbuf data structure. It supports dynamic 16 * list. This is called a "pbuf chain". 21 * So, a packet queue consists of one or more pbuf chains, each of 25 * The differences between a pbuf chain and a packet queue are very 28 * The last pbuf of a packet has a ->tot_len field that equals the 30 * pbuf of a packet has a ->next field other than NULL, more packets 33 * Therefore, looping through a pbuf of a single packet, has an 36 * Example of custom pbuf usage: @ref zerocopyrx 73 #include "lwip/pbuf [all...] |
/third_party/mesa3d/src/glx/apple/ |
H A D | apple_glx_pbuffer.c | 77 struct apple_glx_pbuffer *pbuf = &d->types.pbuffer; in pbuffer_make_current() local 82 cglerr = apple_cgl.set_pbuffer(ac->context_obj, pbuf->buffer_obj, 0, 0, 0); in pbuffer_make_current() 90 apple_glapi_oglfw_viewport_scissor(0, 0, pbuf->width, pbuf->height); in pbuffer_make_current() 102 struct apple_glx_pbuffer *pbuf = &d->types.pbuffer; in pbuffer_destroy() local 109 apple_cgl.destroy_pbuffer(pbuf->buffer_obj); in pbuffer_destroy() 110 XFreePixmap(dpy, pbuf->xid); in pbuffer_destroy() 115 apple_glx_pbuffer_destroy(Display * dpy, GLXPbuffer pbuf) in apple_glx_pbuffer_destroy() argument 117 return !apple_glx_drawable_destroy_by_type(dpy, pbuf, in apple_glx_pbuffer_destroy() 128 struct apple_glx_pbuffer *pbuf in apple_glx_pbuffer_create() local 264 struct apple_glx_pbuffer *pbuf; apple_glx_pbuffer_query() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant_lib/ |
H A D | driver_nl80211_hisi.c | 285 char *pbuf; in wpa_driver_set_p2p_noa() local 291 pbuf = buf; in wpa_driver_set_p2p_noa() 292 ret_s = sprintf_s(pbuf, MAX_DRV_CMD_SIZE, "%s", _cmd); in wpa_driver_set_p2p_noa() 296 pbuf += ret_s; in wpa_driver_set_p2p_noa() 297 *pbuf++ = '\0'; in wpa_driver_set_p2p_noa() 298 pst_p2p_noa = (oal_p2p_noa_param_stru *)pbuf; in wpa_driver_set_p2p_noa() 316 char *pbuf; in wpa_driver_set_p2p_ps() local 322 pbuf = buf; in wpa_driver_set_p2p_ps() 323 ret_s = sprintf_s(pbuf, MAX_DRV_CMD_SIZE, "%s", _cmd); in wpa_driver_set_p2p_ps() 327 pbuf in wpa_driver_set_p2p_ps() 344 char *pbuf; wpa_driver_set_ap_wps_p2p_ie() local 435 char *pbuf; wpa_driver_set_power_on() local 453 char *pbuf; wpa_driver_set_powermgmt_on() local 472 char *pbuf; wpa_driver_set_qos_map() local 542 char *pbuf; wpa_driver_nl80211_sta_assoc() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant_lib/ |
H A D | driver_nl80211_hisi.c | 272 char *pbuf; in wpa_driver_set_p2p_noa() local 278 pbuf = buf; in wpa_driver_set_p2p_noa() 279 ret_s = sprintf_s(pbuf, MAX_DRV_CMD_SIZE, "%s", _cmd); in wpa_driver_set_p2p_noa() 283 pbuf += ret_s; in wpa_driver_set_p2p_noa() 284 *pbuf++ = '\0'; in wpa_driver_set_p2p_noa() 285 pst_p2p_noa = (oal_p2p_noa_param_stru *) pbuf; in wpa_driver_set_p2p_noa() 302 char *pbuf; in wpa_driver_set_p2p_ps() local 308 pbuf = buf; in wpa_driver_set_p2p_ps() 309 ret_s = sprintf_s(pbuf, MAX_DRV_CMD_SIZE, "%s", _cmd); in wpa_driver_set_p2p_ps() 313 pbuf in wpa_driver_set_p2p_ps() 330 char *pbuf; wpa_driver_set_ap_wps_p2p_ie() local 416 char *pbuf; wpa_driver_set_power_on() local 434 char *pbuf; wpa_driver_set_powermgmt_on() local 453 char *pbuf; wpa_driver_set_qos_map() local 518 char *pbuf; wpa_driver_nl80211_sta_assoc() local [all...] |
/third_party/node/deps/openssl/openssl/crypto/asn1/ |
H A D | bio_ndef.c | 45 static int ndef_prefix(BIO *b, unsigned char **pbuf, int *plen, void *parg); 46 static int ndef_prefix_free(BIO *b, unsigned char **pbuf, int *plen, 48 static int ndef_suffix(BIO *b, unsigned char **pbuf, int *plen, void *parg); 49 static int ndef_suffix_free(BIO *b, unsigned char **pbuf, int *plen, 129 static int ndef_prefix(BIO *b, unsigned char **pbuf, int *plen, void *parg) in ndef_prefix() argument 149 *pbuf = p; in ndef_prefix() 155 *plen = *ndef_aux->boundary - *pbuf; in ndef_prefix() 160 static int ndef_prefix_free(BIO *b, unsigned char **pbuf, int *plen, in ndef_prefix_free() argument 176 *pbuf = NULL; in ndef_prefix_free() 181 static int ndef_suffix_free(BIO *b, unsigned char **pbuf, in argument 192 ndef_suffix(BIO *b, unsigned char **pbuf, int *plen, void *parg) ndef_suffix() argument [all...] |
/third_party/openssl/crypto/asn1/ |
H A D | bio_ndef.c | 45 static int ndef_prefix(BIO *b, unsigned char **pbuf, int *plen, void *parg); 46 static int ndef_prefix_free(BIO *b, unsigned char **pbuf, int *plen, 48 static int ndef_suffix(BIO *b, unsigned char **pbuf, int *plen, void *parg); 49 static int ndef_suffix_free(BIO *b, unsigned char **pbuf, int *plen, 129 static int ndef_prefix(BIO *b, unsigned char **pbuf, int *plen, void *parg) in ndef_prefix() argument 149 *pbuf = p; in ndef_prefix() 155 *plen = *ndef_aux->boundary - *pbuf; in ndef_prefix() 160 static int ndef_prefix_free(BIO *b, unsigned char **pbuf, int *plen, in ndef_prefix_free() argument 176 *pbuf = NULL; in ndef_prefix_free() 181 static int ndef_suffix_free(BIO *b, unsigned char **pbuf, in argument 192 ndef_suffix(BIO *b, unsigned char **pbuf, int *plen, void *parg) ndef_suffix() argument [all...] |
/third_party/lwip/src/apps/snmp/ |
H A D | snmp_pbuf_stream.c | 3 * SNMP pbuf stream wrapper implementation (internal API, do not use in client code). 47 snmp_pbuf_stream_init(struct snmp_pbuf_stream *pbuf_stream, struct pbuf *p, u16_t offset, u16_t length) in snmp_pbuf_stream_init() 51 pbuf_stream->pbuf = p; in snmp_pbuf_stream_init() 63 if (pbuf_copy_partial(pbuf_stream->pbuf, data, 1, pbuf_stream->offset) == 0) { in snmp_pbuf_stream_read() 86 if (pbuf_take_at(pbuf_stream->pbuf, buf, buf_len, pbuf_stream->offset) != ERR_OK) { in snmp_pbuf_stream_writebuf() 115 struct pbuf *pbuf = pbuf_skip(pbuf_stream->pbuf, pbuf_stream->offset, &target_offset); in snmp_pbuf_stream_writeto() local 117 if ((pbuf == NULL) || (pbuf in snmp_pbuf_stream_writeto() [all...] |
/third_party/lwip/src/core/ipv6/ |
H A D | icmp6.c | 51 #include "lwip/pbuf.h" 66 static void icmp6_send_response(struct pbuf *p, u8_t code, u32_t data, u8_t type); 67 static void icmp6_send_response_with_addrs(struct pbuf *p, u8_t code, u32_t data, 69 static void icmp6_send_response_with_addrs_and_netif(struct pbuf *p, u8_t code, u32_t data, 83 icmp6_input(struct pbuf *p, struct netif *inp) in icmp6_input() 86 struct pbuf *r; in icmp6_input() 220 icmp6_dest_unreach(struct pbuf *p, enum icmp6_dur_code c) in icmp6_dest_unreach() 236 icmp6_packet_too_big(struct pbuf *p, u32_t mtu) in icmp6_packet_too_big() 252 icmp6_time_exceeded(struct pbuf *p, enum icmp6_te_code c) in icmp6_time_exceeded() 273 icmp6_time_exceeded_with_addrs(struct pbuf * [all...] |
/third_party/libcoap/src/ |
H A D | coap_io_lwip.c | 147 coap_recvc(void *arg, struct udp_pcb *upcb, struct pbuf *p, in coap_recvc() 214 coap_recvs(void *arg, struct udp_pcb *upcb, struct pbuf *p, in coap_recvs() 295 * respective pbuf is already exclusively owned by the pdu. */ in coap_socket_send_pdu() 296 struct pbuf *pbuf; in coap_socket_send_pdu() local 299 pbuf_realloc(pdu->pbuf, pdu->used_size + coap_pdu_parse_header_size(session->proto, in coap_socket_send_pdu() 300 pdu->pbuf->payload)); in coap_socket_send_pdu() 304 pbuf = pbuf_clone(PBUF_TRANSPORT, PBUF_RAM, pdu->pbuf); in coap_socket_send_pdu() 305 if (pbuf in coap_socket_send_pdu() 324 struct pbuf *pbuf; coap_socket_send() local [all...] |
/third_party/lwip/src/netif/ |
H A D | slipif.c | 66 #include "lwip/pbuf.h" 97 /* q is the whole pbuf chain for a packet, p is the current pbuf in the chain */ 98 struct pbuf *p, *q; 102 struct pbuf *rxpackets; 107 * Send a pbuf doing the necessary SLIP encapsulation 112 * @param p the pbuf chain packet to send 116 slipif_output(struct netif *netif, struct pbuf *p) in slipif_output() 119 struct pbuf *q; in slipif_output() 130 /* Send pbuf ou in slipif_output() [all...] |
/third_party/lwip/src/apps/mdns/ |
H A D | mdns.c | 204 struct pbuf *pbuf; member 227 struct pbuf *pbuf; member 330 * Add a label part to a domain (@see mdns_domain_add_label but copy directly from pbuf) 333 mdns_domain_add_label_pbuf(struct mdns_domain *domain, const struct pbuf *p, u16_t offset, u8_t len) in mdns_domain_add_label_pbuf() 355 mdns_readname_loop(struct pbuf *p, u16_t offset, struct mdns_domain *domain, unsigned depth) in mdns_readname_loop() 421 mdns_readname(struct pbuf *p, u16_t offset, struct mdns_domain *domain) in mdns_readname() 779 * @param pbuf Pointer to pbuf wit 788 mdns_compress_domain(struct pbuf *pbuf, u16_t *offset, struct mdns_domain *domain) mdns_compress_domain() argument [all...] |
/third_party/lwip/test/unit/tcp/ |
H A D | tcp_helper.h | 26 struct pbuf *tx_packets; 38 struct pbuf* tcp_create_segment(ip_addr_t* src_ip, ip_addr_t* dst_ip, 41 struct pbuf* tcp_create_rx_segment(struct tcp_pcb* pcb, void* data, size_t data_len, 43 struct pbuf* tcp_create_rx_segment_wnd(struct tcp_pcb* pcb, void* data, size_t data_len, 48 err_t test_tcp_counters_recv(void* arg, struct tcp_pcb* pcb, struct pbuf* p, err_t err); 52 void test_tcp_input(struct pbuf *p, struct netif *inp);
|
/third_party/FreeBSD/sys/dev/usb/net/ |
H A D | usb_ethernet.c | 214 struct pbuf *m; in ue_recv() 346 struct pbuf *m; in uether_ifdetach() 458 struct pbuf *m; in ue_start() 523 struct pbuf * 526 struct pbuf *m_new; in uether_newbuf() 540 struct pbuf * 543 struct pbuf *m_new = (struct pbuf *)zalloc(sizeof(struct pbuf)); in uether_newbuf() 562 uether_freebuf(struct pbuf *bu [all...] |
/third_party/lwip/src/include/netif/ |
H A D | lowpan6.h | 50 #include "lwip/pbuf.h" 71 err_t lowpan4_output(struct netif *netif, struct pbuf *q, const ip4_addr_t *ipaddr); 73 err_t lowpan6_output(struct netif *netif, struct pbuf *q, const ip6_addr_t *ip6addr); 74 err_t lowpan6_input(struct pbuf * p, struct netif *netif); 83 err_t tcpip_6lowpan_input(struct pbuf *p, struct netif *inp);
|
/third_party/backends/backend/ |
H A D | snapscan-sources.c | 162 SANE_Byte *pbuf, in SCSISource_get() 195 memcpy (pbuf, ps->pss->buf + ps->scsi_buf_pos, (size_t)ndata); in SCSISource_get() 196 pbuf += ndata; in SCSISource_get() 244 static SANE_Status FDSource_get (Source *pself, SANE_Byte *pbuf, SANE_Int *plen) in FDSource_get() argument 254 SANE_Int bytes_read = read (ps->fd, pbuf, remaining); in FDSource_get() 275 pbuf += bytes_read; in FDSource_get() 326 SANE_Byte *pbuf, in BufSource_get() 338 memcpy (pbuf, ps->buf + ps->buf_pos, to_move); in BufSource_get() 460 static SANE_Status TxSource_get (Source *pself, SANE_Byte *pbuf, SANE_Int *plen) in TxSource_get() argument 463 return ps->psub->get(ps->psub, pbuf, ple in TxSource_get() 161 SCSISource_get(Source *pself, SANE_Byte *pbuf, SANE_Int *plen) SCSISource_get() argument 325 BufSource_get(Source *pself, SANE_Byte *pbuf, SANE_Int *plen) BufSource_get() argument 533 Expander_get(Source *pself, SANE_Byte *pbuf, SANE_Int *plen) Expander_get() argument 702 Deinterlacer_get(Source *pself, SANE_Byte *pbuf, SANE_Int *plen) Deinterlacer_get() argument 948 RGBRouter_get(Source *pself, SANE_Byte *pbuf, SANE_Int *plen) RGBRouter_get() argument 1156 Inverter_get(Source *pself, SANE_Byte *pbuf, SANE_Int *plen) Inverter_get() argument [all...] |
/third_party/curl/tests/libtest/ |
H A D | lib1948.c | 49 put_buffer pbuf; in test() local 59 pbuf.buf = (char *)testput; in test() 60 pbuf.len = strlen(testput); in test() 61 easy_setopt(curl, CURLOPT_READDATA, &pbuf); in test()
|