The value stored in this field is a pointer to a command buffer, not an
ID. Avoid some confusion by reflecting that in the field's name.
Signed-off-by: Thierry Reding <treding@nvidia.com>
unsigned int num_relocs;
struct host1x_reloc *reloc;
unsigned int num_relocs;
struct host1x_reloc *reloc;
- struct host1x_bo *cmdbuf_id;
+ struct host1x_bo *cmdbuf;
unsigned int offset;
u32 words;
unsigned int offset;
u32 words;
if (fw->job->is_addr_reg(fw->dev, fw->class, reg)) {
if (!fw->num_relocs)
return -EINVAL;
if (fw->job->is_addr_reg(fw->dev, fw->class, reg)) {
if (!fw->num_relocs)
return -EINVAL;
- if (!check_reloc(fw->reloc, fw->cmdbuf_id,
+ if (!check_reloc(fw->reloc, fw->cmdbuf,
fw->offset))
return -EINVAL;
fw->reloc++;
fw->offset))
return -EINVAL;
fw->reloc++;
if (fw->job->is_addr_reg(fw->dev, fw->class, reg)) {
if (!fw->num_relocs)
return -EINVAL;
if (fw->job->is_addr_reg(fw->dev, fw->class, reg)) {
if (!fw->num_relocs)
return -EINVAL;
- if (!check_reloc(fw->reloc, fw->cmdbuf_id, fw->offset))
+ if (!check_reloc(fw->reloc, fw->cmdbuf, fw->offset))
return -EINVAL;
fw->reloc++;
fw->num_relocs--;
return -EINVAL;
fw->reloc++;
fw->num_relocs--;
if (is_addr_reg) {
if (!fw->num_relocs)
return -EINVAL;
if (is_addr_reg) {
if (!fw->num_relocs)
return -EINVAL;
- if (!check_reloc(fw->reloc, fw->cmdbuf_id, fw->offset))
+ if (!check_reloc(fw->reloc, fw->cmdbuf, fw->offset))
return -EINVAL;
fw->reloc++;
fw->num_relocs--;
return -EINVAL;
fw->reloc++;
fw->num_relocs--;
return 0;
fw->words = g->words;
return 0;
fw->words = g->words;
fw->offset = 0;
while (fw->words && !err) {
fw->offset = 0;
while (fw->words && !err) {