Lines Matching refs:info

274 	hermon_dbr_info_t 	*info;
279 info = kmem_zalloc(sizeof (hermon_dbr_info_t), KM_SLEEP);
297 kmem_free((void *)info, sizeof (hermon_dbr_info_t));
308 kmem_free((void *)info, sizeof (hermon_dbr_info_t));
319 kmem_free((void *)info, sizeof (hermon_dbr_info_t));
324 *dinfo = info; /* Pass back the pointer */
326 /* init the info structure with returned info */
327 info->dbr_dmahdl = dma_hdl;
328 info->dbr_acchdl = acc_hdl;
329 info->dbr_page = (hermon_dbr_t *)(void *)dmaaddr;
330 info->dbr_link = NULL;
332 info->dbr_paddr = cookie.dmac_laddress;
333 info->dbr_firstfree = 0;
334 info->dbr_nfree = HERMON_NUM_DBR_PER_PAGE;
337 info->dbr_page[i] = i + 1;
356 hermon_dbr_info_t *info = NULL;
365 for (info = state->hs_kern_dbr; info != NULL; info = info->dbr_link)
366 if (info->dbr_nfree != 0)
369 if (info == NULL) { /* did NOT find a page with one available */
370 status = hermon_dbr_page_alloc(state, &info);
377 info->dbr_link = state->hs_kern_dbr;
378 state->hs_kern_dbr = info;
380 idx = info->dbr_firstfree;
381 record = info->dbr_page + idx;
382 info->dbr_firstfree = *record;
383 info->dbr_nfree--;
386 *acchdl = info->dbr_acchdl;
388 *pdbr = info->dbr_paddr + idx * sizeof (hermon_dbr_t);
404 hermon_dbr_info_t *info;
412 for (info = state->hs_kern_dbr; info != NULL; info = info->dbr_link)
413 if (info->dbr_page == page)
415 ASSERT(info != NULL);
416 *record = info->dbr_firstfree;
417 info->dbr_firstfree = record - info->dbr_page;
418 info->dbr_nfree++;
434 hermon_dbr_info_t *info, *link;
443 for (info = state->hs_kern_dbr; info != NULL; info = link) {
444 (void) ddi_dma_unbind_handle(info->dbr_dmahdl);
445 ddi_dma_mem_free(&info->dbr_acchdl); /* free page */
446 ddi_dma_free_handle(&info->dbr_dmahdl);
447 link = info->dbr_link;
448 kmem_free(info, sizeof (hermon_dbr_info_t));
2247 * NOTE: The entire 64 bits worth of GUID info is actually being