Lines Matching defs:channel

24 static status_t RADEON_VIPFifoIdle(device_info *di, uint8 channel);
30 device_info *di, uint channel, uint address, uint32 *data )
36 OUTREG( regs, RADEON_VIPH_REG_ADDR, (channel << 14) | address | 0x2000 );
64 //SHOW_FLOW( 4, "channel=%d, address=%x, data=%lx", channel, address, *data );
80 device_info *di, uint channel, uint address, uint32 *data, bool lock )
87 res = do_VIPRead( di, channel, address, data );
97 static bool do_VIPFifoRead(device_info *di, uint8 channel, uint32 address, uint32 count, uint8 *buffer)
113 OUTREG( regs, RADEON_VIPH_REG_ADDR, (channel << 14) | address | 0x3000);
171 bool Radeon_VIPFifoRead(device_info *di, uint8 channel, uint32 address, uint32 count, uint8 *buffer, bool lock)
178 res = do_VIPFifoRead( di, channel, address, count, buffer );
190 static bool do_VIPWrite( device_info *di, uint8 channel, uint address, uint32 data )
195 OUTREG( regs, RADEON_VIPH_REG_ADDR, (channel << 14) | (address & ~0x2000) );
199 //SHOW_FLOW( 4, "channel=%d, address=%x, data=%lx", channel, address, data );
209 bool Radeon_VIPWrite(device_info *di, uint8 channel, uint address, uint32 data, bool lock )
218 res = do_VIPWrite( di, channel, address, data );
227 static bool do_VIPFifoWrite(device_info *di, uint8 channel, uint32 address,
240 ((channel << 14) | address | 0x1000) & ~0x2000 );
273 bool Radeon_VIPFifoWrite(device_info *di, uint8 channel, uint32 address, uint32 count, uint8 *buffer, bool lock)
283 res = do_VIPFifoWrite( di, channel, address, count, buffer );
364 static status_t RADEON_VIPFifoIdle(device_info *di, uint8 channel)
370 if((timeout & 0x0000000f) & channel) /* lockup ?? */
372 OUTREG( regs, RADEON_VIPH_TIMEOUT_STAT, (timeout & 0xfffffff0) | channel);
405 // find VIP channel of a device
406 // return: >= 0 channel of device
411 uint channel;
426 for( channel = 0; channel < 4; ++channel ) {
429 if( !Radeon_VIPRead( di, channel, RADEON_VIP_VENDOR_DEVICE_ID, &cur_device_id, false )) {
430 SHOW_FLOW( 3, "No device found on channel %d", channel);
436 SHOW_FLOW( 3, "Device %08" B_PRIx32 " found on channel %d",
437 device_id, channel);
439 return channel;