Lines Matching defs:di

217 	device_info *di;
228 di = &(devices->di[index / 2]);
232 if (!di->is_open)
233 result = Radeon_FirstOpen(di);
236 di->is_open++;
237 *cookie = di;
274 device_info *di = (device_info *)dev;
280 mem_freetag( di->memmgr[mt_local], dev );
282 if( di->memmgr[mt_PCI] )
283 mem_freetag( di->memmgr[mt_PCI], dev );
285 if( di->memmgr[mt_AGP] )
286 mem_freetag( di->memmgr[mt_AGP], dev );
288 if( di->is_open == 1 )
289 Radeon_LastClose( di );
291 di->is_open--;
301 device_info *di = (device_info *)dev;
317 gpd->shared_info_area = di->shared_area;
318 gpd->virtual_card_area = di->virtual_card_area;
328 strncpy( dn->name, di->name, MAX_RADEON_DEVICE_NAME_LENGTH );
344 memory_type = am->memory_type == mt_nonlocal ? di->si->nonlocal_type : am->memory_type;
346 result = mem_alloc( di->memmgr[memory_type], am->size, am->global ? 0 : dev, &am->handle, &am->offset );
359 memory_type = fm->memory_type == mt_nonlocal ? di->si->nonlocal_type : fm->memory_type;
361 result = mem_free( di->memmgr[memory_type], fm->handle, fm->global ? 0 : dev );
370 Radeon_WaitForIdle( di, true, wfi->keep_lock );
380 Radeon_WaitForFifo( di, wff->entries );
390 ACQUIRE_BEN( di->si->cp.lock );
391 Radeon_ResetEngine( di );
392 RELEASE_BEN( di->si->cp.lock );
403 result = Radeon_VIPRead( di, vr->channel, vr->address, &vr->data,
413 result = Radeon_VIPWrite( di, vw->channel, vw->address, vw->data,
423 result = Radeon_VIPFifoRead( di, vr->channel, vr->address, vr->count, vr->data,
433 result = Radeon_VIPFifoWrite( di, vw->channel, vw->address, vw->count, vw->data,
443 fvd->channel = Radeon_FindVIPDevice( di, fvd->device_id );
454 Radeon_VIPReset( di, fvd->lock );
465 result = acquire_sem_etc( di->cap_sem, 1, B_RELATIVE_TIMEOUT,
470 acquire_spinlock( &di->cap_spinlock );
472 wvc->timestamp = di->cap_timestamp;
473 wvc->int_status = di->cap_int_status;
474 wvc->counter = di->cap_counter;
476 release_spinlock( &di->cap_spinlock );
487 result = Radeon_DMACopy( di, dc->src, dc->target, dc->size, dc->lock_mem, dc->contiguous );
494 *(uint32 *)buf = log_getsize( di->si->log );
499 log_getcopy( di->si->log, buf, ((uint32 *)buf)[0] );