Lines Matching +full:cpu +full:- +full:release +full:- +full:addr
1 /* Copyright 2008 - 2016 Freescale Semiconductor, Inc.
34 /* wrapper for 48-bit buffers */
38 __be16 bpid; /* hi 8-bits reserved */
39 __be16 hi; /* High 16-bits of 48-bit address */
40 __be32 lo; /* Low 32-bits of 48-bit address */
51 return be64_to_cpu(buf->data) & 0xffffffffffffLLU; in bm_buf_addr()
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()
67 return be16_to_cpu(buf->bpid) & 0xff; in bm_buffer_get_bpid()
72 buf->bpid = cpu_to_be16(bpid & 0xff); in bm_buffer_set_bpid()
75 /* Managed portal, high-level i/face */
84 * bman_new_pool - Allocates a Buffer Pool object
91 * bman_free_pool - Deallocates a Buffer Pool object
92 * @pool: the pool object to release
97 * bman_get_bpid - Returns a pool object's BPID.
101 * in the range of [0, @BM_POOL_MAX-1].
106 * bman_release - Release buffer(s) to the buffer pool
107 * @pool: the buffer pool object to release to
108 * @bufs: an array of buffers to release
109 * @num: the number of buffers in @bufs (1-8)
112 * the function will return -ETIMEDOUT. Otherwise, it returns zero.
117 * bman_acquire - Acquire buffer(s) from a buffer pool
130 * bman_is_probed - Check if bman is probed
132 * Returns 1 if the bman driver successfully probed, -1 if the bman driver
137 * bman_portals_probed - Check if all cpu bound bman portals are probed
139 * Returns 1 if all the required cpu bound bman portals successfully probed,
140 * -1 if probe errors appeared or 0 if the bman portals did not yet finished