Lines Matching defs:offset
27 static bool fw_check_addr_valid(struct tegra_drm_firewall *fw, u32 offset)
34 if (offset >= m->iova && offset <= m->iova_end)
41 static int fw_check_reg(struct tegra_drm_firewall *fw, u32 offset)
55 offset);
66 static int fw_check_regs_seq(struct tegra_drm_firewall *fw, u32 offset,
72 if (fw_check_reg(fw, offset))
76 offset++;
82 static int fw_check_regs_mask(struct tegra_drm_firewall *fw, u32 offset,
89 if (fw_check_reg(fw, offset+bit))
96 static int fw_check_regs_imm(struct tegra_drm_firewall *fw, u32 offset)
104 offset);
161 u32 word, opcode, offset, count, mask, class;
171 offset = word >> 16 & 0xfff;
178 err = fw_check_regs_mask(&fw, offset, mask);
181 "illegal SETCLASS(offset=0x%x, mask=0x%x, class=0x%x) at word %u",
182 offset, mask, class, fw.pos-1);
185 offset = (word >> 16) & 0xfff;
187 err = fw_check_regs_seq(&fw, offset, count, true);
190 "illegal INCR(offset=0x%x, count=%u) in class 0x%x at word %u",
191 offset, count, fw.class, fw.pos-1);
194 offset = (word >> 16) & 0xfff;
196 err = fw_check_regs_seq(&fw, offset, count, false);
199 "illegal NONINCR(offset=0x%x, count=%u) in class 0x%x at word %u",
200 offset, count, fw.class, fw.pos-1);
203 offset = (word >> 16) & 0xfff;
205 err = fw_check_regs_mask(&fw, offset, mask);
208 "illegal MASK(offset=0x%x, mask=0x%x) in class 0x%x at word %u",
209 offset, mask, fw.class, fw.pos-1);
213 offset = (word >> 16) & 0xfff;
214 err = fw_check_regs_imm(&fw, offset);
217 "illegal IMM(offset=0x%x) in class 0x%x at word %u",
218 offset, fw.class, fw.pos-1);
228 offset = word & 0x3fffff;
229 err = fw_check_regs_seq(&fw, offset, payload, true);
232 "illegal INCR_W(offset=0x%x) in class 0x%x at word %u",
233 offset, fw.class, fw.pos-1);
239 offset = word & 0x3fffff;
240 err = fw_check_regs_seq(&fw, offset, payload, false);
243 "illegal NONINCR(offset=0x%x) in class 0x%x at word %u",
244 offset, fw.class, fw.pos-1);