/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/* Copyright © 2003-2011 Emulex. All rights reserved. */
/*
* Source file containing the implementation of the driver
* helper functions
*/
#include <oce_impl.h>
/*
* function to breakup a block of memory into pages and return the address
* in an array
*
* dbuf - pointer to structure describing DMA-able memory
* pa_list - [OUT] pointer to an array to return the PA of pages
* list_size - number of entries in pa_list
*/
void
{
int i = 0;
for (i = 0; i < list_size; i++) {
}
} /* oce_page_list */
void
{
}
static inline void
{
}
static inline void
{
}
static inline void
{
}
void
{
}
void
{
}
void
{
}
void
{
}
void *
{
return (NULL);
}
return (NULL);
}
return (list_node);
}
void *
{
return (NULL);
}
return (NULL);
}
}
return (list_node);
}
{
return (B_TRUE);
else
}
int
{
return (0);
else
}
void
{
}
void
{
int i;
for (i = 0; i < nkeys; i++) {
(void) random_get_pseudo_bytes(
sizeof (uint32_t));
}
}
int
{
/*
* ATOMICALLY
*/
do {
if (oldval < n)
return (-1);
return (newval);
}