Lines Matching refs:buf
49 static inline dma_addr_t bm_buf_addr(const struct bm_buffer *buf) in bm_buf_addr() argument
51 return be64_to_cpu(buf->data) & 0xffffffffffffLLU; in bm_buf_addr()
54 static inline u64 bm_buffer_get64(const struct bm_buffer *buf) in bm_buffer_get64() argument
56 return be64_to_cpu(buf->data) & 0xffffffffffffLLU; in bm_buffer_get64()
59 static inline void bm_buffer_set64(struct bm_buffer *buf, u64 addr) in bm_buffer_set64() argument
61 buf->hi = cpu_to_be16(upper_32_bits(addr)); in bm_buffer_set64()
62 buf->lo = cpu_to_be32(lower_32_bits(addr)); in bm_buffer_set64()
65 static inline u8 bm_buffer_get_bpid(const struct bm_buffer *buf) in bm_buffer_get_bpid() argument
67 return be16_to_cpu(buf->bpid) & 0xff; in bm_buffer_get_bpid()
70 static inline void bm_buffer_set_bpid(struct bm_buffer *buf, int bpid) in bm_buffer_set_bpid() argument
72 buf->bpid = cpu_to_be16(bpid & 0xff); in bm_buffer_set_bpid()