drm_radeon_cmd_buffer_t * cmdbuf) 
drm_radeon_kcmd_buffer_t *cmdbuf) 
static int radeon_emit_packets(drm_radeon_private_t * dev_priv,			       drm_file_t * filp_priv,			       drm_radeon_cmd_header_t header,			       drm_radeon_cmd_buffer_t * cmdbuf){	int id = (int)header.packet.packet_id;	int sz, reg;	int *data = (int *)cmdbuf->buf;	RING_LOCALS;	if (id >= RADEON_MAX_STATE_PACKETS)		return DRM_ERR(EINVAL);	sz = packet[id].len;	reg = packet[id].start;	if (sz * sizeof(int) > cmdbuf->bufsz) {		DRM_ERROR("Packet size provided larger than data provided\n");		return DRM_ERR(EINVAL);	}	if (radeon_check_and_fixup_packets(dev_priv, filp_priv, id, data)) {		DRM_ERROR("Packet verification failed\n");		return DRM_ERR(EINVAL);	}	BEGIN_RING(sz + 1);	OUT_RING(CP_PACKET0(reg, (sz - 1)));	OUT_RING_TABLE(data, sz);	ADVANCE_RING();	cmdbuf->buf += sz * sizeof(int);	cmdbuf->bufsz -= sz * sizeof(int);	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/b3a83639895a422b25f72eec0a5d1d88c3ac4e9e/radeon_state.c/buggy/drivers/char/drm/radeon_state.c