Lines Matching refs:p
62 buf->p = NULL;
90 if (buf->p != NULL) {
91 pbuf_free(buf->p);
92 buf->p = buf->ptr = NULL;
112 if (buf->p != NULL) {
113 pbuf_free(buf->p);
115 buf->p = pbuf_alloc(PBUF_TRANSPORT, size, PBUF_RAM);
116 if (buf->p == NULL) {
120 (buf->p->len >= size));
121 buf->ptr = buf->p;
122 return buf->p->payload;
134 if (buf->p != NULL) {
135 pbuf_free(buf->p);
137 buf->p = buf->ptr = NULL;
153 if (buf->p != NULL) {
154 pbuf_free(buf->p);
156 buf->p = pbuf_alloc(PBUF_TRANSPORT, 0, PBUF_REF);
157 if (buf->p == NULL) {
161 buf->p->payload = (void*)dataptr;
162 buf->p->len = buf->p->tot_len = size;
163 buf->ptr = buf->p;
178 pbuf_cat(head->p, tail->p);
179 head->ptr = head->p;
242 buf->ptr = buf->p;