src/dpdk/drivers/event/dlb2/pf/base/dlb2_osdep.h
static inline void *os_map_producer_port(struct dlb2_hw *hw,
					 u8 port_id,
					 bool is_ldb)
{
	uint64_t addr;
	uint64_t pp_dma_base;

	pp_dma_base = (uintptr_t)hw->func_kva + DLB2_PP_BASE(is_ldb);
	addr = (pp_dma_base + (PAGE_SIZE * port_id));

	return (void *)(uintptr_t)addr;
}
/**
 * os_map_producer_port() - map a producer port into the caller's address space
 * @hw: dlb2_hw handle for a particular device.
 * @port_id: port ID
 * @is_ldb: true for load-balanced port, false for a directed port
 *
 * This function maps the requested producer port memory into the caller's
 * address space.
 *
 * Return:
 * Returns the base address at which the PP memory was mapped, else NULL.
 */
map a producer port into the caller's address space
@hw: dlb2_hw handle for a particular device.
@port_id: port ID
@is_ldb: true for load-balanced port, false for a directed port

This function maps the requested producer port memory into the caller's
address space.

Returns the base address at which the PP memory was mapped, else NULL.
map a producer port into the caller ' s address space @hw : dlb2_hw handle for a particular device . @port_id : port ID @is_ldb : true for load - balanced port false for a directed port This function maps the requested producer port memory into the caller ' s address space . Returns the base address at which the PP memory was mapped else NULL .
static inline void *os_map_producer_port(struct dlb2_hw *hw,
					 u8 port_id,
					 bool is_ldb)
{
	uint64_t addr;
	uint64_t pp_dma_base;
	pp_dma_base = (uintptr_t)hw->func_kva + DLB2_PP_BASE(is_ldb);
	addr = (pp_dma_base + (PAGE_SIZE * port_id));
	return (void *)(uintptr_t)addr;
}
static inline void * os_map_producer_port ( struct dlb2_hw * hw , u8 port_id , bool is_ldb ) { uint64_t addr ; uint64_t pp_dma_base ; pp_dma_base = ( uintptr_t ) hw -> func_kva + DLB2_PP_BASE ( is_ldb ) ; addr = ( pp_dma_base + ( PAGE_SIZE * port_id ) ) ; return ( void * ) ( uintptr_t ) addr ; }
os_map_producer_port() - map a producer port into the caller's address space
 @hw: dlb2_hw handle for a particular device.
os_map_producer_port () - map a producer port into the caller ' s address space @hw : dlb2_hw handle for a particular device .