Lines Matching refs:dummyhp
3846 struct bofi_shadow *dummyhp; in bofi_dma_ctl() local
3893 dummyhp = hp; in bofi_dma_ctl()
3894 dummyhp->hnext->hprev = dummyhp->hprev; in bofi_dma_ctl()
3895 dummyhp->hprev->hnext = dummyhp->hnext; in bofi_dma_ctl()
3898 for (i = 0; i < dummyhp->len; i++) { in bofi_dma_ctl()
3899 hp = dummyhp->hparrayp[i]; in bofi_dma_ctl()
3921 kmem_free(dummyhp->hparrayp, dummyhp->len * in bofi_dma_ctl()
3923 kmem_free(dummyhp, sizeof (struct bofi_shadow)); in bofi_dma_ctl()
3941 struct bofi_shadow *dummyhp; in bofi_dvma_reserve() local
3953 dummyhp = kmem_zalloc(sizeof (*dummyhp), KM_SLEEP); in bofi_dvma_reserve()
3959 dummyhp->save.dvma_ops = *(nexus_private->ops); in bofi_dvma_reserve()
3967 (void) strncpy(dummyhp->name, ddi_get_name(rdip), NAMESIZE); in bofi_dvma_reserve()
3968 dummyhp->instance = ddi_get_instance(rdip); in bofi_dvma_reserve()
3969 dummyhp->rnumber = -1; in bofi_dvma_reserve()
3970 dummyhp->dip = rdip; in bofi_dvma_reserve()
3971 dummyhp->len = count; in bofi_dvma_reserve()
3972 dummyhp->hdl.dma_handle = handle; in bofi_dvma_reserve()
3973 dummyhp->link = NULL; in bofi_dvma_reserve()
3974 dummyhp->type = BOFI_NULL; in bofi_dvma_reserve()
3978 dummyhp->hparrayp = kmem_alloc(count * in bofi_dvma_reserve()
4024 dummyhp->hparrayp[i] = hp; in bofi_dvma_reserve()
4034 dummyhp->hnext = hhashp->hnext; in bofi_dvma_reserve()
4035 hhashp->hnext->hprev = dummyhp; in bofi_dvma_reserve()
4036 dummyhp->hprev = hhashp; in bofi_dvma_reserve()
4037 hhashp->hnext = dummyhp; in bofi_dvma_reserve()
4049 struct bofi_shadow *dummyhp; in bofi_dvma_kaddr_load() local
4061 for (dummyhp = hhashp->hnext; dummyhp != hhashp; in bofi_dvma_kaddr_load()
4062 dummyhp = dummyhp->hnext) in bofi_dvma_kaddr_load()
4063 if (dummyhp->hdl.dma_handle == h) in bofi_dvma_kaddr_load()
4067 if (dummyhp == hhashp) { in bofi_dvma_kaddr_load()
4077 hp = dummyhp->hparrayp[index]; in bofi_dvma_kaddr_load()
4098 dummyhp->save.dvma_ops.dvma_kaddr_load(h, a, len, index, cp); in bofi_dvma_kaddr_load()
4138 struct bofi_shadow *dummyhp; in bofi_dvma_unload() local
4148 for (dummyhp = hhashp->hnext; dummyhp != hhashp; in bofi_dvma_unload()
4149 dummyhp = dummyhp->hnext) in bofi_dvma_unload()
4150 if (dummyhp->hdl.dma_handle == h) in bofi_dvma_unload()
4154 if (dummyhp == hhashp) { in bofi_dvma_unload()
4160 dummyhp->save.dvma_ops.dvma_unload(h, index, view); in bofi_dvma_unload()
4164 hp = dummyhp->hparrayp[index]; in bofi_dvma_unload()
4211 struct bofi_shadow *dummyhp; in bofi_dvma_sync() local
4220 for (dummyhp = hhashp->hnext; dummyhp != hhashp; in bofi_dvma_sync()
4221 dummyhp = dummyhp->hnext) in bofi_dvma_sync()
4222 if (dummyhp->hdl.dma_handle == h) in bofi_dvma_sync()
4226 if (dummyhp == hhashp) { in bofi_dvma_sync()
4235 hp = dummyhp->hparrayp[index]; in bofi_dvma_sync()
4245 dummyhp->save.dvma_ops.dvma_sync(h, index, view); in bofi_dvma_sync()
4283 dummyhp->save.dvma_ops.dvma_sync(h, index, view); in bofi_dvma_sync()