inst 472 arch/arm/include/asm/assembler.h 1: .inst 0xde02 inst 474 arch/arm/include/asm/assembler.h 1: .inst 0xe7f001f2 inst 13 arch/arm/include/asm/uaccess-asm.h .inst.w 0xf3af8014 inst 15 arch/arm/include/asm/uaccess-asm.h .inst 0xe320f014 inst 61 arch/arm/mach-omap2/cm.h void (*module_enable)(u8 mode, u8 part, u16 inst, u16 clkctrl_offs); inst 62 arch/arm/mach-omap2/cm.h void (*module_disable)(u8 part, u16 inst, u16 clkctrl_offs); inst 63 arch/arm/mach-omap2/cm.h u32 (*xlate_clkctrl)(u8 part, u16 inst, u16 clkctrl_offs); inst 72 arch/arm/mach-omap2/cm.h int omap_cm_module_enable(u8 mode, u8 part, u16 inst, u16 clkctrl_offs); inst 73 arch/arm/mach-omap2/cm.h int omap_cm_module_disable(u8 part, u16 inst, u16 clkctrl_offs); inst 74 arch/arm/mach-omap2/cm.h u32 omap_cm_xlate_clkctrl(u8 part, u16 inst, u16 clkctrl_offs); inst 28 arch/arm/mach-omap2/cm1_44xx.h #define OMAP44XX_CM1_REGADDR(inst, reg) \ inst 29 arch/arm/mach-omap2/cm1_44xx.h OMAP2_L4_IO_ADDRESS(OMAP4430_CM1_BASE + (inst) + (reg)) inst 24 arch/arm/mach-omap2/cm1_54xx.h #define OMAP54XX_CM_CORE_AON_REGADDR(inst, reg) \ inst 25 arch/arm/mach-omap2/cm1_54xx.h OMAP2_L4_IO_ADDRESS(OMAP54XX_CM_CORE_AON_BASE + (inst) + (reg)) inst 25 arch/arm/mach-omap2/cm1_7xx.h #define DRA7XX_CM_CORE_AON_REGADDR(inst, reg) \ inst 26 arch/arm/mach-omap2/cm1_7xx.h OMAP2_L4_IO_ADDRESS(DRA7XX_CM_CORE_AON_BASE + (inst) + (reg)) inst 28 arch/arm/mach-omap2/cm2_44xx.h #define OMAP44XX_CM2_REGADDR(inst, reg) \ inst 29 arch/arm/mach-omap2/cm2_44xx.h OMAP2_L4_IO_ADDRESS(OMAP4430_CM2_BASE + (inst) + (reg)) inst 24 arch/arm/mach-omap2/cm2_54xx.h #define OMAP54XX_CM_CORE_REGADDR(inst, reg) \ inst 25 arch/arm/mach-omap2/cm2_54xx.h OMAP2_L4_IO_ADDRESS(OMAP54XX_CM_CORE_BASE + (inst) + (reg)) inst 25 arch/arm/mach-omap2/cm2_7xx.h #define DRA7XX_CM_CORE_REGADDR(inst, reg) \ inst 26 arch/arm/mach-omap2/cm2_7xx.h OMAP2_L4_IO_ADDRESS(DRA7XX_CM_CORE_BASE + (inst) + (reg)) inst 51 arch/arm/mach-omap2/cm33xx.c static inline u32 am33xx_cm_read_reg(u16 inst, u16 idx) inst 53 arch/arm/mach-omap2/cm33xx.c return readl_relaxed(cm_base.va + inst + idx); inst 57 arch/arm/mach-omap2/cm33xx.c static inline void am33xx_cm_write_reg(u32 val, u16 inst, u16 idx) inst 59 arch/arm/mach-omap2/cm33xx.c writel_relaxed(val, cm_base.va + inst + idx); inst 63 arch/arm/mach-omap2/cm33xx.c static inline u32 am33xx_cm_rmw_reg_bits(u32 mask, u32 bits, s16 inst, s16 idx) inst 67 arch/arm/mach-omap2/cm33xx.c v = am33xx_cm_read_reg(inst, idx); inst 70 arch/arm/mach-omap2/cm33xx.c am33xx_cm_write_reg(v, inst, idx); inst 75 arch/arm/mach-omap2/cm33xx.c static inline u32 am33xx_cm_read_reg_bits(u16 inst, s16 idx, u32 mask) inst 79 arch/arm/mach-omap2/cm33xx.c v = am33xx_cm_read_reg(inst, idx); inst 94 arch/arm/mach-omap2/cm33xx.c static u32 _clkctrl_idlest(u16 inst, u16 clkctrl_offs) inst 96 arch/arm/mach-omap2/cm33xx.c u32 v = am33xx_cm_read_reg(inst, clkctrl_offs); inst 110 arch/arm/mach-omap2/cm33xx.c static bool _is_module_ready(u16 inst, u16 clkctrl_offs) inst 114 arch/arm/mach-omap2/cm33xx.c v = _clkctrl_idlest(inst, clkctrl_offs); inst 129 arch/arm/mach-omap2/cm33xx.c static void _clktrctrl_write(u8 c, u16 inst, u16 cdoffs) inst 133 arch/arm/mach-omap2/cm33xx.c v = am33xx_cm_read_reg(inst, cdoffs); inst 136 arch/arm/mach-omap2/cm33xx.c am33xx_cm_write_reg(v, inst, cdoffs); inst 149 arch/arm/mach-omap2/cm33xx.c static bool am33xx_cm_is_clkdm_in_hwsup(u16 inst, u16 cdoffs) inst 153 arch/arm/mach-omap2/cm33xx.c v = am33xx_cm_read_reg(inst, cdoffs); inst 168 arch/arm/mach-omap2/cm33xx.c static void am33xx_cm_clkdm_enable_hwsup(u16 inst, u16 cdoffs) inst 170 arch/arm/mach-omap2/cm33xx.c _clktrctrl_write(OMAP34XX_CLKSTCTRL_ENABLE_AUTO, inst, cdoffs); inst 182 arch/arm/mach-omap2/cm33xx.c static void am33xx_cm_clkdm_disable_hwsup(u16 inst, u16 cdoffs) inst 184 arch/arm/mach-omap2/cm33xx.c _clktrctrl_write(OMAP34XX_CLKSTCTRL_DISABLE_AUTO, inst, cdoffs); inst 195 arch/arm/mach-omap2/cm33xx.c static void am33xx_cm_clkdm_force_sleep(u16 inst, u16 cdoffs) inst 197 arch/arm/mach-omap2/cm33xx.c _clktrctrl_write(OMAP34XX_CLKSTCTRL_FORCE_SLEEP, inst, cdoffs); inst 208 arch/arm/mach-omap2/cm33xx.c static void am33xx_cm_clkdm_force_wakeup(u16 inst, u16 cdoffs) inst 210 arch/arm/mach-omap2/cm33xx.c _clktrctrl_write(OMAP34XX_CLKSTCTRL_FORCE_WAKEUP, inst, cdoffs); inst 229 arch/arm/mach-omap2/cm33xx.c static int am33xx_cm_wait_module_ready(u8 part, s16 inst, u16 clkctrl_offs, inst 234 arch/arm/mach-omap2/cm33xx.c omap_test_timeout(_is_module_ready(inst, clkctrl_offs), inst 252 arch/arm/mach-omap2/cm33xx.c static int am33xx_cm_wait_module_idle(u8 part, s16 inst, u16 clkctrl_offs, inst 257 arch/arm/mach-omap2/cm33xx.c omap_test_timeout((_clkctrl_idlest(inst, clkctrl_offs) == inst 273 arch/arm/mach-omap2/cm33xx.c static void am33xx_cm_module_enable(u8 mode, u8 part, u16 inst, inst 278 arch/arm/mach-omap2/cm33xx.c v = am33xx_cm_read_reg(inst, clkctrl_offs); inst 281 arch/arm/mach-omap2/cm33xx.c am33xx_cm_write_reg(v, inst, clkctrl_offs); inst 292 arch/arm/mach-omap2/cm33xx.c static void am33xx_cm_module_disable(u8 part, u16 inst, u16 clkctrl_offs) inst 296 arch/arm/mach-omap2/cm33xx.c v = am33xx_cm_read_reg(inst, clkctrl_offs); inst 298 arch/arm/mach-omap2/cm33xx.c am33xx_cm_write_reg(v, inst, clkctrl_offs); inst 347 arch/arm/mach-omap2/cm33xx.c static u32 am33xx_cm_xlate_clkctrl(u8 part, u16 inst, u16 offset) inst 349 arch/arm/mach-omap2/cm33xx.c return cm_base.pa + inst + offset; inst 27 arch/arm/mach-omap2/cm33xx.h #define AM33XX_CM_REGADDR(inst, reg) \ inst 28 arch/arm/mach-omap2/cm33xx.h AM33XX_L4_WK_IO_ADDRESS(AM33XX_CM_BASE + (inst) + (reg)) inst 144 arch/arm/mach-omap2/cm_common.c int omap_cm_module_enable(u8 mode, u8 part, u16 inst, u16 clkctrl_offs) inst 152 arch/arm/mach-omap2/cm_common.c cm_ll_data->module_enable(mode, part, inst, clkctrl_offs); inst 166 arch/arm/mach-omap2/cm_common.c int omap_cm_module_disable(u8 part, u16 inst, u16 clkctrl_offs) inst 174 arch/arm/mach-omap2/cm_common.c cm_ll_data->module_disable(part, inst, clkctrl_offs); inst 178 arch/arm/mach-omap2/cm_common.c u32 omap_cm_xlate_clkctrl(u8 part, u16 inst, u16 clkctrl_offs) inst 185 arch/arm/mach-omap2/cm_common.c return cm_ll_data->xlate_clkctrl(part, inst, clkctrl_offs); inst 74 arch/arm/mach-omap2/cminst44xx.c static u32 omap4_cminst_read_inst_reg(u8 part, u16 inst, u16 idx); inst 85 arch/arm/mach-omap2/cminst44xx.c static u32 _clkctrl_idlest(u8 part, u16 inst, u16 clkctrl_offs) inst 87 arch/arm/mach-omap2/cminst44xx.c u32 v = omap4_cminst_read_inst_reg(part, inst, clkctrl_offs); inst 102 arch/arm/mach-omap2/cminst44xx.c static bool _is_module_ready(u8 part, u16 inst, u16 clkctrl_offs) inst 106 arch/arm/mach-omap2/cminst44xx.c v = _clkctrl_idlest(part, inst, clkctrl_offs); inst 113 arch/arm/mach-omap2/cminst44xx.c static u32 omap4_cminst_read_inst_reg(u8 part, u16 inst, u16 idx) inst 118 arch/arm/mach-omap2/cminst44xx.c return readl_relaxed(_cm_bases[part].va + inst + idx); inst 122 arch/arm/mach-omap2/cminst44xx.c static void omap4_cminst_write_inst_reg(u32 val, u8 part, u16 inst, u16 idx) inst 127 arch/arm/mach-omap2/cminst44xx.c writel_relaxed(val, _cm_bases[part].va + inst + idx); inst 131 arch/arm/mach-omap2/cminst44xx.c static u32 omap4_cminst_rmw_inst_reg_bits(u32 mask, u32 bits, u8 part, u16 inst, inst 136 arch/arm/mach-omap2/cminst44xx.c v = omap4_cminst_read_inst_reg(part, inst, idx); inst 139 arch/arm/mach-omap2/cminst44xx.c omap4_cminst_write_inst_reg(v, part, inst, idx); inst 144 arch/arm/mach-omap2/cminst44xx.c static u32 omap4_cminst_set_inst_reg_bits(u32 bits, u8 part, u16 inst, s16 idx) inst 146 arch/arm/mach-omap2/cminst44xx.c return omap4_cminst_rmw_inst_reg_bits(bits, bits, part, inst, idx); inst 149 arch/arm/mach-omap2/cminst44xx.c static u32 omap4_cminst_clear_inst_reg_bits(u32 bits, u8 part, u16 inst, inst 152 arch/arm/mach-omap2/cminst44xx.c return omap4_cminst_rmw_inst_reg_bits(bits, 0x0, part, inst, idx); inst 155 arch/arm/mach-omap2/cminst44xx.c static u32 omap4_cminst_read_inst_reg_bits(u8 part, u16 inst, s16 idx, u32 mask) inst 159 arch/arm/mach-omap2/cminst44xx.c v = omap4_cminst_read_inst_reg(part, inst, idx); inst 180 arch/arm/mach-omap2/cminst44xx.c static void _clktrctrl_write(u8 c, u8 part, u16 inst, u16 cdoffs) inst 184 arch/arm/mach-omap2/cminst44xx.c v = omap4_cminst_read_inst_reg(part, inst, cdoffs + OMAP4_CM_CLKSTCTRL); inst 187 arch/arm/mach-omap2/cminst44xx.c omap4_cminst_write_inst_reg(v, part, inst, cdoffs + OMAP4_CM_CLKSTCTRL); inst 199 arch/arm/mach-omap2/cminst44xx.c static bool omap4_cminst_is_clkdm_in_hwsup(u8 part, u16 inst, u16 cdoffs) inst 203 arch/arm/mach-omap2/cminst44xx.c v = omap4_cminst_read_inst_reg(part, inst, cdoffs + OMAP4_CM_CLKSTCTRL); inst 219 arch/arm/mach-omap2/cminst44xx.c static void omap4_cminst_clkdm_enable_hwsup(u8 part, u16 inst, u16 cdoffs) inst 221 arch/arm/mach-omap2/cminst44xx.c _clktrctrl_write(OMAP34XX_CLKSTCTRL_ENABLE_AUTO, part, inst, cdoffs); inst 234 arch/arm/mach-omap2/cminst44xx.c static void omap4_cminst_clkdm_disable_hwsup(u8 part, u16 inst, u16 cdoffs) inst 236 arch/arm/mach-omap2/cminst44xx.c _clktrctrl_write(OMAP34XX_CLKSTCTRL_DISABLE_AUTO, part, inst, cdoffs); inst 248 arch/arm/mach-omap2/cminst44xx.c static void omap4_cminst_clkdm_force_wakeup(u8 part, u16 inst, u16 cdoffs) inst 250 arch/arm/mach-omap2/cminst44xx.c _clktrctrl_write(OMAP34XX_CLKSTCTRL_FORCE_WAKEUP, part, inst, cdoffs); inst 257 arch/arm/mach-omap2/cminst44xx.c static void omap4_cminst_clkdm_force_sleep(u8 part, u16 inst, u16 cdoffs) inst 259 arch/arm/mach-omap2/cminst44xx.c _clktrctrl_write(OMAP34XX_CLKSTCTRL_FORCE_SLEEP, part, inst, cdoffs); inst 274 arch/arm/mach-omap2/cminst44xx.c static int omap4_cminst_wait_module_ready(u8 part, s16 inst, u16 clkctrl_offs, inst 279 arch/arm/mach-omap2/cminst44xx.c omap_test_timeout(_is_module_ready(part, inst, clkctrl_offs), inst 297 arch/arm/mach-omap2/cminst44xx.c static int omap4_cminst_wait_module_idle(u8 part, s16 inst, u16 clkctrl_offs, inst 302 arch/arm/mach-omap2/cminst44xx.c omap_test_timeout((_clkctrl_idlest(part, inst, clkctrl_offs) == inst 318 arch/arm/mach-omap2/cminst44xx.c static void omap4_cminst_module_enable(u8 mode, u8 part, u16 inst, inst 323 arch/arm/mach-omap2/cminst44xx.c v = omap4_cminst_read_inst_reg(part, inst, clkctrl_offs); inst 326 arch/arm/mach-omap2/cminst44xx.c omap4_cminst_write_inst_reg(v, part, inst, clkctrl_offs); inst 337 arch/arm/mach-omap2/cminst44xx.c static void omap4_cminst_module_disable(u8 part, u16 inst, u16 clkctrl_offs) inst 341 arch/arm/mach-omap2/cminst44xx.c v = omap4_cminst_read_inst_reg(part, inst, clkctrl_offs); inst 343 arch/arm/mach-omap2/cminst44xx.c omap4_cminst_write_inst_reg(v, part, inst, clkctrl_offs); inst 476 arch/arm/mach-omap2/cminst44xx.c static u32 omap4_cminst_xlate_clkctrl(u8 part, u16 inst, u16 offset) inst 478 arch/arm/mach-omap2/cminst44xx.c return _cm_bases[part].pa + inst + offset; inst 28 arch/arm/mach-omap2/prcm_mpu44xx.c u32 omap4_prcm_mpu_read_inst_reg(s16 inst, u16 reg) inst 30 arch/arm/mach-omap2/prcm_mpu44xx.c return readl_relaxed(OMAP44XX_PRCM_MPU_REGADDR(inst, reg)); inst 33 arch/arm/mach-omap2/prcm_mpu44xx.c void omap4_prcm_mpu_write_inst_reg(u32 val, s16 inst, u16 reg) inst 35 arch/arm/mach-omap2/prcm_mpu44xx.c writel_relaxed(val, OMAP44XX_PRCM_MPU_REGADDR(inst, reg)); inst 38 arch/arm/mach-omap2/prcm_mpu44xx.c u32 omap4_prcm_mpu_rmw_inst_reg_bits(u32 mask, u32 bits, s16 inst, s16 reg) inst 42 arch/arm/mach-omap2/prcm_mpu44xx.c v = omap4_prcm_mpu_read_inst_reg(inst, reg); inst 45 arch/arm/mach-omap2/prcm_mpu44xx.c omap4_prcm_mpu_write_inst_reg(v, inst, reg); inst 29 arch/arm/mach-omap2/prcm_mpu44xx.h #define OMAP44XX_PRCM_MPU_REGADDR(inst, reg) \ inst 30 arch/arm/mach-omap2/prcm_mpu44xx.h OMAP2_L4_IO_ADDRESS(OMAP4430_PRCM_MPU_BASE + (inst) + (reg)) inst 26 arch/arm/mach-omap2/prcm_mpu54xx.h #define OMAP54XX_PRCM_MPU_REGADDR(inst, reg) \ inst 27 arch/arm/mach-omap2/prcm_mpu54xx.h OMAP2_L4_IO_ADDRESS(OMAP54XX_PRCM_MPU_BASE + (inst) + (reg)) inst 26 arch/arm/mach-omap2/prcm_mpu7xx.h #define DRA7XX_PRCM_MPU_REGADDR(inst, reg) \ inst 27 arch/arm/mach-omap2/prcm_mpu7xx.h OMAP2_L4_IO_ADDRESS(DRA7XX_PRCM_MPU_BASE + (inst) + (reg)) inst 27 arch/arm/mach-omap2/prcm_mpu_44xx_54xx.h extern u32 omap4_prcm_mpu_read_inst_reg(s16 inst, u16 idx); inst 28 arch/arm/mach-omap2/prcm_mpu_44xx_54xx.h extern void omap4_prcm_mpu_write_inst_reg(u32 val, s16 inst, u16 idx); inst 29 arch/arm/mach-omap2/prcm_mpu_44xx_54xx.h extern u32 omap4_prcm_mpu_rmw_inst_reg_bits(u32 mask, u32 bits, s16 inst, inst 138 arch/arm/mach-omap2/prm.h bool (*was_any_context_lost_old)(u8 part, s16 inst, u16 idx); inst 139 arch/arm/mach-omap2/prm.h void (*clear_context_loss_flags_old)(u8 part, s16 inst, u16 idx); inst 160 arch/arm/mach-omap2/prm.h extern bool prm_was_any_context_lost_old(u8 part, s16 inst, u16 idx); inst 161 arch/arm/mach-omap2/prm.h extern void prm_clear_context_loss_flags_old(u8 part, s16 inst, u16 idx); inst 31 arch/arm/mach-omap2/prm33xx.c static u32 am33xx_prm_read_reg(s16 inst, u16 idx) inst 33 arch/arm/mach-omap2/prm33xx.c return readl_relaxed(prm_base.va + inst + idx); inst 37 arch/arm/mach-omap2/prm33xx.c static void am33xx_prm_write_reg(u32 val, s16 inst, u16 idx) inst 39 arch/arm/mach-omap2/prm33xx.c writel_relaxed(val, prm_base.va + inst + idx); inst 43 arch/arm/mach-omap2/prm33xx.c static u32 am33xx_prm_rmw_reg_bits(u32 mask, u32 bits, s16 inst, s16 idx) inst 47 arch/arm/mach-omap2/prm33xx.c v = am33xx_prm_read_reg(inst, idx); inst 50 arch/arm/mach-omap2/prm33xx.c am33xx_prm_write_reg(v, inst, idx); inst 67 arch/arm/mach-omap2/prm33xx.c static int am33xx_prm_is_hardreset_asserted(u8 shift, u8 part, s16 inst, inst 72 arch/arm/mach-omap2/prm33xx.c v = am33xx_prm_read_reg(inst, rstctrl_offs); inst 93 arch/arm/mach-omap2/prm33xx.c static int am33xx_prm_assert_hardreset(u8 shift, u8 part, s16 inst, inst 98 arch/arm/mach-omap2/prm33xx.c am33xx_prm_rmw_reg_bits(mask, mask, inst, rstctrl_offs); inst 123 arch/arm/mach-omap2/prm33xx.c s16 inst, u16 rstctrl_offs, inst 130 arch/arm/mach-omap2/prm33xx.c if (am33xx_prm_is_hardreset_asserted(shift, 0, inst, rstctrl_offs) == 0) inst 134 arch/arm/mach-omap2/prm33xx.c am33xx_prm_rmw_reg_bits(0xffffffff, mask, inst, rstst_offs); inst 139 arch/arm/mach-omap2/prm33xx.c am33xx_prm_rmw_reg_bits(mask, 0, inst, rstctrl_offs); inst 142 arch/arm/mach-omap2/prm33xx.c omap_test_timeout(am33xx_prm_is_hardreset_asserted(st_shift, 0, inst, inst 24 arch/arm/mach-omap2/prm33xx.h #define AM33XX_PRM_REGADDR(inst, reg) \ inst 25 arch/arm/mach-omap2/prm33xx.h AM33XX_L4_WK_IO_ADDRESS(AM33XX_PRM_BASE + (inst) + (reg)) inst 96 arch/arm/mach-omap2/prm44xx.c static u32 omap4_prm_read_inst_reg(s16 inst, u16 reg) inst 98 arch/arm/mach-omap2/prm44xx.c return readl_relaxed(prm_base.va + inst + reg); inst 102 arch/arm/mach-omap2/prm44xx.c static void omap4_prm_write_inst_reg(u32 val, s16 inst, u16 reg) inst 104 arch/arm/mach-omap2/prm44xx.c writel_relaxed(val, prm_base.va + inst + reg); inst 108 arch/arm/mach-omap2/prm44xx.c static u32 omap4_prm_rmw_inst_reg_bits(u32 mask, u32 bits, s16 inst, s16 reg) inst 112 arch/arm/mach-omap2/prm44xx.c v = omap4_prm_read_inst_reg(inst, reg); inst 115 arch/arm/mach-omap2/prm44xx.c omap4_prm_write_inst_reg(v, inst, reg); inst 170 arch/arm/mach-omap2/prm44xx.c s32 inst = omap4_prmst_get_prm_dev_inst(); inst 172 arch/arm/mach-omap2/prm44xx.c if (inst == PRM_INSTANCE_UNKNOWN) inst 176 arch/arm/mach-omap2/prm44xx.c inst, offset); inst 181 arch/arm/mach-omap2/prm44xx.c s32 inst = omap4_prmst_get_prm_dev_inst(); inst 183 arch/arm/mach-omap2/prm44xx.c if (inst == PRM_INSTANCE_UNKNOWN) inst 187 arch/arm/mach-omap2/prm44xx.c inst, offset); inst 192 arch/arm/mach-omap2/prm44xx.c s32 inst = omap4_prmst_get_prm_dev_inst(); inst 194 arch/arm/mach-omap2/prm44xx.c if (inst == PRM_INSTANCE_UNKNOWN) inst 199 arch/arm/mach-omap2/prm44xx.c inst, inst 308 arch/arm/mach-omap2/prm44xx.c s32 inst = omap4_prmst_get_prm_dev_inst(); inst 310 arch/arm/mach-omap2/prm44xx.c if (inst == PRM_INSTANCE_UNKNOWN) inst 316 arch/arm/mach-omap2/prm44xx.c inst, inst 319 arch/arm/mach-omap2/prm44xx.c (((omap4_prm_read_inst_reg(inst, inst 329 arch/arm/mach-omap2/prm44xx.c inst, inst 332 arch/arm/mach-omap2/prm44xx.c (((omap4_prm_read_inst_reg(inst, inst 353 arch/arm/mach-omap2/prm44xx.c s32 inst = omap4_prmst_get_prm_dev_inst(); inst 355 arch/arm/mach-omap2/prm44xx.c if (inst == PRM_INSTANCE_UNKNOWN) inst 360 arch/arm/mach-omap2/prm44xx.c inst, inst 375 arch/arm/mach-omap2/prm44xx.c s32 inst = omap4_prmst_get_prm_dev_inst(); inst 377 arch/arm/mach-omap2/prm44xx.c if (inst == PRM_INSTANCE_UNKNOWN) inst 381 arch/arm/mach-omap2/prm44xx.c v = omap4_prm_read_inst_reg(inst, inst 404 arch/arm/mach-omap2/prm44xx.c static bool omap44xx_prm_was_any_context_lost_old(u8 part, s16 inst, u16 idx) inst 406 arch/arm/mach-omap2/prm44xx.c return (omap4_prminst_read_inst_reg(part, inst, idx)) ? 1 : 0; inst 419 arch/arm/mach-omap2/prm44xx.c static void omap44xx_prm_clear_context_loss_flags_old(u8 part, s16 inst, inst 422 arch/arm/mach-omap2/prm44xx.c omap4_prminst_write_inst_reg(0xffffffff, part, inst, idx); inst 30 arch/arm/mach-omap2/prm44xx.h #define OMAP44XX_PRM_REGADDR(inst, reg) \ inst 31 arch/arm/mach-omap2/prm44xx.h OMAP2_L4_IO_ADDRESS(OMAP4430_PRM_BASE + (inst) + (reg)) inst 26 arch/arm/mach-omap2/prm54xx.h #define OMAP54XX_PRM_REGADDR(inst, reg) \ inst 27 arch/arm/mach-omap2/prm54xx.h OMAP2_L4_IO_ADDRESS(OMAP54XX_PRM_BASE + (inst) + (reg)) inst 28 arch/arm/mach-omap2/prm7xx.h #define DRA7XX_PRM_REGADDR(inst, reg) \ inst 29 arch/arm/mach-omap2/prm7xx.h OMAP2_L4_IO_ADDRESS(DRA7XX_PRM_BASE + (inst) + (reg)) inst 394 arch/arm/mach-omap2/prm_common.c bool prm_was_any_context_lost_old(u8 part, s16 inst, u16 idx) inst 399 arch/arm/mach-omap2/prm_common.c ret = prm_ll_data->was_any_context_lost_old(part, inst, idx); inst 418 arch/arm/mach-omap2/prm_common.c void prm_clear_context_loss_flags_old(u8 part, s16 inst, u16 idx) inst 421 arch/arm/mach-omap2/prm_common.c prm_ll_data->clear_context_loss_flags_old(part, inst, idx); inst 58 arch/arm/mach-omap2/prminst44xx.c u32 omap4_prminst_read_inst_reg(u8 part, s16 inst, u16 idx) inst 63 arch/arm/mach-omap2/prminst44xx.c return readl_relaxed(_prm_bases[part].va + inst + idx); inst 67 arch/arm/mach-omap2/prminst44xx.c void omap4_prminst_write_inst_reg(u32 val, u8 part, s16 inst, u16 idx) inst 72 arch/arm/mach-omap2/prminst44xx.c writel_relaxed(val, _prm_bases[part].va + inst + idx); inst 76 arch/arm/mach-omap2/prminst44xx.c u32 omap4_prminst_rmw_inst_reg_bits(u32 mask, u32 bits, u8 part, s16 inst, inst 81 arch/arm/mach-omap2/prminst44xx.c v = omap4_prminst_read_inst_reg(part, inst, idx); inst 84 arch/arm/mach-omap2/prminst44xx.c omap4_prminst_write_inst_reg(v, part, inst, idx); inst 99 arch/arm/mach-omap2/prminst44xx.c int omap4_prminst_is_hardreset_asserted(u8 shift, u8 part, s16 inst, inst 104 arch/arm/mach-omap2/prminst44xx.c v = omap4_prminst_read_inst_reg(part, inst, rstctrl_offs); inst 123 arch/arm/mach-omap2/prminst44xx.c int omap4_prminst_assert_hardreset(u8 shift, u8 part, s16 inst, inst 128 arch/arm/mach-omap2/prminst44xx.c omap4_prminst_rmw_inst_reg_bits(mask, mask, part, inst, rstctrl_offs); inst 152 arch/arm/mach-omap2/prminst44xx.c int omap4_prminst_deassert_hardreset(u8 shift, u8 st_shift, u8 part, s16 inst, inst 160 arch/arm/mach-omap2/prminst44xx.c if (omap4_prminst_is_hardreset_asserted(shift, part, inst, inst 165 arch/arm/mach-omap2/prminst44xx.c omap4_prminst_rmw_inst_reg_bits(0xffffffff, st_mask, part, inst, inst 168 arch/arm/mach-omap2/prminst44xx.c omap4_prminst_rmw_inst_reg_bits(mask, 0, part, inst, rstctrl_offs); inst 171 arch/arm/mach-omap2/prminst44xx.c inst, rstst_offs), inst 181 arch/arm/mach-omap2/prminst44xx.c s32 inst = omap4_prmst_get_prm_dev_inst(); inst 183 arch/arm/mach-omap2/prminst44xx.c if (inst == PRM_INSTANCE_UNKNOWN) inst 186 arch/arm/mach-omap2/prminst44xx.c v = omap4_prminst_read_inst_reg(OMAP4430_PRM_PARTITION, inst, inst 190 arch/arm/mach-omap2/prminst44xx.c inst, OMAP4_PRM_RSTCTRL_OFFSET); inst 194 arch/arm/mach-omap2/prminst44xx.c inst, OMAP4_PRM_RSTCTRL_OFFSET); inst 20 arch/arm/mach-omap2/prminst44xx.h extern u32 omap4_prminst_read_inst_reg(u8 part, s16 inst, u16 idx); inst 21 arch/arm/mach-omap2/prminst44xx.h extern void omap4_prminst_write_inst_reg(u32 val, u8 part, s16 inst, u16 idx); inst 23 arch/arm/mach-omap2/prminst44xx.h s16 inst, u16 idx); inst 27 arch/arm/mach-omap2/prminst44xx.h extern int omap4_prminst_is_hardreset_asserted(u8 shift, u8 part, s16 inst, inst 29 arch/arm/mach-omap2/prminst44xx.h extern int omap4_prminst_assert_hardreset(u8 shift, u8 part, s16 inst, inst 32 arch/arm/mach-omap2/prminst44xx.h s16 inst, u16 rstctrl_offs, inst 769 arch/arm/mm/alignment.c static int alignment_get_arm(struct pt_regs *regs, u32 *ip, u32 *inst) inst 779 arch/arm/mm/alignment.c *inst = __mem_to_opcode_arm(instr); inst 784 arch/arm/mm/alignment.c static int alignment_get_thumb(struct pt_regs *regs, u16 *ip, u16 *inst) inst 794 arch/arm/mm/alignment.c *inst = __mem_to_opcode_thumb16(instr); inst 219 arch/arm/net/bpf_jit_32.c static inline void _emit(int cond, u32 inst, struct jit_ctx *ctx) inst 221 arch/arm/net/bpf_jit_32.c inst |= (cond << 28); inst 222 arch/arm/net/bpf_jit_32.c inst = __opcode_to_mem_arm(inst); inst 225 arch/arm/net/bpf_jit_32.c ctx->target[ctx->idx] = inst; inst 233 arch/arm/net/bpf_jit_32.c static inline void emit(u32 inst, struct jit_ctx *ctx) inst 235 arch/arm/net/bpf_jit_32.c _emit(ARM_COND_AL, inst, ctx); inst 163 arch/arm/net/bpf_jit_32.h #define _AL3_SR(inst) (inst | (1 << 4)) inst 1127 arch/arm/vfp/vfpdouble.c u32 vfp_double_cpdo(u32 inst, u32 fpscr) inst 1129 arch/arm/vfp/vfpdouble.c u32 op = inst & FOP_MASK; inst 1132 arch/arm/vfp/vfpdouble.c unsigned int dn = vfp_get_dn(inst); inst 1139 arch/arm/vfp/vfpdouble.c fop = (op == FOP_EXT) ? &fops_ext[FEXT_TO_IDX(inst)] : &fops[FOP_TO_IDX(op)]; inst 1146 arch/arm/vfp/vfpdouble.c dest = vfp_get_sd(inst); inst 1148 arch/arm/vfp/vfpdouble.c dest = vfp_get_dd(inst); inst 1154 arch/arm/vfp/vfpdouble.c dm = vfp_get_sm(inst); inst 1156 arch/arm/vfp/vfpdouble.c dm = vfp_get_dm(inst); inst 10 arch/arm/vfp/vfpinstr.h #define INST_CPRTDO(inst) (((inst) & 0x0f000000) == 0x0e000000) inst 11 arch/arm/vfp/vfpinstr.h #define INST_CPRT(inst) ((inst) & (1 << 4)) inst 12 arch/arm/vfp/vfpinstr.h #define INST_CPRT_L(inst) ((inst) & (1 << 20)) inst 13 arch/arm/vfp/vfpinstr.h #define INST_CPRT_Rd(inst) (((inst) & (15 << 12)) >> 12) inst 14 arch/arm/vfp/vfpinstr.h #define INST_CPRT_OP(inst) (((inst) >> 21) & 7) inst 15 arch/arm/vfp/vfpinstr.h #define INST_CPNUM(inst) ((inst) & 0xf00) inst 30 arch/arm/vfp/vfpinstr.h #define FOP_TO_IDX(inst) ((inst & 0x00b00000) >> 20 | (inst & (1 << 6)) >> 4) inst 49 arch/arm/vfp/vfpinstr.h #define FEXT_TO_IDX(inst) ((inst & 0x000f0000) >> 15 | (inst & (1 << 7)) >> 7) inst 51 arch/arm/vfp/vfpinstr.h #define vfp_get_sd(inst) ((inst & 0x0000f000) >> 11 | (inst & (1 << 22)) >> 22) inst 52 arch/arm/vfp/vfpinstr.h #define vfp_get_dd(inst) ((inst & 0x0000f000) >> 12 | (inst & (1 << 22)) >> 18) inst 53 arch/arm/vfp/vfpinstr.h #define vfp_get_sm(inst) ((inst & 0x0000000f) << 1 | (inst & (1 << 5)) >> 5) inst 54 arch/arm/vfp/vfpinstr.h #define vfp_get_dm(inst) ((inst & 0x0000000f) | (inst & (1 << 5)) >> 1) inst 55 arch/arm/vfp/vfpinstr.h #define vfp_get_sn(inst) ((inst & 0x000f0000) >> 15 | (inst & (1 << 7)) >> 7) inst 56 arch/arm/vfp/vfpinstr.h #define vfp_get_dn(inst) ((inst & 0x000f0000) >> 16 | (inst & (1 << 7)) >> 3) inst 58 arch/arm/vfp/vfpinstr.h #define vfp_single(inst) (((inst) & 0x0000f00) == 0xa00) inst 82 arch/arm/vfp/vfpinstr.h u32 vfp_single_cpdo(u32 inst, u32 fpscr); inst 83 arch/arm/vfp/vfpinstr.h u32 vfp_single_cprt(u32 inst, u32 fpscr, struct pt_regs *regs); inst 85 arch/arm/vfp/vfpinstr.h u32 vfp_double_cpdo(u32 inst, u32 fpscr); inst 228 arch/arm/vfp/vfpmodule.c static void vfp_panic(char *reason, u32 inst) inst 234 arch/arm/vfp/vfpmodule.c fmrx(FPEXC), fmrx(FPSCR), inst); inst 243 arch/arm/vfp/vfpmodule.c static void vfp_raise_exceptions(u32 exceptions, u32 inst, u32 fpscr, struct pt_regs *regs) inst 250 arch/arm/vfp/vfpmodule.c vfp_panic("unhandled bounce", inst); inst 287 arch/arm/vfp/vfpmodule.c static u32 vfp_emulate_instruction(u32 inst, u32 fpscr, struct pt_regs *regs) inst 291 arch/arm/vfp/vfpmodule.c pr_debug("VFP: emulate: INST=0x%08x SCR=0x%08x\n", inst, fpscr); inst 293 arch/arm/vfp/vfpmodule.c if (INST_CPRTDO(inst)) { inst 294 arch/arm/vfp/vfpmodule.c if (!INST_CPRT(inst)) { inst 298 arch/arm/vfp/vfpmodule.c if (vfp_single(inst)) { inst 299 arch/arm/vfp/vfpmodule.c exceptions = vfp_single_cpdo(inst, fpscr); inst 301 arch/arm/vfp/vfpmodule.c exceptions = vfp_double_cpdo(inst, fpscr); inst 1172 arch/arm/vfp/vfpsingle.c u32 vfp_single_cpdo(u32 inst, u32 fpscr) inst 1174 arch/arm/vfp/vfpsingle.c u32 op = inst & FOP_MASK; inst 1177 arch/arm/vfp/vfpsingle.c unsigned int sn = vfp_get_sn(inst); inst 1178 arch/arm/vfp/vfpsingle.c unsigned int sm = vfp_get_sm(inst); inst 1184 arch/arm/vfp/vfpsingle.c fop = (op == FOP_EXT) ? &fops_ext[FEXT_TO_IDX(inst)] : &fops[FOP_TO_IDX(op)]; inst 1193 arch/arm/vfp/vfpsingle.c dest = vfp_get_dd(inst); inst 1195 arch/arm/vfp/vfpsingle.c dest = vfp_get_sd(inst); inst 263 arch/arm64/include/asm/alternative.h .macro uao_user_alternative l, inst, alt_inst, reg, addr, post_inc inst 281 arch/arm64/include/asm/alternative.h .macro uao_user_alternative l, inst, alt_inst, reg, addr, post_inc inst 101 arch/arm64/include/asm/fpsimdmacros.h .inst 0xe5804000 \ inst 113 arch/arm64/include/asm/fpsimdmacros.h .inst 0x85804000 \ inst 125 arch/arm64/include/asm/fpsimdmacros.h .inst 0xe5800000 \ inst 137 arch/arm64/include/asm/fpsimdmacros.h .inst 0x85800000 \ inst 148 arch/arm64/include/asm/fpsimdmacros.h .inst 0x04bf5000 \ inst 156 arch/arm64/include/asm/fpsimdmacros.h .inst 0x2519f000 \ inst 163 arch/arm64/include/asm/fpsimdmacros.h .inst 0x25289000 \ inst 54 arch/arm64/include/asm/sysreg.h #define __emit_inst(x) .inst(x) inst 58 arch/h8300/include/asm/processor.h unsigned short inst; inst 69 arch/h8300/include/asm/processor.h .inst = 0 \ inst 21 arch/h8300/kernel/ptrace_h.c *(child->thread.breakinfo.addr) = child->thread.breakinfo.inst; inst 165 arch/h8300/kernel/ptrace_h.c unsigned char inst) inst 198 arch/h8300/kernel/ptrace_h.c if (inst == 0x55 || isbranch(child, inst & 0x0f)) inst 203 arch/h8300/kernel/ptrace_h.c if (inst == 0x5c || isbranch(child, (*fetch_p & 0xf0) >> 4)) inst 217 arch/h8300/kernel/ptrace_h.c unsigned char inst; inst 222 arch/h8300/kernel/ptrace_h.c inst = *fetch_p++; inst 224 arch/h8300/kernel/ptrace_h.c if ((inst & op->bitmask) == op->bitpattern) { inst 228 arch/h8300/kernel/ptrace_h.c inst = *fetch_p++; inst 230 arch/h8300/kernel/ptrace_h.c return decode(child, op, fetch_p, pc, inst); inst 245 arch/h8300/kernel/ptrace_h.c child->thread.breakinfo.inst = *next; inst 48 arch/microblaze/mm/fault.c unsigned int inst; inst 50 arch/microblaze/mm/fault.c if (get_user(inst, (unsigned int __user *)regs->pc)) inst 53 arch/microblaze/mm/fault.c if (((inst >> 21) & 0x1f) != 1) inst 56 arch/microblaze/mm/fault.c if ((inst & 0xd0000000) == 0xd0000000) inst 86 arch/mips/include/asm/branch.h union mips16e_instruction *inst) inst 89 arch/mips/include/asm/branch.h if (inst->ri.opcode == MIPS16e_extend_op) { inst 1090 arch/mips/include/asm/kvm_host.h enum emulation_result kvm_mips_emulate_cache(union mips_instruction inst, inst 1095 arch/mips/include/asm/kvm_host.h enum emulation_result kvm_mips_emulate_CP0(union mips_instruction inst, inst 1100 arch/mips/include/asm/kvm_host.h enum emulation_result kvm_mips_emulate_store(union mips_instruction inst, inst 1104 arch/mips/include/asm/kvm_host.h enum emulation_result kvm_mips_emulate_load(union mips_instruction inst, inst 1120 arch/mips/include/asm/kvm_host.h union mips_instruction inst); inst 1124 arch/mips/include/asm/kvm_host.h extern int kvm_mips_trans_cache_index(union mips_instruction inst, inst 1126 arch/mips/include/asm/kvm_host.h extern int kvm_mips_trans_cache_va(union mips_instruction inst, u32 *opc, inst 1128 arch/mips/include/asm/kvm_host.h extern int kvm_mips_trans_mfc0(union mips_instruction inst, u32 *opc, inst 1130 arch/mips/include/asm/kvm_host.h extern int kvm_mips_trans_mtc0(union mips_instruction inst, u32 *opc, inst 78 arch/mips/include/asm/mips-r2-to-r6-emul.h int (*func)(struct pt_regs *regs, u32 inst); inst 87 arch/mips/include/asm/mips-r2-to-r6-emul.h static inline int mipsr2_decoder(struct pt_regs *regs, u32 inst, inst 95 arch/mips/include/asm/mips-r2-to-r6-emul.h extern int mipsr2_decoder(struct pt_regs *regs, u32 inst, inst 101 arch/mips/include/asm/netlogic/xlp-hal/pcibus.h #define nlm_get_pcie_base(node, inst) nlm_pcicfg_base(cpu_is_xlp9xx() ? \ inst 102 arch/mips/include/asm/netlogic/xlp-hal/pcibus.h XLP9XX_IO_PCIE_OFFSET(node, inst) : XLP_IO_PCIE_OFFSET(node, inst)) inst 96 arch/mips/include/asm/netlogic/xlp-hal/uart.h #define nlm_get_uart_pcibase(node, inst) \ inst 98 arch/mips/include/asm/netlogic/xlp-hal/uart.h XLP_IO_UART_OFFSET(node, inst)) inst 99 arch/mips/include/asm/netlogic/xlp-hal/uart.h #define nlm_get_uart_regbase(node, inst) \ inst 100 arch/mips/include/asm/netlogic/xlp-hal/uart.h (nlm_get_uart_pcibase(node, inst) + XLP_IO_PCI_HDRSZ) inst 29 arch/mips/kernel/branch.c unsigned short inst; inst 33 arch/mips/kernel/branch.c if (__get_user(inst, (u16 __user *) msk_isa16_mode(epc))) { inst 41 arch/mips/kernel/branch.c inst_mips16e.full = inst; inst 46 arch/mips/kernel/branch.c } else if (mm_insn_16bit(inst)) inst 321 arch/mips/kernel/branch.c union mips16e_instruction inst; inst 330 arch/mips/kernel/branch.c if (__get_user(inst.full, addr)) { inst 335 arch/mips/kernel/branch.c switch (inst.ri.opcode) { inst 349 arch/mips/kernel/branch.c fullinst = ((unsigned)inst.full << 16) | inst2; inst 363 arch/mips/kernel/branch.c if (!inst.jal.x) inst 372 arch/mips/kernel/branch.c if (inst.rr.func == MIPS16e_jr_func) { inst 374 arch/mips/kernel/branch.c if (inst.rr.ra) inst 378 arch/mips/kernel/branch.c regs->regs[reg16to32[inst.rr.rx]]; inst 380 arch/mips/kernel/branch.c if (inst.rr.l) { inst 381 arch/mips/kernel/branch.c if (inst.rr.nd) inst 885 arch/mips/kernel/mips-r2-to-r6-emul.c static inline int mipsr2_find_op_func(struct pt_regs *regs, u32 inst, inst 892 arch/mips/kernel/mips-r2-to-r6-emul.c if ((inst & p->mask) == p->code) { inst 893 arch/mips/kernel/mips-r2-to-r6-emul.c err = (p->func)(regs, inst); inst 906 arch/mips/kernel/mips-r2-to-r6-emul.c int mipsr2_decoder(struct pt_regs *regs, u32 inst, unsigned long *fcr31) inst 925 arch/mips/kernel/mips-r2-to-r6-emul.c inst, epc, pass); inst 927 arch/mips/kernel/mips-r2-to-r6-emul.c switch (MIPSInst_OPCODE(inst)) { inst 929 arch/mips/kernel/mips-r2-to-r6-emul.c err = mipsr2_find_op_func(regs, inst, spec_op_table); inst 937 arch/mips/kernel/mips-r2-to-r6-emul.c err = mipsr2_find_op_func(regs, inst, spec2_op_table); inst 940 arch/mips/kernel/mips-r2-to-r6-emul.c rt = MIPSInst_RT(inst); inst 941 arch/mips/kernel/mips-r2-to-r6-emul.c rs = MIPSInst_RS(inst); inst 944 arch/mips/kernel/mips-r2-to-r6-emul.c if ((long)regs->regs[rs] >= MIPSInst_SIMM(inst)) inst 951 arch/mips/kernel/mips-r2-to-r6-emul.c if (regs->regs[rs] >= MIPSInst_UIMM(inst)) inst 958 arch/mips/kernel/mips-r2-to-r6-emul.c if ((long)regs->regs[rs] < MIPSInst_SIMM(inst)) inst 965 arch/mips/kernel/mips-r2-to-r6-emul.c if (regs->regs[rs] < MIPSInst_UIMM(inst)) inst 972 arch/mips/kernel/mips-r2-to-r6-emul.c if (regs->regs[rs] == MIPSInst_SIMM(inst)) inst 979 arch/mips/kernel/mips-r2-to-r6-emul.c if (regs->regs[rs] != MIPSInst_SIMM(inst)) inst 1108 arch/mips/kernel/mips-r2-to-r6-emul.c if (MIPSInst_RT(inst)) { inst 1137 arch/mips/kernel/mips-r2-to-r6-emul.c switch (MIPSInst_OPCODE(inst)) { inst 1206 arch/mips/kernel/mips-r2-to-r6-emul.c rt = regs->regs[MIPSInst_RT(inst)]; inst 1207 arch/mips/kernel/mips-r2-to-r6-emul.c vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); inst 1271 arch/mips/kernel/mips-r2-to-r6-emul.c if (MIPSInst_RT(inst) && !err) inst 1272 arch/mips/kernel/mips-r2-to-r6-emul.c regs->regs[MIPSInst_RT(inst)] = rt; inst 1279 arch/mips/kernel/mips-r2-to-r6-emul.c rt = regs->regs[MIPSInst_RT(inst)]; inst 1280 arch/mips/kernel/mips-r2-to-r6-emul.c vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); inst 1345 arch/mips/kernel/mips-r2-to-r6-emul.c if (MIPSInst_RT(inst) && !err) inst 1346 arch/mips/kernel/mips-r2-to-r6-emul.c regs->regs[MIPSInst_RT(inst)] = rt; inst 1353 arch/mips/kernel/mips-r2-to-r6-emul.c rt = regs->regs[MIPSInst_RT(inst)]; inst 1354 arch/mips/kernel/mips-r2-to-r6-emul.c vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); inst 1423 arch/mips/kernel/mips-r2-to-r6-emul.c rt = regs->regs[MIPSInst_RT(inst)]; inst 1424 arch/mips/kernel/mips-r2-to-r6-emul.c vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); inst 1498 arch/mips/kernel/mips-r2-to-r6-emul.c rt = regs->regs[MIPSInst_RT(inst)]; inst 1499 arch/mips/kernel/mips-r2-to-r6-emul.c vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); inst 1605 arch/mips/kernel/mips-r2-to-r6-emul.c if (MIPSInst_RT(inst) && !err) inst 1606 arch/mips/kernel/mips-r2-to-r6-emul.c regs->regs[MIPSInst_RT(inst)] = rt; inst 1617 arch/mips/kernel/mips-r2-to-r6-emul.c rt = regs->regs[MIPSInst_RT(inst)]; inst 1618 arch/mips/kernel/mips-r2-to-r6-emul.c vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); inst 1724 arch/mips/kernel/mips-r2-to-r6-emul.c if (MIPSInst_RT(inst) && !err) inst 1725 arch/mips/kernel/mips-r2-to-r6-emul.c regs->regs[MIPSInst_RT(inst)] = rt; inst 1736 arch/mips/kernel/mips-r2-to-r6-emul.c rt = regs->regs[MIPSInst_RT(inst)]; inst 1737 arch/mips/kernel/mips-r2-to-r6-emul.c vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); inst 1854 arch/mips/kernel/mips-r2-to-r6-emul.c rt = regs->regs[MIPSInst_RT(inst)]; inst 1855 arch/mips/kernel/mips-r2-to-r6-emul.c vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); inst 1967 arch/mips/kernel/mips-r2-to-r6-emul.c vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); inst 2016 arch/mips/kernel/mips-r2-to-r6-emul.c if (MIPSInst_RT(inst) && !err) inst 2017 arch/mips/kernel/mips-r2-to-r6-emul.c regs->regs[MIPSInst_RT(inst)] = res; inst 2023 arch/mips/kernel/mips-r2-to-r6-emul.c vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); inst 2055 arch/mips/kernel/mips-r2-to-r6-emul.c res = regs->regs[MIPSInst_RT(inst)]; inst 2073 arch/mips/kernel/mips-r2-to-r6-emul.c if (MIPSInst_RT(inst) && !err) inst 2074 arch/mips/kernel/mips-r2-to-r6-emul.c regs->regs[MIPSInst_RT(inst)] = res; inst 2086 arch/mips/kernel/mips-r2-to-r6-emul.c vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); inst 2134 arch/mips/kernel/mips-r2-to-r6-emul.c if (MIPSInst_RT(inst) && !err) inst 2135 arch/mips/kernel/mips-r2-to-r6-emul.c regs->regs[MIPSInst_RT(inst)] = res; inst 2147 arch/mips/kernel/mips-r2-to-r6-emul.c vaddr = regs->regs[MIPSInst_RS(inst)] + MIPSInst_SIMM(inst); inst 2179 arch/mips/kernel/mips-r2-to-r6-emul.c res = regs->regs[MIPSInst_RT(inst)]; inst 2197 arch/mips/kernel/mips-r2-to-r6-emul.c if (MIPSInst_RT(inst) && !err) inst 2198 arch/mips/kernel/mips-r2-to-r6-emul.c regs->regs[MIPSInst_RT(inst)] = res; inst 2216 arch/mips/kernel/mips-r2-to-r6-emul.c err = get_user(inst, (u32 __user *)regs->cp0_epc); inst 776 arch/mips/kernel/traps.c union mips_instruction inst = { .word = opcode }; inst 782 arch/mips/kernel/traps.c switch (inst.i_format.opcode) { inst 30 arch/mips/kernel/uprobes.c union mips_instruction inst; inst 39 arch/mips/kernel/uprobes.c inst.word = aup->insn[0]; inst 41 arch/mips/kernel/uprobes.c if (__insn_is_compact_branch(inst)) { inst 46 arch/mips/kernel/uprobes.c aup->ixol[0] = aup->insn[insn_has_delay_slot(inst)]; inst 64 arch/mips/kernel/uprobes.c union mips_instruction inst; inst 66 arch/mips/kernel/uprobes.c inst.word = *insn; inst 68 arch/mips/kernel/uprobes.c switch (inst.i_format.opcode) { inst 70 arch/mips/kernel/uprobes.c switch (inst.r_format.func) { inst 83 arch/mips/kernel/uprobes.c switch (inst.u_format.rt) { inst 68 arch/mips/kvm/dyntrans.c int kvm_mips_trans_cache_index(union mips_instruction inst, u32 *opc, inst 81 arch/mips/kvm/dyntrans.c int kvm_mips_trans_cache_va(union mips_instruction inst, u32 *opc, inst 87 arch/mips/kvm/dyntrans.c synci_inst.i_format.rs = inst.i_format.rs; inst 90 arch/mips/kvm/dyntrans.c synci_inst.i_format.simmediate = inst.spec3_format.simmediate; inst 92 arch/mips/kvm/dyntrans.c synci_inst.i_format.simmediate = inst.i_format.simmediate; inst 97 arch/mips/kvm/dyntrans.c int kvm_mips_trans_mfc0(union mips_instruction inst, u32 *opc, inst 103 arch/mips/kvm/dyntrans.c rd = inst.c0r_format.rd; inst 104 arch/mips/kvm/dyntrans.c sel = inst.c0r_format.sel; inst 108 arch/mips/kvm/dyntrans.c mfc0_inst.r_format.rd = inst.c0r_format.rt; inst 112 arch/mips/kvm/dyntrans.c mfc0_inst.i_format.rt = inst.c0r_format.rt; inst 124 arch/mips/kvm/dyntrans.c int kvm_mips_trans_mtc0(union mips_instruction inst, u32 *opc, inst 130 arch/mips/kvm/dyntrans.c rd = inst.c0r_format.rd; inst 131 arch/mips/kvm/dyntrans.c sel = inst.c0r_format.sel; inst 134 arch/mips/kvm/dyntrans.c mtc0_inst.i_format.rt = inst.c0r_format.rt; inst 1263 arch/mips/kvm/emulate.c enum emulation_result kvm_mips_emulate_CP0(union mips_instruction inst, inst 1282 arch/mips/kvm/emulate.c if (inst.co_format.co) { inst 1283 arch/mips/kvm/emulate.c switch (inst.co_format.func) { inst 1306 arch/mips/kvm/emulate.c er = kvm_mips_emul_hypcall(vcpu, inst); inst 1310 arch/mips/kvm/emulate.c rt = inst.c0r_format.rt; inst 1311 arch/mips/kvm/emulate.c rd = inst.c0r_format.rd; inst 1312 arch/mips/kvm/emulate.c sel = inst.c0r_format.sel; inst 1314 arch/mips/kvm/emulate.c switch (inst.c0r_format.rs) { inst 1326 arch/mips/kvm/emulate.c kvm_mips_trans_mfc0(inst, opc, vcpu); inst 1332 arch/mips/kvm/emulate.c kvm_mips_trans_mfc0(inst, opc, vcpu); inst 1456 arch/mips/kvm/emulate.c kvm_mips_trans_mtc0(inst, opc, vcpu); inst 1523 arch/mips/kvm/emulate.c kvm_mips_trans_mtc0(inst, opc, vcpu); inst 1545 arch/mips/kvm/emulate.c if (inst.mfmc0_format.sc) { inst 1577 arch/mips/kvm/emulate.c vcpu->arch.pc, inst.c0r_format.rs); inst 1598 arch/mips/kvm/emulate.c enum emulation_result kvm_mips_emulate_store(union mips_instruction inst, inst 1617 arch/mips/kvm/emulate.c rt = inst.i_format.rt; inst 1624 arch/mips/kvm/emulate.c switch (inst.i_format.opcode) { inst 1665 arch/mips/kvm/emulate.c inst.word); inst 1680 arch/mips/kvm/emulate.c enum emulation_result kvm_mips_emulate_load(union mips_instruction inst, inst 1688 arch/mips/kvm/emulate.c rt = inst.i_format.rt; inst 1689 arch/mips/kvm/emulate.c op = inst.i_format.opcode; inst 1741 arch/mips/kvm/emulate.c inst.word); inst 1797 arch/mips/kvm/emulate.c enum emulation_result kvm_mips_emulate_cache(union mips_instruction inst, inst 1818 arch/mips/kvm/emulate.c base = inst.i_format.rs; inst 1819 arch/mips/kvm/emulate.c op_inst = inst.i_format.rt; inst 1821 arch/mips/kvm/emulate.c offset = inst.spec3_format.simmediate; inst 1823 arch/mips/kvm/emulate.c offset = inst.i_format.simmediate; inst 1877 arch/mips/kvm/emulate.c kvm_mips_trans_cache_index(inst, opc, vcpu); inst 1897 arch/mips/kvm/emulate.c kvm_mips_trans_cache_va(inst, opc, vcpu); inst 1912 arch/mips/kvm/emulate.c kvm_mips_trans_cache_va(inst, opc, vcpu); inst 1935 arch/mips/kvm/emulate.c union mips_instruction inst; inst 1942 arch/mips/kvm/emulate.c err = kvm_get_badinstr(opc, vcpu, &inst.word); inst 1946 arch/mips/kvm/emulate.c switch (inst.r_format.opcode) { inst 1948 arch/mips/kvm/emulate.c er = kvm_mips_emulate_CP0(inst, opc, cause, run, vcpu); inst 1955 arch/mips/kvm/emulate.c er = kvm_mips_emulate_cache(inst, opc, cause, run, vcpu); inst 1959 arch/mips/kvm/emulate.c switch (inst.spec3_format.func) { inst 1963 arch/mips/kvm/emulate.c er = kvm_mips_emulate_cache(inst, opc, cause, run, inst 1975 arch/mips/kvm/emulate.c inst.word); inst 2492 arch/mips/kvm/emulate.c union mips_instruction inst; inst 2507 arch/mips/kvm/emulate.c err = kvm_get_badinstr(opc, vcpu, &inst.word); inst 2513 arch/mips/kvm/emulate.c if (inst.r_format.opcode == spec3_op && inst 2514 arch/mips/kvm/emulate.c inst.r_format.func == rdhwr_op && inst 2515 arch/mips/kvm/emulate.c inst.r_format.rs == 0 && inst 2516 arch/mips/kvm/emulate.c (inst.r_format.re >> 3) == 0) { inst 2518 arch/mips/kvm/emulate.c int rd = inst.r_format.rd; inst 2519 arch/mips/kvm/emulate.c int rt = inst.r_format.rt; inst 2520 arch/mips/kvm/emulate.c int sel = inst.r_format.re & 0x7; inst 2562 arch/mips/kvm/emulate.c opc, inst.word); inst 18 arch/mips/kvm/hypcall.c union mips_instruction inst) inst 20 arch/mips/kvm/hypcall.c unsigned int code = (inst.co_format.code >> 5) & 0x3ff; inst 1288 arch/mips/kvm/mips.c u32 inst; inst 1426 arch/mips/kvm/mips.c inst = 0; inst 1427 arch/mips/kvm/mips.c kvm_get_badinstr(opc, vcpu, &inst); inst 1429 arch/mips/kvm/mips.c exccode, opc, inst, badvaddr, inst 50 arch/mips/kvm/trap_emul.c u32 inst = 0; inst 57 arch/mips/kvm/trap_emul.c kvm_get_badinstr(opc, vcpu, &inst); inst 60 arch/mips/kvm/trap_emul.c exccode, opc, inst, badvaddr, inst 123 arch/mips/kvm/trap_emul.c union mips_instruction inst; inst 135 arch/mips/kvm/trap_emul.c err = kvm_get_badinstr(opc, vcpu, &inst.word); inst 142 arch/mips/kvm/trap_emul.c er = kvm_mips_emulate_load(inst, cause, run, vcpu); inst 156 arch/mips/kvm/trap_emul.c union mips_instruction inst; inst 162 arch/mips/kvm/trap_emul.c err = kvm_get_badinstr(opc, vcpu, &inst.word); inst 169 arch/mips/kvm/trap_emul.c er = kvm_mips_emulate_store(inst, cause, run, vcpu); inst 602 arch/mips/kvm/vz.c static bool is_eva_access(union mips_instruction inst) inst 604 arch/mips/kvm/vz.c if (inst.spec3_format.opcode != spec3_op) inst 607 arch/mips/kvm/vz.c switch (inst.spec3_format.func) { inst 674 arch/mips/kvm/vz.c union mips_instruction inst; inst 693 arch/mips/kvm/vz.c err = kvm_get_badinstr(opc, vcpu, &inst.word); inst 694 arch/mips/kvm/vz.c if (!err && is_eva_access(inst)) inst 848 arch/mips/kvm/vz.c u32 inst = 0; inst 855 arch/mips/kvm/vz.c kvm_get_badinstr(opc, vcpu, &inst); inst 858 arch/mips/kvm/vz.c exccode, opc, inst, badvaddr, inst 900 arch/mips/kvm/vz.c static enum emulation_result kvm_vz_gpsi_cop0(union mips_instruction inst, inst 920 arch/mips/kvm/vz.c if (inst.co_format.co) { inst 921 arch/mips/kvm/vz.c switch (inst.co_format.func) { inst 929 arch/mips/kvm/vz.c rt = inst.c0r_format.rt; inst 930 arch/mips/kvm/vz.c rd = inst.c0r_format.rd; inst 931 arch/mips/kvm/vz.c sel = inst.c0r_format.sel; inst 933 arch/mips/kvm/vz.c switch (inst.c0r_format.rs) { inst 984 arch/mips/kvm/vz.c if (inst.c0r_format.rs == mfc_op) inst 989 arch/mips/kvm/vz.c trace_kvm_hwr(vcpu, (inst.c0r_format.rs == mfc_op) ? inst 1000 arch/mips/kvm/vz.c trace_kvm_hwr(vcpu, (inst.c0r_format.rs == mtc_op) ? inst 1026 arch/mips/kvm/vz.c val = mips_process_maar(inst.c0r_format.rs, inst 1055 arch/mips/kvm/vz.c curr_pc, __func__, inst.word); inst 1063 arch/mips/kvm/vz.c static enum emulation_result kvm_vz_gpsi_cache(union mips_instruction inst, inst 1083 arch/mips/kvm/vz.c base = inst.i_format.rs; inst 1084 arch/mips/kvm/vz.c op_inst = inst.i_format.rt; inst 1086 arch/mips/kvm/vz.c offset = inst.spec3_format.simmediate; inst 1088 arch/mips/kvm/vz.c offset = inst.i_format.simmediate; inst 1138 arch/mips/kvm/vz.c union mips_instruction inst; inst 1147 arch/mips/kvm/vz.c err = kvm_get_badinstr(opc, vcpu, &inst.word); inst 1151 arch/mips/kvm/vz.c switch (inst.r_format.opcode) { inst 1153 arch/mips/kvm/vz.c er = kvm_vz_gpsi_cop0(inst, opc, cause, run, vcpu); inst 1158 arch/mips/kvm/vz.c er = kvm_vz_gpsi_cache(inst, opc, cause, run, vcpu); inst 1162 arch/mips/kvm/vz.c switch (inst.spec3_format.func) { inst 1166 arch/mips/kvm/vz.c er = kvm_vz_gpsi_cache(inst, opc, cause, run, vcpu); inst 1170 arch/mips/kvm/vz.c if (inst.r_format.rs || (inst.r_format.re >> 3)) inst 1173 arch/mips/kvm/vz.c rd = inst.r_format.rd; inst 1174 arch/mips/kvm/vz.c rt = inst.r_format.rt; inst 1175 arch/mips/kvm/vz.c sel = inst.r_format.re & 0x7; inst 1201 arch/mips/kvm/vz.c opc, inst.word); inst 1215 arch/mips/kvm/vz.c union mips_instruction inst; inst 1223 arch/mips/kvm/vz.c err = kvm_get_badinstr(opc, vcpu, &inst.word); inst 1228 arch/mips/kvm/vz.c if (inst.c0r_format.opcode == cop0_op && inst 1229 arch/mips/kvm/vz.c inst.c0r_format.rs == mtc_op && inst 1230 arch/mips/kvm/vz.c inst.c0r_format.z == 0) { inst 1231 arch/mips/kvm/vz.c int rt = inst.c0r_format.rt; inst 1232 arch/mips/kvm/vz.c int rd = inst.c0r_format.rd; inst 1233 arch/mips/kvm/vz.c int sel = inst.c0r_format.sel; inst 1321 arch/mips/kvm/vz.c opc, inst.word); inst 1329 arch/mips/kvm/vz.c opc, inst.word); inst 1352 arch/mips/kvm/vz.c union mips_instruction inst; inst 1358 arch/mips/kvm/vz.c err = kvm_get_badinstr(opc, vcpu, &inst.word); inst 1371 arch/mips/kvm/vz.c er = kvm_mips_emul_hypcall(vcpu, inst); inst 1383 arch/mips/kvm/vz.c u32 inst; inst 1390 arch/mips/kvm/vz.c kvm_get_badinstr(opc, vcpu, &inst); inst 1393 arch/mips/kvm/vz.c gexccode, opc, inst, read_gc0_status()); inst 1542 arch/mips/kvm/vz.c union mips_instruction inst; inst 1556 arch/mips/kvm/vz.c err = kvm_get_badinstr(opc, vcpu, &inst.word); inst 1563 arch/mips/kvm/vz.c er = kvm_mips_emulate_load(inst, cause, run, vcpu); inst 1589 arch/mips/kvm/vz.c union mips_instruction inst; inst 1603 arch/mips/kvm/vz.c err = kvm_get_badinstr(opc, vcpu, &inst.word); inst 1610 arch/mips/kvm/vz.c er = kvm_mips_emulate_store(inst, cause, run, vcpu); inst 87 arch/mips/netlogic/xlp/usb-init-xlp2.c #define nlm_xlpii_get_usb_pcibase(node, inst) \ inst 89 arch/mips/netlogic/xlp/usb-init-xlp2.c XLP9XX_IO_USB_OFFSET(node, inst) : \ inst 90 arch/mips/netlogic/xlp/usb-init-xlp2.c XLP2XX_IO_USB_OFFSET(node, inst)) inst 91 arch/mips/netlogic/xlp/usb-init-xlp2.c #define nlm_xlpii_get_usb_regbase(node, inst) \ inst 92 arch/mips/netlogic/xlp/usb-init-xlp2.c (nlm_xlpii_get_usb_pcibase(node, inst) + XLP_IO_PCI_HDRSZ) inst 65 arch/mips/netlogic/xlp/usb-init.c #define nlm_get_usb_pcibase(node, inst) \ inst 66 arch/mips/netlogic/xlp/usb-init.c nlm_pcicfg_base(XLP_IO_USB_OFFSET(node, inst)) inst 67 arch/mips/netlogic/xlp/usb-init.c #define nlm_get_usb_regbase(node, inst) \ inst 68 arch/mips/netlogic/xlp/usb-init.c (nlm_get_usb_pcibase(node, inst) + XLP_IO_PCI_HDRSZ) inst 124 arch/nds32/include/asm/uaccess.h #define __get_user_asm(inst, x, addr, err) \ inst 126 arch/nds32/include/asm/uaccess.h "1: "inst" %1,[%2]\n" \ inst 218 arch/nds32/include/asm/uaccess.h #define __put_user_asm(inst, x, addr, err) \ inst 220 arch/nds32/include/asm/uaccess.h "1: "inst" %1,[%2]\n" \ inst 18 arch/nds32/mm/alignment.c #define RT(inst) (((inst) >> 20) & 0x1FUL) inst 19 arch/nds32/mm/alignment.c #define RA(inst) (((inst) >> 15) & 0x1FUL) inst 20 arch/nds32/mm/alignment.c #define RB(inst) (((inst) >> 10) & 0x1FUL) inst 21 arch/nds32/mm/alignment.c #define SV(inst) (((inst) >> 8) & 0x3UL) inst 22 arch/nds32/mm/alignment.c #define IMM(inst) (((inst) >> 0) & 0x7FFFUL) inst 24 arch/nds32/mm/alignment.c #define RA3(inst) (((inst) >> 3) & 0x7UL) inst 25 arch/nds32/mm/alignment.c #define RT3(inst) (((inst) >> 6) & 0x7UL) inst 26 arch/nds32/mm/alignment.c #define IMM3U(inst) (((inst) >> 0) & 0x7UL) inst 28 arch/nds32/mm/alignment.c #define RA5(inst) (((inst) >> 0) & 0x1FUL) inst 29 arch/nds32/mm/alignment.c #define RT4(inst) (((inst) >> 5) & 0xFUL) inst 196 arch/nds32/mm/alignment.c static inline int do_16(unsigned long inst, struct pt_regs *regs) inst 201 arch/nds32/mm/alignment.c switch ((inst >> 9) & 0x3F) { inst 273 arch/nds32/mm/alignment.c unaligned_addr = *idx_to_addr(regs, RA3(inst)); inst 274 arch/nds32/mm/alignment.c source_idx = RA3(inst); inst 276 arch/nds32/mm/alignment.c unaligned_addr = *idx_to_addr(regs, RA5(inst)); inst 277 arch/nds32/mm/alignment.c source_idx = RA5(inst); inst 281 arch/nds32/mm/alignment.c target_idx = RT3(inst); inst 283 arch/nds32/mm/alignment.c target_idx = RT4(inst); inst 286 arch/nds32/mm/alignment.c shift = IMM3U(inst) * len; inst 313 arch/nds32/mm/alignment.c static inline int do_32(unsigned long inst, struct pt_regs *regs) inst 318 arch/nds32/mm/alignment.c unaligned_addr = *idx_to_addr(regs, RA(inst)); inst 320 arch/nds32/mm/alignment.c switch ((inst >> 25) << 1) { inst 394 arch/nds32/mm/alignment.c switch (inst & 0xff) { inst 473 arch/nds32/mm/alignment.c shift = GET_IMMSVAL(IMM(inst)) * len; inst 475 arch/nds32/mm/alignment.c shift = *idx_to_addr(regs, RB(inst)) << SV(inst); inst 488 arch/nds32/mm/alignment.c *idx_to_addr(regs, RT(inst)) = inst 491 arch/nds32/mm/alignment.c *idx_to_addr(regs, RT(inst)) = target_val; inst 497 arch/nds32/mm/alignment.c target_val = *idx_to_addr(regs, RT(inst)); inst 502 arch/nds32/mm/alignment.c *idx_to_addr(regs, RA(inst)) = unaligned_addr + shift; inst 513 arch/nds32/mm/alignment.c unsigned long inst; inst 517 arch/nds32/mm/alignment.c inst = get_inst(regs->ipc); inst 521 arch/nds32/mm/alignment.c regs->ipc, inst); inst 525 arch/nds32/mm/alignment.c if (inst & NDS32_16BIT_INSTRUCTION) inst 526 arch/nds32/mm/alignment.c ret = do_16((inst >> 16) & 0xffff, regs); inst 528 arch/nds32/mm/alignment.c ret = do_32(inst, regs); inst 51 arch/parisc/mm/fault.c parisc_acctyp(unsigned long code, unsigned int inst) inst 56 arch/parisc/mm/fault.c switch (inst & 0xf0000000) { inst 67 arch/parisc/mm/fault.c if (bit22set(inst)) inst 72 arch/parisc/mm/fault.c if (bit22set(inst)) { inst 90 arch/parisc/mm/fault.c if (isGraphicsFlushRead(inst)) inst 106 arch/parisc/mm/fault.c if (bits23_25set(inst) == BITSSET) inst 14 arch/powerpc/include/asm/disassemble.h static inline unsigned int get_op(u32 inst) inst 16 arch/powerpc/include/asm/disassemble.h return inst >> 26; inst 19 arch/powerpc/include/asm/disassemble.h static inline unsigned int get_xop(u32 inst) inst 21 arch/powerpc/include/asm/disassemble.h return (inst >> 1) & 0x3ff; inst 24 arch/powerpc/include/asm/disassemble.h static inline unsigned int get_sprn(u32 inst) inst 26 arch/powerpc/include/asm/disassemble.h return ((inst >> 16) & 0x1f) | ((inst >> 6) & 0x3e0); inst 29 arch/powerpc/include/asm/disassemble.h static inline unsigned int get_dcrn(u32 inst) inst 31 arch/powerpc/include/asm/disassemble.h return ((inst >> 16) & 0x1f) | ((inst >> 6) & 0x3e0); inst 34 arch/powerpc/include/asm/disassemble.h static inline unsigned int get_tmrn(u32 inst) inst 36 arch/powerpc/include/asm/disassemble.h return ((inst >> 16) & 0x1f) | ((inst >> 6) & 0x3e0); inst 39 arch/powerpc/include/asm/disassemble.h static inline unsigned int get_rt(u32 inst) inst 41 arch/powerpc/include/asm/disassemble.h return (inst >> 21) & 0x1f; inst 44 arch/powerpc/include/asm/disassemble.h static inline unsigned int get_rs(u32 inst) inst 46 arch/powerpc/include/asm/disassemble.h return (inst >> 21) & 0x1f; inst 49 arch/powerpc/include/asm/disassemble.h static inline unsigned int get_ra(u32 inst) inst 51 arch/powerpc/include/asm/disassemble.h return (inst >> 16) & 0x1f; inst 54 arch/powerpc/include/asm/disassemble.h static inline unsigned int get_rb(u32 inst) inst 56 arch/powerpc/include/asm/disassemble.h return (inst >> 11) & 0x1f; inst 59 arch/powerpc/include/asm/disassemble.h static inline unsigned int get_rc(u32 inst) inst 61 arch/powerpc/include/asm/disassemble.h return inst & 0x1; inst 64 arch/powerpc/include/asm/disassemble.h static inline unsigned int get_ws(u32 inst) inst 66 arch/powerpc/include/asm/disassemble.h return (inst >> 11) & 0x1f; inst 69 arch/powerpc/include/asm/disassemble.h static inline unsigned int get_d(u32 inst) inst 71 arch/powerpc/include/asm/disassemble.h return inst & 0xffff; inst 74 arch/powerpc/include/asm/disassemble.h static inline unsigned int get_oc(u32 inst) inst 76 arch/powerpc/include/asm/disassemble.h return (inst >> 11) & 0x7fff; inst 79 arch/powerpc/include/asm/disassemble.h static inline unsigned int get_tx_or_sx(u32 inst) inst 81 arch/powerpc/include/asm/disassemble.h return (inst) & 0x1; inst 84 arch/powerpc/include/asm/disassemble.h #define IS_XFORM(inst) (get_op(inst) == 31) inst 85 arch/powerpc/include/asm/disassemble.h #define IS_DSFORM(inst) (get_op(inst) >= 56) inst 273 arch/powerpc/include/asm/kvm_book3s.h extern u32 kvmppc_alignment_dsisr(struct kvm_vcpu *vcpu, unsigned int inst); inst 274 arch/powerpc/include/asm/kvm_book3s.h extern ulong kvmppc_alignment_dar(struct kvm_vcpu *vcpu, unsigned int inst); inst 87 arch/powerpc/include/asm/kvm_ppc.h enum instruction_fetch_type type, u32 *inst); inst 303 arch/powerpc/include/asm/kvm_ppc.h unsigned int inst, int *advance); inst 330 arch/powerpc/include/asm/kvm_ppc.h enum instruction_fetch_type type, u32 *inst) inst 348 arch/powerpc/include/asm/kvm_ppc.h *inst = fetched_inst; inst 363 arch/powerpc/include/asm/kvm_ppc.h static inline u32 kvmppc_get_field(u64 inst, int msb, int lsb) inst 371 arch/powerpc/include/asm/kvm_ppc.h r = (inst >> (63 - lsb)) & mask; inst 379 arch/powerpc/include/asm/kvm_ppc.h static inline u32 kvmppc_set_field(u64 inst, int msb, int lsb, int value) inst 387 arch/powerpc/include/asm/kvm_ppc.h r = (inst & ~mask) | ((value << (63 - lsb)) & mask); inst 39 arch/powerpc/kernel/epapr_paravirt.c u32 inst = be32_to_cpu(insts[i]); inst 40 arch/powerpc/kernel/epapr_paravirt.c patch_instruction(epapr_hypercall_start + i, inst); inst 42 arch/powerpc/kernel/epapr_paravirt.c patch_instruction(epapr_ev_idle_start + i, inst); inst 71 arch/powerpc/kernel/kvm.c static void __init kvm_patch_ins(u32 *inst, u32 new_inst) inst 73 arch/powerpc/kernel/kvm.c *inst = new_inst; inst 74 arch/powerpc/kernel/kvm.c flush_icache_range((ulong)inst, (ulong)inst + 4); inst 77 arch/powerpc/kernel/kvm.c static void __init kvm_patch_ins_ll(u32 *inst, long addr, u32 rt) inst 80 arch/powerpc/kernel/kvm.c kvm_patch_ins(inst, KVM_INST_LD | rt | (addr & 0x0000fffc)); inst 82 arch/powerpc/kernel/kvm.c kvm_patch_ins(inst, KVM_INST_LWZ | rt | (addr & 0x0000fffc)); inst 86 arch/powerpc/kernel/kvm.c static void __init kvm_patch_ins_ld(u32 *inst, long addr, u32 rt) inst 89 arch/powerpc/kernel/kvm.c kvm_patch_ins(inst, KVM_INST_LD | rt | (addr & 0x0000fffc)); inst 91 arch/powerpc/kernel/kvm.c kvm_patch_ins(inst, KVM_INST_LWZ | rt | ((addr + 4) & 0x0000fffc)); inst 95 arch/powerpc/kernel/kvm.c static void __init kvm_patch_ins_lwz(u32 *inst, long addr, u32 rt) inst 97 arch/powerpc/kernel/kvm.c kvm_patch_ins(inst, KVM_INST_LWZ | rt | (addr & 0x0000ffff)); inst 100 arch/powerpc/kernel/kvm.c static void __init kvm_patch_ins_std(u32 *inst, long addr, u32 rt) inst 103 arch/powerpc/kernel/kvm.c kvm_patch_ins(inst, KVM_INST_STD | rt | (addr & 0x0000fffc)); inst 105 arch/powerpc/kernel/kvm.c kvm_patch_ins(inst, KVM_INST_STW | rt | ((addr + 4) & 0x0000fffc)); inst 109 arch/powerpc/kernel/kvm.c static void __init kvm_patch_ins_stw(u32 *inst, long addr, u32 rt) inst 111 arch/powerpc/kernel/kvm.c kvm_patch_ins(inst, KVM_INST_STW | rt | (addr & 0x0000fffc)); inst 114 arch/powerpc/kernel/kvm.c static void __init kvm_patch_ins_nop(u32 *inst) inst 116 arch/powerpc/kernel/kvm.c kvm_patch_ins(inst, KVM_INST_NOP); inst 119 arch/powerpc/kernel/kvm.c static void __init kvm_patch_ins_b(u32 *inst, int addr) inst 125 arch/powerpc/kernel/kvm.c if ((ulong)inst < (ulong)&__end_interrupts) inst 129 arch/powerpc/kernel/kvm.c kvm_patch_ins(inst, KVM_INST_B | (addr & KVM_INST_B_MASK)); inst 155 arch/powerpc/kernel/kvm.c static void __init kvm_patch_ins_mtmsrd(u32 *inst, u32 rt) inst 167 arch/powerpc/kernel/kvm.c distance_start = (ulong)p - (ulong)inst; inst 168 arch/powerpc/kernel/kvm.c next_inst = ((ulong)inst + 4); inst 194 arch/powerpc/kernel/kvm.c p[kvm_emulate_mtmsrd_orig_ins_offs] = *inst; inst 198 arch/powerpc/kernel/kvm.c kvm_patch_ins_b(inst, distance_start); inst 208 arch/powerpc/kernel/kvm.c static void __init kvm_patch_ins_mtmsr(u32 *inst, u32 rt) inst 220 arch/powerpc/kernel/kvm.c distance_start = (ulong)p - (ulong)inst; inst 221 arch/powerpc/kernel/kvm.c next_inst = ((ulong)inst + 4); inst 254 arch/powerpc/kernel/kvm.c p[kvm_emulate_mtmsr_orig_ins_offs] = *inst; inst 258 arch/powerpc/kernel/kvm.c kvm_patch_ins_b(inst, distance_start); inst 269 arch/powerpc/kernel/kvm.c static void __init kvm_patch_ins_wrtee(u32 *inst, u32 rt, int imm_one) inst 281 arch/powerpc/kernel/kvm.c distance_start = (ulong)p - (ulong)inst; inst 282 arch/powerpc/kernel/kvm.c next_inst = ((ulong)inst + 4); inst 315 arch/powerpc/kernel/kvm.c p[kvm_emulate_wrtee_orig_ins_offs] = *inst; inst 319 arch/powerpc/kernel/kvm.c kvm_patch_ins_b(inst, distance_start); inst 326 arch/powerpc/kernel/kvm.c static void __init kvm_patch_ins_wrteei_0(u32 *inst) inst 338 arch/powerpc/kernel/kvm.c distance_start = (ulong)p - (ulong)inst; inst 339 arch/powerpc/kernel/kvm.c next_inst = ((ulong)inst + 4); inst 353 arch/powerpc/kernel/kvm.c kvm_patch_ins_b(inst, distance_start); inst 367 arch/powerpc/kernel/kvm.c static void __init kvm_patch_ins_mtsrin(u32 *inst, u32 rt, u32 rb) inst 379 arch/powerpc/kernel/kvm.c distance_start = (ulong)p - (ulong)inst; inst 380 arch/powerpc/kernel/kvm.c next_inst = ((ulong)inst + 4); inst 394 arch/powerpc/kernel/kvm.c p[kvm_emulate_mtsrin_orig_ins_offs] = *inst; inst 398 arch/powerpc/kernel/kvm.c kvm_patch_ins_b(inst, distance_start); inst 418 arch/powerpc/kernel/kvm.c static void __init kvm_check_ins(u32 *inst, u32 features) inst 420 arch/powerpc/kernel/kvm.c u32 _inst = *inst; inst 427 arch/powerpc/kernel/kvm.c kvm_patch_ins_ld(inst, magic_var(msr), inst_rt); inst 430 arch/powerpc/kernel/kvm.c kvm_patch_ins_ld(inst, magic_var(sprg0), inst_rt); inst 433 arch/powerpc/kernel/kvm.c kvm_patch_ins_ld(inst, magic_var(sprg1), inst_rt); inst 436 arch/powerpc/kernel/kvm.c kvm_patch_ins_ld(inst, magic_var(sprg2), inst_rt); inst 439 arch/powerpc/kernel/kvm.c kvm_patch_ins_ld(inst, magic_var(sprg3), inst_rt); inst 442 arch/powerpc/kernel/kvm.c kvm_patch_ins_ld(inst, magic_var(srr0), inst_rt); inst 445 arch/powerpc/kernel/kvm.c kvm_patch_ins_ld(inst, magic_var(srr1), inst_rt); inst 452 arch/powerpc/kernel/kvm.c kvm_patch_ins_ld(inst, magic_var(dar), inst_rt); inst 455 arch/powerpc/kernel/kvm.c kvm_patch_ins_lwz(inst, magic_var(dsisr), inst_rt); inst 461 arch/powerpc/kernel/kvm.c kvm_patch_ins_lwz(inst, magic_var(mas0), inst_rt); inst 465 arch/powerpc/kernel/kvm.c kvm_patch_ins_lwz(inst, magic_var(mas1), inst_rt); inst 469 arch/powerpc/kernel/kvm.c kvm_patch_ins_ld(inst, magic_var(mas2), inst_rt); inst 473 arch/powerpc/kernel/kvm.c kvm_patch_ins_lwz(inst, magic_var(mas7_3) + 4, inst_rt); inst 477 arch/powerpc/kernel/kvm.c kvm_patch_ins_lwz(inst, magic_var(mas4), inst_rt); inst 481 arch/powerpc/kernel/kvm.c kvm_patch_ins_lwz(inst, magic_var(mas6), inst_rt); inst 485 arch/powerpc/kernel/kvm.c kvm_patch_ins_lwz(inst, magic_var(mas7_3), inst_rt); inst 494 arch/powerpc/kernel/kvm.c kvm_patch_ins_ld(inst, magic_var(sprg4), inst_rt); inst 501 arch/powerpc/kernel/kvm.c kvm_patch_ins_ld(inst, magic_var(sprg5), inst_rt); inst 508 arch/powerpc/kernel/kvm.c kvm_patch_ins_ld(inst, magic_var(sprg6), inst_rt); inst 515 arch/powerpc/kernel/kvm.c kvm_patch_ins_ld(inst, magic_var(sprg7), inst_rt); inst 521 arch/powerpc/kernel/kvm.c kvm_patch_ins_lwz(inst, magic_var(esr), inst_rt); inst 527 arch/powerpc/kernel/kvm.c kvm_patch_ins_lwz(inst, magic_var(pir), inst_rt); inst 533 arch/powerpc/kernel/kvm.c kvm_patch_ins_std(inst, magic_var(sprg0), inst_rt); inst 536 arch/powerpc/kernel/kvm.c kvm_patch_ins_std(inst, magic_var(sprg1), inst_rt); inst 539 arch/powerpc/kernel/kvm.c kvm_patch_ins_std(inst, magic_var(sprg2), inst_rt); inst 542 arch/powerpc/kernel/kvm.c kvm_patch_ins_std(inst, magic_var(sprg3), inst_rt); inst 545 arch/powerpc/kernel/kvm.c kvm_patch_ins_std(inst, magic_var(srr0), inst_rt); inst 548 arch/powerpc/kernel/kvm.c kvm_patch_ins_std(inst, magic_var(srr1), inst_rt); inst 555 arch/powerpc/kernel/kvm.c kvm_patch_ins_std(inst, magic_var(dar), inst_rt); inst 558 arch/powerpc/kernel/kvm.c kvm_patch_ins_stw(inst, magic_var(dsisr), inst_rt); inst 563 arch/powerpc/kernel/kvm.c kvm_patch_ins_stw(inst, magic_var(mas0), inst_rt); inst 567 arch/powerpc/kernel/kvm.c kvm_patch_ins_stw(inst, magic_var(mas1), inst_rt); inst 571 arch/powerpc/kernel/kvm.c kvm_patch_ins_std(inst, magic_var(mas2), inst_rt); inst 575 arch/powerpc/kernel/kvm.c kvm_patch_ins_stw(inst, magic_var(mas7_3) + 4, inst_rt); inst 579 arch/powerpc/kernel/kvm.c kvm_patch_ins_stw(inst, magic_var(mas4), inst_rt); inst 583 arch/powerpc/kernel/kvm.c kvm_patch_ins_stw(inst, magic_var(mas6), inst_rt); inst 587 arch/powerpc/kernel/kvm.c kvm_patch_ins_stw(inst, magic_var(mas7_3), inst_rt); inst 593 arch/powerpc/kernel/kvm.c kvm_patch_ins_std(inst, magic_var(sprg4), inst_rt); inst 597 arch/powerpc/kernel/kvm.c kvm_patch_ins_std(inst, magic_var(sprg5), inst_rt); inst 601 arch/powerpc/kernel/kvm.c kvm_patch_ins_std(inst, magic_var(sprg6), inst_rt); inst 605 arch/powerpc/kernel/kvm.c kvm_patch_ins_std(inst, magic_var(sprg7), inst_rt); inst 611 arch/powerpc/kernel/kvm.c kvm_patch_ins_stw(inst, magic_var(esr), inst_rt); inst 617 arch/powerpc/kernel/kvm.c kvm_patch_ins_nop(inst); inst 622 arch/powerpc/kernel/kvm.c kvm_patch_ins_mtmsrd(inst, inst_rt); inst 626 arch/powerpc/kernel/kvm.c kvm_patch_ins_mtmsr(inst, inst_rt); inst 630 arch/powerpc/kernel/kvm.c kvm_patch_ins_wrtee(inst, inst_rt, 0); inst 640 arch/powerpc/kernel/kvm.c kvm_patch_ins_mtsrin(inst, inst_rt, inst_rb); inst 649 arch/powerpc/kernel/kvm.c kvm_patch_ins_wrteei_0(inst); inst 653 arch/powerpc/kernel/kvm.c kvm_patch_ins_wrtee(inst, 0, 1); inst 483 arch/powerpc/kvm/book3s.c enum instruction_fetch_type type, u32 *inst) inst 491 arch/powerpc/kvm/book3s.c r = kvmppc_ld(vcpu, &pc, sizeof(u32), inst, false); inst 21 arch/powerpc/kvm/book3s.h unsigned int inst, int *advance); inst 239 arch/powerpc/kvm/book3s_emulate.c unsigned int inst, int *advance) inst 242 arch/powerpc/kvm/book3s_emulate.c int rt = get_rt(inst); inst 243 arch/powerpc/kvm/book3s_emulate.c int rs = get_rs(inst); inst 244 arch/powerpc/kvm/book3s_emulate.c int ra = get_ra(inst); inst 245 arch/powerpc/kvm/book3s_emulate.c int rb = get_rb(inst); inst 248 arch/powerpc/kvm/book3s_emulate.c switch (get_op(inst)) { inst 252 arch/powerpc/kvm/book3s_emulate.c (inst == swab32(inst_sc))) { inst 266 arch/powerpc/kvm/book3s_emulate.c switch (get_xop(inst)) { inst 297 arch/powerpc/kvm/book3s_emulate.c switch (get_xop(inst)) { inst 304 arch/powerpc/kvm/book3s_emulate.c if (inst & 0x10000) { inst 320 arch/powerpc/kvm/book3s_emulate.c srnum = kvmppc_get_field(inst, 12 + 32, 15 + 32); inst 342 arch/powerpc/kvm/book3s_emulate.c (inst >> 16) & 0xf, inst 353 arch/powerpc/kvm/book3s_emulate.c bool large = (inst & 0x00200000) ? true : false; inst 410 arch/powerpc/kvm/book3s_emulate.c if (!(inst & 1) || !vcpu->arch.mmu.slbfee) { inst 510 arch/powerpc/kvm/book3s_emulate.c if ((inst >> 21) & 0x1) inst 1032 arch/powerpc/kvm/book3s_emulate.c u32 kvmppc_alignment_dsisr(struct kvm_vcpu *vcpu, unsigned int inst) inst 1034 arch/powerpc/kvm/book3s_emulate.c return make_dsisr(inst); inst 1037 arch/powerpc/kvm/book3s_emulate.c ulong kvmppc_alignment_dar(struct kvm_vcpu *vcpu, unsigned int inst) inst 1046 arch/powerpc/kvm/book3s_emulate.c ulong ra = get_ra(inst); inst 1047 arch/powerpc/kvm/book3s_emulate.c ulong rb = get_rb(inst); inst 1049 arch/powerpc/kvm/book3s_emulate.c switch (get_op(inst)) { inst 1056 arch/powerpc/kvm/book3s_emulate.c dar += (s32)((s16)inst); inst 1064 arch/powerpc/kvm/book3s_emulate.c printk(KERN_INFO "KVM: Unaligned instruction 0x%x\n", inst); inst 1196 arch/powerpc/kvm/book3s_hv.c u32 inst, rb, thr; inst 1201 arch/powerpc/kvm/book3s_hv.c if (kvmppc_get_last_inst(vcpu, INST_GENERIC, &inst) != EMULATE_DONE) inst 1203 arch/powerpc/kvm/book3s_hv.c if (get_op(inst) != 31) inst 1205 arch/powerpc/kvm/book3s_hv.c rb = get_rb(inst); inst 1207 arch/powerpc/kvm/book3s_hv.c switch (get_xop(inst)) { inst 1231 arch/powerpc/kvm/book3s_hv.c switch (get_sprn(inst)) { inst 1241 arch/powerpc/kvm/book3s_hv.c kvmppc_set_gpr(vcpu, get_rt(inst), arg); inst 4968 arch/powerpc/kvm/book3s_hv.c unsigned int inst, int *advance) inst 339 arch/powerpc/kvm/book3s_paired_singles.c static inline u32 inst_get_field(u32 inst, int msb, int lsb) inst 341 arch/powerpc/kvm/book3s_paired_singles.c return kvmppc_get_field(inst, msb + 32, lsb + 32); inst 344 arch/powerpc/kvm/book3s_paired_singles.c static bool kvmppc_inst_is_paired_single(struct kvm_vcpu *vcpu, u32 inst) inst 349 arch/powerpc/kvm/book3s_paired_singles.c switch (get_op(inst)) { inst 365 arch/powerpc/kvm/book3s_paired_singles.c switch (inst_get_field(inst, 21, 30)) { inst 383 arch/powerpc/kvm/book3s_paired_singles.c switch (inst_get_field(inst, 25, 30)) { inst 389 arch/powerpc/kvm/book3s_paired_singles.c switch (inst_get_field(inst, 26, 30)) { inst 411 arch/powerpc/kvm/book3s_paired_singles.c switch (inst_get_field(inst, 21, 30)) { inst 419 arch/powerpc/kvm/book3s_paired_singles.c switch (inst_get_field(inst, 26, 30)) { inst 429 arch/powerpc/kvm/book3s_paired_singles.c switch (inst_get_field(inst, 21, 30)) { inst 451 arch/powerpc/kvm/book3s_paired_singles.c switch (inst_get_field(inst, 26, 30)) { inst 462 arch/powerpc/kvm/book3s_paired_singles.c switch (inst_get_field(inst, 21, 30)) { inst 480 arch/powerpc/kvm/book3s_paired_singles.c static int get_d_signext(u32 inst) inst 482 arch/powerpc/kvm/book3s_paired_singles.c int d = inst & 0x8ff; inst 623 arch/powerpc/kvm/book3s_paired_singles.c u32 inst; inst 635 arch/powerpc/kvm/book3s_paired_singles.c emulated = kvmppc_get_last_inst(vcpu, INST_GENERIC, &inst); inst 639 arch/powerpc/kvm/book3s_paired_singles.c ax_rd = inst_get_field(inst, 6, 10); inst 640 arch/powerpc/kvm/book3s_paired_singles.c ax_ra = inst_get_field(inst, 11, 15); inst 641 arch/powerpc/kvm/book3s_paired_singles.c ax_rb = inst_get_field(inst, 16, 20); inst 642 arch/powerpc/kvm/book3s_paired_singles.c ax_rc = inst_get_field(inst, 21, 25); inst 643 arch/powerpc/kvm/book3s_paired_singles.c full_d = inst_get_field(inst, 16, 31); inst 650 arch/powerpc/kvm/book3s_paired_singles.c rcomp = (inst & 1) ? true : false; inst 653 arch/powerpc/kvm/book3s_paired_singles.c if (!kvmppc_inst_is_paired_single(vcpu, inst)) inst 675 arch/powerpc/kvm/book3s_paired_singles.c switch (get_op(inst)) { inst 679 arch/powerpc/kvm/book3s_paired_singles.c bool w = inst_get_field(inst, 16, 16) ? true : false; inst 680 arch/powerpc/kvm/book3s_paired_singles.c int i = inst_get_field(inst, 17, 19); inst 682 arch/powerpc/kvm/book3s_paired_singles.c addr += get_d_signext(inst); inst 689 arch/powerpc/kvm/book3s_paired_singles.c bool w = inst_get_field(inst, 16, 16) ? true : false; inst 690 arch/powerpc/kvm/book3s_paired_singles.c int i = inst_get_field(inst, 17, 19); inst 692 arch/powerpc/kvm/book3s_paired_singles.c addr += get_d_signext(inst); inst 702 arch/powerpc/kvm/book3s_paired_singles.c bool w = inst_get_field(inst, 16, 16) ? true : false; inst 703 arch/powerpc/kvm/book3s_paired_singles.c int i = inst_get_field(inst, 17, 19); inst 705 arch/powerpc/kvm/book3s_paired_singles.c addr += get_d_signext(inst); inst 712 arch/powerpc/kvm/book3s_paired_singles.c bool w = inst_get_field(inst, 16, 16) ? true : false; inst 713 arch/powerpc/kvm/book3s_paired_singles.c int i = inst_get_field(inst, 17, 19); inst 715 arch/powerpc/kvm/book3s_paired_singles.c addr += get_d_signext(inst); inst 724 arch/powerpc/kvm/book3s_paired_singles.c switch (inst_get_field(inst, 21, 30)) { inst 732 arch/powerpc/kvm/book3s_paired_singles.c bool w = inst_get_field(inst, 21, 21) ? true : false; inst 733 arch/powerpc/kvm/book3s_paired_singles.c int i = inst_get_field(inst, 22, 24); inst 746 arch/powerpc/kvm/book3s_paired_singles.c bool w = inst_get_field(inst, 21, 21) ? true : false; inst 747 arch/powerpc/kvm/book3s_paired_singles.c int i = inst_get_field(inst, 22, 24); inst 819 arch/powerpc/kvm/book3s_paired_singles.c switch (inst_get_field(inst, 25, 30)) { inst 823 arch/powerpc/kvm/book3s_paired_singles.c bool w = inst_get_field(inst, 21, 21) ? true : false; inst 824 arch/powerpc/kvm/book3s_paired_singles.c int i = inst_get_field(inst, 22, 24); inst 833 arch/powerpc/kvm/book3s_paired_singles.c bool w = inst_get_field(inst, 21, 21) ? true : false; inst 834 arch/powerpc/kvm/book3s_paired_singles.c int i = inst_get_field(inst, 22, 24); inst 845 arch/powerpc/kvm/book3s_paired_singles.c switch (inst_get_field(inst, 26, 30)) { inst 998 arch/powerpc/kvm/book3s_paired_singles.c switch (inst_get_field(inst, 21, 30)) { inst 1097 arch/powerpc/kvm/book3s_paired_singles.c switch (inst_get_field(inst, 21, 30)) { inst 1119 arch/powerpc/kvm/book3s_paired_singles.c switch (inst_get_field(inst, 26, 30)) { inst 1143 arch/powerpc/kvm/book3s_paired_singles.c switch (inst_get_field(inst, 21, 30)) { inst 1163 arch/powerpc/kvm/book3s_paired_singles.c u32 cr_shift = inst_get_field(inst, 6, 8) * 4; inst 1174 arch/powerpc/kvm/book3s_paired_singles.c u32 cr_shift = inst_get_field(inst, 6, 8) * 4; inst 1223 arch/powerpc/kvm/book3s_paired_singles.c switch (inst_get_field(inst, 26, 30)) { inst 74 arch/powerpc/kvm/booke.h unsigned int inst, int *advance); inst 100 arch/powerpc/kvm/booke.h unsigned int inst, int *advance); inst 108 arch/powerpc/kvm/booke.h unsigned int inst, int *advance); inst 43 arch/powerpc/kvm/booke_emulate.c unsigned int inst, int *advance) inst 46 arch/powerpc/kvm/booke_emulate.c int rs = get_rs(inst); inst 47 arch/powerpc/kvm/booke_emulate.c int rt = get_rt(inst); inst 49 arch/powerpc/kvm/booke_emulate.c switch (get_op(inst)) { inst 51 arch/powerpc/kvm/booke_emulate.c switch (get_xop(inst)) { inst 77 arch/powerpc/kvm/booke_emulate.c switch (get_xop(inst)) { inst 97 arch/powerpc/kvm/booke_emulate.c | (inst & MSR_EE); inst 87 arch/powerpc/kvm/e500_emulate.c unsigned int inst, int *advance) inst 91 arch/powerpc/kvm/e500_emulate.c switch (get_oc(inst)) { inst 115 arch/powerpc/kvm/e500_emulate.c static int kvmppc_e500_emul_mftmr(struct kvm_vcpu *vcpu, unsigned int inst, inst 119 arch/powerpc/kvm/e500_emulate.c if (get_tmrn(inst) == TMRN_TMCFG0) { inst 129 arch/powerpc/kvm/e500_emulate.c unsigned int inst, int *advance) inst 132 arch/powerpc/kvm/e500_emulate.c int ra = get_ra(inst); inst 133 arch/powerpc/kvm/e500_emulate.c int rb = get_rb(inst); inst 134 arch/powerpc/kvm/e500_emulate.c int rt = get_rt(inst); inst 137 arch/powerpc/kvm/e500_emulate.c switch (get_op(inst)) { inst 139 arch/powerpc/kvm/e500_emulate.c switch (get_xop(inst)) { inst 181 arch/powerpc/kvm/e500_emulate.c emulated = kvmppc_e500_emul_mftmr(vcpu, inst, rt); inst 185 arch/powerpc/kvm/e500_emulate.c emulated = kvmppc_e500_emul_ehpriv(run, vcpu, inst, inst 200 arch/powerpc/kvm/e500_emulate.c emulated = kvmppc_booke_emulate_op(run, vcpu, inst, advance); inst 196 arch/powerpc/kvm/emulate.c u32 inst; inst 204 arch/powerpc/kvm/emulate.c emulated = kvmppc_get_last_inst(vcpu, INST_GENERIC, &inst); inst 208 arch/powerpc/kvm/emulate.c pr_debug("Emulating opcode %d / %d\n", get_op(inst), get_xop(inst)); inst 210 arch/powerpc/kvm/emulate.c rs = get_rs(inst); inst 211 arch/powerpc/kvm/emulate.c rt = get_rt(inst); inst 212 arch/powerpc/kvm/emulate.c sprn = get_sprn(inst); inst 214 arch/powerpc/kvm/emulate.c switch (get_op(inst)) { inst 227 arch/powerpc/kvm/emulate.c switch (get_xop(inst)) { inst 272 arch/powerpc/kvm/emulate.c if (inst == KVMPPC_INST_SW_BREAKPOINT) { inst 288 arch/powerpc/kvm/emulate.c emulated = vcpu->kvm->arch.kvm_ops->emulate_op(run, vcpu, inst, inst 295 arch/powerpc/kvm/emulate.c "(op %d xop %d)\n", inst, get_op(inst), get_xop(inst)); inst 299 arch/powerpc/kvm/emulate.c trace_kvm_ppc_instr(inst, kvmppc_get_pc(vcpu), emulated); inst 75 arch/powerpc/kvm/emulate_loadstore.c u32 inst; inst 83 arch/powerpc/kvm/emulate_loadstore.c emulated = kvmppc_get_last_inst(vcpu, INST_GENERIC, &inst); inst 98 arch/powerpc/kvm/emulate_loadstore.c if (analyse_instr(&op, &vcpu->arch.regs, inst) == 0) { inst 365 arch/powerpc/kvm/emulate_loadstore.c trace_kvm_ppc_instr(inst, kvmppc_get_pc(vcpu), emulated); inst 14 arch/powerpc/kvm/trace.h TP_PROTO(unsigned int inst, unsigned long _pc, unsigned int emulate), inst 15 arch/powerpc/kvm/trace.h TP_ARGS(inst, _pc, emulate), inst 18 arch/powerpc/kvm/trace.h __field( unsigned int, inst ) inst 24 arch/powerpc/kvm/trace.h __entry->inst = inst; inst 30 arch/powerpc/kvm/trace.h __entry->inst, __entry->pc, __entry->emulate) inst 49 arch/powerpc/mm/fault.c static bool store_updates_sp(unsigned int inst) inst 52 arch/powerpc/mm/fault.c if (((inst >> 16) & 0x1f) != 1) inst 55 arch/powerpc/mm/fault.c switch (inst >> 26) { inst 63 arch/powerpc/mm/fault.c return (inst & 3) == 1; inst 66 arch/powerpc/mm/fault.c switch ((inst >> 1) & 0x3ff) { inst 281 arch/powerpc/mm/fault.c unsigned int inst; inst 285 arch/powerpc/mm/fault.c res = __get_user_inatomic(inst, nip); inst 288 arch/powerpc/mm/fault.c return !store_updates_sp(inst); inst 1232 arch/powerpc/platforms/powermac/low_i2c.c struct pmac_i2c_pf_inst *inst; inst 1252 arch/powerpc/platforms/powermac/low_i2c.c inst = kzalloc(sizeof(struct pmac_i2c_pf_inst), GFP_KERNEL); inst 1253 arch/powerpc/platforms/powermac/low_i2c.c if (inst == NULL) { inst 1257 arch/powerpc/platforms/powermac/low_i2c.c inst->bus = bus; inst 1258 arch/powerpc/platforms/powermac/low_i2c.c inst->addr = pmac_i2c_get_dev_addr(func->node); inst 1259 arch/powerpc/platforms/powermac/low_i2c.c inst->quirks = (int)(long)func->driver_data; inst 1260 arch/powerpc/platforms/powermac/low_i2c.c return inst; inst 1265 arch/powerpc/platforms/powermac/low_i2c.c struct pmac_i2c_pf_inst *inst = instdata; inst 1267 arch/powerpc/platforms/powermac/low_i2c.c if (inst == NULL) inst 1269 arch/powerpc/platforms/powermac/low_i2c.c pmac_i2c_close(inst->bus); inst 1270 arch/powerpc/platforms/powermac/low_i2c.c kfree(inst); inst 1275 arch/powerpc/platforms/powermac/low_i2c.c struct pmac_i2c_pf_inst *inst = instdata; inst 1277 arch/powerpc/platforms/powermac/low_i2c.c inst->bytes = len; inst 1278 arch/powerpc/platforms/powermac/low_i2c.c return pmac_i2c_xfer(inst->bus, inst->addr | pmac_i2c_read, 0, 0, inst 1279 arch/powerpc/platforms/powermac/low_i2c.c inst->buffer, len); inst 1284 arch/powerpc/platforms/powermac/low_i2c.c struct pmac_i2c_pf_inst *inst = instdata; inst 1286 arch/powerpc/platforms/powermac/low_i2c.c return pmac_i2c_xfer(inst->bus, inst->addr | pmac_i2c_write, 0, 0, inst 1296 arch/powerpc/platforms/powermac/low_i2c.c static void pmac_i2c_do_apply_rmw(struct pmac_i2c_pf_inst *inst, inst 1301 arch/powerpc/platforms/powermac/low_i2c.c if (inst->quirks & pmac_i2c_quirk_invmask) { inst 1303 arch/powerpc/platforms/powermac/low_i2c.c inst->scratch[i] = (inst->buffer[i] & mask[i]) | val[i]; inst 1306 arch/powerpc/platforms/powermac/low_i2c.c inst->scratch[i] = (inst->buffer[i] & ~mask[i]) inst 1315 arch/powerpc/platforms/powermac/low_i2c.c struct pmac_i2c_pf_inst *inst = instdata; inst 1317 arch/powerpc/platforms/powermac/low_i2c.c if (masklen > inst->bytes || valuelen > inst->bytes || inst 1318 arch/powerpc/platforms/powermac/low_i2c.c totallen > inst->bytes || valuelen > masklen) inst 1321 arch/powerpc/platforms/powermac/low_i2c.c pmac_i2c_do_apply_rmw(inst, masklen, maskdata, valuedata); inst 1323 arch/powerpc/platforms/powermac/low_i2c.c return pmac_i2c_xfer(inst->bus, inst->addr | pmac_i2c_write, 0, 0, inst 1324 arch/powerpc/platforms/powermac/low_i2c.c inst->scratch, totallen); inst 1329 arch/powerpc/platforms/powermac/low_i2c.c struct pmac_i2c_pf_inst *inst = instdata; inst 1331 arch/powerpc/platforms/powermac/low_i2c.c inst->bytes = len; inst 1332 arch/powerpc/platforms/powermac/low_i2c.c return pmac_i2c_xfer(inst->bus, inst->addr | pmac_i2c_read, 1, subaddr, inst 1333 arch/powerpc/platforms/powermac/low_i2c.c inst->buffer, len); inst 1339 arch/powerpc/platforms/powermac/low_i2c.c struct pmac_i2c_pf_inst *inst = instdata; inst 1341 arch/powerpc/platforms/powermac/low_i2c.c return pmac_i2c_xfer(inst->bus, inst->addr | pmac_i2c_write, 1, inst 1347 arch/powerpc/platforms/powermac/low_i2c.c struct pmac_i2c_pf_inst *inst = instdata; inst 1349 arch/powerpc/platforms/powermac/low_i2c.c return pmac_i2c_setmode(inst->bus, mode); inst 1356 arch/powerpc/platforms/powermac/low_i2c.c struct pmac_i2c_pf_inst *inst = instdata; inst 1358 arch/powerpc/platforms/powermac/low_i2c.c if (masklen > inst->bytes || valuelen > inst->bytes || inst 1359 arch/powerpc/platforms/powermac/low_i2c.c totallen > inst->bytes || valuelen > masklen) inst 1362 arch/powerpc/platforms/powermac/low_i2c.c pmac_i2c_do_apply_rmw(inst, masklen, maskdata, valuedata); inst 1364 arch/powerpc/platforms/powermac/low_i2c.c return pmac_i2c_xfer(inst->bus, inst->addr | pmac_i2c_write, 1, inst 1365 arch/powerpc/platforms/powermac/low_i2c.c subaddr, inst->scratch, totallen); inst 1372 arch/powerpc/platforms/powermac/low_i2c.c struct pmac_i2c_pf_inst *inst = instdata; inst 1380 arch/powerpc/platforms/powermac/low_i2c.c if (len > inst->bytes) inst 1384 arch/powerpc/platforms/powermac/low_i2c.c if ((inst->buffer[i] & maskdata[i]) != valuedata[i]) inst 933 arch/powerpc/sysdev/fsl_pci.c static int mcheck_handle_load(struct pt_regs *regs, u32 inst) inst 937 arch/powerpc/sysdev/fsl_pci.c rd = get_rt(inst); inst 938 arch/powerpc/sysdev/fsl_pci.c ra = get_ra(inst); inst 939 arch/powerpc/sysdev/fsl_pci.c rb = get_rb(inst); inst 940 arch/powerpc/sysdev/fsl_pci.c d = get_d(inst); inst 942 arch/powerpc/sysdev/fsl_pci.c switch (get_op(inst)) { inst 944 arch/powerpc/sysdev/fsl_pci.c switch (get_xop(inst)) { inst 1053 arch/powerpc/sysdev/fsl_pci.c u32 inst; inst 1070 arch/powerpc/sysdev/fsl_pci.c ret = get_user(inst, (__u32 __user *)regs->nip); inst 1073 arch/powerpc/sysdev/fsl_pci.c ret = probe_kernel_address((void *)regs->nip, inst); inst 1076 arch/powerpc/sysdev/fsl_pci.c if (!ret && mcheck_handle_load(regs, inst)) { inst 2836 arch/powerpc/xmon/xmon.c typedef int (*instruction_dump_func)(unsigned long inst, unsigned long addr); inst 2844 arch/powerpc/xmon/xmon.c unsigned int inst, last_inst = 0; inst 2857 arch/powerpc/xmon/xmon.c inst = GETWORD(val); inst 2858 arch/powerpc/xmon/xmon.c if (adr > first_adr && inst == last_inst) { inst 2866 arch/powerpc/xmon/xmon.c last_inst = inst; inst 2868 arch/powerpc/xmon/xmon.c printf(REG" %.8x", adr, inst); inst 2870 arch/powerpc/xmon/xmon.c dump_func(inst, adr); inst 567 arch/sh/kernel/traps_32.c unsigned short inst = 0; inst 576 arch/sh/kernel/traps_32.c get_user(inst, ((unsigned short *) regs->pc)); inst 578 arch/sh/kernel/traps_32.c inst &= 0xf000; inst 581 arch/sh/kernel/traps_32.c if ((inst == 0xf000) || (inst == 0x4000)) inst 616 arch/sh/kernel/traps_32.c unsigned short inst = 0; inst 619 arch/sh/kernel/traps_32.c get_user(inst, (unsigned short*)regs->pc); inst 621 arch/sh/kernel/traps_32.c err = do_fpu_inst(inst, regs); inst 623 arch/sh/kernel/traps_32.c regs->pc += instruction_size(inst); inst 648 arch/sh/kernel/traps_32.c static int emulate_branch(unsigned short inst, struct pt_regs *regs) inst 661 arch/sh/kernel/traps_32.c if (((inst & 0xf000) == 0xb000) || /* bsr */ inst 662 arch/sh/kernel/traps_32.c ((inst & 0xf0ff) == 0x0003) || /* bsrf */ inst 663 arch/sh/kernel/traps_32.c ((inst & 0xf0ff) == 0x400b)) /* jsr */ inst 666 arch/sh/kernel/traps_32.c if ((inst & 0xfd00) == 0x8d00) { /* bfs, bts */ inst 667 arch/sh/kernel/traps_32.c regs->pc += SH_PC_8BIT_OFFSET(inst); inst 671 arch/sh/kernel/traps_32.c if ((inst & 0xe000) == 0xa000) { /* bra, bsr */ inst 672 arch/sh/kernel/traps_32.c regs->pc += SH_PC_12BIT_OFFSET(inst); inst 676 arch/sh/kernel/traps_32.c if ((inst & 0xf0df) == 0x0003) { /* braf, bsrf */ inst 677 arch/sh/kernel/traps_32.c regs->pc += regs->regs[(inst & 0x0f00) >> 8] + 4; inst 681 arch/sh/kernel/traps_32.c if ((inst & 0xf0df) == 0x400b) { /* jmp, jsr */ inst 682 arch/sh/kernel/traps_32.c regs->pc = regs->regs[(inst & 0x0f00) >> 8]; inst 686 arch/sh/kernel/traps_32.c if ((inst & 0xffff) == 0x000b) { /* rts */ inst 698 arch/sh/kernel/traps_32.c unsigned long inst; inst 704 arch/sh/kernel/traps_32.c get_user(inst, (unsigned short *)regs->pc + 1); inst 705 arch/sh/kernel/traps_32.c if (!do_fpu_inst(inst, regs)) { inst 706 arch/sh/kernel/traps_32.c get_user(inst, (unsigned short *)regs->pc); inst 707 arch/sh/kernel/traps_32.c if (!emulate_branch(inst, regs)) inst 714 arch/sh/kernel/traps_32.c inst = lookup_exception_vector(); inst 718 arch/sh/kernel/traps_32.c die_if_no_fixup("illegal slot instruction", regs, inst); inst 595 arch/sh/math-emu/math.c int do_fpu_inst(unsigned short inst, struct pt_regs *regs) inst 608 arch/sh/math-emu/math.c return fpu_emulate(inst, fpu, regs); inst 298 arch/sparc/prom/tree_32.c phandle prom_inst2pkg(int inst) inst 304 arch/sparc/prom/tree_32.c node = (*romvec->pv_v2devops.v2_inst2pkg)(inst); inst 359 arch/sparc/prom/tree_64.c inline phandle prom_inst2pkg(int inst) inst 367 arch/sparc/prom/tree_64.c args[3] = (unsigned int) inst; inst 69 arch/unicore32/kernel/fpu-ucf64.c void ucf64_exchandler(u32 inst, u32 fpexc, struct pt_regs *regs) inst 75 arch/unicore32/kernel/fpu-ucf64.c inst, fpexc); inst 86 arch/unicore32/kernel/fpu-ucf64.c cff(FPSCR), inst); inst 25 arch/x86/include/asm/asm.h #define __ASM_SIZE(inst, ...) __ASM_SEL(inst##l##__VA_ARGS__, \ inst 26 arch/x86/include/asm/asm.h inst##q##__VA_ARGS__) inst 407 crypto/adiantum.c struct skcipher_instance *inst = skcipher_alg_instance(tfm); inst 408 crypto/adiantum.c struct adiantum_instance_ctx *ictx = skcipher_instance_ctx(inst); inst 466 crypto/adiantum.c static void adiantum_free_instance(struct skcipher_instance *inst) inst 468 crypto/adiantum.c struct adiantum_instance_ctx *ictx = skcipher_instance_ctx(inst); inst 473 crypto/adiantum.c kfree(inst); inst 506 crypto/adiantum.c struct skcipher_instance *inst; inst 535 crypto/adiantum.c inst = kzalloc(sizeof(*inst) + sizeof(*ictx), GFP_KERNEL); inst 536 crypto/adiantum.c if (!inst) inst 538 crypto/adiantum.c ictx = skcipher_instance_ctx(inst); inst 542 crypto/adiantum.c skcipher_crypto_instance(inst)); inst 552 crypto/adiantum.c skcipher_crypto_instance(inst)); inst 569 crypto/adiantum.c skcipher_crypto_instance(inst)); inst 586 crypto/adiantum.c if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, inst 590 crypto/adiantum.c if (snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME, inst 597 crypto/adiantum.c inst->alg.base.cra_flags = streamcipher_alg->base.cra_flags & inst 599 crypto/adiantum.c inst->alg.base.cra_blocksize = BLOCKCIPHER_BLOCK_SIZE; inst 600 crypto/adiantum.c inst->alg.base.cra_ctxsize = sizeof(struct adiantum_tfm_ctx); inst 601 crypto/adiantum.c inst->alg.base.cra_alignmask = streamcipher_alg->base.cra_alignmask | inst 609 crypto/adiantum.c inst->alg.base.cra_priority = (4 * streamcipher_alg->base.cra_priority + inst 613 crypto/adiantum.c inst->alg.setkey = adiantum_setkey; inst 614 crypto/adiantum.c inst->alg.encrypt = adiantum_encrypt; inst 615 crypto/adiantum.c inst->alg.decrypt = adiantum_decrypt; inst 616 crypto/adiantum.c inst->alg.init = adiantum_init_tfm; inst 617 crypto/adiantum.c inst->alg.exit = adiantum_exit_tfm; inst 618 crypto/adiantum.c inst->alg.min_keysize = crypto_skcipher_alg_min_keysize(streamcipher_alg); inst 619 crypto/adiantum.c inst->alg.max_keysize = crypto_skcipher_alg_max_keysize(streamcipher_alg); inst 620 crypto/adiantum.c inst->alg.ivsize = TWEAK_SIZE; inst 622 crypto/adiantum.c inst->free = adiantum_free_instance; inst 624 crypto/adiantum.c err = skcipher_register_instance(tmpl, inst); inst 640 crypto/adiantum.c kfree(inst); inst 189 crypto/aead.c static void crypto_aead_free_instance(struct crypto_instance *inst) inst 191 crypto/aead.c struct aead_instance *aead = aead_instance(inst); inst 194 crypto/aead.c inst->tmpl->free(inst); inst 237 crypto/aead.c struct aead_instance *inst; inst 254 crypto/aead.c inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); inst 255 crypto/aead.c if (!inst) inst 258 crypto/aead.c spawn = aead_instance_ctx(inst); inst 263 crypto/aead.c crypto_set_aead_spawn(spawn, aead_crypto_instance(inst)); inst 278 crypto/aead.c if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, inst 282 crypto/aead.c if (snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME, inst 287 crypto/aead.c inst->alg.base.cra_flags = alg->base.cra_flags & CRYPTO_ALG_ASYNC; inst 288 crypto/aead.c inst->alg.base.cra_priority = alg->base.cra_priority; inst 289 crypto/aead.c inst->alg.base.cra_blocksize = alg->base.cra_blocksize; inst 290 crypto/aead.c inst->alg.base.cra_alignmask = alg->base.cra_alignmask; inst 291 crypto/aead.c inst->alg.base.cra_ctxsize = sizeof(struct aead_geniv_ctx); inst 293 crypto/aead.c inst->alg.setkey = aead_geniv_setkey; inst 294 crypto/aead.c inst->alg.setauthsize = aead_geniv_setauthsize; inst 296 crypto/aead.c inst->alg.ivsize = ivsize; inst 297 crypto/aead.c inst->alg.maxauthsize = maxauthsize; inst 300 crypto/aead.c return inst; inst 305 crypto/aead.c kfree(inst); inst 306 crypto/aead.c inst = ERR_PTR(err); inst 311 crypto/aead.c void aead_geniv_free(struct aead_instance *inst) inst 313 crypto/aead.c crypto_drop_aead(aead_instance_ctx(inst)); inst 314 crypto/aead.c kfree(inst); inst 321 crypto/aead.c struct aead_instance *inst = aead_alg_instance(aead); inst 342 crypto/aead.c child = crypto_spawn_aead(aead_instance_ctx(inst)); inst 452 crypto/aead.c struct aead_instance *inst) inst 456 crypto/aead.c err = aead_prepare_alg(&inst->alg); inst 460 crypto/aead.c return crypto_register_instance(tmpl, aead_crypto_instance(inst)); inst 637 crypto/ahash.c struct ahash_instance *inst) inst 641 crypto/ahash.c err = ahash_prepare_alg(&inst->alg); inst 645 crypto/ahash.c return crypto_register_instance(tmpl, ahash_crypto_instance(inst)); inst 649 crypto/ahash.c void ahash_free_instance(struct crypto_instance *inst) inst 651 crypto/ahash.c crypto_drop_spawn(crypto_instance_ctx(inst)); inst 652 crypto/ahash.c kfree(ahash_instance(inst)); inst 658 crypto/ahash.c struct crypto_instance *inst) inst 660 crypto/ahash.c return crypto_init_spawn2(&spawn->base, &alg->base, inst, inst 72 crypto/akcipher.c static void crypto_akcipher_free_instance(struct crypto_instance *inst) inst 74 crypto/akcipher.c struct akcipher_instance *akcipher = akcipher_instance(inst); inst 147 crypto/akcipher.c struct akcipher_instance *inst) inst 149 crypto/akcipher.c akcipher_prepare_alg(&inst->alg); inst 150 crypto/akcipher.c return crypto_register_instance(tmpl, akcipher_crypto_instance(inst)); inst 66 crypto/algapi.c static void crypto_free_instance(struct crypto_instance *inst) inst 68 crypto/algapi.c if (!inst->alg.cra_type->free) { inst 69 crypto/algapi.c inst->tmpl->free(inst); inst 73 crypto/algapi.c inst->alg.cra_type->free(inst); inst 78 crypto/algapi.c struct crypto_instance *inst = (void *)alg; inst 79 crypto/algapi.c struct crypto_template *tmpl = inst->tmpl; inst 81 crypto/algapi.c crypto_free_instance(inst); inst 100 crypto/algapi.c &list_next_entry(n, list)->inst->alg; inst 104 crypto/algapi.c return &n->list == stack ? top : &n->inst->alg.cra_users; inst 107 crypto/algapi.c static void crypto_remove_instance(struct crypto_instance *inst, inst 110 crypto/algapi.c struct crypto_template *tmpl = inst->tmpl; inst 112 crypto/algapi.c if (crypto_is_dead(&inst->alg)) inst 115 crypto/algapi.c inst->alg.cra_flags |= CRYPTO_ALG_DEAD; inst 116 crypto/algapi.c if (hlist_unhashed(&inst->list)) inst 122 crypto/algapi.c list_move(&inst->alg.cra_list, list); inst 123 crypto/algapi.c hlist_del(&inst->list); inst 124 crypto/algapi.c inst->alg.cra_destroy = crypto_destroy_instance; inst 126 crypto/algapi.c BUG_ON(!list_empty(&inst->alg.cra_users)); inst 150 crypto/algapi.c struct crypto_instance *inst; inst 154 crypto/algapi.c inst = spawn->inst; inst 156 crypto/algapi.c BUG_ON(&inst->alg == alg); inst 160 crypto/algapi.c if (&inst->alg == nalg) inst 164 crypto/algapi.c spawns = &inst->alg.cra_users; inst 185 crypto/algapi.c crypto_remove_instance(spawn->inst, list); inst 516 crypto/algapi.c struct crypto_instance *inst; inst 527 crypto/algapi.c hlist_for_each_entry(inst, list, list) { inst 528 crypto/algapi.c int err = crypto_remove_alg(&inst->alg, &users); inst 535 crypto/algapi.c hlist_for_each_entry_safe(inst, n, list, list) { inst 536 crypto/algapi.c BUG_ON(refcount_read(&inst->alg.cra_refcnt) != 1); inst 537 crypto/algapi.c crypto_free_instance(inst); inst 579 crypto/algapi.c struct crypto_instance *inst) inst 584 crypto/algapi.c err = crypto_check_alg(&inst->alg); inst 588 crypto/algapi.c inst->alg.cra_module = tmpl->module; inst 589 crypto/algapi.c inst->alg.cra_flags |= CRYPTO_ALG_INSTANCE; inst 593 crypto/algapi.c larval = __crypto_register_alg(&inst->alg); inst 597 crypto/algapi.c hlist_add_head(&inst->list, &tmpl->instances); inst 598 crypto/algapi.c inst->tmpl = tmpl; inst 615 crypto/algapi.c int crypto_unregister_instance(struct crypto_instance *inst) inst 621 crypto/algapi.c crypto_remove_spawns(&inst->alg, &list, NULL); inst 622 crypto/algapi.c crypto_remove_instance(inst, &list); inst 633 crypto/algapi.c struct crypto_instance *inst, u32 mask) inst 637 crypto/algapi.c if (WARN_ON_ONCE(inst == NULL)) inst 640 crypto/algapi.c spawn->inst = inst; inst 656 crypto/algapi.c struct crypto_instance *inst, inst 665 crypto/algapi.c err = crypto_init_spawn(spawn, alg, inst, frontend->maskset); inst 682 crypto/algapi.c err = crypto_init_spawn(spawn, alg, spawn->inst, mask); inst 854 crypto/algapi.c int crypto_inst_setname(struct crypto_instance *inst, const char *name, inst 857 crypto/algapi.c if (snprintf(inst->alg.cra_name, CRYPTO_MAX_ALG_NAME, "%s(%s)", name, inst 861 crypto/algapi.c if (snprintf(inst->alg.cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s(%s)", inst 872 crypto/algapi.c struct crypto_instance *inst; inst 876 crypto/algapi.c p = kzalloc(head + sizeof(*inst) + sizeof(struct crypto_spawn), inst 881 crypto/algapi.c inst = (void *)(p + head); inst 883 crypto/algapi.c err = crypto_inst_setname(inst, name, alg); inst 61 crypto/algboss.c struct crypto_instance *inst; inst 74 crypto/algboss.c inst = tmpl->alloc(param->tb); inst 75 crypto/algboss.c if (IS_ERR(inst)) inst 76 crypto/algboss.c err = PTR_ERR(inst); inst 77 crypto/algboss.c else if ((err = crypto_register_instance(tmpl, inst))) inst 78 crypto/algboss.c tmpl->free(inst); inst 126 crypto/authenc.c struct aead_instance *inst = aead_alg_instance(authenc); inst 127 crypto/authenc.c struct authenc_instance_ctx *ictx = aead_instance_ctx(inst); inst 145 crypto/authenc.c struct aead_instance *inst = aead_alg_instance(authenc); inst 147 crypto/authenc.c struct authenc_instance_ctx *ictx = aead_instance_ctx(inst); inst 205 crypto/authenc.c struct aead_instance *inst = aead_alg_instance(authenc); inst 207 crypto/authenc.c struct authenc_instance_ctx *ictx = aead_instance_ctx(inst); inst 243 crypto/authenc.c struct aead_instance *inst = aead_alg_instance(authenc); inst 245 crypto/authenc.c struct authenc_instance_ctx *ictx = aead_instance_ctx(inst); inst 292 crypto/authenc.c struct aead_instance *inst = aead_alg_instance(authenc); inst 294 crypto/authenc.c struct authenc_instance_ctx *ictx = aead_instance_ctx(inst); inst 319 crypto/authenc.c struct aead_instance *inst = aead_alg_instance(tfm); inst 320 crypto/authenc.c struct authenc_instance_ctx *ictx = aead_instance_ctx(inst); inst 373 crypto/authenc.c static void crypto_authenc_free(struct aead_instance *inst) inst 375 crypto/authenc.c struct authenc_instance_ctx *ctx = aead_instance_ctx(inst); inst 379 crypto/authenc.c kfree(inst); inst 386 crypto/authenc.c struct aead_instance *inst; inst 414 crypto/authenc.c inst = kzalloc(sizeof(*inst) + sizeof(*ctx), GFP_KERNEL); inst 416 crypto/authenc.c if (!inst) inst 419 crypto/authenc.c ctx = aead_instance_ctx(inst); inst 422 crypto/authenc.c aead_crypto_instance(inst)); inst 426 crypto/authenc.c crypto_set_skcipher_spawn(&ctx->enc, aead_crypto_instance(inst)); inst 439 crypto/authenc.c if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, inst 445 crypto/authenc.c if (snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME, inst 450 crypto/authenc.c inst->alg.base.cra_flags = (auth_base->cra_flags | inst 452 crypto/authenc.c inst->alg.base.cra_priority = enc->base.cra_priority * 10 + inst 454 crypto/authenc.c inst->alg.base.cra_blocksize = enc->base.cra_blocksize; inst 455 crypto/authenc.c inst->alg.base.cra_alignmask = auth_base->cra_alignmask | inst 457 crypto/authenc.c inst->alg.base.cra_ctxsize = sizeof(struct crypto_authenc_ctx); inst 459 crypto/authenc.c inst->alg.ivsize = crypto_skcipher_alg_ivsize(enc); inst 460 crypto/authenc.c inst->alg.chunksize = crypto_skcipher_alg_chunksize(enc); inst 461 crypto/authenc.c inst->alg.maxauthsize = auth->digestsize; inst 463 crypto/authenc.c inst->alg.init = crypto_authenc_init_tfm; inst 464 crypto/authenc.c inst->alg.exit = crypto_authenc_exit_tfm; inst 466 crypto/authenc.c inst->alg.setkey = crypto_authenc_setkey; inst 467 crypto/authenc.c inst->alg.encrypt = crypto_authenc_encrypt; inst 468 crypto/authenc.c inst->alg.decrypt = crypto_authenc_decrypt; inst 470 crypto/authenc.c inst->free = crypto_authenc_free; inst 472 crypto/authenc.c err = aead_register_instance(tmpl, inst); inst 485 crypto/authenc.c kfree(inst); inst 334 crypto/authencesn.c struct aead_instance *inst = aead_alg_instance(tfm); inst 335 crypto/authencesn.c struct authenc_esn_instance_ctx *ictx = aead_instance_ctx(inst); inst 391 crypto/authencesn.c static void crypto_authenc_esn_free(struct aead_instance *inst) inst 393 crypto/authencesn.c struct authenc_esn_instance_ctx *ctx = aead_instance_ctx(inst); inst 397 crypto/authencesn.c kfree(inst); inst 404 crypto/authencesn.c struct aead_instance *inst; inst 432 crypto/authencesn.c inst = kzalloc(sizeof(*inst) + sizeof(*ctx), GFP_KERNEL); inst 434 crypto/authencesn.c if (!inst) inst 437 crypto/authencesn.c ctx = aead_instance_ctx(inst); inst 440 crypto/authencesn.c aead_crypto_instance(inst)); inst 444 crypto/authencesn.c crypto_set_skcipher_spawn(&ctx->enc, aead_crypto_instance(inst)); inst 454 crypto/authencesn.c if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, inst 459 crypto/authencesn.c if (snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME, inst 464 crypto/authencesn.c inst->alg.base.cra_flags = (auth_base->cra_flags | inst 466 crypto/authencesn.c inst->alg.base.cra_priority = enc->base.cra_priority * 10 + inst 468 crypto/authencesn.c inst->alg.base.cra_blocksize = enc->base.cra_blocksize; inst 469 crypto/authencesn.c inst->alg.base.cra_alignmask = auth_base->cra_alignmask | inst 471 crypto/authencesn.c inst->alg.base.cra_ctxsize = sizeof(struct crypto_authenc_esn_ctx); inst 473 crypto/authencesn.c inst->alg.ivsize = crypto_skcipher_alg_ivsize(enc); inst 474 crypto/authencesn.c inst->alg.chunksize = crypto_skcipher_alg_chunksize(enc); inst 475 crypto/authencesn.c inst->alg.maxauthsize = auth->digestsize; inst 477 crypto/authencesn.c inst->alg.init = crypto_authenc_esn_init_tfm; inst 478 crypto/authencesn.c inst->alg.exit = crypto_authenc_esn_exit_tfm; inst 480 crypto/authencesn.c inst->alg.setkey = crypto_authenc_esn_setkey; inst 481 crypto/authencesn.c inst->alg.setauthsize = crypto_authenc_esn_setauthsize; inst 482 crypto/authencesn.c inst->alg.encrypt = crypto_authenc_esn_encrypt; inst 483 crypto/authencesn.c inst->alg.decrypt = crypto_authenc_esn_decrypt; inst 485 crypto/authencesn.c inst->free = crypto_authenc_esn_free, inst 487 crypto/authencesn.c err = aead_register_instance(tmpl, inst); inst 500 crypto/authencesn.c kfree(inst); inst 53 crypto/cbc.c struct skcipher_instance *inst; inst 57 crypto/cbc.c inst = skcipher_alloc_instance_simple(tmpl, tb, &alg); inst 58 crypto/cbc.c if (IS_ERR(inst)) inst 59 crypto/cbc.c return PTR_ERR(inst); inst 65 crypto/cbc.c inst->alg.encrypt = crypto_cbc_encrypt; inst 66 crypto/cbc.c inst->alg.decrypt = crypto_cbc_decrypt; inst 68 crypto/cbc.c err = skcipher_register_instance(tmpl, inst); inst 74 crypto/cbc.c inst->free(inst); inst 403 crypto/ccm.c struct aead_instance *inst = aead_alg_instance(tfm); inst 404 crypto/ccm.c struct ccm_instance_ctx *ictx = aead_instance_ctx(inst); inst 445 crypto/ccm.c static void crypto_ccm_free(struct aead_instance *inst) inst 447 crypto/ccm.c struct ccm_instance_ctx *ctx = aead_instance_ctx(inst); inst 451 crypto/ccm.c kfree(inst); inst 460 crypto/ccm.c struct aead_instance *inst; inst 487 crypto/ccm.c inst = kzalloc(sizeof(*inst) + sizeof(*ictx), GFP_KERNEL); inst 489 crypto/ccm.c if (!inst) inst 492 crypto/ccm.c ictx = aead_instance_ctx(inst); inst 494 crypto/ccm.c aead_crypto_instance(inst)); inst 498 crypto/ccm.c crypto_set_skcipher_spawn(&ictx->ctr, aead_crypto_instance(inst)); inst 519 crypto/ccm.c if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, inst 523 crypto/ccm.c if (snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME, inst 528 crypto/ccm.c inst->alg.base.cra_flags = ctr->base.cra_flags & CRYPTO_ALG_ASYNC; inst 529 crypto/ccm.c inst->alg.base.cra_priority = (mac->base.cra_priority + inst 531 crypto/ccm.c inst->alg.base.cra_blocksize = 1; inst 532 crypto/ccm.c inst->alg.base.cra_alignmask = mac->base.cra_alignmask | inst 534 crypto/ccm.c inst->alg.ivsize = 16; inst 535 crypto/ccm.c inst->alg.chunksize = crypto_skcipher_alg_chunksize(ctr); inst 536 crypto/ccm.c inst->alg.maxauthsize = 16; inst 537 crypto/ccm.c inst->alg.base.cra_ctxsize = sizeof(struct crypto_ccm_ctx); inst 538 crypto/ccm.c inst->alg.init = crypto_ccm_init_tfm; inst 539 crypto/ccm.c inst->alg.exit = crypto_ccm_exit_tfm; inst 540 crypto/ccm.c inst->alg.setkey = crypto_ccm_setkey; inst 541 crypto/ccm.c inst->alg.setauthsize = crypto_ccm_setauthsize; inst 542 crypto/ccm.c inst->alg.encrypt = crypto_ccm_encrypt; inst 543 crypto/ccm.c inst->alg.decrypt = crypto_ccm_decrypt; inst 545 crypto/ccm.c inst->free = crypto_ccm_free; inst 547 crypto/ccm.c err = aead_register_instance(tmpl, inst); inst 560 crypto/ccm.c kfree(inst); inst 708 crypto/ccm.c struct aead_instance *inst = aead_alg_instance(tfm); inst 709 crypto/ccm.c struct crypto_aead_spawn *spawn = aead_instance_ctx(inst); inst 738 crypto/ccm.c static void crypto_rfc4309_free(struct aead_instance *inst) inst 740 crypto/ccm.c crypto_drop_aead(aead_instance_ctx(inst)); inst 741 crypto/ccm.c kfree(inst); inst 748 crypto/ccm.c struct aead_instance *inst; inst 765 crypto/ccm.c inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); inst 766 crypto/ccm.c if (!inst) inst 769 crypto/ccm.c spawn = aead_instance_ctx(inst); inst 770 crypto/ccm.c crypto_set_aead_spawn(spawn, aead_crypto_instance(inst)); inst 789 crypto/ccm.c if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, inst 792 crypto/ccm.c snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME, inst 797 crypto/ccm.c inst->alg.base.cra_flags = alg->base.cra_flags & CRYPTO_ALG_ASYNC; inst 798 crypto/ccm.c inst->alg.base.cra_priority = alg->base.cra_priority; inst 799 crypto/ccm.c inst->alg.base.cra_blocksize = 1; inst 800 crypto/ccm.c inst->alg.base.cra_alignmask = alg->base.cra_alignmask; inst 802 crypto/ccm.c inst->alg.ivsize = 8; inst 803 crypto/ccm.c inst->alg.chunksize = crypto_aead_alg_chunksize(alg); inst 804 crypto/ccm.c inst->alg.maxauthsize = 16; inst 806 crypto/ccm.c inst->alg.base.cra_ctxsize = sizeof(struct crypto_rfc4309_ctx); inst 808 crypto/ccm.c inst->alg.init = crypto_rfc4309_init_tfm; inst 809 crypto/ccm.c inst->alg.exit = crypto_rfc4309_exit_tfm; inst 811 crypto/ccm.c inst->alg.setkey = crypto_rfc4309_setkey; inst 812 crypto/ccm.c inst->alg.setauthsize = crypto_rfc4309_setauthsize; inst 813 crypto/ccm.c inst->alg.encrypt = crypto_rfc4309_encrypt; inst 814 crypto/ccm.c inst->alg.decrypt = crypto_rfc4309_decrypt; inst 816 crypto/ccm.c inst->free = crypto_rfc4309_free; inst 818 crypto/ccm.c err = aead_register_instance(tmpl, inst); inst 828 crypto/ccm.c kfree(inst); inst 898 crypto/ccm.c struct crypto_instance *inst = (void *)tfm->__crt_alg; inst 899 crypto/ccm.c struct crypto_spawn *spawn = crypto_instance_ctx(inst); inst 919 crypto/ccm.c struct shash_instance *inst; inst 932 crypto/ccm.c inst = shash_alloc_instance("cbcmac", alg); inst 933 crypto/ccm.c err = PTR_ERR(inst); inst 934 crypto/ccm.c if (IS_ERR(inst)) inst 937 crypto/ccm.c err = crypto_init_spawn(shash_instance_ctx(inst), alg, inst 938 crypto/ccm.c shash_crypto_instance(inst), inst 943 crypto/ccm.c inst->alg.base.cra_priority = alg->cra_priority; inst 944 crypto/ccm.c inst->alg.base.cra_blocksize = 1; inst 946 crypto/ccm.c inst->alg.digestsize = alg->cra_blocksize; inst 947 crypto/ccm.c inst->alg.descsize = ALIGN(sizeof(struct cbcmac_desc_ctx), inst 951 crypto/ccm.c inst->alg.base.cra_ctxsize = sizeof(struct cbcmac_tfm_ctx); inst 952 crypto/ccm.c inst->alg.base.cra_init = cbcmac_init_tfm; inst 953 crypto/ccm.c inst->alg.base.cra_exit = cbcmac_exit_tfm; inst 955 crypto/ccm.c inst->alg.init = crypto_cbcmac_digest_init; inst 956 crypto/ccm.c inst->alg.update = crypto_cbcmac_digest_update; inst 957 crypto/ccm.c inst->alg.final = crypto_cbcmac_digest_final; inst 958 crypto/ccm.c inst->alg.setkey = crypto_cbcmac_digest_setkey; inst 960 crypto/ccm.c err = shash_register_instance(tmpl, inst); inst 964 crypto/ccm.c shash_free_instance(shash_crypto_instance(inst)); inst 202 crypto/cfb.c struct skcipher_instance *inst; inst 206 crypto/cfb.c inst = skcipher_alloc_instance_simple(tmpl, tb, &alg); inst 207 crypto/cfb.c if (IS_ERR(inst)) inst 208 crypto/cfb.c return PTR_ERR(inst); inst 211 crypto/cfb.c inst->alg.base.cra_blocksize = 1; inst 217 crypto/cfb.c inst->alg.chunksize = alg->cra_blocksize; inst 219 crypto/cfb.c inst->alg.encrypt = crypto_cfb_encrypt; inst 220 crypto/cfb.c inst->alg.decrypt = crypto_cfb_decrypt; inst 222 crypto/cfb.c err = skcipher_register_instance(tmpl, inst); inst 224 crypto/cfb.c inst->free(inst); inst 509 crypto/chacha20poly1305.c struct aead_instance *inst = aead_alg_instance(tfm); inst 510 crypto/chacha20poly1305.c struct chachapoly_instance_ctx *ictx = aead_instance_ctx(inst); inst 553 crypto/chacha20poly1305.c static void chachapoly_free(struct aead_instance *inst) inst 555 crypto/chacha20poly1305.c struct chachapoly_instance_ctx *ctx = aead_instance_ctx(inst); inst 559 crypto/chacha20poly1305.c kfree(inst); inst 566 crypto/chacha20poly1305.c struct aead_instance *inst; inst 605 crypto/chacha20poly1305.c inst = kzalloc(sizeof(*inst) + sizeof(*ctx), GFP_KERNEL); inst 606 crypto/chacha20poly1305.c if (!inst) inst 609 crypto/chacha20poly1305.c ctx = aead_instance_ctx(inst); inst 612 crypto/chacha20poly1305.c aead_crypto_instance(inst)); inst 616 crypto/chacha20poly1305.c crypto_set_skcipher_spawn(&ctx->chacha, aead_crypto_instance(inst)); inst 634 crypto/chacha20poly1305.c if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, inst 638 crypto/chacha20poly1305.c if (snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME, inst 643 crypto/chacha20poly1305.c inst->alg.base.cra_flags = (chacha->base.cra_flags | poly->cra_flags) & inst 645 crypto/chacha20poly1305.c inst->alg.base.cra_priority = (chacha->base.cra_priority + inst 647 crypto/chacha20poly1305.c inst->alg.base.cra_blocksize = 1; inst 648 crypto/chacha20poly1305.c inst->alg.base.cra_alignmask = chacha->base.cra_alignmask | inst 650 crypto/chacha20poly1305.c inst->alg.base.cra_ctxsize = sizeof(struct chachapoly_ctx) + inst 652 crypto/chacha20poly1305.c inst->alg.ivsize = ivsize; inst 653 crypto/chacha20poly1305.c inst->alg.chunksize = crypto_skcipher_alg_chunksize(chacha); inst 654 crypto/chacha20poly1305.c inst->alg.maxauthsize = POLY1305_DIGEST_SIZE; inst 655 crypto/chacha20poly1305.c inst->alg.init = chachapoly_init; inst 656 crypto/chacha20poly1305.c inst->alg.exit = chachapoly_exit; inst 657 crypto/chacha20poly1305.c inst->alg.encrypt = chachapoly_encrypt; inst 658 crypto/chacha20poly1305.c inst->alg.decrypt = chachapoly_decrypt; inst 659 crypto/chacha20poly1305.c inst->alg.setkey = chachapoly_setkey; inst 660 crypto/chacha20poly1305.c inst->alg.setauthsize = chachapoly_setauthsize; inst 662 crypto/chacha20poly1305.c inst->free = chachapoly_free; inst 664 crypto/chacha20poly1305.c err = aead_register_instance(tmpl, inst); inst 677 crypto/chacha20poly1305.c kfree(inst); inst 203 crypto/cmac.c struct crypto_instance *inst = (void *)tfm->__crt_alg; inst 204 crypto/cmac.c struct crypto_spawn *spawn = crypto_instance_ctx(inst); inst 224 crypto/cmac.c struct shash_instance *inst; inst 247 crypto/cmac.c inst = shash_alloc_instance("cmac", alg); inst 248 crypto/cmac.c err = PTR_ERR(inst); inst 249 crypto/cmac.c if (IS_ERR(inst)) inst 252 crypto/cmac.c err = crypto_init_spawn(shash_instance_ctx(inst), alg, inst 253 crypto/cmac.c shash_crypto_instance(inst), inst 259 crypto/cmac.c inst->alg.base.cra_alignmask = alignmask; inst 260 crypto/cmac.c inst->alg.base.cra_priority = alg->cra_priority; inst 261 crypto/cmac.c inst->alg.base.cra_blocksize = alg->cra_blocksize; inst 263 crypto/cmac.c inst->alg.digestsize = alg->cra_blocksize; inst 264 crypto/cmac.c inst->alg.descsize = inst 269 crypto/cmac.c inst->alg.base.cra_ctxsize = inst 275 crypto/cmac.c inst->alg.base.cra_init = cmac_init_tfm; inst 276 crypto/cmac.c inst->alg.base.cra_exit = cmac_exit_tfm; inst 278 crypto/cmac.c inst->alg.init = crypto_cmac_digest_init; inst 279 crypto/cmac.c inst->alg.update = crypto_cmac_digest_update; inst 280 crypto/cmac.c inst->alg.final = crypto_cmac_digest_final; inst 281 crypto/cmac.c inst->alg.setkey = crypto_cmac_digest_setkey; inst 283 crypto/cmac.c err = shash_register_instance(tmpl, inst); inst 286 crypto/cmac.c shash_free_instance(shash_crypto_instance(inst)); inst 189 crypto/cryptd.c struct crypto_instance *inst = crypto_tfm_alg_instance(tfm); inst 190 crypto/cryptd.c struct cryptd_instance_ctx *ictx = crypto_instance_ctx(inst); inst 207 crypto/cryptd.c static int cryptd_init_instance(struct crypto_instance *inst, inst 210 crypto/cryptd.c if (snprintf(inst->alg.cra_driver_name, CRYPTO_MAX_ALG_NAME, inst 215 crypto/cryptd.c memcpy(inst->alg.cra_name, alg->cra_name, CRYPTO_MAX_ALG_NAME); inst 217 crypto/cryptd.c inst->alg.cra_priority = alg->cra_priority + 50; inst 218 crypto/cryptd.c inst->alg.cra_blocksize = alg->cra_blocksize; inst 219 crypto/cryptd.c inst->alg.cra_alignmask = alg->cra_alignmask; inst 228 crypto/cryptd.c struct crypto_instance *inst; inst 231 crypto/cryptd.c p = kzalloc(head + sizeof(*inst) + tail, GFP_KERNEL); inst 235 crypto/cryptd.c inst = (void *)(p + head); inst 237 crypto/cryptd.c err = cryptd_init_instance(inst, alg); inst 365 crypto/cryptd.c struct skcipher_instance *inst = skcipher_alg_instance(tfm); inst 366 crypto/cryptd.c struct skcipherd_instance_ctx *ictx = skcipher_instance_ctx(inst); inst 388 crypto/cryptd.c static void cryptd_skcipher_free(struct skcipher_instance *inst) inst 390 crypto/cryptd.c struct skcipherd_instance_ctx *ctx = skcipher_instance_ctx(inst); inst 393 crypto/cryptd.c kfree(inst); inst 401 crypto/cryptd.c struct skcipher_instance *inst; inst 417 crypto/cryptd.c inst = kzalloc(sizeof(*inst) + sizeof(*ctx), GFP_KERNEL); inst 418 crypto/cryptd.c if (!inst) inst 421 crypto/cryptd.c ctx = skcipher_instance_ctx(inst); inst 424 crypto/cryptd.c crypto_set_skcipher_spawn(&ctx->spawn, skcipher_crypto_instance(inst)); inst 430 crypto/cryptd.c err = cryptd_init_instance(skcipher_crypto_instance(inst), &alg->base); inst 434 crypto/cryptd.c inst->alg.base.cra_flags = CRYPTO_ALG_ASYNC | inst 437 crypto/cryptd.c inst->alg.ivsize = crypto_skcipher_alg_ivsize(alg); inst 438 crypto/cryptd.c inst->alg.chunksize = crypto_skcipher_alg_chunksize(alg); inst 439 crypto/cryptd.c inst->alg.min_keysize = crypto_skcipher_alg_min_keysize(alg); inst 440 crypto/cryptd.c inst->alg.max_keysize = crypto_skcipher_alg_max_keysize(alg); inst 442 crypto/cryptd.c inst->alg.base.cra_ctxsize = sizeof(struct cryptd_skcipher_ctx); inst 444 crypto/cryptd.c inst->alg.init = cryptd_skcipher_init_tfm; inst 445 crypto/cryptd.c inst->alg.exit = cryptd_skcipher_exit_tfm; inst 447 crypto/cryptd.c inst->alg.setkey = cryptd_skcipher_setkey; inst 448 crypto/cryptd.c inst->alg.encrypt = cryptd_skcipher_encrypt_enqueue; inst 449 crypto/cryptd.c inst->alg.decrypt = cryptd_skcipher_decrypt_enqueue; inst 451 crypto/cryptd.c inst->free = cryptd_skcipher_free; inst 453 crypto/cryptd.c err = skcipher_register_instance(tmpl, inst); inst 458 crypto/cryptd.c kfree(inst); inst 465 crypto/cryptd.c struct crypto_instance *inst = crypto_tfm_alg_instance(tfm); inst 466 crypto/cryptd.c struct hashd_instance_ctx *ictx = crypto_instance_ctx(inst); inst 673 crypto/cryptd.c struct ahash_instance *inst; inst 687 crypto/cryptd.c inst = cryptd_alloc_instance(alg, ahash_instance_headroom(), inst 689 crypto/cryptd.c err = PTR_ERR(inst); inst 690 crypto/cryptd.c if (IS_ERR(inst)) inst 693 crypto/cryptd.c ctx = ahash_instance_ctx(inst); inst 697 crypto/cryptd.c ahash_crypto_instance(inst)); inst 701 crypto/cryptd.c inst->alg.halg.base.cra_flags = CRYPTO_ALG_ASYNC | inst 705 crypto/cryptd.c inst->alg.halg.digestsize = salg->digestsize; inst 706 crypto/cryptd.c inst->alg.halg.statesize = salg->statesize; inst 707 crypto/cryptd.c inst->alg.halg.base.cra_ctxsize = sizeof(struct cryptd_hash_ctx); inst 709 crypto/cryptd.c inst->alg.halg.base.cra_init = cryptd_hash_init_tfm; inst 710 crypto/cryptd.c inst->alg.halg.base.cra_exit = cryptd_hash_exit_tfm; inst 712 crypto/cryptd.c inst->alg.init = cryptd_hash_init_enqueue; inst 713 crypto/cryptd.c inst->alg.update = cryptd_hash_update_enqueue; inst 714 crypto/cryptd.c inst->alg.final = cryptd_hash_final_enqueue; inst 715 crypto/cryptd.c inst->alg.finup = cryptd_hash_finup_enqueue; inst 716 crypto/cryptd.c inst->alg.export = cryptd_hash_export; inst 717 crypto/cryptd.c inst->alg.import = cryptd_hash_import; inst 719 crypto/cryptd.c inst->alg.setkey = cryptd_hash_setkey; inst 720 crypto/cryptd.c inst->alg.digest = cryptd_hash_digest_enqueue; inst 722 crypto/cryptd.c err = ahash_register_instance(tmpl, inst); inst 726 crypto/cryptd.c kfree(inst); inst 829 crypto/cryptd.c struct aead_instance *inst = aead_alg_instance(tfm); inst 830 crypto/cryptd.c struct aead_instance_ctx *ictx = aead_instance_ctx(inst); inst 857 crypto/cryptd.c struct aead_instance *inst; inst 870 crypto/cryptd.c inst = kzalloc(sizeof(*inst) + sizeof(*ctx), GFP_KERNEL); inst 871 crypto/cryptd.c if (!inst) inst 874 crypto/cryptd.c ctx = aead_instance_ctx(inst); inst 877 crypto/cryptd.c crypto_set_aead_spawn(&ctx->aead_spawn, aead_crypto_instance(inst)); inst 883 crypto/cryptd.c err = cryptd_init_instance(aead_crypto_instance(inst), &alg->base); inst 887 crypto/cryptd.c inst->alg.base.cra_flags = CRYPTO_ALG_ASYNC | inst 889 crypto/cryptd.c inst->alg.base.cra_ctxsize = sizeof(struct cryptd_aead_ctx); inst 891 crypto/cryptd.c inst->alg.ivsize = crypto_aead_alg_ivsize(alg); inst 892 crypto/cryptd.c inst->alg.maxauthsize = crypto_aead_alg_maxauthsize(alg); inst 894 crypto/cryptd.c inst->alg.init = cryptd_aead_init_tfm; inst 895 crypto/cryptd.c inst->alg.exit = cryptd_aead_exit_tfm; inst 896 crypto/cryptd.c inst->alg.setkey = cryptd_aead_setkey; inst 897 crypto/cryptd.c inst->alg.setauthsize = cryptd_aead_setauthsize; inst 898 crypto/cryptd.c inst->alg.encrypt = cryptd_aead_encrypt_enqueue; inst 899 crypto/cryptd.c inst->alg.decrypt = cryptd_aead_decrypt_enqueue; inst 901 crypto/cryptd.c err = aead_register_instance(tmpl, inst); inst 906 crypto/cryptd.c kfree(inst); inst 933 crypto/cryptd.c static void cryptd_free(struct crypto_instance *inst) inst 935 crypto/cryptd.c struct cryptd_instance_ctx *ctx = crypto_instance_ctx(inst); inst 936 crypto/cryptd.c struct hashd_instance_ctx *hctx = crypto_instance_ctx(inst); inst 937 crypto/cryptd.c struct aead_instance_ctx *aead_ctx = crypto_instance_ctx(inst); inst 939 crypto/cryptd.c switch (inst->alg.cra_flags & CRYPTO_ALG_TYPE_MASK) { inst 942 crypto/cryptd.c kfree(ahash_instance(inst)); inst 946 crypto/cryptd.c kfree(aead_instance(inst)); inst 950 crypto/cryptd.c kfree(inst); inst 128 crypto/ctr.c struct skcipher_instance *inst; inst 132 crypto/ctr.c inst = skcipher_alloc_instance_simple(tmpl, tb, &alg); inst 133 crypto/ctr.c if (IS_ERR(inst)) inst 134 crypto/ctr.c return PTR_ERR(inst); inst 146 crypto/ctr.c inst->alg.base.cra_blocksize = 1; inst 152 crypto/ctr.c inst->alg.chunksize = alg->cra_blocksize; inst 154 crypto/ctr.c inst->alg.encrypt = crypto_ctr_crypt; inst 155 crypto/ctr.c inst->alg.decrypt = crypto_ctr_crypt; inst 157 crypto/ctr.c err = skcipher_register_instance(tmpl, inst); inst 163 crypto/ctr.c inst->free(inst); inst 225 crypto/ctr.c struct skcipher_instance *inst = skcipher_alg_instance(tfm); inst 226 crypto/ctr.c struct crypto_skcipher_spawn *spawn = skcipher_instance_ctx(inst); inst 254 crypto/ctr.c static void crypto_rfc3686_free(struct skcipher_instance *inst) inst 256 crypto/ctr.c struct crypto_skcipher_spawn *spawn = skcipher_instance_ctx(inst); inst 259 crypto/ctr.c kfree(inst); inst 266 crypto/ctr.c struct skcipher_instance *inst; inst 285 crypto/ctr.c inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); inst 286 crypto/ctr.c if (!inst) inst 293 crypto/ctr.c spawn = skcipher_instance_ctx(inst); inst 295 crypto/ctr.c crypto_set_skcipher_spawn(spawn, skcipher_crypto_instance(inst)); inst 312 crypto/ctr.c if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, inst 315 crypto/ctr.c if (snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME, inst 320 crypto/ctr.c inst->alg.base.cra_priority = alg->base.cra_priority; inst 321 crypto/ctr.c inst->alg.base.cra_blocksize = 1; inst 322 crypto/ctr.c inst->alg.base.cra_alignmask = alg->base.cra_alignmask; inst 324 crypto/ctr.c inst->alg.base.cra_flags = alg->base.cra_flags & CRYPTO_ALG_ASYNC; inst 326 crypto/ctr.c inst->alg.ivsize = CTR_RFC3686_IV_SIZE; inst 327 crypto/ctr.c inst->alg.chunksize = crypto_skcipher_alg_chunksize(alg); inst 328 crypto/ctr.c inst->alg.min_keysize = crypto_skcipher_alg_min_keysize(alg) + inst 330 crypto/ctr.c inst->alg.max_keysize = crypto_skcipher_alg_max_keysize(alg) + inst 333 crypto/ctr.c inst->alg.setkey = crypto_rfc3686_setkey; inst 334 crypto/ctr.c inst->alg.encrypt = crypto_rfc3686_crypt; inst 335 crypto/ctr.c inst->alg.decrypt = crypto_rfc3686_crypt; inst 337 crypto/ctr.c inst->alg.base.cra_ctxsize = sizeof(struct crypto_rfc3686_ctx); inst 339 crypto/ctr.c inst->alg.init = crypto_rfc3686_init_tfm; inst 340 crypto/ctr.c inst->alg.exit = crypto_rfc3686_exit_tfm; inst 342 crypto/ctr.c inst->free = crypto_rfc3686_free; inst 344 crypto/ctr.c err = skcipher_register_instance(tmpl, inst); inst 354 crypto/ctr.c kfree(inst); inst 289 crypto/cts.c struct skcipher_instance *inst = skcipher_alg_instance(tfm); inst 290 crypto/cts.c struct crypto_skcipher_spawn *spawn = skcipher_instance_ctx(inst); inst 322 crypto/cts.c static void crypto_cts_free(struct skcipher_instance *inst) inst 324 crypto/cts.c crypto_drop_skcipher(skcipher_instance_ctx(inst)); inst 325 crypto/cts.c kfree(inst); inst 331 crypto/cts.c struct skcipher_instance *inst; inst 348 crypto/cts.c inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); inst 349 crypto/cts.c if (!inst) inst 352 crypto/cts.c spawn = skcipher_instance_ctx(inst); inst 354 crypto/cts.c crypto_set_skcipher_spawn(spawn, skcipher_crypto_instance(inst)); inst 370 crypto/cts.c err = crypto_inst_setname(skcipher_crypto_instance(inst), "cts", inst 375 crypto/cts.c inst->alg.base.cra_flags = alg->base.cra_flags & CRYPTO_ALG_ASYNC; inst 376 crypto/cts.c inst->alg.base.cra_priority = alg->base.cra_priority; inst 377 crypto/cts.c inst->alg.base.cra_blocksize = alg->base.cra_blocksize; inst 378 crypto/cts.c inst->alg.base.cra_alignmask = alg->base.cra_alignmask; inst 380 crypto/cts.c inst->alg.ivsize = alg->base.cra_blocksize; inst 381 crypto/cts.c inst->alg.chunksize = crypto_skcipher_alg_chunksize(alg); inst 382 crypto/cts.c inst->alg.min_keysize = crypto_skcipher_alg_min_keysize(alg); inst 383 crypto/cts.c inst->alg.max_keysize = crypto_skcipher_alg_max_keysize(alg); inst 385 crypto/cts.c inst->alg.base.cra_ctxsize = sizeof(struct crypto_cts_ctx); inst 387 crypto/cts.c inst->alg.init = crypto_cts_init_tfm; inst 388 crypto/cts.c inst->alg.exit = crypto_cts_exit_tfm; inst 390 crypto/cts.c inst->alg.setkey = crypto_cts_setkey; inst 391 crypto/cts.c inst->alg.encrypt = crypto_cts_encrypt; inst 392 crypto/cts.c inst->alg.decrypt = crypto_cts_decrypt; inst 394 crypto/cts.c inst->free = crypto_cts_free; inst 396 crypto/cts.c err = skcipher_register_instance(tmpl, inst); inst 406 crypto/cts.c kfree(inst); inst 63 crypto/ecb.c struct skcipher_instance *inst; inst 67 crypto/ecb.c inst = skcipher_alloc_instance_simple(tmpl, tb, &alg); inst 68 crypto/ecb.c if (IS_ERR(inst)) inst 69 crypto/ecb.c return PTR_ERR(inst); inst 71 crypto/ecb.c inst->alg.ivsize = 0; /* ECB mode doesn't take an IV */ inst 73 crypto/ecb.c inst->alg.encrypt = crypto_ecb_encrypt; inst 74 crypto/ecb.c inst->alg.decrypt = crypto_ecb_decrypt; inst 76 crypto/ecb.c err = skcipher_register_instance(tmpl, inst); inst 78 crypto/ecb.c inst->free(inst); inst 115 crypto/echainiv.c struct aead_instance *inst; inst 118 crypto/echainiv.c inst = aead_geniv_alloc(tmpl, tb, 0, 0); inst 120 crypto/echainiv.c if (IS_ERR(inst)) inst 121 crypto/echainiv.c return PTR_ERR(inst); inst 124 crypto/echainiv.c if (inst->alg.ivsize & (sizeof(u64) - 1) || !inst->alg.ivsize) inst 127 crypto/echainiv.c inst->alg.encrypt = echainiv_encrypt; inst 128 crypto/echainiv.c inst->alg.decrypt = echainiv_decrypt; inst 130 crypto/echainiv.c inst->alg.init = aead_init_geniv; inst 131 crypto/echainiv.c inst->alg.exit = aead_exit_geniv; inst 133 crypto/echainiv.c inst->alg.base.cra_ctxsize = sizeof(struct aead_geniv_ctx); inst 134 crypto/echainiv.c inst->alg.base.cra_ctxsize += inst->alg.ivsize; inst 136 crypto/echainiv.c inst->free = aead_geniv_free; inst 138 crypto/echainiv.c err = aead_register_instance(tmpl, inst); inst 146 crypto/echainiv.c aead_geniv_free(inst); inst 150 crypto/echainiv.c static void echainiv_free(struct crypto_instance *inst) inst 152 crypto/echainiv.c aead_geniv_free(aead_instance(inst)); inst 312 crypto/essiv.c struct skcipher_instance *inst = skcipher_alg_instance(tfm); inst 313 crypto/essiv.c struct essiv_instance_ctx *ictx = skcipher_instance_ctx(inst); inst 337 crypto/essiv.c struct aead_instance *inst = aead_alg_instance(tfm); inst 338 crypto/essiv.c struct essiv_instance_ctx *ictx = aead_instance_ctx(inst); inst 386 crypto/essiv.c static void essiv_skcipher_free_instance(struct skcipher_instance *inst) inst 388 crypto/essiv.c struct essiv_instance_ctx *ictx = skcipher_instance_ctx(inst); inst 391 crypto/essiv.c kfree(inst); inst 394 crypto/essiv.c static void essiv_aead_free_instance(struct aead_instance *inst) inst 396 crypto/essiv.c struct essiv_instance_ctx *ictx = aead_instance_ctx(inst); inst 399 crypto/essiv.c kfree(inst); inst 463 crypto/essiv.c struct crypto_instance *inst; inst 494 crypto/essiv.c inst = skcipher_crypto_instance(skcipher_inst); inst 496 crypto/essiv.c ictx = crypto_instance_ctx(inst); inst 499 crypto/essiv.c crypto_set_skcipher_spawn(&ictx->u.skcipher_spawn, inst); inst 516 crypto/essiv.c inst = aead_crypto_instance(aead_inst); inst 518 crypto/essiv.c ictx = crypto_instance_ctx(inst); inst 521 crypto/essiv.c crypto_set_aead_spawn(&ictx->u.aead_spawn, inst); inst 529 crypto/gcm.c struct aead_instance *inst = aead_alg_instance(tfm); inst 530 crypto/gcm.c struct gcm_instance_ctx *ictx = aead_instance_ctx(inst); inst 573 crypto/gcm.c static void crypto_gcm_free(struct aead_instance *inst) inst 575 crypto/gcm.c struct gcm_instance_ctx *ctx = aead_instance_ctx(inst); inst 579 crypto/gcm.c kfree(inst); inst 588 crypto/gcm.c struct aead_instance *inst; inst 613 crypto/gcm.c inst = kzalloc(sizeof(*inst) + sizeof(*ctx), GFP_KERNEL); inst 614 crypto/gcm.c if (!inst) inst 617 crypto/gcm.c ctx = aead_instance_ctx(inst); inst 619 crypto/gcm.c aead_crypto_instance(inst)); inst 628 crypto/gcm.c crypto_set_skcipher_spawn(&ctx->ctr, aead_crypto_instance(inst)); inst 645 crypto/gcm.c if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, inst 649 crypto/gcm.c if (snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME, inst 655 crypto/gcm.c inst->alg.base.cra_flags = (ghash->base.cra_flags | inst 657 crypto/gcm.c inst->alg.base.cra_priority = (ghash->base.cra_priority + inst 659 crypto/gcm.c inst->alg.base.cra_blocksize = 1; inst 660 crypto/gcm.c inst->alg.base.cra_alignmask = ghash->base.cra_alignmask | inst 662 crypto/gcm.c inst->alg.base.cra_ctxsize = sizeof(struct crypto_gcm_ctx); inst 663 crypto/gcm.c inst->alg.ivsize = GCM_AES_IV_SIZE; inst 664 crypto/gcm.c inst->alg.chunksize = crypto_skcipher_alg_chunksize(ctr); inst 665 crypto/gcm.c inst->alg.maxauthsize = 16; inst 666 crypto/gcm.c inst->alg.init = crypto_gcm_init_tfm; inst 667 crypto/gcm.c inst->alg.exit = crypto_gcm_exit_tfm; inst 668 crypto/gcm.c inst->alg.setkey = crypto_gcm_setkey; inst 669 crypto/gcm.c inst->alg.setauthsize = crypto_gcm_setauthsize; inst 670 crypto/gcm.c inst->alg.encrypt = crypto_gcm_encrypt; inst 671 crypto/gcm.c inst->alg.decrypt = crypto_gcm_decrypt; inst 673 crypto/gcm.c inst->free = crypto_gcm_free; inst 675 crypto/gcm.c err = aead_register_instance(tmpl, inst); inst 688 crypto/gcm.c kfree(inst); inst 830 crypto/gcm.c struct aead_instance *inst = aead_alg_instance(tfm); inst 831 crypto/gcm.c struct crypto_aead_spawn *spawn = aead_instance_ctx(inst); inst 860 crypto/gcm.c static void crypto_rfc4106_free(struct aead_instance *inst) inst 862 crypto/gcm.c crypto_drop_aead(aead_instance_ctx(inst)); inst 863 crypto/gcm.c kfree(inst); inst 870 crypto/gcm.c struct aead_instance *inst; inst 887 crypto/gcm.c inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); inst 888 crypto/gcm.c if (!inst) inst 891 crypto/gcm.c spawn = aead_instance_ctx(inst); inst 892 crypto/gcm.c crypto_set_aead_spawn(spawn, aead_crypto_instance(inst)); inst 911 crypto/gcm.c if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, inst 914 crypto/gcm.c snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME, inst 919 crypto/gcm.c inst->alg.base.cra_flags = alg->base.cra_flags & CRYPTO_ALG_ASYNC; inst 920 crypto/gcm.c inst->alg.base.cra_priority = alg->base.cra_priority; inst 921 crypto/gcm.c inst->alg.base.cra_blocksize = 1; inst 922 crypto/gcm.c inst->alg.base.cra_alignmask = alg->base.cra_alignmask; inst 924 crypto/gcm.c inst->alg.base.cra_ctxsize = sizeof(struct crypto_rfc4106_ctx); inst 926 crypto/gcm.c inst->alg.ivsize = GCM_RFC4106_IV_SIZE; inst 927 crypto/gcm.c inst->alg.chunksize = crypto_aead_alg_chunksize(alg); inst 928 crypto/gcm.c inst->alg.maxauthsize = crypto_aead_alg_maxauthsize(alg); inst 930 crypto/gcm.c inst->alg.init = crypto_rfc4106_init_tfm; inst 931 crypto/gcm.c inst->alg.exit = crypto_rfc4106_exit_tfm; inst 933 crypto/gcm.c inst->alg.setkey = crypto_rfc4106_setkey; inst 934 crypto/gcm.c inst->alg.setauthsize = crypto_rfc4106_setauthsize; inst 935 crypto/gcm.c inst->alg.encrypt = crypto_rfc4106_encrypt; inst 936 crypto/gcm.c inst->alg.decrypt = crypto_rfc4106_decrypt; inst 938 crypto/gcm.c inst->free = crypto_rfc4106_free; inst 940 crypto/gcm.c err = aead_register_instance(tmpl, inst); inst 950 crypto/gcm.c kfree(inst); inst 1049 crypto/gcm.c struct aead_instance *inst = aead_alg_instance(tfm); inst 1050 crypto/gcm.c struct crypto_rfc4543_instance_ctx *ictx = aead_instance_ctx(inst); inst 1093 crypto/gcm.c static void crypto_rfc4543_free(struct aead_instance *inst) inst 1095 crypto/gcm.c struct crypto_rfc4543_instance_ctx *ctx = aead_instance_ctx(inst); inst 1099 crypto/gcm.c kfree(inst); inst 1106 crypto/gcm.c struct aead_instance *inst; inst 1124 crypto/gcm.c inst = kzalloc(sizeof(*inst) + sizeof(*ctx), GFP_KERNEL); inst 1125 crypto/gcm.c if (!inst) inst 1128 crypto/gcm.c ctx = aead_instance_ctx(inst); inst 1130 crypto/gcm.c crypto_set_aead_spawn(spawn, aead_crypto_instance(inst)); inst 1149 crypto/gcm.c if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, inst 1152 crypto/gcm.c snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME, inst 1157 crypto/gcm.c inst->alg.base.cra_flags = alg->base.cra_flags & CRYPTO_ALG_ASYNC; inst 1158 crypto/gcm.c inst->alg.base.cra_priority = alg->base.cra_priority; inst 1159 crypto/gcm.c inst->alg.base.cra_blocksize = 1; inst 1160 crypto/gcm.c inst->alg.base.cra_alignmask = alg->base.cra_alignmask; inst 1162 crypto/gcm.c inst->alg.base.cra_ctxsize = sizeof(struct crypto_rfc4543_ctx); inst 1164 crypto/gcm.c inst->alg.ivsize = GCM_RFC4543_IV_SIZE; inst 1165 crypto/gcm.c inst->alg.chunksize = crypto_aead_alg_chunksize(alg); inst 1166 crypto/gcm.c inst->alg.maxauthsize = crypto_aead_alg_maxauthsize(alg); inst 1168 crypto/gcm.c inst->alg.init = crypto_rfc4543_init_tfm; inst 1169 crypto/gcm.c inst->alg.exit = crypto_rfc4543_exit_tfm; inst 1171 crypto/gcm.c inst->alg.setkey = crypto_rfc4543_setkey; inst 1172 crypto/gcm.c inst->alg.setauthsize = crypto_rfc4543_setauthsize; inst 1173 crypto/gcm.c inst->alg.encrypt = crypto_rfc4543_encrypt; inst 1174 crypto/gcm.c inst->alg.decrypt = crypto_rfc4543_decrypt; inst 1176 crypto/gcm.c inst->free = crypto_rfc4543_free, inst 1178 crypto/gcm.c err = aead_register_instance(tmpl, inst); inst 1188 crypto/gcm.c kfree(inst); inst 145 crypto/hmac.c struct crypto_instance *inst = (void *)tfm->__crt_alg; inst 146 crypto/hmac.c struct crypto_shash_spawn *spawn = crypto_instance_ctx(inst); inst 172 crypto/hmac.c struct shash_instance *inst; inst 199 crypto/hmac.c inst = shash_alloc_instance("hmac", alg); inst 200 crypto/hmac.c err = PTR_ERR(inst); inst 201 crypto/hmac.c if (IS_ERR(inst)) inst 204 crypto/hmac.c err = crypto_init_shash_spawn(shash_instance_ctx(inst), salg, inst 205 crypto/hmac.c shash_crypto_instance(inst)); inst 209 crypto/hmac.c inst->alg.base.cra_priority = alg->cra_priority; inst 210 crypto/hmac.c inst->alg.base.cra_blocksize = alg->cra_blocksize; inst 211 crypto/hmac.c inst->alg.base.cra_alignmask = alg->cra_alignmask; inst 214 crypto/hmac.c inst->alg.digestsize = ds; inst 215 crypto/hmac.c inst->alg.statesize = ss; inst 217 crypto/hmac.c inst->alg.base.cra_ctxsize = sizeof(struct hmac_ctx) + inst 220 crypto/hmac.c inst->alg.base.cra_init = hmac_init_tfm; inst 221 crypto/hmac.c inst->alg.base.cra_exit = hmac_exit_tfm; inst 223 crypto/hmac.c inst->alg.init = hmac_init; inst 224 crypto/hmac.c inst->alg.update = hmac_update; inst 225 crypto/hmac.c inst->alg.final = hmac_final; inst 226 crypto/hmac.c inst->alg.finup = hmac_finup; inst 227 crypto/hmac.c inst->alg.export = hmac_export; inst 228 crypto/hmac.c inst->alg.import = hmac_import; inst 229 crypto/hmac.c inst->alg.setkey = hmac_setkey; inst 231 crypto/hmac.c err = shash_register_instance(tmpl, inst); inst 234 crypto/hmac.c shash_free_instance(shash_crypto_instance(inst)); inst 265 crypto/keywrap.c struct skcipher_instance *inst; inst 269 crypto/keywrap.c inst = skcipher_alloc_instance_simple(tmpl, tb, &alg); inst 270 crypto/keywrap.c if (IS_ERR(inst)) inst 271 crypto/keywrap.c return PTR_ERR(inst); inst 278 crypto/keywrap.c inst->alg.base.cra_blocksize = SEMIBSIZE; inst 279 crypto/keywrap.c inst->alg.base.cra_alignmask = 0; inst 280 crypto/keywrap.c inst->alg.ivsize = SEMIBSIZE; inst 282 crypto/keywrap.c inst->alg.encrypt = crypto_kw_encrypt; inst 283 crypto/keywrap.c inst->alg.decrypt = crypto_kw_decrypt; inst 285 crypto/keywrap.c err = skcipher_register_instance(tmpl, inst); inst 291 crypto/keywrap.c inst->free(inst); inst 266 crypto/lrw.c struct skcipher_instance *inst = skcipher_alg_instance(tfm); inst 267 crypto/lrw.c struct crypto_skcipher_spawn *spawn = skcipher_instance_ctx(inst); inst 292 crypto/lrw.c static void free_inst(struct skcipher_instance *inst) inst 294 crypto/lrw.c crypto_drop_skcipher(skcipher_instance_ctx(inst)); inst 295 crypto/lrw.c kfree(inst); inst 301 crypto/lrw.c struct skcipher_instance *inst; inst 319 crypto/lrw.c inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); inst 320 crypto/lrw.c if (!inst) inst 323 crypto/lrw.c spawn = skcipher_instance_ctx(inst); inst 325 crypto/lrw.c crypto_set_skcipher_spawn(spawn, skcipher_crypto_instance(inst)); inst 352 crypto/lrw.c err = crypto_inst_setname(skcipher_crypto_instance(inst), "lrw", inst 375 crypto/lrw.c if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, inst 383 crypto/lrw.c inst->alg.base.cra_flags = alg->base.cra_flags & CRYPTO_ALG_ASYNC; inst 384 crypto/lrw.c inst->alg.base.cra_priority = alg->base.cra_priority; inst 385 crypto/lrw.c inst->alg.base.cra_blocksize = LRW_BLOCK_SIZE; inst 386 crypto/lrw.c inst->alg.base.cra_alignmask = alg->base.cra_alignmask | inst 389 crypto/lrw.c inst->alg.ivsize = LRW_BLOCK_SIZE; inst 390 crypto/lrw.c inst->alg.min_keysize = crypto_skcipher_alg_min_keysize(alg) + inst 392 crypto/lrw.c inst->alg.max_keysize = crypto_skcipher_alg_max_keysize(alg) + inst 395 crypto/lrw.c inst->alg.base.cra_ctxsize = sizeof(struct priv); inst 397 crypto/lrw.c inst->alg.init = init_tfm; inst 398 crypto/lrw.c inst->alg.exit = exit_tfm; inst 400 crypto/lrw.c inst->alg.setkey = setkey; inst 401 crypto/lrw.c inst->alg.encrypt = encrypt; inst 402 crypto/lrw.c inst->alg.decrypt = decrypt; inst 404 crypto/lrw.c inst->free = free_inst; inst 406 crypto/lrw.c err = skcipher_register_instance(tmpl, inst); inst 416 crypto/lrw.c kfree(inst); inst 54 crypto/ofb.c struct skcipher_instance *inst; inst 58 crypto/ofb.c inst = skcipher_alloc_instance_simple(tmpl, tb, &alg); inst 59 crypto/ofb.c if (IS_ERR(inst)) inst 60 crypto/ofb.c return PTR_ERR(inst); inst 63 crypto/ofb.c inst->alg.base.cra_blocksize = 1; inst 69 crypto/ofb.c inst->alg.chunksize = alg->cra_blocksize; inst 71 crypto/ofb.c inst->alg.encrypt = crypto_ofb_crypt; inst 72 crypto/ofb.c inst->alg.decrypt = crypto_ofb_crypt; inst 74 crypto/ofb.c err = skcipher_register_instance(tmpl, inst); inst 76 crypto/ofb.c inst->free(inst); inst 155 crypto/pcbc.c struct skcipher_instance *inst; inst 159 crypto/pcbc.c inst = skcipher_alloc_instance_simple(tmpl, tb, &alg); inst 160 crypto/pcbc.c if (IS_ERR(inst)) inst 161 crypto/pcbc.c return PTR_ERR(inst); inst 163 crypto/pcbc.c inst->alg.encrypt = crypto_pcbc_encrypt; inst 164 crypto/pcbc.c inst->alg.decrypt = crypto_pcbc_decrypt; inst 166 crypto/pcbc.c err = skcipher_register_instance(tmpl, inst); inst 168 crypto/pcbc.c inst->free(inst); inst 171 crypto/pcrypt.c struct aead_instance *inst = aead_alg_instance(tfm); inst 172 crypto/pcrypt.c struct pcrypt_instance_ctx *ictx = aead_instance_ctx(inst); inst 203 crypto/pcrypt.c static void pcrypt_free(struct aead_instance *inst) inst 205 crypto/pcrypt.c struct pcrypt_instance_ctx *ctx = aead_instance_ctx(inst); inst 210 crypto/pcrypt.c kfree(inst); inst 213 crypto/pcrypt.c static int pcrypt_init_instance(struct crypto_instance *inst, inst 216 crypto/pcrypt.c if (snprintf(inst->alg.cra_driver_name, CRYPTO_MAX_ALG_NAME, inst 220 crypto/pcrypt.c memcpy(inst->alg.cra_name, alg->cra_name, CRYPTO_MAX_ALG_NAME); inst 222 crypto/pcrypt.c inst->alg.cra_priority = alg->cra_priority + 100; inst 223 crypto/pcrypt.c inst->alg.cra_blocksize = alg->cra_blocksize; inst 224 crypto/pcrypt.c inst->alg.cra_alignmask = alg->cra_alignmask; inst 234 crypto/pcrypt.c struct aead_instance *inst; inst 247 crypto/pcrypt.c inst = kzalloc(sizeof(*inst) + sizeof(*ctx), GFP_KERNEL); inst 248 crypto/pcrypt.c if (!inst) inst 253 crypto/pcrypt.c ctx = aead_instance_ctx(inst); inst 262 crypto/pcrypt.c crypto_set_aead_spawn(&ctx->spawn, aead_crypto_instance(inst)); inst 269 crypto/pcrypt.c err = pcrypt_init_instance(aead_crypto_instance(inst), &alg->base); inst 273 crypto/pcrypt.c inst->alg.base.cra_flags = CRYPTO_ALG_ASYNC; inst 275 crypto/pcrypt.c inst->alg.ivsize = crypto_aead_alg_ivsize(alg); inst 276 crypto/pcrypt.c inst->alg.maxauthsize = crypto_aead_alg_maxauthsize(alg); inst 278 crypto/pcrypt.c inst->alg.base.cra_ctxsize = sizeof(struct pcrypt_aead_ctx); inst 280 crypto/pcrypt.c inst->alg.init = pcrypt_aead_init_tfm; inst 281 crypto/pcrypt.c inst->alg.exit = pcrypt_aead_exit_tfm; inst 283 crypto/pcrypt.c inst->alg.setkey = pcrypt_aead_setkey; inst 284 crypto/pcrypt.c inst->alg.setauthsize = pcrypt_aead_setauthsize; inst 285 crypto/pcrypt.c inst->alg.encrypt = pcrypt_aead_encrypt; inst 286 crypto/pcrypt.c inst->alg.decrypt = pcrypt_aead_decrypt; inst 288 crypto/pcrypt.c inst->free = pcrypt_free; inst 290 crypto/pcrypt.c err = aead_register_instance(tmpl, inst); inst 304 crypto/pcrypt.c kfree(inst); inst 383 crypto/rsa-pkcs1pad.c struct akcipher_instance *inst = akcipher_alg_instance(tfm); inst 384 crypto/rsa-pkcs1pad.c struct pkcs1pad_inst_ctx *ictx = akcipher_instance_ctx(inst); inst 440 crypto/rsa-pkcs1pad.c struct akcipher_instance *inst = akcipher_alg_instance(tfm); inst 441 crypto/rsa-pkcs1pad.c struct pkcs1pad_inst_ctx *ictx = akcipher_instance_ctx(inst); inst 568 crypto/rsa-pkcs1pad.c struct akcipher_instance *inst = akcipher_alg_instance(tfm); inst 569 crypto/rsa-pkcs1pad.c struct pkcs1pad_inst_ctx *ictx = akcipher_instance_ctx(inst); inst 588 crypto/rsa-pkcs1pad.c static void pkcs1pad_free(struct akcipher_instance *inst) inst 590 crypto/rsa-pkcs1pad.c struct pkcs1pad_inst_ctx *ctx = akcipher_instance_ctx(inst); inst 594 crypto/rsa-pkcs1pad.c kfree(inst); inst 601 crypto/rsa-pkcs1pad.c struct akcipher_instance *inst; inst 631 crypto/rsa-pkcs1pad.c inst = kzalloc(sizeof(*inst) + sizeof(*ctx), GFP_KERNEL); inst 632 crypto/rsa-pkcs1pad.c if (!inst) inst 635 crypto/rsa-pkcs1pad.c ctx = akcipher_instance_ctx(inst); inst 639 crypto/rsa-pkcs1pad.c crypto_set_spawn(&spawn->base, akcipher_crypto_instance(inst)); inst 650 crypto/rsa-pkcs1pad.c if (snprintf(inst->alg.base.cra_name, inst 655 crypto/rsa-pkcs1pad.c if (snprintf(inst->alg.base.cra_driver_name, inst 661 crypto/rsa-pkcs1pad.c if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, inst 666 crypto/rsa-pkcs1pad.c if (snprintf(inst->alg.base.cra_driver_name, inst 673 crypto/rsa-pkcs1pad.c inst->alg.base.cra_flags = rsa_alg->base.cra_flags & CRYPTO_ALG_ASYNC; inst 674 crypto/rsa-pkcs1pad.c inst->alg.base.cra_priority = rsa_alg->base.cra_priority; inst 675 crypto/rsa-pkcs1pad.c inst->alg.base.cra_ctxsize = sizeof(struct pkcs1pad_ctx); inst 677 crypto/rsa-pkcs1pad.c inst->alg.init = pkcs1pad_init_tfm; inst 678 crypto/rsa-pkcs1pad.c inst->alg.exit = pkcs1pad_exit_tfm; inst 680 crypto/rsa-pkcs1pad.c inst->alg.encrypt = pkcs1pad_encrypt; inst 681 crypto/rsa-pkcs1pad.c inst->alg.decrypt = pkcs1pad_decrypt; inst 682 crypto/rsa-pkcs1pad.c inst->alg.sign = pkcs1pad_sign; inst 683 crypto/rsa-pkcs1pad.c inst->alg.verify = pkcs1pad_verify; inst 684 crypto/rsa-pkcs1pad.c inst->alg.set_pub_key = pkcs1pad_set_pub_key; inst 685 crypto/rsa-pkcs1pad.c inst->alg.set_priv_key = pkcs1pad_set_priv_key; inst 686 crypto/rsa-pkcs1pad.c inst->alg.max_size = pkcs1pad_get_max_size; inst 687 crypto/rsa-pkcs1pad.c inst->alg.reqsize = sizeof(struct pkcs1pad_request) + rsa_alg->reqsize; inst 689 crypto/rsa-pkcs1pad.c inst->free = pkcs1pad_free; inst 691 crypto/rsa-pkcs1pad.c err = akcipher_register_instance(tmpl, inst); inst 700 crypto/rsa-pkcs1pad.c kfree(inst); inst 21 crypto/seqiv.c static void seqiv_free(struct crypto_instance *inst); inst 140 crypto/seqiv.c struct aead_instance *inst; inst 143 crypto/seqiv.c inst = aead_geniv_alloc(tmpl, tb, 0, 0); inst 145 crypto/seqiv.c if (IS_ERR(inst)) inst 146 crypto/seqiv.c return PTR_ERR(inst); inst 149 crypto/seqiv.c if (inst->alg.ivsize != sizeof(u64)) inst 152 crypto/seqiv.c inst->alg.encrypt = seqiv_aead_encrypt; inst 153 crypto/seqiv.c inst->alg.decrypt = seqiv_aead_decrypt; inst 155 crypto/seqiv.c inst->alg.init = aead_init_geniv; inst 156 crypto/seqiv.c inst->alg.exit = aead_exit_geniv; inst 158 crypto/seqiv.c inst->alg.base.cra_ctxsize = sizeof(struct aead_geniv_ctx); inst 159 crypto/seqiv.c inst->alg.base.cra_ctxsize += inst->alg.ivsize; inst 161 crypto/seqiv.c err = aead_register_instance(tmpl, inst); inst 169 crypto/seqiv.c aead_geniv_free(inst); inst 187 crypto/seqiv.c static void seqiv_free(struct crypto_instance *inst) inst 189 crypto/seqiv.c aead_geniv_free(aead_instance(inst)); inst 541 crypto/shash.c struct shash_instance *inst) inst 545 crypto/shash.c err = shash_prepare_alg(&inst->alg); inst 549 crypto/shash.c return crypto_register_instance(tmpl, shash_crypto_instance(inst)); inst 553 crypto/shash.c void shash_free_instance(struct crypto_instance *inst) inst 555 crypto/shash.c crypto_drop_spawn(crypto_instance_ctx(inst)); inst 556 crypto/shash.c kfree(shash_instance(inst)); inst 562 crypto/shash.c struct crypto_instance *inst) inst 564 crypto/shash.c return crypto_init_spawn2(&spawn->base, &alg->base, inst, inst 914 crypto/skcipher.c static void crypto_skcipher_free_instance(struct crypto_instance *inst) inst 917 crypto/skcipher.c container_of(inst, struct skcipher_instance, s.base); inst 1096 crypto/skcipher.c struct skcipher_instance *inst) inst 1100 crypto/skcipher.c err = skcipher_prepare_alg(&inst->alg); inst 1104 crypto/skcipher.c return crypto_register_instance(tmpl, skcipher_crypto_instance(inst)); inst 1125 crypto/skcipher.c struct skcipher_instance *inst = skcipher_alg_instance(tfm); inst 1126 crypto/skcipher.c struct crypto_spawn *spawn = skcipher_instance_ctx(inst); inst 1145 crypto/skcipher.c static void skcipher_free_instance_simple(struct skcipher_instance *inst) inst 1147 crypto/skcipher.c crypto_drop_spawn(skcipher_instance_ctx(inst)); inst 1148 crypto/skcipher.c kfree(inst); inst 1175 crypto/skcipher.c struct skcipher_instance *inst; inst 1195 crypto/skcipher.c inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); inst 1196 crypto/skcipher.c if (!inst) { inst 1200 crypto/skcipher.c spawn = skcipher_instance_ctx(inst); inst 1202 crypto/skcipher.c err = crypto_inst_setname(skcipher_crypto_instance(inst), tmpl->name, inst 1208 crypto/skcipher.c skcipher_crypto_instance(inst), inst 1212 crypto/skcipher.c inst->free = skcipher_free_instance_simple; inst 1215 crypto/skcipher.c inst->alg.base.cra_blocksize = cipher_alg->cra_blocksize; inst 1216 crypto/skcipher.c inst->alg.base.cra_alignmask = cipher_alg->cra_alignmask; inst 1217 crypto/skcipher.c inst->alg.base.cra_priority = cipher_alg->cra_priority; inst 1218 crypto/skcipher.c inst->alg.min_keysize = cipher_alg->cra_cipher.cia_min_keysize; inst 1219 crypto/skcipher.c inst->alg.max_keysize = cipher_alg->cra_cipher.cia_max_keysize; inst 1220 crypto/skcipher.c inst->alg.ivsize = cipher_alg->cra_blocksize; inst 1223 crypto/skcipher.c inst->alg.base.cra_ctxsize = sizeof(struct skcipher_ctx_simple); inst 1224 crypto/skcipher.c inst->alg.setkey = skcipher_setkey_simple; inst 1225 crypto/skcipher.c inst->alg.init = skcipher_init_tfm_simple; inst 1226 crypto/skcipher.c inst->alg.exit = skcipher_exit_tfm_simple; inst 1229 crypto/skcipher.c return inst; inst 1232 crypto/skcipher.c kfree(inst); inst 600 crypto/vmac.c struct crypto_instance *inst = crypto_tfm_alg_instance(tfm); inst 601 crypto/vmac.c struct crypto_spawn *spawn = crypto_instance_ctx(inst); inst 622 crypto/vmac.c struct shash_instance *inst; inst 639 crypto/vmac.c inst = shash_alloc_instance(tmpl->name, alg); inst 640 crypto/vmac.c err = PTR_ERR(inst); inst 641 crypto/vmac.c if (IS_ERR(inst)) inst 644 crypto/vmac.c err = crypto_init_spawn(shash_instance_ctx(inst), alg, inst 645 crypto/vmac.c shash_crypto_instance(inst), inst 650 crypto/vmac.c inst->alg.base.cra_priority = alg->cra_priority; inst 651 crypto/vmac.c inst->alg.base.cra_blocksize = alg->cra_blocksize; inst 652 crypto/vmac.c inst->alg.base.cra_alignmask = alg->cra_alignmask; inst 654 crypto/vmac.c inst->alg.base.cra_ctxsize = sizeof(struct vmac_tfm_ctx); inst 655 crypto/vmac.c inst->alg.base.cra_init = vmac_init_tfm; inst 656 crypto/vmac.c inst->alg.base.cra_exit = vmac_exit_tfm; inst 658 crypto/vmac.c inst->alg.descsize = sizeof(struct vmac_desc_ctx); inst 659 crypto/vmac.c inst->alg.digestsize = VMAC_TAG_LEN / 8; inst 660 crypto/vmac.c inst->alg.init = vmac_init; inst 661 crypto/vmac.c inst->alg.update = vmac_update; inst 662 crypto/vmac.c inst->alg.final = vmac_final; inst 663 crypto/vmac.c inst->alg.setkey = vmac_setkey; inst 665 crypto/vmac.c err = shash_register_instance(tmpl, inst); inst 668 crypto/vmac.c shash_free_instance(shash_crypto_instance(inst)); inst 169 crypto/xcbc.c struct crypto_instance *inst = (void *)tfm->__crt_alg; inst 170 crypto/xcbc.c struct crypto_spawn *spawn = crypto_instance_ctx(inst); inst 190 crypto/xcbc.c struct shash_instance *inst; inst 211 crypto/xcbc.c inst = shash_alloc_instance("xcbc", alg); inst 212 crypto/xcbc.c err = PTR_ERR(inst); inst 213 crypto/xcbc.c if (IS_ERR(inst)) inst 216 crypto/xcbc.c err = crypto_init_spawn(shash_instance_ctx(inst), alg, inst 217 crypto/xcbc.c shash_crypto_instance(inst), inst 223 crypto/xcbc.c inst->alg.base.cra_alignmask = alignmask; inst 224 crypto/xcbc.c inst->alg.base.cra_priority = alg->cra_priority; inst 225 crypto/xcbc.c inst->alg.base.cra_blocksize = alg->cra_blocksize; inst 227 crypto/xcbc.c inst->alg.digestsize = alg->cra_blocksize; inst 228 crypto/xcbc.c inst->alg.descsize = ALIGN(sizeof(struct xcbc_desc_ctx), inst 234 crypto/xcbc.c inst->alg.base.cra_ctxsize = ALIGN(sizeof(struct xcbc_tfm_ctx), inst 237 crypto/xcbc.c inst->alg.base.cra_init = xcbc_init_tfm; inst 238 crypto/xcbc.c inst->alg.base.cra_exit = xcbc_exit_tfm; inst 240 crypto/xcbc.c inst->alg.init = crypto_xcbc_digest_init; inst 241 crypto/xcbc.c inst->alg.update = crypto_xcbc_digest_update; inst 242 crypto/xcbc.c inst->alg.final = crypto_xcbc_digest_final; inst 243 crypto/xcbc.c inst->alg.setkey = crypto_xcbc_digest_setkey; inst 245 crypto/xcbc.c err = shash_register_instance(tmpl, inst); inst 248 crypto/xcbc.c shash_free_instance(shash_crypto_instance(inst)); inst 297 crypto/xts.c struct skcipher_instance *inst = skcipher_alg_instance(tfm); inst 298 crypto/xts.c struct xts_instance_ctx *ictx = skcipher_instance_ctx(inst); inst 331 crypto/xts.c static void free_inst(struct skcipher_instance *inst) inst 333 crypto/xts.c crypto_drop_skcipher(skcipher_instance_ctx(inst)); inst 334 crypto/xts.c kfree(inst); inst 339 crypto/xts.c struct skcipher_instance *inst; inst 358 crypto/xts.c inst = kzalloc(sizeof(*inst) + sizeof(*ctx), GFP_KERNEL); inst 359 crypto/xts.c if (!inst) inst 362 crypto/xts.c ctx = skcipher_instance_ctx(inst); inst 364 crypto/xts.c crypto_set_skcipher_spawn(&ctx->spawn, skcipher_crypto_instance(inst)); inst 392 crypto/xts.c err = crypto_inst_setname(skcipher_crypto_instance(inst), "xts", inst 415 crypto/xts.c if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, inst 423 crypto/xts.c inst->alg.base.cra_flags = alg->base.cra_flags & CRYPTO_ALG_ASYNC; inst 424 crypto/xts.c inst->alg.base.cra_priority = alg->base.cra_priority; inst 425 crypto/xts.c inst->alg.base.cra_blocksize = XTS_BLOCK_SIZE; inst 426 crypto/xts.c inst->alg.base.cra_alignmask = alg->base.cra_alignmask | inst 429 crypto/xts.c inst->alg.ivsize = XTS_BLOCK_SIZE; inst 430 crypto/xts.c inst->alg.min_keysize = crypto_skcipher_alg_min_keysize(alg) * 2; inst 431 crypto/xts.c inst->alg.max_keysize = crypto_skcipher_alg_max_keysize(alg) * 2; inst 433 crypto/xts.c inst->alg.base.cra_ctxsize = sizeof(struct priv); inst 435 crypto/xts.c inst->alg.init = init_tfm; inst 436 crypto/xts.c inst->alg.exit = exit_tfm; inst 438 crypto/xts.c inst->alg.setkey = setkey; inst 439 crypto/xts.c inst->alg.encrypt = encrypt; inst 440 crypto/xts.c inst->alg.decrypt = decrypt; inst 442 crypto/xts.c inst->free = free_inst; inst 444 crypto/xts.c err = skcipher_register_instance(tmpl, inst); inst 454 crypto/xts.c kfree(inst); inst 11 drivers/char/ipmi/ipmi_plat_data.c struct platform_device *ipmi_platform_add(const char *name, unsigned int inst, inst 48 drivers/char/ipmi/ipmi_plat_data.c pdev = platform_device_alloc(name, inst); inst 51 drivers/char/ipmi/ipmi_plat_data.c name, inst); inst 24 drivers/char/ipmi/ipmi_plat_data.h struct platform_device *ipmi_platform_add(const char *name, unsigned int inst, inst 165 drivers/crypto/qat/qat_common/adf_common_drv.h void qat_crypto_put_instance(struct qat_crypto_instance *inst); inst 115 drivers/crypto/qat/qat_common/qat_algs.c struct qat_crypto_instance *inst; inst 132 drivers/crypto/qat/qat_common/qat_algs.c struct qat_crypto_instance *inst; inst 616 drivers/crypto/qat/qat_common/qat_algs.c struct qat_crypto_instance *inst = NULL; inst 621 drivers/crypto/qat/qat_common/qat_algs.c inst = qat_crypto_get_instance_node(node); inst 622 drivers/crypto/qat/qat_common/qat_algs.c if (!inst) inst 624 drivers/crypto/qat/qat_common/qat_algs.c dev = &GET_DEV(inst->accel_dev); inst 625 drivers/crypto/qat/qat_common/qat_algs.c ctx->inst = inst; inst 659 drivers/crypto/qat/qat_common/qat_algs.c ctx->inst = NULL; inst 660 drivers/crypto/qat/qat_common/qat_algs.c qat_crypto_put_instance(inst); inst 675 drivers/crypto/qat/qat_common/qat_algs.c static void qat_alg_free_bufl(struct qat_crypto_instance *inst, inst 678 drivers/crypto/qat/qat_common/qat_algs.c struct device *dev = &GET_DEV(inst->accel_dev); inst 707 drivers/crypto/qat/qat_common/qat_algs.c static int qat_alg_sgl_to_bufl(struct qat_crypto_instance *inst, inst 712 drivers/crypto/qat/qat_common/qat_algs.c struct device *dev = &GET_DEV(inst->accel_dev); inst 726 drivers/crypto/qat/qat_common/qat_algs.c dev_to_node(&GET_DEV(inst->accel_dev))); inst 760 drivers/crypto/qat/qat_common/qat_algs.c dev_to_node(&GET_DEV(inst->accel_dev))); inst 824 drivers/crypto/qat/qat_common/qat_algs.c struct qat_crypto_instance *inst = ctx->inst; inst 829 drivers/crypto/qat/qat_common/qat_algs.c qat_alg_free_bufl(inst, qat_req); inst 839 drivers/crypto/qat/qat_common/qat_algs.c struct qat_crypto_instance *inst = ctx->inst; inst 842 drivers/crypto/qat/qat_common/qat_algs.c struct device *dev = &GET_DEV(ctx->inst->accel_dev); inst 845 drivers/crypto/qat/qat_common/qat_algs.c qat_alg_free_bufl(inst, qat_req); inst 877 drivers/crypto/qat/qat_common/qat_algs.c ret = qat_alg_sgl_to_bufl(ctx->inst, areq->src, areq->dst, qat_req); inst 897 drivers/crypto/qat/qat_common/qat_algs.c ret = adf_send_message(ctx->inst->sym_tx, (uint32_t *)msg); inst 901 drivers/crypto/qat/qat_common/qat_algs.c qat_alg_free_bufl(ctx->inst, qat_req); inst 919 drivers/crypto/qat/qat_common/qat_algs.c ret = qat_alg_sgl_to_bufl(ctx->inst, areq->src, areq->dst, qat_req); inst 942 drivers/crypto/qat/qat_common/qat_algs.c ret = adf_send_message(ctx->inst->sym_tx, (uint32_t *)msg); inst 946 drivers/crypto/qat/qat_common/qat_algs.c qat_alg_free_bufl(ctx->inst, qat_req); inst 968 drivers/crypto/qat/qat_common/qat_algs.c struct qat_crypto_instance *inst = NULL; inst 973 drivers/crypto/qat/qat_common/qat_algs.c inst = qat_crypto_get_instance_node(node); inst 974 drivers/crypto/qat/qat_common/qat_algs.c if (!inst) inst 976 drivers/crypto/qat/qat_common/qat_algs.c dev = &GET_DEV(inst->accel_dev); inst 977 drivers/crypto/qat/qat_common/qat_algs.c ctx->inst = inst; inst 1010 drivers/crypto/qat/qat_common/qat_algs.c ctx->inst = NULL; inst 1011 drivers/crypto/qat/qat_common/qat_algs.c qat_crypto_put_instance(inst); inst 1056 drivers/crypto/qat/qat_common/qat_algs.c struct device *dev = &GET_DEV(ctx->inst->accel_dev); inst 1067 drivers/crypto/qat/qat_common/qat_algs.c ret = qat_alg_sgl_to_bufl(ctx->inst, req->src, req->dst, qat_req); inst 1088 drivers/crypto/qat/qat_common/qat_algs.c ret = adf_send_message(ctx->inst->sym_tx, (uint32_t *)msg); inst 1092 drivers/crypto/qat/qat_common/qat_algs.c qat_alg_free_bufl(ctx->inst, qat_req); inst 1116 drivers/crypto/qat/qat_common/qat_algs.c struct device *dev = &GET_DEV(ctx->inst->accel_dev); inst 1127 drivers/crypto/qat/qat_common/qat_algs.c ret = qat_alg_sgl_to_bufl(ctx->inst, req->src, req->dst, qat_req); inst 1148 drivers/crypto/qat/qat_common/qat_algs.c ret = adf_send_message(ctx->inst->sym_tx, (uint32_t *)msg); inst 1152 drivers/crypto/qat/qat_common/qat_algs.c qat_alg_free_bufl(ctx->inst, qat_req); inst 1199 drivers/crypto/qat/qat_common/qat_algs.c struct qat_crypto_instance *inst = ctx->inst; inst 1204 drivers/crypto/qat/qat_common/qat_algs.c if (!inst) inst 1207 drivers/crypto/qat/qat_common/qat_algs.c dev = &GET_DEV(inst->accel_dev); inst 1218 drivers/crypto/qat/qat_common/qat_algs.c qat_crypto_put_instance(inst); inst 1233 drivers/crypto/qat/qat_common/qat_algs.c struct qat_crypto_instance *inst = ctx->inst; inst 1236 drivers/crypto/qat/qat_common/qat_algs.c if (!inst) inst 1239 drivers/crypto/qat/qat_common/qat_algs.c dev = &GET_DEV(inst->accel_dev); inst 1254 drivers/crypto/qat/qat_common/qat_algs.c qat_crypto_put_instance(inst); inst 122 drivers/crypto/qat/qat_common/qat_asym_algs.c struct qat_crypto_instance *inst; inst 156 drivers/crypto/qat/qat_common/qat_asym_algs.c struct qat_crypto_instance *inst; inst 189 drivers/crypto/qat/qat_common/qat_asym_algs.c struct device *dev = &GET_DEV(req->ctx.dh->inst->accel_dev); inst 261 drivers/crypto/qat/qat_common/qat_asym_algs.c struct qat_crypto_instance *inst = ctx->inst; inst 262 drivers/crypto/qat/qat_common/qat_asym_algs.c struct device *dev = &GET_DEV(inst->accel_dev); inst 392 drivers/crypto/qat/qat_common/qat_asym_algs.c ret = adf_send_message(ctx->inst->pke_tx, (uint32_t *)msg); inst 443 drivers/crypto/qat/qat_common/qat_asym_algs.c struct qat_crypto_instance *inst = ctx->inst; inst 444 drivers/crypto/qat/qat_common/qat_asym_algs.c struct device *dev = &GET_DEV(inst->accel_dev); inst 492 drivers/crypto/qat/qat_common/qat_asym_algs.c struct device *dev = &GET_DEV(ctx->inst->accel_dev); inst 532 drivers/crypto/qat/qat_common/qat_asym_algs.c struct qat_crypto_instance *inst = inst 535 drivers/crypto/qat/qat_common/qat_asym_algs.c if (!inst) inst 540 drivers/crypto/qat/qat_common/qat_asym_algs.c ctx->inst = inst; inst 547 drivers/crypto/qat/qat_common/qat_asym_algs.c struct device *dev = &GET_DEV(ctx->inst->accel_dev); inst 550 drivers/crypto/qat/qat_common/qat_asym_algs.c qat_crypto_put_instance(ctx->inst); inst 557 drivers/crypto/qat/qat_common/qat_asym_algs.c struct device *dev = &GET_DEV(req->ctx.rsa->inst->accel_dev); inst 690 drivers/crypto/qat/qat_common/qat_asym_algs.c struct qat_crypto_instance *inst = ctx->inst; inst 691 drivers/crypto/qat/qat_common/qat_asym_algs.c struct device *dev = &GET_DEV(inst->accel_dev); inst 786 drivers/crypto/qat/qat_common/qat_asym_algs.c ret = adf_send_message(ctx->inst->pke_tx, (uint32_t *)msg); inst 824 drivers/crypto/qat/qat_common/qat_asym_algs.c struct qat_crypto_instance *inst = ctx->inst; inst 825 drivers/crypto/qat/qat_common/qat_asym_algs.c struct device *dev = &GET_DEV(inst->accel_dev); inst 938 drivers/crypto/qat/qat_common/qat_asym_algs.c ret = adf_send_message(ctx->inst->pke_tx, (uint32_t *)msg); inst 975 drivers/crypto/qat/qat_common/qat_asym_algs.c struct qat_crypto_instance *inst = ctx->inst; inst 976 drivers/crypto/qat/qat_common/qat_asym_algs.c struct device *dev = &GET_DEV(inst->accel_dev); inst 1007 drivers/crypto/qat/qat_common/qat_asym_algs.c struct qat_crypto_instance *inst = ctx->inst; inst 1008 drivers/crypto/qat/qat_common/qat_asym_algs.c struct device *dev = &GET_DEV(inst->accel_dev); inst 1032 drivers/crypto/qat/qat_common/qat_asym_algs.c struct qat_crypto_instance *inst = ctx->inst; inst 1033 drivers/crypto/qat/qat_common/qat_asym_algs.c struct device *dev = &GET_DEV(inst->accel_dev); inst 1068 drivers/crypto/qat/qat_common/qat_asym_algs.c struct qat_crypto_instance *inst = ctx->inst; inst 1069 drivers/crypto/qat/qat_common/qat_asym_algs.c struct device *dev = &GET_DEV(inst->accel_dev); inst 1205 drivers/crypto/qat/qat_common/qat_asym_algs.c struct device *dev = &GET_DEV(ctx->inst->accel_dev); inst 1270 drivers/crypto/qat/qat_common/qat_asym_algs.c struct qat_crypto_instance *inst = inst 1273 drivers/crypto/qat/qat_common/qat_asym_algs.c if (!inst) inst 1277 drivers/crypto/qat/qat_common/qat_asym_algs.c ctx->inst = inst; inst 1284 drivers/crypto/qat/qat_common/qat_asym_algs.c struct device *dev = &GET_DEV(ctx->inst->accel_dev); inst 1294 drivers/crypto/qat/qat_common/qat_asym_algs.c qat_crypto_put_instance(ctx->inst); inst 62 drivers/crypto/qat/qat_common/qat_crypto.c void qat_crypto_put_instance(struct qat_crypto_instance *inst) inst 64 drivers/crypto/qat/qat_common/qat_crypto.c atomic_dec(&inst->refctr); inst 65 drivers/crypto/qat/qat_common/qat_crypto.c adf_dev_put(inst->accel_dev); inst 70 drivers/crypto/qat/qat_common/qat_crypto.c struct qat_crypto_instance *inst, *tmp; inst 73 drivers/crypto/qat/qat_common/qat_crypto.c list_for_each_entry_safe(inst, tmp, &accel_dev->crypto_list, list) { inst 74 drivers/crypto/qat/qat_common/qat_crypto.c for (i = 0; i < atomic_read(&inst->refctr); i++) inst 75 drivers/crypto/qat/qat_common/qat_crypto.c qat_crypto_put_instance(inst); inst 77 drivers/crypto/qat/qat_common/qat_crypto.c if (inst->sym_tx) inst 78 drivers/crypto/qat/qat_common/qat_crypto.c adf_remove_ring(inst->sym_tx); inst 80 drivers/crypto/qat/qat_common/qat_crypto.c if (inst->sym_rx) inst 81 drivers/crypto/qat/qat_common/qat_crypto.c adf_remove_ring(inst->sym_rx); inst 83 drivers/crypto/qat/qat_common/qat_crypto.c if (inst->pke_tx) inst 84 drivers/crypto/qat/qat_common/qat_crypto.c adf_remove_ring(inst->pke_tx); inst 86 drivers/crypto/qat/qat_common/qat_crypto.c if (inst->pke_rx) inst 87 drivers/crypto/qat/qat_common/qat_crypto.c adf_remove_ring(inst->pke_rx); inst 89 drivers/crypto/qat/qat_common/qat_crypto.c list_del(&inst->list); inst 90 drivers/crypto/qat/qat_common/qat_crypto.c kfree(inst); inst 98 drivers/crypto/qat/qat_common/qat_crypto.c struct qat_crypto_instance *inst = NULL, *tmp_inst; inst 137 drivers/crypto/qat/qat_common/qat_crypto.c inst = tmp_inst; inst 141 drivers/crypto/qat/qat_common/qat_crypto.c if (inst) { inst 146 drivers/crypto/qat/qat_common/qat_crypto.c atomic_inc(&inst->refctr); inst 148 drivers/crypto/qat/qat_common/qat_crypto.c return inst; inst 248 drivers/crypto/qat/qat_common/qat_crypto.c struct qat_crypto_instance *inst; inst 261 drivers/crypto/qat/qat_common/qat_crypto.c inst = kzalloc_node(sizeof(*inst), GFP_KERNEL, inst 263 drivers/crypto/qat/qat_common/qat_crypto.c if (!inst) inst 266 drivers/crypto/qat/qat_common/qat_crypto.c list_add_tail(&inst->list, &accel_dev->crypto_list); inst 267 drivers/crypto/qat/qat_common/qat_crypto.c inst->id = i; inst 268 drivers/crypto/qat/qat_common/qat_crypto.c atomic_set(&inst->refctr, 0); inst 269 drivers/crypto/qat/qat_common/qat_crypto.c inst->accel_dev = accel_dev; inst 296 drivers/crypto/qat/qat_common/qat_crypto.c msg_size, key, NULL, 0, &inst->sym_tx)) inst 302 drivers/crypto/qat/qat_common/qat_crypto.c msg_size, key, NULL, 0, &inst->pke_tx)) inst 309 drivers/crypto/qat/qat_common/qat_crypto.c &inst->sym_rx)) inst 315 drivers/crypto/qat/qat_common/qat_crypto.c &inst->pke_rx)) inst 70 drivers/crypto/qat/qat_common/qat_hal.c #define INSERT_IMMED_GPRA_CONST(inst, const_val) \ inst 71 drivers/crypto/qat/qat_common/qat_hal.c (inst = ((inst & 0xFFFF00C03FFull) | \ inst 74 drivers/crypto/qat/qat_common/qat_hal.c #define INSERT_IMMED_GPRB_CONST(inst, const_val) \ inst 75 drivers/crypto/qat/qat_common/qat_hal.c (inst = ((inst & 0xFFFF00FFF00ull) | \ inst 87 drivers/crypto/qat/qat_common/qat_hal.c static const uint64_t inst[] = { inst 646 drivers/crypto/qat/qat_common/qat_hal.c qat_hal_wr_uwords(handle, ae, 0, ARRAY_SIZE(inst), inst 647 drivers/crypto/qat/qat_common/qat_hal.c (uint64_t *)inst); inst 58 drivers/edac/amd8131_edac.c .inst = NORTH_A, inst 63 drivers/edac/amd8131_edac.c .inst = NORTH_B, inst 68 drivers/edac/amd8131_edac.c .inst = SOUTH_A, inst 73 drivers/edac/amd8131_edac.c .inst = SOUTH_B, inst 77 drivers/edac/amd8131_edac.c {.inst = NO_BRIDGE,}, inst 240 drivers/edac/amd8131_edac.c for (dev_info = amd8131_chipset.devices; dev_info->inst != NO_BRIDGE; inst 245 drivers/edac/amd8131_edac.c if (dev_info->inst == NO_BRIDGE) /* should never happen */ inst 304 drivers/edac/amd8131_edac.c for (dev_info = amd8131_chipset.devices; dev_info->inst != NO_BRIDGE; inst 309 drivers/edac/amd8131_edac.c if (dev_info->inst == NO_BRIDGE) /* should never happen */ inst 81 drivers/edac/amd8131_edac.h enum pcix_bridge_inst inst; inst 59 drivers/edac/edac_device.c struct edac_device_instance *dev_inst, *inst; inst 146 drivers/edac/edac_device.c inst = &dev_inst[instance]; inst 147 drivers/edac/edac_device.c inst->ctl = dev_ctl; inst 148 drivers/edac/edac_device.c inst->nr_blocks = nr_blocks; inst 150 drivers/edac/edac_device.c inst->blocks = blk_p; inst 153 drivers/edac/edac_device.c snprintf(inst->name, sizeof(inst->name), inst 159 drivers/edac/edac_device.c blk->instance = inst; inst 164 drivers/edac/edac_device.c instance, inst, block, blk, blk->name); inst 145 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c rings[0] = &adev->uvd.inst[0].ring; inst 153 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c rings[0] = &adev->uvd.inst[0].ring_enc[0]; inst 160 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c rings[num_rings++] = &adev->vcn.inst[j].ring_dec; inst 168 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c rings[num_rings++] = &adev->vcn.inst[j].ring_enc[k]; inst 175 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c rings[num_rings++] = &adev->vcn.inst[j].ring_jpeg; inst 403 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c ring->fence_drv.cpu_addr = adev->uvd.inst[ring->me].cpu_addr + index; inst 404 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c ring->fence_drv.gpu_addr = adev->uvd.inst[ring->me].gpu_addr + index; inst 346 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c if (adev->uvd.inst[i].ring.sched.ready) inst 367 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c if (adev->uvd.inst[i].ring_enc[j].sched.ready) inst 379 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c if (adev->vcn.inst[i].ring_dec.sched.ready) inst 392 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c if (adev->vcn.inst[i].ring_enc[j].sched.ready) inst 404 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c if (adev->vcn.inst[i].ring_jpeg.sched.ready) inst 259 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c AMDGPU_GEM_DOMAIN_VRAM, &adev->uvd.inst[j].vcpu_bo, inst 260 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c &adev->uvd.inst[j].gpu_addr, &adev->uvd.inst[j].cpu_addr); inst 305 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c kvfree(adev->uvd.inst[j].saved_bo); inst 307 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c amdgpu_bo_free_kernel(&adev->uvd.inst[j].vcpu_bo, inst 308 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c &adev->uvd.inst[j].gpu_addr, inst 309 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c (void **)&adev->uvd.inst[j].cpu_addr); inst 311 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c amdgpu_ring_fini(&adev->uvd.inst[j].ring); inst 314 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c amdgpu_ring_fini(&adev->uvd.inst[j].ring_enc[i]); inst 333 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c ring = &adev->uvd.inst[0].ring; inst 365 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c if (adev->uvd.inst[j].vcpu_bo == NULL) inst 368 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c size = amdgpu_bo_size(adev->uvd.inst[j].vcpu_bo); inst 369 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c ptr = adev->uvd.inst[j].cpu_addr; inst 371 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c adev->uvd.inst[j].saved_bo = kvmalloc(size, GFP_KERNEL); inst 372 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c if (!adev->uvd.inst[j].saved_bo) inst 375 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c memcpy_fromio(adev->uvd.inst[j].saved_bo, ptr, size); inst 389 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c if (adev->uvd.inst[i].vcpu_bo == NULL) inst 392 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c size = amdgpu_bo_size(adev->uvd.inst[i].vcpu_bo); inst 393 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c ptr = adev->uvd.inst[i].cpu_addr; inst 395 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c if (adev->uvd.inst[i].saved_bo != NULL) { inst 396 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c memcpy_toio(ptr, adev->uvd.inst[i].saved_bo, size); inst 397 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c kvfree(adev->uvd.inst[i].saved_bo); inst 398 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c adev->uvd.inst[i].saved_bo = NULL; inst 406 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c memcpy_toio(adev->uvd.inst[i].cpu_addr, adev->uvd.fw->data + offset, inst 413 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c amdgpu_fence_driver_force_completion(&adev->uvd.inst[i].ring); inst 421 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c struct amdgpu_ring *ring = &adev->uvd.inst[0].ring; inst 862 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c (start >> 28) != (ctx->parser->adev->uvd.inst->gpu_addr >> 28)) { inst 1187 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c fences += amdgpu_fence_count_emitted(&adev->uvd.inst[i].ring); inst 1189 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c fences += amdgpu_fence_count_emitted(&adev->uvd.inst[i].ring_enc[j]); inst 62 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h struct amdgpu_uvd_inst inst[AMDGPU_MAX_UVD_INSTANCES]; inst 171 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c AMDGPU_GEM_DOMAIN_VRAM, &adev->vcn.inst[i].vcpu_bo, inst 172 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c &adev->vcn.inst[i].gpu_addr, &adev->vcn.inst[i].cpu_addr); inst 205 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c kvfree(adev->vcn.inst[j].saved_bo); inst 207 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c amdgpu_bo_free_kernel(&adev->vcn.inst[j].vcpu_bo, inst 208 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c &adev->vcn.inst[j].gpu_addr, inst 209 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c (void **)&adev->vcn.inst[j].cpu_addr); inst 211 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c amdgpu_ring_fini(&adev->vcn.inst[j].ring_dec); inst 214 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c amdgpu_ring_fini(&adev->vcn.inst[j].ring_enc[i]); inst 216 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c amdgpu_ring_fini(&adev->vcn.inst[j].ring_jpeg); inst 235 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c if (adev->vcn.inst[i].vcpu_bo == NULL) inst 238 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c size = amdgpu_bo_size(adev->vcn.inst[i].vcpu_bo); inst 239 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c ptr = adev->vcn.inst[i].cpu_addr; inst 241 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c adev->vcn.inst[i].saved_bo = kvmalloc(size, GFP_KERNEL); inst 242 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c if (!adev->vcn.inst[i].saved_bo) inst 245 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c memcpy_fromio(adev->vcn.inst[i].saved_bo, ptr, size); inst 259 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c if (adev->vcn.inst[i].vcpu_bo == NULL) inst 262 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c size = amdgpu_bo_size(adev->vcn.inst[i].vcpu_bo); inst 263 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c ptr = adev->vcn.inst[i].cpu_addr; inst 265 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c if (adev->vcn.inst[i].saved_bo != NULL) { inst 266 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c memcpy_toio(ptr, adev->vcn.inst[i].saved_bo, size); inst 267 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c kvfree(adev->vcn.inst[i].saved_bo); inst 268 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c adev->vcn.inst[i].saved_bo = NULL; inst 276 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c memcpy_toio(adev->vcn.inst[i].cpu_addr, adev->vcn.fw->data + offset, inst 298 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c fence[j] += amdgpu_fence_count_emitted(&adev->vcn.inst[j].ring_enc[i]); inst 309 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c if (amdgpu_fence_count_emitted(&adev->vcn.inst[j].ring_jpeg)) inst 317 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c fence[j] += amdgpu_fence_count_emitted(&adev->vcn.inst[j].ring_jpeg); inst 318 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c fence[j] += amdgpu_fence_count_emitted(&adev->vcn.inst[j].ring_dec); inst 354 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c fences += amdgpu_fence_count_emitted(&adev->vcn.inst[ring->me].ring_enc[i]); inst 361 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c if (amdgpu_fence_count_emitted(&adev->vcn.inst[ring->me].ring_jpeg)) inst 387 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c WREG32(adev->vcn.inst[ring->me].external.scratch9, 0xCAFEDEAD); inst 395 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c tmp = RREG32(adev->vcn.inst[ring->me].external.scratch9); inst 717 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c WREG32(adev->vcn.inst[ring->me].external.jpeg_pitch, 0xCAFEDEAD); inst 727 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c tmp = RREG32(adev->vcn.inst[ring->me].external.jpeg_pitch); inst 801 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c tmp = RREG32(adev->vcn.inst[ring->me].external.jpeg_pitch); inst 59 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h #define RREG32_SOC15_DPG_MODE(ip, inst, reg, mask, sram_sel) \ inst 60 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h ({ WREG32_SOC15(ip, inst, mmUVD_DPG_LMA_MASK, mask); \ inst 61 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h WREG32_SOC15(ip, inst, mmUVD_DPG_LMA_CTL, \ inst 63 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h ((adev->reg_offset[ip##_HWIP][inst][reg##_BASE_IDX] + reg) \ inst 66 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h RREG32_SOC15(ip, inst, mmUVD_DPG_LMA_DATA); \ inst 69 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h #define WREG32_SOC15_DPG_MODE(ip, inst, reg, value, mask, sram_sel) \ inst 71 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h WREG32_SOC15(ip, inst, mmUVD_DPG_LMA_DATA, value); \ inst 72 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h WREG32_SOC15(ip, inst, mmUVD_DPG_LMA_MASK, mask); \ inst 73 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h WREG32_SOC15(ip, inst, mmUVD_DPG_LMA_CTL, \ inst 75 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h ((adev->reg_offset[ip##_HWIP][inst][reg##_BASE_IDX] + reg) \ inst 80 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h #define SOC15_DPG_MODE_OFFSET_2_0(ip, inst, reg) \ inst 85 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h addr = (adev->reg_offset[ip##_HWIP][inst][reg##_BASE_IDX] + reg); \ inst 191 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.h struct amdgpu_vcn_inst inst[AMDGPU_MAX_VCN_INSTANCES]; inst 5754 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c uint32_t inst; inst 6126 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c [gfx_ras_edc_regs[i].inst] inst 224 drivers/gpu/drm/amd/amdgpu/nv.c (adev->reg_offset[en->hwip][en->inst][en->seg] + en->reg_offset)) inst 412 drivers/gpu/drm/amd/amdgpu/soc15.c if (reg_offset != (adev->reg_offset[en->hwip][en->inst][en->seg] inst 47 drivers/gpu/drm/amd/amdgpu/soc15.h uint32_t inst; inst 57 drivers/gpu/drm/amd/amdgpu/soc15.h uint32_t inst; inst 63 drivers/gpu/drm/amd/amdgpu/soc15.h #define SOC15_REG_ENTRY(ip, inst, reg) ip##_HWIP, inst, reg##_BASE_IDX, reg inst 65 drivers/gpu/drm/amd/amdgpu/soc15.h #define SOC15_REG_ENTRY_OFFSET(entry) (adev->reg_offset[entry.hwip][entry.inst][entry.seg] + entry.reg_offset) inst 67 drivers/gpu/drm/amd/amdgpu/soc15.h #define SOC15_REG_GOLDEN_VALUE(ip, inst, reg, and_mask, or_mask) \ inst 68 drivers/gpu/drm/amd/amdgpu/soc15.h { ip##_HWIP, inst, reg##_BASE_IDX, reg, and_mask, or_mask } inst 28 drivers/gpu/drm/amd/amdgpu/soc15_common.h #define SOC15_REG_OFFSET(ip, inst, reg) (adev->reg_offset[ip##_HWIP][inst][reg##_BASE_IDX] + reg) inst 35 drivers/gpu/drm/amd/amdgpu/soc15_common.h #define RREG32_SOC15(ip, inst, reg) \ inst 36 drivers/gpu/drm/amd/amdgpu/soc15_common.h RREG32(adev->reg_offset[ip##_HWIP][inst][reg##_BASE_IDX] + reg) inst 38 drivers/gpu/drm/amd/amdgpu/soc15_common.h #define RREG32_SOC15_OFFSET(ip, inst, reg, offset) \ inst 39 drivers/gpu/drm/amd/amdgpu/soc15_common.h RREG32((adev->reg_offset[ip##_HWIP][inst][reg##_BASE_IDX] + reg) + offset) inst 41 drivers/gpu/drm/amd/amdgpu/soc15_common.h #define WREG32_SOC15(ip, inst, reg, value) \ inst 42 drivers/gpu/drm/amd/amdgpu/soc15_common.h WREG32((adev->reg_offset[ip##_HWIP][inst][reg##_BASE_IDX] + reg), value) inst 44 drivers/gpu/drm/amd/amdgpu/soc15_common.h #define WREG32_SOC15_NO_KIQ(ip, inst, reg, value) \ inst 45 drivers/gpu/drm/amd/amdgpu/soc15_common.h WREG32_NO_KIQ((adev->reg_offset[ip##_HWIP][inst][reg##_BASE_IDX] + reg), value) inst 47 drivers/gpu/drm/amd/amdgpu/soc15_common.h #define WREG32_SOC15_OFFSET(ip, inst, reg, offset, value) \ inst 48 drivers/gpu/drm/amd/amdgpu/soc15_common.h WREG32((adev->reg_offset[ip##_HWIP][inst][reg##_BASE_IDX] + reg) + offset, value) inst 50 drivers/gpu/drm/amd/amdgpu/soc15_common.h #define SOC15_WAIT_ON_RREG(ip, inst, reg, expected_value, mask, ret) \ inst 53 drivers/gpu/drm/amd/amdgpu/soc15_common.h uint32_t tmp_ = RREG32(adev->reg_offset[ip##_HWIP][inst][reg##_BASE_IDX] + reg); \ inst 62 drivers/gpu/drm/amd/amdgpu/soc15_common.h tmp_ = RREG32(adev->reg_offset[ip##_HWIP][inst][reg##_BASE_IDX] + reg); \ inst 66 drivers/gpu/drm/amd/amdgpu/soc15_common.h inst, #reg, (unsigned)expected_value, (unsigned)(tmp_ & (mask))); \ inst 98 drivers/gpu/drm/amd/amdgpu/soc15_common.h #define WREG32_SOC15_RLC_SHADOW(ip, inst, reg, value) \ inst 100 drivers/gpu/drm/amd/amdgpu/soc15_common.h uint32_t target_reg = adev->reg_offset[ip##_HWIP][inst][reg##_BASE_IDX] + reg;\ inst 116 drivers/gpu/drm/amd/amdgpu/soc15_common.h #define WREG32_SOC15_RLC(ip, inst, reg, value) \ inst 127 drivers/gpu/drm/amd/amdgpu/soc15_common.h #define WREG32_SOC15_OFFSET_RLC(ip, inst, reg, offset, value) \ inst 128 drivers/gpu/drm/amd/amdgpu/soc15_common.h WREG32_RLC(((adev->reg_offset[ip##_HWIP][inst][reg##_BASE_IDX] + reg) + offset), value) inst 111 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, 124, &adev->uvd.inst->irq); inst 119 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c ring = &adev->uvd.inst->ring; inst 121 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c r = amdgpu_ring_init(adev, ring, 512, &adev->uvd.inst->irq, 0); inst 158 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c struct amdgpu_ring *ring = &adev->uvd.inst->ring; inst 213 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c struct amdgpu_ring *ring = &adev->uvd.inst->ring; inst 256 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c struct amdgpu_ring *ring = &adev->uvd.inst->ring; inst 547 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c addr = (adev->uvd.inst->gpu_addr + AMDGPU_UVD_FIRMWARE_OFFSET) >> 3; inst 564 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c addr = (adev->uvd.inst->gpu_addr >> 28) & 0xF; inst 568 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c addr = (adev->uvd.inst->gpu_addr >> 32) & 0xFF; inst 675 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c amdgpu_fence_process(&adev->uvd.inst->ring); inst 764 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c adev->uvd.inst->ring.funcs = &uvd_v4_2_ring_funcs; inst 774 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c adev->uvd.inst->irq.num_types = 1; inst 775 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c adev->uvd.inst->irq.funcs = &uvd_v4_2_irq_funcs; inst 109 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, VISLANDS30_IV_SRCID_UVD_SYSTEM_MESSAGE, &adev->uvd.inst->irq); inst 117 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c ring = &adev->uvd.inst->ring; inst 119 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c r = amdgpu_ring_init(adev, ring, 512, &adev->uvd.inst->irq, 0); inst 154 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c struct amdgpu_ring *ring = &adev->uvd.inst->ring; inst 211 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c struct amdgpu_ring *ring = &adev->uvd.inst->ring; inst 260 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c lower_32_bits(adev->uvd.inst->gpu_addr)); inst 262 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c upper_32_bits(adev->uvd.inst->gpu_addr)); inst 294 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c struct amdgpu_ring *ring = &adev->uvd.inst->ring; inst 598 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c amdgpu_fence_process(&adev->uvd.inst->ring); inst 873 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c adev->uvd.inst->ring.funcs = &uvd_v5_0_ring_funcs; inst 883 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c adev->uvd.inst->irq.num_types = 1; inst 884 drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c adev->uvd.inst->irq.funcs = &uvd_v5_0_irq_funcs; inst 95 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c if (ring == &adev->uvd.inst->ring_enc[0]) inst 125 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c if (ring == &adev->uvd.inst->ring_enc[0]) inst 156 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c if (ring == &adev->uvd.inst->ring_enc[0]) inst 390 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, VISLANDS30_IV_SRCID_UVD_SYSTEM_MESSAGE, &adev->uvd.inst->irq); inst 397 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, i + VISLANDS30_IV_SRCID_UVD_ENC_GEN_PURP, &adev->uvd.inst->irq); inst 409 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c adev->uvd.inst->ring_enc[i].funcs = NULL; inst 411 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c adev->uvd.inst->irq.num_types = 1; inst 417 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c ring = &adev->uvd.inst->ring; inst 419 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c r = amdgpu_ring_init(adev, ring, 512, &adev->uvd.inst->irq, 0); inst 429 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c ring = &adev->uvd.inst->ring_enc[i]; inst 431 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c r = amdgpu_ring_init(adev, ring, 512, &adev->uvd.inst->irq, 0); inst 453 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c amdgpu_ring_fini(&adev->uvd.inst->ring_enc[i]); inst 469 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c struct amdgpu_ring *ring = &adev->uvd.inst->ring; inst 510 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c ring = &adev->uvd.inst->ring_enc[i]; inst 538 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c struct amdgpu_ring *ring = &adev->uvd.inst->ring; inst 586 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c lower_32_bits(adev->uvd.inst->gpu_addr)); inst 588 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c upper_32_bits(adev->uvd.inst->gpu_addr)); inst 701 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c struct amdgpu_ring *ring = &adev->uvd.inst->ring; inst 841 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c ring = &adev->uvd.inst->ring_enc[0]; inst 848 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c ring = &adev->uvd.inst->ring_enc[1]; inst 1145 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c adev->uvd.inst->srbm_soft_reset = srbm_soft_reset; inst 1148 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c adev->uvd.inst->srbm_soft_reset = 0; inst 1157 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c if (!adev->uvd.inst->srbm_soft_reset) inst 1169 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c if (!adev->uvd.inst->srbm_soft_reset) inst 1171 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c srbm_soft_reset = adev->uvd.inst->srbm_soft_reset; inst 1199 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c if (!adev->uvd.inst->srbm_soft_reset) inst 1225 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c amdgpu_fence_process(&adev->uvd.inst->ring); inst 1229 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c amdgpu_fence_process(&adev->uvd.inst->ring_enc[0]); inst 1235 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c amdgpu_fence_process(&adev->uvd.inst->ring_enc[1]); inst 1600 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c adev->uvd.inst->ring.funcs = &uvd_v6_0_ring_vm_funcs; inst 1603 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c adev->uvd.inst->ring.funcs = &uvd_v6_0_ring_phys_funcs; inst 1613 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c adev->uvd.inst->ring_enc[i].funcs = &uvd_v6_0_enc_ring_vm_funcs; inst 1626 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c adev->uvd.inst->irq.num_types = adev->uvd.num_enc_rings + 1; inst 1628 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c adev->uvd.inst->irq.num_types = 1; inst 1630 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c adev->uvd.inst->irq.funcs = &uvd_v6_0_irq_funcs; inst 89 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c if (ring == &adev->uvd.inst[ring->me].ring_enc[0]) inst 123 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c if (ring == &adev->uvd.inst[ring->me].ring_enc[0]) inst 161 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c if (ring == &adev->uvd.inst[ring->me].ring_enc[0]) inst 414 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c r = amdgpu_irq_add_id(adev, amdgpu_ih_clientid_uvds[j], UVD_7_0__SRCID__UVD_SYSTEM_MESSAGE_INTERRUPT, &adev->uvd.inst[j].irq); inst 420 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c r = amdgpu_irq_add_id(adev, amdgpu_ih_clientid_uvds[j], i + UVD_7_0__SRCID__UVD_ENC_GEN_PURP, &adev->uvd.inst[j].irq); inst 451 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c ring = &adev->uvd.inst[j].ring; inst 453 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c r = amdgpu_ring_init(adev, ring, 512, &adev->uvd.inst[j].irq, 0); inst 459 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c ring = &adev->uvd.inst[j].ring_enc[i]; inst 472 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c r = amdgpu_ring_init(adev, ring, 512, &adev->uvd.inst[j].irq, 0); inst 508 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c amdgpu_ring_fini(&adev->uvd.inst[j].ring_enc[i]); inst 537 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c ring = &adev->uvd.inst[j].ring; inst 578 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c ring = &adev->uvd.inst[j].ring_enc[i]; inst 613 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c adev->uvd.inst[i].ring.sched.ready = false; inst 672 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c lower_32_bits(adev->uvd.inst[i].gpu_addr)); inst 674 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c upper_32_bits(adev->uvd.inst[i].gpu_addr)); inst 683 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c lower_32_bits(adev->uvd.inst[i].gpu_addr + offset)); inst 685 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c upper_32_bits(adev->uvd.inst[i].gpu_addr + offset)); inst 690 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c lower_32_bits(adev->uvd.inst[i].gpu_addr + offset + AMDGPU_UVD_HEAP_SIZE)); inst 692 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c upper_32_bits(adev->uvd.inst[i].gpu_addr + offset + AMDGPU_UVD_HEAP_SIZE)); inst 738 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c WDOORBELL32(adev->uvd.inst[i].ring_enc[0].doorbell_index, 0); inst 739 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c adev->wb.wb[adev->uvd.inst[i].ring_enc[0].wptr_offs] = 0; inst 740 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c adev->uvd.inst[i].ring_enc[0].wptr = 0; inst 741 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c adev->uvd.inst[i].ring_enc[0].wptr_old = 0; inst 796 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c ring = &adev->uvd.inst[i].ring; inst 814 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c lower_32_bits(adev->uvd.inst[i].gpu_addr)); inst 816 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c upper_32_bits(adev->uvd.inst[i].gpu_addr)); inst 826 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c lower_32_bits(adev->uvd.inst[i].gpu_addr + offset)); inst 828 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c upper_32_bits(adev->uvd.inst[i].gpu_addr + offset)); inst 833 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c lower_32_bits(adev->uvd.inst[i].gpu_addr + offset + AMDGPU_UVD_HEAP_SIZE)); inst 835 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c upper_32_bits(adev->uvd.inst[i].gpu_addr + offset + AMDGPU_UVD_HEAP_SIZE)); inst 899 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c ring = &adev->uvd.inst[i].ring_enc[0]; inst 955 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c ring = &adev->uvd.inst[k].ring; inst 1093 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c ring = &adev->uvd.inst[k].ring_enc[0]; inst 1100 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c ring = &adev->uvd.inst[k].ring_enc[1]; inst 1468 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c adev->uvd.inst[ring->me].srbm_soft_reset = srbm_soft_reset; inst 1471 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c adev->uvd.inst[ring->me].srbm_soft_reset = 0; inst 1480 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c if (!adev->uvd.inst[ring->me].srbm_soft_reset) inst 1492 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c if (!adev->uvd.inst[ring->me].srbm_soft_reset) inst 1494 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c srbm_soft_reset = adev->uvd.inst[ring->me].srbm_soft_reset; inst 1522 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c if (!adev->uvd.inst[ring->me].srbm_soft_reset) inst 1562 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c amdgpu_fence_process(&adev->uvd.inst[ip_instance].ring); inst 1565 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c amdgpu_fence_process(&adev->uvd.inst[ip_instance].ring_enc[0]); inst 1569 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c amdgpu_fence_process(&adev->uvd.inst[ip_instance].ring_enc[1]); inst 1844 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c adev->uvd.inst[i].ring.funcs = &uvd_v7_0_ring_vm_funcs; inst 1845 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c adev->uvd.inst[i].ring.me = i; inst 1858 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c adev->uvd.inst[j].ring_enc[i].funcs = &uvd_v7_0_enc_ring_vm_funcs; inst 1859 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c adev->uvd.inst[j].ring_enc[i].me = j; inst 1878 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c adev->uvd.inst[i].irq.num_types = adev->uvd.num_enc_rings + 1; inst 1879 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c adev->uvd.inst[i].irq.funcs = &uvd_v7_0_irq_funcs; inst 92 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c VCN_1_0__SRCID__UVD_SYSTEM_MESSAGE_INTERRUPT, &adev->vcn.inst->irq); inst 99 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c &adev->vcn.inst->irq); inst 105 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c r = amdgpu_irq_add_id(adev, SOC15_IH_CLIENTID_VCN, 126, &adev->vcn.inst->irq); inst 127 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c ring = &adev->vcn.inst->ring_dec; inst 129 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c r = amdgpu_ring_init(adev, ring, 512, &adev->vcn.inst->irq, 0); inst 133 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c adev->vcn.internal.scratch9 = adev->vcn.inst->external.scratch9 = inst 135 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c adev->vcn.internal.data0 = adev->vcn.inst->external.data0 = inst 137 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c adev->vcn.internal.data1 = adev->vcn.inst->external.data1 = inst 139 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c adev->vcn.internal.cmd = adev->vcn.inst->external.cmd = inst 141 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c adev->vcn.internal.nop = adev->vcn.inst->external.nop = inst 145 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c ring = &adev->vcn.inst->ring_enc[i]; inst 147 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c r = amdgpu_ring_init(adev, ring, 512, &adev->vcn.inst->irq, 0); inst 152 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c ring = &adev->vcn.inst->ring_jpeg; inst 154 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c r = amdgpu_ring_init(adev, ring, 512, &adev->vcn.inst->irq, 0); inst 159 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c adev->vcn.internal.jpeg_pitch = adev->vcn.inst->external.jpeg_pitch = inst 196 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c struct amdgpu_ring *ring = &adev->vcn.inst->ring_dec; inst 204 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c ring = &adev->vcn.inst->ring_enc[i]; inst 211 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c ring = &adev->vcn.inst->ring_jpeg; inst 234 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c struct amdgpu_ring *ring = &adev->vcn.inst->ring_dec; inst 309 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c lower_32_bits(adev->vcn.inst->gpu_addr)); inst 311 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c upper_32_bits(adev->vcn.inst->gpu_addr)); inst 321 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c lower_32_bits(adev->vcn.inst->gpu_addr + offset)); inst 323 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c upper_32_bits(adev->vcn.inst->gpu_addr + offset)); inst 329 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c lower_32_bits(adev->vcn.inst->gpu_addr + offset + AMDGPU_VCN_STACK_SIZE)); inst 331 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c upper_32_bits(adev->vcn.inst->gpu_addr + offset + AMDGPU_VCN_STACK_SIZE)); inst 379 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c lower_32_bits(adev->vcn.inst->gpu_addr), 0xFFFFFFFF, 0); inst 381 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c upper_32_bits(adev->vcn.inst->gpu_addr), 0xFFFFFFFF, 0); inst 391 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c lower_32_bits(adev->vcn.inst->gpu_addr + offset), 0xFFFFFFFF, 0); inst 393 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c upper_32_bits(adev->vcn.inst->gpu_addr + offset), 0xFFFFFFFF, 0); inst 401 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c lower_32_bits(adev->vcn.inst->gpu_addr + offset + AMDGPU_VCN_STACK_SIZE), inst 404 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c upper_32_bits(adev->vcn.inst->gpu_addr + offset + AMDGPU_VCN_STACK_SIZE), inst 784 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c struct amdgpu_ring *ring = &adev->vcn.inst->ring_dec; inst 937 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c ring = &adev->vcn.inst->ring_enc[0]; inst 944 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c ring = &adev->vcn.inst->ring_enc[1]; inst 951 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c ring = &adev->vcn.inst->ring_jpeg; inst 973 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c struct amdgpu_ring *ring = &adev->vcn.inst->ring_dec; inst 1111 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c ring = &adev->vcn.inst->ring_jpeg; inst 1260 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c ring = &adev->vcn.inst->ring_enc[0]; inst 1267 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c ring = &adev->vcn.inst->ring_enc[1]; inst 1274 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c ring = &adev->vcn.inst->ring_dec; inst 1320 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c ring = &adev->vcn.inst->ring_jpeg; inst 1334 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c ring = &adev->vcn.inst->ring_dec; inst 1601 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c if (ring == &adev->vcn.inst->ring_enc[0]) inst 1618 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c if (ring == &adev->vcn.inst->ring_enc[0]) inst 1635 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c if (ring == &adev->vcn.inst->ring_enc[0]) inst 2119 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c amdgpu_fence_process(&adev->vcn.inst->ring_dec); inst 2122 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c amdgpu_fence_process(&adev->vcn.inst->ring_enc[0]); inst 2125 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c amdgpu_fence_process(&adev->vcn.inst->ring_enc[1]); inst 2128 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c amdgpu_fence_process(&adev->vcn.inst->ring_jpeg); inst 2300 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c adev->vcn.inst->ring_dec.funcs = &vcn_v1_0_dec_ring_vm_funcs; inst 2309 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c adev->vcn.inst->ring_enc[i].funcs = &vcn_v1_0_enc_ring_vm_funcs; inst 2316 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c adev->vcn.inst->ring_jpeg.funcs = &vcn_v1_0_jpeg_ring_vm_funcs; inst 2327 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c adev->vcn.inst->irq.num_types = adev->vcn.num_enc_rings + 2; inst 2328 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c adev->vcn.inst->irq.funcs = &vcn_v1_0_irq_funcs; inst 122 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c &adev->vcn.inst->irq); inst 130 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c &adev->vcn.inst->irq); inst 137 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c VCN_2_0__SRCID__JPEG_DECODE, &adev->vcn.inst->irq); inst 159 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c ring = &adev->vcn.inst->ring_dec; inst 165 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c r = amdgpu_ring_init(adev, ring, 512, &adev->vcn.inst->irq, 0); inst 177 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c adev->vcn.inst->external.scratch9 = SOC15_REG_OFFSET(UVD, 0, mmUVD_SCRATCH9); inst 179 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c adev->vcn.inst->external.data0 = SOC15_REG_OFFSET(UVD, 0, mmUVD_GPCOM_VCPU_DATA0); inst 181 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c adev->vcn.inst->external.data1 = SOC15_REG_OFFSET(UVD, 0, mmUVD_GPCOM_VCPU_DATA1); inst 183 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c adev->vcn.inst->external.cmd = SOC15_REG_OFFSET(UVD, 0, mmUVD_GPCOM_VCPU_CMD); inst 185 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c adev->vcn.inst->external.nop = SOC15_REG_OFFSET(UVD, 0, mmUVD_NO_OP); inst 188 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c ring = &adev->vcn.inst->ring_enc[i]; inst 192 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c r = amdgpu_ring_init(adev, ring, 512, &adev->vcn.inst->irq, 0); inst 197 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c ring = &adev->vcn.inst->ring_jpeg; inst 201 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c r = amdgpu_ring_init(adev, ring, 512, &adev->vcn.inst->irq, 0); inst 208 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c adev->vcn.inst->external.jpeg_pitch = SOC15_REG_OFFSET(UVD, 0, mmUVD_JPEG_PITCH); inst 244 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c struct amdgpu_ring *ring = &adev->vcn.inst->ring_dec; inst 258 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c ring = &adev->vcn.inst->ring_enc[i]; inst 267 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c ring = &adev->vcn.inst->ring_jpeg; inst 293 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c struct amdgpu_ring *ring = &adev->vcn.inst->ring_dec; inst 304 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c ring = &adev->vcn.inst->ring_enc[i]; inst 308 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c ring = &adev->vcn.inst->ring_jpeg; inst 378 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c lower_32_bits(adev->vcn.inst->gpu_addr)); inst 380 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c upper_32_bits(adev->vcn.inst->gpu_addr)); inst 390 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c lower_32_bits(adev->vcn.inst->gpu_addr + offset)); inst 392 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c upper_32_bits(adev->vcn.inst->gpu_addr + offset)); inst 398 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c lower_32_bits(adev->vcn.inst->gpu_addr + offset + AMDGPU_VCN_STACK_SIZE)); inst 400 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c upper_32_bits(adev->vcn.inst->gpu_addr + offset + AMDGPU_VCN_STACK_SIZE)); inst 436 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c lower_32_bits(adev->vcn.inst->gpu_addr), 0, indirect); inst 439 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c upper_32_bits(adev->vcn.inst->gpu_addr), 0, indirect); inst 457 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c lower_32_bits(adev->vcn.inst->gpu_addr + offset), 0, indirect); inst 460 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c upper_32_bits(adev->vcn.inst->gpu_addr + offset), 0, indirect); inst 477 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c lower_32_bits(adev->vcn.inst->gpu_addr + offset + AMDGPU_VCN_STACK_SIZE), 0, indirect); inst 480 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c upper_32_bits(adev->vcn.inst->gpu_addr + offset + AMDGPU_VCN_STACK_SIZE), 0, indirect); inst 668 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c struct amdgpu_ring *ring = &adev->vcn.inst->ring_jpeg; inst 930 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c struct amdgpu_ring *ring = &adev->vcn.inst->ring_dec; inst 1056 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c struct amdgpu_ring *ring = &adev->vcn.inst->ring_dec; inst 1207 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c ring = &adev->vcn.inst->ring_enc[0]; inst 1214 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c ring = &adev->vcn.inst->ring_enc[1]; inst 1361 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c ring = &adev->vcn.inst->ring_enc[0]; inst 1368 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c ring = &adev->vcn.inst->ring_enc[1]; inst 1660 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c if (ring == &adev->vcn.inst->ring_enc[0]) inst 1677 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c if (ring == &adev->vcn.inst->ring_enc[0]) { inst 1701 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c if (ring == &adev->vcn.inst->ring_enc[0]) { inst 2075 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c amdgpu_fence_process(&adev->vcn.inst->ring_dec); inst 2078 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c amdgpu_fence_process(&adev->vcn.inst->ring_enc[0]); inst 2081 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c amdgpu_fence_process(&adev->vcn.inst->ring_enc[1]); inst 2084 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c amdgpu_fence_process(&adev->vcn.inst->ring_jpeg); inst 2102 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c WREG32(adev->vcn.inst[ring->me].external.scratch9, 0xCAFEDEAD); inst 2112 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c tmp = RREG32(adev->vcn.inst[ring->me].external.scratch9); inst 2263 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c adev->vcn.inst->ring_dec.funcs = &vcn_v2_0_dec_ring_vm_funcs; inst 2272 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c adev->vcn.inst->ring_enc[i].funcs = &vcn_v2_0_enc_ring_vm_funcs; inst 2279 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c adev->vcn.inst->ring_jpeg.funcs = &vcn_v2_0_jpeg_ring_vm_funcs; inst 2290 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c adev->vcn.inst->irq.num_types = adev->vcn.num_enc_rings + 2; inst 2291 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c adev->vcn.inst->irq.funcs = &vcn_v2_0_irq_funcs; inst 121 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c VCN_2_0__SRCID__UVD_SYSTEM_MESSAGE_INTERRUPT, &adev->vcn.inst[j].irq); inst 128 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c i + VCN_2_0__SRCID__UVD_ENC_GENERAL_PURPOSE, &adev->vcn.inst[j].irq); inst 135 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c VCN_2_0__SRCID__JPEG_DECODE, &adev->vcn.inst[j].irq); inst 176 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c adev->vcn.inst[j].external.scratch9 = SOC15_REG_OFFSET(UVD, j, mmUVD_SCRATCH9); inst 178 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c adev->vcn.inst[j].external.data0 = SOC15_REG_OFFSET(UVD, j, mmUVD_GPCOM_VCPU_DATA0); inst 180 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c adev->vcn.inst[j].external.data1 = SOC15_REG_OFFSET(UVD, j, mmUVD_GPCOM_VCPU_DATA1); inst 182 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c adev->vcn.inst[j].external.cmd = SOC15_REG_OFFSET(UVD, j, mmUVD_GPCOM_VCPU_CMD); inst 184 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c adev->vcn.inst[j].external.nop = SOC15_REG_OFFSET(UVD, j, mmUVD_NO_OP); inst 187 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c adev->vcn.inst[j].external.jpeg_pitch = SOC15_REG_OFFSET(UVD, j, mmUVD_JPEG_PITCH); inst 189 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c ring = &adev->vcn.inst[j].ring_dec; inst 193 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c r = amdgpu_ring_init(adev, ring, 512, &adev->vcn.inst[j].irq, 0); inst 198 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c ring = &adev->vcn.inst[j].ring_enc[i]; inst 202 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c r = amdgpu_ring_init(adev, ring, 512, &adev->vcn.inst[j].irq, 0); inst 207 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c ring = &adev->vcn.inst[j].ring_jpeg; inst 211 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c r = amdgpu_ring_init(adev, ring, 512, &adev->vcn.inst[j].irq, 0); inst 256 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c ring = &adev->vcn.inst[j].ring_dec; inst 268 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c ring = &adev->vcn.inst[j].ring_enc[i]; inst 278 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c ring = &adev->vcn.inst[j].ring_jpeg; inst 308 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c ring = &adev->vcn.inst[i].ring_dec; inst 316 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c ring = &adev->vcn.inst[i].ring_enc[i]; inst 320 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c ring = &adev->vcn.inst[i].ring_jpeg; inst 395 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c lower_32_bits(adev->vcn.inst[i].gpu_addr)); inst 397 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c upper_32_bits(adev->vcn.inst[i].gpu_addr)); inst 406 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c lower_32_bits(adev->vcn.inst[i].gpu_addr + offset)); inst 408 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c upper_32_bits(adev->vcn.inst[i].gpu_addr + offset)); inst 414 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c lower_32_bits(adev->vcn.inst[i].gpu_addr + offset + AMDGPU_VCN_STACK_SIZE)); inst 416 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c upper_32_bits(adev->vcn.inst[i].gpu_addr + offset + AMDGPU_VCN_STACK_SIZE)); inst 618 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c ring = &adev->vcn.inst[i].ring_jpeg; inst 845 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c ring = &adev->vcn.inst[i].ring_dec; inst 867 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c ring = &adev->vcn.inst[i].ring_enc[0]; inst 874 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c ring = &adev->vcn.inst[i].ring_enc[1]; inst 1041 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c if (ring == &adev->vcn.inst[ring->me].ring_enc[0]) inst 1058 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c if (ring == &adev->vcn.inst[ring->me].ring_enc[0]) { inst 1082 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c if (ring == &adev->vcn.inst[ring->me].ring_enc[0]) { inst 1216 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c adev->vcn.inst[i].ring_dec.funcs = &vcn_v2_5_dec_ring_vm_funcs; inst 1217 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c adev->vcn.inst[i].ring_dec.me = i; inst 1230 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c adev->vcn.inst[j].ring_enc[i].funcs = &vcn_v2_5_enc_ring_vm_funcs; inst 1231 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c adev->vcn.inst[j].ring_enc[i].me = j; inst 1244 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c adev->vcn.inst[i].ring_jpeg.funcs = &vcn_v2_5_jpeg_ring_vm_funcs; inst 1245 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c adev->vcn.inst[i].ring_jpeg.me = i; inst 1348 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c amdgpu_fence_process(&adev->vcn.inst[ip_instance].ring_dec); inst 1351 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c amdgpu_fence_process(&adev->vcn.inst[ip_instance].ring_enc[0]); inst 1354 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c amdgpu_fence_process(&adev->vcn.inst[ip_instance].ring_enc[1]); inst 1357 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c amdgpu_fence_process(&adev->vcn.inst[ip_instance].ring_jpeg); inst 1380 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c adev->vcn.inst[i].irq.num_types = adev->vcn.num_enc_rings + 2; inst 1381 drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c adev->vcn.inst[i].irq.funcs = &vcn_v2_5_irq_funcs; inst 603 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c adev->dm.dc->res_pool->audios[i]->inst; inst 5965 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c int i, inst; inst 5990 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c inst = aconnector->audio_inst; inst 5994 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c amdgpu_dm_audio_eld_notify(adev, inst); inst 6022 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c inst = status->audio_inst; inst 6023 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c aconnector->audio_inst = inst; inst 6026 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c amdgpu_dm_audio_eld_notify(adev, inst); inst 528 drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c secondary_pipe->plane_res.mpcc_inst = pool->dpps[secondary_pipe->pipe_idx]->inst; inst 148 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c cfg->pipe_idx = pipe_ctx->stream_res.tg->inst; inst 39 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr_clk.c #define CLK_BASE_INNER(inst) \ inst 40 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr_clk.c CLK_BASE__INST ## inst ## _SEG0 inst 43 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr_clk.c #define CLK_REG(reg_name, block, inst)\ inst 44 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr_clk.c CLK_BASE(mm ## block ## _ ## inst ## _ ## reg_name ## _BASE_IDX) + \ inst 45 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/rv1_clk_mgr_clk.c mm ## block ## _ ## inst ## _ ## reg_name inst 113 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c dpp_inst = context->res_ctx.pipe_ctx[i].plane_res.dpp->inst; inst 287 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c dpp_inst = context->res_ctx.pipe_ctx[i].plane_res.dpp->inst; inst 304 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c dpp_inst = context->res_ctx.pipe_ctx[i].plane_res.dpp->inst; inst 487 drivers/gpu/drm/amd/display/dc/core/dc.c pipes->stream_res.opp->inst); inst 339 drivers/gpu/drm/amd/display/dc/core/dc_debug.c pipe_ctx->stream_res.tg->inst, inst 2350 drivers/gpu/drm/amd/display/dc/core/dc_link.c res_ctx.pipe_ctx[i].stream_res.tg->inst + inst 2687 drivers/gpu/drm/amd/display/dc/core/dc_link.c pipe_ctx->stream_res.tg->inst, inst 408 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c dsc->funcs->dsc_enable(dsc, pipe_ctx->stream_res.opp->inst); inst 413 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c odm_dsc->funcs->dsc_enable(odm_dsc, odm_pipe->stream_res.opp->inst); inst 433 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c DC_LOG_DSC("Setting optc DSC config for tg instance %d:", pipe_ctx->stream_res.tg->inst); inst 1219 drivers/gpu/drm/amd/display/dc/core/dc_resource.c split_pipe->plane_res.mpcc_inst = pool->dpps[i]->inst; inst 1624 drivers/gpu/drm/amd/display/dc/core/dc_resource.c pipe_ctx->plane_res.mpcc_inst = pool->dpps[i]->inst; inst 1857 drivers/gpu/drm/amd/display/dc/core/dc_resource.c unsigned int inst, tg_inst; inst 1869 drivers/gpu/drm/amd/display/dc/core/dc_resource.c inst = link->link_enc->funcs->get_dig_frontend(link->link_enc); inst 1872 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (inst >= pool->pipe_count) inst 1875 drivers/gpu/drm/amd/display/dc/core/dc_resource.c if (inst >= pool->stream_enc_count) inst 1878 drivers/gpu/drm/amd/display/dc/core/dc_resource.c tg_inst = pool->stream_enc[inst]->funcs->dig_source_otg(pool->stream_enc[inst]); inst 1895 drivers/gpu/drm/amd/display/dc/core/dc_resource.c pipe_ctx->plane_res.mpcc_inst = pool->dpps[tg_inst]->inst; inst 1992 drivers/gpu/drm/amd/display/dc/core/dc_resource.c context->stream_status[i].primary_otg_inst = pipe_ctx->stream_res.tg->inst; inst 1995 drivers/gpu/drm/amd/display/dc/core/dc_resource.c pipe_ctx->stream_res.audio ? pipe_ctx->stream_res.audio->inst : -1; inst 371 drivers/gpu/drm/amd/display/dc/dce/dce_audio.c audio->inst, value); inst 396 drivers/gpu/drm/amd/display/dc/dce/dce_audio.c audio->inst, value); inst 617 drivers/gpu/drm/amd/display/dc/dce/dce_audio.c audio->inst, value, audio_info->display_name); inst 892 drivers/gpu/drm/amd/display/dc/dce/dce_audio.c if (audio->inst != 0) inst 937 drivers/gpu/drm/amd/display/dc/dce/dce_audio.c unsigned int inst, inst 951 drivers/gpu/drm/amd/display/dc/dce/dce_audio.c audio->base.inst = inst; inst 133 drivers/gpu/drm/amd/display/dc/dce/dce_audio.h unsigned int inst, inst 419 drivers/gpu/drm/amd/display/dc/dce/dce_aux.c uint32_t inst, inst 427 drivers/gpu/drm/amd/display/dc/dce/dce_aux.c aux_engine110->base.inst = inst; inst 92 drivers/gpu/drm/amd/display/dc/dce/dce_aux.h uint32_t inst; inst 126 drivers/gpu/drm/amd/display/dc/dce/dce_aux.h uint32_t inst, inst 520 drivers/gpu/drm/amd/display/dc/dce/dce_clk_mgr.c cfg->pipe_idx = pipe_ctx->stream_res.tg->inst; inst 910 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c unsigned int inst = pix_clk_params->controller_id - CONTROLLER_ID_D0; inst 915 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c REG_WRITE(PHASE[inst], clock_100hz); inst 916 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c REG_WRITE(MODULO[inst], dp_dto_ref_100hz); inst 919 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c REG_UPDATE(PIXEL_RATE_CNTL[inst], DP_DTO0_ENABLE, 1); inst 987 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c unsigned int inst, inst 994 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c clock_hz = REG_READ(PHASE[inst]); inst 60 drivers/gpu/drm/amd/display/dc/dce/dce_hwseq.c val = REG_GET_4(BLND_V_UPDATE_LOCK[pipe->stream_res.tg->inst], inst 71 drivers/gpu/drm/amd/display/dc/dce/dce_hwseq.c REG_SET_2(BLND_V_UPDATE_LOCK[pipe->stream_res.tg->inst], val, inst 76 drivers/gpu/drm/amd/display/dc/dce/dce_hwseq.c REG_SET_2(BLND_V_UPDATE_LOCK[pipe->stream_res.tg->inst], val, inst 82 drivers/gpu/drm/amd/display/dc/dce/dce_hwseq.c uint32_t value = REG_READ(CRTC_H_BLANK_START_END[pipe->stream_res.tg->inst]); inst 83 drivers/gpu/drm/amd/display/dc/dce/dce_hwseq.c REG_WRITE(CRTC_H_BLANK_START_END[pipe->stream_res.tg->inst], value); inst 65 drivers/gpu/drm/amd/display/dc/dce/dce_hwseq.h #define HSWEQ_DCN_PIXEL_RATE_REG_LIST(blk, inst) \ inst 66 drivers/gpu/drm/amd/display/dc/dce/dce_hwseq.h SRII(PIXEL_RATE_CNTL, blk, inst), \ inst 67 drivers/gpu/drm/amd/display/dc/dce/dce_hwseq.h SRII(PHYPLL_PIXEL_RATE_CNTL, blk, inst) inst 823 drivers/gpu/drm/amd/display/dc/dce/dce_hwseq.h unsigned int inst, bool enable); inst 249 drivers/gpu/drm/amd/display/dc/dce/dce_ipp.c int inst, inst 255 drivers/gpu/drm/amd/display/dc/dce/dce_ipp.c ipp_dce->base.inst = inst; inst 231 drivers/gpu/drm/amd/display/dc/dce/dce_ipp.h int inst, inst 771 drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c int inst, inst 778 drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c dce_mi->base.inst = inst; inst 789 drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c int inst, inst 794 drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c dce_mem_input_construct(dce_mi, ctx, inst, regs, mi_shift, mi_mask); inst 801 drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c int inst, inst 806 drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c dce_mem_input_construct(dce_mi, ctx, inst, regs, mi_shift, mi_mask); inst 343 drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.h int inst, inst 351 drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.h int inst, inst 359 drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.h int inst, inst 546 drivers/gpu/drm/amd/display/dc/dce/dce_opp.c uint32_t inst, inst 555 drivers/gpu/drm/amd/display/dc/dce/dce_opp.c opp110->base.inst = inst; inst 277 drivers/gpu/drm/amd/display/dc/dce/dce_opp.h uint32_t inst, inst 1345 drivers/gpu/drm/amd/display/dc/dce/dce_transform.c uint32_t inst, inst 1352 drivers/gpu/drm/amd/display/dc/dce/dce_transform.c xfm_dce->base.inst = inst; inst 487 drivers/gpu/drm/amd/display/dc/dce/dce_transform.h uint32_t inst, inst 414 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c struct dc_context *ctx, unsigned int inst) inst 416 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c return dce_audio_create(ctx, inst, inst 417 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c &audio_regs[inst], &audio_shift, &audio_mask); inst 511 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c uint32_t inst) inst 521 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c dce_mem_input_construct(dce_mi, ctx, inst, &mi_regs[inst], &mi_shifts, &mi_masks); inst 534 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c uint32_t inst) inst 542 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c dce_transform_construct(transform, ctx, inst, inst 543 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c &xfm_regs[inst], &xfm_shift, &xfm_mask); inst 548 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c struct dc_context *ctx, uint32_t inst) inst 557 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c dce_ipp_construct(ipp, ctx, inst, inst 558 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c &ipp_regs[inst], &ipp_shift, &ipp_mask); inst 589 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c uint32_t inst) inst 598 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c ctx, inst, &opp_regs[inst], &opp_shift, &opp_mask); inst 604 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c uint32_t inst) inst 612 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c dce110_aux_engine_construct(aux_engine, ctx, inst, inst 614 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c &aux_engine_regs[inst]); inst 639 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c uint32_t inst) inst 647 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c dce100_i2c_hw_construct(dce_i2c_hw, ctx, inst, inst 648 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c &i2c_hw_regs[inst], &i2c_shifts, &i2c_masks); inst 206 drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c params->inst, inst 215 drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c compressor->attached_inst = params->inst + CONTROLLER_ID_D0; inst 270 drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c uint32_t *inst) inst 277 drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c if (inst != NULL) inst 278 drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c *inst = compressor->attached_inst; inst 287 drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c if (inst != NULL) inst 288 drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c *inst = inst 307 drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c cp110->offsets = reg_offsets[params->inst]; inst 1184 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->stream_res.tg->inst + 1); inst 1196 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c uint32_t color_value = MAX_TG_COLOR_VALUE * (4 - pipe_ctx->stream_res.tg->inst) / 4; inst 1348 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->stream_res.audio->inst, inst 1353 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->stream_res.audio->inst, inst 1388 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->stream_res.tg->inst); inst 1868 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c params.inst = pipe_ctx->stream_res.tg->inst; inst 2177 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c dce_set_blender_mode(dc->hwseq, pipe_ctx->stream_res.tg->inst, blender_mode); inst 2298 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c gsl_params.gsl_master = grouped_pipes[0]->stream_res.tg->inst; inst 2481 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c dce_enable_fe_clock(dc->hwseq, mi->inst, true); inst 2640 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c pipe_ctx->plane_res.mi->inst : pipe_ctx->pipe_idx; inst 455 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c struct dc_context *ctx, unsigned int inst) inst 457 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c return dce_audio_create(ctx, inst, inst 458 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c &audio_regs[inst], &audio_shift, &audio_mask); inst 557 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c uint32_t inst) inst 567 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c dce_mem_input_construct(dce_mi, ctx, inst, &mi_regs[inst], &mi_shifts, &mi_masks); inst 580 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c uint32_t inst) inst 588 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c dce_transform_construct(transform, ctx, inst, inst 589 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c &xfm_regs[inst], &xfm_shift, &xfm_mask); inst 594 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c struct dc_context *ctx, uint32_t inst) inst 603 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c dce_ipp_construct(ipp, ctx, inst, inst 604 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c &ipp_regs[inst], &ipp_shift, &ipp_mask); inst 635 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c uint32_t inst) inst 644 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c ctx, inst, &opp_regs[inst], &opp_shift, &opp_mask); inst 650 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c uint32_t inst) inst 658 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c dce110_aux_engine_construct(aux_engine, ctx, inst, inst 660 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c &aux_engine_regs[inst]); inst 685 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c uint32_t inst) inst 693 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c dce100_i2c_hw_construct(dce_i2c_hw, ctx, inst, inst 694 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c &i2c_hw_regs[inst], &i2c_shifts, &i2c_masks); inst 822 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c pixel_clk_params->controller_id = pipe_ctx->stream_res.tg->inst + 1; inst 1076 drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c pipe_ctx->stream_res.tg->inst, inst 1232 drivers/gpu/drm/amd/display/dc/dce110/dce110_timing_generator.c gsl_params->gsl_master == tg->inst, inst 2251 drivers/gpu/drm/amd/display/dc/dce110/dce110_timing_generator.c tg110->base.inst = instance; inst 398 drivers/gpu/drm/amd/display/dc/dce112/dce112_compressor.c params->inst, inst 404 drivers/gpu/drm/amd/display/dc/dce112/dce112_compressor.c compressor->attached_inst = params->inst; inst 405 drivers/gpu/drm/amd/display/dc/dce112/dce112_compressor.c cp110->offsets = reg_offsets[params->inst]; inst 444 drivers/gpu/drm/amd/display/dc/dce112/dce112_compressor.c uint32_t *inst) inst 451 drivers/gpu/drm/amd/display/dc/dce112/dce112_compressor.c if (inst != NULL) inst 452 drivers/gpu/drm/amd/display/dc/dce112/dce112_compressor.c *inst = compressor->attached_inst; inst 461 drivers/gpu/drm/amd/display/dc/dce112/dce112_compressor.c if (inst != NULL) inst 462 drivers/gpu/drm/amd/display/dc/dce112/dce112_compressor.c *inst = inst 432 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c struct dc_context *ctx, unsigned int inst) inst 434 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c return dce_audio_create(ctx, inst, inst 435 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c &audio_regs[inst], &audio_shift, &audio_mask); inst 526 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c uint32_t inst) inst 536 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c dce112_mem_input_construct(dce_mi, ctx, inst, &mi_regs[inst], &mi_shifts, &mi_masks); inst 548 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c uint32_t inst) inst 556 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c dce_transform_construct(transform, ctx, inst, inst 557 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c &xfm_regs[inst], &xfm_shift, &xfm_mask); inst 592 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c struct dc_context *ctx, uint32_t inst) inst 601 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c dce_ipp_construct(ipp, ctx, inst, inst 602 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c &ipp_regs[inst], &ipp_shift, &ipp_mask); inst 608 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c uint32_t inst) inst 617 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c ctx, inst, &opp_regs[inst], &opp_shift, &opp_mask); inst 623 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c uint32_t inst) inst 631 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c dce110_aux_engine_construct(aux_engine, ctx, inst, inst 633 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c &aux_engine_regs[inst]); inst 658 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c uint32_t inst) inst 666 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c dce112_i2c_hw_construct(dce_i2c_hw, ctx, inst, inst 667 drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c &i2c_hw_regs[inst], &i2c_shifts, &i2c_masks); inst 383 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c uint32_t inst) inst 392 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c ctx, inst, &opp_regs[inst], &opp_shift, &opp_mask); inst 397 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c uint32_t inst) inst 405 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c dce110_aux_engine_construct(aux_engine, ctx, inst, inst 407 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c &aux_engine_regs[inst]); inst 432 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c uint32_t inst) inst 440 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c dce112_i2c_hw_construct(dce_i2c_hw, ctx, inst, inst 441 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c &i2c_hw_regs[inst], &i2c_shifts, &i2c_masks); inst 636 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c struct dc_context *ctx, unsigned int inst) inst 638 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c return dce_audio_create(ctx, inst, inst 639 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c &audio_regs[inst], &audio_shift, &audio_mask); inst 673 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c struct dc_context *ctx, uint32_t inst) inst 682 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c dce_ipp_construct(ipp, ctx, inst, inst 683 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c &ipp_regs[inst], &ipp_shift, &ipp_mask); inst 795 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c uint32_t inst) inst 805 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c dce120_mem_input_construct(dce_mi, ctx, inst, &mi_regs[inst], &mi_shifts, &mi_masks); inst 811 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c uint32_t inst) inst 819 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c dce_transform_construct(transform, ctx, inst, inst 820 drivers/gpu/drm/amd/display/dc/dce120/dce120_resource.c &xfm_regs[inst], &xfm_shift, &xfm_mask); inst 266 drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generator.c FD(DCP0_DCP_GSL_CONTROL__DCP_GSL_MASTER_EN), gsl_params->gsl_master == tg->inst, inst 1247 drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generator.c tg110->base.inst = instance; inst 446 drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c struct dc_context *ctx, unsigned int inst) inst 448 drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c return dce_audio_create(ctx, inst, inst 449 drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c &audio_regs[inst], &audio_shift, &audio_mask); inst 469 drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c uint32_t inst) inst 478 drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c ctx, inst, &opp_regs[inst], &opp_shift, &opp_mask); inst 484 drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c uint32_t inst) inst 492 drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c dce110_aux_engine_construct(aux_engine, ctx, inst, inst 494 drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c &aux_engine_regs[inst]); inst 519 drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c uint32_t inst) inst 527 drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c dce_i2c_hw_construct(dce_i2c_hw, ctx, inst, inst 528 drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c &i2c_hw_regs[inst], &i2c_shifts, &i2c_masks); inst 623 drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c uint32_t inst) inst 633 drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c dce_mem_input_construct(dce_mi, ctx, inst, &mi_regs[inst], &mi_shifts, &mi_masks); inst 646 drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c uint32_t inst) inst 654 drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c dce_transform_construct(transform, ctx, inst, inst 655 drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c &xfm_regs[inst], &xfm_shift, &xfm_mask); inst 716 drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c struct dc_context *ctx, uint32_t inst) inst 725 drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c dce_ipp_construct(ipp, ctx, inst, inst 726 drivers/gpu/drm/amd/display/dc/dce80/dce80_resource.c &ipp_regs[inst], &ipp_shift, &ipp_mask); inst 231 drivers/gpu/drm/amd/display/dc/dce80/dce80_timing_generator.c tg110->base.inst = instance; inst 564 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.c uint32_t inst, inst 571 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.c dpp->base.inst = inst; inst 1509 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.h uint32_t inst, inst 661 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp_dscl.c - visual_confirm_on * 4 * (dpp->base.inst + 1)); inst 123 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.c int inst) inst 127 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.c dwbc10->base.inst = inst; inst 53 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h #define DWBC_COMMON_REG_LIST_DCN1_0(inst) \ inst 54 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h SRI(WB_ENABLE, CNV, inst),\ inst 55 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h SRI(WB_EC_CONFIG, CNV, inst),\ inst 56 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h SRI(CNV_MODE, CNV, inst),\ inst 57 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h SRI(WB_SOFT_RESET, CNV, inst),\ inst 58 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h SRI(MCIF_WB_BUFMGR_SW_CONTROL, MCIF_WB, inst),\ inst 59 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h SRI(MCIF_WB_BUF_PITCH, MCIF_WB, inst),\ inst 60 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h SRI(MCIF_WB_ARBITRATION_CONTROL, MCIF_WB, inst),\ inst 61 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h SRI(MCIF_WB_SCLK_CHANGE, MCIF_WB, inst),\ inst 62 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h SRI(MCIF_WB_BUF_1_ADDR_Y, MCIF_WB, inst),\ inst 63 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h SRI(MCIF_WB_BUF_1_ADDR_Y_OFFSET, MCIF_WB, inst),\ inst 64 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h SRI(MCIF_WB_BUF_1_ADDR_C, MCIF_WB, inst),\ inst 65 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h SRI(MCIF_WB_BUF_1_ADDR_C_OFFSET, MCIF_WB, inst),\ inst 66 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h SRI(MCIF_WB_BUF_2_ADDR_Y, MCIF_WB, inst),\ inst 67 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h SRI(MCIF_WB_BUF_2_ADDR_Y_OFFSET, MCIF_WB, inst),\ inst 68 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h SRI(MCIF_WB_BUF_2_ADDR_C, MCIF_WB, inst),\ inst 69 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h SRI(MCIF_WB_BUF_2_ADDR_C_OFFSET, MCIF_WB, inst),\ inst 70 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h SRI(MCIF_WB_BUF_3_ADDR_Y, MCIF_WB, inst),\ inst 71 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h SRI(MCIF_WB_BUF_3_ADDR_Y_OFFSET, MCIF_WB, inst),\ inst 72 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h SRI(MCIF_WB_BUF_3_ADDR_C, MCIF_WB, inst),\ inst 73 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h SRI(MCIF_WB_BUF_3_ADDR_C_OFFSET, MCIF_WB, inst),\ inst 74 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h SRI(MCIF_WB_BUF_4_ADDR_Y, MCIF_WB, inst),\ inst 75 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h SRI(MCIF_WB_BUF_4_ADDR_Y_OFFSET, MCIF_WB, inst),\ inst 76 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h SRI(MCIF_WB_BUF_4_ADDR_C, MCIF_WB, inst),\ inst 77 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h SRI(MCIF_WB_BUF_4_ADDR_C_OFFSET, MCIF_WB, inst),\ inst 78 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h SRI(MCIF_WB_BUFMGR_VCE_CONTROL, MCIF_WB, inst),\ inst 79 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h SRI(MCIF_WB_NB_PSTATE_LATENCY_WATERMARK, MCIF_WB, inst),\ inst 80 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h SRI(MCIF_WB_NB_PSTATE_CONTROL, MCIF_WB, inst),\ inst 81 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h SRI(MCIF_WB_WATERMARK, MCIF_WB, inst),\ inst 82 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h SRI(MCIF_WB_WARM_UP_CNTL, MCIF_WB, inst),\ inst 83 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h SRI(MCIF_WB_BUF_LUMA_SIZE, MCIF_WB, inst),\ inst 84 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h SRI(MCIF_WB_BUF_CHROMA_SIZE, MCIF_WB, inst) inst 267 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dwb.h int inst); inst 1256 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.c uint32_t inst, inst 1266 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.c hubp1->base.inst = inst; inst 733 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.h uint32_t inst, inst 144 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c hubp->inst, inst 173 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c pool->hubps[i]->inst, rq_regs->drq_expansion_mode, rq_regs->prq_expansion_mode, rq_regs->mrq_expansion_mode, inst 200 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c pool->hubps[i]->inst, dlg_regs->refcyc_h_blank_end, dlg_regs->dlg_vblank_end, dlg_regs->min_dst_y_next_start, inst 230 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c pool->hubps[i]->inst, ttu_regs->qos_level_low_wm, ttu_regs->qos_level_high_wm, ttu_regs->min_ttu_vblank, inst 268 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c dpp->inst, inst 326 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c tg->inst, inst 361 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c dsc->inst, inst 776 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c inst_offset = reg_offsets[pipe_ctx->stream_res.tg->inst].fmt; inst 872 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c pipe_ctx->pipe_idx, pipe_ctx->stream_res.tg->inst); inst 980 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c int dpp_id = pipe_ctx->plane_res.dpp->inst; inst 1016 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c dc->hwss.dpp_pg_control(hws, dpp->inst, false); inst 1017 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c dc->hwss.hubp_pg_control(hws, hubp->inst, false); inst 1022 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c "Power gated front end %d\n", hubp->inst); inst 1151 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c pipe_ctx->plane_res.mpcc_inst = dpp->inst; inst 1152 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c hubp->mpcc_id = dpp->inst; inst 1156 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c dc->res_pool->opps[i]->mpc_tree_params.opp_id = dc->res_pool->opps[i]->inst; inst 1260 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c dc->hwss.dsc_pg_control(hws, res_pool->dscs[i]->inst, false); inst 1579 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c grouped_pipes[0]->stream_res.tg->inst); inst 1839 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c pipe_ctx->plane_res.hubp->inst); inst 2234 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c mpcc_id = hubp->inst; inst 2258 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c hubp->inst, inst 2263 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c hubp->opp_id = pipe_ctx->stream_res.opp->inst; inst 2306 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c dpp->inst, inst 2320 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c hubp->funcs->hubp_vtg_sel(hubp, pipe_ctx->stream_res.tg->inst); inst 2378 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c pipe_ctx->stream_res.opp->inst); inst 2441 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c stream_res->abm->funcs->set_pipe(stream_res->abm, stream_res->tg->inst + 1); inst 2876 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c if (res_pool->hubps[i]->inst == mpcc_inst) inst 144 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer_debug.c hubp->inst, inst 163 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer_debug.c hubp->inst, inst 212 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer_debug.c pool->hubps[i]->inst, rq_regs->drq_expansion_mode, rq_regs->prq_expansion_mode, rq_regs->mrq_expansion_mode, inst 260 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer_debug.c pool->hubps[i]->inst, dlg_regs->refcyc_h_blank_end, dlg_regs->dlg_vblank_end, dlg_regs->min_dst_y_next_start, inst 311 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer_debug.c pool->hubps[i]->inst, ttu_regs->qos_level_low_wm, ttu_regs->qos_level_high_wm, ttu_regs->min_ttu_vblank, inst 352 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer_debug.c dpp->inst, s.igam_input_format, inst 439 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer_debug.c tg->inst, inst 65 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_ipp.c int inst, inst 71 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_ipp.c ippn10->base.inst = inst; inst 83 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_ipp.c int inst, inst 89 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_ipp.c ippn10->base.inst = inst; inst 194 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_ipp.h int inst, inst 202 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_ipp.h int inst, inst 33 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_mpc.h #define MPC_COMMON_REG_LIST_DCN1_0(inst) \ inst 34 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_mpc.h SRII(MPCC_TOP_SEL, MPCC, inst),\ inst 35 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_mpc.h SRII(MPCC_BOT_SEL, MPCC, inst),\ inst 36 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_mpc.h SRII(MPCC_CONTROL, MPCC, inst),\ inst 37 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_mpc.h SRII(MPCC_STATUS, MPCC, inst),\ inst 38 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_mpc.h SRII(MPCC_OPP_ID, MPCC, inst),\ inst 39 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_mpc.h SRII(MPCC_BG_G_Y, MPCC, inst),\ inst 40 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_mpc.h SRII(MPCC_BG_R_CR, MPCC, inst),\ inst 41 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_mpc.h SRII(MPCC_BG_B_CB, MPCC, inst),\ inst 42 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_mpc.h SRII(MPCC_BG_B_CB, MPCC, inst),\ inst 43 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_mpc.h SRII(MPCC_SM_CONTROL, MPCC, inst) inst 45 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_mpc.h #define MPC_OUT_MUX_COMMON_REG_LIST_DCN1_0(inst) \ inst 46 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_mpc.h SRII(MUX, MPC_OUT, inst) inst 409 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_opp.c uint32_t inst, inst 416 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_opp.c oppn10->base.inst = inst; inst 158 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_opp.h uint32_t inst, inst 454 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.c OPTC_SRC_SEL, optc->inst); inst 597 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.c OTG_MASTER_UPDATE_LOCK_SEL, optc->inst); inst 809 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.c MANUAL_FLOW_CONTROL_SEL, optc->inst); inst 813 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.c OTG_TRIGA_SOURCE_PIPE_SELECT, optc->inst, inst 34 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h #define TG_COMMON_REG_LIST_DCN(inst) \ inst 35 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_VSTARTUP_PARAM, OTG, inst),\ inst 36 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_VUPDATE_PARAM, OTG, inst),\ inst 37 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_VREADY_PARAM, OTG, inst),\ inst 38 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_BLANK_CONTROL, OTG, inst),\ inst 39 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_MASTER_UPDATE_LOCK, OTG, inst),\ inst 40 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_GLOBAL_CONTROL0, OTG, inst),\ inst 41 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_DOUBLE_BUFFER_CONTROL, OTG, inst),\ inst 42 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_H_TOTAL, OTG, inst),\ inst 43 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_H_BLANK_START_END, OTG, inst),\ inst 44 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_H_SYNC_A, OTG, inst),\ inst 45 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_H_SYNC_A_CNTL, OTG, inst),\ inst 46 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_H_TIMING_CNTL, OTG, inst),\ inst 47 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_V_TOTAL, OTG, inst),\ inst 48 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_V_BLANK_START_END, OTG, inst),\ inst 49 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_V_SYNC_A, OTG, inst),\ inst 50 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_V_SYNC_A_CNTL, OTG, inst),\ inst 51 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_INTERLACE_CONTROL, OTG, inst),\ inst 52 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_CONTROL, OTG, inst),\ inst 53 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_STEREO_CONTROL, OTG, inst),\ inst 54 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_3D_STRUCTURE_CONTROL, OTG, inst),\ inst 55 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_STEREO_STATUS, OTG, inst),\ inst 56 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_V_TOTAL_MAX, OTG, inst),\ inst 57 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_V_TOTAL_MID, OTG, inst),\ inst 58 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_V_TOTAL_MIN, OTG, inst),\ inst 59 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_V_TOTAL_CONTROL, OTG, inst),\ inst 60 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_TRIGA_CNTL, OTG, inst),\ inst 61 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_FORCE_COUNT_NOW_CNTL, OTG, inst),\ inst 62 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_STATIC_SCREEN_CONTROL, OTG, inst),\ inst 63 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_STATUS_FRAME_COUNT, OTG, inst),\ inst 64 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_STATUS, OTG, inst),\ inst 65 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_STATUS_POSITION, OTG, inst),\ inst 66 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_NOM_VERT_POSITION, OTG, inst),\ inst 67 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_BLACK_COLOR, OTG, inst),\ inst 68 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_CLOCK_CONTROL, OTG, inst),\ inst 69 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_VERTICAL_INTERRUPT0_CONTROL, OTG, inst),\ inst 70 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_VERTICAL_INTERRUPT0_POSITION, OTG, inst),\ inst 71 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_VERTICAL_INTERRUPT1_CONTROL, OTG, inst),\ inst 72 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_VERTICAL_INTERRUPT1_POSITION, OTG, inst),\ inst 73 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_VERTICAL_INTERRUPT2_CONTROL, OTG, inst),\ inst 74 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_VERTICAL_INTERRUPT2_POSITION, OTG, inst),\ inst 75 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OPTC_INPUT_CLOCK_CONTROL, ODM, inst),\ inst 76 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OPTC_DATA_SOURCE_SELECT, ODM, inst),\ inst 77 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OPTC_INPUT_GLOBAL_CONTROL, ODM, inst),\ inst 78 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(CONTROL, VTG, inst),\ inst 79 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_VERT_SYNC_CONTROL, OTG, inst),\ inst 80 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_MASTER_UPDATE_MODE, OTG, inst),\ inst 81 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_GSL_CONTROL, OTG, inst),\ inst 82 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_CRC_CNTL, OTG, inst),\ inst 83 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_CRC0_DATA_RG, OTG, inst),\ inst 84 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_CRC0_DATA_B, OTG, inst),\ inst 85 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_CRC0_WINDOWA_X_CONTROL, OTG, inst),\ inst 86 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_CRC0_WINDOWA_Y_CONTROL, OTG, inst),\ inst 87 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_CRC0_WINDOWB_X_CONTROL, OTG, inst),\ inst 88 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_CRC0_WINDOWB_Y_CONTROL, OTG, inst),\ inst 90 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_GLOBAL_CONTROL2, OTG, inst),\ inst 91 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_TRIGA_MANUAL_TRIG, OTG, inst) inst 93 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h #define TG_COMMON_REG_LIST_DCN1_0(inst) \ inst 94 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h TG_COMMON_REG_LIST_DCN(inst),\ inst 95 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_TEST_PATTERN_PARAMETERS, OTG, inst),\ inst 96 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_TEST_PATTERN_CONTROL, OTG, inst),\ inst 97 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_TEST_PATTERN_COLOR, OTG, inst),\ inst 98 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h SRI(OTG_MANUAL_FLOW_CONTROL, OTG, inst) inst 587 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c uint32_t inst) inst 595 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c dpp1_construct(dpp, ctx, inst, inst 596 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c &tf_regs[inst], &tf_shift, &tf_mask); inst 601 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c struct dc_context *ctx, uint32_t inst) inst 611 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c dcn10_ipp_construct(ipp, ctx, inst, inst 612 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c &ipp_regs[inst], &ipp_shift, &ipp_mask); inst 618 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c struct dc_context *ctx, uint32_t inst) inst 628 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c dcn10_opp_construct(opp, ctx, inst, inst 629 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c &opp_regs[inst], &opp_shift, &opp_mask); inst 635 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c uint32_t inst) inst 643 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c dce110_aux_engine_construct(aux_engine, ctx, inst, inst 645 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c &aux_engine_regs[inst]); inst 670 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c uint32_t inst) inst 678 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c dcn1_i2c_hw_construct(dce_i2c_hw, ctx, inst, inst 679 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c &i2c_hw_regs[inst], &i2c_shifts, &i2c_masks); inst 726 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c tgn10->base.inst = instance; inst 803 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c struct dc_context *ctx, unsigned int inst) inst 805 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c return dce_audio_create(ctx, inst, inst 806 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c &audio_regs[inst], &audio_shift, &audio_mask); inst 972 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c uint32_t inst) inst 980 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c dcn10_hubp_construct(hubp1, ctx, inst, inst 981 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c &hubp_regs[inst], &hubp_shift, &hubp_mask); inst 993 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c pixel_clk_params->controller_id = pipe_ctx->stream_res.tg->inst + 1; inst 1113 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c idle_pipe->plane_res.mpcc_inst = pool->dpps[idle_pipe->pipe_idx]->inst; inst 47 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dccg.h #define DCCG_SFI(reg_name, field_name, field_prefix, inst, post_fix)\ inst 48 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dccg.h .field_prefix ## _ ## field_name[inst] = reg_name ## __ ## field_prefix ## inst ## _ ## field_name ## post_fix inst 497 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp.c uint32_t inst, inst 504 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp.c dpp->base.inst = inst; inst 701 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp.h uint32_t inst, inst 84 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dsc.c int inst, inst 90 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dsc.c dsc->base.inst = inst; inst 194 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dsc.c DC_LOG_DSC("Setting DSC Config at DSC inst %d", dsc->inst); inst 568 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dsc.h int inst, inst 64 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.c DC_LOG_DWB("%s SUPPORTED! inst = %d", __func__, dwbc20->base.inst); inst 67 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.c DC_LOG_DWB("%s NOT SUPPORTED! inst = %d", __func__, dwbc20->base.inst); inst 75 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.c DC_LOG_DWB("%s inst = %d", __func__, dwbc20->base.inst); inst 107 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.c DC_LOG_DWB("%s inst = %d, FAILED!LUMA SCALING NOT SUPPORTED", __func__, dwbc20->base.inst); inst 110 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.c DC_LOG_DWB("%s inst = %d, ENABLED", __func__, dwbc20->base.inst); inst 138 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.c DC_LOG_DWB("%s inst = %d, Disabled", __func__, dwbc20->base.inst); inst 166 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.c DC_LOG_DWB("%s inst = %d, FAILED!LUMA SCALING NOT SUPPORTED", __func__, dwbc20->base.inst); inst 169 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.c DC_LOG_DWB("%s inst = %d, scaling", __func__, dwbc20->base.inst); inst 215 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.c dwbc20->base.inst, stereo_params->stereo_enabled); inst 230 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.c DC_LOG_DWB("%s inst = %d", __func__, dwbc20->base.inst); inst 239 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.c DC_LOG_DWB("%s inst = %d", __func__, dwbc20->base.inst); inst 253 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.c DC_LOG_DWB("%s inst = %d", __func__, dwbc20->base.inst); inst 321 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.c int inst) inst 325 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.c dwbc20->base.inst = inst; inst 57 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h #define DWBC_COMMON_REG_LIST_DCN2_0(inst) \ inst 58 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WB_ENABLE, CNV, inst),\ inst 59 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WB_EC_CONFIG, CNV, inst),\ inst 60 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(CNV_MODE, CNV, inst),\ inst 61 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(CNV_WINDOW_START, CNV, inst),\ inst 62 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(CNV_WINDOW_SIZE, CNV, inst),\ inst 63 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(CNV_UPDATE, CNV, inst),\ inst 64 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(CNV_SOURCE_SIZE, CNV, inst),\ inst 65 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(CNV_TEST_CNTL, CNV, inst),\ inst 66 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(CNV_TEST_CRC_RED, CNV, inst),\ inst 67 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(CNV_TEST_CRC_GREEN, CNV, inst),\ inst 68 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(CNV_TEST_CRC_BLUE, CNV, inst),\ inst 69 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WBSCL_COEF_RAM_SELECT, WBSCL, inst),\ inst 70 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WBSCL_COEF_RAM_TAP_DATA, WBSCL, inst),\ inst 71 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WBSCL_MODE, WBSCL, inst),\ inst 72 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WBSCL_TAP_CONTROL, WBSCL, inst),\ inst 73 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WBSCL_DEST_SIZE, WBSCL, inst),\ inst 74 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WBSCL_HORZ_FILTER_SCALE_RATIO, WBSCL, inst),\ inst 75 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WBSCL_HORZ_FILTER_INIT_Y_RGB, WBSCL, inst),\ inst 76 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WBSCL_HORZ_FILTER_INIT_CBCR, WBSCL, inst),\ inst 77 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WBSCL_VERT_FILTER_SCALE_RATIO, WBSCL, inst),\ inst 78 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WBSCL_VERT_FILTER_INIT_Y_RGB, WBSCL, inst),\ inst 79 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WBSCL_VERT_FILTER_INIT_CBCR, WBSCL, inst),\ inst 80 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WBSCL_ROUND_OFFSET, WBSCL, inst),\ inst 81 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WBSCL_OVERFLOW_STATUS, WBSCL, inst),\ inst 82 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WBSCL_COEF_RAM_CONFLICT_STATUS, WBSCL, inst),\ inst 83 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WBSCL_TEST_CNTL, WBSCL, inst),\ inst 84 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WBSCL_TEST_CRC_RED, WBSCL, inst),\ inst 85 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WBSCL_TEST_CRC_GREEN, WBSCL, inst),\ inst 86 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WBSCL_TEST_CRC_BLUE, WBSCL, inst),\ inst 87 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WBSCL_BACKPRESSURE_CNT_EN, WBSCL, inst),\ inst 88 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WB_MCIF_BACKPRESSURE_CNT, WBSCL, inst),\ inst 89 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WBSCL_CLAMP_Y_RGB, WBSCL, inst),\ inst 90 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WBSCL_CLAMP_CBCR, WBSCL, inst),\ inst 91 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WBSCL_OUTSIDE_PIX_STRATEGY, WBSCL, inst),\ inst 92 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WBSCL_OUTSIDE_PIX_STRATEGY_CBCR, WBSCL, inst),\ inst 93 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WBSCL_DEBUG, WBSCL, inst),\ inst 94 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WBSCL_TEST_DEBUG_INDEX, WBSCL, inst),\ inst 95 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WBSCL_TEST_DEBUG_DATA, WBSCL, inst),\ inst 96 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WB_DEBUG_CTRL, CNV, inst),\ inst 97 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WB_DBG_MODE, CNV, inst),\ inst 98 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WB_HW_DEBUG, CNV, inst),\ inst 99 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(CNV_TEST_DEBUG_INDEX, CNV, inst),\ inst 100 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(CNV_TEST_DEBUG_DATA, CNV, inst),\ inst 101 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WB_SOFT_RESET, CNV, inst),\ inst 102 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WB_WARM_UP_MODE_CTL1, CNV, inst),\ inst 103 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h SRI2(WB_WARM_UP_MODE_CTL2, CNV, inst) inst 427 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb.h int inst); inst 1275 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c uint32_t inst, inst 1285 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c hubp2->base.inst = inst; inst 235 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.h uint32_t inst, inst 533 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c int opp_inst[MAX_PIPES] = { pipe_ctx->stream_res.opp->inst }; inst 545 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c opp_inst[opp_cnt] = odm_pipe->stream_res.opp->inst; inst 631 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c int mpcc_id = pipe_ctx->plane_res.hubp->inst; inst 654 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c int mpcc_id = pipe_ctx->plane_res.hubp->inst; inst 830 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c int opp_inst[MAX_PIPES] = { pipe_ctx->stream_res.opp->inst }; inst 833 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c opp_inst[opp_cnt] = odm_pipe->stream_res.opp->inst; inst 902 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c stream_res->abm->funcs->set_pipe(stream_res->abm, stream_res->tg->inst + 1); inst 916 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c dcn20_dpp_pg_control(hws, pipe_ctx->plane_res.dpp->inst, true); inst 917 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c dcn20_hubp_pg_control(hws, pipe_ctx->plane_res.hubp->inst, true); inst 921 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c "Un-gated front end for pipe %d\n", pipe_ctx->plane_res.hubp->inst); inst 1436 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c dcn20_dsc_pg_control(hws, pipe_ctx->stream_res.dsc->inst, true); inst 1438 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c dcn20_dsc_pg_control(hws, odm_pipe->stream_res.dsc->inst, true); inst 1453 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c dcn20_dsc_pg_control(hws, pipe_ctx->stream_res.dsc->inst, false); inst 1455 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c dcn20_dsc_pg_control(hws, odm_pipe->stream_res.dsc->inst, false); inst 1566 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c vm_helper_mark_vmid_used(dc->vm_helper, plane_state->address.vmid, pipe_ctx->plane_res.hubp->inst); inst 1690 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c pipe_ctx->pipe_idx, pipe_ctx->stream_res.tg->inst); inst 1771 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c mpcc_id = hubp->inst; inst 1795 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c hubp->inst, inst 1799 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c hubp->opp_id = pipe_ctx->stream_res.opp->inst; inst 1990 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c hubp->inst, mode); inst 2049 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c res_pool->opps[i]->mpc_tree_params.opp_id = res_pool->opps[i]->inst; inst 2066 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c pipe_ctx->plane_res.mpcc_inst = dpp->inst; inst 2067 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c hubp->mpcc_id = dpp->inst; inst 313 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.c int inst) inst 317 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.c mcif_wb20->base.inst = inst; inst 59 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h #define MCIF_WB_COMMON_REG_LIST_DCN2_0(inst) \ inst 60 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUFMGR_SW_CONTROL, MCIF_WB, inst),\ inst 61 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUFMGR_CUR_LINE_R, MCIF_WB, inst),\ inst 62 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUFMGR_STATUS, MCIF_WB, inst),\ inst 63 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_PITCH, MCIF_WB, inst),\ inst 64 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_1_STATUS, MCIF_WB, inst),\ inst 65 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_1_STATUS2, MCIF_WB, inst),\ inst 66 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_2_STATUS, MCIF_WB, inst),\ inst 67 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_2_STATUS2, MCIF_WB, inst),\ inst 68 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_3_STATUS, MCIF_WB, inst),\ inst 69 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_3_STATUS2, MCIF_WB, inst),\ inst 70 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_4_STATUS, MCIF_WB, inst),\ inst 71 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_4_STATUS2, MCIF_WB, inst),\ inst 72 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_ARBITRATION_CONTROL, MCIF_WB, inst),\ inst 73 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_SCLK_CHANGE, MCIF_WB, inst),\ inst 74 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_TEST_DEBUG_INDEX, MCIF_WB, inst),\ inst 75 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_TEST_DEBUG_DATA, MCIF_WB, inst),\ inst 76 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_1_ADDR_Y, MCIF_WB, inst),\ inst 77 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_1_ADDR_Y_OFFSET, MCIF_WB, inst),\ inst 78 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_1_ADDR_C, MCIF_WB, inst),\ inst 79 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_1_ADDR_C_OFFSET, MCIF_WB, inst),\ inst 80 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_2_ADDR_Y, MCIF_WB, inst),\ inst 81 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_2_ADDR_Y_OFFSET, MCIF_WB, inst),\ inst 82 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_2_ADDR_C, MCIF_WB, inst),\ inst 83 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_2_ADDR_C_OFFSET, MCIF_WB, inst),\ inst 84 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_3_ADDR_Y, MCIF_WB, inst),\ inst 85 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_3_ADDR_Y_OFFSET, MCIF_WB, inst),\ inst 86 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_3_ADDR_C, MCIF_WB, inst),\ inst 87 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_3_ADDR_C_OFFSET, MCIF_WB, inst),\ inst 88 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_4_ADDR_Y, MCIF_WB, inst),\ inst 89 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_4_ADDR_Y_OFFSET, MCIF_WB, inst),\ inst 90 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_4_ADDR_C, MCIF_WB, inst),\ inst 91 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_4_ADDR_C_OFFSET, MCIF_WB, inst),\ inst 92 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUFMGR_VCE_CONTROL, MCIF_WB, inst),\ inst 93 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_NB_PSTATE_LATENCY_WATERMARK, MCIF_WB, inst),\ inst 94 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_NB_PSTATE_CONTROL, MCIF_WB, inst),\ inst 95 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_WATERMARK, MCIF_WB, inst),\ inst 96 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_CLOCK_GATER_CONTROL, MCIF_WB, inst),\ inst 97 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_WARM_UP_CNTL, MCIF_WB, inst),\ inst 98 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_SELF_REFRESH_CONTROL, MCIF_WB, inst),\ inst 99 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MULTI_LEVEL_QOS_CTRL, MCIF_WB, inst),\ inst 100 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_SECURITY_LEVEL, MCIF_WB, inst),\ inst 101 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_LUMA_SIZE, MCIF_WB, inst),\ inst 102 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_CHROMA_SIZE, MCIF_WB, inst),\ inst 103 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_1_ADDR_Y_HIGH, MCIF_WB, inst),\ inst 104 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_1_ADDR_C_HIGH, MCIF_WB, inst),\ inst 105 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_2_ADDR_Y_HIGH, MCIF_WB, inst),\ inst 106 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_2_ADDR_C_HIGH, MCIF_WB, inst),\ inst 107 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_3_ADDR_Y_HIGH, MCIF_WB, inst),\ inst 108 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_3_ADDR_C_HIGH, MCIF_WB, inst),\ inst 109 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_4_ADDR_Y_HIGH, MCIF_WB, inst),\ inst 110 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_4_ADDR_C_HIGH, MCIF_WB, inst),\ inst 111 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_1_RESOLUTION, MCIF_WB, inst),\ inst 112 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_2_RESOLUTION, MCIF_WB, inst),\ inst 113 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_3_RESOLUTION, MCIF_WB, inst),\ inst 114 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(MCIF_WB_BUF_4_RESOLUTION, MCIF_WB, inst),\ inst 115 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h SRI(SMU_WM_CONTROL, WBIF, inst) inst 542 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mmhubbub.h int inst); inst 33 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h #define MPC_REG_LIST_DCN2_0(inst)\ inst 34 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h MPC_COMMON_REG_LIST_DCN1_0(inst),\ inst 35 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_TOP_GAIN, MPCC, inst),\ inst 36 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_BOT_GAIN_INSIDE, MPCC, inst),\ inst 37 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_BOT_GAIN_OUTSIDE, MPCC, inst),\ inst 38 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_OGAM_RAMA_START_CNTL_B, MPCC_OGAM, inst),\ inst 39 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_OGAM_RAMA_START_CNTL_G, MPCC_OGAM, inst),\ inst 40 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_OGAM_RAMA_START_CNTL_R, MPCC_OGAM, inst),\ inst 41 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_OGAM_RAMA_SLOPE_CNTL_B, MPCC_OGAM, inst),\ inst 42 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_OGAM_RAMA_SLOPE_CNTL_G, MPCC_OGAM, inst),\ inst 43 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_OGAM_RAMA_SLOPE_CNTL_R, MPCC_OGAM, inst),\ inst 44 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_OGAM_RAMA_END_CNTL1_B, MPCC_OGAM, inst),\ inst 45 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_OGAM_RAMA_END_CNTL2_B, MPCC_OGAM, inst),\ inst 46 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_OGAM_RAMA_END_CNTL1_G, MPCC_OGAM, inst),\ inst 47 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_OGAM_RAMA_END_CNTL2_G, MPCC_OGAM, inst),\ inst 48 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_OGAM_RAMA_END_CNTL1_R, MPCC_OGAM, inst),\ inst 49 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_OGAM_RAMA_END_CNTL2_R, MPCC_OGAM, inst),\ inst 50 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_OGAM_RAMA_REGION_0_1, MPCC_OGAM, inst),\ inst 51 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_OGAM_RAMA_REGION_32_33, MPCC_OGAM, inst),\ inst 52 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_OGAM_RAMB_START_CNTL_B, MPCC_OGAM, inst),\ inst 53 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_OGAM_RAMB_START_CNTL_G, MPCC_OGAM, inst),\ inst 54 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_OGAM_RAMB_START_CNTL_R, MPCC_OGAM, inst),\ inst 55 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_OGAM_RAMB_SLOPE_CNTL_B, MPCC_OGAM, inst),\ inst 56 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_OGAM_RAMB_SLOPE_CNTL_G, MPCC_OGAM, inst),\ inst 57 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_OGAM_RAMB_SLOPE_CNTL_R, MPCC_OGAM, inst),\ inst 58 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_OGAM_RAMB_END_CNTL1_B, MPCC_OGAM, inst),\ inst 59 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_OGAM_RAMB_END_CNTL2_B, MPCC_OGAM, inst),\ inst 60 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_OGAM_RAMB_END_CNTL1_G, MPCC_OGAM, inst),\ inst 61 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_OGAM_RAMB_END_CNTL2_G, MPCC_OGAM, inst),\ inst 62 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_OGAM_RAMB_END_CNTL1_R, MPCC_OGAM, inst),\ inst 63 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_OGAM_RAMB_END_CNTL2_R, MPCC_OGAM, inst),\ inst 64 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_OGAM_RAMB_REGION_0_1, MPCC_OGAM, inst),\ inst 65 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_OGAM_RAMB_REGION_32_33, MPCC_OGAM, inst),\ inst 66 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_MEM_PWR_CTRL, MPCC, inst),\ inst 67 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_OGAM_LUT_INDEX, MPCC_OGAM, inst),\ inst 68 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_OGAM_LUT_RAM_CONTROL, MPCC_OGAM, inst),\ inst 69 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_OGAM_LUT_DATA, MPCC_OGAM, inst),\ inst 70 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(MPCC_OGAM_MODE, MPCC_OGAM, inst) inst 72 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h #define MPC_OUT_MUX_REG_LIST_DCN2_0(inst) \ inst 73 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h MPC_OUT_MUX_COMMON_REG_LIST_DCN1_0(inst),\ inst 74 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(CSC_MODE, MPC_OUT, inst),\ inst 75 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(CSC_C11_C12_A, MPC_OUT, inst),\ inst 76 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(CSC_C33_C34_A, MPC_OUT, inst),\ inst 77 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(CSC_C11_C12_B, MPC_OUT, inst),\ inst 78 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(CSC_C33_C34_B, MPC_OUT, inst),\ inst 79 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(DENORM_CONTROL, MPC_OUT, inst),\ inst 80 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(DENORM_CLAMP_G_Y, MPC_OUT, inst),\ inst 81 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.h SRII(DENORM_CLAMP_B_CB, MPC_OUT, inst) inst 341 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_opp.c uint32_t inst, inst 347 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_opp.c oppn20->base.inst = inst; inst 135 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_opp.h uint32_t inst, inst 56 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c OPTC_SEG0_SRC_SEL, optc->inst); inst 220 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c OPTC_SEG0_SRC_SEL, optc->inst, inst 311 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c OPTC_DWB0_SOURCE_SELECT, optc->inst); inst 314 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c OPTC_DWB1_SOURCE_SELECT, optc->inst); inst 322 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c OTG_MASTER_UPDATE_LOCK_SEL, optc->inst); inst 394 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c MANUAL_FLOW_CONTROL_SEL, optc->inst); inst 398 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c OTG_TRIGA_SOURCE_PIPE_SELECT, optc->inst, inst 31 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.h #define TG_COMMON_REG_LIST_DCN2_0(inst) \ inst 32 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.h TG_COMMON_REG_LIST_DCN(inst),\ inst 33 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.h SRI(OTG_GLOBAL_CONTROL1, OTG, inst),\ inst 34 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.h SRI(OTG_GLOBAL_CONTROL2, OTG, inst),\ inst 35 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.h SRI(OTG_GSL_WINDOW_X, OTG, inst),\ inst 36 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.h SRI(OTG_GSL_WINDOW_Y, OTG, inst),\ inst 37 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.h SRI(OTG_VUPDATE_KEEPOUT, OTG, inst),\ inst 38 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.h SRI(OTG_DSC_START_POSITION, OTG, inst),\ inst 39 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.h SRI(OPTC_DATA_FORMAT_CONTROL, ODM, inst),\ inst 40 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.h SRI(OPTC_BYTES_PER_PIXEL, ODM, inst),\ inst 41 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.h SRI(OPTC_WIDTH_CONTROL, ODM, inst),\ inst 42 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.h SRI(OPTC_MEMORY_CONFIG, ODM, inst),\ inst 44 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.h SRI(OTG_MANUAL_FLOW_CONTROL, OTG, inst) inst 974 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c uint32_t inst) inst 982 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (dpp2_construct(dpp, ctx, inst, inst 983 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c &tf_regs[inst], &tf_shift, &tf_mask)) inst 992 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c struct dc_context *ctx, uint32_t inst) inst 1002 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c dcn20_ipp_construct(ipp, ctx, inst, inst 1003 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c &ipp_regs[inst], &ipp_shift, &ipp_mask); inst 1009 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c struct dc_context *ctx, uint32_t inst) inst 1019 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c dcn20_opp_construct(opp, ctx, inst, inst 1020 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c &opp_regs[inst], &opp_shift, &opp_mask); inst 1026 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c uint32_t inst) inst 1034 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c dce110_aux_engine_construct(aux_engine, ctx, inst, inst 1036 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c &aux_engine_regs[inst]); inst 1061 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c uint32_t inst) inst 1069 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c dcn2_i2c_hw_construct(dce_i2c_hw, ctx, inst, inst 1070 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c &i2c_hw_regs[inst], &i2c_shifts, &i2c_masks); inst 1128 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c tgn10->base.inst = instance; inst 1205 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c struct dc_context *ctx, unsigned int inst) inst 1207 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c return dce_audio_create(ctx, inst, inst 1208 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c &audio_regs[inst], &audio_shift, &audio_mask); inst 1282 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c struct dc_context *ctx, uint32_t inst) inst 1292 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c dsc2_construct(dsc, ctx, inst, &dsc_regs[inst], &dsc_shift, &dsc_mask); inst 1417 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c uint32_t inst) inst 1425 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (hubp2_construct(hubp2, ctx, inst, inst 1426 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c &hubp_regs[inst], &hubp_shift, &hubp_mask)) inst 1448 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c pixel_clk_params->controller_id = pipe_ctx->stream_res.tg->inst + 1; inst 1738 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c next_odm_pipe->plane_res.mpcc_inst = pool->dpps[next_odm_pipe->pipe_idx]->inst; inst 1818 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c secondary_pipe->plane_res.mpcc_inst = pool->dpps[secondary_pipe->pipe_idx]->inst; inst 1941 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c pipes[pipe_cnt].pipe.dest.otg_inst = res_ctx->pipe_ctx[i].stream_res.tg->inst; inst 2537 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (dc->debug.force_odm_combine & (1 << pipe->stream_res.tg->inst)) { inst 2956 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c idle_pipe->plane_res.mpcc_inst = pool->dpps[idle_pipe->pipe_idx]->inst; inst 76 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.h uint32_t inst); inst 79 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.h struct dc_context *ctx, uint32_t inst); inst 83 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.h struct dc_context *ctx, uint32_t inst); inst 86 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.h struct dc_context *ctx, uint32_t inst); inst 90 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.h uint32_t inst); inst 95 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.h struct dc_context *ctx, uint32_t inst); inst 103 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.h uint32_t inst); inst 229 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hubp.c uint32_t inst, inst 239 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hubp.c hubp21->base.inst = inst; inst 116 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hubp.h uint32_t inst, inst 641 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c struct dc_context *ctx, uint32_t inst) inst 651 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c dcn20_ipp_construct(ipp, ctx, inst, inst 652 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c &ipp_regs[inst], &ipp_shift, &ipp_mask); inst 658 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c uint32_t inst) inst 666 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c if (dpp2_construct(dpp, ctx, inst, inst 667 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c &tf_regs[inst], &tf_shift, &tf_mask)) inst 677 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c uint32_t inst) inst 685 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c dce110_aux_engine_construct(aux_engine, ctx, inst, inst 687 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c &aux_engine_regs[inst]); inst 712 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c uint32_t inst) inst 720 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c dcn2_i2c_hw_construct(dce_i2c_hw, ctx, inst, inst 721 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c &i2c_hw_regs[inst], &i2c_shifts, &i2c_masks); inst 1147 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c uint32_t inst) inst 1155 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c if (hubp21_construct(hubp21, ctx, inst, inst 1156 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c &hubp_regs[inst], &hubp_shift, &hubp_mask)) inst 1193 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c struct dc_context *ctx, uint32_t inst) inst 1203 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c dcn20_opp_construct(opp, ctx, inst, inst 1204 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c &opp_regs[inst], &opp_shift, &opp_mask); inst 1218 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c tgn10->base.inst = instance; inst 1259 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c struct dc_context *ctx, uint32_t inst) inst 1269 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c dsc2_construct(dsc, ctx, inst, &dsc_regs[inst], &dsc_shift, &dsc_mask); inst 1356 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c struct dc_context *ctx, unsigned int inst) inst 1358 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c return dce_audio_create(ctx, inst, inst 1359 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c &audio_regs[inst], &audio_shift, &audio_mask); inst 171 drivers/gpu/drm/amd/display/dc/inc/clock_source.h unsigned int inst, inst 50 drivers/gpu/drm/amd/display/dc/inc/compressor.h uint32_t inst; inst 59 drivers/gpu/drm/amd/display/dc/inc/hw/audio.h unsigned int inst; inst 85 drivers/gpu/drm/amd/display/dc/inc/hw/aux_engine.h uint32_t inst; inst 80 drivers/gpu/drm/amd/display/dc/inc/hw/clk_mgr_internal.h #define CLK_BASE(inst) \ inst 81 drivers/gpu/drm/amd/display/dc/inc/hw/clk_mgr_internal.h CLK_BASE_INNER(inst) inst 83 drivers/gpu/drm/amd/display/dc/inc/hw/clk_mgr_internal.h #define CLK_SRI(reg_name, block, inst)\ inst 84 drivers/gpu/drm/amd/display/dc/inc/hw/clk_mgr_internal.h .reg_name = CLK_BASE(mm ## block ## _ ## inst ## _ ## reg_name ## _BASE_IDX) + \ inst 85 drivers/gpu/drm/amd/display/dc/inc/hw/clk_mgr_internal.h mm ## block ## _ ## inst ## _ ## reg_name inst 35 drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h int inst; inst 87 drivers/gpu/drm/amd/display/dc/inc/hw/dsc.h int inst; inst 112 drivers/gpu/drm/amd/display/dc/inc/hw/dwb.h int inst; inst 59 drivers/gpu/drm/amd/display/dc/inc/hw/hubp.h int inst; inst 39 drivers/gpu/drm/amd/display/dc/inc/hw/ipp.h unsigned int inst; inst 70 drivers/gpu/drm/amd/display/dc/inc/hw/mcif_wb.h int inst; inst 75 drivers/gpu/drm/amd/display/dc/inc/hw/mem_input.h int inst; inst 206 drivers/gpu/drm/amd/display/dc/inc/hw/opp.h uint32_t inst; inst 128 drivers/gpu/drm/amd/display/dc/inc/hw/timing_generator.h int inst; inst 40 drivers/gpu/drm/amd/display/dc/inc/hw/transform.h int inst; inst 68 drivers/gpu/drm/amd/display/dc/inc/resource.h struct dc_context *ctx, unsigned int inst); inst 93 drivers/gpu/drm/amd/powerplay/hwmgr/common_baco.c reg = adev->reg_offset[entry[i].hwip][entry[i].inst][entry[i].seg] inst 39 drivers/gpu/drm/amd/powerplay/hwmgr/common_baco.h uint32_t inst; inst 242 drivers/gpu/drm/i915/gt/intel_engine_user.c int class, inst; inst 246 drivers/gpu/drm/i915/gt/intel_engine_user.c for (inst = 0; inst < uabi_instances[class]; inst++) { inst 248 drivers/gpu/drm/i915/gt/intel_engine_user.c class, inst); inst 251 drivers/gpu/drm/i915/gt/intel_engine_user.c class, inst); inst 257 drivers/gpu/drm/i915/gt/intel_engine_user.c engine->uabi_instance != inst) { inst 262 drivers/gpu/drm/i915/gt/intel_engine_user.c class, inst); inst 1802 drivers/gpu/drm/i915/gt/selftest_lrc.c unsigned int class, inst; inst 1823 drivers/gpu/drm/i915/gt/selftest_lrc.c for (inst = 0; inst <= MAX_ENGINE_INSTANCE; inst++) { inst 1824 drivers/gpu/drm/i915/gt/selftest_lrc.c if (!gt->engine_class[class][inst]) inst 1827 drivers/gpu/drm/i915/gt/selftest_lrc.c siblings[nsibling++] = gt->engine_class[class][inst]; inst 1949 drivers/gpu/drm/i915/gt/selftest_lrc.c unsigned int class, inst; inst 1961 drivers/gpu/drm/i915/gt/selftest_lrc.c for (inst = 0; inst <= MAX_ENGINE_INSTANCE; inst++) { inst 1962 drivers/gpu/drm/i915/gt/selftest_lrc.c if (!gt->engine_class[class][inst]) inst 1965 drivers/gpu/drm/i915/gt/selftest_lrc.c siblings[nsibling++] = gt->engine_class[class][inst]; inst 2127 drivers/gpu/drm/i915/gt/selftest_lrc.c unsigned int class, inst; inst 2140 drivers/gpu/drm/i915/gt/selftest_lrc.c for (inst = 0; inst <= MAX_ENGINE_INSTANCE; inst++) { inst 2141 drivers/gpu/drm/i915/gt/selftest_lrc.c if (!gt->engine_class[class][inst]) inst 2145 drivers/gpu/drm/i915/gt/selftest_lrc.c siblings[nsibling++] = gt->engine_class[class][inst]; inst 13 drivers/gpu/drm/nouveau/include/nvif/cla06f.h __u64 inst; inst 13 drivers/gpu/drm/nouveau/include/nvif/clc36f.h __u64 inst; inst 40 drivers/gpu/drm/nouveau/include/nvif/ifc00d.h __u64 inst; inst 8 drivers/gpu/drm/nouveau/include/nvkm/core/ramht.h struct nvkm_gpuobj *inst; inst 25 drivers/gpu/drm/nouveau/include/nvkm/engine/fifo.h struct nvkm_gpuobj *inst; inst 56 drivers/gpu/drm/nouveau/include/nvkm/engine/fifo.h nvkm_fifo_chan_inst(struct nvkm_fifo *, u64 inst, unsigned long *flags); inst 22 drivers/gpu/drm/nouveau/include/nvkm/subdev/fault.h u64 inst; inst 57 drivers/gpu/drm/nouveau/include/nvkm/subdev/mmu.h int nvkm_vmm_join(struct nvkm_vmm *, struct nvkm_memory *inst); inst 58 drivers/gpu/drm/nouveau/include/nvkm/subdev/mmu.h void nvkm_vmm_part(struct nvkm_vmm *, struct nvkm_memory *inst); inst 101 drivers/gpu/drm/nouveau/nouveau_chan.c nouveau_svmm_part(chan->vmm->svmm, chan->inst); inst 296 drivers/gpu/drm/nouveau/nouveau_chan.c chan->inst = args.volta.inst; inst 301 drivers/gpu/drm/nouveau/nouveau_chan.c chan->inst = args.kepler.inst; inst 502 drivers/gpu/drm/nouveau/nouveau_chan.c ret = nouveau_svmm_join((*pchan)->vmm->svmm, (*pchan)->inst); inst 14 drivers/gpu/drm/nouveau/nouveau_chan.h u64 inst; inst 42 drivers/gpu/drm/nouveau/nouveau_svm.c struct list_head inst; inst 55 drivers/gpu/drm/nouveau/nouveau_svm.c u64 inst; inst 75 drivers/gpu/drm/nouveau/nouveau_svm.c u64 inst; inst 80 drivers/gpu/drm/nouveau/nouveau_svm.c nouveau_ivmm_find(struct nouveau_svm *svm, u64 inst) inst 83 drivers/gpu/drm/nouveau/nouveau_svm.c list_for_each_entry(ivmm, &svm->inst, head) { inst 84 drivers/gpu/drm/nouveau/nouveau_svm.c if (ivmm->inst == inst) inst 211 drivers/gpu/drm/nouveau/nouveau_svm.c nouveau_svmm_part(struct nouveau_svmm *svmm, u64 inst) inst 216 drivers/gpu/drm/nouveau/nouveau_svm.c ivmm = nouveau_ivmm_find(svmm->vmm->cli->drm->svm, inst); inst 227 drivers/gpu/drm/nouveau/nouveau_svm.c nouveau_svmm_join(struct nouveau_svmm *svmm, u64 inst) inst 234 drivers/gpu/drm/nouveau/nouveau_svm.c ivmm->inst = inst; inst 237 drivers/gpu/drm/nouveau/nouveau_svm.c list_add(&ivmm->head, &svmm->vmm->cli->drm->svm->inst); inst 397 drivers/gpu/drm/nouveau/nouveau_svm.c u64 inst, u8 hub, u8 gpc, u8 client) inst 399 drivers/gpu/drm/nouveau/nouveau_svm.c SVM_DBG(svm, "cancel %016llx %d %02x %02x", inst, hub, gpc, client); inst 406 drivers/gpu/drm/nouveau/nouveau_svm.c .inst = inst, inst 414 drivers/gpu/drm/nouveau/nouveau_svm.c nouveau_svm_fault_cancel(svm, fault->inst, inst 426 drivers/gpu/drm/nouveau/nouveau_svm.c if ((ret = (s64)fa->inst - fb->inst)) inst 448 drivers/gpu/drm/nouveau/nouveau_svm.c const u64 inst = (u64)insthi << 32 | instlo; inst 463 drivers/gpu/drm/nouveau/nouveau_svm.c nouveau_svm_fault_cancel(svm, inst, hub, gpc, client); inst 470 drivers/gpu/drm/nouveau/nouveau_svm.c fault->inst = inst; inst 481 drivers/gpu/drm/nouveau/nouveau_svm.c fault->inst, fault->addr, fault->access); inst 542 drivers/gpu/drm/nouveau/nouveau_svm.c u64 inst, start, limit; inst 577 drivers/gpu/drm/nouveau/nouveau_svm.c if (!svmm || buffer->fault[fi]->inst != inst) { inst 579 drivers/gpu/drm/nouveau/nouveau_svm.c nouveau_ivmm_find(svm, buffer->fault[fi]->inst); inst 581 drivers/gpu/drm/nouveau/nouveau_svm.c inst = buffer->fault[fi]->inst; inst 582 drivers/gpu/drm/nouveau/nouveau_svm.c SVM_DBG(svm, "inst %016llx -> svm-%p", inst, svmm); inst 863 drivers/gpu/drm/nouveau/nouveau_svm.c INIT_LIST_HEAD(&drm->svm->inst); inst 18 drivers/gpu/drm/nouveau/nouveau_svm.h int nouveau_svmm_join(struct nouveau_svmm *, u64 inst); inst 19 drivers/gpu/drm/nouveau/nouveau_svm.h void nouveau_svmm_part(struct nouveau_svmm *, u64 inst); inst 35 drivers/gpu/drm/nouveau/nouveau_svm.h static inline int nouveau_svmm_join(struct nouveau_svmm *svmm, u64 inst) inst 40 drivers/gpu/drm/nouveau/nouveau_svm.h static inline void nouveau_svmm_part(struct nouveau_svmm *svmm, u64 inst) {} inst 49 drivers/gpu/drm/nouveau/nvkm/core/ramht.c return ramht->data[co].inst; inst 64 drivers/gpu/drm/nouveau/nvkm/core/ramht.c u64 inst = 0x00000040; /* just non-zero for <=g8x fifo ramht */ inst 67 drivers/gpu/drm/nouveau/nvkm/core/ramht.c nvkm_gpuobj_del(&data->inst); inst 72 drivers/gpu/drm/nouveau/nvkm/core/ramht.c ret = nvkm_object_bind(object, ramht->parent, 16, &data->inst); inst 78 drivers/gpu/drm/nouveau/nvkm/core/ramht.c data->inst = NULL; inst 81 drivers/gpu/drm/nouveau/nvkm/core/ramht.c if (data->inst) { inst 83 drivers/gpu/drm/nouveau/nvkm/core/ramht.c inst = data->inst->node->offset; inst 85 drivers/gpu/drm/nouveau/nvkm/core/ramht.c inst = data->inst->addr; inst 88 drivers/gpu/drm/nouveau/nvkm/core/ramht.c if (addr < 0) context |= inst << -addr; inst 89 drivers/gpu/drm/nouveau/nvkm/core/ramht.c else context |= inst >> addr; inst 59 drivers/gpu/drm/nouveau/nvkm/engine/ce/gt215.c chan ? chan->inst->addr : 0, inst 89 drivers/gpu/drm/nouveau/nvkm/engine/cipher/g84.c u32 inst = nvkm_rd32(device, 0x102188) & 0x7fffffff; inst 93 drivers/gpu/drm/nouveau/nvkm/engine/cipher/g84.c chan = nvkm_fifo_chan_inst(fifo, (u64)inst << 12, &flags); inst 98 drivers/gpu/drm/nouveau/nvkm/engine/cipher/g84.c chan ? chan->chid : -1, (u64)inst << 12, inst 39 drivers/gpu/drm/nouveau/nvkm/engine/disp/channv50.c const struct nv50_disp_mthd_list *list, int inst) inst 49 drivers/gpu/drm/nouveau/nvkm/engine/disp/channv50.c u32 mthd = list->data[i].mthd + (list->mthd * inst); inst 233 drivers/gpu/drm/nouveau/nvkm/engine/disp/gf119.c nvkm_wr32(device, 0x610010, (disp->inst->addr >> 8) | 9); inst 372 drivers/gpu/drm/nouveau/nvkm/engine/disp/gv100.c switch (nvkm_memory_target(disp->inst->memory)) { inst 380 drivers/gpu/drm/nouveau/nvkm/engine/disp/gv100.c nvkm_wr32(device, 0x610014, disp->inst->addr >> 16); inst 72 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c nvkm_gpuobj_del(&disp->inst); inst 137 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c &disp->inst); inst 142 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c 0x1000, 0, disp->inst, &disp->ramht); inst 749 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c nvkm_wr32(device, 0x610010, (disp->inst->addr >> 8) | 9); inst 37 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.h struct nvkm_gpuobj *inst; inst 94 drivers/gpu/drm/nouveau/nvkm/engine/disp/tu102.c switch (nvkm_memory_target(disp->inst->memory)) { inst 102 drivers/gpu/drm/nouveau/nvkm/engine/disp/tu102.c nvkm_wr32(device, 0x610014, disp->inst->addr >> 16); inst 67 drivers/gpu/drm/nouveau/nvkm/engine/falcon.c u32 inst = nvkm_rd32(device, base + 0x050) & 0x3fffffff; inst 71 drivers/gpu/drm/nouveau/nvkm/engine/falcon.c chan = nvkm_fifo_chan_inst(device->fifo, (u64)inst << 12, &flags); inst 77 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c nvkm_fifo_chan_inst_locked(struct nvkm_fifo *fifo, u64 inst) inst 81 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c if (chan->inst->addr == inst) { inst 91 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c nvkm_fifo_chan_inst(struct nvkm_fifo *fifo, u64 inst, unsigned long *rflags) inst 96 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c if ((chan = nvkm_fifo_chan_inst_locked(fifo, inst))) { inst 331 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c nvkm_vmm_part(chan->vmm, chan->inst->memory); inst 336 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c nvkm_gpuobj_del(&chan->inst); inst 372 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c ret = nvkm_gpuobj_new(device, size, align, zero, NULL, &chan->inst); inst 382 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c ret = nvkm_object_bind(&dmaobj->object, chan->inst, -16, inst 397 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chan.c ret = nvkm_vmm_join(vmm, chan->inst->memory); inst 107 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chang84.c nvkm_wr32(device, 0x0032fc, chan->base.inst->addr >> 12); inst 263 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chang84.c ret = nvkm_gpuobj_new(device, 0x0200, 0, true, chan->base.inst, inst 268 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chang84.c ret = nvkm_gpuobj_new(device, 0x4000, 0, false, chan->base.inst, inst 273 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chang84.c ret = nvkm_gpuobj_new(device, 0x1000, 0x400, true, chan->base.inst, inst 278 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chang84.c ret = nvkm_gpuobj_new(device, 0x100, 0x100, true, chan->base.inst, inst 283 drivers/gpu/drm/nouveau/nvkm/engine/fifo/chang84.c return nvkm_ramht_new(device, 0x8000, 16, chan->base.inst, &chan->ramht); inst 16 drivers/gpu/drm/nouveau/nvkm/engine/fifo/changf100.h struct nvkm_gpuobj *inst; inst 20 drivers/gpu/drm/nouveau/nvkm/engine/fifo/changk104.h struct nvkm_gpuobj *inst; inst 75 drivers/gpu/drm/nouveau/nvkm/engine/fifo/channv50.c nvkm_wr32(device, 0x0032fc, chan->base.inst->addr >> 12); inst 252 drivers/gpu/drm/nouveau/nvkm/engine/fifo/channv50.c ret = nvkm_gpuobj_new(device, 0x0200, 0x1000, true, chan->base.inst, inst 257 drivers/gpu/drm/nouveau/nvkm/engine/fifo/channv50.c ret = nvkm_gpuobj_new(device, 0x1200, 0, true, chan->base.inst, inst 262 drivers/gpu/drm/nouveau/nvkm/engine/fifo/channv50.c ret = nvkm_gpuobj_new(device, 0x4000, 0, false, chan->base.inst, inst 267 drivers/gpu/drm/nouveau/nvkm/engine/fifo/channv50.c return nvkm_ramht_new(device, 0x8000, 16, chan->base.inst, &chan->ramht); inst 83 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmag84.c nvkm_wo32(chan->ramfc, 0x98, chan->base.inst->addr >> 12); inst 97 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv40.c u32 inst, reg, ctx; inst 102 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv40.c inst = chan->engn[engine->subdev.index]->addr >> 4; inst 109 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv40.c nvkm_wr32(device, reg, inst); inst 111 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv40.c nvkm_wo32(imem->ramfc, chan->ramfc + ctx, inst); inst 294 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c chan = nvkm_fifo_chan_inst(&fifo->base, info->inst, &flags); inst 303 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c info->inst, chan ? chan->object.client->name : "unknown"); inst 376 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c u32 inst = nvkm_rd32(device, 0x002800 + (unit * 0x10)); inst 382 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c info.inst = (u64)inst << 12; inst 432 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c unit, show, msg, chid, chan ? chan->inst->addr : 0, inst 519 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c chan = nvkm_fifo_chan_inst_locked(&fifo->base, info->inst); inst 528 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c info->inst, chan ? chan->object.client->name : "unknown"); inst 714 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c unit, show, msg, chid, chan ? chan->inst->addr : 0, inst 37 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gm107.c nvkm_wo32(memory, offset + 4, chan->base.inst->addr >> 12); inst 75 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gm107.c u32 inst = nvkm_rd32(device, 0x002800 + (unit * 0x10)); inst 81 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gm107.c info.inst = (u64)inst << 12; inst 59 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gp100.c u32 inst = nvkm_rd32(device, 0x002800 + (unit * 0x10)); inst 65 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gp100.c info.inst = (u64)inst << 12; inst 84 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifog84.c nvkm_wo32(chan->ramfc, 0x98, chan->base.inst->addr >> 12); inst 77 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c struct nvkm_gpuobj *inst = chan->base.inst; inst 96 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c nvkm_kmap(inst); inst 97 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c nvkm_wo32(inst, offset + 0x00, 0x00000000); inst 98 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c nvkm_wo32(inst, offset + 0x04, 0x00000000); inst 99 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c nvkm_done(inst); inst 111 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c struct nvkm_gpuobj *inst = chan->base.inst; inst 115 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c nvkm_kmap(inst); inst 116 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c nvkm_wo32(inst, offset + 0x00, lower_32_bits(addr) | 4); inst 117 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c nvkm_wo32(inst, offset + 0x04, upper_32_bits(addr)); inst 118 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c nvkm_done(inst); inst 130 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c nvkm_gpuobj_del(&chan->engn[engine->subdev.index].inst); inst 145 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c ret = nvkm_object_bind(object, NULL, 0, &chan->engn[engn].inst); inst 149 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c ret = nvkm_vmm_get(chan->base.vmm, 12, chan->engn[engn].inst->size, inst 154 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c return nvkm_memory_map(chan->engn[engn].inst, 0, chan->base.vmm, inst 183 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c u32 addr = chan->base.inst->addr >> 12; inst 273 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c nvkm_kmap(chan->base.inst); inst 274 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c nvkm_wo32(chan->base.inst, 0x08, lower_32_bits(usermem)); inst 275 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c nvkm_wo32(chan->base.inst, 0x0c, upper_32_bits(usermem)); inst 276 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c nvkm_wo32(chan->base.inst, 0x10, 0x0000face); inst 277 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c nvkm_wo32(chan->base.inst, 0x30, 0xfffff902); inst 278 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c nvkm_wo32(chan->base.inst, 0x48, lower_32_bits(ioffset)); inst 279 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c nvkm_wo32(chan->base.inst, 0x4c, upper_32_bits(ioffset) | inst 281 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c nvkm_wo32(chan->base.inst, 0x54, 0x00000002); inst 282 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c nvkm_wo32(chan->base.inst, 0x84, 0x20400000); inst 283 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c nvkm_wo32(chan->base.inst, 0x94, 0x30000001); inst 284 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c nvkm_wo32(chan->base.inst, 0x9c, 0x00000100); inst 285 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c nvkm_wo32(chan->base.inst, 0xa4, 0x1f1f1f1f); inst 286 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c nvkm_wo32(chan->base.inst, 0xa8, 0x1f1f1f1f); inst 287 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c nvkm_wo32(chan->base.inst, 0xac, 0x0000001f); inst 288 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c nvkm_wo32(chan->base.inst, 0xb8, 0xf8000000); inst 289 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c nvkm_wo32(chan->base.inst, 0xf8, 0x10003080); /* 0x002310 */ inst 290 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c nvkm_wo32(chan->base.inst, 0xfc, 0x10000010); /* 0x002350 */ inst 291 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogf100.c nvkm_done(chan->base.inst); inst 102 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c struct nvkm_gpuobj *inst = chan->base.inst; inst 111 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c nvkm_kmap(inst); inst 112 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c nvkm_wo32(inst, (offset & 0xffff) + 0x00, 0x00000000); inst 113 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c nvkm_wo32(inst, (offset & 0xffff) + 0x04, 0x00000000); inst 115 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c nvkm_wo32(inst, offset + 0x00, 0x00000000); inst 116 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c nvkm_wo32(inst, offset + 0x04, 0x00000000); inst 118 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c nvkm_done(inst); inst 129 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c struct nvkm_gpuobj *inst = chan->base.inst; inst 136 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c nvkm_kmap(inst); inst 137 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c nvkm_wo32(inst, (offset & 0xffff) + 0x00, datalo); inst 138 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c nvkm_wo32(inst, (offset & 0xffff) + 0x04, datahi); inst 140 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c nvkm_wo32(inst, offset + 0x00, datalo); inst 141 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c nvkm_wo32(inst, offset + 0x04, datahi); inst 143 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c nvkm_done(inst); inst 155 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c nvkm_gpuobj_del(&chan->engn[engine->subdev.index].inst); inst 170 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c ret = nvkm_object_bind(object, NULL, 0, &chan->engn[engn].inst); inst 174 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c ret = nvkm_vmm_get(chan->base.vmm, 12, chan->engn[engn].inst->size, inst 179 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c return nvkm_memory_map(chan->engn[engn].inst, 0, chan->base.vmm, inst 207 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c u32 addr = chan->base.inst->addr >> 12; inst 244 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c u64 vmm, u64 ioffset, u64 ilength, u64 *inst, bool priv, inst 283 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c *inst = chan->base.inst->addr; inst 308 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c nvkm_kmap(chan->base.inst); inst 309 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c nvkm_wo32(chan->base.inst, 0x08, lower_32_bits(usermem)); inst 310 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c nvkm_wo32(chan->base.inst, 0x0c, upper_32_bits(usermem)); inst 311 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c nvkm_wo32(chan->base.inst, 0x10, 0x0000face); inst 312 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c nvkm_wo32(chan->base.inst, 0x30, 0xfffff902); inst 313 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c nvkm_wo32(chan->base.inst, 0x48, lower_32_bits(ioffset)); inst 314 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c nvkm_wo32(chan->base.inst, 0x4c, upper_32_bits(ioffset) | inst 316 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c nvkm_wo32(chan->base.inst, 0x84, 0x20400000); inst 317 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c nvkm_wo32(chan->base.inst, 0x94, 0x30000001); inst 318 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c nvkm_wo32(chan->base.inst, 0x9c, 0x00000100); inst 319 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c nvkm_wo32(chan->base.inst, 0xac, 0x0000001f); inst 320 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c nvkm_wo32(chan->base.inst, 0xe4, priv ? 0x00000020 : 0x00000000); inst 321 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c nvkm_wo32(chan->base.inst, 0xe8, chan->base.chid); inst 322 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c nvkm_wo32(chan->base.inst, 0xb8, 0xf8000000); inst 323 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c nvkm_wo32(chan->base.inst, 0xf8, 0x10003080); /* 0x002310 */ inst 324 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c nvkm_wo32(chan->base.inst, 0xfc, 0x10000010); /* 0x002350 */ inst 325 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c nvkm_done(chan->base.inst); inst 354 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c &args->v0.inst, inst 54 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c nvkm_kmap(chan->base.inst); inst 55 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c nvkm_mo32(chan->base.inst, 0x0ac, mask, data); inst 56 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c nvkm_done(chan->base.inst); inst 70 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c struct nvkm_gpuobj *inst = chan->base.inst; inst 81 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c nvkm_kmap(inst); inst 82 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c nvkm_wo32(inst, 0x0210, 0x00000000); inst 83 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c nvkm_wo32(inst, 0x0214, 0x00000000); inst 84 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c nvkm_done(inst); inst 93 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c struct nvkm_gpuobj *inst = chan->base.inst; inst 101 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c nvkm_kmap(inst); inst 102 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c nvkm_wo32(inst, 0x210, lower_32_bits(addr) | 0x00000004); inst 103 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c nvkm_wo32(inst, 0x214, upper_32_bits(addr)); inst 104 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c nvkm_done(inst); inst 125 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c u64 vmm, u64 ioffset, u64 ilength, u64 *inst, bool priv, inst 162 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c *inst = chan->base.inst->addr; inst 202 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c nvkm_kmap(chan->base.inst); inst 203 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c nvkm_wo32(chan->base.inst, 0x008, lower_32_bits(usermem)); inst 204 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c nvkm_wo32(chan->base.inst, 0x00c, upper_32_bits(usermem)); inst 205 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c nvkm_wo32(chan->base.inst, 0x010, 0x0000face); inst 206 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c nvkm_wo32(chan->base.inst, 0x030, 0x7ffff902); inst 207 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c nvkm_wo32(chan->base.inst, 0x048, lower_32_bits(ioffset)); inst 208 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c nvkm_wo32(chan->base.inst, 0x04c, upper_32_bits(ioffset) | inst 210 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c nvkm_wo32(chan->base.inst, 0x084, 0x20400000); inst 211 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c nvkm_wo32(chan->base.inst, 0x094, 0x30000001); inst 212 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c nvkm_wo32(chan->base.inst, 0x0e4, priv ? 0x00000020 : 0x00000000); inst 213 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c nvkm_wo32(chan->base.inst, 0x0e8, chan->base.chid); inst 214 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c nvkm_wo32(chan->base.inst, 0x0f4, 0x00001000); inst 215 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c nvkm_wo32(chan->base.inst, 0x0f8, 0x10003080); inst 216 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c nvkm_mo32(chan->base.inst, 0x218, 0x00000000, 0x00000000); inst 217 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c nvkm_wo32(chan->base.inst, 0x220, lower_32_bits(mthd)); inst 218 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c nvkm_wo32(chan->base.inst, 0x224, upper_32_bits(mthd)); inst 219 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c nvkm_done(chan->base.inst); inst 248 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c &args->v0.inst, inst 76 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifotu102.c &args->v0.inst, inst 37 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gv100.c const u64 inst = chan->base.inst->addr; inst 41 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gv100.c nvkm_wo32(memory, offset + 0x8, lower_32_bits(inst) | chan->base.chid); inst 42 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gv100.c nvkm_wo32(memory, offset + 0xc, upper_32_bits(inst)); inst 15 drivers/gpu/drm/nouveau/nvkm/engine/fifo/priv.h nvkm_fifo_chan_inst_locked(struct nvkm_fifo *, u64 inst); inst 32 drivers/gpu/drm/nouveau/nvkm/engine/gr/base.c if (gr && gr->func->ctxsw.inst) inst 33 drivers/gpu/drm/nouveau/nvkm/engine/gr/base.c return gr->func->ctxsw.inst(gr); inst 1444 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.c struct nvkm_memory *inst = NULL; inst 1482 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.c 0x1000, 0x1000, true, &inst); inst 1492 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.c ret = nvkm_vmm_join(vmm, inst); inst 1511 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.c nvkm_kmap(inst); inst 1512 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.c nvkm_wo32(inst, 0x0210, lower_32_bits(ctx->addr + CB_RESERVED) | 4); inst 1513 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.c nvkm_wo32(inst, 0x0214, upper_32_bits(ctx->addr + CB_RESERVED)); inst 1514 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.c nvkm_done(inst); inst 1524 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.c addr = nvkm_memory_addr(inst) >> 12; inst 1575 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.c nvkm_vmm_part(vmm, inst); inst 1577 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.c nvkm_memory_unref(&inst); inst 25 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv40.h cp_out(struct nvkm_grctx *ctx, u32 inst) inst 33 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv40.h ctxprog[ctx->ctxprog_len++] = inst; inst 775 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c gf100_gr_fecs_bind_pointer(struct gf100_gr *gr, u32 inst) inst 780 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c nvkm_wr32(device, 0x409500, inst); inst 811 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c gf100_gr_fecs_set_reglist_bind_instance(struct gf100_gr *gr, u32 inst) inst 815 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c nvkm_wr32(device, 0x409810, inst); inst 1553 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c u64 inst = nvkm_rd32(device, 0x409b00) & 0x0fffffff; inst 1564 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c chan = nvkm_fifo_chan_inst(device->fifo, (u64)inst << 12, &flags); inst 1588 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c chid, inst << 12, name, subc, inst 1598 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c chid, inst << 12, name, subc, class, mthd, data); inst 1608 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c code, en ? en->name : "", chid, inst << 12, inst 1616 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c chid, inst << 12, name); inst 2093 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c .ctxsw.inst = gf100_gr_ctxsw_inst, inst 149 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h int gf100_gr_fecs_bind_pointer(struct gf100_gr *, u32 inst); inst 445 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx1(struct nvkm_device *device, u32 inst, u32 mask, u32 value) inst 450 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c tmp = nvkm_rd32(device, 0x700000 + inst); inst 453 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nvkm_wr32(device, 0x700000 + inst, tmp); inst 460 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx_val(struct nvkm_device *device, u32 inst, u32 mask, u32 value) inst 465 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c ctx1 = nvkm_rd32(device, 0x700000 + inst); inst 469 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c tmp = nvkm_rd32(device, 0x70000c + inst); inst 472 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nvkm_wr32(device, 0x70000c + inst, tmp); inst 504 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx1(device, inst, 0x01000000, valid << 24); inst 508 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_mthd_set_operation(struct nvkm_device *device, u32 inst, u32 data) inst 516 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx1(device, inst, 0x00038000, data << 15); inst 518 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx_val(device, inst, 0, 0); inst 523 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_mthd_surf3d_clip_h(struct nvkm_device *device, u32 inst, u32 data) inst 541 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_mthd_surf3d_clip_v(struct nvkm_device *device, u32 inst, u32 data) inst 559 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_mthd_bind_class(struct nvkm_device *device, u32 inst) inst 561 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c return nvkm_rd32(device, 0x700000 + (inst << 4)); inst 565 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_mthd_bind_surf2d(struct nvkm_device *device, u32 inst, u32 data) inst 569 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx1(device, inst, 0x00004000, 0); inst 570 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx_val(device, inst, 0x02000000, 0); inst 573 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx1(device, inst, 0x00004000, 0); inst 574 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx_val(device, inst, 0x02000000, 0x02000000); inst 581 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_mthd_bind_surf2d_swzsurf(struct nvkm_device *device, u32 inst, u32 data) inst 585 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx1(device, inst, 0x00004000, 0); inst 586 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx_val(device, inst, 0x02000000, 0); inst 589 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx1(device, inst, 0x00004000, 0); inst 590 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx_val(device, inst, 0x02000000, 0x02000000); inst 593 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx1(device, inst, 0x00004000, 0x00004000); inst 594 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx_val(device, inst, 0x02000000, 0x02000000); inst 601 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv01_gr_mthd_bind_patt(struct nvkm_device *device, u32 inst, u32 data) inst 605 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx_val(device, inst, 0x08000000, 0); inst 608 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx_val(device, inst, 0x08000000, 0x08000000); inst 615 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_mthd_bind_patt(struct nvkm_device *device, u32 inst, u32 data) inst 619 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx_val(device, inst, 0x08000000, 0); inst 622 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx_val(device, inst, 0x08000000, 0x08000000); inst 629 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_mthd_bind_rop(struct nvkm_device *device, u32 inst, u32 data) inst 633 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx_val(device, inst, 0x10000000, 0); inst 636 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx_val(device, inst, 0x10000000, 0x10000000); inst 643 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_mthd_bind_beta1(struct nvkm_device *device, u32 inst, u32 data) inst 647 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx_val(device, inst, 0x20000000, 0); inst 650 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx_val(device, inst, 0x20000000, 0x20000000); inst 657 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_mthd_bind_beta4(struct nvkm_device *device, u32 inst, u32 data) inst 661 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx_val(device, inst, 0x40000000, 0); inst 664 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx_val(device, inst, 0x40000000, 0x40000000); inst 671 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_mthd_bind_surf_dst(struct nvkm_device *device, u32 inst, u32 data) inst 675 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx_val(device, inst, 0x02000000, 0); inst 678 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx_val(device, inst, 0x02000000, 0x02000000); inst 685 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_mthd_bind_surf_src(struct nvkm_device *device, u32 inst, u32 data) inst 689 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx_val(device, inst, 0x04000000, 0); inst 692 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx_val(device, inst, 0x04000000, 0x04000000); inst 699 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_mthd_bind_surf_color(struct nvkm_device *device, u32 inst, u32 data) inst 703 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx_val(device, inst, 0x02000000, 0); inst 706 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx_val(device, inst, 0x02000000, 0x02000000); inst 713 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_mthd_bind_surf_zeta(struct nvkm_device *device, u32 inst, u32 data) inst 717 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx_val(device, inst, 0x04000000, 0); inst 720 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx_val(device, inst, 0x04000000, 0x04000000); inst 727 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv01_gr_mthd_bind_clip(struct nvkm_device *device, u32 inst, u32 data) inst 731 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx1(device, inst, 0x2000, 0); inst 734 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx1(device, inst, 0x2000, 0x2000); inst 741 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv01_gr_mthd_bind_chroma(struct nvkm_device *device, u32 inst, u32 data) inst 745 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx1(device, inst, 0x1000, 0); inst 751 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_set_ctx1(device, inst, 0x1000, 0x1000); inst 758 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv03_gr_mthd_gdi(struct nvkm_device *device, u32 inst, u32 mthd, u32 data) inst 770 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c return func(device, inst, data); inst 774 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_mthd_gdi(struct nvkm_device *device, u32 inst, u32 mthd, u32 data) inst 787 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c return func(device, inst, data); inst 791 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv01_gr_mthd_blit(struct nvkm_device *device, u32 inst, u32 mthd, u32 data) inst 806 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c return func(device, inst, data); inst 810 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_mthd_blit(struct nvkm_device *device, u32 inst, u32 mthd, u32 data) inst 825 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c return func(device, inst, data); inst 829 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_mthd_iifc(struct nvkm_device *device, u32 inst, u32 mthd, u32 data) inst 844 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c return func(device, inst, data); inst 848 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv01_gr_mthd_ifc(struct nvkm_device *device, u32 inst, u32 mthd, u32 data) inst 862 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c return func(device, inst, data); inst 866 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_mthd_ifc(struct nvkm_device *device, u32 inst, u32 mthd, u32 data) inst 881 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c return func(device, inst, data); inst 885 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv03_gr_mthd_sifc(struct nvkm_device *device, u32 inst, u32 mthd, u32 data) inst 898 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c return func(device, inst, data); inst 902 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_mthd_sifc(struct nvkm_device *device, u32 inst, u32 mthd, u32 data) inst 916 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c return func(device, inst, data); inst 920 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv03_gr_mthd_sifm(struct nvkm_device *device, u32 inst, u32 mthd, u32 data) inst 932 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c return func(device, inst, data); inst 936 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_mthd_sifm(struct nvkm_device *device, u32 inst, u32 mthd, u32 data) inst 949 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c return func(device, inst, data); inst 953 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_mthd_surf3d(struct nvkm_device *device, u32 inst, u32 mthd, u32 data) inst 962 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c return func(device, inst, data); inst 966 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv03_gr_mthd_ttri(struct nvkm_device *device, u32 inst, u32 mthd, u32 data) inst 976 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c return func(device, inst, data); inst 980 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv01_gr_mthd_prim(struct nvkm_device *device, u32 inst, u32 mthd, u32 data) inst 993 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c return func(device, inst, data); inst 997 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_mthd_prim(struct nvkm_device *device, u32 inst, u32 mthd, u32 data) inst 1011 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c return func(device, inst, data); inst 1015 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nv04_gr_mthd(struct nvkm_device *device, u32 inst, u32 mthd, u32 data) inst 1018 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c switch (nvkm_rd32(device, 0x700000 + inst) & 0x000000ff) { inst 1039 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c return func(device, inst, mthd, data); inst 1286 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c u32 inst = (nvkm_rd32(device, 0x40016c) & 0xffff) << 4; inst 1297 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c if (!nv04_gr_mthd(device, inst, mthd, data)) inst 812 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv10.c nv10_gr_load_dma_vtxbuf(struct nv10_gr_chan *chan, int chid, u32 inst) inst 835 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv10.c if (subchan < 0 || !inst) inst 862 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv10.c nvkm_wr32(device, NV10_PGRAPH_FFINTFC_ST2_DL, inst); inst 887 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv10.c u32 inst; inst 900 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv10.c inst = nvkm_rd32(device, NV10_PGRAPH_GLOBALSTATE1) & 0xffff; inst 901 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv10.c nv10_gr_load_dma_vtxbuf(chan, chid, inst); inst 21 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c u32 inst = nvkm_memory_addr(chan->inst); inst 24 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(gr->ctxtab, chan->chid * 4, inst >> 4); inst 35 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c u32 inst = nvkm_memory_addr(chan->inst); inst 42 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wr32(device, 0x400784, inst >> 4); inst 63 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_memory_unref(&chan->inst); inst 91 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c &chan->inst); inst 95 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_kmap(chan->inst); inst 96 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, 0x0000, 0x00000001 | (chan->chid << 24)); inst 97 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, 0x033c, 0xffff0000); inst 98 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, 0x03a0, 0x0fff0000); inst 99 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, 0x03a4, 0x0fff0000); inst 100 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, 0x047c, 0x00000101); inst 101 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, 0x0490, 0x00000111); inst 102 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, 0x04a8, 0x44400000); inst 104 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, i, 0x00030303); inst 106 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, i, 0x00080000); inst 108 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, i, 0x01012000); inst 110 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, i, 0x000105b8); inst 112 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, i, 0x00080008); inst 114 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, i, 0x07ff0000); inst 115 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, 0x05a4, 0x4b7fffff); inst 116 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, 0x05fc, 0x00000001); inst 117 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, 0x0604, 0x00004000); inst 118 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, 0x0610, 0x00000001); inst 119 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, 0x0618, 0x00040000); inst 120 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, 0x061c, 0x00010000); inst 122 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, (i + 0), 0x10700ff9); inst 123 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, (i + 4), 0x0436086c); inst 124 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, (i + 8), 0x000c001b); inst 126 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, 0x281c, 0x3f800000); inst 127 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, 0x2830, 0x3f800000); inst 128 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, 0x285c, 0x40000000); inst 129 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, 0x2860, 0x3f800000); inst 130 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, 0x2864, 0x3f000000); inst 131 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, 0x286c, 0x40000000); inst 132 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, 0x2870, 0x3f800000); inst 133 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, 0x2878, 0xbf800000); inst 134 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, 0x2880, 0xbf800000); inst 135 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, 0x34a4, 0x000fe000); inst 136 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, 0x3530, 0x000003f8); inst 137 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, 0x3540, 0x002fe000); inst 139 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_wo32(chan->inst, i, 0x001c527c); inst 140 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_done(chan->inst); inst 29 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.h struct nvkm_memory *inst; inst 37 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c &chan->inst); inst 41 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_kmap(chan->inst); inst 42 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, 0x0028, 0x00000001 | (chan->chid << 24)); inst 43 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, 0x035c, 0xffff0000); inst 44 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, 0x03c0, 0x0fff0000); inst 45 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, 0x03c4, 0x0fff0000); inst 46 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, 0x049c, 0x00000101); inst 47 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, 0x04b0, 0x00000111); inst 48 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, 0x04c8, 0x00000080); inst 49 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, 0x04cc, 0xffff0000); inst 50 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, 0x04d0, 0x00000001); inst 51 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, 0x04e4, 0x44400000); inst 52 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, 0x04fc, 0x4b800000); inst 54 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, i, 0x00030303); inst 56 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, i, 0x00080000); inst 58 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, i, 0x01012000); inst 60 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, i, 0x000105b8); inst 62 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, i, 0x00080008); inst 64 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, i, 0x07ff0000); inst 65 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, 0x05e0, 0x4b7fffff); inst 66 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, 0x0620, 0x00000080); inst 67 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, 0x0624, 0x30201000); inst 68 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, 0x0628, 0x70605040); inst 69 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, 0x062c, 0xb0a09080); inst 70 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, 0x0630, 0xf0e0d0c0); inst 71 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, 0x0664, 0x00000001); inst 72 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, 0x066c, 0x00004000); inst 73 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, 0x0678, 0x00000001); inst 74 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, 0x0680, 0x00040000); inst 75 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, 0x0684, 0x00010000); inst 77 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, (i + 0), 0x10700ff9); inst 78 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, (i + 4), 0x0436086c); inst 79 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, (i + 8), 0x000c001b); inst 81 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, 0x2704, 0x3f800000); inst 82 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, 0x2718, 0x3f800000); inst 83 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, 0x2744, 0x40000000); inst 84 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, 0x2748, 0x3f800000); inst 85 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, 0x274c, 0x3f000000); inst 86 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, 0x2754, 0x40000000); inst 87 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, 0x2758, 0x3f800000); inst 88 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, 0x2760, 0xbf800000); inst 89 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, 0x2768, 0xbf800000); inst 90 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, 0x308c, 0x000fe000); inst 91 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, 0x3108, 0x000003f8); inst 92 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, 0x3468, 0x002fe000); inst 94 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_wo32(chan->inst, i, 0x001c527c); inst 95 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv25.c nvkm_done(chan->inst); inst 37 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c &chan->inst); inst 41 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_kmap(chan->inst); inst 42 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, 0x0000, 0x00000001 | (chan->chid << 24)); inst 43 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, 0x033c, 0xffff0000); inst 44 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, 0x03a0, 0x0fff0000); inst 45 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, 0x03a4, 0x0fff0000); inst 46 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, 0x047c, 0x00000101); inst 47 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, 0x0490, 0x00000111); inst 48 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, 0x04a8, 0x44400000); inst 50 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, i, 0x00030303); inst 52 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, i, 0x00080000); inst 54 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, i, 0x01012000); inst 56 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, i, 0x000105b8); inst 58 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, i, 0x00080008); inst 60 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, i, 0x07ff0000); inst 61 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, 0x05a4, 0x4b7fffff); inst 62 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, 0x05fc, 0x00000001); inst 63 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, 0x0604, 0x00004000); inst 64 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, 0x0610, 0x00000001); inst 65 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, 0x0618, 0x00040000); inst 66 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, 0x061c, 0x00010000); inst 68 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, (i + 0), 0x10700ff9); inst 69 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, (i + 4), 0x0436086c); inst 70 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, (i + 8), 0x000c001b); inst 72 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, 0x269c, 0x3f800000); inst 73 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, 0x26b0, 0x3f800000); inst 74 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, 0x26dc, 0x40000000); inst 75 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, 0x26e0, 0x3f800000); inst 76 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, 0x26e4, 0x3f000000); inst 77 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, 0x26ec, 0x40000000); inst 78 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, 0x26f0, 0x3f800000); inst 79 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, 0x26f8, 0xbf800000); inst 80 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, 0x2700, 0xbf800000); inst 81 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, 0x3024, 0x000fe000); inst 82 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, 0x30a0, 0x000003f8); inst 83 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, 0x33fc, 0x002fe000); inst 85 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_wo32(chan->inst, i, 0x001c527c); inst 86 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv2a.c nvkm_done(chan->inst); inst 38 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c &chan->inst); inst 42 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_kmap(chan->inst); inst 43 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, 0x0028, 0x00000001 | (chan->chid << 24)); inst 44 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, 0x0410, 0x00000101); inst 45 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, 0x0424, 0x00000111); inst 46 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, 0x0428, 0x00000060); inst 47 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, 0x0444, 0x00000080); inst 48 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, 0x0448, 0xffff0000); inst 49 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, 0x044c, 0x00000001); inst 50 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, 0x0460, 0x44400000); inst 51 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, 0x048c, 0xffff0000); inst 53 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, i, 0x0fff0000); inst 54 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, 0x04ec, 0x00011100); inst 56 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, i, 0x07ff0000); inst 57 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, 0x0550, 0x4b7fffff); inst 58 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, 0x058c, 0x00000080); inst 59 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, 0x0590, 0x30201000); inst 60 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, 0x0594, 0x70605040); inst 61 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, 0x0598, 0xb8a89888); inst 62 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, 0x059c, 0xf8e8d8c8); inst 63 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, 0x05b0, 0xb0000000); inst 65 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, i, 0x00010588); inst 67 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, i, 0x00030303); inst 69 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, i, 0x0008aae4); inst 71 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, i, 0x01012000); inst 73 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, i, 0x00080008); inst 74 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, 0x085c, 0x00040000); inst 75 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, 0x0860, 0x00010000); inst 77 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, i, 0x00040004); inst 79 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, i + 0, 0x10700ff9); inst 80 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, i + 4, 0x0436086c); inst 81 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, i + 8, 0x000c001b); inst 84 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, i, 0x0000ffff); inst 85 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, 0x344c, 0x3f800000); inst 86 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, 0x3808, 0x3f800000); inst 87 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, 0x381c, 0x3f800000); inst 88 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, 0x3848, 0x40000000); inst 89 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, 0x384c, 0x3f800000); inst 90 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, 0x3850, 0x3f000000); inst 91 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, 0x3858, 0x40000000); inst 92 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, 0x385c, 0x3f800000); inst 93 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, 0x3864, 0xbf800000); inst 94 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_wo32(chan->inst, 0x386c, 0xbf800000); inst 95 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv30.c nvkm_done(chan->inst); inst 37 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c &chan->inst); inst 41 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_kmap(chan->inst); inst 42 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, 0x0028, 0x00000001 | (chan->chid << 24)); inst 43 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, 0x040c, 0x01000101); inst 44 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, 0x0420, 0x00000111); inst 45 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, 0x0424, 0x00000060); inst 46 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, 0x0440, 0x00000080); inst 47 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, 0x0444, 0xffff0000); inst 48 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, 0x0448, 0x00000001); inst 49 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, 0x045c, 0x44400000); inst 50 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, 0x0480, 0xffff0000); inst 52 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, i, 0x0fff0000); inst 53 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, 0x04e0, 0x00011100); inst 55 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, i, 0x07ff0000); inst 56 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, 0x0544, 0x4b7fffff); inst 57 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, 0x057c, 0x00000080); inst 58 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, 0x0580, 0x30201000); inst 59 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, 0x0584, 0x70605040); inst 60 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, 0x0588, 0xb8a89888); inst 61 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, 0x058c, 0xf8e8d8c8); inst 62 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, 0x05a0, 0xb0000000); inst 64 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, i, 0x00010588); inst 66 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, i, 0x00030303); inst 68 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, i, 0x0008aae4); inst 70 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, i, 0x01012000); inst 72 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, i, 0x00080008); inst 73 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, 0x0850, 0x00040000); inst 74 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, 0x0854, 0x00010000); inst 76 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, i, 0x00040004); inst 78 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, i + 0, 0x10700ff9); inst 79 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, i + 4, 0x0436086c); inst 80 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, i + 8, 0x000c001b); inst 83 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, i, 0x0000ffff); inst 84 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, 0x2ae0, 0x3f800000); inst 85 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, 0x2e9c, 0x3f800000); inst 86 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, 0x2eb0, 0x3f800000); inst 87 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, 0x2edc, 0x40000000); inst 88 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, 0x2ee0, 0x3f800000); inst 89 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, 0x2ee4, 0x3f000000); inst 90 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, 0x2eec, 0x40000000); inst 91 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, 0x2ef0, 0x3f800000); inst 92 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, 0x2ef8, 0xbf800000); inst 93 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_wo32(chan->inst, 0x2f00, 0xbf800000); inst 94 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv34.c nvkm_done(chan->inst); inst 37 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c &chan->inst); inst 41 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_kmap(chan->inst); inst 42 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, 0x0028, 0x00000001 | (chan->chid << 24)); inst 43 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, 0x040c, 0x00000101); inst 44 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, 0x0420, 0x00000111); inst 45 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, 0x0424, 0x00000060); inst 46 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, 0x0440, 0x00000080); inst 47 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, 0x0444, 0xffff0000); inst 48 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, 0x0448, 0x00000001); inst 49 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, 0x045c, 0x44400000); inst 50 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, 0x0488, 0xffff0000); inst 52 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, i, 0x0fff0000); inst 53 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, 0x04e8, 0x00011100); inst 55 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, i, 0x07ff0000); inst 56 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, 0x054c, 0x4b7fffff); inst 57 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, 0x0588, 0x00000080); inst 58 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, 0x058c, 0x30201000); inst 59 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, 0x0590, 0x70605040); inst 60 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, 0x0594, 0xb8a89888); inst 61 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, 0x0598, 0xf8e8d8c8); inst 62 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, 0x05ac, 0xb0000000); inst 64 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, i, 0x00010588); inst 66 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, i, 0x00030303); inst 68 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, i, 0x0008aae4); inst 70 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, i, 0x01012000); inst 72 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, i, 0x00080008); inst 73 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, 0x0860, 0x00040000); inst 74 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, 0x0864, 0x00010000); inst 76 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, i, 0x00040004); inst 78 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, i + 0, 0x10700ff9); inst 79 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, i + 4, 0x0436086c); inst 80 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, i + 8, 0x000c001b); inst 83 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, i, 0x0000ffff); inst 84 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, 0x3450, 0x3f800000); inst 85 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, 0x380c, 0x3f800000); inst 86 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, 0x3820, 0x3f800000); inst 87 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, 0x384c, 0x40000000); inst 88 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, 0x3850, 0x3f800000); inst 89 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, 0x3854, 0x3f000000); inst 90 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, 0x385c, 0x40000000); inst 91 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, 0x3860, 0x3f800000); inst 92 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, 0x3868, 0xbf800000); inst 93 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_wo32(chan->inst, 0x3870, 0xbf800000); inst 94 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv35.c nvkm_done(chan->inst); inst 82 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c chan->inst = (*pgpuobj)->addr; inst 85 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c nvkm_wo32(*pgpuobj, 0x00000, chan->inst >> 4); inst 98 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c u32 inst = 0x01000000 | chan->inst >> 4; inst 103 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c if (nvkm_rd32(device, 0x40032c) == inst) { inst 106 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c nvkm_wr32(device, 0x400784, inst); inst 122 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c if (nvkm_rd32(device, 0x400330) == inst) inst 241 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c u32 inst = nvkm_rd32(device, 0x40032c) & 0x000fffff; inst 253 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c if (temp->inst >> 4 == inst) { inst 278 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c chan ? chan->fifo->chid : -1, inst << 4, inst 26 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.h u32 inst; inst 396 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c int chid, u64 inst, const char *name) inst 436 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c chid, inst, name, subc, class, mthd, inst 461 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c "40084c %08x\n", chid, inst, name, inst 627 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c u32 inst = nvkm_rd32(device, 0x40032c) & 0x0fffffff; inst 640 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c chan = nvkm_fifo_chan_inst(device->fifo, (u64)inst << 12, &flags); inst 655 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c if (!nv50_gr_trap_handler(gr, show, chid, (u64)inst << 12, name)) inst 668 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c stat, msg, chid, (u64)inst << 12, name, inst 33 drivers/gpu/drm/nouveau/nvkm/engine/gr/priv.h u32 (*inst)(struct nvkm_gr *); inst 129 drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv31.c u32 inst = data << 4; inst 130 drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv31.c u32 dma0 = nvkm_rd32(device, 0x700000 + inst); inst 131 drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv31.c u32 dma1 = nvkm_rd32(device, 0x700004 + inst); inst 132 drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv31.c u32 dma2 = nvkm_rd32(device, 0x700008 + inst); inst 139 drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv31.c inst, dma0, dma1, dma2); inst 36 drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv40.c u32 inst = data << 4; inst 37 drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv40.c u32 dma0 = nvkm_instmem_rd32(imem, inst + 0); inst 38 drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv40.c u32 dma1 = nvkm_instmem_rd32(imem, inst + 4); inst 39 drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv40.c u32 dma2 = nvkm_instmem_rd32(imem, inst + 8); inst 46 drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv40.c inst, dma0, dma1, dma2); inst 48 drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv44.c u32 inst; inst 59 drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv44.c chan->inst = (*pgpuobj)->addr; inst 74 drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv44.c u32 inst = 0x80000000 | (chan->inst >> 4); inst 77 drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv44.c if (nvkm_rd32(device, 0x00b318) == inst) inst 150 drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv44.c u32 inst = nvkm_rd32(device, 0x00b318) & 0x000fffff; inst 159 drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv44.c if (temp->inst >> 4 == inst) { inst 185 drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv44.c chan ? chan->fifo->chid : -1, inst << 4, inst 58 drivers/gpu/drm/nouveau/nvkm/engine/sec/g98.c chan ? chan->inst->addr : 0, inst 45 drivers/gpu/drm/nouveau/nvkm/engine/sw/gf100.c u32 inst = chan->base.fifo->inst->addr >> 12; inst 47 drivers/gpu/drm/nouveau/nvkm/engine/sw/gf100.c nvkm_wr32(device, 0x001718, 0x80000000 | inst); inst 46 drivers/gpu/drm/nouveau/nvkm/engine/sw/nv50.c nvkm_wr32(device, 0x001704, chan->base.fifo->inst->addr >> 12); inst 63 drivers/gpu/drm/nouveau/nvkm/falcon/base.c nvkm_falcon_bind_context(struct nvkm_falcon *falcon, struct nvkm_memory *inst) inst 71 drivers/gpu/drm/nouveau/nvkm/falcon/base.c falcon->func->bind_context(falcon, inst); inst 56 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c const u32 addr = nvkm_memory_addr(bar->bar[1].inst) >> 12; inst 77 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c u32 addr = nvkm_memory_addr(bar->bar[0].inst) >> 12; inst 92 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c &bar_vm->inst); inst 119 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c return nvkm_vmm_join(bar_vm->vmm, bar_vm->inst); inst 153 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c nvkm_vmm_part(bar->bar[1].vmm, bar->bar[1].inst); inst 155 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c nvkm_memory_unref(&bar->bar[1].inst); inst 157 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c nvkm_vmm_part(bar->bar[0].vmm, bar->bar[0].inst); inst 159 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.c nvkm_memory_unref(&bar->bar[0].inst); inst 8 drivers/gpu/drm/nouveau/nvkm/subdev/bar/gf100.h struct nvkm_memory *inst; inst 48 drivers/gpu/drm/nouveau/nvkm/subdev/bar/tu102.c u32 addr = nvkm_memory_addr(bar->bar[0].inst) >> 12; inst 75 drivers/gpu/drm/nouveau/nvkm/subdev/bar/tu102.c const u32 addr = nvkm_memory_addr(bar->bar[1].inst) >> 12; inst 58 drivers/gpu/drm/nouveau/nvkm/subdev/fault/gv100.c info.inst = ((u64)insthi << 32) | instlo; inst 138 drivers/gpu/drm/nouveau/nvkm/subdev/fault/gv100.c info.inst = ((u64)insthi << 32) | (info0 & 0xfffff000); inst 85 drivers/gpu/drm/nouveau/nvkm/subdev/fault/tu102.c info.inst = ((u64)insthi << 32) | (info0 & 0xfffff000); inst 143 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c u32 trap[6], idx, inst; inst 172 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c inst = ((trap[2] << 16) | trap[1]) << 12; inst 181 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c chan = nvkm_fifo_chan_inst(fifo, inst, &flags); inst 187 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c chan ? chan->chid : -1, inst, inst 1784 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c nvkm_vmm_part(struct nvkm_vmm *vmm, struct nvkm_memory *inst) inst 1786 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c if (inst && vmm && vmm->func->part) { inst 1788 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c vmm->func->part(vmm, inst); inst 1794 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c nvkm_vmm_join(struct nvkm_vmm *vmm, struct nvkm_memory *inst) inst 1799 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c ret = vmm->func->join(vmm, inst); inst 140 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h int (*join)(struct nvkm_vmm *, struct nvkm_memory *inst); inst 141 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h void (*part)(struct nvkm_vmm *, struct nvkm_memory *inst); inst 158 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h struct nvkm_memory *inst; inst 335 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgf100.c gf100_vmm_part(struct nvkm_vmm *vmm, struct nvkm_memory *inst) inst 337 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgf100.c nvkm_fo64(inst, 0x0200, 0x00000000, 2); inst 341 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgf100.c gf100_vmm_join_(struct nvkm_vmm *vmm, struct nvkm_memory *inst, u64 base) inst 357 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgf100.c nvkm_kmap(inst); inst 358 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgf100.c nvkm_wo64(inst, 0x0200, base); inst 359 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgf100.c nvkm_wo64(inst, 0x0208, vmm->limit - 1); inst 360 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgf100.c nvkm_done(inst); inst 365 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgf100.c gf100_vmm_join(struct nvkm_vmm *vmm, struct nvkm_memory *inst) inst 367 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgf100.c return gf100_vmm_join_(vmm, inst, 0); inst 96 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgm200.c gm200_vmm_join_(struct nvkm_vmm *vmm, struct nvkm_memory *inst, u64 base) inst 100 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgm200.c return gf100_vmm_join_(vmm, inst, base); inst 104 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgm200.c gm200_vmm_join(struct nvkm_vmm *vmm, struct nvkm_memory *inst) inst 106 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgm200.c return gm200_vmm_join_(vmm, inst, 0); inst 398 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c u32 inst, aper; inst 406 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c aper = (args->v0.inst >> 8) & 3; inst 407 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c args->v0.inst >>= 12; inst 408 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c args->v0.inst |= aper << 28; inst 409 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c args->v0.inst |= 0x80000000; inst 412 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c if ((inst = nvkm_gr_ctxsw_inst(device)) == args->v0.inst) { inst 477 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c gp100_vmm_join(struct nvkm_vmm *vmm, struct nvkm_memory *inst) inst 484 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c return gf100_vmm_join_(vmm, inst, base); inst 31 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgv100.c gv100_vmm_join(struct nvkm_vmm *vmm, struct nvkm_memory *inst) inst 34 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgv100.c int ret = gp100_vmm_join(vmm, inst), i; inst 38 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgv100.c nvkm_kmap(inst); inst 39 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgv100.c data[0] = nvkm_ro32(inst, 0x200); inst 40 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgv100.c data[1] = nvkm_ro32(inst, 0x204); inst 43 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgv100.c nvkm_wo32(inst, 0x21c, 0x00000000); inst 47 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgv100.c nvkm_wo32(inst, 0x2a4 + (i * 0x10), data[1]); inst 48 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgv100.c nvkm_wo32(inst, 0x2a0 + (i * 0x10), data[0]); inst 50 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgv100.c nvkm_wo32(inst, 0x2a4 + (i * 0x10), 0x00000001); inst 51 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgv100.c nvkm_wo32(inst, 0x2a0 + (i * 0x10), 0x00000001); inst 53 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgv100.c nvkm_wo32(inst, 0x2a8 + (i * 0x10), 0x00000000); inst 56 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgv100.c nvkm_wo32(inst, 0x298, lower_32_bits(mask)); inst 57 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgv100.c nvkm_wo32(inst, 0x29c, upper_32_bits(mask)); inst 58 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgv100.c nvkm_done(inst); inst 155 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmnv50.c nvkm_kmap(join->inst); inst 156 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmnv50.c nvkm_wo64(join->inst, pdeo, data); inst 157 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmnv50.c nvkm_done(join->inst); inst 325 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmnv50.c nv50_vmm_part(struct nvkm_vmm *vmm, struct nvkm_memory *inst) inst 330 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmnv50.c if (join->inst == inst) { inst 339 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmnv50.c nv50_vmm_join(struct nvkm_vmm *vmm, struct nvkm_memory *inst) inst 349 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmnv50.c join->inst = inst; inst 352 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmnv50.c nvkm_kmap(join->inst); inst 358 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmnv50.c nvkm_wo64(join->inst, pd_offset + (pdei * 8), data); inst 360 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmnv50.c nvkm_done(join->inst); inst 65 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm200.c nvkm_falcon_bind_context(falcon, gsb->inst); inst 113 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm200.c &gsb->inst); inst 125 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm200.c ret = nvkm_vmm_join(gsb->vmm, gsb->inst); inst 156 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm200.c nvkm_vmm_part(gsb->vmm, gsb->inst); inst 158 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm200.c nvkm_memory_unref(&gsb->inst); inst 32 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm200.h struct nvkm_memory *inst; inst 32 drivers/gpu/drm/nouveau/nvkm/subdev/top/gk104.c u32 data, type, inst; inst 40 drivers/gpu/drm/nouveau/nvkm/subdev/top/gk104.c inst = 0; inst 49 drivers/gpu/drm/nouveau/nvkm/subdev/top/gk104.c inst = (data & 0x3c000000) >> 26; inst 73 drivers/gpu/drm/nouveau/nvkm/subdev/top/gk104.c #define A_(A) if (inst == 0) info->index = NVKM_ENGINE_##A inst 74 drivers/gpu/drm/nouveau/nvkm/subdev/top/gk104.c #define B_(A) if (inst + NVKM_ENGINE_##A##0 < NVKM_ENGINE_##A##_LAST + 1) \ inst 75 drivers/gpu/drm/nouveau/nvkm/subdev/top/gk104.c info->index = NVKM_ENGINE_##A##0 + inst inst 76 drivers/gpu/drm/nouveau/nvkm/subdev/top/gk104.c #define C_(A) if (inst == 0) info->index = NVKM_SUBDEV_##A inst 100 drivers/gpu/drm/nouveau/nvkm/subdev/top/gk104.c "reset %2d\n", type, inst, inst 116 drivers/gpu/drm/vc4/vc4_validate_shaders.c raddr_add_a_to_live_reg_index(uint64_t inst) inst 118 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint32_t sig = QPU_GET_FIELD(inst, QPU_SIG); inst 119 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint32_t add_a = QPU_GET_FIELD(inst, QPU_ADD_A); inst 120 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint32_t raddr_a = QPU_GET_FIELD(inst, QPU_RADDR_A); inst 121 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint32_t raddr_b = QPU_GET_FIELD(inst, QPU_RADDR_B); inst 187 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint64_t inst = validation_state->shader[validation_state->ip]; inst 189 drivers/gpu/drm/vc4/vc4_validate_shaders.c QPU_GET_FIELD(inst, QPU_WADDR_MUL) : inst 190 drivers/gpu/drm/vc4/vc4_validate_shaders.c QPU_GET_FIELD(inst, QPU_WADDR_ADD)); inst 191 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint32_t raddr_a = QPU_GET_FIELD(inst, QPU_RADDR_A); inst 192 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint32_t raddr_b = QPU_GET_FIELD(inst, QPU_RADDR_B); inst 196 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint32_t sig = QPU_GET_FIELD(inst, QPU_SIG); inst 199 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint32_t add_b = QPU_GET_FIELD(inst, QPU_ADD_B); inst 211 drivers/gpu/drm/vc4/vc4_validate_shaders.c QPU_GET_FIELD(inst, QPU_OP_ADD) != QPU_A_ADD) { inst 221 drivers/gpu/drm/vc4/vc4_validate_shaders.c clamp_reg = raddr_add_a_to_live_reg_index(inst); inst 311 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint64_t inst = validation_state->shader[validation_state->ip]; inst 312 drivers/gpu/drm/vc4/vc4_validate_shaders.c u32 add_b = QPU_GET_FIELD(inst, QPU_ADD_B); inst 313 drivers/gpu/drm/vc4/vc4_validate_shaders.c u32 raddr_a = QPU_GET_FIELD(inst, QPU_RADDR_A); inst 314 drivers/gpu/drm/vc4/vc4_validate_shaders.c u32 raddr_b = QPU_GET_FIELD(inst, QPU_RADDR_B); inst 315 drivers/gpu/drm/vc4/vc4_validate_shaders.c u32 add_lri = raddr_add_a_to_live_reg_index(inst); inst 331 drivers/gpu/drm/vc4/vc4_validate_shaders.c switch (QPU_GET_FIELD(inst, QPU_SIG)) { inst 344 drivers/gpu/drm/vc4/vc4_validate_shaders.c if (is_mul || QPU_GET_FIELD(inst, QPU_OP_ADD) != QPU_A_ADD) { inst 349 drivers/gpu/drm/vc4/vc4_validate_shaders.c if (QPU_GET_FIELD(inst, QPU_COND_ADD) != QPU_COND_ALWAYS) { inst 354 drivers/gpu/drm/vc4/vc4_validate_shaders.c if (QPU_GET_FIELD(inst, QPU_PACK) != QPU_PACK_A_NOP && inst 355 drivers/gpu/drm/vc4/vc4_validate_shaders.c !(inst & QPU_PM)) { inst 390 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint64_t inst = validation_state->shader[validation_state->ip]; inst 392 drivers/gpu/drm/vc4/vc4_validate_shaders.c QPU_GET_FIELD(inst, QPU_WADDR_MUL) : inst 393 drivers/gpu/drm/vc4/vc4_validate_shaders.c QPU_GET_FIELD(inst, QPU_WADDR_ADD)); inst 394 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint32_t sig = QPU_GET_FIELD(inst, QPU_SIG); inst 395 drivers/gpu/drm/vc4/vc4_validate_shaders.c bool ws = inst & QPU_WS; inst 400 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint32_t cond_add = QPU_GET_FIELD(inst, QPU_COND_ADD); inst 401 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint32_t cond_mul = QPU_GET_FIELD(inst, QPU_COND_MUL); inst 404 drivers/gpu/drm/vc4/vc4_validate_shaders.c QPU_GET_FIELD(inst, QPU_PACK) == QPU_PACK_A_NOP && inst 408 drivers/gpu/drm/vc4/vc4_validate_shaders.c QPU_GET_FIELD(inst, QPU_LOAD_IMM); inst 481 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint64_t inst = validation_state->shader[validation_state->ip]; inst 482 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint32_t op_add = QPU_GET_FIELD(inst, QPU_OP_ADD); inst 483 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint32_t waddr_add = QPU_GET_FIELD(inst, QPU_WADDR_ADD); inst 484 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint32_t waddr_mul = QPU_GET_FIELD(inst, QPU_WADDR_MUL); inst 485 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint32_t cond_add = QPU_GET_FIELD(inst, QPU_COND_ADD); inst 486 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint32_t add_a = QPU_GET_FIELD(inst, QPU_ADD_A); inst 487 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint32_t add_b = QPU_GET_FIELD(inst, QPU_ADD_B); inst 488 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint32_t raddr_a = QPU_GET_FIELD(inst, QPU_RADDR_A); inst 489 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint32_t raddr_b = QPU_GET_FIELD(inst, QPU_RADDR_B); inst 490 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint32_t sig = QPU_GET_FIELD(inst, QPU_SIG); inst 491 drivers/gpu/drm/vc4/vc4_validate_shaders.c bool ws = inst & QPU_WS; inst 498 drivers/gpu/drm/vc4/vc4_validate_shaders.c lri_add_a = raddr_add_a_to_live_reg_index(inst); inst 556 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint64_t inst = validation_state->shader[validation_state->ip]; inst 557 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint32_t waddr_add = QPU_GET_FIELD(inst, QPU_WADDR_ADD); inst 558 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint32_t waddr_mul = QPU_GET_FIELD(inst, QPU_WADDR_MUL); inst 575 drivers/gpu/drm/vc4/vc4_validate_shaders.c check_branch(uint64_t inst, inst 580 drivers/gpu/drm/vc4/vc4_validate_shaders.c int32_t branch_imm = QPU_GET_FIELD(inst, QPU_BRANCH_TARGET); inst 581 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint32_t waddr_add = QPU_GET_FIELD(inst, QPU_WADDR_ADD); inst 582 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint32_t waddr_mul = QPU_GET_FIELD(inst, QPU_WADDR_MUL); inst 603 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint64_t inst = validation_state->shader[validation_state->ip]; inst 604 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint32_t raddr_a = QPU_GET_FIELD(inst, QPU_RADDR_A); inst 605 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint32_t raddr_b = QPU_GET_FIELD(inst, QPU_RADDR_B); inst 606 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint32_t sig = QPU_GET_FIELD(inst, QPU_SIG); inst 642 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint64_t inst = validation_state->shader[ip]; inst 643 drivers/gpu/drm/vc4/vc4_validate_shaders.c int32_t branch_imm = QPU_GET_FIELD(inst, QPU_BRANCH_TARGET); inst 644 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint32_t sig = QPU_GET_FIELD(inst, QPU_SIG); inst 668 drivers/gpu/drm/vc4/vc4_validate_shaders.c if (inst & QPU_BRANCH_REG) { inst 674 drivers/gpu/drm/vc4/vc4_validate_shaders.c if (!(inst & QPU_BRANCH_REL)) { inst 684 drivers/gpu/drm/vc4/vc4_validate_shaders.c if (branch_imm % sizeof(inst) != 0) { inst 808 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint64_t inst = validation_state.shader[ip]; inst 809 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint32_t sig = QPU_GET_FIELD(inst, QPU_SIG); inst 876 drivers/gpu/drm/vc4/vc4_validate_shaders.c if (!check_branch(inst, validated_shader, inst 232 drivers/iio/common/ssp_sensors/ssp.h int ssp_send_instruction(struct ssp_data *data, u8 inst, u8 sensor_type, inst 473 drivers/iio/common/ssp_sensors/ssp_spi.c int ssp_send_instruction(struct ssp_data *data, u8 inst, u8 sensor_type, inst 484 drivers/iio/common/ssp_sensors/ssp_spi.c (inst <= SSP_MSG2SSP_INST_CHANGE_DELAY)) { inst 490 drivers/iio/common/ssp_sensors/ssp_spi.c msg = ssp_create_msg(inst, length + 2, SSP_AP2HUB_WRITE, 0); inst 498 drivers/iio/common/ssp_sensors/ssp_spi.c __func__, inst, sensor_type, send_buf[1]); inst 36 drivers/mailbox/mailbox-sti.c #define MBOX_BASE(mdev, inst) ((mdev)->base + ((inst) * 4)) inst 206 drivers/mailbox/ti-msgmgr.c struct ti_msgmgr_inst *inst = dev_get_drvdata(dev); inst 214 drivers/mailbox/ti-msgmgr.c if (WARN_ON(!inst)) { inst 226 drivers/mailbox/ti-msgmgr.c desc = inst->desc; inst 289 drivers/mailbox/ti-msgmgr.c struct ti_msgmgr_inst *inst = dev_get_drvdata(dev); inst 290 drivers/mailbox/ti-msgmgr.c const struct ti_msgmgr_desc *desc = inst->desc; inst 316 drivers/mailbox/ti-msgmgr.c struct ti_msgmgr_inst *inst = dev_get_drvdata(dev); inst 317 drivers/mailbox/ti-msgmgr.c const struct ti_msgmgr_desc *desc = inst->desc; inst 349 drivers/mailbox/ti-msgmgr.c struct ti_msgmgr_inst *inst = dev_get_drvdata(dev); inst 357 drivers/mailbox/ti-msgmgr.c if (WARN_ON(!inst)) { inst 361 drivers/mailbox/ti-msgmgr.c desc = inst->desc; inst 456 drivers/mailbox/ti-msgmgr.c struct ti_msgmgr_inst *inst = dev_get_drvdata(dev); inst 458 drivers/mailbox/ti-msgmgr.c const struct ti_msgmgr_desc *d = inst->desc; inst 520 drivers/mailbox/ti-msgmgr.c struct ti_msgmgr_inst *inst; inst 526 drivers/mailbox/ti-msgmgr.c inst = container_of(mbox, struct ti_msgmgr_inst, mbox); inst 527 drivers/mailbox/ti-msgmgr.c if (WARN_ON(!inst)) inst 530 drivers/mailbox/ti-msgmgr.c d = inst->desc; inst 537 drivers/mailbox/ti-msgmgr.c dev_err(inst->dev, "Invalid arguments in dt[%d]. Must be %d\n", inst 552 drivers/mailbox/ti-msgmgr.c qinst = &inst->qinsts[req_pid]; inst 556 drivers/mailbox/ti-msgmgr.c for (qinst = inst->qinsts, i = 0; i < inst->num_valid_queues; inst 563 drivers/mailbox/ti-msgmgr.c dev_err(inst->dev, "Queue ID %d, Proxy ID %d is wrong on %pOFn\n", inst 583 drivers/mailbox/ti-msgmgr.c struct ti_msgmgr_inst *inst, inst 601 drivers/mailbox/ti-msgmgr.c qinst->queue_buff_start = inst->queue_proxy_region + inst 604 drivers/mailbox/ti-msgmgr.c qinst->queue_buff_end = inst->queue_proxy_region + inst 607 drivers/mailbox/ti-msgmgr.c qinst->queue_state = inst->queue_state_debug_region + inst 609 drivers/mailbox/ti-msgmgr.c qinst->queue_ctrl = inst->queue_ctrl_region + inst 617 drivers/mailbox/ti-msgmgr.c qinst->queue_buff_start = inst->queue_proxy_region + inst 620 drivers/mailbox/ti-msgmgr.c qinst->queue_buff_end = inst->queue_proxy_region + inst 624 drivers/mailbox/ti-msgmgr.c inst->queue_state_debug_region + inst 713 drivers/mailbox/ti-msgmgr.c struct ti_msgmgr_inst *inst; inst 735 drivers/mailbox/ti-msgmgr.c inst = devm_kzalloc(dev, sizeof(*inst), GFP_KERNEL); inst 736 drivers/mailbox/ti-msgmgr.c if (!inst) inst 739 drivers/mailbox/ti-msgmgr.c inst->dev = dev; inst 740 drivers/mailbox/ti-msgmgr.c inst->desc = desc; inst 744 drivers/mailbox/ti-msgmgr.c inst->queue_proxy_region = devm_ioremap_resource(dev, res); inst 745 drivers/mailbox/ti-msgmgr.c if (IS_ERR(inst->queue_proxy_region)) inst 746 drivers/mailbox/ti-msgmgr.c return PTR_ERR(inst->queue_proxy_region); inst 750 drivers/mailbox/ti-msgmgr.c inst->queue_state_debug_region = devm_ioremap_resource(dev, res); inst 751 drivers/mailbox/ti-msgmgr.c if (IS_ERR(inst->queue_state_debug_region)) inst 752 drivers/mailbox/ti-msgmgr.c return PTR_ERR(inst->queue_state_debug_region); inst 757 drivers/mailbox/ti-msgmgr.c inst->queue_ctrl_region = devm_ioremap_resource(dev, res); inst 758 drivers/mailbox/ti-msgmgr.c if (IS_ERR(inst->queue_ctrl_region)) inst 759 drivers/mailbox/ti-msgmgr.c return PTR_ERR(inst->queue_ctrl_region); inst 763 drivers/mailbox/ti-msgmgr.c inst->queue_proxy_region, inst->queue_state_debug_region); inst 771 drivers/mailbox/ti-msgmgr.c inst->num_valid_queues = queue_count; inst 776 drivers/mailbox/ti-msgmgr.c inst->qinsts = qinst; inst 781 drivers/mailbox/ti-msgmgr.c inst->chans = chans; inst 790 drivers/mailbox/ti-msgmgr.c ret = ti_msgmgr_queue_setup(i, dev, np, inst, inst 800 drivers/mailbox/ti-msgmgr.c ret = ti_msgmgr_queue_setup(i, dev, np, inst, inst 808 drivers/mailbox/ti-msgmgr.c mbox = &inst->mbox; inst 811 drivers/mailbox/ti-msgmgr.c mbox->chans = inst->chans; inst 812 drivers/mailbox/ti-msgmgr.c mbox->num_chans = inst->num_valid_queues; inst 819 drivers/mailbox/ti-msgmgr.c platform_set_drvdata(pdev, inst); inst 237 drivers/mcb/mcb-core.c bus->bus_nr, device_id, dev->inst, dev->group, dev->var); inst 107 drivers/mcb/mcb-internal.h unsigned int inst:6; inst 64 drivers/mcb/mcb-parse.c mdev->inst = GDD_INS(reg2); inst 720 drivers/media/pci/saa7164/saa7164-core.c dev->fw_status.inst = saa7164_readl(SAA_DEVICE_SYSINIT_INST); inst 729 drivers/media/pci/saa7164/saa7164-core.c dprintk(1, " .inst = 0x%08x\n", s->inst); inst 217 drivers/media/pci/saa7164/saa7164.h u32 inst; inst 140 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c static int allocate_predication_buf(struct vdec_h264_inst *inst) inst 144 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c inst->pred_buf.size = BUF_PREDICTION_SZ; inst 145 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c err = mtk_vcodec_mem_alloc(inst->ctx, &inst->pred_buf); inst 147 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c mtk_vcodec_err(inst, "failed to allocate ppl buf"); inst 151 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c inst->vsi->pred_buf_dma = inst->pred_buf.dma_addr; inst 155 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c static void free_predication_buf(struct vdec_h264_inst *inst) inst 159 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c mtk_vcodec_debug_enter(inst); inst 161 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c inst->vsi->pred_buf_dma = 0; inst 162 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c mem = &inst->pred_buf; inst 164 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c mtk_vcodec_mem_free(inst->ctx, mem); inst 167 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c static int alloc_mv_buf(struct vdec_h264_inst *inst, struct vdec_pic_info *pic) inst 175 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c mem = &inst->mv_buf[i]; inst 177 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c mtk_vcodec_mem_free(inst->ctx, mem); inst 179 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c err = mtk_vcodec_mem_alloc(inst->ctx, mem); inst 181 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c mtk_vcodec_err(inst, "failed to allocate mv buf"); inst 184 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c inst->vsi->mv_buf_dma[i] = mem->dma_addr; inst 190 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c static void free_mv_buf(struct vdec_h264_inst *inst) inst 196 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c inst->vsi->mv_buf_dma[i] = 0; inst 197 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c mem = &inst->mv_buf[i]; inst 199 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c mtk_vcodec_mem_free(inst->ctx, mem); inst 203 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c static int check_list_validity(struct vdec_h264_inst *inst, bool disp_list) inst 207 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c list = disp_list ? &inst->vsi->list_disp : &inst->vsi->list_free; inst 212 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c mtk_vcodec_err(inst, "%s list err: cnt=%d r_idx=%d w_idx=%d", inst 221 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c static void put_fb_to_free(struct vdec_h264_inst *inst, struct vdec_fb *fb) inst 226 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c if (check_list_validity(inst, false)) inst 229 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c list = &inst->vsi->list_free; inst 231 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c mtk_vcodec_err(inst, "[FB] put fb free_list full"); inst 235 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c mtk_vcodec_debug(inst, "[FB] put fb into free_list @(%p, %llx)", inst 245 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c static void get_pic_info(struct vdec_h264_inst *inst, inst 248 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c *pic = inst->vsi->pic; inst 249 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c mtk_vcodec_debug(inst, "pic(%d, %d), buf(%d, %d)", inst 251 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c mtk_vcodec_debug(inst, "fb size: Y(%d), C(%d)", inst 255 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c static void get_crop_info(struct vdec_h264_inst *inst, struct v4l2_rect *cr) inst 257 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c cr->left = inst->vsi->crop.left; inst 258 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c cr->top = inst->vsi->crop.top; inst 259 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c cr->width = inst->vsi->crop.width; inst 260 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c cr->height = inst->vsi->crop.height; inst 262 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c mtk_vcodec_debug(inst, "l=%d, t=%d, w=%d, h=%d", inst 266 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c static void get_dpb_size(struct vdec_h264_inst *inst, unsigned int *dpb_sz) inst 268 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c *dpb_sz = inst->vsi->dec.dpb_sz; inst 269 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c mtk_vcodec_debug(inst, "sz=%d", *dpb_sz); inst 274 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c struct vdec_h264_inst *inst = NULL; inst 277 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c inst = kzalloc(sizeof(*inst), GFP_KERNEL); inst 278 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c if (!inst) inst 281 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c inst->ctx = ctx; inst 283 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c inst->vpu.id = IPI_VDEC_H264; inst 284 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c inst->vpu.dev = ctx->dev->vpu_plat_dev; inst 285 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c inst->vpu.ctx = ctx; inst 286 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c inst->vpu.handler = vpu_dec_ipi_handler; inst 288 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c err = vpu_dec_init(&inst->vpu); inst 290 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c mtk_vcodec_err(inst, "vdec_h264 init err=%d", err); inst 294 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c inst->vsi = (struct vdec_h264_vsi *)inst->vpu.vsi; inst 295 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c err = allocate_predication_buf(inst); inst 299 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c mtk_vcodec_debug(inst, "H264 Instance >> %p", inst); inst 301 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c ctx->drv_handle = inst; inst 305 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c vpu_dec_deinit(&inst->vpu); inst 308 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c kfree(inst); inst 314 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c struct vdec_h264_inst *inst = (struct vdec_h264_inst *)h_vdec; inst 316 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c mtk_vcodec_debug_enter(inst); inst 318 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c vpu_dec_deinit(&inst->vpu); inst 319 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c free_predication_buf(inst); inst 320 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c free_mv_buf(inst); inst 322 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c kfree(inst); inst 340 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c struct vdec_h264_inst *inst = (struct vdec_h264_inst *)h_vdec; inst 341 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c struct vdec_vpu_inst *vpu = &inst->vpu; inst 353 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c mtk_vcodec_debug(inst, "+ [%d] FB y_dma=%llx c_dma=%llx va=%p", inst 354 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c ++inst->num_nalu, y_fb_dma, c_fb_dma, fb); inst 364 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c mtk_vcodec_err(inst, "invalid nal start code"); inst 371 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c mtk_vcodec_debug(inst, "\n + NALU[%d] type %d +\n", inst->num_nalu, inst 380 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c memcpy(inst->vsi->hdr_buf, buf + nal_start_idx, buf_sz); inst 383 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c inst->vsi->dec.bs_dma = (uint64_t)bs->dma_addr; inst 384 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c inst->vsi->dec.y_fb_dma = y_fb_dma; inst 385 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c inst->vsi->dec.c_fb_dma = c_fb_dma; inst 386 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c inst->vsi->dec.vdec_fb_va = vdec_fb_va; inst 393 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c mtk_vcodec_err(inst, "- error bitstream - err = %d -", inst 400 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c *res_chg = inst->vsi->dec.resolution_changed; inst 404 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c mtk_vcodec_debug(inst, "- resolution changed -"); inst 405 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c get_pic_info(inst, &pic); inst 407 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c if (inst->vsi->dec.realloc_mv_buf) { inst 408 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c err = alloc_mv_buf(inst, &pic); inst 416 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c err = mtk_vcodec_wait_for_done_ctx(inst->ctx, inst 425 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c mtk_vcodec_debug(inst, "\n - NALU[%d] type=%d -\n", inst->num_nalu, inst 430 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c put_fb_to_free(inst, fb); inst 431 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c mtk_vcodec_err(inst, "\n - NALU[%d] err=%d -\n", inst->num_nalu, err); inst 435 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c static void vdec_h264_get_fb(struct vdec_h264_inst *inst, inst 441 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c if (check_list_validity(inst, disp_list)) inst 445 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c mtk_vcodec_debug(inst, "[FB] there is no %s fb", inst 456 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c mtk_vcodec_debug(inst, "[FB] get %s fb st=%d poc=%d %llx", inst 469 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c struct vdec_h264_inst *inst = (struct vdec_h264_inst *)h_vdec; inst 473 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c vdec_h264_get_fb(inst, &inst->vsi->list_disp, true, out); inst 477 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c vdec_h264_get_fb(inst, &inst->vsi->list_free, false, out); inst 481 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c get_pic_info(inst, out); inst 485 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c get_dpb_size(inst, out); inst 489 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c get_crop_info(inst, out); inst 493 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c mtk_vcodec_err(inst, "invalid get parameter type=%d", type); inst 168 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c static void get_hw_reg_base(struct vdec_vp8_inst *inst) inst 170 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c inst->reg_base.top = mtk_vcodec_get_reg_addr(inst->ctx, VDEC_TOP); inst 171 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c inst->reg_base.cm = mtk_vcodec_get_reg_addr(inst->ctx, VDEC_CM); inst 172 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c inst->reg_base.hwd = mtk_vcodec_get_reg_addr(inst->ctx, VDEC_HWD); inst 173 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c inst->reg_base.sys = mtk_vcodec_get_reg_addr(inst->ctx, VDEC_SYS); inst 174 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c inst->reg_base.misc = mtk_vcodec_get_reg_addr(inst->ctx, VDEC_MISC); inst 175 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c inst->reg_base.ld = mtk_vcodec_get_reg_addr(inst->ctx, VDEC_LD); inst 176 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c inst->reg_base.hwb = mtk_vcodec_get_reg_addr(inst->ctx, VDEC_HWB); inst 179 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c static void write_hw_segmentation_data(struct vdec_vp8_inst *inst) inst 184 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c void __iomem *cm = inst->reg_base.cm; inst 185 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c struct vdec_vp8_vsi *vsi = inst->vsi; inst 187 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c seg_id_addr = readl(inst->reg_base.top + VP8_SEGID_DRAM_ADDR) >> 4; inst 200 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c static void read_hw_segmentation_data(struct vdec_vp8_inst *inst) inst 205 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c void __iomem *cm = inst->reg_base.cm; inst 206 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c struct vdec_vp8_vsi *vsi = inst->vsi; inst 208 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c seg_id_addr = readl(inst->reg_base.top + VP8_SEGID_DRAM_ADDR) >> 4; inst 222 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c static void enable_hw_rw_function(struct vdec_vp8_inst *inst) inst 225 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c void __iomem *sys = inst->reg_base.sys; inst 226 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c void __iomem *misc = inst->reg_base.misc; inst 227 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c void __iomem *ld = inst->reg_base.ld; inst 228 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c void __iomem *hwb = inst->reg_base.hwb; inst 229 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c void __iomem *hwd = inst->reg_base.hwd; inst 249 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c static void store_dec_table(struct vdec_vp8_inst *inst) inst 253 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c void __iomem *hwd = inst->reg_base.hwd; inst 254 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c u32 *p = &inst->vsi->dec_table[VP8_DEC_TABLE_OFFSET]; inst 266 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c static void load_dec_table(struct vdec_vp8_inst *inst) inst 270 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c u32 *p = &inst->vsi->dec_table[VP8_DEC_TABLE_OFFSET]; inst 271 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c void __iomem *hwd = inst->reg_base.hwd; inst 283 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c static void get_pic_info(struct vdec_vp8_inst *inst, struct vdec_pic_info *pic) inst 285 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c *pic = inst->vsi->pic; inst 287 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c mtk_vcodec_debug(inst, "pic(%d, %d), buf(%d, %d)", inst 289 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c mtk_vcodec_debug(inst, "fb size: Y(%d), C(%d)", inst 293 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c static void vp8_dec_finish(struct vdec_vp8_inst *inst) inst 296 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c uint64_t prev_y_dma = inst->vsi->dec.prev_y_dma; inst 298 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c mtk_vcodec_debug(inst, "prev fb base dma=%llx", prev_y_dma); inst 302 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c list_for_each_entry(node, &inst->fb_use_list, list) { inst 307 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c &inst->fb_free_list); inst 314 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c node = list_first_entry(&inst->available_fb_node_list, inst 316 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c node->fb = inst->cur_fb; inst 317 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c list_move_tail(&node->list, &inst->fb_use_list); inst 320 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c if (inst->vsi->dec.show_frame) { inst 321 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c node = list_first_entry(&inst->available_fb_node_list, inst 323 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c node->fb = inst->cur_fb; inst 324 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c list_move_tail(&node->list, &inst->fb_disp_list); inst 328 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c static void move_fb_list_use_to_free(struct vdec_vp8_inst *inst) inst 332 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c list_for_each_entry_safe(node, tmp, &inst->fb_use_list, list) inst 333 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c list_move_tail(&node->list, &inst->fb_free_list); inst 336 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c static void init_list(struct vdec_vp8_inst *inst) inst 340 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c INIT_LIST_HEAD(&inst->available_fb_node_list); inst 341 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c INIT_LIST_HEAD(&inst->fb_use_list); inst 342 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c INIT_LIST_HEAD(&inst->fb_free_list); inst 343 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c INIT_LIST_HEAD(&inst->fb_disp_list); inst 345 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c for (i = 0; i < ARRAY_SIZE(inst->dec_fb); i++) { inst 346 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c INIT_LIST_HEAD(&inst->dec_fb[i].list); inst 347 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c inst->dec_fb[i].fb = NULL; inst 348 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c list_add_tail(&inst->dec_fb[i].list, inst 349 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c &inst->available_fb_node_list); inst 353 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c static void add_fb_to_free_list(struct vdec_vp8_inst *inst, void *fb) inst 358 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c node = list_first_entry(&inst->available_fb_node_list, inst 361 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c list_move_tail(&node->list, &inst->fb_free_list); inst 365 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c static int alloc_working_buf(struct vdec_vp8_inst *inst) inst 368 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c struct mtk_vcodec_mem *mem = &inst->working_buf; inst 371 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c err = mtk_vcodec_mem_alloc(inst->ctx, mem); inst 373 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c mtk_vcodec_err(inst, "Cannot allocate working buffer"); inst 377 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c inst->vsi->dec.working_buf_dma = (uint64_t)mem->dma_addr; inst 381 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c static void free_working_buf(struct vdec_vp8_inst *inst) inst 383 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c struct mtk_vcodec_mem *mem = &inst->working_buf; inst 386 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c mtk_vcodec_mem_free(inst->ctx, mem); inst 388 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c inst->vsi->dec.working_buf_dma = 0; inst 393 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c struct vdec_vp8_inst *inst; inst 396 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c inst = kzalloc(sizeof(*inst), GFP_KERNEL); inst 397 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c if (!inst) inst 400 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c inst->ctx = ctx; inst 402 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c inst->vpu.id = IPI_VDEC_VP8; inst 403 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c inst->vpu.dev = ctx->dev->vpu_plat_dev; inst 404 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c inst->vpu.ctx = ctx; inst 405 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c inst->vpu.handler = vpu_dec_ipi_handler; inst 407 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c err = vpu_dec_init(&inst->vpu); inst 409 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c mtk_vcodec_err(inst, "vdec_vp8 init err=%d", err); inst 413 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c inst->vsi = (struct vdec_vp8_vsi *)inst->vpu.vsi; inst 414 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c init_list(inst); inst 415 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c err = alloc_working_buf(inst); inst 419 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c get_hw_reg_base(inst); inst 420 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c mtk_vcodec_debug(inst, "VP8 Instance >> %p", inst); inst 422 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c ctx->drv_handle = inst; inst 426 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c vpu_dec_deinit(&inst->vpu); inst 428 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c kfree(inst); inst 435 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c struct vdec_vp8_inst *inst = (struct vdec_vp8_inst *)h_vdec; inst 436 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c struct vdec_vp8_dec_info *dec = &inst->vsi->dec; inst 437 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c struct vdec_vpu_inst *vpu = &inst->vpu; inst 446 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c move_fb_list_use_to_free(inst); inst 453 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c mtk_vcodec_debug(inst, "+ [%d] FB y_dma=%llx c_dma=%llx fb=%p", inst 454 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c inst->frm_cnt, y_fb_dma, c_fb_dma, fb); inst 456 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c inst->cur_fb = fb; inst 462 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c mtk_vcodec_debug(inst, "\n + FRAME[%d] +\n", inst->frm_cnt); inst 464 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c write_hw_segmentation_data(inst); inst 465 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c enable_hw_rw_function(inst); inst 466 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c store_dec_table(inst); inst 475 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c add_fb_to_free_list(inst, fb); inst 477 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c mtk_vcodec_debug(inst, "wait key frame !"); inst 485 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c mtk_vcodec_debug(inst, "- resolution_changed -"); inst 487 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c add_fb_to_free_list(inst, fb); inst 492 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c mtk_vcodec_wait_for_done_ctx(inst->ctx, MTK_INST_IRQ_RECEIVED, inst 495 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c if (inst->vsi->load_data) inst 496 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c load_dec_table(inst); inst 498 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c vp8_dec_finish(inst); inst 499 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c read_hw_segmentation_data(inst); inst 505 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c mtk_vcodec_debug(inst, "\n - FRAME[%d] - show=%d\n", inst->frm_cnt, inst 507 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c inst->frm_cnt++; inst 512 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c mtk_vcodec_err(inst, "\n - FRAME[%d] - err=%d\n", inst->frm_cnt, err); inst 516 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c static void get_disp_fb(struct vdec_vp8_inst *inst, struct vdec_fb **out_fb) inst 521 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c node = list_first_entry_or_null(&inst->fb_disp_list, inst 524 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c list_move_tail(&node->list, &inst->available_fb_node_list); inst 527 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c mtk_vcodec_debug(inst, "[FB] get disp fb %p st=%d", inst 531 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c mtk_vcodec_debug(inst, "[FB] there is no disp fb"); inst 537 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c static void get_free_fb(struct vdec_vp8_inst *inst, struct vdec_fb **out_fb) inst 542 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c node = list_first_entry_or_null(&inst->fb_free_list, inst 545 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c list_move_tail(&node->list, &inst->available_fb_node_list); inst 548 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c mtk_vcodec_debug(inst, "[FB] get free fb %p st=%d", inst 552 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c mtk_vcodec_debug(inst, "[FB] there is no free fb"); inst 558 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c static void get_crop_info(struct vdec_vp8_inst *inst, struct v4l2_rect *cr) inst 562 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c cr->width = inst->vsi->pic.pic_w; inst 563 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c cr->height = inst->vsi->pic.pic_h; inst 564 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c mtk_vcodec_debug(inst, "get crop info l=%d, t=%d, w=%d, h=%d", inst 571 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c struct vdec_vp8_inst *inst = (struct vdec_vp8_inst *)h_vdec; inst 575 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c get_disp_fb(inst, out); inst 579 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c get_free_fb(inst, out); inst 583 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c get_pic_info(inst, out); inst 587 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c get_crop_info(inst, out); inst 595 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c mtk_vcodec_err(inst, "invalid get parameter type=%d", type); inst 604 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c struct vdec_vp8_inst *inst = (struct vdec_vp8_inst *)h_vdec; inst 606 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c mtk_vcodec_debug_enter(inst); inst 608 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c vpu_dec_deinit(&inst->vpu); inst 609 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c free_working_buf(inst); inst 610 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c kfree(inst); inst 202 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c static bool vp9_is_sf_ref_fb(struct vdec_vp9_inst *inst, struct vdec_fb *fb) inst 205 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c struct vdec_vp9_vsi *vsi = inst->vsi; inst 215 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c *inst, void *addr) inst 220 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c list_for_each_entry(node, &inst->fb_use_list, list) { inst 224 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c &inst->available_fb_node_list); inst 231 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c static void vp9_add_to_fb_free_list(struct vdec_vp9_inst *inst, inst 237 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c node = list_first_entry_or_null(&inst->available_fb_node_list, inst 242 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c list_move_tail(&node->list, &inst->fb_free_list); inst 245 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_debug(inst, "No free fb node"); inst 257 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c static void vp9_ref_cnt_fb(struct vdec_vp9_inst *inst, int *idx, inst 260 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c struct vdec_vp9_vsi *vsi = inst->vsi; inst 267 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c if (!vp9_is_sf_ref_fb(inst, inst 271 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c fb = vp9_rm_from_fb_use_list(inst, inst 273 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c vp9_add_to_fb_free_list(inst, fb); inst 284 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c static void vp9_free_all_sf_ref_fb(struct vdec_vp9_inst *inst) inst 287 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c struct vdec_vp9_vsi *vsi = inst->vsi; inst 291 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_mem_free(inst->ctx, inst 293 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_mem_free(inst->ctx, inst 305 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c static int vp9_get_sf_ref_fb(struct vdec_vp9_inst *inst) inst 310 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c struct vdec_vp9_vsi *vsi = inst->vsi; inst 329 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_err(inst, "List Full"); inst 337 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c if (mtk_vcodec_mem_alloc(inst->ctx, mem_basy_y)) { inst 338 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_err(inst, "Cannot allocate sf_ref_buf y_buf"); inst 346 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c if (mtk_vcodec_mem_alloc(inst->ctx, mem_basy_c)) { inst 347 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_err(inst, "Cannot allocate sf_ref_fb c_buf"); inst 355 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c static bool vp9_alloc_work_buf(struct vdec_vp9_inst *inst) inst 357 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c struct vdec_vp9_vsi *vsi = inst->vsi; inst 365 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c if (!(inst->ctx->dev->dec_capability & inst 376 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_err(inst, "Invalid w/h %d/%d", inst 381 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_debug(inst, "BUF CHG(%d): w/h/sb_w/sb_h=%d/%d/%d/%d", inst 388 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mem = &inst->mv_buf; inst 390 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_mem_free(inst->ctx, mem); inst 394 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c result = mtk_vcodec_mem_alloc(inst->ctx, mem); inst 397 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_err(inst, "Cannot allocate mv_buf"); inst 406 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mem = &inst->seg_id_buf; inst 408 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_mem_free(inst->ctx, mem); inst 411 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c result = mtk_vcodec_mem_alloc(inst->ctx, mem); inst 414 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_err(inst, "Cannot allocate seg_id_buf"); inst 423 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c vp9_free_all_sf_ref_fb(inst); inst 424 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c vsi->sf_next_ref_fb_idx = vp9_get_sf_ref_fb(inst); inst 429 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c static bool vp9_add_to_fb_disp_list(struct vdec_vp9_inst *inst, inst 435 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_err(inst, "fb == NULL"); inst 439 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c node = list_first_entry_or_null(&inst->available_fb_node_list, inst 443 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c list_move_tail(&node->list, &inst->fb_disp_list); inst 445 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_err(inst, "No available fb node"); inst 453 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c static void vp9_swap_frm_bufs(struct vdec_vp9_inst *inst) inst 455 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c struct vdec_vp9_vsi *vsi = inst->vsi; inst 461 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c vp9_ref_cnt_fb(inst, &vsi->ref_frm_map[ref_index], inst 469 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c if (frm_to_show->fb != inst->cur_fb) { inst 475 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c (inst->cur_fb->base_y.size >= inst 477 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c (inst->cur_fb->base_c.size >= inst 479 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c memcpy((void *)inst->cur_fb->base_y.va, inst 482 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c memcpy((void *)inst->cur_fb->base_c.va, inst 491 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_err(inst, inst 493 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c inst->cur_fb->base_y.size, inst 496 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c if (!vp9_is_sf_ref_fb(inst, inst->cur_fb)) { inst 498 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c vp9_add_to_fb_disp_list(inst, inst->cur_fb); inst 501 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c if (!vp9_is_sf_ref_fb(inst, inst->cur_fb)) { inst 503 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c vp9_add_to_fb_disp_list(inst, frm_to_show->fb); inst 512 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c inst, vsi->frm_bufs[vsi->new_fb_idx].buf.fb)) { inst 515 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c fb = vp9_rm_from_fb_use_list(inst, inst 518 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c vp9_add_to_fb_free_list(inst, fb); inst 529 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c vsi->sf_next_ref_fb_idx = vp9_get_sf_ref_fb(inst); inst 532 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c static bool vp9_wait_dec_end(struct vdec_vp9_inst *inst) inst 534 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c struct mtk_vcodec_ctx *ctx = inst->ctx; inst 536 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_wait_for_done_ctx(inst->ctx, inst 550 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c struct vdec_vp9_inst *inst; inst 558 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c inst = mem.va; inst 559 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c inst->mem = mem; inst 561 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c return inst; inst 564 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c static void vp9_free_inst(struct vdec_vp9_inst *inst) inst 568 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mem = inst->mem; inst 570 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_mem_free(inst->ctx, &mem); inst 573 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c static bool vp9_decode_end_proc(struct vdec_vp9_inst *inst) inst 575 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c struct vdec_vp9_vsi *vsi = inst->vsi; inst 579 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c ret = vp9_wait_dec_end(inst); inst 581 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_err(inst, "Decode failed, Decode Timeout @[%d]", inst 586 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c if (vpu_dec_end(&inst->vpu)) { inst 587 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_err(inst, "vp9_dec_vpu_end failed"); inst 590 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_debug(inst, "Decode Ok @%d (%d/%d)", vsi->frm_num, inst 593 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_debug(inst, "Decode Ok @%d (show_existing_frame)", inst 597 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c vp9_swap_frm_bufs(inst); inst 602 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c static bool vp9_is_last_sub_frm(struct vdec_vp9_inst *inst) inst 604 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c struct vdec_vp9_vsi *vsi = inst->vsi; inst 612 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c static struct vdec_fb *vp9_rm_from_fb_disp_list(struct vdec_vp9_inst *inst) inst 617 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c node = list_first_entry_or_null(&inst->fb_disp_list, inst 622 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c list_move_tail(&node->list, &inst->available_fb_node_list); inst 623 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_debug(inst, "[FB] get disp fb %p st=%d", inst 626 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_debug(inst, "[FB] there is no disp fb"); inst 631 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c static bool vp9_add_to_fb_use_list(struct vdec_vp9_inst *inst, inst 637 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_debug(inst, "fb == NULL"); inst 641 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c node = list_first_entry_or_null(&inst->available_fb_node_list, inst 645 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c list_move_tail(&node->list, &inst->fb_use_list); inst 647 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_err(inst, "No free fb node"); inst 653 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c static void vp9_reset(struct vdec_vp9_inst *inst) inst 657 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c list_for_each_entry_safe(node, tmp, &inst->fb_use_list, list) inst 658 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c list_move_tail(&node->list, &inst->fb_free_list); inst 660 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c vp9_free_all_sf_ref_fb(inst); inst 661 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c inst->vsi->sf_next_ref_fb_idx = vp9_get_sf_ref_fb(inst); inst 663 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c if (vpu_dec_reset(&inst->vpu)) inst 664 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_err(inst, "vp9_dec_vpu_reset failed"); inst 667 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c inst->vsi->mv_buf.va = (unsigned long)inst->mv_buf.va; inst 668 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c inst->vsi->mv_buf.pa = (unsigned long)inst->mv_buf.dma_addr; inst 669 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c inst->vsi->mv_buf.sz = (unsigned long)inst->mv_buf.size; inst 672 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c inst->vsi->seg_id_buf.va = (unsigned long)inst->seg_id_buf.va; inst 673 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c inst->vsi->seg_id_buf.pa = (unsigned long)inst->seg_id_buf.dma_addr; inst 674 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c inst->vsi->seg_id_buf.sz = (unsigned long)inst->seg_id_buf.size; inst 678 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c static void init_all_fb_lists(struct vdec_vp9_inst *inst) inst 682 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c INIT_LIST_HEAD(&inst->available_fb_node_list); inst 683 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c INIT_LIST_HEAD(&inst->fb_use_list); inst 684 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c INIT_LIST_HEAD(&inst->fb_free_list); inst 685 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c INIT_LIST_HEAD(&inst->fb_disp_list); inst 687 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c for (i = 0; i < ARRAY_SIZE(inst->dec_fb); i++) { inst 688 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c INIT_LIST_HEAD(&inst->dec_fb[i].list); inst 689 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c inst->dec_fb[i].fb = NULL; inst 690 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c list_add_tail(&inst->dec_fb[i].list, inst 691 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c &inst->available_fb_node_list); inst 695 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c static void get_pic_info(struct vdec_vp9_inst *inst, struct vdec_pic_info *pic) inst 697 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c pic->fb_sz[0] = inst->vsi->buf_sz_y_bs + inst->vsi->buf_len_sz_y; inst 698 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c pic->fb_sz[1] = inst->vsi->buf_sz_c_bs + inst->vsi->buf_len_sz_c; inst 700 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c pic->pic_w = inst->vsi->pic_w; inst 701 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c pic->pic_h = inst->vsi->pic_h; inst 702 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c pic->buf_w = inst->vsi->buf_w; inst 703 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c pic->buf_h = inst->vsi->buf_h; inst 705 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_debug(inst, "pic(%d, %d), buf(%d, %d)", inst 707 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_debug(inst, "fb size: Y(%d), C(%d)", inst 712 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c static void get_disp_fb(struct vdec_vp9_inst *inst, struct vdec_fb **out_fb) inst 715 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c *out_fb = vp9_rm_from_fb_disp_list(inst); inst 720 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c static void get_free_fb(struct vdec_vp9_inst *inst, struct vdec_fb **out_fb) inst 725 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c node = list_first_entry_or_null(&inst->fb_free_list, inst 728 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c list_move_tail(&node->list, &inst->available_fb_node_list); inst 731 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_debug(inst, "[FB] get free fb %p st=%d", inst 734 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_debug(inst, "[FB] there is no free fb"); inst 740 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c static int validate_vsi_array_indexes(struct vdec_vp9_inst *inst, inst 743 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_err(inst, "Invalid vsi->sf_frm_idx=%u.", inst 748 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_err(inst, "Invalid vsi->frm_to_show_idx=%u.", inst 753 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_err(inst, "Invalid vsi->new_fb_idx=%u.", inst 762 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c struct vdec_vp9_inst *inst = (struct vdec_vp9_inst *)h_vdec; inst 766 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c ret = vpu_dec_deinit(&inst->vpu); inst 768 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_err(inst, "vpu_dec_deinit failed"); inst 770 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mem = &inst->mv_buf; inst 772 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_mem_free(inst->ctx, mem); inst 774 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mem = &inst->seg_id_buf; inst 776 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_mem_free(inst->ctx, mem); inst 778 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c vp9_free_all_sf_ref_fb(inst); inst 779 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c vp9_free_inst(inst); inst 784 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c struct vdec_vp9_inst *inst; inst 786 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c inst = vp9_alloc_inst(ctx); inst 787 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c if (!inst) inst 790 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c inst->total_frm_cnt = 0; inst 791 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c inst->ctx = ctx; inst 793 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c inst->vpu.id = IPI_VDEC_VP9; inst 794 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c inst->vpu.dev = ctx->dev->vpu_plat_dev; inst 795 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c inst->vpu.ctx = ctx; inst 796 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c inst->vpu.handler = vpu_dec_ipi_handler; inst 798 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c if (vpu_dec_init(&inst->vpu)) { inst 799 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_err(inst, "vp9_dec_vpu_init failed"); inst 803 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c inst->vsi = (struct vdec_vp9_vsi *)inst->vpu.vsi; inst 804 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c init_all_fb_lists(inst); inst 806 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c ctx->drv_handle = inst; inst 810 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c vp9_free_inst(inst); inst 819 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c struct vdec_vp9_inst *inst = (struct vdec_vp9_inst *)h_vdec; inst 820 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c struct vdec_vp9_vsi *vsi = inst->vsi; inst 827 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_debug(inst, "[EOS]"); inst 828 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c vp9_reset(inst); inst 833 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_err(inst, "bs == NULL"); inst 837 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_debug(inst, "Input BS Size = %zu", bs->size); inst 874 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c memset(inst->seg_id_buf.va, 0, inst->seg_id_buf.size); inst 875 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c ret = vpu_dec_start(&inst->vpu, data, 3); inst 877 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_err(inst, "vpu_dec_start failed"); inst 881 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c ret = validate_vsi_array_indexes(inst, vsi); inst 883 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_err(inst, "Invalid values from VPU."); inst 888 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c if (!vp9_alloc_work_buf(inst)) { inst 898 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c inst->cur_fb = cur_fb; inst 900 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c inst->cur_fb = fb; inst 902 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c inst->cur_fb = fb; inst 905 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c vsi->frm_bufs[vsi->new_fb_idx].buf.fb = inst->cur_fb; inst 906 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c if (!vp9_is_sf_ref_fb(inst, inst->cur_fb)) inst 907 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c vp9_add_to_fb_use_list(inst, inst->cur_fb); inst 909 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_debug(inst, "[#pic %d]", vsi->frm_num); inst 912 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_debug(inst, inst 918 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_debug(inst, inst 922 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c vp9_ref_cnt_fb(inst, &vsi->new_fb_idx, inst 937 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_debug(inst, "VDEC_ST_RESOLUTION_CHANGED"); inst 943 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c if (vp9_decode_end_proc(inst) != true) { inst 944 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_err(inst, "vp9_decode_end_proc"); inst 949 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c if (vp9_is_last_sub_frm(inst)) inst 953 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c inst->total_frm_cnt++; inst 957 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c vp9_add_to_fb_free_list(inst, fb); inst 962 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c static void get_crop_info(struct vdec_vp9_inst *inst, struct v4l2_rect *cr) inst 966 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c cr->width = inst->vsi->pic_w; inst 967 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c cr->height = inst->vsi->pic_h; inst 968 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_debug(inst, "get crop info l=%d, t=%d, w=%d, h=%d\n", inst 975 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c struct vdec_vp9_inst *inst = (struct vdec_vp9_inst *)h_vdec; inst 980 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c get_disp_fb(inst, out); inst 983 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c get_free_fb(inst, out); inst 986 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c get_pic_info(inst, out); inst 992 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c get_crop_info(inst, out); inst 995 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mtk_vcodec_err(inst, "not supported param type %d", type); inst 148 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c static inline u32 h264_read_reg(struct venc_h264_inst *inst, u32 addr) inst 150 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c return readl(inst->hw_base + addr); inst 153 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c static unsigned int h264_get_profile(struct venc_h264_inst *inst, inst 164 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_err(inst, "unsupported CONSTRAINED_BASELINE"); inst 167 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_err(inst, "unsupported EXTENDED"); inst 170 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_debug(inst, "unsupported profile %d", profile); inst 175 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c static unsigned int h264_get_level(struct venc_h264_inst *inst, inst 180 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_err(inst, "unsupported 1B"); inst 209 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_debug(inst, "unsupported level %d", level); inst 214 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c static void h264_enc_free_work_buf(struct venc_h264_inst *inst) inst 218 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_debug_enter(inst); inst 225 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_mem_free(inst->ctx, &inst->work_bufs[i]); inst 228 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_mem_free(inst->ctx, &inst->pps_buf); inst 230 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_debug_leave(inst); inst 233 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c static int h264_enc_alloc_work_buf(struct venc_h264_inst *inst) inst 237 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c struct venc_h264_vpu_buf *wb = inst->vsi->work_bufs; inst 239 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_debug_enter(inst); inst 258 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c inst->work_bufs[i].size = wb[i].size; inst 260 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c inst->work_bufs[i].va = vpu_mapping_dm_addr( inst 261 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c inst->vpu_inst.dev, wb[i].vpua); inst 262 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c inst->work_bufs[i].dma_addr = 0; inst 264 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c ret = mtk_vcodec_mem_alloc(inst->ctx, inst 265 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c &inst->work_bufs[i]); inst 267 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_err(inst, inst 280 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c tmp_va = vpu_mapping_dm_addr(inst->vpu_inst.dev, inst 282 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c memcpy(inst->work_bufs[i].va, tmp_va, inst 286 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c wb[i].iova = inst->work_bufs[i].dma_addr; inst 288 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_debug(inst, inst 290 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c i, inst->work_bufs[i].va, inst 291 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c &inst->work_bufs[i].dma_addr, inst 292 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c inst->work_bufs[i].size); inst 296 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c inst->pps_buf.size = 128; inst 297 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c ret = mtk_vcodec_mem_alloc(inst->ctx, &inst->pps_buf); inst 299 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_err(inst, "cannot allocate pps_buf"); inst 303 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_debug_leave(inst); inst 308 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c h264_enc_free_work_buf(inst); inst 313 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c static unsigned int h264_enc_wait_venc_done(struct venc_h264_inst *inst) inst 316 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c struct mtk_vcodec_ctx *ctx = (struct mtk_vcodec_ctx *)inst->ctx; inst 321 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_debug(inst, "irq_status %x <-", irq_status); inst 326 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c static int h264_encode_sps(struct venc_h264_inst *inst, inst 333 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_debug_enter(inst); inst 335 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c ret = vpu_enc_encode(&inst->vpu_inst, H264_BS_MODE_SPS, NULL, inst 340 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c irq_status = h264_enc_wait_venc_done(inst); inst 342 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_err(inst, "expect irq status %d", inst 347 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c *bs_size = h264_read_reg(inst, VENC_PIC_BITSTREAM_BYTE_CNT); inst 348 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_debug(inst, "bs size %d <-", *bs_size); inst 353 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c static int h264_encode_pps(struct venc_h264_inst *inst, inst 360 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_debug_enter(inst); inst 362 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c ret = vpu_enc_encode(&inst->vpu_inst, H264_BS_MODE_PPS, NULL, inst 367 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c irq_status = h264_enc_wait_venc_done(inst); inst 369 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_err(inst, "expect irq status %d", inst 374 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c *bs_size = h264_read_reg(inst, VENC_PIC_BITSTREAM_BYTE_CNT); inst 375 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_debug(inst, "bs size %d <-", *bs_size); inst 380 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c static int h264_encode_header(struct venc_h264_inst *inst, inst 388 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c ret = h264_encode_sps(inst, bs_buf, &bs_size_sps); inst 392 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c ret = h264_encode_pps(inst, &inst->pps_buf, &bs_size_pps); inst 396 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c memcpy(bs_buf->va + bs_size_sps, inst->pps_buf.va, bs_size_pps); inst 402 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c static int h264_encode_frame(struct venc_h264_inst *inst, inst 410 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_debug_enter(inst); inst 412 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c ret = vpu_enc_encode(&inst->vpu_inst, H264_BS_MODE_FRAME, frm_buf, inst 421 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c if (inst->vpu_inst.state == VEN_IPI_MSG_ENC_STATE_SKIP) { inst 422 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c *bs_size = inst->vpu_inst.bs_size; inst 424 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c inst->work_bufs[VENC_H264_VPU_WORK_BUF_SKIP_FRAME].va, inst 426 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c ++inst->frm_cnt; inst 430 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c irq_status = h264_enc_wait_venc_done(inst); inst 432 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_err(inst, "irq_status=%d failed", irq_status); inst 436 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c *bs_size = h264_read_reg(inst, VENC_PIC_BITSTREAM_BYTE_CNT); inst 438 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c ++inst->frm_cnt; inst 439 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_debug(inst, "frm %d bs_size %d key_frm %d <-", inst 440 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c inst->frm_cnt, *bs_size, inst->vpu_inst.is_key_frm); inst 445 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c static void h264_encode_filler(struct venc_h264_inst *inst, void *buf, inst 451 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_err(inst, "filler size too small %d", size); inst 464 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c struct venc_h264_inst *inst; inst 466 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c inst = kzalloc(sizeof(*inst), GFP_KERNEL); inst 467 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c if (!inst) inst 470 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c inst->ctx = ctx; inst 471 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c inst->vpu_inst.ctx = ctx; inst 472 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c inst->vpu_inst.dev = ctx->dev->vpu_plat_dev; inst 473 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c inst->vpu_inst.id = IPI_VENC_H264; inst 474 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c inst->hw_base = mtk_vcodec_get_reg_addr(inst->ctx, VENC_SYS); inst 476 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_debug_enter(inst); inst 478 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c ret = vpu_enc_init(&inst->vpu_inst); inst 480 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c inst->vsi = (struct venc_h264_vsi *)inst->vpu_inst.vsi; inst 482 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_debug_leave(inst); inst 485 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c kfree(inst); inst 487 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c ctx->drv_handle = inst; inst 499 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c struct venc_h264_inst *inst = (struct venc_h264_inst *)handle; inst 500 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c struct mtk_vcodec_ctx *ctx = inst->ctx; inst 502 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_debug(inst, "opt %d ->", opt); inst 510 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c ret = h264_encode_header(inst, bs_buf, &bs_size_hdr); inst 528 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c if (!inst->prepend_hdr) { inst 529 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c ret = h264_encode_frame(inst, frm_buf, bs_buf, inst 533 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c result->is_key_frm = inst->vpu_inst.is_key_frm; inst 537 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_debug(inst, "h264_encode_frame prepend SPS/PPS"); inst 539 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c ret = h264_encode_header(inst, bs_buf, &bs_size_hdr); inst 549 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c h264_encode_filler(inst, bs_buf->va + hdr_sz, inst 557 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c ret = h264_encode_frame(inst, frm_buf, &tmp_bs_buf, inst 564 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_debug(inst, "hdr %d filler %d frame %d bs %d", inst 568 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c inst->prepend_hdr = 0; inst 569 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c result->is_key_frm = inst->vpu_inst.is_key_frm; inst 574 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_err(inst, "venc_start_opt %d not supported", opt); inst 582 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_debug(inst, "opt %d <-", opt); inst 592 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c struct venc_h264_inst *inst = (struct venc_h264_inst *)handle; inst 594 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_debug(inst, "->type=%d", type); inst 598 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c inst->vsi->config.input_fourcc = enc_prm->input_yuv_fmt; inst 599 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c inst->vsi->config.bitrate = enc_prm->bitrate; inst 600 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c inst->vsi->config.pic_w = enc_prm->width; inst 601 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c inst->vsi->config.pic_h = enc_prm->height; inst 602 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c inst->vsi->config.buf_w = enc_prm->buf_width; inst 603 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c inst->vsi->config.buf_h = enc_prm->buf_height; inst 604 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c inst->vsi->config.gop_size = enc_prm->gop_size; inst 605 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c inst->vsi->config.framerate = enc_prm->frm_rate; inst 606 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c inst->vsi->config.intra_period = enc_prm->intra_period; inst 607 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c inst->vsi->config.profile = inst 608 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c h264_get_profile(inst, enc_prm->h264_profile); inst 609 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c inst->vsi->config.level = inst 610 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c h264_get_level(inst, enc_prm->h264_level); inst 611 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c inst->vsi->config.wfd = 0; inst 612 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c ret = vpu_enc_set_param(&inst->vpu_inst, type, enc_prm); inst 615 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c if (inst->work_buf_allocated) { inst 616 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c h264_enc_free_work_buf(inst); inst 617 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c inst->work_buf_allocated = false; inst 619 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c ret = h264_enc_alloc_work_buf(inst); inst 622 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c inst->work_buf_allocated = true; inst 626 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c inst->prepend_hdr = 1; inst 627 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_debug(inst, "set prepend header mode"); inst 631 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c ret = vpu_enc_set_param(&inst->vpu_inst, type, enc_prm); inst 635 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_debug_leave(inst); inst 643 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c struct venc_h264_inst *inst = (struct venc_h264_inst *)handle; inst 645 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_debug_enter(inst); inst 647 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c ret = vpu_enc_deinit(&inst->vpu_inst); inst 649 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c if (inst->work_buf_allocated) inst 650 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c h264_enc_free_work_buf(inst); inst 652 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c mtk_vcodec_debug_leave(inst); inst 653 drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c kfree(inst); inst 136 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c static inline u32 vp8_enc_read_reg(struct venc_vp8_inst *inst, u32 addr) inst 138 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c return readl(inst->hw_base + addr); inst 141 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c static void vp8_enc_free_work_buf(struct venc_vp8_inst *inst) inst 145 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c mtk_vcodec_debug_enter(inst); inst 149 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c if (inst->work_bufs[i].size == 0) inst 151 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c mtk_vcodec_mem_free(inst->ctx, &inst->work_bufs[i]); inst 154 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c mtk_vcodec_debug_leave(inst); inst 157 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c static int vp8_enc_alloc_work_buf(struct venc_vp8_inst *inst) inst 161 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c struct venc_vp8_vpu_buf *wb = inst->vsi->work_bufs; inst 163 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c mtk_vcodec_debug_enter(inst); inst 178 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c inst->work_bufs[i].size = wb[i].size; inst 179 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c ret = mtk_vcodec_mem_alloc(inst->ctx, &inst->work_bufs[i]); inst 181 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c mtk_vcodec_err(inst, inst 195 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c tmp_va = vpu_mapping_dm_addr(inst->vpu_inst.dev, inst 197 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c memcpy(inst->work_bufs[i].va, tmp_va, wb[i].size); inst 199 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c wb[i].iova = inst->work_bufs[i].dma_addr; inst 201 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c mtk_vcodec_debug(inst, inst 203 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c i, inst->work_bufs[i].va, inst 204 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c &inst->work_bufs[i].dma_addr, inst 205 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c inst->work_bufs[i].size); inst 208 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c mtk_vcodec_debug_leave(inst); inst 213 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c vp8_enc_free_work_buf(inst); inst 218 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c static unsigned int vp8_enc_wait_venc_done(struct venc_vp8_inst *inst) inst 221 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c struct mtk_vcodec_ctx *ctx = (struct mtk_vcodec_ctx *)inst->ctx; inst 226 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c mtk_vcodec_debug(inst, "isr return %x", irq_status); inst 235 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c static int vp8_enc_compose_one_frame(struct venc_vp8_inst *inst, inst 246 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c bs_frm_size = vp8_enc_read_reg(inst, VENC_BITSTREAM_FRAME_SIZE); inst 247 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c bs_hdr_len = vp8_enc_read_reg(inst, VENC_BITSTREAM_HEADER_LEN); inst 250 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c not_key = !inst->vpu_inst.is_key_frm; inst 262 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c ac_tag[6] = inst->vsi->config.pic_w; inst 263 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c ac_tag[7] = inst->vsi->config.pic_w >> 8; inst 264 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c ac_tag[8] = inst->vsi->config.pic_h; inst 265 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c ac_tag[9] = inst->vsi->config.pic_h >> 8; inst 271 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c mtk_vcodec_err(inst, "bitstream buf size is too small(%zu)", inst 286 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c inst->work_bufs[VENC_VP8_VPU_WORK_BUF_BS_HEADER].va, inst 294 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c static int vp8_enc_encode_frame(struct venc_vp8_inst *inst, inst 302 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c mtk_vcodec_debug(inst, "->frm_cnt=%d", inst->frm_cnt); inst 304 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c ret = vpu_enc_encode(&inst->vpu_inst, 0, frm_buf, bs_buf, bs_size); inst 308 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c irq_status = vp8_enc_wait_venc_done(inst); inst 310 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c mtk_vcodec_err(inst, "irq_status=%d failed", irq_status); inst 314 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c if (vp8_enc_compose_one_frame(inst, bs_buf, bs_size)) { inst 315 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c mtk_vcodec_err(inst, "vp8_enc_compose_one_frame failed"); inst 319 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c inst->frm_cnt++; inst 320 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c mtk_vcodec_debug(inst, "<-size=%d key_frm=%d", *bs_size, inst 321 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c inst->vpu_inst.is_key_frm); inst 329 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c struct venc_vp8_inst *inst; inst 331 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c inst = kzalloc(sizeof(*inst), GFP_KERNEL); inst 332 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c if (!inst) inst 335 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c inst->ctx = ctx; inst 336 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c inst->vpu_inst.ctx = ctx; inst 337 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c inst->vpu_inst.dev = ctx->dev->vpu_plat_dev; inst 338 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c inst->vpu_inst.id = IPI_VENC_VP8; inst 339 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c inst->hw_base = mtk_vcodec_get_reg_addr(inst->ctx, VENC_LT_SYS); inst 341 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c mtk_vcodec_debug_enter(inst); inst 343 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c ret = vpu_enc_init(&inst->vpu_inst); inst 345 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c inst->vsi = (struct venc_vp8_vsi *)inst->vpu_inst.vsi; inst 347 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c mtk_vcodec_debug_leave(inst); inst 350 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c kfree(inst); inst 352 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c ctx->drv_handle = inst; inst 364 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c struct venc_vp8_inst *inst = (struct venc_vp8_inst *)handle; inst 365 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c struct mtk_vcodec_ctx *ctx = inst->ctx; inst 367 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c mtk_vcodec_debug_enter(inst); inst 373 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c ret = vp8_enc_encode_frame(inst, frm_buf, bs_buf, inst 377 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c result->is_key_frm = inst->vpu_inst.is_key_frm; inst 381 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c mtk_vcodec_err(inst, "opt not support:%d", opt); inst 389 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c mtk_vcodec_debug_leave(inst); inst 399 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c struct venc_vp8_inst *inst = (struct venc_vp8_inst *)handle; inst 401 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c mtk_vcodec_debug(inst, "->type=%d", type); inst 405 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c inst->vsi->config.input_fourcc = enc_prm->input_yuv_fmt; inst 406 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c inst->vsi->config.bitrate = enc_prm->bitrate; inst 407 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c inst->vsi->config.pic_w = enc_prm->width; inst 408 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c inst->vsi->config.pic_h = enc_prm->height; inst 409 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c inst->vsi->config.buf_w = enc_prm->buf_width; inst 410 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c inst->vsi->config.buf_h = enc_prm->buf_height; inst 411 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c inst->vsi->config.gop_size = enc_prm->gop_size; inst 412 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c inst->vsi->config.framerate = enc_prm->frm_rate; inst 413 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c inst->vsi->config.ts_mode = inst->ts_mode; inst 414 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c ret = vpu_enc_set_param(&inst->vpu_inst, type, enc_prm); inst 417 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c if (inst->work_buf_allocated) { inst 418 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c vp8_enc_free_work_buf(inst); inst 419 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c inst->work_buf_allocated = false; inst 421 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c ret = vp8_enc_alloc_work_buf(inst); inst 424 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c inst->work_buf_allocated = true; inst 431 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c inst->ts_mode = 1; inst 432 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c mtk_vcodec_debug(inst, "set ts_mode"); inst 436 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c ret = vpu_enc_set_param(&inst->vpu_inst, type, enc_prm); inst 440 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c mtk_vcodec_debug_leave(inst); inst 448 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c struct venc_vp8_inst *inst = (struct venc_vp8_inst *)handle; inst 450 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c mtk_vcodec_debug_enter(inst); inst 452 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c ret = vpu_enc_deinit(&inst->vpu_inst); inst 454 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c if (inst->work_buf_allocated) inst 455 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c vp8_enc_free_work_buf(inst); inst 457 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c mtk_vcodec_debug_leave(inst); inst 458 drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c kfree(inst); inst 27 drivers/media/platform/qcom/venus/core.c struct venus_inst *inst; inst 39 drivers/media/platform/qcom/venus/core.c list_for_each_entry(inst, &core->instances, list) inst 40 drivers/media/platform/qcom/venus/core.c inst->ops->event_notify(inst, EVT_SESSION_ERROR, NULL); inst 176 drivers/media/platform/qcom/venus/core.c struct venus_inst *inst; inst 184 drivers/media/platform/qcom/venus/core.c inst = kzalloc(sizeof(*inst), GFP_KERNEL); inst 185 drivers/media/platform/qcom/venus/core.c if (!inst) inst 188 drivers/media/platform/qcom/venus/core.c mutex_init(&inst->lock); inst 189 drivers/media/platform/qcom/venus/core.c inst->core = core; inst 190 drivers/media/platform/qcom/venus/core.c inst->session_type = type; inst 196 drivers/media/platform/qcom/venus/core.c ret = hfi_session_create(inst, &dummy_ops); inst 205 drivers/media/platform/qcom/venus/core.c ret = hfi_session_init(inst, to_v4l2_codec_type(codec)); inst 209 drivers/media/platform/qcom/venus/core.c ret = hfi_session_deinit(inst); inst 215 drivers/media/platform/qcom/venus/core.c hfi_session_destroy(inst); inst 217 drivers/media/platform/qcom/venus/core.c mutex_destroy(&inst->lock); inst 218 drivers/media/platform/qcom/venus/core.c kfree(inst); inst 30 drivers/media/platform/qcom/venus/helpers.c bool venus_helper_check_codec(struct venus_inst *inst, u32 v4l2_pixfmt) inst 32 drivers/media/platform/qcom/venus/helpers.c struct venus_core *core = inst->core; inst 33 drivers/media/platform/qcom/venus/helpers.c u32 session_type = inst->session_type; inst 82 drivers/media/platform/qcom/venus/helpers.c int venus_helper_queue_dpb_bufs(struct venus_inst *inst) inst 87 drivers/media/platform/qcom/venus/helpers.c list_for_each_entry(buf, &inst->dpbbufs, list) { inst 95 drivers/media/platform/qcom/venus/helpers.c ret = hfi_session_process_buf(inst, &fdata); inst 105 drivers/media/platform/qcom/venus/helpers.c int venus_helper_free_dpb_bufs(struct venus_inst *inst) inst 109 drivers/media/platform/qcom/venus/helpers.c list_for_each_entry_safe(buf, n, &inst->dpbbufs, list) { inst 111 drivers/media/platform/qcom/venus/helpers.c dma_free_attrs(inst->core->dev, buf->size, buf->va, buf->da, inst 116 drivers/media/platform/qcom/venus/helpers.c INIT_LIST_HEAD(&inst->dpbbufs); inst 122 drivers/media/platform/qcom/venus/helpers.c int venus_helper_alloc_dpb_bufs(struct venus_inst *inst) inst 124 drivers/media/platform/qcom/venus/helpers.c struct venus_core *core = inst->core; inst 128 drivers/media/platform/qcom/venus/helpers.c u32 buftype = inst->dpb_buftype; inst 136 drivers/media/platform/qcom/venus/helpers.c if (!inst->dpb_fmt) inst 139 drivers/media/platform/qcom/venus/helpers.c if (inst->dpb_buftype == HFI_BUFFER_OUTPUT) inst 140 drivers/media/platform/qcom/venus/helpers.c dpb_size = inst->output_buf_size; inst 141 drivers/media/platform/qcom/venus/helpers.c else if (inst->dpb_buftype == HFI_BUFFER_OUTPUT2) inst 142 drivers/media/platform/qcom/venus/helpers.c dpb_size = inst->output2_buf_size; inst 147 drivers/media/platform/qcom/venus/helpers.c ret = venus_helper_get_bufreq(inst, buftype, &bufreq); inst 172 drivers/media/platform/qcom/venus/helpers.c list_add_tail(&buf->list, &inst->dpbbufs); inst 178 drivers/media/platform/qcom/venus/helpers.c venus_helper_free_dpb_bufs(inst); inst 183 drivers/media/platform/qcom/venus/helpers.c static int intbufs_set_buffer(struct venus_inst *inst, u32 type) inst 185 drivers/media/platform/qcom/venus/helpers.c struct venus_core *core = inst->core; inst 193 drivers/media/platform/qcom/venus/helpers.c ret = venus_helper_get_bufreq(inst, type, &bufreq); inst 224 drivers/media/platform/qcom/venus/helpers.c ret = hfi_session_set_buffers(inst, &bd); inst 230 drivers/media/platform/qcom/venus/helpers.c list_add_tail(&buf->list, &inst->internalbufs); inst 242 drivers/media/platform/qcom/venus/helpers.c static int intbufs_unset_buffers(struct venus_inst *inst) inst 248 drivers/media/platform/qcom/venus/helpers.c list_for_each_entry_safe(buf, n, &inst->internalbufs, list) { inst 255 drivers/media/platform/qcom/venus/helpers.c ret = hfi_session_unset_buffers(inst, &bd); inst 258 drivers/media/platform/qcom/venus/helpers.c dma_free_attrs(inst->core->dev, buf->size, buf->va, buf->da, inst 282 drivers/media/platform/qcom/venus/helpers.c int venus_helper_intbufs_alloc(struct venus_inst *inst) inst 288 drivers/media/platform/qcom/venus/helpers.c if (IS_V4(inst->core)) { inst 297 drivers/media/platform/qcom/venus/helpers.c ret = intbufs_set_buffer(inst, intbuf[i]); inst 305 drivers/media/platform/qcom/venus/helpers.c intbufs_unset_buffers(inst); inst 310 drivers/media/platform/qcom/venus/helpers.c int venus_helper_intbufs_free(struct venus_inst *inst) inst 312 drivers/media/platform/qcom/venus/helpers.c return intbufs_unset_buffers(inst); inst 316 drivers/media/platform/qcom/venus/helpers.c int venus_helper_intbufs_realloc(struct venus_inst *inst) inst 318 drivers/media/platform/qcom/venus/helpers.c enum hfi_version ver = inst->core->res->hfi_version; inst 323 drivers/media/platform/qcom/venus/helpers.c list_for_each_entry_safe(buf, n, &inst->internalbufs, list) { inst 335 drivers/media/platform/qcom/venus/helpers.c ret = hfi_session_unset_buffers(inst, &bd); inst 337 drivers/media/platform/qcom/venus/helpers.c dma_free_attrs(inst->core->dev, buf->size, buf->va, buf->da, inst 344 drivers/media/platform/qcom/venus/helpers.c ret = intbufs_set_buffer(inst, HFI_BUFFER_INTERNAL_SCRATCH(ver)); inst 348 drivers/media/platform/qcom/venus/helpers.c ret = intbufs_set_buffer(inst, HFI_BUFFER_INTERNAL_SCRATCH_1(ver)); inst 352 drivers/media/platform/qcom/venus/helpers.c ret = intbufs_set_buffer(inst, HFI_BUFFER_INTERNAL_SCRATCH_2(ver)); inst 362 drivers/media/platform/qcom/venus/helpers.c static u32 load_per_instance(struct venus_inst *inst) inst 366 drivers/media/platform/qcom/venus/helpers.c if (!inst || !(inst->state >= INST_INIT && inst->state < INST_STOP)) inst 369 drivers/media/platform/qcom/venus/helpers.c mbs = (ALIGN(inst->width, 16) / 16) * (ALIGN(inst->height, 16) / 16); inst 371 drivers/media/platform/qcom/venus/helpers.c return mbs * inst->fps; inst 376 drivers/media/platform/qcom/venus/helpers.c struct venus_inst *inst = NULL; inst 380 drivers/media/platform/qcom/venus/helpers.c list_for_each_entry(inst, &core->instances, list) { inst 381 drivers/media/platform/qcom/venus/helpers.c if (inst->session_type != session_type) inst 384 drivers/media/platform/qcom/venus/helpers.c mbs_per_sec += load_per_instance(inst); inst 453 drivers/media/platform/qcom/venus/helpers.c static void return_buf_error(struct venus_inst *inst, inst 456 drivers/media/platform/qcom/venus/helpers.c struct v4l2_m2m_ctx *m2m_ctx = inst->m2m_ctx; inst 467 drivers/media/platform/qcom/venus/helpers.c put_ts_metadata(struct venus_inst *inst, struct vb2_v4l2_buffer *vbuf) inst 474 drivers/media/platform/qcom/venus/helpers.c for (i = 0; i < ARRAY_SIZE(inst->tss); i++) { inst 475 drivers/media/platform/qcom/venus/helpers.c if (!inst->tss[i].used) { inst 482 drivers/media/platform/qcom/venus/helpers.c dev_dbg(inst->core->dev, "%s: no free slot\n", __func__); inst 488 drivers/media/platform/qcom/venus/helpers.c inst->tss[slot].used = true; inst 489 drivers/media/platform/qcom/venus/helpers.c inst->tss[slot].flags = vbuf->flags; inst 490 drivers/media/platform/qcom/venus/helpers.c inst->tss[slot].tc = vbuf->timecode; inst 491 drivers/media/platform/qcom/venus/helpers.c inst->tss[slot].ts_us = ts_us; inst 492 drivers/media/platform/qcom/venus/helpers.c inst->tss[slot].ts_ns = vb->timestamp; inst 495 drivers/media/platform/qcom/venus/helpers.c void venus_helper_get_ts_metadata(struct venus_inst *inst, u64 timestamp_us, inst 501 drivers/media/platform/qcom/venus/helpers.c for (i = 0; i < ARRAY_SIZE(inst->tss); ++i) { inst 502 drivers/media/platform/qcom/venus/helpers.c if (!inst->tss[i].used) inst 505 drivers/media/platform/qcom/venus/helpers.c if (inst->tss[i].ts_us != timestamp_us) inst 508 drivers/media/platform/qcom/venus/helpers.c inst->tss[i].used = false; inst 509 drivers/media/platform/qcom/venus/helpers.c vbuf->flags |= inst->tss[i].flags; inst 510 drivers/media/platform/qcom/venus/helpers.c vbuf->timecode = inst->tss[i].tc; inst 511 drivers/media/platform/qcom/venus/helpers.c vb->timestamp = inst->tss[i].ts_ns; inst 518 drivers/media/platform/qcom/venus/helpers.c session_process_buf(struct venus_inst *inst, struct vb2_v4l2_buffer *vbuf) inst 542 drivers/media/platform/qcom/venus/helpers.c if (inst->session_type == VIDC_SESSION_TYPE_DEC) inst 543 drivers/media/platform/qcom/venus/helpers.c put_ts_metadata(inst, vbuf); inst 545 drivers/media/platform/qcom/venus/helpers.c if (inst->session_type == VIDC_SESSION_TYPE_ENC) inst 548 drivers/media/platform/qcom/venus/helpers.c fdata.buffer_type = inst->opb_buftype; inst 553 drivers/media/platform/qcom/venus/helpers.c ret = hfi_session_process_buf(inst, &fdata); inst 560 drivers/media/platform/qcom/venus/helpers.c static bool is_dynamic_bufmode(struct venus_inst *inst) inst 562 drivers/media/platform/qcom/venus/helpers.c struct venus_core *core = inst->core; inst 572 drivers/media/platform/qcom/venus/helpers.c caps = venus_caps_by_codec(core, inst->hfi_codec, inst->session_type); inst 579 drivers/media/platform/qcom/venus/helpers.c int venus_helper_unregister_bufs(struct venus_inst *inst) inst 585 drivers/media/platform/qcom/venus/helpers.c if (is_dynamic_bufmode(inst)) inst 588 drivers/media/platform/qcom/venus/helpers.c list_for_each_entry_safe(buf, n, &inst->registeredbufs, reg_list) { inst 590 drivers/media/platform/qcom/venus/helpers.c ret = hfi_session_unset_buffers(inst, &bd); inst 598 drivers/media/platform/qcom/venus/helpers.c static int session_register_bufs(struct venus_inst *inst) inst 600 drivers/media/platform/qcom/venus/helpers.c struct venus_core *core = inst->core; inst 606 drivers/media/platform/qcom/venus/helpers.c if (is_dynamic_bufmode(inst)) inst 609 drivers/media/platform/qcom/venus/helpers.c list_for_each_entry(buf, &inst->registeredbufs, reg_list) { inst 611 drivers/media/platform/qcom/venus/helpers.c ret = hfi_session_set_buffers(inst, &bd); inst 635 drivers/media/platform/qcom/venus/helpers.c int venus_helper_get_bufreq(struct venus_inst *inst, u32 type, inst 646 drivers/media/platform/qcom/venus/helpers.c ret = hfi_session_get_property(inst, ptype, &hprop); inst 764 drivers/media/platform/qcom/venus/helpers.c int venus_helper_set_input_resolution(struct venus_inst *inst, inst 774 drivers/media/platform/qcom/venus/helpers.c return hfi_session_set_property(inst, ptype, &fs); inst 778 drivers/media/platform/qcom/venus/helpers.c int venus_helper_set_output_resolution(struct venus_inst *inst, inst 789 drivers/media/platform/qcom/venus/helpers.c return hfi_session_set_property(inst, ptype, &fs); inst 793 drivers/media/platform/qcom/venus/helpers.c int venus_helper_set_work_mode(struct venus_inst *inst, u32 mode) inst 798 drivers/media/platform/qcom/venus/helpers.c if (!IS_V4(inst->core)) inst 803 drivers/media/platform/qcom/venus/helpers.c return hfi_session_set_property(inst, ptype, &wm); inst 807 drivers/media/platform/qcom/venus/helpers.c int venus_helper_set_core_usage(struct venus_inst *inst, u32 usage) inst 812 drivers/media/platform/qcom/venus/helpers.c if (!IS_V4(inst->core)) inst 817 drivers/media/platform/qcom/venus/helpers.c return hfi_session_set_property(inst, ptype, &cu); inst 821 drivers/media/platform/qcom/venus/helpers.c int venus_helper_set_num_bufs(struct venus_inst *inst, unsigned int input_bufs, inst 832 drivers/media/platform/qcom/venus/helpers.c ret = hfi_session_set_property(inst, ptype, &buf_count); inst 839 drivers/media/platform/qcom/venus/helpers.c ret = hfi_session_set_property(inst, ptype, &buf_count); inst 847 drivers/media/platform/qcom/venus/helpers.c ret = hfi_session_set_property(inst, ptype, &buf_count); inst 854 drivers/media/platform/qcom/venus/helpers.c int venus_helper_set_raw_format(struct venus_inst *inst, u32 hfi_format, inst 863 drivers/media/platform/qcom/venus/helpers.c return hfi_session_set_property(inst, ptype, &fmt); inst 867 drivers/media/platform/qcom/venus/helpers.c int venus_helper_set_color_format(struct venus_inst *inst, u32 pixfmt) inst 871 drivers/media/platform/qcom/venus/helpers.c if (inst->session_type == VIDC_SESSION_TYPE_DEC) inst 873 drivers/media/platform/qcom/venus/helpers.c else if (inst->session_type == VIDC_SESSION_TYPE_ENC) inst 882 drivers/media/platform/qcom/venus/helpers.c return venus_helper_set_raw_format(inst, hfi_format, buftype); inst 886 drivers/media/platform/qcom/venus/helpers.c int venus_helper_set_multistream(struct venus_inst *inst, bool out_en, inst 896 drivers/media/platform/qcom/venus/helpers.c ret = hfi_session_set_property(inst, ptype, &multi); inst 903 drivers/media/platform/qcom/venus/helpers.c return hfi_session_set_property(inst, ptype, &multi); inst 907 drivers/media/platform/qcom/venus/helpers.c int venus_helper_set_dyn_bufmode(struct venus_inst *inst) inst 913 drivers/media/platform/qcom/venus/helpers.c if (!is_dynamic_bufmode(inst)) inst 919 drivers/media/platform/qcom/venus/helpers.c ret = hfi_session_set_property(inst, ptype, &mode); inst 925 drivers/media/platform/qcom/venus/helpers.c return hfi_session_set_property(inst, ptype, &mode); inst 929 drivers/media/platform/qcom/venus/helpers.c int venus_helper_set_bufsize(struct venus_inst *inst, u32 bufsize, u32 buftype) inst 937 drivers/media/platform/qcom/venus/helpers.c return hfi_session_set_property(inst, ptype, &bufsz); inst 941 drivers/media/platform/qcom/venus/helpers.c unsigned int venus_helper_get_opb_size(struct venus_inst *inst) inst 944 drivers/media/platform/qcom/venus/helpers.c if (inst->session_type == VIDC_SESSION_TYPE_ENC) inst 945 drivers/media/platform/qcom/venus/helpers.c return inst->output_buf_size; inst 947 drivers/media/platform/qcom/venus/helpers.c if (inst->opb_buftype == HFI_BUFFER_OUTPUT) inst 948 drivers/media/platform/qcom/venus/helpers.c return inst->output_buf_size; inst 949 drivers/media/platform/qcom/venus/helpers.c else if (inst->opb_buftype == HFI_BUFFER_OUTPUT2) inst 950 drivers/media/platform/qcom/venus/helpers.c return inst->output2_buf_size; inst 959 drivers/media/platform/qcom/venus/helpers.c struct venus_inst *inst; inst 962 drivers/media/platform/qcom/venus/helpers.c inst = container_of(work, struct venus_inst, delayed_process_work); inst 964 drivers/media/platform/qcom/venus/helpers.c mutex_lock(&inst->lock); inst 966 drivers/media/platform/qcom/venus/helpers.c if (!(inst->streamon_out & inst->streamon_cap)) inst 969 drivers/media/platform/qcom/venus/helpers.c list_for_each_entry_safe(buf, n, &inst->delayed_process, ref_list) { inst 973 drivers/media/platform/qcom/venus/helpers.c ret = session_process_buf(inst, &buf->vb); inst 975 drivers/media/platform/qcom/venus/helpers.c return_buf_error(inst, &buf->vb); inst 980 drivers/media/platform/qcom/venus/helpers.c mutex_unlock(&inst->lock); inst 983 drivers/media/platform/qcom/venus/helpers.c void venus_helper_release_buf_ref(struct venus_inst *inst, unsigned int idx) inst 987 drivers/media/platform/qcom/venus/helpers.c list_for_each_entry(buf, &inst->registeredbufs, reg_list) { inst 990 drivers/media/platform/qcom/venus/helpers.c schedule_work(&inst->delayed_process_work); inst 1005 drivers/media/platform/qcom/venus/helpers.c static int is_buf_refed(struct venus_inst *inst, struct vb2_v4l2_buffer *vbuf) inst 1010 drivers/media/platform/qcom/venus/helpers.c list_add_tail(&buf->ref_list, &inst->delayed_process); inst 1011 drivers/media/platform/qcom/venus/helpers.c schedule_work(&inst->delayed_process_work); inst 1019 drivers/media/platform/qcom/venus/helpers.c venus_helper_find_buf(struct venus_inst *inst, unsigned int type, u32 idx) inst 1021 drivers/media/platform/qcom/venus/helpers.c struct v4l2_m2m_ctx *m2m_ctx = inst->m2m_ctx; inst 1032 drivers/media/platform/qcom/venus/helpers.c struct venus_inst *inst = vb2_get_drv_priv(vb->vb2_queue); inst 1045 drivers/media/platform/qcom/venus/helpers.c list_add_tail(&buf->reg_list, &inst->registeredbufs); inst 1053 drivers/media/platform/qcom/venus/helpers.c struct venus_inst *inst = vb2_get_drv_priv(vb->vb2_queue); inst 1054 drivers/media/platform/qcom/venus/helpers.c unsigned int out_buf_size = venus_helper_get_opb_size(inst); inst 1061 drivers/media/platform/qcom/venus/helpers.c dev_err(inst->core->dev, "%s field isn't supported\n", inst 1071 drivers/media/platform/qcom/venus/helpers.c vb2_plane_size(vb, 0) < inst->input_buf_size) inst 1081 drivers/media/platform/qcom/venus/helpers.c struct venus_inst *inst = vb2_get_drv_priv(vb->vb2_queue); inst 1082 drivers/media/platform/qcom/venus/helpers.c struct v4l2_m2m_ctx *m2m_ctx = inst->m2m_ctx; inst 1085 drivers/media/platform/qcom/venus/helpers.c mutex_lock(&inst->lock); inst 1089 drivers/media/platform/qcom/venus/helpers.c if (inst->session_type == VIDC_SESSION_TYPE_ENC && inst 1090 drivers/media/platform/qcom/venus/helpers.c !(inst->streamon_out && inst->streamon_cap)) inst 1094 drivers/media/platform/qcom/venus/helpers.c ret = is_buf_refed(inst, vbuf); inst 1098 drivers/media/platform/qcom/venus/helpers.c ret = session_process_buf(inst, vbuf); inst 1100 drivers/media/platform/qcom/venus/helpers.c return_buf_error(inst, vbuf); inst 1104 drivers/media/platform/qcom/venus/helpers.c mutex_unlock(&inst->lock); inst 1108 drivers/media/platform/qcom/venus/helpers.c void venus_helper_buffers_done(struct venus_inst *inst, inst 1113 drivers/media/platform/qcom/venus/helpers.c while ((buf = v4l2_m2m_src_buf_remove(inst->m2m_ctx))) inst 1115 drivers/media/platform/qcom/venus/helpers.c while ((buf = v4l2_m2m_dst_buf_remove(inst->m2m_ctx))) inst 1122 drivers/media/platform/qcom/venus/helpers.c struct venus_inst *inst = vb2_get_drv_priv(q); inst 1123 drivers/media/platform/qcom/venus/helpers.c struct venus_core *core = inst->core; inst 1126 drivers/media/platform/qcom/venus/helpers.c mutex_lock(&inst->lock); inst 1128 drivers/media/platform/qcom/venus/helpers.c if (inst->streamon_out & inst->streamon_cap) { inst 1129 drivers/media/platform/qcom/venus/helpers.c ret = hfi_session_stop(inst); inst 1130 drivers/media/platform/qcom/venus/helpers.c ret |= hfi_session_unload_res(inst); inst 1131 drivers/media/platform/qcom/venus/helpers.c ret |= venus_helper_unregister_bufs(inst); inst 1132 drivers/media/platform/qcom/venus/helpers.c ret |= venus_helper_intbufs_free(inst); inst 1133 drivers/media/platform/qcom/venus/helpers.c ret |= hfi_session_deinit(inst); inst 1135 drivers/media/platform/qcom/venus/helpers.c if (inst->session_error || core->sys_error) inst 1139 drivers/media/platform/qcom/venus/helpers.c hfi_session_abort(inst); inst 1141 drivers/media/platform/qcom/venus/helpers.c venus_helper_free_dpb_bufs(inst); inst 1144 drivers/media/platform/qcom/venus/helpers.c INIT_LIST_HEAD(&inst->registeredbufs); inst 1147 drivers/media/platform/qcom/venus/helpers.c venus_helper_buffers_done(inst, VB2_BUF_STATE_ERROR); inst 1150 drivers/media/platform/qcom/venus/helpers.c inst->streamon_out = 0; inst 1152 drivers/media/platform/qcom/venus/helpers.c inst->streamon_cap = 0; inst 1154 drivers/media/platform/qcom/venus/helpers.c mutex_unlock(&inst->lock); inst 1158 drivers/media/platform/qcom/venus/helpers.c int venus_helper_process_initial_cap_bufs(struct venus_inst *inst) inst 1160 drivers/media/platform/qcom/venus/helpers.c struct v4l2_m2m_ctx *m2m_ctx = inst->m2m_ctx; inst 1165 drivers/media/platform/qcom/venus/helpers.c ret = session_process_buf(inst, &buf->vb); inst 1167 drivers/media/platform/qcom/venus/helpers.c return_buf_error(inst, &buf->vb); inst 1176 drivers/media/platform/qcom/venus/helpers.c int venus_helper_process_initial_out_bufs(struct venus_inst *inst) inst 1178 drivers/media/platform/qcom/venus/helpers.c struct v4l2_m2m_ctx *m2m_ctx = inst->m2m_ctx; inst 1183 drivers/media/platform/qcom/venus/helpers.c ret = session_process_buf(inst, &buf->vb); inst 1185 drivers/media/platform/qcom/venus/helpers.c return_buf_error(inst, &buf->vb); inst 1194 drivers/media/platform/qcom/venus/helpers.c int venus_helper_vb2_start_streaming(struct venus_inst *inst) inst 1196 drivers/media/platform/qcom/venus/helpers.c struct venus_core *core = inst->core; inst 1199 drivers/media/platform/qcom/venus/helpers.c ret = venus_helper_intbufs_alloc(inst); inst 1203 drivers/media/platform/qcom/venus/helpers.c ret = session_register_bufs(inst); inst 1209 drivers/media/platform/qcom/venus/helpers.c ret = hfi_session_load_res(inst); inst 1213 drivers/media/platform/qcom/venus/helpers.c ret = hfi_session_start(inst); inst 1220 drivers/media/platform/qcom/venus/helpers.c hfi_session_unload_res(inst); inst 1222 drivers/media/platform/qcom/venus/helpers.c venus_helper_unregister_bufs(inst); inst 1224 drivers/media/platform/qcom/venus/helpers.c venus_helper_intbufs_free(inst); inst 1231 drivers/media/platform/qcom/venus/helpers.c struct venus_inst *inst = priv; inst 1232 drivers/media/platform/qcom/venus/helpers.c struct v4l2_m2m_ctx *m2m_ctx = inst->m2m_ctx; inst 1236 drivers/media/platform/qcom/venus/helpers.c mutex_lock(&inst->lock); inst 1239 drivers/media/platform/qcom/venus/helpers.c ret = session_process_buf(inst, &buf->vb); inst 1241 drivers/media/platform/qcom/venus/helpers.c return_buf_error(inst, &buf->vb); inst 1245 drivers/media/platform/qcom/venus/helpers.c ret = session_process_buf(inst, &buf->vb); inst 1247 drivers/media/platform/qcom/venus/helpers.c return_buf_error(inst, &buf->vb); inst 1250 drivers/media/platform/qcom/venus/helpers.c mutex_unlock(&inst->lock); inst 1256 drivers/media/platform/qcom/venus/helpers.c struct venus_inst *inst = priv; inst 1258 drivers/media/platform/qcom/venus/helpers.c v4l2_m2m_job_finish(inst->m2m_dev, inst->m2m_ctx); inst 1262 drivers/media/platform/qcom/venus/helpers.c void venus_helper_init_instance(struct venus_inst *inst) inst 1264 drivers/media/platform/qcom/venus/helpers.c if (inst->session_type == VIDC_SESSION_TYPE_DEC) { inst 1265 drivers/media/platform/qcom/venus/helpers.c INIT_LIST_HEAD(&inst->delayed_process); inst 1266 drivers/media/platform/qcom/venus/helpers.c INIT_WORK(&inst->delayed_process_work, inst 1285 drivers/media/platform/qcom/venus/helpers.c int venus_helper_get_out_fmts(struct venus_inst *inst, u32 v4l2_fmt, inst 1288 drivers/media/platform/qcom/venus/helpers.c struct venus_core *core = inst->core; inst 1298 drivers/media/platform/qcom/venus/helpers.c caps = venus_caps_by_codec(core, inst->hfi_codec, inst->session_type); inst 14 drivers/media/platform/qcom/venus/helpers.h bool venus_helper_check_codec(struct venus_inst *inst, u32 v4l2_pixfmt); inst 15 drivers/media/platform/qcom/venus/helpers.h struct vb2_v4l2_buffer *venus_helper_find_buf(struct venus_inst *inst, inst 17 drivers/media/platform/qcom/venus/helpers.h void venus_helper_buffers_done(struct venus_inst *inst, inst 23 drivers/media/platform/qcom/venus/helpers.h int venus_helper_vb2_start_streaming(struct venus_inst *inst); inst 26 drivers/media/platform/qcom/venus/helpers.h int venus_helper_get_bufreq(struct venus_inst *inst, u32 type, inst 30 drivers/media/platform/qcom/venus/helpers.h int venus_helper_set_input_resolution(struct venus_inst *inst, inst 32 drivers/media/platform/qcom/venus/helpers.h int venus_helper_set_output_resolution(struct venus_inst *inst, inst 35 drivers/media/platform/qcom/venus/helpers.h int venus_helper_set_work_mode(struct venus_inst *inst, u32 mode); inst 36 drivers/media/platform/qcom/venus/helpers.h int venus_helper_set_core_usage(struct venus_inst *inst, u32 usage); inst 37 drivers/media/platform/qcom/venus/helpers.h int venus_helper_set_num_bufs(struct venus_inst *inst, unsigned int input_bufs, inst 40 drivers/media/platform/qcom/venus/helpers.h int venus_helper_set_raw_format(struct venus_inst *inst, u32 hfi_format, inst 42 drivers/media/platform/qcom/venus/helpers.h int venus_helper_set_color_format(struct venus_inst *inst, u32 fmt); inst 43 drivers/media/platform/qcom/venus/helpers.h int venus_helper_set_dyn_bufmode(struct venus_inst *inst); inst 44 drivers/media/platform/qcom/venus/helpers.h int venus_helper_set_bufsize(struct venus_inst *inst, u32 bufsize, u32 buftype); inst 45 drivers/media/platform/qcom/venus/helpers.h int venus_helper_set_multistream(struct venus_inst *inst, bool out_en, inst 47 drivers/media/platform/qcom/venus/helpers.h unsigned int venus_helper_get_opb_size(struct venus_inst *inst); inst 49 drivers/media/platform/qcom/venus/helpers.h void venus_helper_release_buf_ref(struct venus_inst *inst, unsigned int idx); inst 50 drivers/media/platform/qcom/venus/helpers.h void venus_helper_init_instance(struct venus_inst *inst); inst 51 drivers/media/platform/qcom/venus/helpers.h int venus_helper_get_out_fmts(struct venus_inst *inst, u32 fmt, u32 *out_fmt, inst 53 drivers/media/platform/qcom/venus/helpers.h int venus_helper_alloc_dpb_bufs(struct venus_inst *inst); inst 54 drivers/media/platform/qcom/venus/helpers.h int venus_helper_free_dpb_bufs(struct venus_inst *inst); inst 57 drivers/media/platform/qcom/venus/helpers.h int venus_helper_intbufs_alloc(struct venus_inst *inst); inst 58 drivers/media/platform/qcom/venus/helpers.h int venus_helper_intbufs_free(struct venus_inst *inst); inst 59 drivers/media/platform/qcom/venus/helpers.h int venus_helper_intbufs_realloc(struct venus_inst *inst); inst 60 drivers/media/platform/qcom/venus/helpers.h int venus_helper_queue_dpb_bufs(struct venus_inst *inst); inst 61 drivers/media/platform/qcom/venus/helpers.h int venus_helper_unregister_bufs(struct venus_inst *inst); inst 63 drivers/media/platform/qcom/venus/helpers.h int venus_helper_process_initial_cap_bufs(struct venus_inst *inst); inst 64 drivers/media/platform/qcom/venus/helpers.h int venus_helper_process_initial_out_bufs(struct venus_inst *inst); inst 65 drivers/media/platform/qcom/venus/helpers.h void venus_helper_get_ts_metadata(struct venus_inst *inst, u64 timestamp_us, inst 161 drivers/media/platform/qcom/venus/hfi.c static int wait_session_msg(struct venus_inst *inst) inst 165 drivers/media/platform/qcom/venus/hfi.c ret = wait_for_completion_timeout(&inst->done, TIMEOUT); inst 169 drivers/media/platform/qcom/venus/hfi.c if (inst->error != HFI_ERR_NONE) inst 175 drivers/media/platform/qcom/venus/hfi.c int hfi_session_create(struct venus_inst *inst, const struct hfi_inst_ops *ops) inst 177 drivers/media/platform/qcom/venus/hfi.c struct venus_core *core = inst->core; inst 182 drivers/media/platform/qcom/venus/hfi.c inst->state = INST_UNINIT; inst 183 drivers/media/platform/qcom/venus/hfi.c init_completion(&inst->done); inst 184 drivers/media/platform/qcom/venus/hfi.c inst->ops = ops; inst 187 drivers/media/platform/qcom/venus/hfi.c list_add_tail(&inst->list, &core->instances); inst 195 drivers/media/platform/qcom/venus/hfi.c int hfi_session_init(struct venus_inst *inst, u32 pixfmt) inst 197 drivers/media/platform/qcom/venus/hfi.c struct venus_core *core = inst->core; inst 201 drivers/media/platform/qcom/venus/hfi.c if (inst->state != INST_UNINIT) inst 204 drivers/media/platform/qcom/venus/hfi.c inst->hfi_codec = to_codec_type(pixfmt); inst 205 drivers/media/platform/qcom/venus/hfi.c reinit_completion(&inst->done); inst 207 drivers/media/platform/qcom/venus/hfi.c ret = ops->session_init(inst, inst->session_type, inst->hfi_codec); inst 211 drivers/media/platform/qcom/venus/hfi.c ret = wait_session_msg(inst); inst 215 drivers/media/platform/qcom/venus/hfi.c inst->state = INST_INIT; inst 221 drivers/media/platform/qcom/venus/hfi.c void hfi_session_destroy(struct venus_inst *inst) inst 223 drivers/media/platform/qcom/venus/hfi.c struct venus_core *core = inst->core; inst 226 drivers/media/platform/qcom/venus/hfi.c list_del_init(&inst->list); inst 233 drivers/media/platform/qcom/venus/hfi.c int hfi_session_deinit(struct venus_inst *inst) inst 235 drivers/media/platform/qcom/venus/hfi.c const struct hfi_ops *ops = inst->core->ops; inst 238 drivers/media/platform/qcom/venus/hfi.c if (inst->state == INST_UNINIT) inst 241 drivers/media/platform/qcom/venus/hfi.c if (inst->state < INST_INIT) inst 244 drivers/media/platform/qcom/venus/hfi.c reinit_completion(&inst->done); inst 246 drivers/media/platform/qcom/venus/hfi.c ret = ops->session_end(inst); inst 250 drivers/media/platform/qcom/venus/hfi.c ret = wait_session_msg(inst); inst 254 drivers/media/platform/qcom/venus/hfi.c inst->state = INST_UNINIT; inst 260 drivers/media/platform/qcom/venus/hfi.c int hfi_session_start(struct venus_inst *inst) inst 262 drivers/media/platform/qcom/venus/hfi.c const struct hfi_ops *ops = inst->core->ops; inst 265 drivers/media/platform/qcom/venus/hfi.c if (inst->state != INST_LOAD_RESOURCES) inst 268 drivers/media/platform/qcom/venus/hfi.c reinit_completion(&inst->done); inst 270 drivers/media/platform/qcom/venus/hfi.c ret = ops->session_start(inst); inst 274 drivers/media/platform/qcom/venus/hfi.c ret = wait_session_msg(inst); inst 278 drivers/media/platform/qcom/venus/hfi.c inst->state = INST_START; inst 284 drivers/media/platform/qcom/venus/hfi.c int hfi_session_stop(struct venus_inst *inst) inst 286 drivers/media/platform/qcom/venus/hfi.c const struct hfi_ops *ops = inst->core->ops; inst 289 drivers/media/platform/qcom/venus/hfi.c if (inst->state != INST_START) inst 292 drivers/media/platform/qcom/venus/hfi.c reinit_completion(&inst->done); inst 294 drivers/media/platform/qcom/venus/hfi.c ret = ops->session_stop(inst); inst 298 drivers/media/platform/qcom/venus/hfi.c ret = wait_session_msg(inst); inst 302 drivers/media/platform/qcom/venus/hfi.c inst->state = INST_STOP; inst 308 drivers/media/platform/qcom/venus/hfi.c int hfi_session_continue(struct venus_inst *inst) inst 310 drivers/media/platform/qcom/venus/hfi.c struct venus_core *core = inst->core; inst 315 drivers/media/platform/qcom/venus/hfi.c return core->ops->session_continue(inst); inst 319 drivers/media/platform/qcom/venus/hfi.c int hfi_session_abort(struct venus_inst *inst) inst 321 drivers/media/platform/qcom/venus/hfi.c const struct hfi_ops *ops = inst->core->ops; inst 324 drivers/media/platform/qcom/venus/hfi.c reinit_completion(&inst->done); inst 326 drivers/media/platform/qcom/venus/hfi.c ret = ops->session_abort(inst); inst 330 drivers/media/platform/qcom/venus/hfi.c ret = wait_session_msg(inst); inst 338 drivers/media/platform/qcom/venus/hfi.c int hfi_session_load_res(struct venus_inst *inst) inst 340 drivers/media/platform/qcom/venus/hfi.c const struct hfi_ops *ops = inst->core->ops; inst 343 drivers/media/platform/qcom/venus/hfi.c if (inst->state != INST_INIT) inst 346 drivers/media/platform/qcom/venus/hfi.c reinit_completion(&inst->done); inst 348 drivers/media/platform/qcom/venus/hfi.c ret = ops->session_load_res(inst); inst 352 drivers/media/platform/qcom/venus/hfi.c ret = wait_session_msg(inst); inst 356 drivers/media/platform/qcom/venus/hfi.c inst->state = INST_LOAD_RESOURCES; inst 361 drivers/media/platform/qcom/venus/hfi.c int hfi_session_unload_res(struct venus_inst *inst) inst 363 drivers/media/platform/qcom/venus/hfi.c const struct hfi_ops *ops = inst->core->ops; inst 366 drivers/media/platform/qcom/venus/hfi.c if (inst->state != INST_STOP) inst 369 drivers/media/platform/qcom/venus/hfi.c reinit_completion(&inst->done); inst 371 drivers/media/platform/qcom/venus/hfi.c ret = ops->session_release_res(inst); inst 375 drivers/media/platform/qcom/venus/hfi.c ret = wait_session_msg(inst); inst 379 drivers/media/platform/qcom/venus/hfi.c inst->state = INST_RELEASE_RESOURCES; inst 385 drivers/media/platform/qcom/venus/hfi.c int hfi_session_flush(struct venus_inst *inst, u32 type) inst 387 drivers/media/platform/qcom/venus/hfi.c const struct hfi_ops *ops = inst->core->ops; inst 390 drivers/media/platform/qcom/venus/hfi.c reinit_completion(&inst->done); inst 392 drivers/media/platform/qcom/venus/hfi.c ret = ops->session_flush(inst, type); inst 396 drivers/media/platform/qcom/venus/hfi.c ret = wait_session_msg(inst); inst 404 drivers/media/platform/qcom/venus/hfi.c int hfi_session_set_buffers(struct venus_inst *inst, struct hfi_buffer_desc *bd) inst 406 drivers/media/platform/qcom/venus/hfi.c const struct hfi_ops *ops = inst->core->ops; inst 408 drivers/media/platform/qcom/venus/hfi.c return ops->session_set_buffers(inst, bd); inst 411 drivers/media/platform/qcom/venus/hfi.c int hfi_session_unset_buffers(struct venus_inst *inst, inst 414 drivers/media/platform/qcom/venus/hfi.c const struct hfi_ops *ops = inst->core->ops; inst 417 drivers/media/platform/qcom/venus/hfi.c reinit_completion(&inst->done); inst 419 drivers/media/platform/qcom/venus/hfi.c ret = ops->session_unset_buffers(inst, bd); inst 426 drivers/media/platform/qcom/venus/hfi.c ret = wait_session_msg(inst); inst 433 drivers/media/platform/qcom/venus/hfi.c int hfi_session_get_property(struct venus_inst *inst, u32 ptype, inst 436 drivers/media/platform/qcom/venus/hfi.c const struct hfi_ops *ops = inst->core->ops; inst 439 drivers/media/platform/qcom/venus/hfi.c if (inst->state < INST_INIT || inst->state >= INST_STOP) inst 442 drivers/media/platform/qcom/venus/hfi.c reinit_completion(&inst->done); inst 444 drivers/media/platform/qcom/venus/hfi.c ret = ops->session_get_property(inst, ptype); inst 448 drivers/media/platform/qcom/venus/hfi.c ret = wait_session_msg(inst); inst 452 drivers/media/platform/qcom/venus/hfi.c *hprop = inst->hprop; inst 458 drivers/media/platform/qcom/venus/hfi.c int hfi_session_set_property(struct venus_inst *inst, u32 ptype, void *pdata) inst 460 drivers/media/platform/qcom/venus/hfi.c const struct hfi_ops *ops = inst->core->ops; inst 462 drivers/media/platform/qcom/venus/hfi.c if (inst->state < INST_INIT || inst->state >= INST_STOP) inst 465 drivers/media/platform/qcom/venus/hfi.c return ops->session_set_property(inst, ptype, pdata); inst 469 drivers/media/platform/qcom/venus/hfi.c int hfi_session_process_buf(struct venus_inst *inst, struct hfi_frame_data *fd) inst 471 drivers/media/platform/qcom/venus/hfi.c const struct hfi_ops *ops = inst->core->ops; inst 474 drivers/media/platform/qcom/venus/hfi.c return ops->session_etb(inst, fd); inst 477 drivers/media/platform/qcom/venus/hfi.c return ops->session_ftb(inst, fd); inst 100 drivers/media/platform/qcom/venus/hfi.h void (*buf_done)(struct venus_inst *inst, unsigned int buf_type, inst 103 drivers/media/platform/qcom/venus/hfi.h void (*event_notify)(struct venus_inst *inst, u32 event, inst 113 drivers/media/platform/qcom/venus/hfi.h int (*session_init)(struct venus_inst *inst, u32 session_type, inst 115 drivers/media/platform/qcom/venus/hfi.h int (*session_end)(struct venus_inst *inst); inst 116 drivers/media/platform/qcom/venus/hfi.h int (*session_abort)(struct venus_inst *inst); inst 117 drivers/media/platform/qcom/venus/hfi.h int (*session_flush)(struct venus_inst *inst, u32 flush_mode); inst 118 drivers/media/platform/qcom/venus/hfi.h int (*session_start)(struct venus_inst *inst); inst 119 drivers/media/platform/qcom/venus/hfi.h int (*session_stop)(struct venus_inst *inst); inst 120 drivers/media/platform/qcom/venus/hfi.h int (*session_continue)(struct venus_inst *inst); inst 121 drivers/media/platform/qcom/venus/hfi.h int (*session_etb)(struct venus_inst *inst, struct hfi_frame_data *fd); inst 122 drivers/media/platform/qcom/venus/hfi.h int (*session_ftb)(struct venus_inst *inst, struct hfi_frame_data *fd); inst 123 drivers/media/platform/qcom/venus/hfi.h int (*session_set_buffers)(struct venus_inst *inst, inst 125 drivers/media/platform/qcom/venus/hfi.h int (*session_unset_buffers)(struct venus_inst *inst, inst 127 drivers/media/platform/qcom/venus/hfi.h int (*session_load_res)(struct venus_inst *inst); inst 128 drivers/media/platform/qcom/venus/hfi.h int (*session_release_res)(struct venus_inst *inst); inst 129 drivers/media/platform/qcom/venus/hfi.h int (*session_parse_seq_hdr)(struct venus_inst *inst, u32 seq_hdr, inst 131 drivers/media/platform/qcom/venus/hfi.h int (*session_get_seq_hdr)(struct venus_inst *inst, u32 seq_hdr, inst 133 drivers/media/platform/qcom/venus/hfi.h int (*session_set_property)(struct venus_inst *inst, u32 ptype, inst 135 drivers/media/platform/qcom/venus/hfi.h int (*session_get_property)(struct venus_inst *inst, u32 ptype); inst 154 drivers/media/platform/qcom/venus/hfi.h int hfi_session_create(struct venus_inst *inst, const struct hfi_inst_ops *ops); inst 155 drivers/media/platform/qcom/venus/hfi.h void hfi_session_destroy(struct venus_inst *inst); inst 156 drivers/media/platform/qcom/venus/hfi.h int hfi_session_init(struct venus_inst *inst, u32 pixfmt); inst 157 drivers/media/platform/qcom/venus/hfi.h int hfi_session_deinit(struct venus_inst *inst); inst 158 drivers/media/platform/qcom/venus/hfi.h int hfi_session_start(struct venus_inst *inst); inst 159 drivers/media/platform/qcom/venus/hfi.h int hfi_session_stop(struct venus_inst *inst); inst 160 drivers/media/platform/qcom/venus/hfi.h int hfi_session_continue(struct venus_inst *inst); inst 161 drivers/media/platform/qcom/venus/hfi.h int hfi_session_abort(struct venus_inst *inst); inst 162 drivers/media/platform/qcom/venus/hfi.h int hfi_session_load_res(struct venus_inst *inst); inst 163 drivers/media/platform/qcom/venus/hfi.h int hfi_session_unload_res(struct venus_inst *inst); inst 164 drivers/media/platform/qcom/venus/hfi.h int hfi_session_flush(struct venus_inst *inst, u32 type); inst 165 drivers/media/platform/qcom/venus/hfi.h int hfi_session_set_buffers(struct venus_inst *inst, inst 167 drivers/media/platform/qcom/venus/hfi.h int hfi_session_unset_buffers(struct venus_inst *inst, inst 169 drivers/media/platform/qcom/venus/hfi.h int hfi_session_get_property(struct venus_inst *inst, u32 ptype, inst 171 drivers/media/platform/qcom/venus/hfi.h int hfi_session_set_property(struct venus_inst *inst, u32 ptype, void *pdata); inst 172 drivers/media/platform/qcom/venus/hfi.h int hfi_session_process_buf(struct venus_inst *inst, struct hfi_frame_data *f); inst 17 drivers/media/platform/qcom/venus/hfi_msgs.c static void event_seq_changed(struct venus_core *core, struct venus_inst *inst, inst 33 drivers/media/platform/qcom/venus/hfi_msgs.c inst->error = HFI_ERR_NONE; inst 40 drivers/media/platform/qcom/venus/hfi_msgs.c inst->error = HFI_ERR_SESSION_INVALID_PARAMETER; inst 48 drivers/media/platform/qcom/venus/hfi_msgs.c inst->error = HFI_ERR_SESSION_INSUFFICIENT_RESOURCES; inst 115 drivers/media/platform/qcom/venus/hfi_msgs.c inst->ops->event_notify(inst, EVT_SYS_EVENT_CHANGE, &event); inst 119 drivers/media/platform/qcom/venus/hfi_msgs.c struct venus_inst *inst, inst 133 drivers/media/platform/qcom/venus/hfi_msgs.c inst->error = HFI_ERR_NONE; inst 134 drivers/media/platform/qcom/venus/hfi_msgs.c inst->ops->event_notify(inst, EVT_SYS_EVENT_CHANGE, &event); inst 150 drivers/media/platform/qcom/venus/hfi_msgs.c event_session_error(struct venus_core *core, struct venus_inst *inst, inst 158 drivers/media/platform/qcom/venus/hfi_msgs.c if (!inst) inst 167 drivers/media/platform/qcom/venus/hfi_msgs.c inst->error = HFI_ERR_NONE; inst 174 drivers/media/platform/qcom/venus/hfi_msgs.c inst->error = pkt->event_data1; inst 175 drivers/media/platform/qcom/venus/hfi_msgs.c inst->ops->event_notify(inst, EVT_SESSION_ERROR, NULL); inst 180 drivers/media/platform/qcom/venus/hfi_msgs.c static void hfi_event_notify(struct venus_core *core, struct venus_inst *inst, inst 193 drivers/media/platform/qcom/venus/hfi_msgs.c event_session_error(core, inst, pkt); inst 196 drivers/media/platform/qcom/venus/hfi_msgs.c event_seq_changed(core, inst, pkt); inst 199 drivers/media/platform/qcom/venus/hfi_msgs.c event_release_buffer_ref(core, inst, pkt); inst 208 drivers/media/platform/qcom/venus/hfi_msgs.c static void hfi_sys_init_done(struct venus_core *core, struct venus_inst *inst, inst 231 drivers/media/platform/qcom/venus/hfi_msgs.c error = hfi_parser(core, inst, pkt->data, rem_bytes); inst 254 drivers/media/platform/qcom/venus/hfi_msgs.c struct venus_inst *inst, void *packet) inst 275 drivers/media/platform/qcom/venus/hfi_msgs.c struct venus_inst *inst, inst 284 drivers/media/platform/qcom/venus/hfi_msgs.c static void hfi_sys_ping_done(struct venus_core *core, struct venus_inst *inst, inst 297 drivers/media/platform/qcom/venus/hfi_msgs.c static void hfi_sys_idle_done(struct venus_core *core, struct venus_inst *inst, inst 304 drivers/media/platform/qcom/venus/hfi_msgs.c struct venus_inst *inst, void *packet) inst 364 drivers/media/platform/qcom/venus/hfi_msgs.c struct venus_inst *inst, void *packet) inst 368 drivers/media/platform/qcom/venus/hfi_msgs.c union hfi_get_property *hprop = &inst->hprop; inst 396 drivers/media/platform/qcom/venus/hfi_msgs.c inst->error = error; inst 397 drivers/media/platform/qcom/venus/hfi_msgs.c complete(&inst->done); inst 401 drivers/media/platform/qcom/venus/hfi_msgs.c struct venus_inst *inst, void *packet) inst 420 drivers/media/platform/qcom/venus/hfi_msgs.c error = hfi_parser(core, inst, pkt->data, rem_bytes); inst 422 drivers/media/platform/qcom/venus/hfi_msgs.c inst->error = error; inst 423 drivers/media/platform/qcom/venus/hfi_msgs.c complete(&inst->done); inst 427 drivers/media/platform/qcom/venus/hfi_msgs.c struct venus_inst *inst, void *packet) inst 431 drivers/media/platform/qcom/venus/hfi_msgs.c inst->error = pkt->error_type; inst 432 drivers/media/platform/qcom/venus/hfi_msgs.c complete(&inst->done); inst 436 drivers/media/platform/qcom/venus/hfi_msgs.c struct venus_inst *inst, void *packet) inst 440 drivers/media/platform/qcom/venus/hfi_msgs.c inst->error = pkt->error_type; inst 441 drivers/media/platform/qcom/venus/hfi_msgs.c complete(&inst->done); inst 445 drivers/media/platform/qcom/venus/hfi_msgs.c struct venus_inst *inst, void *packet) inst 449 drivers/media/platform/qcom/venus/hfi_msgs.c inst->error = pkt->error_type; inst 450 drivers/media/platform/qcom/venus/hfi_msgs.c inst->ops->buf_done(inst, HFI_BUFFER_INPUT, pkt->input_tag, inst 455 drivers/media/platform/qcom/venus/hfi_msgs.c struct venus_inst *inst, void *packet) inst 457 drivers/media/platform/qcom/venus/hfi_msgs.c u32 session_type = inst->session_type; inst 530 drivers/media/platform/qcom/venus/hfi_msgs.c inst->error = error; inst 531 drivers/media/platform/qcom/venus/hfi_msgs.c inst->ops->buf_done(inst, buffer_type, output_tag, filled_len, inst 536 drivers/media/platform/qcom/venus/hfi_msgs.c struct venus_inst *inst, void *packet) inst 540 drivers/media/platform/qcom/venus/hfi_msgs.c inst->error = pkt->error_type; inst 541 drivers/media/platform/qcom/venus/hfi_msgs.c complete(&inst->done); inst 545 drivers/media/platform/qcom/venus/hfi_msgs.c struct venus_inst *inst, void *packet) inst 549 drivers/media/platform/qcom/venus/hfi_msgs.c inst->error = pkt->error_type; inst 550 drivers/media/platform/qcom/venus/hfi_msgs.c complete(&inst->done); inst 554 drivers/media/platform/qcom/venus/hfi_msgs.c struct venus_inst *inst, void *packet) inst 558 drivers/media/platform/qcom/venus/hfi_msgs.c inst->error = pkt->error_type; inst 559 drivers/media/platform/qcom/venus/hfi_msgs.c complete(&inst->done); inst 563 drivers/media/platform/qcom/venus/hfi_msgs.c struct venus_inst *inst, void *packet) inst 567 drivers/media/platform/qcom/venus/hfi_msgs.c inst->error = pkt->error_type; inst 568 drivers/media/platform/qcom/venus/hfi_msgs.c complete(&inst->done); inst 572 drivers/media/platform/qcom/venus/hfi_msgs.c struct venus_inst *inst, void *packet) inst 576 drivers/media/platform/qcom/venus/hfi_msgs.c inst->error = pkt->error_type; inst 577 drivers/media/platform/qcom/venus/hfi_msgs.c complete(&inst->done); inst 581 drivers/media/platform/qcom/venus/hfi_msgs.c struct venus_inst *inst, void *packet) inst 585 drivers/media/platform/qcom/venus/hfi_msgs.c inst->error = pkt->error_type; inst 586 drivers/media/platform/qcom/venus/hfi_msgs.c complete(&inst->done); inst 590 drivers/media/platform/qcom/venus/hfi_msgs.c struct venus_inst *inst, void *packet) inst 594 drivers/media/platform/qcom/venus/hfi_msgs.c inst->error = pkt->error_type; inst 595 drivers/media/platform/qcom/venus/hfi_msgs.c complete(&inst->done); inst 703 drivers/media/platform/qcom/venus/hfi_msgs.c struct venus_inst *inst; inst 706 drivers/media/platform/qcom/venus/hfi_msgs.c list_for_each_entry(inst, &core->instances, list) inst 707 drivers/media/platform/qcom/venus/hfi_msgs.c if (hash32_ptr(inst) == session_id) { inst 709 drivers/media/platform/qcom/venus/hfi_msgs.c return inst; inst 720 drivers/media/platform/qcom/venus/hfi_msgs.c struct venus_inst *inst; inst 744 drivers/media/platform/qcom/venus/hfi_msgs.c inst = NULL; inst 749 drivers/media/platform/qcom/venus/hfi_msgs.c inst = to_instance(core, pkt->shdr.session_id); inst 751 drivers/media/platform/qcom/venus/hfi_msgs.c if (!inst) inst 760 drivers/media/platform/qcom/venus/hfi_msgs.c if (!inst && hdr->pkt_type != HFI_MSG_EVENT_NOTIFY) { inst 767 drivers/media/platform/qcom/venus/hfi_msgs.c handler->done(core, inst, hdr); inst 203 drivers/media/platform/qcom/venus/hfi_parser.c static void parser_init(struct venus_inst *inst, u32 *codecs, u32 *domain) inst 205 drivers/media/platform/qcom/venus/hfi_parser.c if (!inst || !IS_V1(inst->core)) inst 208 drivers/media/platform/qcom/venus/hfi_parser.c *codecs = inst->hfi_codec; inst 209 drivers/media/platform/qcom/venus/hfi_parser.c *domain = inst->session_type; inst 212 drivers/media/platform/qcom/venus/hfi_parser.c static void parser_fini(struct venus_inst *inst, u32 codecs, u32 domain) inst 218 drivers/media/platform/qcom/venus/hfi_parser.c if (!inst || !IS_V1(inst->core)) inst 221 drivers/media/platform/qcom/venus/hfi_parser.c caps = inst->core->caps; inst 222 drivers/media/platform/qcom/venus/hfi_parser.c dom = inst->session_type; inst 231 drivers/media/platform/qcom/venus/hfi_parser.c u32 hfi_parser(struct venus_core *core, struct venus_inst *inst, void *buf, inst 240 drivers/media/platform/qcom/venus/hfi_parser.c parser_init(inst, &codecs, &domain); inst 276 drivers/media/platform/qcom/venus/hfi_parser.c parser_fini(inst, codecs, domain); inst 8 drivers/media/platform/qcom/venus/hfi_parser.h u32 hfi_parser(struct venus_core *core, struct venus_inst *inst, inst 15 drivers/media/platform/qcom/venus/hfi_parser.h static inline u32 get_cap(struct venus_inst *inst, u32 type, u32 which) inst 17 drivers/media/platform/qcom/venus/hfi_parser.h struct venus_core *core = inst->core; inst 22 drivers/media/platform/qcom/venus/hfi_parser.h caps = venus_caps_by_codec(core, inst->hfi_codec, inst->session_type); inst 50 drivers/media/platform/qcom/venus/hfi_parser.h static inline u32 cap_min(struct venus_inst *inst, u32 type) inst 52 drivers/media/platform/qcom/venus/hfi_parser.h return get_cap(inst, type, WHICH_CAP_MIN); inst 55 drivers/media/platform/qcom/venus/hfi_parser.h static inline u32 cap_max(struct venus_inst *inst, u32 type) inst 57 drivers/media/platform/qcom/venus/hfi_parser.h return get_cap(inst, type, WHICH_CAP_MAX); inst 60 drivers/media/platform/qcom/venus/hfi_parser.h static inline u32 cap_step(struct venus_inst *inst, u32 type) inst 62 drivers/media/platform/qcom/venus/hfi_parser.h return get_cap(inst, type, WHICH_CAP_STEP); inst 65 drivers/media/platform/qcom/venus/hfi_parser.h static inline u32 frame_width_min(struct venus_inst *inst) inst 67 drivers/media/platform/qcom/venus/hfi_parser.h return cap_min(inst, HFI_CAPABILITY_FRAME_WIDTH); inst 70 drivers/media/platform/qcom/venus/hfi_parser.h static inline u32 frame_width_max(struct venus_inst *inst) inst 72 drivers/media/platform/qcom/venus/hfi_parser.h return cap_max(inst, HFI_CAPABILITY_FRAME_WIDTH); inst 75 drivers/media/platform/qcom/venus/hfi_parser.h static inline u32 frame_width_step(struct venus_inst *inst) inst 77 drivers/media/platform/qcom/venus/hfi_parser.h return cap_step(inst, HFI_CAPABILITY_FRAME_WIDTH); inst 80 drivers/media/platform/qcom/venus/hfi_parser.h static inline u32 frame_height_min(struct venus_inst *inst) inst 82 drivers/media/platform/qcom/venus/hfi_parser.h return cap_min(inst, HFI_CAPABILITY_FRAME_HEIGHT); inst 85 drivers/media/platform/qcom/venus/hfi_parser.h static inline u32 frame_height_max(struct venus_inst *inst) inst 87 drivers/media/platform/qcom/venus/hfi_parser.h return cap_max(inst, HFI_CAPABILITY_FRAME_HEIGHT); inst 90 drivers/media/platform/qcom/venus/hfi_parser.h static inline u32 frame_height_step(struct venus_inst *inst) inst 92 drivers/media/platform/qcom/venus/hfi_parser.h return cap_step(inst, HFI_CAPABILITY_FRAME_HEIGHT); inst 95 drivers/media/platform/qcom/venus/hfi_parser.h static inline u32 frate_min(struct venus_inst *inst) inst 97 drivers/media/platform/qcom/venus/hfi_parser.h return cap_min(inst, HFI_CAPABILITY_FRAMERATE); inst 100 drivers/media/platform/qcom/venus/hfi_parser.h static inline u32 frate_max(struct venus_inst *inst) inst 102 drivers/media/platform/qcom/venus/hfi_parser.h return cap_max(inst, HFI_CAPABILITY_FRAMERATE); inst 105 drivers/media/platform/qcom/venus/hfi_parser.h static inline u32 frate_step(struct venus_inst *inst) inst 107 drivers/media/platform/qcom/venus/hfi_parser.h return cap_step(inst, HFI_CAPABILITY_FRAMERATE); inst 888 drivers/media/platform/qcom/venus/hfi_venus.c static int venus_session_cmd(struct venus_inst *inst, u32 pkt_type) inst 890 drivers/media/platform/qcom/venus/hfi_venus.c struct venus_hfi_device *hdev = to_hfi_priv(inst->core); inst 893 drivers/media/platform/qcom/venus/hfi_venus.c pkt_session_cmd(&pkt, pkt_type, inst); inst 1129 drivers/media/platform/qcom/venus/hfi_venus.c static int venus_session_init(struct venus_inst *inst, u32 session_type, inst 1132 drivers/media/platform/qcom/venus/hfi_venus.c struct venus_hfi_device *hdev = to_hfi_priv(inst->core); inst 1136 drivers/media/platform/qcom/venus/hfi_venus.c ret = pkt_session_init(&pkt, inst, session_type, codec); inst 1151 drivers/media/platform/qcom/venus/hfi_venus.c static int venus_session_end(struct venus_inst *inst) inst 1153 drivers/media/platform/qcom/venus/hfi_venus.c struct venus_hfi_device *hdev = to_hfi_priv(inst->core); inst 1161 drivers/media/platform/qcom/venus/hfi_venus.c return venus_session_cmd(inst, HFI_CMD_SYS_SESSION_END); inst 1164 drivers/media/platform/qcom/venus/hfi_venus.c static int venus_session_abort(struct venus_inst *inst) inst 1166 drivers/media/platform/qcom/venus/hfi_venus.c struct venus_hfi_device *hdev = to_hfi_priv(inst->core); inst 1170 drivers/media/platform/qcom/venus/hfi_venus.c return venus_session_cmd(inst, HFI_CMD_SYS_SESSION_ABORT); inst 1173 drivers/media/platform/qcom/venus/hfi_venus.c static int venus_session_flush(struct venus_inst *inst, u32 flush_mode) inst 1175 drivers/media/platform/qcom/venus/hfi_venus.c struct venus_hfi_device *hdev = to_hfi_priv(inst->core); inst 1179 drivers/media/platform/qcom/venus/hfi_venus.c ret = pkt_session_flush(&pkt, inst, flush_mode); inst 1186 drivers/media/platform/qcom/venus/hfi_venus.c static int venus_session_start(struct venus_inst *inst) inst 1188 drivers/media/platform/qcom/venus/hfi_venus.c return venus_session_cmd(inst, HFI_CMD_SESSION_START); inst 1191 drivers/media/platform/qcom/venus/hfi_venus.c static int venus_session_stop(struct venus_inst *inst) inst 1193 drivers/media/platform/qcom/venus/hfi_venus.c return venus_session_cmd(inst, HFI_CMD_SESSION_STOP); inst 1196 drivers/media/platform/qcom/venus/hfi_venus.c static int venus_session_continue(struct venus_inst *inst) inst 1198 drivers/media/platform/qcom/venus/hfi_venus.c return venus_session_cmd(inst, HFI_CMD_SESSION_CONTINUE); inst 1201 drivers/media/platform/qcom/venus/hfi_venus.c static int venus_session_etb(struct venus_inst *inst, inst 1204 drivers/media/platform/qcom/venus/hfi_venus.c struct venus_hfi_device *hdev = to_hfi_priv(inst->core); inst 1205 drivers/media/platform/qcom/venus/hfi_venus.c u32 session_type = inst->session_type; inst 1211 drivers/media/platform/qcom/venus/hfi_venus.c ret = pkt_session_etb_decoder(&pkt, inst, in_frame); inst 1219 drivers/media/platform/qcom/venus/hfi_venus.c ret = pkt_session_etb_encoder(&pkt, inst, in_frame); inst 1231 drivers/media/platform/qcom/venus/hfi_venus.c static int venus_session_ftb(struct venus_inst *inst, inst 1234 drivers/media/platform/qcom/venus/hfi_venus.c struct venus_hfi_device *hdev = to_hfi_priv(inst->core); inst 1238 drivers/media/platform/qcom/venus/hfi_venus.c ret = pkt_session_ftb(&pkt, inst, out_frame); inst 1245 drivers/media/platform/qcom/venus/hfi_venus.c static int venus_session_set_buffers(struct venus_inst *inst, inst 1248 drivers/media/platform/qcom/venus/hfi_venus.c struct venus_hfi_device *hdev = to_hfi_priv(inst->core); inst 1258 drivers/media/platform/qcom/venus/hfi_venus.c ret = pkt_session_set_buffers(pkt, inst, bd); inst 1265 drivers/media/platform/qcom/venus/hfi_venus.c static int venus_session_unset_buffers(struct venus_inst *inst, inst 1268 drivers/media/platform/qcom/venus/hfi_venus.c struct venus_hfi_device *hdev = to_hfi_priv(inst->core); inst 1278 drivers/media/platform/qcom/venus/hfi_venus.c ret = pkt_session_unset_buffers(pkt, inst, bd); inst 1285 drivers/media/platform/qcom/venus/hfi_venus.c static int venus_session_load_res(struct venus_inst *inst) inst 1287 drivers/media/platform/qcom/venus/hfi_venus.c return venus_session_cmd(inst, HFI_CMD_SESSION_LOAD_RESOURCES); inst 1290 drivers/media/platform/qcom/venus/hfi_venus.c static int venus_session_release_res(struct venus_inst *inst) inst 1292 drivers/media/platform/qcom/venus/hfi_venus.c return venus_session_cmd(inst, HFI_CMD_SESSION_RELEASE_RESOURCES); inst 1295 drivers/media/platform/qcom/venus/hfi_venus.c static int venus_session_parse_seq_hdr(struct venus_inst *inst, u32 seq_hdr, inst 1298 drivers/media/platform/qcom/venus/hfi_venus.c struct venus_hfi_device *hdev = to_hfi_priv(inst->core); inst 1305 drivers/media/platform/qcom/venus/hfi_venus.c ret = pkt_session_parse_seq_header(pkt, inst, seq_hdr, seq_hdr_len); inst 1316 drivers/media/platform/qcom/venus/hfi_venus.c static int venus_session_get_seq_hdr(struct venus_inst *inst, u32 seq_hdr, inst 1319 drivers/media/platform/qcom/venus/hfi_venus.c struct venus_hfi_device *hdev = to_hfi_priv(inst->core); inst 1326 drivers/media/platform/qcom/venus/hfi_venus.c ret = pkt_session_get_seq_hdr(pkt, inst, seq_hdr, seq_hdr_len); inst 1333 drivers/media/platform/qcom/venus/hfi_venus.c static int venus_session_set_property(struct venus_inst *inst, u32 ptype, inst 1336 drivers/media/platform/qcom/venus/hfi_venus.c struct venus_hfi_device *hdev = to_hfi_priv(inst->core); inst 1343 drivers/media/platform/qcom/venus/hfi_venus.c ret = pkt_session_set_property(pkt, inst, ptype, pdata); inst 1352 drivers/media/platform/qcom/venus/hfi_venus.c static int venus_session_get_property(struct venus_inst *inst, u32 ptype) inst 1354 drivers/media/platform/qcom/venus/hfi_venus.c struct venus_hfi_device *hdev = to_hfi_priv(inst->core); inst 1358 drivers/media/platform/qcom/venus/hfi_venus.c ret = pkt_session_get_property(&pkt, inst, ptype); inst 90 drivers/media/platform/qcom/venus/vdec.c find_format(struct venus_inst *inst, u32 pixfmt, u32 type) inst 105 drivers/media/platform/qcom/venus/vdec.c !venus_helper_check_codec(inst, fmt[i].pixfmt)) inst 112 drivers/media/platform/qcom/venus/vdec.c find_format_by_index(struct venus_inst *inst, unsigned int index, u32 type) inst 127 drivers/media/platform/qcom/venus/vdec.c venus_helper_check_codec(inst, fmt[i].pixfmt); inst 141 drivers/media/platform/qcom/venus/vdec.c vdec_try_fmt_common(struct venus_inst *inst, struct v4l2_format *f) inst 151 drivers/media/platform/qcom/venus/vdec.c fmt = find_format(inst, pixmp->pixelformat, f->type); inst 159 drivers/media/platform/qcom/venus/vdec.c fmt = find_format(inst, pixmp->pixelformat, f->type); inst 162 drivers/media/platform/qcom/venus/vdec.c pixmp->width = clamp(pixmp->width, frame_width_min(inst), inst 163 drivers/media/platform/qcom/venus/vdec.c frame_width_max(inst)); inst 164 drivers/media/platform/qcom/venus/vdec.c pixmp->height = clamp(pixmp->height, frame_height_min(inst), inst 165 drivers/media/platform/qcom/venus/vdec.c frame_height_max(inst)); inst 192 drivers/media/platform/qcom/venus/vdec.c struct venus_inst *inst = to_inst(file); inst 194 drivers/media/platform/qcom/venus/vdec.c vdec_try_fmt_common(inst, f); inst 199 drivers/media/platform/qcom/venus/vdec.c static int vdec_check_src_change(struct venus_inst *inst) inst 203 drivers/media/platform/qcom/venus/vdec.c if (inst->subscriptions & V4L2_EVENT_SOURCE_CHANGE && inst 204 drivers/media/platform/qcom/venus/vdec.c inst->codec_state == VENUS_DEC_STATE_INIT && inst 205 drivers/media/platform/qcom/venus/vdec.c !inst->reconfig) inst 208 drivers/media/platform/qcom/venus/vdec.c if (inst->subscriptions & V4L2_EVENT_SOURCE_CHANGE) inst 217 drivers/media/platform/qcom/venus/vdec.c if (inst->codec_state != VENUS_DEC_STATE_INIT) inst 220 drivers/media/platform/qcom/venus/vdec.c ret = wait_event_timeout(inst->reconf_wait, inst->reconfig, inst 225 drivers/media/platform/qcom/venus/vdec.c if (!(inst->codec_state == VENUS_DEC_STATE_CAPTURE_SETUP) || inst 226 drivers/media/platform/qcom/venus/vdec.c !inst->reconfig) inst 227 drivers/media/platform/qcom/venus/vdec.c dev_dbg(inst->core->dev, "%s: wrong state\n", __func__); inst 235 drivers/media/platform/qcom/venus/vdec.c struct venus_inst *inst = to_inst(file); inst 241 drivers/media/platform/qcom/venus/vdec.c fmt = inst->fmt_cap; inst 243 drivers/media/platform/qcom/venus/vdec.c fmt = inst->fmt_out; inst 246 drivers/media/platform/qcom/venus/vdec.c ret = vdec_check_src_change(inst); inst 254 drivers/media/platform/qcom/venus/vdec.c pixmp->width = inst->width; inst 255 drivers/media/platform/qcom/venus/vdec.c pixmp->height = inst->height; inst 256 drivers/media/platform/qcom/venus/vdec.c pixmp->colorspace = inst->colorspace; inst 257 drivers/media/platform/qcom/venus/vdec.c pixmp->ycbcr_enc = inst->ycbcr_enc; inst 258 drivers/media/platform/qcom/venus/vdec.c pixmp->quantization = inst->quantization; inst 259 drivers/media/platform/qcom/venus/vdec.c pixmp->xfer_func = inst->xfer_func; inst 261 drivers/media/platform/qcom/venus/vdec.c pixmp->width = inst->out_width; inst 262 drivers/media/platform/qcom/venus/vdec.c pixmp->height = inst->out_height; inst 265 drivers/media/platform/qcom/venus/vdec.c vdec_try_fmt_common(inst, f); inst 272 drivers/media/platform/qcom/venus/vdec.c struct venus_inst *inst = to_inst(file); inst 281 drivers/media/platform/qcom/venus/vdec.c fmt = vdec_try_fmt_common(inst, f); inst 285 drivers/media/platform/qcom/venus/vdec.c pixfmt_cap = inst->fmt_cap->pixfmt; inst 288 drivers/media/platform/qcom/venus/vdec.c pixfmt_out = inst->fmt_out->pixfmt; inst 297 drivers/media/platform/qcom/venus/vdec.c vdec_try_fmt_common(inst, &format); inst 300 drivers/media/platform/qcom/venus/vdec.c inst->out_width = format.fmt.pix_mp.width; inst 301 drivers/media/platform/qcom/venus/vdec.c inst->out_height = format.fmt.pix_mp.height; inst 302 drivers/media/platform/qcom/venus/vdec.c inst->colorspace = pixmp->colorspace; inst 303 drivers/media/platform/qcom/venus/vdec.c inst->ycbcr_enc = pixmp->ycbcr_enc; inst 304 drivers/media/platform/qcom/venus/vdec.c inst->quantization = pixmp->quantization; inst 305 drivers/media/platform/qcom/venus/vdec.c inst->xfer_func = pixmp->xfer_func; inst 306 drivers/media/platform/qcom/venus/vdec.c inst->input_buf_size = pixmp->plane_fmt[0].sizeimage; inst 315 drivers/media/platform/qcom/venus/vdec.c vdec_try_fmt_common(inst, &format); inst 317 drivers/media/platform/qcom/venus/vdec.c inst->width = format.fmt.pix_mp.width; inst 318 drivers/media/platform/qcom/venus/vdec.c inst->height = format.fmt.pix_mp.height; inst 321 drivers/media/platform/qcom/venus/vdec.c inst->fmt_out = fmt; inst 323 drivers/media/platform/qcom/venus/vdec.c inst->fmt_cap = fmt; inst 331 drivers/media/platform/qcom/venus/vdec.c struct venus_inst *inst = to_inst(file); inst 343 drivers/media/platform/qcom/venus/vdec.c s->r.width = inst->out_width; inst 344 drivers/media/platform/qcom/venus/vdec.c s->r.height = inst->out_height; inst 350 drivers/media/platform/qcom/venus/vdec.c s->r.width = inst->width; inst 351 drivers/media/platform/qcom/venus/vdec.c s->r.height = inst->height; inst 357 drivers/media/platform/qcom/venus/vdec.c s->r.width = inst->out_width; inst 358 drivers/media/platform/qcom/venus/vdec.c s->r.height = inst->out_height; inst 382 drivers/media/platform/qcom/venus/vdec.c struct venus_inst *inst = to_inst(file); inst 387 drivers/media/platform/qcom/venus/vdec.c fmt = find_format_by_index(inst, f->index, f->type); inst 399 drivers/media/platform/qcom/venus/vdec.c struct venus_inst *inst = to_inst(file); inst 410 drivers/media/platform/qcom/venus/vdec.c timeperframe->denominator = inst->timeperframe.denominator; inst 412 drivers/media/platform/qcom/venus/vdec.c timeperframe->numerator = inst->timeperframe.numerator; inst 425 drivers/media/platform/qcom/venus/vdec.c inst->fps = fps; inst 426 drivers/media/platform/qcom/venus/vdec.c inst->timeperframe = *timeperframe; inst 434 drivers/media/platform/qcom/venus/vdec.c struct venus_inst *inst = to_inst(file); inst 437 drivers/media/platform/qcom/venus/vdec.c fmt = find_format(inst, fsize->pixel_format, inst 440 drivers/media/platform/qcom/venus/vdec.c fmt = find_format(inst, fsize->pixel_format, inst 451 drivers/media/platform/qcom/venus/vdec.c fsize->stepwise.min_width = frame_width_min(inst); inst 452 drivers/media/platform/qcom/venus/vdec.c fsize->stepwise.max_width = frame_width_max(inst); inst 453 drivers/media/platform/qcom/venus/vdec.c fsize->stepwise.step_width = frame_width_step(inst); inst 454 drivers/media/platform/qcom/venus/vdec.c fsize->stepwise.min_height = frame_height_min(inst); inst 455 drivers/media/platform/qcom/venus/vdec.c fsize->stepwise.max_height = frame_height_max(inst); inst 456 drivers/media/platform/qcom/venus/vdec.c fsize->stepwise.step_height = frame_height_step(inst); inst 464 drivers/media/platform/qcom/venus/vdec.c struct venus_inst *inst = container_of(fh, struct venus_inst, fh); inst 474 drivers/media/platform/qcom/venus/vdec.c inst->subscriptions |= V4L2_EVENT_SOURCE_CHANGE; inst 486 drivers/media/platform/qcom/venus/vdec.c struct venus_inst *inst = to_inst(file); inst 494 drivers/media/platform/qcom/venus/vdec.c mutex_lock(&inst->lock); inst 501 drivers/media/platform/qcom/venus/vdec.c if (!(inst->streamon_out && inst->streamon_cap)) inst 508 drivers/media/platform/qcom/venus/vdec.c ret = hfi_session_process_buf(inst, &fdata); inst 510 drivers/media/platform/qcom/venus/vdec.c if (!ret && inst->codec_state == VENUS_DEC_STATE_DECODING) inst 511 drivers/media/platform/qcom/venus/vdec.c inst->codec_state = VENUS_DEC_STATE_DRAIN; inst 515 drivers/media/platform/qcom/venus/vdec.c mutex_unlock(&inst->lock); inst 547 drivers/media/platform/qcom/venus/vdec.c static int vdec_set_properties(struct venus_inst *inst) inst 549 drivers/media/platform/qcom/venus/vdec.c struct vdec_controls *ctr = &inst->controls.dec; inst 556 drivers/media/platform/qcom/venus/vdec.c ret = hfi_session_set_property(inst, ptype, &en); inst 566 drivers/media/platform/qcom/venus/vdec.c static int vdec_output_conf(struct venus_inst *inst) inst 568 drivers/media/platform/qcom/venus/vdec.c struct venus_core *core = inst->core; inst 570 drivers/media/platform/qcom/venus/vdec.c u32 width = inst->out_width; inst 571 drivers/media/platform/qcom/venus/vdec.c u32 height = inst->out_height; inst 577 drivers/media/platform/qcom/venus/vdec.c ret = venus_helper_set_work_mode(inst, VIDC_WORK_MODE_2); inst 581 drivers/media/platform/qcom/venus/vdec.c ret = venus_helper_set_core_usage(inst, VIDC_CORE_ID_1); inst 587 drivers/media/platform/qcom/venus/vdec.c ret = hfi_session_set_property(inst, ptype, &en); inst 600 drivers/media/platform/qcom/venus/vdec.c ret = venus_helper_get_out_fmts(inst, inst->fmt_cap->pixfmt, &out_fmt, inst 605 drivers/media/platform/qcom/venus/vdec.c inst->output_buf_size = inst 607 drivers/media/platform/qcom/venus/vdec.c inst->output2_buf_size = inst 611 drivers/media/platform/qcom/venus/vdec.c inst->opb_buftype = HFI_BUFFER_OUTPUT2; inst 612 drivers/media/platform/qcom/venus/vdec.c inst->opb_fmt = out2_fmt; inst 613 drivers/media/platform/qcom/venus/vdec.c inst->dpb_buftype = HFI_BUFFER_OUTPUT; inst 614 drivers/media/platform/qcom/venus/vdec.c inst->dpb_fmt = out_fmt; inst 616 drivers/media/platform/qcom/venus/vdec.c inst->opb_buftype = HFI_BUFFER_OUTPUT; inst 617 drivers/media/platform/qcom/venus/vdec.c inst->opb_fmt = out_fmt; inst 618 drivers/media/platform/qcom/venus/vdec.c inst->dpb_buftype = HFI_BUFFER_OUTPUT2; inst 619 drivers/media/platform/qcom/venus/vdec.c inst->dpb_fmt = out2_fmt; inst 621 drivers/media/platform/qcom/venus/vdec.c inst->opb_buftype = HFI_BUFFER_OUTPUT; inst 622 drivers/media/platform/qcom/venus/vdec.c inst->opb_fmt = out_fmt; inst 623 drivers/media/platform/qcom/venus/vdec.c inst->dpb_buftype = 0; inst 624 drivers/media/platform/qcom/venus/vdec.c inst->dpb_fmt = 0; inst 627 drivers/media/platform/qcom/venus/vdec.c ret = venus_helper_set_raw_format(inst, inst->opb_fmt, inst 628 drivers/media/platform/qcom/venus/vdec.c inst->opb_buftype); inst 632 drivers/media/platform/qcom/venus/vdec.c if (inst->dpb_fmt) { inst 633 drivers/media/platform/qcom/venus/vdec.c ret = venus_helper_set_multistream(inst, false, true); inst 637 drivers/media/platform/qcom/venus/vdec.c ret = venus_helper_set_raw_format(inst, inst->dpb_fmt, inst 638 drivers/media/platform/qcom/venus/vdec.c inst->dpb_buftype); inst 642 drivers/media/platform/qcom/venus/vdec.c ret = venus_helper_set_output_resolution(inst, width, height, inst 649 drivers/media/platform/qcom/venus/vdec.c if (inst->output2_buf_size) { inst 650 drivers/media/platform/qcom/venus/vdec.c ret = venus_helper_set_bufsize(inst, inst 651 drivers/media/platform/qcom/venus/vdec.c inst->output2_buf_size, inst 657 drivers/media/platform/qcom/venus/vdec.c if (inst->output_buf_size) { inst 658 drivers/media/platform/qcom/venus/vdec.c ret = venus_helper_set_bufsize(inst, inst 659 drivers/media/platform/qcom/venus/vdec.c inst->output_buf_size, inst 666 drivers/media/platform/qcom/venus/vdec.c ret = venus_helper_set_dyn_bufmode(inst); inst 673 drivers/media/platform/qcom/venus/vdec.c static int vdec_session_init(struct venus_inst *inst) inst 677 drivers/media/platform/qcom/venus/vdec.c ret = hfi_session_init(inst, inst->fmt_out->pixfmt); inst 683 drivers/media/platform/qcom/venus/vdec.c ret = venus_helper_set_input_resolution(inst, frame_width_min(inst), inst 684 drivers/media/platform/qcom/venus/vdec.c frame_height_min(inst)); inst 690 drivers/media/platform/qcom/venus/vdec.c hfi_session_deinit(inst); inst 694 drivers/media/platform/qcom/venus/vdec.c static int vdec_num_buffers(struct venus_inst *inst, unsigned int *in_num, inst 697 drivers/media/platform/qcom/venus/vdec.c enum hfi_version ver = inst->core->res->hfi_version; inst 703 drivers/media/platform/qcom/venus/vdec.c ret = venus_helper_get_bufreq(inst, HFI_BUFFER_INPUT, &bufreq); inst 709 drivers/media/platform/qcom/venus/vdec.c ret = venus_helper_get_bufreq(inst, HFI_BUFFER_OUTPUT, &bufreq); inst 722 drivers/media/platform/qcom/venus/vdec.c struct venus_inst *inst = vb2_get_drv_priv(q); inst 727 drivers/media/platform/qcom/venus/vdec.c unsigned int output_buf_size = venus_helper_get_opb_size(inst); inst 730 drivers/media/platform/qcom/venus/vdec.c *num_planes != inst->fmt_out->num_planes) inst 734 drivers/media/platform/qcom/venus/vdec.c *num_planes != inst->fmt_cap->num_planes) inst 738 drivers/media/platform/qcom/venus/vdec.c sizes[0] < inst->input_buf_size) inst 748 drivers/media/platform/qcom/venus/vdec.c ret = vdec_session_init(inst); inst 752 drivers/media/platform/qcom/venus/vdec.c ret = vdec_num_buffers(inst, &in_num, &out_num); inst 758 drivers/media/platform/qcom/venus/vdec.c *num_planes = inst->fmt_out->num_planes; inst 759 drivers/media/platform/qcom/venus/vdec.c sizes[0] = venus_helper_get_framesz(inst->fmt_out->pixfmt, inst 760 drivers/media/platform/qcom/venus/vdec.c inst->out_width, inst 761 drivers/media/platform/qcom/venus/vdec.c inst->out_height); inst 762 drivers/media/platform/qcom/venus/vdec.c sizes[0] = max(sizes[0], inst->input_buf_size); inst 763 drivers/media/platform/qcom/venus/vdec.c inst->input_buf_size = sizes[0]; inst 765 drivers/media/platform/qcom/venus/vdec.c inst->num_input_bufs = *num_buffers; inst 766 drivers/media/platform/qcom/venus/vdec.c inst->num_output_bufs = out_num; inst 769 drivers/media/platform/qcom/venus/vdec.c *num_planes = inst->fmt_cap->num_planes; inst 770 drivers/media/platform/qcom/venus/vdec.c sizes[0] = venus_helper_get_framesz(inst->fmt_cap->pixfmt, inst 771 drivers/media/platform/qcom/venus/vdec.c inst->width, inst 772 drivers/media/platform/qcom/venus/vdec.c inst->height); inst 773 drivers/media/platform/qcom/venus/vdec.c inst->output_buf_size = sizes[0]; inst 775 drivers/media/platform/qcom/venus/vdec.c inst->num_output_bufs = *num_buffers; inst 777 drivers/media/platform/qcom/venus/vdec.c mutex_lock(&inst->lock); inst 778 drivers/media/platform/qcom/venus/vdec.c if (inst->codec_state == VENUS_DEC_STATE_CAPTURE_SETUP) inst 779 drivers/media/platform/qcom/venus/vdec.c inst->codec_state = VENUS_DEC_STATE_STOPPED; inst 780 drivers/media/platform/qcom/venus/vdec.c mutex_unlock(&inst->lock); inst 790 drivers/media/platform/qcom/venus/vdec.c static int vdec_verify_conf(struct venus_inst *inst) inst 792 drivers/media/platform/qcom/venus/vdec.c enum hfi_version ver = inst->core->res->hfi_version; inst 796 drivers/media/platform/qcom/venus/vdec.c if (!inst->num_input_bufs || !inst->num_output_bufs) inst 799 drivers/media/platform/qcom/venus/vdec.c ret = venus_helper_get_bufreq(inst, HFI_BUFFER_OUTPUT, &bufreq); inst 803 drivers/media/platform/qcom/venus/vdec.c if (inst->num_output_bufs < bufreq.count_actual || inst 804 drivers/media/platform/qcom/venus/vdec.c inst->num_output_bufs < HFI_BUFREQ_COUNT_MIN(&bufreq, ver)) inst 807 drivers/media/platform/qcom/venus/vdec.c ret = venus_helper_get_bufreq(inst, HFI_BUFFER_INPUT, &bufreq); inst 811 drivers/media/platform/qcom/venus/vdec.c if (inst->num_input_bufs < HFI_BUFREQ_COUNT_MIN(&bufreq, ver)) inst 817 drivers/media/platform/qcom/venus/vdec.c static int vdec_start_capture(struct venus_inst *inst) inst 821 drivers/media/platform/qcom/venus/vdec.c if (!inst->streamon_out) inst 824 drivers/media/platform/qcom/venus/vdec.c if (inst->codec_state == VENUS_DEC_STATE_DECODING) { inst 825 drivers/media/platform/qcom/venus/vdec.c if (inst->reconfig) inst 828 drivers/media/platform/qcom/venus/vdec.c venus_helper_queue_dpb_bufs(inst); inst 829 drivers/media/platform/qcom/venus/vdec.c venus_helper_process_initial_cap_bufs(inst); inst 830 drivers/media/platform/qcom/venus/vdec.c inst->streamon_cap = 1; inst 834 drivers/media/platform/qcom/venus/vdec.c if (inst->codec_state != VENUS_DEC_STATE_STOPPED) inst 838 drivers/media/platform/qcom/venus/vdec.c ret = hfi_session_flush(inst, HFI_FLUSH_OUTPUT); inst 842 drivers/media/platform/qcom/venus/vdec.c ret = vdec_output_conf(inst); inst 846 drivers/media/platform/qcom/venus/vdec.c ret = venus_helper_set_num_bufs(inst, inst->num_input_bufs, inst 851 drivers/media/platform/qcom/venus/vdec.c ret = venus_helper_intbufs_realloc(inst); inst 855 drivers/media/platform/qcom/venus/vdec.c ret = venus_helper_alloc_dpb_bufs(inst); inst 859 drivers/media/platform/qcom/venus/vdec.c ret = venus_helper_queue_dpb_bufs(inst); inst 863 drivers/media/platform/qcom/venus/vdec.c ret = venus_helper_process_initial_cap_bufs(inst); inst 867 drivers/media/platform/qcom/venus/vdec.c venus_helper_load_scale_clocks(inst->core); inst 869 drivers/media/platform/qcom/venus/vdec.c ret = hfi_session_continue(inst); inst 873 drivers/media/platform/qcom/venus/vdec.c inst->codec_state = VENUS_DEC_STATE_DECODING; inst 875 drivers/media/platform/qcom/venus/vdec.c inst->streamon_cap = 1; inst 876 drivers/media/platform/qcom/venus/vdec.c inst->sequence_cap = 0; inst 877 drivers/media/platform/qcom/venus/vdec.c inst->reconfig = false; inst 882 drivers/media/platform/qcom/venus/vdec.c venus_helper_free_dpb_bufs(inst); inst 887 drivers/media/platform/qcom/venus/vdec.c static int vdec_start_output(struct venus_inst *inst) inst 891 drivers/media/platform/qcom/venus/vdec.c if (inst->codec_state == VENUS_DEC_STATE_SEEK) { inst 892 drivers/media/platform/qcom/venus/vdec.c ret = venus_helper_process_initial_out_bufs(inst); inst 893 drivers/media/platform/qcom/venus/vdec.c inst->codec_state = VENUS_DEC_STATE_DECODING; inst 897 drivers/media/platform/qcom/venus/vdec.c if (inst->codec_state == VENUS_DEC_STATE_INIT || inst 898 drivers/media/platform/qcom/venus/vdec.c inst->codec_state == VENUS_DEC_STATE_CAPTURE_SETUP) { inst 899 drivers/media/platform/qcom/venus/vdec.c ret = venus_helper_process_initial_out_bufs(inst); inst 903 drivers/media/platform/qcom/venus/vdec.c if (inst->codec_state != VENUS_DEC_STATE_DEINIT) inst 906 drivers/media/platform/qcom/venus/vdec.c venus_helper_init_instance(inst); inst 907 drivers/media/platform/qcom/venus/vdec.c inst->sequence_out = 0; inst 908 drivers/media/platform/qcom/venus/vdec.c inst->reconfig = false; inst 910 drivers/media/platform/qcom/venus/vdec.c ret = vdec_set_properties(inst); inst 914 drivers/media/platform/qcom/venus/vdec.c ret = vdec_output_conf(inst); inst 918 drivers/media/platform/qcom/venus/vdec.c ret = vdec_verify_conf(inst); inst 922 drivers/media/platform/qcom/venus/vdec.c ret = venus_helper_set_num_bufs(inst, inst->num_input_bufs, inst 927 drivers/media/platform/qcom/venus/vdec.c ret = venus_helper_vb2_start_streaming(inst); inst 931 drivers/media/platform/qcom/venus/vdec.c ret = venus_helper_process_initial_out_bufs(inst); inst 935 drivers/media/platform/qcom/venus/vdec.c inst->codec_state = VENUS_DEC_STATE_INIT; inst 938 drivers/media/platform/qcom/venus/vdec.c inst->streamon_out = 1; inst 944 drivers/media/platform/qcom/venus/vdec.c struct venus_inst *inst = vb2_get_drv_priv(q); inst 947 drivers/media/platform/qcom/venus/vdec.c mutex_lock(&inst->lock); inst 950 drivers/media/platform/qcom/venus/vdec.c ret = vdec_start_capture(inst); inst 952 drivers/media/platform/qcom/venus/vdec.c ret = vdec_start_output(inst); inst 957 drivers/media/platform/qcom/venus/vdec.c mutex_unlock(&inst->lock); inst 961 drivers/media/platform/qcom/venus/vdec.c venus_helper_buffers_done(inst, VB2_BUF_STATE_QUEUED); inst 962 drivers/media/platform/qcom/venus/vdec.c mutex_unlock(&inst->lock); inst 966 drivers/media/platform/qcom/venus/vdec.c static void vdec_cancel_dst_buffers(struct venus_inst *inst) inst 970 drivers/media/platform/qcom/venus/vdec.c while ((buf = v4l2_m2m_dst_buf_remove(inst->m2m_ctx))) inst 974 drivers/media/platform/qcom/venus/vdec.c static int vdec_stop_capture(struct venus_inst *inst) inst 978 drivers/media/platform/qcom/venus/vdec.c switch (inst->codec_state) { inst 980 drivers/media/platform/qcom/venus/vdec.c ret = hfi_session_flush(inst, HFI_FLUSH_ALL); inst 983 drivers/media/platform/qcom/venus/vdec.c vdec_cancel_dst_buffers(inst); inst 984 drivers/media/platform/qcom/venus/vdec.c inst->codec_state = VENUS_DEC_STATE_STOPPED; inst 987 drivers/media/platform/qcom/venus/vdec.c ret = hfi_session_flush(inst, HFI_FLUSH_OUTPUT); inst 988 drivers/media/platform/qcom/venus/vdec.c vdec_cancel_dst_buffers(inst); inst 989 drivers/media/platform/qcom/venus/vdec.c inst->codec_state = VENUS_DEC_STATE_CAPTURE_SETUP; inst 990 drivers/media/platform/qcom/venus/vdec.c INIT_LIST_HEAD(&inst->registeredbufs); inst 991 drivers/media/platform/qcom/venus/vdec.c venus_helper_free_dpb_bufs(inst); inst 1000 drivers/media/platform/qcom/venus/vdec.c static int vdec_stop_output(struct venus_inst *inst) inst 1004 drivers/media/platform/qcom/venus/vdec.c switch (inst->codec_state) { inst 1008 drivers/media/platform/qcom/venus/vdec.c ret = hfi_session_flush(inst, HFI_FLUSH_ALL); inst 1009 drivers/media/platform/qcom/venus/vdec.c inst->codec_state = VENUS_DEC_STATE_SEEK; inst 1013 drivers/media/platform/qcom/venus/vdec.c ret = hfi_session_flush(inst, HFI_FLUSH_INPUT); inst 1024 drivers/media/platform/qcom/venus/vdec.c struct venus_inst *inst = vb2_get_drv_priv(q); inst 1027 drivers/media/platform/qcom/venus/vdec.c mutex_lock(&inst->lock); inst 1030 drivers/media/platform/qcom/venus/vdec.c ret = vdec_stop_capture(inst); inst 1032 drivers/media/platform/qcom/venus/vdec.c ret = vdec_stop_output(inst); inst 1034 drivers/media/platform/qcom/venus/vdec.c venus_helper_buffers_done(inst, VB2_BUF_STATE_ERROR); inst 1040 drivers/media/platform/qcom/venus/vdec.c inst->streamon_out = 0; inst 1042 drivers/media/platform/qcom/venus/vdec.c inst->streamon_cap = 0; inst 1045 drivers/media/platform/qcom/venus/vdec.c mutex_unlock(&inst->lock); inst 1048 drivers/media/platform/qcom/venus/vdec.c static void vdec_session_release(struct venus_inst *inst) inst 1050 drivers/media/platform/qcom/venus/vdec.c struct venus_core *core = inst->core; inst 1053 drivers/media/platform/qcom/venus/vdec.c mutex_lock(&inst->lock); inst 1055 drivers/media/platform/qcom/venus/vdec.c inst->codec_state = VENUS_DEC_STATE_DEINIT; inst 1057 drivers/media/platform/qcom/venus/vdec.c ret = hfi_session_stop(inst); inst 1059 drivers/media/platform/qcom/venus/vdec.c ret = hfi_session_unload_res(inst); inst 1061 drivers/media/platform/qcom/venus/vdec.c ret = venus_helper_unregister_bufs(inst); inst 1063 drivers/media/platform/qcom/venus/vdec.c ret = venus_helper_intbufs_free(inst); inst 1065 drivers/media/platform/qcom/venus/vdec.c ret = hfi_session_deinit(inst); inst 1068 drivers/media/platform/qcom/venus/vdec.c if (inst->session_error || core->sys_error) inst 1072 drivers/media/platform/qcom/venus/vdec.c hfi_session_abort(inst); inst 1074 drivers/media/platform/qcom/venus/vdec.c venus_helper_free_dpb_bufs(inst); inst 1076 drivers/media/platform/qcom/venus/vdec.c INIT_LIST_HEAD(&inst->registeredbufs); inst 1078 drivers/media/platform/qcom/venus/vdec.c mutex_unlock(&inst->lock); inst 1083 drivers/media/platform/qcom/venus/vdec.c struct venus_inst *inst = vb2_get_drv_priv(vb->vb2_queue); inst 1085 drivers/media/platform/qcom/venus/vdec.c inst->buf_count++; inst 1092 drivers/media/platform/qcom/venus/vdec.c struct venus_inst *inst = vb2_get_drv_priv(vb->vb2_queue); inst 1094 drivers/media/platform/qcom/venus/vdec.c inst->buf_count--; inst 1095 drivers/media/platform/qcom/venus/vdec.c if (!inst->buf_count) inst 1096 drivers/media/platform/qcom/venus/vdec.c vdec_session_release(inst); inst 1109 drivers/media/platform/qcom/venus/vdec.c static void vdec_buf_done(struct venus_inst *inst, unsigned int buf_type, inst 1123 drivers/media/platform/qcom/venus/vdec.c vbuf = venus_helper_find_buf(inst, type, tag); inst 1135 drivers/media/platform/qcom/venus/vdec.c vbuf->sequence = inst->sequence_cap++; inst 1140 drivers/media/platform/qcom/venus/vdec.c v4l2_event_queue_fh(&inst->fh, &ev); inst 1142 drivers/media/platform/qcom/venus/vdec.c if (inst->codec_state == VENUS_DEC_STATE_DRAIN) inst 1143 drivers/media/platform/qcom/venus/vdec.c inst->codec_state = VENUS_DEC_STATE_STOPPED; inst 1146 drivers/media/platform/qcom/venus/vdec.c vbuf->sequence = inst->sequence_out++; inst 1149 drivers/media/platform/qcom/venus/vdec.c venus_helper_get_ts_metadata(inst, timestamp_us, vbuf); inst 1166 drivers/media/platform/qcom/venus/vdec.c static void vdec_event_change(struct venus_inst *inst, inst 1172 drivers/media/platform/qcom/venus/vdec.c struct device *dev = inst->core->dev_dec; inst 1175 drivers/media/platform/qcom/venus/vdec.c mutex_lock(&inst->lock); inst 1178 drivers/media/platform/qcom/venus/vdec.c format.fmt.pix_mp.pixelformat = inst->fmt_cap->pixfmt; inst 1182 drivers/media/platform/qcom/venus/vdec.c vdec_try_fmt_common(inst, &format); inst 1184 drivers/media/platform/qcom/venus/vdec.c inst->width = format.fmt.pix_mp.width; inst 1185 drivers/media/platform/qcom/venus/vdec.c inst->height = format.fmt.pix_mp.height; inst 1187 drivers/media/platform/qcom/venus/vdec.c inst->out_width = ev_data->width; inst 1188 drivers/media/platform/qcom/venus/vdec.c inst->out_height = ev_data->height; inst 1194 drivers/media/platform/qcom/venus/vdec.c hfi_session_continue(inst); inst 1196 drivers/media/platform/qcom/venus/vdec.c switch (inst->codec_state) { inst 1198 drivers/media/platform/qcom/venus/vdec.c inst->codec_state = VENUS_DEC_STATE_CAPTURE_SETUP; inst 1201 drivers/media/platform/qcom/venus/vdec.c inst->codec_state = VENUS_DEC_STATE_DRC; inst 1208 drivers/media/platform/qcom/venus/vdec.c inst->reconfig = true; inst 1209 drivers/media/platform/qcom/venus/vdec.c v4l2_event_queue_fh(&inst->fh, &ev); inst 1210 drivers/media/platform/qcom/venus/vdec.c wake_up(&inst->reconf_wait); inst 1212 drivers/media/platform/qcom/venus/vdec.c mutex_unlock(&inst->lock); inst 1215 drivers/media/platform/qcom/venus/vdec.c static void vdec_event_notify(struct venus_inst *inst, u32 event, inst 1218 drivers/media/platform/qcom/venus/vdec.c struct venus_core *core = inst->core; inst 1223 drivers/media/platform/qcom/venus/vdec.c inst->session_error = true; inst 1224 drivers/media/platform/qcom/venus/vdec.c dev_err(dev, "dec: event session error %x\n", inst->error); inst 1229 drivers/media/platform/qcom/venus/vdec.c vdec_event_change(inst, data, true); inst 1232 drivers/media/platform/qcom/venus/vdec.c vdec_event_change(inst, data, false); inst 1235 drivers/media/platform/qcom/venus/vdec.c venus_helper_release_buf_ref(inst, data->tag); inst 1251 drivers/media/platform/qcom/venus/vdec.c static void vdec_inst_init(struct venus_inst *inst) inst 1253 drivers/media/platform/qcom/venus/vdec.c inst->hfi_codec = HFI_VIDEO_CODEC_H264; inst 1254 drivers/media/platform/qcom/venus/vdec.c inst->fmt_out = &vdec_formats[6]; inst 1255 drivers/media/platform/qcom/venus/vdec.c inst->fmt_cap = &vdec_formats[0]; inst 1256 drivers/media/platform/qcom/venus/vdec.c inst->width = frame_width_min(inst); inst 1257 drivers/media/platform/qcom/venus/vdec.c inst->height = ALIGN(frame_height_min(inst), 32); inst 1258 drivers/media/platform/qcom/venus/vdec.c inst->out_width = frame_width_min(inst); inst 1259 drivers/media/platform/qcom/venus/vdec.c inst->out_height = frame_height_min(inst); inst 1260 drivers/media/platform/qcom/venus/vdec.c inst->fps = 30; inst 1261 drivers/media/platform/qcom/venus/vdec.c inst->timeperframe.numerator = 1; inst 1262 drivers/media/platform/qcom/venus/vdec.c inst->timeperframe.denominator = 30; inst 1263 drivers/media/platform/qcom/venus/vdec.c inst->opb_buftype = HFI_BUFFER_OUTPUT; inst 1278 drivers/media/platform/qcom/venus/vdec.c struct venus_inst *inst = priv; inst 1286 drivers/media/platform/qcom/venus/vdec.c src_vq->drv_priv = inst; inst 1290 drivers/media/platform/qcom/venus/vdec.c src_vq->dev = inst->core->dev; inst 1300 drivers/media/platform/qcom/venus/vdec.c dst_vq->drv_priv = inst; inst 1304 drivers/media/platform/qcom/venus/vdec.c dst_vq->dev = inst->core->dev; inst 1317 drivers/media/platform/qcom/venus/vdec.c struct venus_inst *inst; inst 1320 drivers/media/platform/qcom/venus/vdec.c inst = kzalloc(sizeof(*inst), GFP_KERNEL); inst 1321 drivers/media/platform/qcom/venus/vdec.c if (!inst) inst 1324 drivers/media/platform/qcom/venus/vdec.c INIT_LIST_HEAD(&inst->dpbbufs); inst 1325 drivers/media/platform/qcom/venus/vdec.c INIT_LIST_HEAD(&inst->registeredbufs); inst 1326 drivers/media/platform/qcom/venus/vdec.c INIT_LIST_HEAD(&inst->internalbufs); inst 1327 drivers/media/platform/qcom/venus/vdec.c INIT_LIST_HEAD(&inst->list); inst 1328 drivers/media/platform/qcom/venus/vdec.c mutex_init(&inst->lock); inst 1330 drivers/media/platform/qcom/venus/vdec.c inst->core = core; inst 1331 drivers/media/platform/qcom/venus/vdec.c inst->session_type = VIDC_SESSION_TYPE_DEC; inst 1332 drivers/media/platform/qcom/venus/vdec.c inst->num_output_bufs = 1; inst 1333 drivers/media/platform/qcom/venus/vdec.c inst->codec_state = VENUS_DEC_STATE_DEINIT; inst 1334 drivers/media/platform/qcom/venus/vdec.c inst->buf_count = 0; inst 1335 drivers/media/platform/qcom/venus/vdec.c init_waitqueue_head(&inst->reconf_wait); inst 1336 drivers/media/platform/qcom/venus/vdec.c venus_helper_init_instance(inst); inst 1342 drivers/media/platform/qcom/venus/vdec.c ret = vdec_ctrl_init(inst); inst 1346 drivers/media/platform/qcom/venus/vdec.c ret = hfi_session_create(inst, &vdec_hfi_ops); inst 1350 drivers/media/platform/qcom/venus/vdec.c vdec_inst_init(inst); inst 1356 drivers/media/platform/qcom/venus/vdec.c inst->m2m_dev = v4l2_m2m_init(&vdec_m2m_ops); inst 1357 drivers/media/platform/qcom/venus/vdec.c if (IS_ERR(inst->m2m_dev)) { inst 1358 drivers/media/platform/qcom/venus/vdec.c ret = PTR_ERR(inst->m2m_dev); inst 1362 drivers/media/platform/qcom/venus/vdec.c inst->m2m_ctx = v4l2_m2m_ctx_init(inst->m2m_dev, inst, m2m_queue_init); inst 1363 drivers/media/platform/qcom/venus/vdec.c if (IS_ERR(inst->m2m_ctx)) { inst 1364 drivers/media/platform/qcom/venus/vdec.c ret = PTR_ERR(inst->m2m_ctx); inst 1368 drivers/media/platform/qcom/venus/vdec.c v4l2_fh_init(&inst->fh, core->vdev_dec); inst 1370 drivers/media/platform/qcom/venus/vdec.c inst->fh.ctrl_handler = &inst->ctrl_handler; inst 1371 drivers/media/platform/qcom/venus/vdec.c v4l2_fh_add(&inst->fh); inst 1372 drivers/media/platform/qcom/venus/vdec.c inst->fh.m2m_ctx = inst->m2m_ctx; inst 1373 drivers/media/platform/qcom/venus/vdec.c file->private_data = &inst->fh; inst 1378 drivers/media/platform/qcom/venus/vdec.c v4l2_m2m_release(inst->m2m_dev); inst 1380 drivers/media/platform/qcom/venus/vdec.c hfi_session_destroy(inst); inst 1382 drivers/media/platform/qcom/venus/vdec.c vdec_ctrl_deinit(inst); inst 1386 drivers/media/platform/qcom/venus/vdec.c kfree(inst); inst 1392 drivers/media/platform/qcom/venus/vdec.c struct venus_inst *inst = to_inst(file); inst 1394 drivers/media/platform/qcom/venus/vdec.c v4l2_m2m_ctx_release(inst->m2m_ctx); inst 1395 drivers/media/platform/qcom/venus/vdec.c v4l2_m2m_release(inst->m2m_dev); inst 1396 drivers/media/platform/qcom/venus/vdec.c vdec_ctrl_deinit(inst); inst 1397 drivers/media/platform/qcom/venus/vdec.c hfi_session_destroy(inst); inst 1398 drivers/media/platform/qcom/venus/vdec.c mutex_destroy(&inst->lock); inst 1399 drivers/media/platform/qcom/venus/vdec.c v4l2_fh_del(&inst->fh); inst 1400 drivers/media/platform/qcom/venus/vdec.c v4l2_fh_exit(&inst->fh); inst 1402 drivers/media/platform/qcom/venus/vdec.c pm_runtime_put_sync(inst->core->dev_dec); inst 1404 drivers/media/platform/qcom/venus/vdec.c kfree(inst); inst 11 drivers/media/platform/qcom/venus/vdec.h int vdec_ctrl_init(struct venus_inst *inst); inst 12 drivers/media/platform/qcom/venus/vdec.h void vdec_ctrl_deinit(struct venus_inst *inst); inst 15 drivers/media/platform/qcom/venus/vdec_ctrls.c struct venus_inst *inst = ctrl_to_inst(ctrl); inst 16 drivers/media/platform/qcom/venus/vdec_ctrls.c struct vdec_controls *ctr = &inst->controls.dec; inst 40 drivers/media/platform/qcom/venus/vdec_ctrls.c struct venus_inst *inst = ctrl_to_inst(ctrl); inst 41 drivers/media/platform/qcom/venus/vdec_ctrls.c struct vdec_controls *ctr = &inst->controls.dec; inst 44 drivers/media/platform/qcom/venus/vdec_ctrls.c enum hfi_version ver = inst->core->res->hfi_version; inst 52 drivers/media/platform/qcom/venus/vdec_ctrls.c ret = hfi_session_get_property(inst, ptype, &hprop); inst 59 drivers/media/platform/qcom/venus/vdec_ctrls.c ret = hfi_session_get_property(inst, ptype, &hprop); inst 68 drivers/media/platform/qcom/venus/vdec_ctrls.c ret = venus_helper_get_bufreq(inst, HFI_BUFFER_OUTPUT, &bufreq); inst 84 drivers/media/platform/qcom/venus/vdec_ctrls.c int vdec_ctrl_init(struct venus_inst *inst) inst 89 drivers/media/platform/qcom/venus/vdec_ctrls.c ret = v4l2_ctrl_handler_init(&inst->ctrl_handler, 7); inst 93 drivers/media/platform/qcom/venus/vdec_ctrls.c ctrl = v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &vdec_ctrl_ops, inst 102 drivers/media/platform/qcom/venus/vdec_ctrls.c ctrl = v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &vdec_ctrl_ops, inst 109 drivers/media/platform/qcom/venus/vdec_ctrls.c ctrl = v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &vdec_ctrl_ops, inst 122 drivers/media/platform/qcom/venus/vdec_ctrls.c ctrl = v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &vdec_ctrl_ops, inst 129 drivers/media/platform/qcom/venus/vdec_ctrls.c ctrl = v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &vdec_ctrl_ops, inst 136 drivers/media/platform/qcom/venus/vdec_ctrls.c v4l2_ctrl_new_std(&inst->ctrl_handler, &vdec_ctrl_ops, inst 139 drivers/media/platform/qcom/venus/vdec_ctrls.c ctrl = v4l2_ctrl_new_std(&inst->ctrl_handler, &vdec_ctrl_ops, inst 144 drivers/media/platform/qcom/venus/vdec_ctrls.c ret = inst->ctrl_handler.error; inst 146 drivers/media/platform/qcom/venus/vdec_ctrls.c v4l2_ctrl_handler_free(&inst->ctrl_handler); inst 153 drivers/media/platform/qcom/venus/vdec_ctrls.c void vdec_ctrl_deinit(struct venus_inst *inst) inst 155 drivers/media/platform/qcom/venus/vdec_ctrls.c v4l2_ctrl_handler_free(&inst->ctrl_handler); inst 62 drivers/media/platform/qcom/venus/venc.c find_format(struct venus_inst *inst, u32 pixfmt, u32 type) inst 77 drivers/media/platform/qcom/venus/venc.c !venus_helper_check_codec(inst, fmt[i].pixfmt)) inst 84 drivers/media/platform/qcom/venus/venc.c find_format_by_index(struct venus_inst *inst, unsigned int index, u32 type) inst 99 drivers/media/platform/qcom/venus/venc.c venus_helper_check_codec(inst, fmt[i].pixfmt); inst 276 drivers/media/platform/qcom/venus/venc.c struct venus_inst *inst = to_inst(file); inst 279 drivers/media/platform/qcom/venus/venc.c fmt = find_format_by_index(inst, f->index, f->type); inst 292 drivers/media/platform/qcom/venus/venc.c venc_try_fmt_common(struct venus_inst *inst, struct v4l2_format *f) inst 302 drivers/media/platform/qcom/venus/venc.c fmt = find_format(inst, pixmp->pixelformat, f->type); inst 310 drivers/media/platform/qcom/venus/venc.c fmt = find_format(inst, pixmp->pixelformat, f->type); inst 313 drivers/media/platform/qcom/venus/venc.c pixmp->width = clamp(pixmp->width, frame_width_min(inst), inst 314 drivers/media/platform/qcom/venus/venc.c frame_width_max(inst)); inst 315 drivers/media/platform/qcom/venus/venc.c pixmp->height = clamp(pixmp->height, frame_height_min(inst), inst 316 drivers/media/platform/qcom/venus/venc.c frame_height_max(inst)); inst 344 drivers/media/platform/qcom/venus/venc.c struct venus_inst *inst = to_inst(file); inst 346 drivers/media/platform/qcom/venus/venc.c venc_try_fmt_common(inst, f); inst 353 drivers/media/platform/qcom/venus/venc.c struct venus_inst *inst = to_inst(file); inst 362 drivers/media/platform/qcom/venus/venc.c fmt = venc_try_fmt_common(inst, f); inst 368 drivers/media/platform/qcom/venus/venc.c pixfmt_cap = inst->fmt_cap->pixfmt; inst 371 drivers/media/platform/qcom/venus/venc.c pixfmt_out = inst->fmt_out->pixfmt; inst 380 drivers/media/platform/qcom/venus/venc.c venc_try_fmt_common(inst, &format); inst 383 drivers/media/platform/qcom/venus/venc.c inst->out_width = format.fmt.pix_mp.width; inst 384 drivers/media/platform/qcom/venus/venc.c inst->out_height = format.fmt.pix_mp.height; inst 385 drivers/media/platform/qcom/venus/venc.c inst->colorspace = pixmp->colorspace; inst 386 drivers/media/platform/qcom/venus/venc.c inst->ycbcr_enc = pixmp->ycbcr_enc; inst 387 drivers/media/platform/qcom/venus/venc.c inst->quantization = pixmp->quantization; inst 388 drivers/media/platform/qcom/venus/venc.c inst->xfer_func = pixmp->xfer_func; inst 397 drivers/media/platform/qcom/venus/venc.c venc_try_fmt_common(inst, &format); inst 399 drivers/media/platform/qcom/venus/venc.c inst->width = format.fmt.pix_mp.width; inst 400 drivers/media/platform/qcom/venus/venc.c inst->height = format.fmt.pix_mp.height; inst 403 drivers/media/platform/qcom/venus/venc.c inst->fmt_out = fmt; inst 405 drivers/media/platform/qcom/venus/venc.c inst->fmt_cap = fmt; inst 406 drivers/media/platform/qcom/venus/venc.c inst->output_buf_size = pixmp->plane_fmt[0].sizeimage; inst 415 drivers/media/platform/qcom/venus/venc.c struct venus_inst *inst = to_inst(file); inst 419 drivers/media/platform/qcom/venus/venc.c fmt = inst->fmt_cap; inst 421 drivers/media/platform/qcom/venus/venc.c fmt = inst->fmt_out; inst 428 drivers/media/platform/qcom/venus/venc.c pixmp->width = inst->width; inst 429 drivers/media/platform/qcom/venus/venc.c pixmp->height = inst->height; inst 430 drivers/media/platform/qcom/venus/venc.c pixmp->colorspace = inst->colorspace; inst 431 drivers/media/platform/qcom/venus/venc.c pixmp->ycbcr_enc = inst->ycbcr_enc; inst 432 drivers/media/platform/qcom/venus/venc.c pixmp->quantization = inst->quantization; inst 433 drivers/media/platform/qcom/venus/venc.c pixmp->xfer_func = inst->xfer_func; inst 435 drivers/media/platform/qcom/venus/venc.c pixmp->width = inst->out_width; inst 436 drivers/media/platform/qcom/venus/venc.c pixmp->height = inst->out_height; inst 439 drivers/media/platform/qcom/venus/venc.c venc_try_fmt_common(inst, f); inst 447 drivers/media/platform/qcom/venus/venc.c struct venus_inst *inst = to_inst(file); inst 455 drivers/media/platform/qcom/venus/venc.c s->r.width = inst->width; inst 456 drivers/media/platform/qcom/venus/venc.c s->r.height = inst->height; inst 459 drivers/media/platform/qcom/venus/venc.c s->r.width = inst->out_width; inst 460 drivers/media/platform/qcom/venus/venc.c s->r.height = inst->out_height; inst 475 drivers/media/platform/qcom/venus/venc.c struct venus_inst *inst = to_inst(file); inst 482 drivers/media/platform/qcom/venus/venc.c if (s->r.width != inst->out_width || inst 483 drivers/media/platform/qcom/venus/venc.c s->r.height != inst->out_height || inst 496 drivers/media/platform/qcom/venus/venc.c struct venus_inst *inst = to_inst(file); inst 508 drivers/media/platform/qcom/venus/venc.c timeperframe->denominator = inst->timeperframe.denominator; inst 510 drivers/media/platform/qcom/venus/venc.c timeperframe->numerator = inst->timeperframe.numerator; inst 523 drivers/media/platform/qcom/venus/venc.c inst->timeperframe = *timeperframe; inst 524 drivers/media/platform/qcom/venus/venc.c inst->fps = fps; inst 531 drivers/media/platform/qcom/venus/venc.c struct venus_inst *inst = to_inst(file); inst 538 drivers/media/platform/qcom/venus/venc.c a->parm.output.timeperframe = inst->timeperframe; inst 546 drivers/media/platform/qcom/venus/venc.c struct venus_inst *inst = to_inst(file); inst 551 drivers/media/platform/qcom/venus/venc.c fmt = find_format(inst, fsize->pixel_format, inst 554 drivers/media/platform/qcom/venus/venc.c fmt = find_format(inst, fsize->pixel_format, inst 563 drivers/media/platform/qcom/venus/venc.c fsize->stepwise.min_width = frame_width_min(inst); inst 564 drivers/media/platform/qcom/venus/venc.c fsize->stepwise.max_width = frame_width_max(inst); inst 565 drivers/media/platform/qcom/venus/venc.c fsize->stepwise.step_width = frame_width_step(inst); inst 566 drivers/media/platform/qcom/venus/venc.c fsize->stepwise.min_height = frame_height_min(inst); inst 567 drivers/media/platform/qcom/venus/venc.c fsize->stepwise.max_height = frame_height_max(inst); inst 568 drivers/media/platform/qcom/venus/venc.c fsize->stepwise.step_height = frame_height_step(inst); inst 576 drivers/media/platform/qcom/venus/venc.c struct venus_inst *inst = to_inst(file); inst 581 drivers/media/platform/qcom/venus/venc.c fmt = find_format(inst, fival->pixel_format, inst 584 drivers/media/platform/qcom/venus/venc.c fmt = find_format(inst, fival->pixel_format, inst 596 drivers/media/platform/qcom/venus/venc.c if (fival->width > frame_width_max(inst) || inst 597 drivers/media/platform/qcom/venus/venc.c fival->width < frame_width_min(inst) || inst 598 drivers/media/platform/qcom/venus/venc.c fival->height > frame_height_max(inst) || inst 599 drivers/media/platform/qcom/venus/venc.c fival->height < frame_height_min(inst)) inst 603 drivers/media/platform/qcom/venus/venc.c fival->stepwise.min.denominator = frate_max(inst); inst 605 drivers/media/platform/qcom/venus/venc.c fival->stepwise.max.denominator = frate_min(inst); inst 607 drivers/media/platform/qcom/venus/venc.c fival->stepwise.step.denominator = frate_max(inst); inst 641 drivers/media/platform/qcom/venus/venc.c static int venc_set_properties(struct venus_inst *inst) inst 643 drivers/media/platform/qcom/venus/venc.c struct venc_controls *ctr = &inst->controls.enc; inst 654 drivers/media/platform/qcom/venus/venc.c ret = venus_helper_set_work_mode(inst, VIDC_WORK_MODE_2); inst 658 drivers/media/platform/qcom/venus/venc.c ret = venus_helper_set_core_usage(inst, VIDC_CORE_ID_2); inst 664 drivers/media/platform/qcom/venus/venc.c frate.framerate = inst->fps * (1 << 16); inst 666 drivers/media/platform/qcom/venus/venc.c ret = hfi_session_set_property(inst, ptype, &frate); inst 670 drivers/media/platform/qcom/venus/venc.c if (inst->fmt_cap->pixfmt == V4L2_PIX_FMT_H264) { inst 680 drivers/media/platform/qcom/venus/venc.c ret = hfi_session_set_property(inst, ptype, &info); inst 690 drivers/media/platform/qcom/venus/venc.c ret = hfi_session_set_property(inst, ptype, &entropy); inst 701 drivers/media/platform/qcom/venus/venc.c ret = hfi_session_set_property(inst, ptype, &deblock); inst 713 drivers/media/platform/qcom/venus/venc.c ret = hfi_session_set_property(inst, ptype, &idrp); inst 721 drivers/media/platform/qcom/venus/venc.c ret = hfi_session_set_property(inst, ptype, &max_num_b_frames); inst 730 drivers/media/platform/qcom/venus/venc.c ret = hfi_session_set_property(inst, ptype, &intra_period); inst 740 drivers/media/platform/qcom/venus/venc.c ret = hfi_session_set_property(inst, ptype, &rate_control); inst 753 drivers/media/platform/qcom/venus/venc.c ret = hfi_session_set_property(inst, ptype, &brate); inst 766 drivers/media/platform/qcom/venus/venc.c ret = hfi_session_set_property(inst, ptype, &brate); inst 775 drivers/media/platform/qcom/venus/venc.c ret = hfi_session_set_property(inst, ptype, &quant); inst 783 drivers/media/platform/qcom/venus/venc.c ret = hfi_session_set_property(inst, ptype, &quant_range); inst 787 drivers/media/platform/qcom/venus/venc.c if (inst->fmt_cap->pixfmt == V4L2_PIX_FMT_H264) { inst 792 drivers/media/platform/qcom/venus/venc.c } else if (inst->fmt_cap->pixfmt == V4L2_PIX_FMT_VP8) { inst 796 drivers/media/platform/qcom/venus/venc.c } else if (inst->fmt_cap->pixfmt == V4L2_PIX_FMT_MPEG4) { inst 801 drivers/media/platform/qcom/venus/venc.c } else if (inst->fmt_cap->pixfmt == V4L2_PIX_FMT_H263) { inst 804 drivers/media/platform/qcom/venus/venc.c } else if (inst->fmt_cap->pixfmt == V4L2_PIX_FMT_HEVC) { inst 815 drivers/media/platform/qcom/venus/venc.c ret = hfi_session_set_property(inst, ptype, &pl); inst 822 drivers/media/platform/qcom/venus/venc.c static int venc_init_session(struct venus_inst *inst) inst 826 drivers/media/platform/qcom/venus/venc.c ret = hfi_session_init(inst, inst->fmt_cap->pixfmt); inst 830 drivers/media/platform/qcom/venus/venc.c ret = venus_helper_set_input_resolution(inst, inst->width, inst 831 drivers/media/platform/qcom/venus/venc.c inst->height); inst 835 drivers/media/platform/qcom/venus/venc.c ret = venus_helper_set_output_resolution(inst, inst->width, inst 836 drivers/media/platform/qcom/venus/venc.c inst->height, inst 841 drivers/media/platform/qcom/venus/venc.c ret = venus_helper_set_color_format(inst, inst->fmt_out->pixfmt); inst 845 drivers/media/platform/qcom/venus/venc.c ret = venc_set_properties(inst); inst 851 drivers/media/platform/qcom/venus/venc.c hfi_session_deinit(inst); inst 855 drivers/media/platform/qcom/venus/venc.c static int venc_out_num_buffers(struct venus_inst *inst, unsigned int *num) inst 860 drivers/media/platform/qcom/venus/venc.c ret = venc_init_session(inst); inst 864 drivers/media/platform/qcom/venus/venc.c ret = venus_helper_get_bufreq(inst, HFI_BUFFER_INPUT, &bufreq); inst 868 drivers/media/platform/qcom/venus/venc.c hfi_session_deinit(inst); inst 877 drivers/media/platform/qcom/venus/venc.c struct venus_inst *inst = vb2_get_drv_priv(q); inst 883 drivers/media/platform/qcom/venus/venc.c *num_planes != inst->fmt_out->num_planes) inst 887 drivers/media/platform/qcom/venus/venc.c *num_planes != inst->fmt_cap->num_planes) inst 891 drivers/media/platform/qcom/venus/venc.c sizes[0] < inst->input_buf_size) inst 895 drivers/media/platform/qcom/venus/venc.c sizes[0] < inst->output_buf_size) inst 903 drivers/media/platform/qcom/venus/venc.c *num_planes = inst->fmt_out->num_planes; inst 905 drivers/media/platform/qcom/venus/venc.c ret = venc_out_num_buffers(inst, &num); inst 911 drivers/media/platform/qcom/venus/venc.c inst->num_input_bufs = *num_buffers; inst 913 drivers/media/platform/qcom/venus/venc.c sizes[0] = venus_helper_get_framesz(inst->fmt_out->pixfmt, inst 914 drivers/media/platform/qcom/venus/venc.c inst->width, inst 915 drivers/media/platform/qcom/venus/venc.c inst->height); inst 916 drivers/media/platform/qcom/venus/venc.c inst->input_buf_size = sizes[0]; inst 919 drivers/media/platform/qcom/venus/venc.c *num_planes = inst->fmt_cap->num_planes; inst 921 drivers/media/platform/qcom/venus/venc.c inst->num_output_bufs = *num_buffers; inst 922 drivers/media/platform/qcom/venus/venc.c sizes[0] = venus_helper_get_framesz(inst->fmt_cap->pixfmt, inst 923 drivers/media/platform/qcom/venus/venc.c inst->width, inst 924 drivers/media/platform/qcom/venus/venc.c inst->height); inst 925 drivers/media/platform/qcom/venus/venc.c sizes[0] = max(sizes[0], inst->output_buf_size); inst 926 drivers/media/platform/qcom/venus/venc.c inst->output_buf_size = sizes[0]; inst 936 drivers/media/platform/qcom/venus/venc.c static int venc_verify_conf(struct venus_inst *inst) inst 938 drivers/media/platform/qcom/venus/venc.c enum hfi_version ver = inst->core->res->hfi_version; inst 942 drivers/media/platform/qcom/venus/venc.c if (!inst->num_input_bufs || !inst->num_output_bufs) inst 945 drivers/media/platform/qcom/venus/venc.c ret = venus_helper_get_bufreq(inst, HFI_BUFFER_OUTPUT, &bufreq); inst 949 drivers/media/platform/qcom/venus/venc.c if (inst->num_output_bufs < bufreq.count_actual || inst 950 drivers/media/platform/qcom/venus/venc.c inst->num_output_bufs < HFI_BUFREQ_COUNT_MIN(&bufreq, ver)) inst 953 drivers/media/platform/qcom/venus/venc.c ret = venus_helper_get_bufreq(inst, HFI_BUFFER_INPUT, &bufreq); inst 957 drivers/media/platform/qcom/venus/venc.c if (inst->num_input_bufs < bufreq.count_actual || inst 958 drivers/media/platform/qcom/venus/venc.c inst->num_input_bufs < HFI_BUFREQ_COUNT_MIN(&bufreq, ver)) inst 966 drivers/media/platform/qcom/venus/venc.c struct venus_inst *inst = vb2_get_drv_priv(q); inst 969 drivers/media/platform/qcom/venus/venc.c mutex_lock(&inst->lock); inst 972 drivers/media/platform/qcom/venus/venc.c inst->streamon_out = 1; inst 974 drivers/media/platform/qcom/venus/venc.c inst->streamon_cap = 1; inst 976 drivers/media/platform/qcom/venus/venc.c if (!(inst->streamon_out & inst->streamon_cap)) { inst 977 drivers/media/platform/qcom/venus/venc.c mutex_unlock(&inst->lock); inst 981 drivers/media/platform/qcom/venus/venc.c venus_helper_init_instance(inst); inst 983 drivers/media/platform/qcom/venus/venc.c inst->sequence_cap = 0; inst 984 drivers/media/platform/qcom/venus/venc.c inst->sequence_out = 0; inst 986 drivers/media/platform/qcom/venus/venc.c ret = venc_init_session(inst); inst 990 drivers/media/platform/qcom/venus/venc.c ret = venc_set_properties(inst); inst 994 drivers/media/platform/qcom/venus/venc.c ret = venc_verify_conf(inst); inst 998 drivers/media/platform/qcom/venus/venc.c ret = venus_helper_set_num_bufs(inst, inst->num_input_bufs, inst 999 drivers/media/platform/qcom/venus/venc.c inst->num_output_bufs, 0); inst 1003 drivers/media/platform/qcom/venus/venc.c ret = venus_helper_vb2_start_streaming(inst); inst 1007 drivers/media/platform/qcom/venus/venc.c mutex_unlock(&inst->lock); inst 1012 drivers/media/platform/qcom/venus/venc.c hfi_session_deinit(inst); inst 1014 drivers/media/platform/qcom/venus/venc.c venus_helper_buffers_done(inst, VB2_BUF_STATE_QUEUED); inst 1016 drivers/media/platform/qcom/venus/venc.c inst->streamon_out = 0; inst 1018 drivers/media/platform/qcom/venus/venc.c inst->streamon_cap = 0; inst 1019 drivers/media/platform/qcom/venus/venc.c mutex_unlock(&inst->lock); inst 1032 drivers/media/platform/qcom/venus/venc.c static void venc_buf_done(struct venus_inst *inst, unsigned int buf_type, inst 1045 drivers/media/platform/qcom/venus/venc.c vbuf = venus_helper_find_buf(inst, type, tag); inst 1056 drivers/media/platform/qcom/venus/venc.c vbuf->sequence = inst->sequence_cap++; inst 1058 drivers/media/platform/qcom/venus/venc.c vbuf->sequence = inst->sequence_out++; inst 1064 drivers/media/platform/qcom/venus/venc.c static void venc_event_notify(struct venus_inst *inst, u32 event, inst 1067 drivers/media/platform/qcom/venus/venc.c struct device *dev = inst->core->dev_enc; inst 1070 drivers/media/platform/qcom/venus/venc.c inst->session_error = true; inst 1071 drivers/media/platform/qcom/venus/venc.c dev_err(dev, "enc: event session error %x\n", inst->error); inst 1088 drivers/media/platform/qcom/venus/venc.c struct venus_inst *inst = priv; inst 1096 drivers/media/platform/qcom/venus/venc.c src_vq->drv_priv = inst; inst 1100 drivers/media/platform/qcom/venus/venc.c src_vq->dev = inst->core->dev; inst 1101 drivers/media/platform/qcom/venus/venc.c if (inst->core->res->hfi_version == HFI_VERSION_1XX) inst 1112 drivers/media/platform/qcom/venus/venc.c dst_vq->drv_priv = inst; inst 1116 drivers/media/platform/qcom/venus/venc.c dst_vq->dev = inst->core->dev; inst 1126 drivers/media/platform/qcom/venus/venc.c static void venc_inst_init(struct venus_inst *inst) inst 1128 drivers/media/platform/qcom/venus/venc.c inst->fmt_cap = &venc_formats[2]; inst 1129 drivers/media/platform/qcom/venus/venc.c inst->fmt_out = &venc_formats[0]; inst 1130 drivers/media/platform/qcom/venus/venc.c inst->width = 1280; inst 1131 drivers/media/platform/qcom/venus/venc.c inst->height = ALIGN(720, 32); inst 1132 drivers/media/platform/qcom/venus/venc.c inst->out_width = 1280; inst 1133 drivers/media/platform/qcom/venus/venc.c inst->out_height = 720; inst 1134 drivers/media/platform/qcom/venus/venc.c inst->fps = 15; inst 1135 drivers/media/platform/qcom/venus/venc.c inst->timeperframe.numerator = 1; inst 1136 drivers/media/platform/qcom/venus/venc.c inst->timeperframe.denominator = 15; inst 1137 drivers/media/platform/qcom/venus/venc.c inst->hfi_codec = HFI_VIDEO_CODEC_H264; inst 1143 drivers/media/platform/qcom/venus/venc.c struct venus_inst *inst; inst 1146 drivers/media/platform/qcom/venus/venc.c inst = kzalloc(sizeof(*inst), GFP_KERNEL); inst 1147 drivers/media/platform/qcom/venus/venc.c if (!inst) inst 1150 drivers/media/platform/qcom/venus/venc.c INIT_LIST_HEAD(&inst->dpbbufs); inst 1151 drivers/media/platform/qcom/venus/venc.c INIT_LIST_HEAD(&inst->registeredbufs); inst 1152 drivers/media/platform/qcom/venus/venc.c INIT_LIST_HEAD(&inst->internalbufs); inst 1153 drivers/media/platform/qcom/venus/venc.c INIT_LIST_HEAD(&inst->list); inst 1154 drivers/media/platform/qcom/venus/venc.c mutex_init(&inst->lock); inst 1156 drivers/media/platform/qcom/venus/venc.c inst->core = core; inst 1157 drivers/media/platform/qcom/venus/venc.c inst->session_type = VIDC_SESSION_TYPE_ENC; inst 1159 drivers/media/platform/qcom/venus/venc.c venus_helper_init_instance(inst); inst 1165 drivers/media/platform/qcom/venus/venc.c ret = venc_ctrl_init(inst); inst 1169 drivers/media/platform/qcom/venus/venc.c ret = hfi_session_create(inst, &venc_hfi_ops); inst 1173 drivers/media/platform/qcom/venus/venc.c venc_inst_init(inst); inst 1179 drivers/media/platform/qcom/venus/venc.c inst->m2m_dev = v4l2_m2m_init(&venc_m2m_ops); inst 1180 drivers/media/platform/qcom/venus/venc.c if (IS_ERR(inst->m2m_dev)) { inst 1181 drivers/media/platform/qcom/venus/venc.c ret = PTR_ERR(inst->m2m_dev); inst 1185 drivers/media/platform/qcom/venus/venc.c inst->m2m_ctx = v4l2_m2m_ctx_init(inst->m2m_dev, inst, m2m_queue_init); inst 1186 drivers/media/platform/qcom/venus/venc.c if (IS_ERR(inst->m2m_ctx)) { inst 1187 drivers/media/platform/qcom/venus/venc.c ret = PTR_ERR(inst->m2m_ctx); inst 1191 drivers/media/platform/qcom/venus/venc.c v4l2_fh_init(&inst->fh, core->vdev_enc); inst 1193 drivers/media/platform/qcom/venus/venc.c inst->fh.ctrl_handler = &inst->ctrl_handler; inst 1194 drivers/media/platform/qcom/venus/venc.c v4l2_fh_add(&inst->fh); inst 1195 drivers/media/platform/qcom/venus/venc.c inst->fh.m2m_ctx = inst->m2m_ctx; inst 1196 drivers/media/platform/qcom/venus/venc.c file->private_data = &inst->fh; inst 1201 drivers/media/platform/qcom/venus/venc.c v4l2_m2m_release(inst->m2m_dev); inst 1203 drivers/media/platform/qcom/venus/venc.c hfi_session_destroy(inst); inst 1205 drivers/media/platform/qcom/venus/venc.c venc_ctrl_deinit(inst); inst 1209 drivers/media/platform/qcom/venus/venc.c kfree(inst); inst 1215 drivers/media/platform/qcom/venus/venc.c struct venus_inst *inst = to_inst(file); inst 1217 drivers/media/platform/qcom/venus/venc.c v4l2_m2m_ctx_release(inst->m2m_ctx); inst 1218 drivers/media/platform/qcom/venus/venc.c v4l2_m2m_release(inst->m2m_dev); inst 1219 drivers/media/platform/qcom/venus/venc.c venc_ctrl_deinit(inst); inst 1220 drivers/media/platform/qcom/venus/venc.c hfi_session_destroy(inst); inst 1221 drivers/media/platform/qcom/venus/venc.c mutex_destroy(&inst->lock); inst 1222 drivers/media/platform/qcom/venus/venc.c v4l2_fh_del(&inst->fh); inst 1223 drivers/media/platform/qcom/venus/venc.c v4l2_fh_exit(&inst->fh); inst 1225 drivers/media/platform/qcom/venus/venc.c pm_runtime_put_sync(inst->core->dev_enc); inst 1227 drivers/media/platform/qcom/venus/venc.c kfree(inst); inst 11 drivers/media/platform/qcom/venus/venc.h int venc_ctrl_init(struct venus_inst *inst); inst 12 drivers/media/platform/qcom/venus/venc.h void venc_ctrl_deinit(struct venus_inst *inst); inst 71 drivers/media/platform/qcom/venus/venc_ctrls.c struct venus_inst *inst = ctrl_to_inst(ctrl); inst 72 drivers/media/platform/qcom/venus/venc_ctrls.c struct venc_controls *ctr = &inst->controls.enc; inst 85 drivers/media/platform/qcom/venus/venc_ctrls.c mutex_lock(&inst->lock); inst 86 drivers/media/platform/qcom/venus/venc_ctrls.c if (inst->streamon_out && inst->streamon_cap) { inst 91 drivers/media/platform/qcom/venus/venc_ctrls.c ret = hfi_session_set_property(inst, ptype, &brate); inst 93 drivers/media/platform/qcom/venus/venc_ctrls.c mutex_unlock(&inst->lock); inst 97 drivers/media/platform/qcom/venus/venc_ctrls.c mutex_unlock(&inst->lock); inst 190 drivers/media/platform/qcom/venus/venc_ctrls.c mutex_lock(&inst->lock); inst 191 drivers/media/platform/qcom/venus/venc_ctrls.c if (inst->streamon_out && inst->streamon_cap) { inst 193 drivers/media/platform/qcom/venus/venc_ctrls.c ret = hfi_session_set_property(inst, ptype, &en); inst 196 drivers/media/platform/qcom/venus/venc_ctrls.c mutex_unlock(&inst->lock); inst 200 drivers/media/platform/qcom/venus/venc_ctrls.c mutex_unlock(&inst->lock); inst 213 drivers/media/platform/qcom/venus/venc_ctrls.c int venc_ctrl_init(struct venus_inst *inst) inst 217 drivers/media/platform/qcom/venus/venc_ctrls.c ret = v4l2_ctrl_handler_init(&inst->ctrl_handler, 30); inst 221 drivers/media/platform/qcom/venus/venc_ctrls.c v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &venc_ctrl_ops, inst 228 drivers/media/platform/qcom/venus/venc_ctrls.c v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &venc_ctrl_ops, inst 233 drivers/media/platform/qcom/venus/venc_ctrls.c v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &venc_ctrl_ops, inst 240 drivers/media/platform/qcom/venus/venc_ctrls.c v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &venc_ctrl_ops, inst 245 drivers/media/platform/qcom/venus/venc_ctrls.c v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &venc_ctrl_ops, inst 253 drivers/media/platform/qcom/venus/venc_ctrls.c v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &venc_ctrl_ops, inst 258 drivers/media/platform/qcom/venus/venc_ctrls.c v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &venc_ctrl_ops, inst 269 drivers/media/platform/qcom/venus/venc_ctrls.c v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &venc_ctrl_ops, inst 274 drivers/media/platform/qcom/venus/venc_ctrls.c v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &venc_ctrl_ops, inst 279 drivers/media/platform/qcom/venus/venc_ctrls.c v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &venc_ctrl_ops, inst 285 drivers/media/platform/qcom/venus/venc_ctrls.c v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &venc_ctrl_ops, inst 290 drivers/media/platform/qcom/venus/venc_ctrls.c v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &venc_ctrl_ops, inst 295 drivers/media/platform/qcom/venus/venc_ctrls.c v4l2_ctrl_new_std(&inst->ctrl_handler, &venc_ctrl_ops, inst 299 drivers/media/platform/qcom/venus/venc_ctrls.c v4l2_ctrl_new_std(&inst->ctrl_handler, &venc_ctrl_ops, inst 303 drivers/media/platform/qcom/venus/venc_ctrls.c v4l2_ctrl_new_std(&inst->ctrl_handler, &venc_ctrl_ops, inst 306 drivers/media/platform/qcom/venus/venc_ctrls.c v4l2_ctrl_new_std(&inst->ctrl_handler, &venc_ctrl_ops, inst 309 drivers/media/platform/qcom/venus/venc_ctrls.c v4l2_ctrl_new_std(&inst->ctrl_handler, &venc_ctrl_ops, inst 312 drivers/media/platform/qcom/venus/venc_ctrls.c v4l2_ctrl_new_std(&inst->ctrl_handler, &venc_ctrl_ops, inst 315 drivers/media/platform/qcom/venus/venc_ctrls.c v4l2_ctrl_new_std(&inst->ctrl_handler, &venc_ctrl_ops, inst 318 drivers/media/platform/qcom/venus/venc_ctrls.c v4l2_ctrl_new_std(&inst->ctrl_handler, &venc_ctrl_ops, inst 322 drivers/media/platform/qcom/venus/venc_ctrls.c v4l2_ctrl_new_std(&inst->ctrl_handler, &venc_ctrl_ops, inst 326 drivers/media/platform/qcom/venus/venc_ctrls.c v4l2_ctrl_new_std(&inst->ctrl_handler, &venc_ctrl_ops, inst 329 drivers/media/platform/qcom/venus/venc_ctrls.c v4l2_ctrl_new_std(&inst->ctrl_handler, &venc_ctrl_ops, inst 332 drivers/media/platform/qcom/venus/venc_ctrls.c v4l2_ctrl_new_std(&inst->ctrl_handler, &venc_ctrl_ops, inst 336 drivers/media/platform/qcom/venus/venc_ctrls.c v4l2_ctrl_new_std(&inst->ctrl_handler, &venc_ctrl_ops, inst 339 drivers/media/platform/qcom/venus/venc_ctrls.c v4l2_ctrl_new_std(&inst->ctrl_handler, &venc_ctrl_ops, inst 342 drivers/media/platform/qcom/venus/venc_ctrls.c v4l2_ctrl_new_std(&inst->ctrl_handler, &venc_ctrl_ops, inst 345 drivers/media/platform/qcom/venus/venc_ctrls.c v4l2_ctrl_new_std(&inst->ctrl_handler, &venc_ctrl_ops, inst 348 drivers/media/platform/qcom/venus/venc_ctrls.c v4l2_ctrl_new_std(&inst->ctrl_handler, &venc_ctrl_ops, inst 351 drivers/media/platform/qcom/venus/venc_ctrls.c v4l2_ctrl_new_std(&inst->ctrl_handler, &venc_ctrl_ops, inst 354 drivers/media/platform/qcom/venus/venc_ctrls.c ret = inst->ctrl_handler.error; inst 358 drivers/media/platform/qcom/venus/venc_ctrls.c ret = v4l2_ctrl_handler_setup(&inst->ctrl_handler); inst 364 drivers/media/platform/qcom/venus/venc_ctrls.c v4l2_ctrl_handler_free(&inst->ctrl_handler); inst 368 drivers/media/platform/qcom/venus/venc_ctrls.c void venc_ctrl_deinit(struct venus_inst *inst) inst 370 drivers/media/platform/qcom/venus/venc_ctrls.c v4l2_ctrl_handler_free(&inst->ctrl_handler); inst 1638 drivers/media/platform/ti-vpe/cal.c static int of_cal_create_instance(struct cal_ctx *ctx, int inst) inst 1656 drivers/media/platform/ti-vpe/cal.c ctx_dbg(3, ctx, "Scanning Port node for csi2 port: %d\n", inst); inst 1668 drivers/media/platform/ti-vpe/cal.c index, inst, regval); inst 1669 drivers/media/platform/ti-vpe/cal.c if ((regval == inst) && (index == inst)) { inst 1677 drivers/media/platform/ti-vpe/cal.c inst); inst 1682 drivers/media/platform/ti-vpe/cal.c inst); inst 1700 drivers/media/platform/ti-vpe/cal.c inst, sensor_node); inst 1707 drivers/media/platform/ti-vpe/cal.c ctx_dbg(3, ctx, "Port:%d v4l2-endpoint: CSI2\n", inst); inst 1720 drivers/media/platform/ti-vpe/cal.c inst, sensor_node); inst 1762 drivers/media/platform/ti-vpe/cal.c static struct cal_ctx *cal_create_instance(struct cal_dev *dev, int inst) inst 1776 drivers/media/platform/ti-vpe/cal.c "%s-%03d", CAL_MODULE_NAME, inst); inst 1790 drivers/media/platform/ti-vpe/cal.c ctx->cc = dev->cc[inst]; inst 1793 drivers/media/platform/ti-vpe/cal.c ctx->csi2_port = inst + 1; inst 1795 drivers/media/platform/ti-vpe/cal.c ret = of_cal_create_instance(ctx, inst); inst 651 drivers/media/platform/vivid/vivid-core.c static int vivid_create_instance(struct platform_device *pdev, int inst) inst 661 drivers/media/platform/vivid/vivid-core.c int ccs_cap = ccs_cap_mode[inst]; inst 662 drivers/media/platform/vivid/vivid-core.c int ccs_out = ccs_out_mode[inst]; inst 668 drivers/media/platform/vivid/vivid-core.c unsigned node_type = node_types[inst]; inst 669 drivers/media/platform/vivid/vivid-core.c unsigned int allocator = allocators[inst]; inst 682 drivers/media/platform/vivid/vivid-core.c dev->inst = inst; inst 690 drivers/media/platform/vivid/vivid-core.c "platform:%s-%03d", VIVID_MODULE_NAME, inst); inst 698 drivers/media/platform/vivid/vivid-core.c "%s-%03d", VIVID_MODULE_NAME, inst); inst 709 drivers/media/platform/vivid/vivid-core.c dev->multiplanar = multiplanar[inst] > 1; inst 714 drivers/media/platform/vivid/vivid-core.c dev->num_inputs = num_inputs[inst]; inst 720 drivers/media/platform/vivid/vivid-core.c dev->input_type[i] = (input_types[inst] >> (i * 2)) & 0x3; inst 732 drivers/media/platform/vivid/vivid-core.c dev->num_outputs = num_outputs[inst]; inst 738 drivers/media/platform/vivid/vivid-core.c dev->output_type[i] = ((output_types[inst] >> i) & 1) ? HDMI : SVID; inst 1092 drivers/media/platform/vivid/vivid-core.c alloc_ordered_workqueue("vivid-%03d-cec", WQ_MEM_RECLAIM, inst); inst 1106 drivers/media/platform/vivid/vivid-core.c "vivid-%03d-vid-cap", inst); inst 1131 drivers/media/platform/vivid/vivid-core.c "vivid-%03d-vid-out", inst); inst 1311 drivers/media/platform/vivid/vivid-core.c ret = video_register_device(vfd, VFL_TYPE_GRABBER, vid_cap_nr[inst]); inst 1362 drivers/media/platform/vivid/vivid-core.c ret = video_register_device(vfd, VFL_TYPE_GRABBER, vid_out_nr[inst]); inst 1372 drivers/media/platform/vivid/vivid-core.c "vivid-%03d-vbi-cap", inst); inst 1390 drivers/media/platform/vivid/vivid-core.c ret = video_register_device(vfd, VFL_TYPE_VBI, vbi_cap_nr[inst]); inst 1403 drivers/media/platform/vivid/vivid-core.c "vivid-%03d-vbi-out", inst); inst 1422 drivers/media/platform/vivid/vivid-core.c ret = video_register_device(vfd, VFL_TYPE_VBI, vbi_out_nr[inst]); inst 1435 drivers/media/platform/vivid/vivid-core.c "vivid-%03d-sdr-cap", inst); inst 1452 drivers/media/platform/vivid/vivid-core.c ret = video_register_device(vfd, VFL_TYPE_SDR, sdr_cap_nr[inst]); inst 1462 drivers/media/platform/vivid/vivid-core.c "vivid-%03d-rad-rx", inst); inst 1471 drivers/media/platform/vivid/vivid-core.c ret = video_register_device(vfd, VFL_TYPE_RADIO, radio_rx_nr[inst]); inst 1481 drivers/media/platform/vivid/vivid-core.c "vivid-%03d-rad-tx", inst); inst 1491 drivers/media/platform/vivid/vivid-core.c ret = video_register_device(vfd, VFL_TYPE_RADIO, radio_tx_nr[inst]); inst 1509 drivers/media/platform/vivid/vivid-core.c vivid_devs[inst] = dev; inst 125 drivers/media/platform/vivid/vivid-core.h unsigned inst; inst 3896 drivers/net/ethernet/broadcom/bnx2.c bnx2_reg_wr_ind(bp, cpu_reg->inst, 0); inst 7027 drivers/net/ethernet/broadcom/bnx2.h u32 inst; inst 21 drivers/net/ethernet/broadcom/bnx2_fw.h .inst = BNX2_COM_CPU_INSTRUCTION, inst 37 drivers/net/ethernet/broadcom/bnx2_fw.h .inst = BNX2_CP_CPU_INSTRUCTION, inst 53 drivers/net/ethernet/broadcom/bnx2_fw.h .inst = BNX2_RXP_CPU_INSTRUCTION, inst 69 drivers/net/ethernet/broadcom/bnx2_fw.h .inst = BNX2_TPAT_CPU_INSTRUCTION, inst 85 drivers/net/ethernet/broadcom/bnx2_fw.h .inst = BNX2_TXP_CPU_INSTRUCTION, inst 94 drivers/net/ethernet/marvell/octeontx2/af/common.h struct qmem *inst; inst 846 drivers/net/ethernet/marvell/octeontx2/af/rvu.c qmem_free(rvu->dev, aq->inst); inst 863 drivers/net/ethernet/marvell/octeontx2/af/rvu.c err = qmem_alloc(rvu->dev, &aq->inst, qsize, inst_size); inst 414 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c struct nix_aq_inst_s *inst) inst 427 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c memcpy((void *)(aq->inst->base + (head * aq->inst->entry_sz)), inst 428 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c (void *)inst, aq->inst->entry_sz); inst 456 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c struct nix_aq_inst_s inst; inst 535 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c memset(&inst, 0, sizeof(struct nix_aq_inst_s)); inst 536 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c inst.lf = nixlf; inst 537 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c inst.cindex = req->qidx; inst 538 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c inst.ctype = req->ctype; inst 539 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c inst.op = req->op; inst 543 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c inst.res_addr = (u64)aq->res->iova; inst 595 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c rc = nix_aq_enqueue_wait(rvu, block, &inst); inst 2691 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c NIX_AF_AQ_BASE, (u64)block->aq->inst->iova); inst 19 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c struct npa_aq_inst_s *inst) inst 32 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c memcpy((void *)(aq->inst->base + (head * aq->inst->entry_sz)), inst 33 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c (void *)inst, aq->inst->entry_sz); inst 61 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c struct npa_aq_inst_s inst; inst 87 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c memset(&inst, 0, sizeof(struct npa_aq_inst_s)); inst 88 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c inst.cindex = req->aura_id; inst 89 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c inst.lf = npalf; inst 90 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c inst.ctype = req->ctype; inst 91 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c inst.op = req->op; inst 95 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c inst.res_addr = (u64)aq->res->iova; inst 147 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c rc = npa_aq_enqueue_wait(rvu, block, &inst); inst 439 drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c NPA_AF_AQ_BASE, (u64)block->aq->inst->iova); inst 1160 drivers/net/ethernet/sun/cassini.c cas_hp_inst_t *inst; inst 1165 drivers/net/ethernet/sun/cassini.c while ((inst = firmware) && inst->note) { inst 1168 drivers/net/ethernet/sun/cassini.c val = CAS_BASE(HP_INSTR_RAM_HI_VAL, inst->val); inst 1169 drivers/net/ethernet/sun/cassini.c val |= CAS_BASE(HP_INSTR_RAM_HI_MASK, inst->mask); inst 1172 drivers/net/ethernet/sun/cassini.c val = CAS_BASE(HP_INSTR_RAM_MID_OUTARG, inst->outarg >> 10); inst 1173 drivers/net/ethernet/sun/cassini.c val |= CAS_BASE(HP_INSTR_RAM_MID_OUTOP, inst->outop); inst 1174 drivers/net/ethernet/sun/cassini.c val |= CAS_BASE(HP_INSTR_RAM_MID_FNEXT, inst->fnext); inst 1175 drivers/net/ethernet/sun/cassini.c val |= CAS_BASE(HP_INSTR_RAM_MID_FOFF, inst->foff); inst 1176 drivers/net/ethernet/sun/cassini.c val |= CAS_BASE(HP_INSTR_RAM_MID_SNEXT, inst->snext); inst 1177 drivers/net/ethernet/sun/cassini.c val |= CAS_BASE(HP_INSTR_RAM_MID_SOFF, inst->soff); inst 1178 drivers/net/ethernet/sun/cassini.c val |= CAS_BASE(HP_INSTR_RAM_MID_OP, inst->op); inst 1181 drivers/net/ethernet/sun/cassini.c val = CAS_BASE(HP_INSTR_RAM_LOW_OUTMASK, inst->outmask); inst 1182 drivers/net/ethernet/sun/cassini.c val |= CAS_BASE(HP_INSTR_RAM_LOW_OUTSHIFT, inst->outshift); inst 1183 drivers/net/ethernet/sun/cassini.c val |= CAS_BASE(HP_INSTR_RAM_LOW_OUTEN, inst->outenab); inst 1184 drivers/net/ethernet/sun/cassini.c val |= CAS_BASE(HP_INSTR_RAM_LOW_OUTARG, inst->outarg); inst 4701 drivers/net/wireless/intel/iwlegacy/4965-mac.c const void *inst, *data, *init, *init_data, *boot; inst 4745 drivers/net/wireless/intel/iwlegacy/4965-mac.c pieces->inst = src; inst 4924 drivers/net/wireless/intel/iwlegacy/4965-mac.c memcpy(il->ucode_code.v_addr, pieces.inst, pieces.inst_size); inst 145 drivers/phy/cadence/phy-cadence-sierra.c static int cdns_sierra_get_optional(struct cdns_sierra_inst *inst, inst 148 drivers/phy/cadence/phy-cadence-sierra.c if (of_property_read_u32(child, "reg", &inst->mlane)) inst 151 drivers/phy/cadence/phy-cadence-sierra.c if (of_property_read_u32(child, "cdns,num-lanes", &inst->num_lanes)) inst 154 drivers/phy/cadence/phy-cadence-sierra.c if (of_property_read_u32(child, "cdns,phy-type", &inst->phy_type)) inst 117 drivers/phy/mediatek/phy-mtk-xsphy.c struct xsphy_instance *inst) inst 119 drivers/phy/mediatek/phy-mtk-xsphy.c void __iomem *pbase = inst->port_base; inst 125 drivers/phy/mediatek/phy-mtk-xsphy.c if (inst->eye_src) inst 176 drivers/phy/mediatek/phy-mtk-xsphy.c inst->index, fm_out, calib_val, inst 192 drivers/phy/mediatek/phy-mtk-xsphy.c struct xsphy_instance *inst) inst 194 drivers/phy/mediatek/phy-mtk-xsphy.c void __iomem *pbase = inst->port_base; inst 208 drivers/phy/mediatek/phy-mtk-xsphy.c struct xsphy_instance *inst) inst 210 drivers/phy/mediatek/phy-mtk-xsphy.c void __iomem *pbase = inst->port_base; inst 211 drivers/phy/mediatek/phy-mtk-xsphy.c u32 index = inst->index; inst 227 drivers/phy/mediatek/phy-mtk-xsphy.c struct xsphy_instance *inst) inst 229 drivers/phy/mediatek/phy-mtk-xsphy.c void __iomem *pbase = inst->port_base; inst 230 drivers/phy/mediatek/phy-mtk-xsphy.c u32 index = inst->index; inst 246 drivers/phy/mediatek/phy-mtk-xsphy.c struct xsphy_instance *inst, inst 251 drivers/phy/mediatek/phy-mtk-xsphy.c tmp = readl(inst->port_base + XSP_U2PHYDTM1); inst 266 drivers/phy/mediatek/phy-mtk-xsphy.c writel(tmp, inst->port_base + XSP_U2PHYDTM1); inst 270 drivers/phy/mediatek/phy-mtk-xsphy.c struct xsphy_instance *inst) inst 272 drivers/phy/mediatek/phy-mtk-xsphy.c struct device *dev = &inst->phy->dev; inst 274 drivers/phy/mediatek/phy-mtk-xsphy.c switch (inst->type) { inst 277 drivers/phy/mediatek/phy-mtk-xsphy.c &inst->efuse_intr); inst 279 drivers/phy/mediatek/phy-mtk-xsphy.c &inst->eye_src); inst 281 drivers/phy/mediatek/phy-mtk-xsphy.c &inst->eye_vrt); inst 283 drivers/phy/mediatek/phy-mtk-xsphy.c &inst->eye_term); inst 285 drivers/phy/mediatek/phy-mtk-xsphy.c inst->efuse_intr, inst->eye_src, inst 286 drivers/phy/mediatek/phy-mtk-xsphy.c inst->eye_vrt, inst->eye_term); inst 290 drivers/phy/mediatek/phy-mtk-xsphy.c &inst->efuse_intr); inst 292 drivers/phy/mediatek/phy-mtk-xsphy.c &inst->efuse_tx_imp); inst 294 drivers/phy/mediatek/phy-mtk-xsphy.c &inst->efuse_rx_imp); inst 296 drivers/phy/mediatek/phy-mtk-xsphy.c inst->efuse_intr, inst->efuse_tx_imp, inst 297 drivers/phy/mediatek/phy-mtk-xsphy.c inst->efuse_rx_imp); inst 306 drivers/phy/mediatek/phy-mtk-xsphy.c struct xsphy_instance *inst) inst 308 drivers/phy/mediatek/phy-mtk-xsphy.c void __iomem *pbase = inst->port_base; inst 311 drivers/phy/mediatek/phy-mtk-xsphy.c if (inst->efuse_intr) { inst 314 drivers/phy/mediatek/phy-mtk-xsphy.c tmp |= P2A1_RG_INTR_CAL_VAL(inst->efuse_intr); inst 318 drivers/phy/mediatek/phy-mtk-xsphy.c if (inst->eye_src) { inst 321 drivers/phy/mediatek/phy-mtk-xsphy.c tmp |= P2A5_RG_HSTX_SRCTRL_VAL(inst->eye_src); inst 325 drivers/phy/mediatek/phy-mtk-xsphy.c if (inst->eye_vrt) { inst 328 drivers/phy/mediatek/phy-mtk-xsphy.c tmp |= P2A1_RG_VRT_SEL_VAL(inst->eye_vrt); inst 332 drivers/phy/mediatek/phy-mtk-xsphy.c if (inst->eye_term) { inst 335 drivers/phy/mediatek/phy-mtk-xsphy.c tmp |= P2A1_RG_TERM_SEL_VAL(inst->eye_term); inst 341 drivers/phy/mediatek/phy-mtk-xsphy.c struct xsphy_instance *inst) inst 343 drivers/phy/mediatek/phy-mtk-xsphy.c void __iomem *pbase = inst->port_base; inst 346 drivers/phy/mediatek/phy-mtk-xsphy.c if (inst->efuse_intr) { inst 349 drivers/phy/mediatek/phy-mtk-xsphy.c tmp |= RG_XTP_GLB_BIAS_INTR_CTRL_VAL(inst->efuse_intr); inst 353 drivers/phy/mediatek/phy-mtk-xsphy.c if (inst->efuse_tx_imp) { inst 356 drivers/phy/mediatek/phy-mtk-xsphy.c tmp |= RG_XTP_LN0_TX_IMPSEL_VAL(inst->efuse_tx_imp); inst 360 drivers/phy/mediatek/phy-mtk-xsphy.c if (inst->efuse_rx_imp) { inst 363 drivers/phy/mediatek/phy-mtk-xsphy.c tmp |= RG_XTP_LN0_RX_IMPSEL_VAL(inst->efuse_rx_imp); inst 370 drivers/phy/mediatek/phy-mtk-xsphy.c struct xsphy_instance *inst = phy_get_drvdata(phy); inst 374 drivers/phy/mediatek/phy-mtk-xsphy.c ret = clk_prepare_enable(inst->ref_clk); inst 380 drivers/phy/mediatek/phy-mtk-xsphy.c switch (inst->type) { inst 382 drivers/phy/mediatek/phy-mtk-xsphy.c u2_phy_instance_init(xsphy, inst); inst 383 drivers/phy/mediatek/phy-mtk-xsphy.c u2_phy_props_set(xsphy, inst); inst 386 drivers/phy/mediatek/phy-mtk-xsphy.c u3_phy_props_set(xsphy, inst); inst 390 drivers/phy/mediatek/phy-mtk-xsphy.c clk_disable_unprepare(inst->ref_clk); inst 399 drivers/phy/mediatek/phy-mtk-xsphy.c struct xsphy_instance *inst = phy_get_drvdata(phy); inst 402 drivers/phy/mediatek/phy-mtk-xsphy.c if (inst->type == PHY_TYPE_USB2) { inst 403 drivers/phy/mediatek/phy-mtk-xsphy.c u2_phy_instance_power_on(xsphy, inst); inst 404 drivers/phy/mediatek/phy-mtk-xsphy.c u2_phy_slew_rate_calibrate(xsphy, inst); inst 412 drivers/phy/mediatek/phy-mtk-xsphy.c struct xsphy_instance *inst = phy_get_drvdata(phy); inst 415 drivers/phy/mediatek/phy-mtk-xsphy.c if (inst->type == PHY_TYPE_USB2) inst 416 drivers/phy/mediatek/phy-mtk-xsphy.c u2_phy_instance_power_off(xsphy, inst); inst 423 drivers/phy/mediatek/phy-mtk-xsphy.c struct xsphy_instance *inst = phy_get_drvdata(phy); inst 425 drivers/phy/mediatek/phy-mtk-xsphy.c clk_disable_unprepare(inst->ref_clk); inst 431 drivers/phy/mediatek/phy-mtk-xsphy.c struct xsphy_instance *inst = phy_get_drvdata(phy); inst 434 drivers/phy/mediatek/phy-mtk-xsphy.c if (inst->type == PHY_TYPE_USB2) inst 435 drivers/phy/mediatek/phy-mtk-xsphy.c u2_phy_instance_set_mode(xsphy, inst, mode); inst 444 drivers/phy/mediatek/phy-mtk-xsphy.c struct xsphy_instance *inst = NULL; inst 455 drivers/phy/mediatek/phy-mtk-xsphy.c inst = xsphy->phys[index]; inst 459 drivers/phy/mediatek/phy-mtk-xsphy.c if (!inst) { inst 464 drivers/phy/mediatek/phy-mtk-xsphy.c inst->type = args->args[0]; inst 465 drivers/phy/mediatek/phy-mtk-xsphy.c if (!(inst->type == PHY_TYPE_USB2 || inst 466 drivers/phy/mediatek/phy-mtk-xsphy.c inst->type == PHY_TYPE_USB3)) { inst 467 drivers/phy/mediatek/phy-mtk-xsphy.c dev_err(dev, "unsupported phy type: %d\n", inst->type); inst 471 drivers/phy/mediatek/phy-mtk-xsphy.c phy_parse_property(xsphy, inst); inst 473 drivers/phy/mediatek/phy-mtk-xsphy.c return inst->phy; inst 535 drivers/phy/mediatek/phy-mtk-xsphy.c struct xsphy_instance *inst; inst 538 drivers/phy/mediatek/phy-mtk-xsphy.c inst = devm_kzalloc(dev, sizeof(*inst), GFP_KERNEL); inst 539 drivers/phy/mediatek/phy-mtk-xsphy.c if (!inst) { inst 544 drivers/phy/mediatek/phy-mtk-xsphy.c xsphy->phys[port] = inst; inst 560 drivers/phy/mediatek/phy-mtk-xsphy.c inst->port_base = devm_ioremap_resource(&phy->dev, &res); inst 561 drivers/phy/mediatek/phy-mtk-xsphy.c if (IS_ERR(inst->port_base)) { inst 563 drivers/phy/mediatek/phy-mtk-xsphy.c retval = PTR_ERR(inst->port_base); inst 567 drivers/phy/mediatek/phy-mtk-xsphy.c inst->phy = phy; inst 568 drivers/phy/mediatek/phy-mtk-xsphy.c inst->index = port; inst 569 drivers/phy/mediatek/phy-mtk-xsphy.c phy_set_drvdata(phy, inst); inst 572 drivers/phy/mediatek/phy-mtk-xsphy.c inst->ref_clk = devm_clk_get(&phy->dev, "ref"); inst 573 drivers/phy/mediatek/phy-mtk-xsphy.c if (IS_ERR(inst->ref_clk)) { inst 575 drivers/phy/mediatek/phy-mtk-xsphy.c retval = PTR_ERR(inst->ref_clk); inst 79 drivers/phy/rockchip/phy-rockchip-pcie.c static struct rockchip_pcie_phy *to_pcie_phy(struct phy_pcie_instance *inst) inst 81 drivers/phy/rockchip/phy-rockchip-pcie.c return container_of(inst, struct rockchip_pcie_phy, inst 82 drivers/phy/rockchip/phy-rockchip-pcie.c phys[inst->index]); inst 139 drivers/phy/rockchip/phy-rockchip-pcie.c struct phy_pcie_instance *inst = phy_get_drvdata(phy); inst 140 drivers/phy/rockchip/phy-rockchip-pcie.c struct rockchip_pcie_phy *rk_phy = to_pcie_phy(inst); inst 149 drivers/phy/rockchip/phy-rockchip-pcie.c PHY_LANE_IDLE_A_SHIFT + inst->index)); inst 170 drivers/phy/rockchip/phy-rockchip-pcie.c PHY_LANE_IDLE_A_SHIFT + inst->index)); inst 177 drivers/phy/rockchip/phy-rockchip-pcie.c struct phy_pcie_instance *inst = phy_get_drvdata(phy); inst 178 drivers/phy/rockchip/phy-rockchip-pcie.c struct rockchip_pcie_phy *rk_phy = to_pcie_phy(inst); inst 203 drivers/phy/rockchip/phy-rockchip-pcie.c PHY_LANE_IDLE_A_SHIFT + inst->index)); inst 287 drivers/phy/rockchip/phy-rockchip-pcie.c struct phy_pcie_instance *inst = phy_get_drvdata(phy); inst 288 drivers/phy/rockchip/phy-rockchip-pcie.c struct rockchip_pcie_phy *rk_phy = to_pcie_phy(inst); inst 323 drivers/phy/rockchip/phy-rockchip-pcie.c struct phy_pcie_instance *inst = phy_get_drvdata(phy); inst 324 drivers/phy/rockchip/phy-rockchip-pcie.c struct rockchip_pcie_phy *rk_phy = to_pcie_phy(inst); inst 124 drivers/phy/samsung/phy-exynos4210-usb2.c static void exynos4210_isol(struct samsung_usb2_phy_instance *inst, bool on) inst 126 drivers/phy/samsung/phy-exynos4210-usb2.c struct samsung_usb2_phy_driver *drv = inst->drv; inst 130 drivers/phy/samsung/phy-exynos4210-usb2.c switch (inst->cfg->id) { inst 146 drivers/phy/samsung/phy-exynos4210-usb2.c static void exynos4210_phy_pwr(struct samsung_usb2_phy_instance *inst, bool on) inst 148 drivers/phy/samsung/phy-exynos4210-usb2.c struct samsung_usb2_phy_driver *drv = inst->drv; inst 155 drivers/phy/samsung/phy-exynos4210-usb2.c switch (inst->cfg->id) { inst 207 drivers/phy/samsung/phy-exynos4210-usb2.c static int exynos4210_power_on(struct samsung_usb2_phy_instance *inst) inst 210 drivers/phy/samsung/phy-exynos4210-usb2.c exynos4210_phy_pwr(inst, 1); inst 211 drivers/phy/samsung/phy-exynos4210-usb2.c exynos4210_isol(inst, 0); inst 216 drivers/phy/samsung/phy-exynos4210-usb2.c static int exynos4210_power_off(struct samsung_usb2_phy_instance *inst) inst 218 drivers/phy/samsung/phy-exynos4210-usb2.c exynos4210_isol(inst, 1); inst 219 drivers/phy/samsung/phy-exynos4210-usb2.c exynos4210_phy_pwr(inst, 0); inst 165 drivers/phy/samsung/phy-exynos4x12-usb2.c static void exynos4x12_isol(struct samsung_usb2_phy_instance *inst, bool on) inst 167 drivers/phy/samsung/phy-exynos4x12-usb2.c struct samsung_usb2_phy_driver *drv = inst->drv; inst 171 drivers/phy/samsung/phy-exynos4x12-usb2.c switch (inst->cfg->id) { inst 192 drivers/phy/samsung/phy-exynos4x12-usb2.c static void exynos4x12_setup_clk(struct samsung_usb2_phy_instance *inst) inst 194 drivers/phy/samsung/phy-exynos4x12-usb2.c struct samsung_usb2_phy_driver *drv = inst->drv; inst 208 drivers/phy/samsung/phy-exynos4x12-usb2.c static void exynos4x12_phy_pwr(struct samsung_usb2_phy_instance *inst, bool on) inst 210 drivers/phy/samsung/phy-exynos4x12-usb2.c struct samsung_usb2_phy_driver *drv = inst->drv; inst 216 drivers/phy/samsung/phy-exynos4x12-usb2.c switch (inst->cfg->id) { inst 260 drivers/phy/samsung/phy-exynos4x12-usb2.c static void exynos4x12_power_on_int(struct samsung_usb2_phy_instance *inst) inst 262 drivers/phy/samsung/phy-exynos4x12-usb2.c if (inst->int_cnt++ > 0) inst 265 drivers/phy/samsung/phy-exynos4x12-usb2.c exynos4x12_setup_clk(inst); inst 266 drivers/phy/samsung/phy-exynos4x12-usb2.c exynos4x12_isol(inst, 0); inst 267 drivers/phy/samsung/phy-exynos4x12-usb2.c exynos4x12_phy_pwr(inst, 1); inst 270 drivers/phy/samsung/phy-exynos4x12-usb2.c static int exynos4x12_power_on(struct samsung_usb2_phy_instance *inst) inst 272 drivers/phy/samsung/phy-exynos4x12-usb2.c struct samsung_usb2_phy_driver *drv = inst->drv; inst 274 drivers/phy/samsung/phy-exynos4x12-usb2.c if (inst->ext_cnt++ > 0) inst 277 drivers/phy/samsung/phy-exynos4x12-usb2.c if (inst->cfg->id == EXYNOS4x12_HOST) { inst 284 drivers/phy/samsung/phy-exynos4x12-usb2.c if (inst->cfg->id == EXYNOS4x12_DEVICE && drv->cfg->has_mode_switch) inst 289 drivers/phy/samsung/phy-exynos4x12-usb2.c if (inst->cfg->id == EXYNOS4x12_HSIC0 || inst 290 drivers/phy/samsung/phy-exynos4x12-usb2.c inst->cfg->id == EXYNOS4x12_HSIC1) { inst 295 drivers/phy/samsung/phy-exynos4x12-usb2.c exynos4x12_power_on_int(inst); inst 300 drivers/phy/samsung/phy-exynos4x12-usb2.c static void exynos4x12_power_off_int(struct samsung_usb2_phy_instance *inst) inst 302 drivers/phy/samsung/phy-exynos4x12-usb2.c if (inst->int_cnt-- > 1) inst 305 drivers/phy/samsung/phy-exynos4x12-usb2.c exynos4x12_isol(inst, 1); inst 306 drivers/phy/samsung/phy-exynos4x12-usb2.c exynos4x12_phy_pwr(inst, 0); inst 309 drivers/phy/samsung/phy-exynos4x12-usb2.c static int exynos4x12_power_off(struct samsung_usb2_phy_instance *inst) inst 311 drivers/phy/samsung/phy-exynos4x12-usb2.c struct samsung_usb2_phy_driver *drv = inst->drv; inst 313 drivers/phy/samsung/phy-exynos4x12-usb2.c if (inst->ext_cnt-- > 1) inst 316 drivers/phy/samsung/phy-exynos4x12-usb2.c if (inst->cfg->id == EXYNOS4x12_DEVICE && drv->cfg->has_mode_switch) inst 321 drivers/phy/samsung/phy-exynos4x12-usb2.c if (inst->cfg->id == EXYNOS4x12_HOST) inst 324 drivers/phy/samsung/phy-exynos4x12-usb2.c if (inst->cfg->id == EXYNOS4x12_HSIC0 || inst 325 drivers/phy/samsung/phy-exynos4x12-usb2.c inst->cfg->id == EXYNOS4x12_HSIC1) { inst 330 drivers/phy/samsung/phy-exynos4x12-usb2.c exynos4x12_power_off_int(inst); inst 162 drivers/phy/samsung/phy-exynos5-usbdrd.c void (*phy_isol)(struct phy_usb_instance *inst, u32 on); inst 164 drivers/phy/samsung/phy-exynos5-usbdrd.c unsigned int (*set_refclk)(struct phy_usb_instance *inst); inst 214 drivers/phy/samsung/phy-exynos5-usbdrd.c struct exynos5_usbdrd_phy *to_usbdrd_phy(struct phy_usb_instance *inst) inst 216 drivers/phy/samsung/phy-exynos5-usbdrd.c return container_of((inst), struct exynos5_usbdrd_phy, inst 217 drivers/phy/samsung/phy-exynos5-usbdrd.c phys[(inst)->index]); inst 257 drivers/phy/samsung/phy-exynos5-usbdrd.c static void exynos5_usbdrd_phy_isol(struct phy_usb_instance *inst, inst 262 drivers/phy/samsung/phy-exynos5-usbdrd.c if (!inst->reg_pmu) inst 267 drivers/phy/samsung/phy-exynos5-usbdrd.c regmap_update_bits(inst->reg_pmu, inst->pmu_offset, inst 277 drivers/phy/samsung/phy-exynos5-usbdrd.c exynos5_usbdrd_pipe3_set_refclk(struct phy_usb_instance *inst) inst 280 drivers/phy/samsung/phy-exynos5-usbdrd.c struct exynos5_usbdrd_phy *phy_drd = to_usbdrd_phy(inst); inst 323 drivers/phy/samsung/phy-exynos5-usbdrd.c exynos5_usbdrd_utmi_set_refclk(struct phy_usb_instance *inst) inst 326 drivers/phy/samsung/phy-exynos5-usbdrd.c struct exynos5_usbdrd_phy *phy_drd = to_usbdrd_phy(inst); inst 385 drivers/phy/samsung/phy-exynos5-usbdrd.c struct phy_usb_instance *inst = phy_get_drvdata(phy); inst 386 drivers/phy/samsung/phy-exynos5-usbdrd.c struct exynos5_usbdrd_phy *phy_drd = to_usbdrd_phy(inst); inst 415 drivers/phy/samsung/phy-exynos5-usbdrd.c inst->phy_cfg->phy_init(phy_drd); inst 418 drivers/phy/samsung/phy-exynos5-usbdrd.c reg = inst->phy_cfg->set_refclk(inst); inst 447 drivers/phy/samsung/phy-exynos5-usbdrd.c struct phy_usb_instance *inst = phy_get_drvdata(phy); inst 448 drivers/phy/samsung/phy-exynos5-usbdrd.c struct exynos5_usbdrd_phy *phy_drd = to_usbdrd_phy(inst); inst 480 drivers/phy/samsung/phy-exynos5-usbdrd.c struct phy_usb_instance *inst = phy_get_drvdata(phy); inst 481 drivers/phy/samsung/phy-exynos5-usbdrd.c struct exynos5_usbdrd_phy *phy_drd = to_usbdrd_phy(inst); inst 511 drivers/phy/samsung/phy-exynos5-usbdrd.c inst->phy_cfg->phy_isol(inst, 0); inst 532 drivers/phy/samsung/phy-exynos5-usbdrd.c struct phy_usb_instance *inst = phy_get_drvdata(phy); inst 533 drivers/phy/samsung/phy-exynos5-usbdrd.c struct exynos5_usbdrd_phy *phy_drd = to_usbdrd_phy(inst); inst 538 drivers/phy/samsung/phy-exynos5-usbdrd.c inst->phy_cfg->phy_isol(inst, 1); inst 714 drivers/phy/samsung/phy-exynos5-usbdrd.c struct phy_usb_instance *inst = phy_get_drvdata(phy); inst 715 drivers/phy/samsung/phy-exynos5-usbdrd.c struct exynos5_usbdrd_phy *phy_drd = to_usbdrd_phy(inst); inst 175 drivers/phy/samsung/phy-exynos5250-usb2.c static void exynos5250_isol(struct samsung_usb2_phy_instance *inst, bool on) inst 177 drivers/phy/samsung/phy-exynos5250-usb2.c struct samsung_usb2_phy_driver *drv = inst->drv; inst 181 drivers/phy/samsung/phy-exynos5250-usb2.c switch (inst->cfg->id) { inst 197 drivers/phy/samsung/phy-exynos5250-usb2.c static int exynos5250_power_on(struct samsung_usb2_phy_instance *inst) inst 199 drivers/phy/samsung/phy-exynos5250-usb2.c struct samsung_usb2_phy_driver *drv = inst->drv; inst 206 drivers/phy/samsung/phy-exynos5250-usb2.c switch (inst->cfg->id) { inst 318 drivers/phy/samsung/phy-exynos5250-usb2.c exynos5250_isol(inst, 0); inst 323 drivers/phy/samsung/phy-exynos5250-usb2.c static int exynos5250_power_off(struct samsung_usb2_phy_instance *inst) inst 325 drivers/phy/samsung/phy-exynos5250-usb2.c struct samsung_usb2_phy_driver *drv = inst->drv; inst 330 drivers/phy/samsung/phy-exynos5250-usb2.c exynos5250_isol(inst, 1); inst 332 drivers/phy/samsung/phy-exynos5250-usb2.c switch (inst->cfg->id) { inst 89 drivers/phy/samsung/phy-s5pv210-usb2.c static void s5pv210_isol(struct samsung_usb2_phy_instance *inst, bool on) inst 91 drivers/phy/samsung/phy-s5pv210-usb2.c struct samsung_usb2_phy_driver *drv = inst->drv; inst 94 drivers/phy/samsung/phy-s5pv210-usb2.c switch (inst->cfg->id) { inst 109 drivers/phy/samsung/phy-s5pv210-usb2.c static void s5pv210_phy_pwr(struct samsung_usb2_phy_instance *inst, bool on) inst 111 drivers/phy/samsung/phy-s5pv210-usb2.c struct samsung_usb2_phy_driver *drv = inst->drv; inst 117 drivers/phy/samsung/phy-s5pv210-usb2.c switch (inst->cfg->id) { inst 149 drivers/phy/samsung/phy-s5pv210-usb2.c static int s5pv210_power_on(struct samsung_usb2_phy_instance *inst) inst 151 drivers/phy/samsung/phy-s5pv210-usb2.c s5pv210_isol(inst, 0); inst 152 drivers/phy/samsung/phy-s5pv210-usb2.c s5pv210_phy_pwr(inst, 1); inst 157 drivers/phy/samsung/phy-s5pv210-usb2.c static int s5pv210_power_off(struct samsung_usb2_phy_instance *inst) inst 159 drivers/phy/samsung/phy-s5pv210-usb2.c s5pv210_phy_pwr(inst, 0); inst 160 drivers/phy/samsung/phy-s5pv210-usb2.c s5pv210_isol(inst, 1); inst 22 drivers/phy/samsung/phy-samsung-usb2.c struct samsung_usb2_phy_instance *inst = phy_get_drvdata(phy); inst 23 drivers/phy/samsung/phy-samsung-usb2.c struct samsung_usb2_phy_driver *drv = inst->drv; inst 27 drivers/phy/samsung/phy-samsung-usb2.c inst->cfg->label); inst 41 drivers/phy/samsung/phy-samsung-usb2.c if (inst->cfg->power_on) { inst 43 drivers/phy/samsung/phy-samsung-usb2.c ret = inst->cfg->power_on(inst); inst 64 drivers/phy/samsung/phy-samsung-usb2.c struct samsung_usb2_phy_instance *inst = phy_get_drvdata(phy); inst 65 drivers/phy/samsung/phy-samsung-usb2.c struct samsung_usb2_phy_driver *drv = inst->drv; inst 69 drivers/phy/samsung/phy-samsung-usb2.c inst->cfg->label); inst 70 drivers/phy/samsung/phy-samsung-usb2.c if (inst->cfg->power_off) { inst 72 drivers/phy/samsung/phy-samsung-usb2.c ret = inst->cfg->power_off(inst); inst 155 drivers/scsi/arm/fas216.c unsigned char is, stat, inst; inst 159 drivers/scsi/arm/fas216.c inst = fas216_readb(info, REG_INST); inst 165 drivers/scsi/arm/fas216.c fas216_readb(info, REG_CMD), stat, inst, is, inst 1632 drivers/scsi/arm/fas216.c unsigned char inst, is, stat; inst 1639 drivers/scsi/arm/fas216.c inst = fas216_readb(info, REG_INST); inst 1641 drivers/scsi/arm/fas216.c add_debug_list(stat, is, inst, info->scsi.phase); inst 1644 drivers/scsi/arm/fas216.c if (inst & INST_BUSRESET) { inst 1648 drivers/scsi/arm/fas216.c } else if (inst & INST_ILLEGALCMD) { inst 1652 drivers/scsi/arm/fas216.c } else if (inst & INST_DISCONNECT) inst 1654 drivers/scsi/arm/fas216.c else if (inst & INST_RESELECTED) /* reselected */ inst 1656 drivers/scsi/arm/fas216.c else if (inst & INST_BUSSERVICE) /* bus service request */ inst 1658 drivers/scsi/arm/fas216.c else if (inst & INST_FUNCDONE) /* function done */ inst 1663 drivers/scsi/arm/fas216.c fas216_drv_phase(info), inst, is, stat); inst 794 drivers/scsi/bfa/bfa_defs.h struct bfa_ablk_cfg_inst_s inst[BFA_ABLK_MAX]; inst 3267 drivers/scsi/bfa/bfa_ioc.c cfg_inst = &cfg->inst[i]; inst 4194 drivers/scsi/bfa/bfa_ioc.c int inst, int type) inst 4204 drivers/scsi/bfa/bfa_ioc.c aen_entry->aen_data.audit.partition_inst = inst; inst 279 drivers/soc/ti/knav_qmss.h struct knav_queue_inst *inst; inst 314 drivers/soc/ti/knav_qmss.h struct knav_queue_inst *inst); inst 316 drivers/soc/ti/knav_qmss.h struct knav_queue_inst *inst, unsigned flags); inst 318 drivers/soc/ti/knav_qmss.h struct knav_queue_inst *inst); inst 320 drivers/soc/ti/knav_qmss.h struct knav_queue_inst *inst, bool enabled); inst 385 drivers/soc/ti/knav_qmss.h extern void knav_queue_notify(struct knav_queue_inst *inst); inst 27 drivers/soc/ti/knav_qmss_acc.c struct knav_queue_inst *inst; inst 34 drivers/soc/ti/knav_qmss_acc.c inst = knav_range_offset_to_inst(kdev, range, inst 36 drivers/soc/ti/knav_qmss_acc.c if (inst->notify_needed) { inst 37 drivers/soc/ti/knav_qmss_acc.c inst->notify_needed = 0; inst 40 drivers/soc/ti/knav_qmss_acc.c knav_queue_notify(inst); inst 45 drivers/soc/ti/knav_qmss_acc.c inst = knav_range_offset_to_inst(kdev, range, queue); inst 48 drivers/soc/ti/knav_qmss_acc.c knav_queue_notify(inst); inst 412 drivers/soc/ti/knav_qmss_acc.c struct knav_queue_inst *inst, unsigned flags) inst 414 drivers/soc/ti/knav_qmss_acc.c unsigned id = inst->id - range->queue_base; inst 420 drivers/soc/ti/knav_qmss_acc.c struct knav_queue_inst *inst) inst 422 drivers/soc/ti/knav_qmss_acc.c unsigned id = inst->id - range->queue_base; inst 55 drivers/soc/ti/knav_qmss_queue.c #define for_each_handle_rcu(qh, inst) \ inst 56 drivers/soc/ti/knav_qmss_queue.c list_for_each_entry_rcu(qh, &inst->handles, list) inst 58 drivers/soc/ti/knav_qmss_queue.c #define for_each_instance(idx, inst, kdev) \ inst 59 drivers/soc/ti/knav_qmss_queue.c for (idx = 0, inst = kdev->instances; \ inst 61 drivers/soc/ti/knav_qmss_queue.c idx++, inst = knav_queue_idx_to_inst(kdev, idx)) inst 81 drivers/soc/ti/knav_qmss_queue.c void knav_queue_notify(struct knav_queue_inst *inst) inst 85 drivers/soc/ti/knav_qmss_queue.c if (!inst) inst 89 drivers/soc/ti/knav_qmss_queue.c for_each_handle_rcu(qh, inst) { inst 103 drivers/soc/ti/knav_qmss_queue.c struct knav_queue_inst *inst = _instdata; inst 105 drivers/soc/ti/knav_qmss_queue.c knav_queue_notify(inst); inst 110 drivers/soc/ti/knav_qmss_queue.c struct knav_queue_inst *inst) inst 112 drivers/soc/ti/knav_qmss_queue.c unsigned queue = inst->id - range->queue_base; inst 118 drivers/soc/ti/knav_qmss_queue.c inst->irq_name, inst); inst 134 drivers/soc/ti/knav_qmss_queue.c static void knav_queue_free_irq(struct knav_queue_inst *inst) inst 136 drivers/soc/ti/knav_qmss_queue.c struct knav_range_info *range = inst->range; inst 137 drivers/soc/ti/knav_qmss_queue.c unsigned queue = inst->id - inst->range->queue_base; inst 143 drivers/soc/ti/knav_qmss_queue.c free_irq(irq, inst); inst 147 drivers/soc/ti/knav_qmss_queue.c static inline bool knav_queue_is_busy(struct knav_queue_inst *inst) inst 149 drivers/soc/ti/knav_qmss_queue.c return !list_empty(&inst->handles); inst 152 drivers/soc/ti/knav_qmss_queue.c static inline bool knav_queue_is_reserved(struct knav_queue_inst *inst) inst 154 drivers/soc/ti/knav_qmss_queue.c return inst->range->flags & RANGE_RESERVED; inst 157 drivers/soc/ti/knav_qmss_queue.c static inline bool knav_queue_is_shared(struct knav_queue_inst *inst) inst 162 drivers/soc/ti/knav_qmss_queue.c for_each_handle_rcu(tmp, inst) { inst 172 drivers/soc/ti/knav_qmss_queue.c static inline bool knav_queue_match_type(struct knav_queue_inst *inst, inst 176 drivers/soc/ti/knav_qmss_queue.c (inst->range->flags & RANGE_HAS_IRQ)) { inst 179 drivers/soc/ti/knav_qmss_queue.c (inst->range->flags & RANGE_HAS_ACCUMULATOR)) { inst 182 drivers/soc/ti/knav_qmss_queue.c !(inst->range->flags & inst 192 drivers/soc/ti/knav_qmss_queue.c struct knav_queue_inst *inst; inst 195 drivers/soc/ti/knav_qmss_queue.c for_each_instance(idx, inst, kdev) { inst 196 drivers/soc/ti/knav_qmss_queue.c if (inst->id == id) inst 197 drivers/soc/ti/knav_qmss_queue.c return inst; inst 212 drivers/soc/ti/knav_qmss_queue.c static struct knav_queue *__knav_queue_open(struct knav_queue_inst *inst, inst 219 drivers/soc/ti/knav_qmss_queue.c qh = devm_kzalloc(inst->kdev->dev, sizeof(*qh), GFP_KERNEL); inst 230 drivers/soc/ti/knav_qmss_queue.c qh->inst = inst; inst 231 drivers/soc/ti/knav_qmss_queue.c id = inst->id - inst->qmgr->start_queue; inst 232 drivers/soc/ti/knav_qmss_queue.c qh->reg_push = &inst->qmgr->reg_push[id]; inst 233 drivers/soc/ti/knav_qmss_queue.c qh->reg_pop = &inst->qmgr->reg_pop[id]; inst 234 drivers/soc/ti/knav_qmss_queue.c qh->reg_peek = &inst->qmgr->reg_peek[id]; inst 237 drivers/soc/ti/knav_qmss_queue.c if (!knav_queue_is_busy(inst)) { inst 238 drivers/soc/ti/knav_qmss_queue.c struct knav_range_info *range = inst->range; inst 240 drivers/soc/ti/knav_qmss_queue.c inst->name = kstrndup(name, KNAV_NAME_SIZE - 1, GFP_KERNEL); inst 242 drivers/soc/ti/knav_qmss_queue.c ret = range->ops->open_queue(range, inst, flags); inst 247 drivers/soc/ti/knav_qmss_queue.c list_add_tail_rcu(&qh->list, &inst->handles); inst 253 drivers/soc/ti/knav_qmss_queue.c devm_kfree(inst->kdev->dev, qh); inst 260 drivers/soc/ti/knav_qmss_queue.c struct knav_queue_inst *inst; inst 266 drivers/soc/ti/knav_qmss_queue.c inst = knav_queue_find_by_id(id); inst 267 drivers/soc/ti/knav_qmss_queue.c if (!inst) inst 271 drivers/soc/ti/knav_qmss_queue.c if (!(flags & KNAV_QUEUE_SHARED) && knav_queue_is_busy(inst)) inst 276 drivers/soc/ti/knav_qmss_queue.c (knav_queue_is_busy(inst) && !knav_queue_is_shared(inst))) inst 279 drivers/soc/ti/knav_qmss_queue.c qh = __knav_queue_open(inst, name, flags); inst 290 drivers/soc/ti/knav_qmss_queue.c struct knav_queue_inst *inst; inst 296 drivers/soc/ti/knav_qmss_queue.c for_each_instance(idx, inst, kdev) { inst 297 drivers/soc/ti/knav_qmss_queue.c if (knav_queue_is_reserved(inst)) inst 299 drivers/soc/ti/knav_qmss_queue.c if (!knav_queue_match_type(inst, type)) inst 301 drivers/soc/ti/knav_qmss_queue.c if (knav_queue_is_busy(inst)) inst 303 drivers/soc/ti/knav_qmss_queue.c qh = __knav_queue_open(inst, name, flags); inst 312 drivers/soc/ti/knav_qmss_queue.c static void knav_queue_set_notify(struct knav_queue_inst *inst, bool enabled) inst 314 drivers/soc/ti/knav_qmss_queue.c struct knav_range_info *range = inst->range; inst 317 drivers/soc/ti/knav_qmss_queue.c range->ops->set_notify(range, inst, enabled); inst 322 drivers/soc/ti/knav_qmss_queue.c struct knav_queue_inst *inst = qh->inst; inst 334 drivers/soc/ti/knav_qmss_queue.c first = (atomic_inc_return(&inst->num_notifiers) == 1); inst 336 drivers/soc/ti/knav_qmss_queue.c knav_queue_set_notify(inst, true); inst 343 drivers/soc/ti/knav_qmss_queue.c struct knav_queue_inst *inst = qh->inst; inst 350 drivers/soc/ti/knav_qmss_queue.c last = (atomic_dec_return(&inst->num_notifiers) == 0); inst 352 drivers/soc/ti/knav_qmss_queue.c knav_queue_set_notify(inst, false); inst 365 drivers/soc/ti/knav_qmss_queue.c if (!(qh->inst->range->flags & (RANGE_HAS_ACCUMULATOR | RANGE_HAS_IRQ))) inst 381 drivers/soc/ti/knav_qmss_queue.c struct knav_queue_inst *inst, inst 387 drivers/soc/ti/knav_qmss_queue.c queue = inst->id - range->queue_base; inst 397 drivers/soc/ti/knav_qmss_queue.c struct knav_queue_inst *inst, unsigned flags) inst 399 drivers/soc/ti/knav_qmss_queue.c return knav_queue_setup_irq(range, inst); inst 403 drivers/soc/ti/knav_qmss_queue.c struct knav_queue_inst *inst) inst 405 drivers/soc/ti/knav_qmss_queue.c knav_queue_free_irq(inst); inst 419 drivers/soc/ti/knav_qmss_queue.c struct knav_queue_inst *inst = qh->inst; inst 422 drivers/soc/ti/knav_qmss_queue.c atomic_read(&inst->desc_count); inst 426 drivers/soc/ti/knav_qmss_queue.c struct knav_queue_inst *inst) inst 428 drivers/soc/ti/knav_qmss_queue.c struct knav_device *kdev = inst->kdev; inst 437 drivers/soc/ti/knav_qmss_queue.c if (!knav_queue_is_busy(inst)) inst 441 drivers/soc/ti/knav_qmss_queue.c kdev->base_id + inst->id, inst->name); inst 442 drivers/soc/ti/knav_qmss_queue.c for_each_handle_rcu(qh, inst) { inst 464 drivers/soc/ti/knav_qmss_queue.c struct knav_queue_inst *inst; inst 471 drivers/soc/ti/knav_qmss_queue.c for_each_instance(idx, inst, kdev) inst 472 drivers/soc/ti/knav_qmss_queue.c knav_queue_debug_show_instance(s, inst); inst 511 drivers/soc/ti/knav_qmss_queue.c struct knav_queue_inst *inst = qh->inst; inst 512 drivers/soc/ti/knav_qmss_queue.c unsigned id = inst->id - inst->qmgr->start_queue; inst 514 drivers/soc/ti/knav_qmss_queue.c atomic_set(&inst->desc_count, 0); inst 515 drivers/soc/ti/knav_qmss_queue.c writel_relaxed(0, &inst->qmgr->reg_push[id].ptr_size_thresh); inst 560 drivers/soc/ti/knav_qmss_queue.c struct knav_queue_inst *inst = qh->inst; inst 569 drivers/soc/ti/knav_qmss_queue.c if (!knav_queue_is_busy(inst)) { inst 570 drivers/soc/ti/knav_qmss_queue.c struct knav_range_info *range = inst->range; inst 573 drivers/soc/ti/knav_qmss_queue.c range->ops->close_queue(range, inst); inst 576 drivers/soc/ti/knav_qmss_queue.c devm_kfree(inst->kdev->dev, qh); inst 597 drivers/soc/ti/knav_qmss_queue.c ret = qh->inst->kdev->base_id + qh->inst->id; inst 664 drivers/soc/ti/knav_qmss_queue.c struct knav_queue_inst *inst = qh->inst; inst 669 drivers/soc/ti/knav_qmss_queue.c if (inst->descs) { inst 670 drivers/soc/ti/knav_qmss_queue.c if (unlikely(atomic_dec_return(&inst->desc_count) < 0)) { inst 671 drivers/soc/ti/knav_qmss_queue.c atomic_inc(&inst->desc_count); inst 674 drivers/soc/ti/knav_qmss_queue.c idx = atomic_inc_return(&inst->desc_head); inst 676 drivers/soc/ti/knav_qmss_queue.c val = inst->descs[idx]; inst 1689 drivers/soc/ti/knav_qmss_queue.c struct knav_queue_inst *inst, inst 1693 drivers/soc/ti/knav_qmss_queue.c inst->qmgr = knav_find_qmgr(id); inst 1694 drivers/soc/ti/knav_qmss_queue.c if (!inst->qmgr) inst 1697 drivers/soc/ti/knav_qmss_queue.c INIT_LIST_HEAD(&inst->handles); inst 1698 drivers/soc/ti/knav_qmss_queue.c inst->kdev = kdev; inst 1699 drivers/soc/ti/knav_qmss_queue.c inst->range = range; inst 1700 drivers/soc/ti/knav_qmss_queue.c inst->irq_num = -1; inst 1701 drivers/soc/ti/knav_qmss_queue.c inst->id = id; inst 1703 drivers/soc/ti/knav_qmss_queue.c inst->irq_name = kstrndup(irq_name, sizeof(irq_name), GFP_KERNEL); inst 1706 drivers/soc/ti/knav_qmss_queue.c return range->ops->init_queue(range, inst); inst 96 drivers/spi/atmel-quadspi.c #define QSPI_ICR_INST(inst) (((inst) << 0) & QSPI_ICR_INST_MASK) inst 62 drivers/spi/spi-axi-spi-engine.c #define SPI_ENGINE_CMD(inst, arg1, arg2) \ inst 63 drivers/spi/spi-axi-spi-engine.c (((inst) << 12) | ((arg1) << 8) | (arg2)) inst 151 drivers/target/iscsi/iscsi_target_stat.c CONFIGFS_ATTR_RO(iscsi_stat_instance_, inst); inst 231 drivers/target/iscsi/iscsi_target_stat.c CONFIGFS_ATTR_RO(iscsi_stat_sess_err_, inst); inst 364 drivers/target/iscsi/iscsi_target_stat.c CONFIGFS_ATTR_RO(iscsi_stat_tgt_attr_, inst); inst 496 drivers/target/iscsi/iscsi_target_stat.c CONFIGFS_ATTR_RO(iscsi_stat_login_, inst); inst 561 drivers/target/iscsi/iscsi_target_stat.c CONFIGFS_ATTR_RO(iscsi_stat_logout_, inst); inst 773 drivers/target/iscsi/iscsi_target_stat.c CONFIGFS_ATTR_RO(iscsi_stat_sess_, inst); inst 73 drivers/target/target_core_stat.c CONFIGFS_ATTR_RO(target_stat_, inst); inst 162 drivers/target/target_core_stat.c CONFIGFS_ATTR_RO(target_stat_tgt_, inst); inst 345 drivers/target/target_core_stat.c CONFIGFS_ATTR_RO(target_stat_lu_, inst); inst 497 drivers/target/target_core_stat.c CONFIGFS_ATTR_RO(target_stat_port_, inst); inst 673 drivers/target/target_core_stat.c CONFIGFS_ATTR_RO(target_stat_tgt_port_, inst); inst 801 drivers/target/target_core_stat.c CONFIGFS_ATTR_RO(target_stat_transport_, inst); inst 1145 drivers/target/target_core_stat.c CONFIGFS_ATTR_RO(target_stat_auth_, inst); inst 1333 drivers/target/target_core_stat.c CONFIGFS_ATTR_RO(target_stat_iport_, inst); inst 1023 drivers/tty/serial/sunsab.c static int inst; inst 1027 drivers/tty/serial/sunsab.c up = &sunsab_ports[inst * 2]; inst 1031 drivers/tty/serial/sunsab.c (inst * 2) + 0); inst 1037 drivers/tty/serial/sunsab.c (inst * 2) + 1); inst 1059 drivers/tty/serial/sunsab.c inst++; inst 1406 drivers/tty/serial/sunzilog.c int inst; inst 1417 drivers/tty/serial/sunzilog.c inst = uart_chip_count + kbm_inst; inst 1419 drivers/tty/serial/sunzilog.c inst = uart_inst; inst 1421 drivers/tty/serial/sunzilog.c sunzilog_chip_regs[inst] = of_ioremap(&op->resource[0], 0, inst 1424 drivers/tty/serial/sunzilog.c if (!sunzilog_chip_regs[inst]) inst 1427 drivers/tty/serial/sunzilog.c rp = sunzilog_chip_regs[inst]; inst 1432 drivers/tty/serial/sunzilog.c up = &sunzilog_port_table[inst * 2]; inst 1444 drivers/tty/serial/sunzilog.c up[0].port.line = (inst * 2) + 0; inst 1461 drivers/tty/serial/sunzilog.c up[1].port.line = (inst * 2) + 1; inst 45 drivers/visorbus/visorchannel.c guid_t inst; inst 675 drivers/visorbus/visorchipset.c guid_copy(&dev_info->inst, &cmd->create_device.dev_inst_guid); inst 38 include/crypto/algapi.h void (*free)(struct crypto_instance *inst); inst 61 include/crypto/algapi.h void (*free)(struct crypto_instance *inst); inst 70 include/crypto/algapi.h struct crypto_instance *inst; inst 147 include/crypto/algapi.h struct crypto_instance *inst); inst 148 include/crypto/algapi.h int crypto_unregister_instance(struct crypto_instance *inst); inst 151 include/crypto/algapi.h struct crypto_instance *inst, u32 mask); inst 153 include/crypto/algapi.h struct crypto_instance *inst, inst 164 include/crypto/algapi.h struct crypto_instance *inst) inst 166 include/crypto/algapi.h spawn->inst = inst; inst 183 include/crypto/algapi.h int crypto_inst_setname(struct crypto_instance *inst, const char *name, inst 268 include/crypto/algapi.h static inline void *crypto_instance_ctx(struct crypto_instance *inst) inst 270 include/crypto/algapi.h return inst->__ctx; inst 19 include/crypto/internal/aead.h void (*free)(struct aead_instance *inst); inst 43 include/crypto/internal/aead.h struct aead_instance *inst) inst 45 include/crypto/internal/aead.h return container_of(&inst->alg.base, struct crypto_instance, alg); inst 48 include/crypto/internal/aead.h static inline struct aead_instance *aead_instance(struct crypto_instance *inst) inst 50 include/crypto/internal/aead.h return container_of(&inst->alg, struct aead_instance, alg.base); inst 58 include/crypto/internal/aead.h static inline void *aead_instance_ctx(struct aead_instance *inst) inst 60 include/crypto/internal/aead.h return crypto_instance_ctx(aead_crypto_instance(inst)); inst 85 include/crypto/internal/aead.h struct crypto_aead_spawn *spawn, struct crypto_instance *inst) inst 87 include/crypto/internal/aead.h crypto_set_spawn(&spawn->base, inst); inst 183 include/crypto/internal/aead.h struct aead_instance *inst); inst 14 include/crypto/internal/akcipher.h void (*free)(struct akcipher_instance *inst); inst 59 include/crypto/internal/akcipher.h struct akcipher_instance *inst) inst 61 include/crypto/internal/akcipher.h return container_of(&inst->alg.base, struct crypto_instance, alg); inst 65 include/crypto/internal/akcipher.h struct crypto_instance *inst) inst 67 include/crypto/internal/akcipher.h return container_of(&inst->alg, struct akcipher_instance, alg.base); inst 76 include/crypto/internal/akcipher.h static inline void *akcipher_instance_ctx(struct akcipher_instance *inst) inst 78 include/crypto/internal/akcipher.h return crypto_instance_ctx(akcipher_crypto_instance(inst)); inst 83 include/crypto/internal/akcipher.h struct crypto_instance *inst) inst 85 include/crypto/internal/akcipher.h crypto_set_spawn(&spawn->base, inst); inst 138 include/crypto/internal/akcipher.h struct akcipher_instance *inst); inst 24 include/crypto/internal/geniv.h void aead_geniv_free(struct aead_instance *inst); inst 77 include/crypto/internal/hash.h struct ahash_instance *inst); inst 78 include/crypto/internal/hash.h void ahash_free_instance(struct crypto_instance *inst); inst 92 include/crypto/internal/hash.h struct crypto_instance *inst); inst 106 include/crypto/internal/hash.h struct shash_instance *inst); inst 107 include/crypto/internal/hash.h void shash_free_instance(struct crypto_instance *inst); inst 111 include/crypto/internal/hash.h struct crypto_instance *inst); inst 144 include/crypto/internal/hash.h struct ahash_instance *inst) inst 146 include/crypto/internal/hash.h return container_of(&inst->alg.halg.base, struct crypto_instance, alg); inst 150 include/crypto/internal/hash.h struct crypto_instance *inst) inst 152 include/crypto/internal/hash.h return container_of(&inst->alg, struct ahash_instance, alg.halg.base); inst 155 include/crypto/internal/hash.h static inline void *ahash_instance_ctx(struct ahash_instance *inst) inst 157 include/crypto/internal/hash.h return crypto_instance_ctx(ahash_crypto_instance(inst)); inst 205 include/crypto/internal/hash.h struct shash_instance *inst) inst 207 include/crypto/internal/hash.h return container_of(&inst->alg.base, struct crypto_instance, alg); inst 211 include/crypto/internal/hash.h struct crypto_instance *inst) inst 213 include/crypto/internal/hash.h return container_of(__crypto_shash_alg(&inst->alg), inst 217 include/crypto/internal/hash.h static inline void *shash_instance_ctx(struct shash_instance *inst) inst 219 include/crypto/internal/hash.h return crypto_instance_ctx(shash_crypto_instance(inst)); inst 20 include/crypto/internal/skcipher.h void (*free)(struct skcipher_instance *inst); inst 69 include/crypto/internal/skcipher.h struct skcipher_instance *inst) inst 71 include/crypto/internal/skcipher.h return &inst->s.base; inst 81 include/crypto/internal/skcipher.h static inline void *skcipher_instance_ctx(struct skcipher_instance *inst) inst 83 include/crypto/internal/skcipher.h return crypto_instance_ctx(skcipher_crypto_instance(inst)); inst 92 include/crypto/internal/skcipher.h struct crypto_skcipher_spawn *spawn, struct crypto_instance *inst) inst 94 include/crypto/internal/skcipher.h crypto_set_spawn(&spawn->base, inst); inst 134 include/crypto/internal/skcipher.h struct skcipher_instance *inst); inst 259 include/linux/arm-smccc.h #define __arm_smccc_1_1(inst, ...) \ inst 262 include/linux/arm-smccc.h asm volatile(inst "\n" \ inst 61 include/linux/ceph/messenger.h struct ceph_entity_inst inst; /* my name+address */ inst 69 include/linux/mcb.h int inst; inst 583 include/linux/usb/composite.h struct usb_function *(*alloc_func)(struct usb_function_instance *inst); inst 590 include/linux/usb/composite.h int (*set_inst_name)(struct usb_function_instance *inst, inst 592 include/linux/usb/composite.h void (*free_func_inst)(struct usb_function_instance *inst); inst 244 include/linux/visorbus.h guid_t inst; inst 256 include/sound/opl3.h struct fm_instrument inst; inst 1931 kernel/kprobes.c struct kretprobe_instance *inst; inst 1964 kernel/kprobes.c inst = kmalloc(sizeof(struct kretprobe_instance) + inst 1966 kernel/kprobes.c if (inst == NULL) { inst 1970 kernel/kprobes.c INIT_HLIST_NODE(&inst->hlist); inst 1971 kernel/kprobes.c hlist_add_head(&inst->hlist, &rp->free_instances); inst 628 net/ceph/ceph_common.c return &client->msgr.inst.addr; inst 44 net/ceph/debugfs.c struct ceph_entity_inst *inst = inst 48 net/ceph/debugfs.c ENTITY_NAME(inst->name), inst 49 net/ceph/debugfs.c ceph_pr_addr(&inst->addr)); inst 224 net/ceph/messenger.c memcpy(&msgr->my_enc_addr, &msgr->inst.addr, sizeof(msgr->my_enc_addr)); inst 2040 net/ceph/messenger.c if (addr_is_blank(&con->msgr->inst.addr)) { inst 2041 net/ceph/messenger.c int port = addr_port(&con->msgr->inst.addr); inst 2043 net/ceph/messenger.c memcpy(&con->msgr->inst.addr.in_addr, inst 2046 net/ceph/messenger.c addr_set_port(&con->msgr->inst.addr, port); inst 2049 net/ceph/messenger.c ceph_pr_addr(&con->msgr->inst.addr)); inst 3036 net/ceph/messenger.c u32 nonce = le32_to_cpu(msgr->inst.addr.nonce) + 1000000; inst 3037 net/ceph/messenger.c msgr->inst.addr.nonce = cpu_to_le32(nonce); inst 3050 net/ceph/messenger.c msgr->inst.addr = *myaddr; inst 3053 net/ceph/messenger.c msgr->inst.addr.type = 0; inst 3054 net/ceph/messenger.c get_random_bytes(&msgr->inst.addr.nonce, sizeof(msgr->inst.addr.nonce)); inst 3097 net/ceph/messenger.c msg->hdr.src = con->msgr->inst.name; inst 71 net/ceph/mon_client.c struct ceph_entity_inst *inst = &m->mon_inst[i]; inst 74 net/ceph/mon_client.c ceph_decode_copy_safe(&p, end, &inst->name, inst 75 net/ceph/mon_client.c sizeof(inst->name), bad); inst 76 net/ceph/mon_client.c err = ceph_decode_entity_addr(&p, end, &inst->addr); inst 1185 net/ceph/mon_client.c monc->client->msgr.inst.name.type = CEPH_ENTITY_TYPE_CLIENT; inst 1186 net/ceph/mon_client.c monc->client->msgr.inst.name.num = inst 60 net/netfilter/ipset/ip_set_core.c #define ip_set(inst, id) \ inst 61 net/netfilter/ipset/ip_set_core.c ip_set_dereference((inst)->ip_set_list)[id] inst 62 net/netfilter/ipset/ip_set_core.c #define ip_set_ref_netlink(inst,id) \ inst 63 net/netfilter/ipset/ip_set_core.c rcu_dereference_raw((inst)->ip_set_list)[id] inst 550 net/netfilter/ipset/ip_set_core.c struct ip_set_net *inst = ip_set_pernet(net); inst 554 net/netfilter/ipset/ip_set_core.c set = rcu_dereference(inst->ip_set_list)[index]; inst 665 net/netfilter/ipset/ip_set_core.c struct ip_set_net *inst = ip_set_pernet(net); inst 668 net/netfilter/ipset/ip_set_core.c for (i = 0; i < inst->ip_set_max; i++) { inst 669 net/netfilter/ipset/ip_set_core.c s = rcu_dereference(inst->ip_set_list)[i]; inst 690 net/netfilter/ipset/ip_set_core.c __ip_set_put_byindex(struct ip_set_net *inst, ip_set_id_t index) inst 695 net/netfilter/ipset/ip_set_core.c set = rcu_dereference(inst->ip_set_list)[index]; inst 704 net/netfilter/ipset/ip_set_core.c struct ip_set_net *inst = ip_set_pernet(net); inst 706 net/netfilter/ipset/ip_set_core.c __ip_set_put_byindex(inst, index); inst 741 net/netfilter/ipset/ip_set_core.c struct ip_set_net *inst = ip_set_pernet(net); inst 743 net/netfilter/ipset/ip_set_core.c if (index >= inst->ip_set_max) inst 747 net/netfilter/ipset/ip_set_core.c set = ip_set(inst, index); inst 768 net/netfilter/ipset/ip_set_core.c struct ip_set_net *inst = ip_set_pernet(net); inst 771 net/netfilter/ipset/ip_set_core.c if (!inst->is_deleted) { /* already deleted from ip_set_net_exit() */ inst 772 net/netfilter/ipset/ip_set_core.c set = ip_set(inst, index); inst 842 net/netfilter/ipset/ip_set_core.c find_set_and_id(struct ip_set_net *inst, const char *name, ip_set_id_t *id) inst 848 net/netfilter/ipset/ip_set_core.c for (i = 0; i < inst->ip_set_max; i++) { inst 849 net/netfilter/ipset/ip_set_core.c set = ip_set(inst, i); inst 859 net/netfilter/ipset/ip_set_core.c find_set(struct ip_set_net *inst, const char *name) inst 863 net/netfilter/ipset/ip_set_core.c return find_set_and_id(inst, name, &id); inst 867 net/netfilter/ipset/ip_set_core.c find_free_id(struct ip_set_net *inst, const char *name, ip_set_id_t *index, inst 874 net/netfilter/ipset/ip_set_core.c for (i = 0; i < inst->ip_set_max; i++) { inst 875 net/netfilter/ipset/ip_set_core.c s = ip_set(inst, i); inst 904 net/netfilter/ipset/ip_set_core.c struct ip_set_net *inst = ip_set_pernet(net); inst 969 net/netfilter/ipset/ip_set_core.c ret = find_free_id(inst, set->name, &index, &clash); inst 982 net/netfilter/ipset/ip_set_core.c ip_set_id_t i = inst->ip_set_max + IP_SET_INC; inst 984 net/netfilter/ipset/ip_set_core.c if (i < inst->ip_set_max || i == IPSET_INVALID_ID) inst 992 net/netfilter/ipset/ip_set_core.c tmp = ip_set_dereference(inst->ip_set_list); inst 993 net/netfilter/ipset/ip_set_core.c memcpy(list, tmp, sizeof(struct ip_set *) * inst->ip_set_max); inst 994 net/netfilter/ipset/ip_set_core.c rcu_assign_pointer(inst->ip_set_list, list); inst 998 net/netfilter/ipset/ip_set_core.c index = inst->ip_set_max; inst 999 net/netfilter/ipset/ip_set_core.c inst->ip_set_max = i; inst 1008 net/netfilter/ipset/ip_set_core.c ip_set(inst, index) = set; inst 1046 net/netfilter/ipset/ip_set_core.c struct ip_set_net *inst = ip_set_pernet(net); inst 1069 net/netfilter/ipset/ip_set_core.c for (i = 0; i < inst->ip_set_max; i++) { inst 1070 net/netfilter/ipset/ip_set_core.c s = ip_set(inst, i); inst 1076 net/netfilter/ipset/ip_set_core.c inst->is_destroyed = true; inst 1078 net/netfilter/ipset/ip_set_core.c for (i = 0; i < inst->ip_set_max; i++) { inst 1079 net/netfilter/ipset/ip_set_core.c s = ip_set(inst, i); inst 1081 net/netfilter/ipset/ip_set_core.c ip_set(inst, i) = NULL; inst 1086 net/netfilter/ipset/ip_set_core.c inst->is_destroyed = false; inst 1088 net/netfilter/ipset/ip_set_core.c s = find_set_and_id(inst, nla_data(attr[IPSET_ATTR_SETNAME]), inst 1097 net/netfilter/ipset/ip_set_core.c ip_set(inst, i) = NULL; inst 1125 net/netfilter/ipset/ip_set_core.c struct ip_set_net *inst = ip_set_pernet(net); inst 1133 net/netfilter/ipset/ip_set_core.c for (i = 0; i < inst->ip_set_max; i++) { inst 1134 net/netfilter/ipset/ip_set_core.c s = ip_set(inst, i); inst 1139 net/netfilter/ipset/ip_set_core.c s = find_set(inst, nla_data(attr[IPSET_ATTR_SETNAME])); inst 1165 net/netfilter/ipset/ip_set_core.c struct ip_set_net *inst = ip_set_pernet(net); inst 1176 net/netfilter/ipset/ip_set_core.c set = find_set(inst, nla_data(attr[IPSET_ATTR_SETNAME])); inst 1187 net/netfilter/ipset/ip_set_core.c for (i = 0; i < inst->ip_set_max; i++) { inst 1188 net/netfilter/ipset/ip_set_core.c s = ip_set(inst, i); inst 1215 net/netfilter/ipset/ip_set_core.c struct ip_set_net *inst = ip_set_pernet(net); inst 1225 net/netfilter/ipset/ip_set_core.c from = find_set_and_id(inst, nla_data(attr[IPSET_ATTR_SETNAME]), inst 1230 net/netfilter/ipset/ip_set_core.c to = find_set_and_id(inst, nla_data(attr[IPSET_ATTR_SETNAME2]), inst 1255 net/netfilter/ipset/ip_set_core.c ip_set(inst, from_id) = to; inst 1256 net/netfilter/ipset/ip_set_core.c ip_set(inst, to_id) = from; inst 1276 net/netfilter/ipset/ip_set_core.c struct ip_set_net *inst = inst 1279 net/netfilter/ipset/ip_set_core.c struct ip_set *set = ip_set_ref_netlink(inst, index); inst 1317 net/netfilter/ipset/ip_set_core.c struct ip_set_net *inst = ip_set_pernet(sock_net(skb->sk)); inst 1332 net/netfilter/ipset/ip_set_core.c set = find_set_and_id(inst, nla_data(cda[IPSET_ATTR_SETNAME]), inst 1349 net/netfilter/ipset/ip_set_core.c cb->args[IPSET_CB_NET] = (unsigned long)inst; inst 1369 net/netfilter/ipset/ip_set_core.c struct ip_set_net *inst = ip_set_pernet(sock_net(skb->sk)); inst 1377 net/netfilter/ipset/ip_set_core.c if (cb->args[IPSET_CB_INDEX] >= inst->ip_set_max) inst 1383 net/netfilter/ipset/ip_set_core.c : inst->ip_set_max; inst 1390 net/netfilter/ipset/ip_set_core.c set = ip_set(inst, index); inst 1391 net/netfilter/ipset/ip_set_core.c is_destroyed = inst->is_destroyed; inst 1484 net/netfilter/ipset/ip_set_core.c set = ip_set_ref_netlink(inst, index); inst 1600 net/netfilter/ipset/ip_set_core.c struct ip_set_net *inst = ip_set_pernet(net); inst 1619 net/netfilter/ipset/ip_set_core.c set = find_set(inst, nla_data(attr[IPSET_ATTR_SETNAME])); inst 1672 net/netfilter/ipset/ip_set_core.c struct ip_set_net *inst = ip_set_pernet(net); inst 1684 net/netfilter/ipset/ip_set_core.c set = find_set(inst, nla_data(attr[IPSET_ATTR_SETNAME])); inst 1709 net/netfilter/ipset/ip_set_core.c struct ip_set_net *inst = ip_set_pernet(net); inst 1719 net/netfilter/ipset/ip_set_core.c set = find_set(inst, nla_data(attr[IPSET_ATTR_SETNAME])); inst 1866 net/netfilter/ipset/ip_set_core.c struct ip_set_net *inst = ip_set_pernet(net); inst 1877 net/netfilter/ipset/ip_set_core.c set = find_set_and_id(inst, nla_data(attr[IPSET_ATTR_SETNAME]), &id); inst 1918 net/netfilter/ipset/ip_set_core.c struct ip_set_net *inst = ip_set_pernet(net); inst 1930 net/netfilter/ipset/ip_set_core.c if (id >= inst->ip_set_max) inst 1932 net/netfilter/ipset/ip_set_core.c set = ip_set(inst, id); inst 2060 net/netfilter/ipset/ip_set_core.c struct ip_set_net *inst = ip_set_pernet(net); inst 2118 net/netfilter/ipset/ip_set_core.c find_set_and_id(inst, req_get->set.name, &id); inst 2133 net/netfilter/ipset/ip_set_core.c find_set_and_id(inst, req_get->set.name, &id); inst 2136 net/netfilter/ipset/ip_set_core.c req_get->family = ip_set(inst, id)->family; inst 2145 net/netfilter/ipset/ip_set_core.c req_get->set.index >= inst->ip_set_max) { inst 2150 net/netfilter/ipset/ip_set_core.c set = ip_set(inst, req_get->set.index); inst 2185 net/netfilter/ipset/ip_set_core.c struct ip_set_net *inst = ip_set_pernet(net); inst 2188 net/netfilter/ipset/ip_set_core.c inst->ip_set_max = max_sets ? max_sets : CONFIG_IP_SET_MAX; inst 2189 net/netfilter/ipset/ip_set_core.c if (inst->ip_set_max >= IPSET_INVALID_ID) inst 2190 net/netfilter/ipset/ip_set_core.c inst->ip_set_max = IPSET_INVALID_ID - 1; inst 2192 net/netfilter/ipset/ip_set_core.c list = kvcalloc(inst->ip_set_max, sizeof(struct ip_set *), GFP_KERNEL); inst 2195 net/netfilter/ipset/ip_set_core.c inst->is_deleted = false; inst 2196 net/netfilter/ipset/ip_set_core.c inst->is_destroyed = false; inst 2197 net/netfilter/ipset/ip_set_core.c rcu_assign_pointer(inst->ip_set_list, list); inst 2204 net/netfilter/ipset/ip_set_core.c struct ip_set_net *inst = ip_set_pernet(net); inst 2209 net/netfilter/ipset/ip_set_core.c inst->is_deleted = true; /* flag for ip_set_nfnl_put */ inst 2212 net/netfilter/ipset/ip_set_core.c for (i = 0; i < inst->ip_set_max; i++) { inst 2213 net/netfilter/ipset/ip_set_core.c set = ip_set(inst, i); inst 2215 net/netfilter/ipset/ip_set_core.c ip_set(inst, i) = NULL; inst 2220 net/netfilter/ipset/ip_set_core.c kvfree(rcu_dereference_protected(inst->ip_set_list, 1)); inst 104 net/netfilter/nfnetlink_log.c struct nfulnl_instance *inst; inst 107 net/netfilter/nfnetlink_log.c hlist_for_each_entry_rcu(inst, head, hlist) { inst 108 net/netfilter/nfnetlink_log.c if (inst->group_num == group_num) inst 109 net/netfilter/nfnetlink_log.c return inst; inst 115 net/netfilter/nfnetlink_log.c instance_get(struct nfulnl_instance *inst) inst 117 net/netfilter/nfnetlink_log.c refcount_inc(&inst->use); inst 123 net/netfilter/nfnetlink_log.c struct nfulnl_instance *inst; inst 126 net/netfilter/nfnetlink_log.c inst = __instance_lookup(log, group_num); inst 127 net/netfilter/nfnetlink_log.c if (inst && !refcount_inc_not_zero(&inst->use)) inst 128 net/netfilter/nfnetlink_log.c inst = NULL; inst 131 net/netfilter/nfnetlink_log.c return inst; inst 136 net/netfilter/nfnetlink_log.c struct nfulnl_instance *inst = inst 139 net/netfilter/nfnetlink_log.c put_net(inst->net); inst 140 net/netfilter/nfnetlink_log.c kfree(inst); inst 145 net/netfilter/nfnetlink_log.c instance_put(struct nfulnl_instance *inst) inst 147 net/netfilter/nfnetlink_log.c if (inst && refcount_dec_and_test(&inst->use)) inst 148 net/netfilter/nfnetlink_log.c call_rcu(&inst->rcu, nfulnl_instance_free_rcu); inst 157 net/netfilter/nfnetlink_log.c struct nfulnl_instance *inst; inst 167 net/netfilter/nfnetlink_log.c inst = kzalloc(sizeof(*inst), GFP_ATOMIC); inst 168 net/netfilter/nfnetlink_log.c if (!inst) { inst 174 net/netfilter/nfnetlink_log.c kfree(inst); inst 179 net/netfilter/nfnetlink_log.c INIT_HLIST_NODE(&inst->hlist); inst 180 net/netfilter/nfnetlink_log.c spin_lock_init(&inst->lock); inst 182 net/netfilter/nfnetlink_log.c refcount_set(&inst->use, 2); inst 184 net/netfilter/nfnetlink_log.c timer_setup(&inst->timer, nfulnl_timer, 0); inst 186 net/netfilter/nfnetlink_log.c inst->net = get_net(net); inst 187 net/netfilter/nfnetlink_log.c inst->peer_user_ns = user_ns; inst 188 net/netfilter/nfnetlink_log.c inst->peer_portid = portid; inst 189 net/netfilter/nfnetlink_log.c inst->group_num = group_num; inst 191 net/netfilter/nfnetlink_log.c inst->qthreshold = NFULNL_QTHRESH_DEFAULT; inst 192 net/netfilter/nfnetlink_log.c inst->flushtimeout = NFULNL_TIMEOUT_DEFAULT; inst 193 net/netfilter/nfnetlink_log.c inst->nlbufsiz = NFULNL_NLBUFSIZ_DEFAULT; inst 194 net/netfilter/nfnetlink_log.c inst->copy_mode = NFULNL_COPY_PACKET; inst 195 net/netfilter/nfnetlink_log.c inst->copy_range = NFULNL_COPY_RANGE_MAX; inst 197 net/netfilter/nfnetlink_log.c hlist_add_head_rcu(&inst->hlist, inst 203 net/netfilter/nfnetlink_log.c return inst; inst 210 net/netfilter/nfnetlink_log.c static void __nfulnl_flush(struct nfulnl_instance *inst); inst 214 net/netfilter/nfnetlink_log.c __instance_destroy(struct nfulnl_instance *inst) inst 217 net/netfilter/nfnetlink_log.c hlist_del_rcu(&inst->hlist); inst 221 net/netfilter/nfnetlink_log.c spin_lock(&inst->lock); inst 224 net/netfilter/nfnetlink_log.c inst->copy_mode = NFULNL_COPY_DISABLED; inst 226 net/netfilter/nfnetlink_log.c if (inst->skb) inst 227 net/netfilter/nfnetlink_log.c __nfulnl_flush(inst); inst 228 net/netfilter/nfnetlink_log.c spin_unlock(&inst->lock); inst 231 net/netfilter/nfnetlink_log.c instance_put(inst); inst 236 net/netfilter/nfnetlink_log.c struct nfulnl_instance *inst) inst 239 net/netfilter/nfnetlink_log.c __instance_destroy(inst); inst 244 net/netfilter/nfnetlink_log.c nfulnl_set_mode(struct nfulnl_instance *inst, u_int8_t mode, inst 249 net/netfilter/nfnetlink_log.c spin_lock_bh(&inst->lock); inst 254 net/netfilter/nfnetlink_log.c inst->copy_mode = mode; inst 255 net/netfilter/nfnetlink_log.c inst->copy_range = 0; inst 259 net/netfilter/nfnetlink_log.c inst->copy_mode = mode; inst 262 net/netfilter/nfnetlink_log.c inst->copy_range = min_t(unsigned int, inst 271 net/netfilter/nfnetlink_log.c spin_unlock_bh(&inst->lock); inst 277 net/netfilter/nfnetlink_log.c nfulnl_set_nlbufsiz(struct nfulnl_instance *inst, u_int32_t nlbufsiz) inst 281 net/netfilter/nfnetlink_log.c spin_lock_bh(&inst->lock); inst 287 net/netfilter/nfnetlink_log.c inst->nlbufsiz = nlbufsiz; inst 290 net/netfilter/nfnetlink_log.c spin_unlock_bh(&inst->lock); inst 296 net/netfilter/nfnetlink_log.c nfulnl_set_timeout(struct nfulnl_instance *inst, u_int32_t timeout) inst 298 net/netfilter/nfnetlink_log.c spin_lock_bh(&inst->lock); inst 299 net/netfilter/nfnetlink_log.c inst->flushtimeout = timeout; inst 300 net/netfilter/nfnetlink_log.c spin_unlock_bh(&inst->lock); inst 304 net/netfilter/nfnetlink_log.c nfulnl_set_qthresh(struct nfulnl_instance *inst, u_int32_t qthresh) inst 306 net/netfilter/nfnetlink_log.c spin_lock_bh(&inst->lock); inst 307 net/netfilter/nfnetlink_log.c inst->qthreshold = qthresh; inst 308 net/netfilter/nfnetlink_log.c spin_unlock_bh(&inst->lock); inst 312 net/netfilter/nfnetlink_log.c nfulnl_set_flags(struct nfulnl_instance *inst, u_int16_t flags) inst 314 net/netfilter/nfnetlink_log.c spin_lock_bh(&inst->lock); inst 315 net/netfilter/nfnetlink_log.c inst->flags = flags; inst 316 net/netfilter/nfnetlink_log.c spin_unlock_bh(&inst->lock); inst 346 net/netfilter/nfnetlink_log.c __nfulnl_send(struct nfulnl_instance *inst) inst 348 net/netfilter/nfnetlink_log.c if (inst->qlen > 1) { inst 349 net/netfilter/nfnetlink_log.c struct nlmsghdr *nlh = nlmsg_put(inst->skb, 0, 0, inst 354 net/netfilter/nfnetlink_log.c inst->skb->len, skb_tailroom(inst->skb))) { inst 355 net/netfilter/nfnetlink_log.c kfree_skb(inst->skb); inst 359 net/netfilter/nfnetlink_log.c nfnetlink_unicast(inst->skb, inst->net, inst->peer_portid, inst 362 net/netfilter/nfnetlink_log.c inst->qlen = 0; inst 363 net/netfilter/nfnetlink_log.c inst->skb = NULL; inst 367 net/netfilter/nfnetlink_log.c __nfulnl_flush(struct nfulnl_instance *inst) inst 370 net/netfilter/nfnetlink_log.c if (del_timer(&inst->timer)) inst 371 net/netfilter/nfnetlink_log.c instance_put(inst); inst 372 net/netfilter/nfnetlink_log.c if (inst->skb) inst 373 net/netfilter/nfnetlink_log.c __nfulnl_send(inst); inst 379 net/netfilter/nfnetlink_log.c struct nfulnl_instance *inst = from_timer(inst, t, timer); inst 381 net/netfilter/nfnetlink_log.c spin_lock_bh(&inst->lock); inst 382 net/netfilter/nfnetlink_log.c if (inst->skb) inst 383 net/netfilter/nfnetlink_log.c __nfulnl_send(inst); inst 384 net/netfilter/nfnetlink_log.c spin_unlock_bh(&inst->lock); inst 385 net/netfilter/nfnetlink_log.c instance_put(inst); inst 407 net/netfilter/nfnetlink_log.c static int nfulnl_put_bridge(struct nfulnl_instance *inst, const struct sk_buff *skb) inst 415 net/netfilter/nfnetlink_log.c nest = nla_nest_start(inst->skb, NFULA_VLAN); inst 419 net/netfilter/nfnetlink_log.c if (nla_put_be16(inst->skb, NFULA_VLAN_TCI, htons(skb->vlan_tci)) || inst 420 net/netfilter/nfnetlink_log.c nla_put_be16(inst->skb, NFULA_VLAN_PROTO, skb->vlan_proto)) inst 423 net/netfilter/nfnetlink_log.c nla_nest_end(inst->skb, nest); inst 429 net/netfilter/nfnetlink_log.c if (nla_put(inst->skb, NFULA_L2HDR, len, skb_mac_header(skb))) inst 443 net/netfilter/nfnetlink_log.c struct nfulnl_instance *inst, inst 457 net/netfilter/nfnetlink_log.c sk_buff_data_t old_tail = inst->skb->tail; inst 461 net/netfilter/nfnetlink_log.c nlh = nlmsg_put(inst->skb, 0, 0, inst 469 net/netfilter/nfnetlink_log.c nfmsg->res_id = htons(inst->group_num); inst 475 net/netfilter/nfnetlink_log.c if (nla_put(inst->skb, NFULA_PACKET_HDR, sizeof(pmsg), &pmsg)) inst 479 net/netfilter/nfnetlink_log.c nla_put(inst->skb, NFULA_PREFIX, plen, prefix)) inst 484 net/netfilter/nfnetlink_log.c if (nla_put_be32(inst->skb, NFULA_IFINDEX_INDEV, inst 492 net/netfilter/nfnetlink_log.c if (nla_put_be32(inst->skb, NFULA_IFINDEX_PHYSINDEV, inst 498 net/netfilter/nfnetlink_log.c nla_put_be32(inst->skb, NFULA_IFINDEX_INDEV, inst 506 net/netfilter/nfnetlink_log.c if (nla_put_be32(inst->skb, NFULA_IFINDEX_INDEV, inst 512 net/netfilter/nfnetlink_log.c nla_put_be32(inst->skb, NFULA_IFINDEX_PHYSINDEV, inst 521 net/netfilter/nfnetlink_log.c if (nla_put_be32(inst->skb, NFULA_IFINDEX_OUTDEV, inst 529 net/netfilter/nfnetlink_log.c if (nla_put_be32(inst->skb, NFULA_IFINDEX_PHYSOUTDEV, inst 535 net/netfilter/nfnetlink_log.c nla_put_be32(inst->skb, NFULA_IFINDEX_OUTDEV, inst 543 net/netfilter/nfnetlink_log.c if (nla_put_be32(inst->skb, NFULA_IFINDEX_OUTDEV, inst 549 net/netfilter/nfnetlink_log.c nla_put_be32(inst->skb, NFULA_IFINDEX_PHYSOUTDEV, inst 557 net/netfilter/nfnetlink_log.c nla_put_be32(inst->skb, NFULA_MARK, htonl(skb->mark))) inst 569 net/netfilter/nfnetlink_log.c if (nla_put(inst->skb, NFULA_HWADDR, sizeof(phw), &phw)) inst 575 net/netfilter/nfnetlink_log.c if (nla_put_be16(inst->skb, NFULA_HWTYPE, htons(skb->dev->type)) || inst 576 net/netfilter/nfnetlink_log.c nla_put_be16(inst->skb, NFULA_HWLEN, inst 586 net/netfilter/nfnetlink_log.c nla_put(inst->skb, NFULA_HWHEADER, inst 597 net/netfilter/nfnetlink_log.c if (nla_put(inst->skb, NFULA_TIMESTAMP, sizeof(ts), &ts)) inst 608 net/netfilter/nfnetlink_log.c struct user_namespace *user_ns = inst->peer_user_ns; inst 612 net/netfilter/nfnetlink_log.c if (nla_put_be32(inst->skb, NFULA_UID, uid) || inst 613 net/netfilter/nfnetlink_log.c nla_put_be32(inst->skb, NFULA_GID, gid)) inst 620 net/netfilter/nfnetlink_log.c if ((inst->flags & NFULNL_CFG_F_SEQ) && inst 621 net/netfilter/nfnetlink_log.c nla_put_be32(inst->skb, NFULA_SEQ, htonl(inst->seq++))) inst 625 net/netfilter/nfnetlink_log.c if ((inst->flags & NFULNL_CFG_F_SEQ_GLOBAL) && inst 626 net/netfilter/nfnetlink_log.c nla_put_be32(inst->skb, NFULA_SEQ_GLOBAL, inst 630 net/netfilter/nfnetlink_log.c if (ct && nfnl_ct->build(inst->skb, ct, ctinfo, inst 635 net/netfilter/nfnetlink_log.c nfulnl_put_bridge(inst, skb) < 0) inst 642 net/netfilter/nfnetlink_log.c if (skb_tailroom(inst->skb) < nla_total_size(data_len)) inst 645 net/netfilter/nfnetlink_log.c nla = skb_put(inst->skb, nla_total_size(data_len)); inst 653 net/netfilter/nfnetlink_log.c nlh->nlmsg_len = inst->skb->tail - old_tail; inst 685 net/netfilter/nfnetlink_log.c struct nfulnl_instance *inst; inst 699 net/netfilter/nfnetlink_log.c inst = instance_lookup_get(log, li->u.ulog.group); inst 700 net/netfilter/nfnetlink_log.c if (!inst) inst 731 net/netfilter/nfnetlink_log.c spin_lock_bh(&inst->lock); inst 733 net/netfilter/nfnetlink_log.c if (inst->flags & NFULNL_CFG_F_SEQ) inst 735 net/netfilter/nfnetlink_log.c if (inst->flags & NFULNL_CFG_F_SEQ_GLOBAL) inst 737 net/netfilter/nfnetlink_log.c if (inst->flags & NFULNL_CFG_F_CONNTRACK) { inst 748 net/netfilter/nfnetlink_log.c qthreshold = inst->qthreshold; inst 755 net/netfilter/nfnetlink_log.c switch (inst->copy_mode) { inst 762 net/netfilter/nfnetlink_log.c data_len = inst->copy_range; inst 778 net/netfilter/nfnetlink_log.c if (inst->skb && size > skb_tailroom(inst->skb)) { inst 781 net/netfilter/nfnetlink_log.c __nfulnl_flush(inst); inst 784 net/netfilter/nfnetlink_log.c if (!inst->skb) { inst 785 net/netfilter/nfnetlink_log.c inst->skb = nfulnl_alloc_skb(net, inst->peer_portid, inst 786 net/netfilter/nfnetlink_log.c inst->nlbufsiz, size); inst 787 net/netfilter/nfnetlink_log.c if (!inst->skb) inst 791 net/netfilter/nfnetlink_log.c inst->qlen++; inst 793 net/netfilter/nfnetlink_log.c __build_packet_message(log, inst, skb, data_len, pf, inst 797 net/netfilter/nfnetlink_log.c if (inst->qlen >= qthreshold) inst 798 net/netfilter/nfnetlink_log.c __nfulnl_flush(inst); inst 801 net/netfilter/nfnetlink_log.c else if (!timer_pending(&inst->timer)) { inst 802 net/netfilter/nfnetlink_log.c instance_get(inst); inst 803 net/netfilter/nfnetlink_log.c inst->timer.expires = jiffies + (inst->flushtimeout*HZ/100); inst 804 net/netfilter/nfnetlink_log.c add_timer(&inst->timer); inst 808 net/netfilter/nfnetlink_log.c spin_unlock_bh(&inst->lock); inst 809 net/netfilter/nfnetlink_log.c instance_put(inst); inst 831 net/netfilter/nfnetlink_log.c struct nfulnl_instance *inst; inst 834 net/netfilter/nfnetlink_log.c hlist_for_each_entry_safe(inst, t2, head, hlist) { inst 835 net/netfilter/nfnetlink_log.c if (n->portid == inst->peer_portid) inst 836 net/netfilter/nfnetlink_log.c __instance_destroy(inst); inst 879 net/netfilter/nfnetlink_log.c struct nfulnl_instance *inst; inst 899 net/netfilter/nfnetlink_log.c inst = instance_lookup_get(log, group_num); inst 900 net/netfilter/nfnetlink_log.c if (inst && inst->peer_portid != NETLINK_CB(skb).portid) { inst 930 net/netfilter/nfnetlink_log.c if (inst) { inst 935 net/netfilter/nfnetlink_log.c inst = instance_create(net, group_num, inst 938 net/netfilter/nfnetlink_log.c if (IS_ERR(inst)) { inst 939 net/netfilter/nfnetlink_log.c ret = PTR_ERR(inst); inst 944 net/netfilter/nfnetlink_log.c if (!inst) { inst 949 net/netfilter/nfnetlink_log.c instance_destroy(log, inst); inst 955 net/netfilter/nfnetlink_log.c } else if (!inst) { inst 964 net/netfilter/nfnetlink_log.c nfulnl_set_mode(inst, params->copy_mode, inst 971 net/netfilter/nfnetlink_log.c nfulnl_set_timeout(inst, ntohl(timeout)); inst 977 net/netfilter/nfnetlink_log.c nfulnl_set_nlbufsiz(inst, ntohl(nlbufsiz)); inst 983 net/netfilter/nfnetlink_log.c nfulnl_set_qthresh(inst, ntohl(qthresh)); inst 987 net/netfilter/nfnetlink_log.c nfulnl_set_flags(inst, flags); inst 990 net/netfilter/nfnetlink_log.c instance_put(inst); inst 1084 net/netfilter/nfnetlink_log.c const struct nfulnl_instance *inst = v; inst 1087 net/netfilter/nfnetlink_log.c inst->group_num, inst 1088 net/netfilter/nfnetlink_log.c inst->peer_portid, inst->qlen, inst 1089 net/netfilter/nfnetlink_log.c inst->copy_mode, inst->copy_range, inst 1090 net/netfilter/nfnetlink_log.c inst->flushtimeout, refcount_read(&inst->use)); inst 105 net/netfilter/nfnetlink_queue.c struct nfqnl_instance *inst; inst 108 net/netfilter/nfnetlink_queue.c hlist_for_each_entry_rcu(inst, head, hlist) { inst 109 net/netfilter/nfnetlink_queue.c if (inst->queue_num == queue_num) inst 110 net/netfilter/nfnetlink_queue.c return inst; inst 118 net/netfilter/nfnetlink_queue.c struct nfqnl_instance *inst; inst 128 net/netfilter/nfnetlink_queue.c inst = kzalloc(sizeof(*inst), GFP_ATOMIC); inst 129 net/netfilter/nfnetlink_queue.c if (!inst) { inst 134 net/netfilter/nfnetlink_queue.c inst->queue_num = queue_num; inst 135 net/netfilter/nfnetlink_queue.c inst->peer_portid = portid; inst 136 net/netfilter/nfnetlink_queue.c inst->queue_maxlen = NFQNL_QMAX_DEFAULT; inst 137 net/netfilter/nfnetlink_queue.c inst->copy_range = NFQNL_MAX_COPY_RANGE; inst 138 net/netfilter/nfnetlink_queue.c inst->copy_mode = NFQNL_COPY_NONE; inst 139 net/netfilter/nfnetlink_queue.c spin_lock_init(&inst->lock); inst 140 net/netfilter/nfnetlink_queue.c INIT_LIST_HEAD(&inst->queue_list); inst 148 net/netfilter/nfnetlink_queue.c hlist_add_head_rcu(&inst->hlist, &q->instance_table[h]); inst 152 net/netfilter/nfnetlink_queue.c return inst; inst 155 net/netfilter/nfnetlink_queue.c kfree(inst); inst 167 net/netfilter/nfnetlink_queue.c struct nfqnl_instance *inst = container_of(head, struct nfqnl_instance, inst 170 net/netfilter/nfnetlink_queue.c nfqnl_flush(inst, NULL, 0); inst 171 net/netfilter/nfnetlink_queue.c kfree(inst); inst 176 net/netfilter/nfnetlink_queue.c __instance_destroy(struct nfqnl_instance *inst) inst 178 net/netfilter/nfnetlink_queue.c hlist_del_rcu(&inst->hlist); inst 179 net/netfilter/nfnetlink_queue.c call_rcu(&inst->rcu, instance_destroy_rcu); inst 183 net/netfilter/nfnetlink_queue.c instance_destroy(struct nfnl_queue_net *q, struct nfqnl_instance *inst) inst 186 net/netfilter/nfnetlink_queue.c __instance_destroy(inst); inst 933 net/netfilter/nfnetlink_queue.c struct nfqnl_instance *inst; inst 936 net/netfilter/nfnetlink_queue.c hlist_for_each_entry_rcu(inst, head, hlist) inst 937 net/netfilter/nfnetlink_queue.c nfqnl_flush(inst, dev_cmp, ifindex); inst 965 net/netfilter/nfnetlink_queue.c struct nfqnl_instance *inst; inst 968 net/netfilter/nfnetlink_queue.c hlist_for_each_entry_rcu(inst, head, hlist) inst 969 net/netfilter/nfnetlink_queue.c nfqnl_flush(inst, NULL, 0); inst 987 net/netfilter/nfnetlink_queue.c struct nfqnl_instance *inst; inst 990 net/netfilter/nfnetlink_queue.c hlist_for_each_entry_safe(inst, t2, head, hlist) { inst 991 net/netfilter/nfnetlink_queue.c if (n->portid == inst->peer_portid) inst 992 net/netfilter/nfnetlink_queue.c __instance_destroy(inst); inst 1476 net/netfilter/nfnetlink_queue.c const struct nfqnl_instance *inst = v; inst 1479 net/netfilter/nfnetlink_queue.c inst->queue_num, inst 1480 net/netfilter/nfnetlink_queue.c inst->peer_portid, inst->queue_total, inst 1481 net/netfilter/nfnetlink_queue.c inst->copy_mode, inst->copy_range, inst 1482 net/netfilter/nfnetlink_queue.c inst->queue_dropped, inst->queue_user_dropped, inst 1483 net/netfilter/nfnetlink_queue.c inst->id_sequence, 1); inst 946 net/tipc/socket.c u32 type, inst, scope; inst 954 net/tipc/socket.c inst = dest->addr.name.name.instance; inst 964 net/tipc/socket.c if (!tipc_nametbl_lookup(net, type, inst, scope, &dsts, inst 1100 net/tipc/socket.c u32 type, inst, scope, exclude; inst 1107 net/tipc/socket.c inst = dest->addr.name.name.instance; inst 1111 net/tipc/socket.c if (!tipc_nametbl_lookup(net, type, inst, scope, &dsts, inst 1310 net/tipc/socket.c u32 type = 0, inst = 0; inst 1361 net/tipc/socket.c inst = dest->addr.name.name.instance; inst 1363 net/tipc/socket.c dport = tipc_nametbl_translate(net, type, inst, &dnode); inst 1382 net/tipc/socket.c msg_set_nameinst(hdr, inst); inst 1841 scripts/mod/modpost.c unsigned int inst; inst 1845 scripts/mod/modpost.c inst = TO_NATIVE(*location); inst 1848 scripts/mod/modpost.c r->r_addend = inst & 0xffff; inst 1851 scripts/mod/modpost.c r->r_addend = (inst & 0x03ffffff) << 2; inst 1854 scripts/mod/modpost.c r->r_addend = inst; inst 347 sound/drivers/opl3/opl3_midi.c fm = &patch->inst; inst 188 sound/drivers/opl3/opl3_synth.c struct sbi_patch inst; inst 190 sound/drivers/opl3/opl3_synth.c while (count >= sizeof(inst)) { inst 192 sound/drivers/opl3/opl3_synth.c if (copy_from_user(&inst, buf, sizeof(inst))) inst 194 sound/drivers/opl3/opl3_synth.c if (!memcmp(inst.key, FM_KEY_SBI, 4) || inst 195 sound/drivers/opl3/opl3_synth.c !memcmp(inst.key, FM_KEY_2OP, 4)) inst 197 sound/drivers/opl3/opl3_synth.c else if (!memcmp(inst.key, FM_KEY_4OP, 4)) inst 201 sound/drivers/opl3/opl3_synth.c err = snd_opl3_load_patch(opl3, inst.prog, inst.bank, type, inst 202 sound/drivers/opl3/opl3_synth.c inst.name, inst.extension, inst 203 sound/drivers/opl3/opl3_synth.c inst.data); inst 206 sound/drivers/opl3/opl3_synth.c result += sizeof(inst); inst 207 sound/drivers/opl3/opl3_synth.c count -= sizeof(inst); inst 255 sound/drivers/opl3/opl3_synth.c patch->inst.op[i].am_vib = data[AM_VIB + i]; inst 256 sound/drivers/opl3/opl3_synth.c patch->inst.op[i].ksl_level = data[KSL_LEVEL + i]; inst 257 sound/drivers/opl3/opl3_synth.c patch->inst.op[i].attack_decay = data[ATTACK_DECAY + i]; inst 258 sound/drivers/opl3/opl3_synth.c patch->inst.op[i].sustain_release = data[SUSTAIN_RELEASE + i]; inst 259 sound/drivers/opl3/opl3_synth.c patch->inst.op[i].wave_select = data[WAVE_SELECT + i]; inst 261 sound/drivers/opl3/opl3_synth.c patch->inst.feedback_connection[0] = data[CONNECTION]; inst 265 sound/drivers/opl3/opl3_synth.c patch->inst.op[i+2].am_vib = inst 267 sound/drivers/opl3/opl3_synth.c patch->inst.op[i+2].ksl_level = inst 269 sound/drivers/opl3/opl3_synth.c patch->inst.op[i+2].attack_decay = inst 271 sound/drivers/opl3/opl3_synth.c patch->inst.op[i+2].sustain_release = inst 273 sound/drivers/opl3/opl3_synth.c patch->inst.op[i+2].wave_select = inst 276 sound/drivers/opl3/opl3_synth.c patch->inst.feedback_connection[1] = inst 281 sound/drivers/opl3/opl3_synth.c patch->inst.echo_delay = ext[0]; inst 282 sound/drivers/opl3/opl3_synth.c patch->inst.echo_atten = ext[1]; inst 283 sound/drivers/opl3/opl3_synth.c patch->inst.chorus_spread = ext[2]; inst 284 sound/drivers/opl3/opl3_synth.c patch->inst.trnsps = ext[3]; inst 285 sound/drivers/opl3/opl3_synth.c patch->inst.fix_dur = ext[4]; inst 286 sound/drivers/opl3/opl3_synth.c patch->inst.modes = ext[5]; inst 287 sound/drivers/opl3/opl3_synth.c patch->inst.fix_key = ext[6]; inst 704 sound/pci/maestro3.c } inst; inst 1056 sound/pci/maestro3.c s->inst.data + CDATA_INSTANCE_READY, 1); inst 1065 sound/pci/maestro3.c s->inst.data + CDATA_INSTANCE_READY, 1); inst 1079 sound/pci/maestro3.c s->inst.data + CDATA_INSTANCE_READY, 0); inst 1147 sound/pci/maestro3.c dsp_in_buffer = s->inst.data + (MINISRC_TMP_BUFFER_SIZE / 2); inst 1160 sound/pci/maestro3.c s->inst.data + CDATA_HOST_SRC_ADDRL, inst 1164 sound/pci/maestro3.c s->inst.data + CDATA_HOST_SRC_ADDRH, inst 1168 sound/pci/maestro3.c s->inst.data + CDATA_HOST_SRC_END_PLUS_1L, inst 1172 sound/pci/maestro3.c s->inst.data + CDATA_HOST_SRC_END_PLUS_1H, inst 1176 sound/pci/maestro3.c s->inst.data + CDATA_HOST_SRC_CURRENTL, inst 1180 sound/pci/maestro3.c s->inst.data + CDATA_HOST_SRC_CURRENTH, inst 1188 sound/pci/maestro3.c s->inst.data + CDATA_IN_BUF_BEGIN, inst 1192 sound/pci/maestro3.c s->inst.data + CDATA_IN_BUF_END_PLUS_1, inst 1196 sound/pci/maestro3.c s->inst.data + CDATA_IN_BUF_HEAD, inst 1200 sound/pci/maestro3.c s->inst.data + CDATA_IN_BUF_TAIL, inst 1204 sound/pci/maestro3.c s->inst.data + CDATA_OUT_BUF_BEGIN, inst 1208 sound/pci/maestro3.c s->inst.data + CDATA_OUT_BUF_END_PLUS_1, inst 1212 sound/pci/maestro3.c s->inst.data + CDATA_OUT_BUF_HEAD, inst 1216 sound/pci/maestro3.c s->inst.data + CDATA_OUT_BUF_TAIL, inst 1230 sound/pci/maestro3.c s->inst.data >> DP_SHIFT_COUNT); inst 1232 sound/pci/maestro3.c s->inst.data >> DP_SHIFT_COUNT); inst 1234 sound/pci/maestro3.c s->inst.data >> DP_SHIFT_COUNT); inst 1240 sound/pci/maestro3.c s->inst.data + SRC3_DIRECTION_OFFSET + 1, inst 1244 sound/pci/maestro3.c s->inst.data + SRC3_DIRECTION_OFFSET + 2, inst 1253 sound/pci/maestro3.c s->inst.data + CDATA_FREQUENCY, inst 1297 sound/pci/maestro3.c s->inst.data + SRC3_DIRECTION_OFFSET + 12, inst 1298 sound/pci/maestro3.c s->inst.data + 40 + 8); inst 1301 sound/pci/maestro3.c s->inst.data + SRC3_DIRECTION_OFFSET + 19, inst 1302 sound/pci/maestro3.c s->inst.code + MINISRC_COEF_LOC); inst 1306 sound/pci/maestro3.c s->inst.data + SRC3_DIRECTION_OFFSET + 22, inst 1311 sound/pci/maestro3.c s->inst.data + CDATA_DMA_CONTROL, inst 1319 sound/pci/maestro3.c s->inst.data + pv[i].addr, pv[i].val); inst 1363 sound/pci/maestro3.c s->inst.data + SRC3_DIRECTION_OFFSET + 12, inst 1364 sound/pci/maestro3.c s->inst.data + 40 + 8); inst 1368 sound/pci/maestro3.c s->inst.data + CDATA_DMA_CONTROL, inst 1377 sound/pci/maestro3.c s->inst.data + rv[i].addr, rv[i].val); inst 1457 sound/pci/maestro3.c s->inst.data + CDATA_HOST_SRC_CURRENTH); inst 1460 sound/pci/maestro3.c s->inst.data + CDATA_HOST_SRC_CURRENTL); inst 1463 sound/pci/maestro3.c s->inst.data + CDATA_HOST_SRC_CURRENTH)) inst 2207 sound/pci/maestro3.c s->inst.code = 0x400; inst 2208 sound/pci/maestro3.c s->inst.data = address; inst 2062 sound/pci/ymfpci/ymfpci_main.c const __le32 *inst; inst 2077 sound/pci/ymfpci/ymfpci_main.c inst = (const __le32 *)chip->dsp_microcode->data; inst 2080 sound/pci/ymfpci/ymfpci_main.c le32_to_cpu(inst[i])); inst 2083 sound/pci/ymfpci/ymfpci_main.c inst = (const __le32 *)chip->controller_microcode->data; inst 2086 sound/pci/ymfpci/ymfpci_main.c le32_to_cpu(inst[i])); inst 716 sound/soc/intel/skylake/skl-topology.c struct skl_mod_inst_map *inst = kpb_params->u.map; inst 719 sound/soc/intel/skylake/skl-topology.c pvt_id = skl_get_pvt_instance_id_map(skl, inst->mod_id, inst 720 sound/soc/intel/skylake/skl-topology.c inst->inst_id); inst 724 sound/soc/intel/skylake/skl-topology.c inst->inst_id = pvt_id; inst 725 sound/soc/intel/skylake/skl-topology.c inst++; inst 622 tools/perf/util/dwarf-aux.c static int __die_walk_instances_cb(Dwarf_Die *inst, void *data) inst 631 tools/perf/util/dwarf-aux.c if (!die_is_func_instance(inst)) inst 634 tools/perf/util/dwarf-aux.c attr = dwarf_attr(inst, DW_AT_abstract_origin, &attr_mem); inst 643 tools/perf/util/dwarf-aux.c if (dwarf_tag(inst) == DW_TAG_inlined_subroutine) { inst 645 tools/perf/util/dwarf-aux.c if (die_get_call_lineno(inst) == tmp) { inst 647 tools/perf/util/dwarf-aux.c if (die_get_call_fileno(inst) == tmp) inst 652 tools/perf/util/dwarf-aux.c iwp->retval = iwp->callback(inst, iwp->data); inst 398 tools/thermal/tmon/sysfs.c int inst; inst 401 tools/thermal/tmon/sysfs.c inst = get_instance_id(namelist[n]->d_name, 1, inst 406 tools/thermal/tmon/sysfs.c if (inst > ptdata.max_cdev_instance) inst 407 tools/thermal/tmon/sysfs.c ptdata.max_cdev_instance = inst; inst 415 tools/thermal/tmon/sysfs.c inst = get_instance_id(namelist[n]->d_name, 1, inst 417 tools/thermal/tmon/sysfs.c if (inst > ptdata.max_tz_instance) inst 418 tools/thermal/tmon/sysfs.c ptdata.max_tz_instance = inst; inst 624 tools/thermal/tmon/tui.c int inst = ptdata.tzi[i].instance; inst 627 tools/thermal/tmon/tui.c TZ_LEFT_ALIGN+TZONE_RECORD_SIZE * inst, "%.9s%02d", inst 640 tools/thermal/tmon/tui.c inst * TZONE_RECORD_SIZE + TZ_LEFT_ALIGN + inst 643 tools/thermal/tmon/tui.c inst, j, type);