Lines Matching refs:di

217 	device_info *di;
229 di = &(devices->di[index / 2]);
233 if (!di->is_open)
234 result = Radeon_FirstOpen(di);
237 di->is_open++;
238 *cookie = di;
275 device_info *di = (device_info *)dev;
281 mem_freetag( di->memmgr[mt_local], dev );
283 if( di->memmgr[mt_PCI] )
284 mem_freetag( di->memmgr[mt_PCI], dev );
286 if( di->memmgr[mt_AGP] )
287 mem_freetag( di->memmgr[mt_AGP], dev );
289 if( di->is_open == 1 )
290 Radeon_LastClose( di );
292 di->is_open--;
302 device_info *di = (device_info *)dev;
318 gpd->shared_info_area = di->shared_area;
319 gpd->virtual_card_area = di->virtual_card_area;
329 strncpy( dn->name, di->name, MAX_RADEON_DEVICE_NAME_LENGTH );
345 memory_type = am->memory_type == mt_nonlocal ? di->si->nonlocal_type : am->memory_type;
347 result = mem_alloc( di->memmgr[memory_type], am->size, am->global ? 0 : dev, &am->handle, &am->offset );
360 memory_type = fm->memory_type == mt_nonlocal ? di->si->nonlocal_type : fm->memory_type;
362 result = mem_free( di->memmgr[memory_type], fm->handle, fm->global ? 0 : dev );
371 Radeon_WaitForIdle( di, true, wfi->keep_lock );
381 Radeon_WaitForFifo( di, wff->entries );
391 ACQUIRE_BEN( di->si->cp.lock );
392 Radeon_ResetEngine( di );
393 RELEASE_BEN( di->si->cp.lock );
404 result = Radeon_VIPRead( di, vr->channel, vr->address, &vr->data,
414 result = Radeon_VIPWrite( di, vw->channel, vw->address, vw->data,
424 result = Radeon_VIPFifoRead( di, vr->channel, vr->address, vr->count, vr->data,
434 result = Radeon_VIPFifoWrite( di, vw->channel, vw->address, vw->count, vw->data,
444 fvd->channel = Radeon_FindVIPDevice( di, fvd->device_id );
455 Radeon_VIPReset( di, fvd->lock );
466 result = acquire_sem_etc( di->cap_sem, 1, B_RELATIVE_TIMEOUT,
471 acquire_spinlock( &di->cap_spinlock );
473 wvc->timestamp = di->cap_timestamp;
474 wvc->int_status = di->cap_int_status;
475 wvc->counter = di->cap_counter;
477 release_spinlock( &di->cap_spinlock );
488 result = Radeon_DMACopy( di, dc->src, dc->target, dc->size, dc->lock_mem, dc->contiguous );
495 *(uint32 *)buf = log_getsize( di->si->log );
500 log_getcopy( di->si->log, buf, ((uint32 *)buf)[0] );