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) in radeon_cs_write_dword() argument
117 cs->packets[cs->cdw++] = dword; in radeon_cs_write_dword()
118 if (cs->section_ndw) { in radeon_cs_write_dword()
119 cs->section_cdw++; in radeon_cs_write_dword()
123 static inline void radeon_cs_write_qword(struct radeon_cs *cs, uint64_t qword) in radeon_cs_write_qword() argument
125 memcpy(cs->packets + cs->cdw, &qword, sizeof(uint64_t)); in radeon_cs_write_qword()
126 cs->cdw += 2; in radeon_cs_write_qword()
127 if (cs->section_ndw) { in radeon_cs_write_qword()
128 cs->section_cdw += 2; in radeon_cs_write_qword()
132 static inline void radeon_cs_write_table(struct radeon_cs *cs, in radeon_cs_write_table() argument
135 memcpy(cs->packets + cs->cdw, data, size * 4); in radeon_cs_write_table()
136 cs->cdw += size; in radeon_cs_write_table()
137 if (cs->section_ndw) { in radeon_cs_write_table()
138 cs->section_cdw += size; in radeon_cs_write_table()