Lines Matching refs:ofs
924 unsigned long ofs = (mv_hardport_from_port(port) + 1) * 0x100UL; in mv5_phy_base() local
926 return hc_mmio + ofs; in mv5_phy_base()
1340 unsigned int ofs; in mv_scr_offset() local
1346 ofs = SATA_STATUS + (sc_reg_in * sizeof(u32)); in mv_scr_offset()
1349 ofs = SATA_ACTIVE; /* active is not with the others */ in mv_scr_offset()
1352 ofs = 0xffffffffU; in mv_scr_offset()
1355 return ofs; in mv_scr_offset()
1360 unsigned int ofs = mv_scr_offset(sc_reg_in); in mv_scr_read() local
1362 if (ofs != 0xffffffffU) { in mv_scr_read()
1363 *val = readl(mv_ap_base(link->ap) + ofs); in mv_scr_read()
1371 unsigned int ofs = mv_scr_offset(sc_reg_in); in mv_scr_write() local
1373 if (ofs != 0xffffffffU) { in mv_scr_write()
1374 void __iomem *addr = mv_ap_base(link->ap) + ofs; in mv_scr_write()
3055 unsigned int ofs; in mv5_scr_offset() local
3061 ofs = sc_reg_in * sizeof(u32); in mv5_scr_offset()
3064 ofs = 0xffffffffU; in mv5_scr_offset()
3067 return ofs; in mv5_scr_offset()
3075 unsigned int ofs = mv5_scr_offset(sc_reg_in); in mv5_scr_read() local
3077 if (ofs != 0xffffffffU) { in mv5_scr_read()
3078 *val = readl(addr + ofs); in mv5_scr_read()
3089 unsigned int ofs = mv5_scr_offset(sc_reg_in); in mv5_scr_write() local
3091 if (ofs != 0xffffffffU) { in mv5_scr_write()
3092 writelfl(val, addr + ofs); in mv5_scr_write()