Lines Matching defs:handle
127 xpvtap_rs_hdl_t *handle);
128 static void xpvtap_rs_fini(xpvtap_rs_hdl_t *handle);
129 static int xpvtap_rs_alloc(xpvtap_rs_hdl_t handle, uint_t *rs);
130 static void xpvtap_rs_free(xpvtap_rs_hdl_t handle, uint_t rs);
131 static void xpvtap_rs_flush(xpvtap_rs_hdl_t handle,
887 * the user ring can handle BLKIF_RING_SIZE outstanding requests. This
1401 * Initialize the resource structure. init() returns a handle to be used
1407 xpvtap_rs_init(uint_t min_val, uint_t max_val, xpvtap_rs_hdl_t *handle)
1414 ASSERT(handle != NULL);
1445 /* setup handle which is returned from this function */
1446 *handle = rstruct;
1453 * handle is used for the parameter. fini() will set the handle to NULL
1457 xpvtap_rs_fini(xpvtap_rs_hdl_t *handle)
1462 ASSERT(handle != NULL);
1464 rstruct = (xpvtap_rs_t *)*handle;
1470 /* set handle to null. This helps catch bugs. */
1471 *handle = NULL;
1480 xpvtap_rs_alloc(xpvtap_rs_hdl_t handle, uint_t *resource)
1491 ASSERT(handle != NULL);
1494 rstruct = (xpvtap_rs_t *)handle;
1557 xpvtap_rs_free(xpvtap_rs_hdl_t handle, uint_t resource)
1564 ASSERT(handle != NULL);
1566 rstruct = (xpvtap_rs_t *)handle;
1589 xpvtap_rs_flush(xpvtap_rs_hdl_t handle, xpvtap_rs_cleanup_t callback,
1601 ASSERT(handle != NULL);
1603 rstruct = (xpvtap_rs_t *)handle;