Lines Matching refs:dataptr
1054 * @param dataptr the application supplied buffer
1055 * @param len length of data to copy (dataptr must be big enough). No more
1061 pbuf_copy_partial(const struct pbuf *buf, void *dataptr, u16_t len, u16_t offset)
1069 LWIP_ERROR("pbuf_copy_partial: invalid dataptr", (dataptr != NULL), return 0;);
1071 /* Note some systems use byte copy if dataptr or one of the pbuf payload pointers are unaligned. */
1083 MEMCPY(&((char *)dataptr)[left], &((char *)p->payload)[offset], buf_copy_len);
1102 * @param len length of data to copy (dataptr must be big enough). No more
1114 LWIP_ERROR("pbuf_get_contiguous: invalid dataptr", (buffer != NULL), return NULL;);
1115 LWIP_ERROR("pbuf_get_contiguous: invalid dataptr", (bufsize >= len), return NULL;);
1224 * @param dataptr application supplied data buffer
1230 pbuf_take(struct pbuf *buf, const void *dataptr, u16_t len)
1238 LWIP_ERROR("pbuf_take: invalid dataptr", (dataptr != NULL), return ERR_ARG;);
1241 if ((buf == NULL) || (dataptr == NULL) || (buf->tot_len < len)) {
1245 /* Note some systems use byte copy if dataptr or one of the pbuf payload pointers are unaligned. */
1254 MEMCPY(p->payload, &((const char *)dataptr)[copied_total], buf_copy_len);
1267 * @param dataptr application supplied data buffer
1269 * @param offset offset in pbuf where to copy dataptr to
1274 pbuf_take_at(struct pbuf *buf, const void *dataptr, u16_t len, u16_t offset)
1282 const u8_t *src_ptr = (const u8_t *)dataptr;
1287 MEMCPY(((u8_t *)q->payload) + target_offset, dataptr, first_copy_len);
1361 * @param dataptr data to copy into the pbuf
1368 pbuf_fill_chksum(struct pbuf *p, u16_t start_offset, const void *dataptr,
1375 LWIP_ASSERT("dataptr != NULL", dataptr != NULL);
1384 copy_chksum = LWIP_CHKSUM_COPY(dst_ptr, dataptr, len);