Home
last modified time | relevance | path

Searched refs:pbuf (Results 1 – 25 of 121) sorted by relevance

12345

/external/syslinux/core/lwip/src/include/lwip/
Dpbuf.h73 struct pbuf { struct
75 struct pbuf *next; argument
108 typedef void (*pbuf_free_custom_fn)(struct pbuf *p);
113 struct pbuf pbuf; member
122 struct pbuf *pbuf_alloc(pbuf_layer l, u16_t length, pbuf_type type);
124 struct pbuf *pbuf_alloced_custom(pbuf_layer l, u16_t length, pbuf_type type,
128 void pbuf_realloc(struct pbuf *p, u16_t size);
129 u8_t pbuf_header(struct pbuf *p, s16_t header_size);
130 void pbuf_ref(struct pbuf *p);
131 u8_t pbuf_free(struct pbuf *p);
[all …]
Dsnmp_asn1.h77 err_t snmp_asn1_dec_type(struct pbuf *p, u16_t ofs, u8_t *type);
78 err_t snmp_asn1_dec_length(struct pbuf *p, u16_t ofs, u8_t *octets_used, u16_t *length);
79 err_t snmp_asn1_dec_u32t(struct pbuf *p, u16_t ofs, u16_t len, u32_t *value);
80 err_t snmp_asn1_dec_s32t(struct pbuf *p, u16_t ofs, u16_t len, s32_t *value);
81 err_t snmp_asn1_dec_oid(struct pbuf *p, u16_t ofs, u16_t len, struct snmp_obj_id *oid);
82 err_t snmp_asn1_dec_raw(struct pbuf *p, u16_t ofs, u16_t len, u16_t raw_len, u8_t *raw);
88 err_t snmp_asn1_enc_type(struct pbuf *p, u16_t ofs, u8_t type);
89 err_t snmp_asn1_enc_length(struct pbuf *p, u16_t ofs, u16_t length);
90 err_t snmp_asn1_enc_u32t(struct pbuf *p, u16_t ofs, u16_t octets_needed, u32_t value);
91 err_t snmp_asn1_enc_s32t(struct pbuf *p, u16_t ofs, u16_t octets_needed, s32_t value);
[all …]
Dudp.h87 typedef void (*udp_recv_fn)(void *arg, struct udp_pcb *pcb, struct pbuf *p,
132 err_t udp_sendto_if (struct udp_pcb *pcb, struct pbuf *p,
135 err_t udp_sendto (struct udp_pcb *pcb, struct pbuf *p,
137 err_t udp_send (struct udp_pcb *pcb, struct pbuf *p);
140 err_t udp_sendto_if_chksum(struct udp_pcb *pcb, struct pbuf *p,
144 err_t udp_sendto_chksum(struct udp_pcb *pcb, struct pbuf *p,
147 err_t udp_send_chksum(struct udp_pcb *pcb, struct pbuf *p,
155 void udp_input (struct pbuf *p, struct netif *inp);
Draw.h60 typedef u8_t (*raw_recv_fn)(void *arg, struct raw_pcb *pcb, struct pbuf *p,
85 err_t raw_sendto (struct raw_pcb *pcb, struct pbuf *p, ip_addr_t *ipaddr);
86 err_t raw_send (struct raw_pcb *pcb, struct pbuf *p);
89 u8_t raw_input (struct pbuf *p, struct netif *inp);
Dnetif.h109 typedef err_t (*netif_input_fn)(struct pbuf *p, struct netif *inp);
118 typedef err_t (*netif_output_fn)(struct netif *netif, struct pbuf *p,
126 typedef err_t (*netif_linkoutput_fn)(struct netif *netif, struct pbuf *p);
220 struct pbuf *loop_first;
221 struct pbuf *loop_last;
304 err_t netif_loop_output(struct netif *netif, struct pbuf *p, ip_addr_t *dest_ip);
/external/python/cpython2/Modules/
D_codecsmodule.c236 Py_buffer pbuf; in utf_7_decode() local
243 &pbuf, &errors, &final)) in utf_7_decode()
245 consumed = pbuf.len; in utf_7_decode()
247 decoded = PyUnicode_DecodeUTF7Stateful(pbuf.buf, pbuf.len, errors, in utf_7_decode()
249 PyBuffer_Release(&pbuf); in utf_7_decode()
259 Py_buffer pbuf; in utf_8_decode() local
266 &pbuf, &errors, &final)) in utf_8_decode()
268 consumed = pbuf.len; in utf_8_decode()
270 decoded = PyUnicode_DecodeUTF8Stateful(pbuf.buf, pbuf.len, errors, in utf_8_decode()
272 PyBuffer_Release(&pbuf); in utf_8_decode()
[all …]
/external/mesa3d/src/glx/apple/
Dapple_glx_pbuffer.c74 struct apple_glx_pbuffer *pbuf = &d->types.pbuffer; in pbuffer_make_current() local
79 cglerr = apple_cgl.set_pbuffer(ac->context_obj, pbuf->buffer_obj, 0, 0, 0); in pbuffer_make_current()
87 apple_glapi_oglfw_viewport_scissor(0, 0, pbuf->width, pbuf->height); in pbuffer_make_current()
99 struct apple_glx_pbuffer *pbuf = &d->types.pbuffer; in pbuffer_destroy() local
106 apple_cgl.destroy_pbuffer(pbuf->buffer_obj); in pbuffer_destroy()
107 XFreePixmap(dpy, pbuf->xid); in pbuffer_destroy()
112 apple_glx_pbuffer_destroy(Display * dpy, GLXPbuffer pbuf) in apple_glx_pbuffer_destroy() argument
114 return !apple_glx_drawable_destroy_by_type(dpy, pbuf, in apple_glx_pbuffer_destroy()
125 struct apple_glx_pbuffer *pbuf = NULL; in apple_glx_pbuffer_create() local
154 pbuf = &d->types.pbuffer; in apple_glx_pbuffer_create()
[all …]
/external/syslinux/core/lwip/src/core/
Dpbuf.c82 #define SIZEOF_STRUCT_PBUF LWIP_MEM_ALIGN_SIZE(sizeof(struct pbuf))
184 struct pbuf *
187 struct pbuf *p, *q, *r; in pbuf_alloc()
217 p = (struct pbuf *)memp_malloc(MEMP_PBUF_POOL); in pbuf_alloc()
250 q = (struct pbuf *)memp_malloc(MEMP_PBUF_POOL); in pbuf_alloc()
286 …p = (struct pbuf*)mem_malloc(LWIP_MEM_ALIGN_SIZE(SIZEOF_STRUCT_PBUF + offset) + LWIP_MEM_ALIGN_SIZ… in pbuf_alloc()
304 p = (struct pbuf *)memp_malloc(MEMP_PBUF); in pbuf_alloc()
343 struct pbuf*
377 p->pbuf.next = NULL; in pbuf_alloced_custom()
379 p->pbuf.payload = LWIP_MEM_ALIGN((void *)((u8_t *)payload_mem + offset)); in pbuf_alloced_custom()
[all …]
/external/libmtp/util/
Dmtp-probe.c65 char pbuf[FILENAME_MAX]; in get_ep_type() local
76 strcpy(pbuf, path); in get_ep_type()
77 pbuf[len++] = '/'; in get_ep_type()
80 strncpy(pbuf + len, "type", FILENAME_MAX - len); in get_ep_type()
81 pbuf[FILENAME_MAX - 1] = '\0'; /* Sentinel */ in get_ep_type()
83 fd = open(pbuf, O_RDONLY); in get_ep_type()
101 strncpy(pbuf + len, "direction", FILENAME_MAX - len); in get_ep_type()
102 pbuf[FILENAME_MAX - 1] = '\0'; /* Sentinel */ in get_ep_type()
104 fd = open(pbuf, O_RDONLY); in get_ep_type()
135 char pbuf[FILENAME_MAX]; in has_3_ep() local
[all …]
/external/python/cpython3/Objects/
Dstructseq.c171 char *endofbuf, *pbuf = buf; in structseq_repr() local
179 strncpy(pbuf, typ->tp_name, len); in structseq_repr()
180 pbuf += len; in structseq_repr()
181 *pbuf++ = '('; in structseq_repr()
205 if ((pbuf+len) <= endofbuf) { in structseq_repr()
206 strcpy(pbuf, cname); in structseq_repr()
207 pbuf += strlen(cname); in structseq_repr()
208 *pbuf++ = '='; in structseq_repr()
209 strcpy(pbuf, crepr); in structseq_repr()
210 pbuf += strlen(crepr); in structseq_repr()
[all …]
/external/ipsec-tools/src/racoon/
Dremoteconf.c498 char buf[1024], *pbuf; in dump_peers_identifiers() local
499 pbuf = buf; in dump_peers_identifiers()
500 pbuf += sprintf (pbuf, "\tpeers_identifier %s", in dump_peers_identifiers()
503 pbuf += sprintf (pbuf, " \"%s\"", id->id->v); in dump_peers_identifiers()
513 char buf[1024], *pbuf; in dump_rmconf_single() local
515 pbuf = buf; in dump_rmconf_single()
516 pbuf += sprintf(pbuf, "remote %s", saddr2str(p->remote)); in dump_rmconf_single()
518 pbuf += sprintf(pbuf, " inherit %s", in dump_rmconf_single()
521 pbuf = buf; in dump_rmconf_single()
522 pbuf += sprintf(pbuf, "\texchange_type "); in dump_rmconf_single()
[all …]
Disakmp_ident.c256 vchar_t *pbuf = NULL; local
279 pbuf = isakmp_parse(msg);
280 if (pbuf == NULL)
282 pa = (struct isakmp_parse_t *)pbuf->v;
335 if (pbuf)
336 vfree(pbuf);
427 vchar_t *pbuf = NULL; local
446 pbuf = isakmp_parse(msg);
447 if (pbuf == NULL)
450 for (pa = (struct isakmp_parse_t *)pbuf->v;
[all …]
Disakmp_newg.c89 vchar_t *pbuf = NULL;
92 if ((pbuf = isakmp_parse(msg)) == NULL)
95 for (pa = (struct isakmp_parse_t *)pbuf->v;
106 vfree(pbuf);
117 vfree(pbuf);
131 vfree(pbuf);
135 vfree(pbuf);
Disakmp_base.c296 vchar_t *pbuf = NULL; local
314 pbuf = isakmp_parse(msg);
315 if (pbuf == NULL)
317 pa = (struct isakmp_parse_t *)pbuf->v;
391 if (pbuf)
392 vfree(pbuf);
588 vchar_t *pbuf = NULL; local
605 pbuf = isakmp_parse(msg);
606 if (pbuf == NULL)
609 for (pa = (struct isakmp_parse_t *)pbuf->v;
[all …]
Dsecurity.c71 vchar_t *pbuf = NULL; local
90 pbuf = isakmp_parsewoh(ISAKMP_NPTYPE_P, (struct isakmp_gen *)bp, len);
91 if (pbuf == NULL)
94 pa = (struct isakmp_parse_t *)pbuf->v;
99 vfree(pbuf);
106 vfree(pbuf);
/external/ipsec-tools/src/libipsec/
Dpolicy_parse.y100 static u_int8_t *pbuf = NULL; /* sadb_x_policy buffer */ variable
476 if (pbuf) { in init_x_policy()
477 free(pbuf); in init_x_policy()
480 pbuf = malloc(sizeof(struct sadb_x_policy)); in init_x_policy()
481 if (pbuf == NULL) { in init_x_policy()
487 memset(pbuf, 0, tlen); in init_x_policy()
488 p = (struct sadb_x_policy *)pbuf; in init_x_policy()
525 n = realloc(pbuf, tlen);
530 pbuf = n;
532 p = (struct sadb_x_ipsecrequest *)&pbuf[offset];
[all …]
/external/syslinux/core/lwip/src/include/ipv4/lwip/
Dip_frag.h56 struct pbuf *p;
65 struct pbuf * ip_reass(struct pbuf *p);
77 struct pbuf *original;
81 err_t ip_frag(struct pbuf *p, struct netif *netif, ip_addr_t *dest);
Dip.h173 err_t ip_input(struct pbuf *p, struct netif *inp);
174 err_t ip_output(struct pbuf *p, ip_addr_t *src, ip_addr_t *dest,
176 err_t ip_output_if(struct pbuf *p, ip_addr_t *src, ip_addr_t *dest,
180 err_t ip_output_hinted(struct pbuf *p, ip_addr_t *src, ip_addr_t *dest,
184 err_t ip_output_if_opt(struct pbuf *p, ip_addr_t *src, ip_addr_t *dest,
202 void ip_debug_print(struct pbuf *p);
/external/python/cpython2/Objects/
Dstructseq.c245 char *endofbuf, *pbuf = buf; in structseq_repr() local
257 strncpy(pbuf, typ->tp_name, len); in structseq_repr()
258 pbuf += len; in structseq_repr()
259 *pbuf++ = '('; in structseq_repr()
285 if ((pbuf+len) <= endofbuf) { in structseq_repr()
286 strcpy(pbuf, cname); in structseq_repr()
287 pbuf += strlen(cname); in structseq_repr()
288 *pbuf++ = '='; in structseq_repr()
289 strcpy(pbuf, crepr); in structseq_repr()
290 pbuf += strlen(crepr); in structseq_repr()
[all …]
/external/syslinux/core/lwip/src/netif/
Dundiif.c187 static void print_pbuf(struct pbuf *p)
189 struct pbuf *q;
211 static void print_arp_pbuf(struct netif *netif, struct pbuf *p)
466 undi_transmit(struct netif *netif, struct pbuf *pbuf, in undi_transmit() argument
481 struct eth_hdr *ethhdr = pbuf->payload; in undi_transmit()
503 if ((pbuf->tot_len > sizeof(pkt_buf)) || (pbuf->tot_len > netif->mtu)) in undi_transmit()
518 pbuf_copy_partial( pbuf, pkt_buf, pbuf->tot_len, 0); in undi_transmit()
529 pxe.tbd.ImmedLength = pbuf->tot_len; in undi_transmit()
541 undi_send_unknown(struct netif *netif, struct pbuf *pbuf) in undi_send_unknown() argument
543 return undi_transmit(netif, pbuf, NULL, P_UNKNOWN); in undi_send_unknown()
[all …]
Dslipif.c75 struct pbuf *p, *q;
91 slipif_output(struct netif *netif, struct pbuf *p, ip_addr_t *ipaddr) in slipif_output()
94 struct pbuf *q; in slipif_output()
162 static struct pbuf *
167 struct pbuf *t; in slipif_input()
267 struct pbuf *p; in slipif_loop_thread()
352 struct pbuf *p; in slipif_poll()
Dethernetif.c124 low_level_output(struct netif *netif, struct pbuf *p)
127 struct pbuf *q;
161 static struct pbuf *
165 struct pbuf *p, *q;
228 struct pbuf *p;
/external/syslinux/core/lwip/src/core/ipv4/
Dicmp.c65 static void icmp_send_response(struct pbuf *p, u8_t type, u8_t code);
77 icmp_input(struct pbuf *p, struct netif *inp) in icmp_input()
149 struct pbuf *r; in icmp_input()
257 icmp_dest_unreach(struct pbuf *p, enum icmp_dur_type t) in icmp_dest_unreach()
271 icmp_time_exceeded(struct pbuf *p, enum icmp_te_type t) in icmp_time_exceeded()
287 icmp_send_response(struct pbuf *p, u8_t type, u8_t code) in icmp_send_response()
289 struct pbuf *q; in icmp_send_response()
Dip_frag.c93 PACK_STRUCT_FIELD(struct pbuf *next_pbuf);
162 struct pbuf *p; in ip_reass_free_complete_datagram()
192 struct pbuf *pcur; in ip_reass_free_complete_datagram()
331 ip_reass_chain_frag_into_datagram_and_validate(struct ip_reassdata *ipr, struct pbuf *new_p) in ip_reass_chain_frag_into_datagram_and_validate()
334 struct pbuf *q; in ip_reass_chain_frag_into_datagram_and_validate()
475 struct pbuf *
476 ip_reass(struct pbuf *p) in ip_reass()
478 struct pbuf *r; in ip_reass()
640 ipfrag_free_pbuf_custom(struct pbuf *p) in ipfrag_free_pbuf_custom()
667 ip_frag(struct pbuf *p, struct netif *netif, ip_addr_t *dest) in ip_frag()
[all …]
/external/syslinux/core/fs/pxe/
Dcore.c139 void *pbuf; in core_udp_send() local
148 pbuf = netbuf_alloc(nbuf, len); in core_udp_send()
149 if (!pbuf) { in core_udp_send()
154 memcpy(pbuf, data, len); in core_udp_send()
181 void *pbuf; in core_udp_sendto() local
190 pbuf = netbuf_alloc(nbuf, len); in core_udp_sendto()
191 if (!pbuf) { in core_udp_sendto()
196 memcpy(pbuf, data, len); in core_udp_sendto()

12345