Lines Matching refs:nbuff
214 struct nwb *nbuff; in zep_shim_nbuf_alloc() local
216 nbuff = (struct nwb *)k_calloc(sizeof(struct nwb), sizeof(char)); in zep_shim_nbuf_alloc()
218 if (!nbuff) { in zep_shim_nbuf_alloc()
222 nbuff->priv = k_calloc(size, sizeof(char)); in zep_shim_nbuf_alloc()
224 if (!nbuff->priv) { in zep_shim_nbuf_alloc()
225 k_free(nbuff); in zep_shim_nbuf_alloc()
229 nbuff->data = (unsigned char *)nbuff->priv; in zep_shim_nbuf_alloc()
230 nbuff->tail = nbuff->data; in zep_shim_nbuf_alloc()
231 nbuff->len = 0; in zep_shim_nbuf_alloc()
232 nbuff->headroom = 0; in zep_shim_nbuf_alloc()
233 nbuff->next = NULL; in zep_shim_nbuf_alloc()
235 return nbuff; in zep_shim_nbuf_alloc()
331 struct nwb *nbuff; in net_pkt_to_nbuf() local
337 nbuff = zep_shim_nbuf_alloc(len + 100); in net_pkt_to_nbuf()
339 if (!nbuff) { in net_pkt_to_nbuf()
343 zep_shim_nbuf_headroom_res(nbuff, 100); in net_pkt_to_nbuf()
345 data = zep_shim_nbuf_data_put(nbuff, len); in net_pkt_to_nbuf()
349 nbuff->priority = net_pkt_priority(pkt); in net_pkt_to_nbuf()
350 nbuff->chksum_done = (bool)net_pkt_is_chksum_done(pkt); in net_pkt_to_nbuf()
352 return nbuff; in net_pkt_to_nbuf()