Lines Matching defs:resp

1182 	struct fc_resource	*resp, *nresp;
1194 for (resp = rp->head; resp != NULL; resp = nresp) {
1195 nresp = resp->next;
1196 switch (resp->type) {
1204 if (resp->fc_map_handle != NULL)
1205 opl_unmap_phys(&resp->fc_map_handle);
1219 resp->fc_contig_virt, resp->fc_contig_len);
1222 (uint64_t)resp->fc_contig_virt,
1223 resp->fc_contig_len, "opl-fcodemem",
1230 "unknown resource type %d", resp->type);
1233 fc_rem_resource(rp, resp);
1234 kmem_free(resp, sizeof (struct fc_resource));
1277 struct fc_resource *resp;
1318 resp = kmem_zalloc(sizeof (struct fc_resource), KM_SLEEP);
1319 resp->type = RT_MAP;
1320 resp->fc_map_virt = virt;
1321 resp->fc_map_len = len;
1322 resp->fc_map_handle = h;
1323 fc_add_resource(rp, resp);
1336 struct fc_resource *resp;
1352 for (resp = rp->head; resp != NULL; resp = resp->next) {
1353 if (resp->type != RT_MAP)
1355 if (resp->fc_map_virt != virt)
1357 if (resp->fc_map_len == len)
1362 if (resp == NULL)
1366 opl_unmap_phys(&resp->fc_map_handle);
1371 fc_rem_resource(rp, resp);
1372 kmem_free(resp, sizeof (struct fc_resource));
1390 struct fc_resource *resp;
1421 for (resp = rp->head; resp != NULL; resp = resp->next) {
1422 if (resp->type == RT_MAP) {
1423 if ((virt >= (caddr_t)resp->fc_map_virt) &&
1425 ((caddr_t)resp->fc_map_virt + resp->fc_map_len)))
1427 } else if (resp->type == RT_CONTIGIOUS) {
1428 if ((virt >= (caddr_t)resp->fc_contig_virt) &&
1429 ((virt + len) <= ((caddr_t)resp->fc_contig_virt +
1430 resp->fc_contig_len)))
1436 if (resp == NULL) {
1443 if (resp->type == RT_MAP)
1451 if (resp->type == RT_MAP)
1459 if (resp->type == RT_MAP)
1467 if (resp->type == RT_MAP)
1506 struct fc_resource *resp;
1554 for (resp = rp->head; resp != NULL; resp = resp->next) {
1555 if (resp->type == RT_MAP) {
1556 if ((virt >= (caddr_t)resp->fc_map_virt) &&
1558 ((caddr_t)resp->fc_map_virt + resp->fc_map_len)))
1560 } else if (resp->type == RT_CONTIGIOUS) {
1561 if ((virt >= (caddr_t)resp->fc_contig_virt) &&
1562 ((virt + len) <= ((caddr_t)resp->fc_contig_virt +
1563 resp->fc_contig_len)))
1569 if (resp == NULL)
1575 if (resp->type == RT_MAP)
1577 else if (resp->type == RT_CONTIGIOUS)
1581 if (resp->type == RT_MAP)
1583 else if (resp->type == RT_CONTIGIOUS)
1587 if (resp->type == RT_MAP)
1589 else if (resp->type == RT_CONTIGIOUS)
1593 if (resp->type == RT_MAP)
1595 else if (resp->type == RT_CONTIGIOUS)
1621 struct fc_resource *resp;
1670 resp = kmem_zalloc(sizeof (struct fc_resource), KM_SLEEP);
1671 resp->type = RT_CONTIGIOUS;
1672 resp->fc_contig_virt = (void *)answer;
1673 resp->fc_contig_len = size;
1674 fc_add_resource(rp, resp);
1688 struct fc_resource *resp;
1706 for (resp = rp->head; resp != NULL; resp = resp->next) {
1707 if (resp->type != RT_CONTIGIOUS)
1709 if (resp->fc_contig_virt != (void *)(uintptr_t)vaddr)
1711 if (resp->fc_contig_len == size)
1716 if (resp == NULL)
1726 fc_rem_resource(rp, resp);
1727 kmem_free(resp, sizeof (struct fc_resource));
1744 struct fc_resource *resp;
1758 for (resp = rp->head; resp != NULL; resp = resp->next) {
1759 if (resp->type != RT_CONTIGIOUS)
1761 if (((uint64_t)resp->fc_contig_virt <= vaddr) &&
1762 (vaddr < (uint64_t)resp->fc_contig_virt +
1763 resp->fc_contig_len))
1768 if (resp == NULL)