Lines Matching refs:nbuf
299 static void zep_shim_nbuf_free(void *nbuf) in zep_shim_nbuf_free() argument
301 if (!nbuf) { in zep_shim_nbuf_free()
305 zep_shim_data_mem_free(((struct nwb *)nbuf)->priv); in zep_shim_nbuf_free()
306 zep_shim_data_mem_free(nbuf); in zep_shim_nbuf_free()
309 static void zep_shim_nbuf_headroom_res(void *nbuf, unsigned int size) in zep_shim_nbuf_headroom_res() argument
311 struct nwb *nwb = (struct nwb *)nbuf; in zep_shim_nbuf_headroom_res()
318 static unsigned int zep_shim_nbuf_headroom_get(void *nbuf) in zep_shim_nbuf_headroom_get() argument
320 return ((struct nwb *)nbuf)->headroom; in zep_shim_nbuf_headroom_get()
323 static unsigned int zep_shim_nbuf_data_size(void *nbuf) in zep_shim_nbuf_data_size() argument
325 return ((struct nwb *)nbuf)->len; in zep_shim_nbuf_data_size()
328 static void *zep_shim_nbuf_data_get(void *nbuf) in zep_shim_nbuf_data_get() argument
330 return ((struct nwb *)nbuf)->data; in zep_shim_nbuf_data_get()
333 static void *zep_shim_nbuf_data_put(void *nbuf, unsigned int size) in zep_shim_nbuf_data_put() argument
335 struct nwb *nwb = (struct nwb *)nbuf; in zep_shim_nbuf_data_put()
344 static void *zep_shim_nbuf_data_push(void *nbuf, unsigned int size) in zep_shim_nbuf_data_push() argument
346 struct nwb *nwb = (struct nwb *)nbuf; in zep_shim_nbuf_data_push()
355 static void *zep_shim_nbuf_data_pull(void *nbuf, unsigned int size) in zep_shim_nbuf_data_pull() argument
357 struct nwb *nwb = (struct nwb *)nbuf; in zep_shim_nbuf_data_pull()
366 static unsigned char zep_shim_nbuf_get_priority(void *nbuf) in zep_shim_nbuf_get_priority() argument
368 struct nwb *nwb = (struct nwb *)nbuf; in zep_shim_nbuf_get_priority()
373 static unsigned char zep_shim_nbuf_get_chksum_done(void *nbuf) in zep_shim_nbuf_get_chksum_done() argument
375 struct nwb *nwb = (struct nwb *)nbuf; in zep_shim_nbuf_get_chksum_done()
380 static void zep_shim_nbuf_set_chksum_done(void *nbuf, unsigned char chksum_done) in zep_shim_nbuf_set_chksum_done() argument
382 struct nwb *nwb = (struct nwb *)nbuf; in zep_shim_nbuf_set_chksum_done()