Lines Matching refs:cs
68 extern int radeon_cs_begin(struct radeon_cs *cs,
72 extern int radeon_cs_end(struct radeon_cs *cs,
76 extern int radeon_cs_emit(struct radeon_cs *cs);
77 extern int radeon_cs_destroy(struct radeon_cs *cs);
78 extern int radeon_cs_erase(struct radeon_cs *cs);
79 extern int radeon_cs_need_flush(struct radeon_cs *cs);
80 extern void radeon_cs_print(struct radeon_cs *cs, FILE *file);
81 extern void radeon_cs_set_limit(struct radeon_cs *cs, uint32_t domain, uint32_t limit);
82 extern void radeon_cs_space_set_flush(struct radeon_cs *cs, void (*fn)(void *), void *data);
83 extern int radeon_cs_write_reloc(struct radeon_cs *cs,
88 extern uint32_t radeon_cs_get_id(struct radeon_cs *cs);
96 void radeon_cs_space_add_persistent_bo(struct radeon_cs *cs,
102 void radeon_cs_space_reset_bos(struct radeon_cs *cs);
105 int radeon_cs_space_check(struct radeon_cs *cs);
110 int radeon_cs_space_check_with_bo(struct radeon_cs *cs,
115 static inline void radeon_cs_write_dword(struct radeon_cs *cs, uint32_t dword)
117 cs->packets[cs->cdw++] = dword;
118 if (cs->section_ndw) {
119 cs->section_cdw++;
123 static inline void radeon_cs_write_qword(struct radeon_cs *cs, uint64_t qword)
125 memcpy(cs->packets + cs->cdw, &qword, sizeof(uint64_t));
126 cs->cdw += 2;
127 if (cs->section_ndw) {
128 cs->section_cdw += 2;
132 static inline void radeon_cs_write_table(struct radeon_cs *cs,
135 memcpy(cs->packets + cs->cdw, data, size * 4);
136 cs->cdw += size;
137 if (cs->section_ndw) {
138 cs->section_cdw += size;