Lines Matching refs:xtmr_inject

50 static inline void xtmr_inject_write(struct xtmr_inject_dev *xtmr_inject,  in xtmr_inject_write()  argument
53 iowrite32(value, xtmr_inject->regs + addr); in xtmr_inject_write()
56 static inline u32 xtmr_inject_read(struct xtmr_inject_dev *xtmr_inject, in xtmr_inject_read() argument
59 return ioread32(xtmr_inject->regs + addr); in xtmr_inject_read()
72 static void xtmr_init_debugfs(struct xtmr_inject_dev *xtmr_inject) in xtmr_init_debugfs() argument
83 static void xtmr_inject_init(struct xtmr_inject_dev *xtmr_inject) in xtmr_inject_init() argument
90 cr_val = xtmr_inject->magic | in xtmr_inject_init()
93 xtmr_inject_write(xtmr_inject, XTMR_INJECT_CR_OFFSET, in xtmr_inject_init()
96 xtmr_inject_write(xtmr_inject, XTMR_INJECT_AIR_OFFSET, in xtmr_inject_init()
98 xtmr_inject_write(xtmr_inject, XTMR_INJECT_IIR_OFFSET, in xtmr_inject_init()
113 struct xtmr_inject_dev *xtmr_inject; in xtmr_inject_probe() local
116 xtmr_inject = devm_kzalloc(&pdev->dev, sizeof(*xtmr_inject), in xtmr_inject_probe()
118 if (!xtmr_inject) in xtmr_inject_probe()
121 xtmr_inject->regs = devm_platform_ioremap_resource(pdev, 0); in xtmr_inject_probe()
122 if (IS_ERR(xtmr_inject->regs)) in xtmr_inject_probe()
123 return PTR_ERR(xtmr_inject->regs); in xtmr_inject_probe()
126 &xtmr_inject->magic); in xtmr_inject_probe()
132 if (xtmr_inject->magic > XTMR_INJECT_MAGIC_MAX_VAL) { in xtmr_inject_probe()
138 xtmr_inject_init(xtmr_inject); in xtmr_inject_probe()
140 xtmr_init_debugfs(xtmr_inject); in xtmr_inject_probe()
142 platform_set_drvdata(pdev, xtmr_inject); in xtmr_inject_probe()