Home
last modified time | relevance | path

Searched refs:ltb (Results 1 – 2 of 2) sorted by relevance

/drivers/staging/lustre/lnet/lnet/
Dconfig.c410 struct lnet_text_buf *ltb; in lnet_new_text_buf() local
426 LIBCFS_ALLOC(ltb, nob); in lnet_new_text_buf()
427 if (!ltb) in lnet_new_text_buf()
430 ltb->ltb_size = nob; in lnet_new_text_buf()
431 ltb->ltb_text[0] = 0; in lnet_new_text_buf()
433 return ltb; in lnet_new_text_buf()
437 lnet_free_text_buf(struct lnet_text_buf *ltb) in lnet_free_text_buf() argument
439 lnet_tbnob -= ltb->ltb_size; in lnet_free_text_buf()
440 LIBCFS_FREE(ltb, ltb->ltb_size); in lnet_free_text_buf()
446 struct lnet_text_buf *ltb; in lnet_free_text_bufs() local
[all …]
/drivers/net/ethernet/ibm/
Dibmvnic.c178 struct ibmvnic_long_term_buff *ltb, int size) in alloc_long_term_buff() argument
182 ltb->size = size; in alloc_long_term_buff()
183 ltb->buff = dma_alloc_coherent(dev, ltb->size, &ltb->addr, in alloc_long_term_buff()
186 if (!ltb->buff) { in alloc_long_term_buff()
190 ltb->map_id = adapter->map_id; in alloc_long_term_buff()
194 send_request_map(adapter, ltb->addr, in alloc_long_term_buff()
195 ltb->size, ltb->map_id); in alloc_long_term_buff()
201 struct ibmvnic_long_term_buff *ltb) in free_long_term_buff() argument
205 dma_free_coherent(dev, ltb->size, ltb->buff, ltb->addr); in free_long_term_buff()
207 send_request_unmap(adapter, ltb->map_id); in free_long_term_buff()