Home
last modified time | relevance | path

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

/drivers/net/ethernet/sun/
Dsunbmac.c255 static void idle_transceiver(void __iomem *tregs) in idle_transceiver() argument
260 sbus_writel(MGMT_CLKOFF, tregs + TCVR_MPAL); in idle_transceiver()
261 sbus_readl(tregs + TCVR_MPAL); in idle_transceiver()
262 sbus_writel(MGMT_CLKON, tregs + TCVR_MPAL); in idle_transceiver()
263 sbus_readl(tregs + TCVR_MPAL); in idle_transceiver()
267 static void write_tcvr_bit(struct bigmac *bp, void __iomem *tregs, int bit) in write_tcvr_bit() argument
272 tregs + TCVR_MPAL); in write_tcvr_bit()
273 sbus_readl(tregs + TCVR_MPAL); in write_tcvr_bit()
275 tregs + TCVR_MPAL); in write_tcvr_bit()
276 sbus_readl(tregs + TCVR_MPAL); in write_tcvr_bit()
[all …]
Dsunhme.c321 static void BB_PUT_BIT(struct happy_meal *hp, void __iomem *tregs, int bit) in BB_PUT_BIT() argument
323 hme_write32(hp, tregs + TCVR_BBDATA, bit); in BB_PUT_BIT()
324 hme_write32(hp, tregs + TCVR_BBCLOCK, 0); in BB_PUT_BIT()
325 hme_write32(hp, tregs + TCVR_BBCLOCK, 1); in BB_PUT_BIT()
329 static u32 BB_GET_BIT(struct happy_meal *hp, void __iomem *tregs, int internal)
333 hme_write32(hp, tregs + TCVR_BBCLOCK, 0);
334 hme_write32(hp, tregs + TCVR_BBCLOCK, 1);
335 ret = hme_read32(hp, tregs + TCVR_CFG);
345 static u32 BB_GET_BIT2(struct happy_meal *hp, void __iomem *tregs, int internal) in BB_GET_BIT2() argument
349 hme_write32(hp, tregs + TCVR_BBCLOCK, 0); in BB_GET_BIT2()
[all …]
Dsunbmac.h292 void __iomem *tregs; /* BigMAC Transceiver */ member
/drivers/iio/magnetometer/
Dbmc150_magn.c367 static s32 bmc150_magn_compensate_x(struct bmc150_magn_trim_regs *tregs, s16 x, in bmc150_magn_compensate_x() argument
371 u16 xyz1 = le16_to_cpu(tregs->xyz1); in bmc150_magn_compensate_x()
380 val = ((s16)((((s32)x) * ((((((((s32)tregs->xy2) * ((((s32)val) * in bmc150_magn_compensate_x()
382 ((s32)(((s16)tregs->xy1) << 7)))) >> 9) + ((s32)0x100000)) * in bmc150_magn_compensate_x()
383 ((s32)(((s16)tregs->x2) + ((s16)0xA0)))) >> 12)) >> 13)) + in bmc150_magn_compensate_x()
384 (((s16)tregs->x1) << 3); in bmc150_magn_compensate_x()
389 static s32 bmc150_magn_compensate_y(struct bmc150_magn_trim_regs *tregs, s16 y, in bmc150_magn_compensate_y() argument
393 u16 xyz1 = le16_to_cpu(tregs->xyz1); in bmc150_magn_compensate_y()
402 val = ((s16)((((s32)y) * ((((((((s32)tregs->xy2) * ((((s32)val) * in bmc150_magn_compensate_y()
404 ((s32)(((s16)tregs->xy1) << 7)))) >> 9) + ((s32)0x100000)) * in bmc150_magn_compensate_y()
[all …]