Lines Matching refs:efuse
68 static int do_prog_efuse(struct mvebu_hd_efuse *efuse, in do_prog_efuse() argument
73 val.dwords.d[0] = readl(&efuse->bits_31_0); in do_prog_efuse()
74 val.dwords.d[1] = readl(&efuse->bits_63_32); in do_prog_efuse()
75 val.lock = readl(&efuse->bit64); in do_prog_efuse()
84 writel(val.dwords.d[0], &efuse->bits_31_0); in do_prog_efuse()
86 writel(val.dwords.d[1], &efuse->bits_63_32); in do_prog_efuse()
88 writel(val.lock, &efuse->bit64); in do_prog_efuse()
96 struct mvebu_hd_efuse *efuse; in prog_efuse() local
103 efuse = get_efuse_line(nr); in prog_efuse()
104 if (!efuse) in prog_efuse()
123 res = do_prog_efuse(efuse, new_val, mask0, mask1); in prog_efuse()
150 struct mvebu_hd_efuse *efuse; in mvebu_read_efuse() local
157 efuse = get_efuse_line(nr); in mvebu_read_efuse()
158 if (!efuse) in mvebu_read_efuse()
164 val->dwords.d[0] = readl(&efuse->bits_31_0); in mvebu_read_efuse()
165 val->dwords.d[1] = readl(&efuse->bits_63_32); in mvebu_read_efuse()
166 val->lock = readl(&efuse->bit64); in mvebu_read_efuse()