Lines Matching refs:reg

138 	__be32 reg;  in hub_master_link_enable()  local
144 reg = cpu_to_be32(0x80000000 >> bit); in hub_master_link_enable()
146 rc = fsi_device_write(hub->upstream, FSI_MSENP0 + (4 * idx), &reg, 4); in hub_master_link_enable()
150 fsi_device_read(hub->upstream, FSI_MENP0 + (4 * idx), &reg, 4); in hub_master_link_enable()
176 __be32 reg; in hub_master_init() local
179 reg = cpu_to_be32(FSI_MRESP_RST_ALL_MASTER | FSI_MRESP_RST_ALL_LINK in hub_master_init()
181 rc = fsi_device_write(dev, FSI_MRESP0, &reg, sizeof(reg)); in hub_master_init()
186 reg = cpu_to_be32(FSI_MRESP_RST_ALL_MASTER | FSI_MRESP_RST_ALL_LINK in hub_master_init()
188 rc = fsi_device_write(dev, FSI_MRESP0, &reg, sizeof(reg)); in hub_master_init()
192 reg = cpu_to_be32(FSI_MECTRL_EOAE | FSI_MECTRL_P8_AUTO_TERM); in hub_master_init()
193 rc = fsi_device_write(dev, FSI_MECTRL, &reg, sizeof(reg)); in hub_master_init()
197 reg = cpu_to_be32(FSI_MMODE_EIP | FSI_MMODE_ECRC | FSI_MMODE_EPC in hub_master_init()
200 rc = fsi_device_write(dev, FSI_MMODE, &reg, sizeof(reg)); in hub_master_init()
204 reg = cpu_to_be32(0xffff0000); in hub_master_init()
205 rc = fsi_device_write(dev, FSI_MDLYR, &reg, sizeof(reg)); in hub_master_init()
209 reg = cpu_to_be32(~0); in hub_master_init()
210 rc = fsi_device_write(dev, FSI_MSENP0, &reg, sizeof(reg)); in hub_master_init()
217 rc = fsi_device_write(dev, FSI_MCENP0, &reg, sizeof(reg)); in hub_master_init()
221 rc = fsi_device_read(dev, FSI_MAEB, &reg, sizeof(reg)); in hub_master_init()
225 reg = cpu_to_be32(FSI_MRESP_RST_ALL_MASTER | FSI_MRESP_RST_ALL_LINK); in hub_master_init()
226 rc = fsi_device_write(dev, FSI_MRESP0, &reg, sizeof(reg)); in hub_master_init()
230 rc = fsi_device_read(dev, FSI_MLEVP0, &reg, sizeof(reg)); in hub_master_init()
235 reg = cpu_to_be32(FSI_MRESB_RST_GEN); in hub_master_init()
236 rc = fsi_device_write(dev, FSI_MRESB0, &reg, sizeof(reg)); in hub_master_init()
240 reg = cpu_to_be32(FSI_MRESB_RST_ERR); in hub_master_init()
241 return fsi_device_write(dev, FSI_MRESB0, &reg, sizeof(reg)); in hub_master_init()
248 uint32_t reg, links; in hub_master_probe() local
256 reg = be32_to_cpu(__reg); in hub_master_probe()
257 links = (reg >> 8) & 0xff; in hub_master_probe()
258 dev_dbg(dev, "hub version %08x (%d links)\n", reg, links); in hub_master_probe()