Lines Matching defs:handle

187  * Allocate a memory handle for the channel and link it into the list
188 * Also choose which memory table to use if this is the first handle
192 ldc_mem_alloc_handle(ldc_handle_t handle, ldc_mem_handle_t *mhandle)
197 if (handle == NULL) {
199 "ldc_mem_alloc_handle: invalid channel handle\n");
202 ldcp = (ldc_chan_t *)handle;
215 /* allocate handle for channel */
226 /* insert memory handle (@ head) into list */
236 /* return the handle */
241 D1(ldcp->id, "ldc_mem_alloc_handle: (0x%llx) allocated handle 0x%llx\n",
248 * Free memory handle for the channel and unlink it from the list
258 "ldc_mem_free_handle: invalid memory handle\n");
280 /* first handle */
287 "ldc_mem_free_handle: (0x%llx) freed handle 0x%llx\n",
298 "handle 0x%llx\n", ldcp->id, mhdl);
307 "ldc_mem_free_handle: invalid handle 0x%llx\n", mhdl);
318 * Bind a memory handle to a virtual address.
364 "ldc_mem_bind_handle: invalid memory handle\n");
377 "ldc_mem_bind_handle: (0x%x) handle already bound\n",
394 * If this channel is binding a memory handle for the
640 /* memory handle = bound */
668 * Return the next cookie associated with the specified memory handle
679 "ldc_mem_nextcookie: invalid memory handle\n");
723 * memory handle. Allassociated cookies are freed and the corresponding
739 "ldc_mem_unbind_handle: invalid memory handle\n");
748 "ldc_mem_unbind_handle: (0x%x) handle is not bound\n",
810 /* uninitialize the memory handle */
814 D1(ldcp->id, "ldc_mem_unbind_handle: (0x%llx) unbound handle 0x%llx\n",
831 DWARN(DBG_ALL_LDCS, "ldc_mem_info: invalid memory handle\n");
862 ldc_mem_copy(ldc_handle_t handle, caddr_t vaddr, uint64_t off, size_t *size,
878 if (handle == NULL) {
879 DWARN(DBG_ALL_LDCS, "ldc_mem_copy: invalid channel handle\n");
882 ldcp = (ldc_chan_t *)handle;
1088 ldc_mem_rdwr_cookie(ldc_handle_t handle, caddr_t vaddr, size_t *size,
1101 if (handle == NULL) {
1103 "ldc_mem_rdwr_cookie: invalid channel handle\n");
1106 ldcp = (ldc_chan_t *)handle;
1273 DWARN(DBG_ALL_LDCS, "ldc_mem_map: invalid memory handle\n");
1283 "ldc_mem_map: (0x%llx) handle bound/mapped\n", mhandle);
1492 /* memory handle = mapped */
1527 "ldc_mem_unmap: (0x%llx) handle is not mapped\n",
1537 D1(ldcp->id, "ldc_mem_unmap: (0x%llx) unmapping handle 0x%llx\n",
1567 /* uninitialize the memory handle */
1571 D1(ldcp->id, "ldc_mem_unmap: (0x%llx) unmapped handle 0x%llx\n",
1598 "i_ldc_mem_acquire_release: invalid memory handle\n");
1633 /* get the channel handle and memory segment */
1759 "ldc_mem_dring_destroy: invalid desc ring handle\n");
1821 ldc_mem_dring_bind(ldc_handle_t handle, ldc_dring_handle_t dhandle,
1830 if (handle == NULL) {
1832 "ldc_mem_dring_bind: invalid channel handle\n");
1835 ldcp = (ldc_chan_t *)handle;
1839 "ldc_mem_dring_bind: invalid desc ring handle\n");
1886 /* create an memory handle */
1887 err = ldc_mem_alloc_handle(handle, &mhandle);
1938 * Return the next cookie associated with the specified dring handle
1949 "ldc_mem_dring_nextcookie: invalid desc ring handle\n");
1991 "ldc_mem_dring_unbind: invalid desc ring handle\n");
2129 "ldc_mem_dring_info: invalid desc ring handle\n");
2162 ldc_mem_dring_map(ldc_handle_t handle, ldc_mem_cookie_t *cookie,
2167 ldc_chan_t *ldcp = (ldc_chan_t *)handle;
2179 if (handle == NULL) {
2181 "ldc_mem_dring_map: invalid channel handle\n");
2184 ldcp = (ldc_chan_t *)handle;
2235 /* create an memory handle */
2236 err = ldc_mem_alloc_handle(handle, &mhandle);
2287 "ldc_mem_dring_unmap: invalid desc ring handle\n");
2330 /* do a LDC memory handle unmap and free */
2368 "i_ldc_dring_acquire_release: invalid desc ring handle\n");
2391 "i_ldc_dring_acquire_release: invalid memory handle\n");
2404 /* get the channel handle */