Home
last modified time | relevance | path

Searched refs:tregs (Results 1 – 7 of 7) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/sun/
Dsunbmac.c256 static void idle_transceiver(void __iomem *tregs) in idle_transceiver() argument
261 sbus_writel(MGMT_CLKOFF, tregs + TCVR_MPAL); in idle_transceiver()
262 sbus_readl(tregs + TCVR_MPAL); in idle_transceiver()
263 sbus_writel(MGMT_CLKON, tregs + TCVR_MPAL); in idle_transceiver()
264 sbus_readl(tregs + TCVR_MPAL); in idle_transceiver()
268 static void write_tcvr_bit(struct bigmac *bp, void __iomem *tregs, int bit) in write_tcvr_bit() argument
273 tregs + TCVR_MPAL); in write_tcvr_bit()
274 sbus_readl(tregs + TCVR_MPAL); in write_tcvr_bit()
276 tregs + TCVR_MPAL); in write_tcvr_bit()
277 sbus_readl(tregs + TCVR_MPAL); in write_tcvr_bit()
[all …]
Dsunhme.c264 static void BB_PUT_BIT(struct happy_meal *hp, void __iomem *tregs, int bit) in BB_PUT_BIT() argument
266 hme_write32(hp, tregs + TCVR_BBDATA, bit); in BB_PUT_BIT()
267 hme_write32(hp, tregs + TCVR_BBCLOCK, 0); in BB_PUT_BIT()
268 hme_write32(hp, tregs + TCVR_BBCLOCK, 1); in BB_PUT_BIT()
272 static u32 BB_GET_BIT(struct happy_meal *hp, void __iomem *tregs, int internal)
276 hme_write32(hp, tregs + TCVR_BBCLOCK, 0);
277 hme_write32(hp, tregs + TCVR_BBCLOCK, 1);
278 ret = hme_read32(hp, tregs + TCVR_CFG);
288 static u32 BB_GET_BIT2(struct happy_meal *hp, void __iomem *tregs, int internal) in BB_GET_BIT2() argument
292 hme_write32(hp, tregs + TCVR_BBCLOCK, 0); in BB_GET_BIT2()
[all …]
Dsunbmac.h293 void __iomem *tregs; /* BigMAC Transceiver */ member
/linux-6.1.9/arch/m68k/kernel/
Dsignal.c93 struct pt_regs *tregs; in fixup_exception() local
102 tregs = (struct pt_regs *)((long)regs + regs->stkadj); in fixup_exception()
103 tregs->vector = regs->vector; in fixup_exception()
104 tregs->format = FORMAT; in fixup_exception()
105 tregs->pc = fixup->fixup; in fixup_exception()
106 tregs->sr = regs->sr; in fixup_exception()
815 struct pt_regs *tregs = rte_regs(regs); in setup_sigcontext() local
822 sc->sc_sr = tregs->sr; in setup_sigcontext()
823 sc->sc_pc = tregs->pc; in setup_sigcontext()
824 sc->sc_formatvec = tregs->format << 12 | tregs->vector; in setup_sigcontext()
[all …]
/linux-6.1.9/drivers/iio/magnetometer/
Dbmc150_magn.c362 static s32 bmc150_magn_compensate_x(struct bmc150_magn_trim_regs *tregs, s16 x, in bmc150_magn_compensate_x() argument
366 u16 xyz1 = le16_to_cpu(tregs->xyz1); in bmc150_magn_compensate_x()
375 val = ((s16)((((s32)x) * ((((((((s32)tregs->xy2) * ((((s32)val) * in bmc150_magn_compensate_x()
377 ((s32)(((s16)tregs->xy1) << 7)))) >> 9) + ((s32)0x100000)) * in bmc150_magn_compensate_x()
378 ((s32)(((s16)tregs->x2) + ((s16)0xA0)))) >> 12)) >> 13)) + in bmc150_magn_compensate_x()
379 (((s16)tregs->x1) << 3); in bmc150_magn_compensate_x()
384 static s32 bmc150_magn_compensate_y(struct bmc150_magn_trim_regs *tregs, s16 y, in bmc150_magn_compensate_y() argument
388 u16 xyz1 = le16_to_cpu(tregs->xyz1); in bmc150_magn_compensate_y()
397 val = ((s16)((((s32)y) * ((((((((s32)tregs->xy2) * ((((s32)val) * in bmc150_magn_compensate_y()
399 ((s32)(((s16)tregs->xy1) << 7)))) >> 9) + ((s32)0x100000)) * in bmc150_magn_compensate_y()
[all …]
/linux-6.1.9/arch/sparc/kernel/
Dstarfire.c40 unsigned long tregs[32]; member
67 p->tregs[i] = treg_base + (i * 0x10UL); in starfire_hookup()
69 if (upa_readl(p->tregs[i]) != 0) in starfire_hookup()
109 upa_writel(upaid, p->tregs[i]); in starfire_translate()
/linux-6.1.9/arch/sh/include/asm/
Dptrace.h59 {.name = __stringify(tr##num), .offset = offsetof(struct pt_regs, tregs[num])}