Lines Matching refs:read_val

40 	u64 read_val, tmp_val;  in thunder_pem_bridge_read()  local
52 read_val = where & ~3ull; in thunder_pem_bridge_read()
53 writeq(read_val, pem_pci->pem_reg_base + PEM_CFG_RD); in thunder_pem_bridge_read()
54 read_val = readq(pem_pci->pem_reg_base + PEM_CFG_RD); in thunder_pem_bridge_read()
55 read_val >>= 32; in thunder_pem_bridge_read()
63 read_val &= 0xffff00ff; in thunder_pem_bridge_read()
64 read_val |= 0x00007000; /* Skip MSI CAP */ in thunder_pem_bridge_read()
71 if (!(read_val & (0x1f << 25))) in thunder_pem_bridge_read()
72 read_val |= (2u << 25); in thunder_pem_bridge_read()
76 read_val &= 0xc00000ff; in thunder_pem_bridge_read()
86 read_val |= 0x0003bc00; in thunder_pem_bridge_read()
88 read_val |= 0x0001bc00; in thunder_pem_bridge_read()
92 read_val = 0x00000000; in thunder_pem_bridge_read()
96 read_val = 0x000f0000; in thunder_pem_bridge_read()
100 read_val = 0x00010014; in thunder_pem_bridge_read()
104 read_val = 0x00000000; in thunder_pem_bridge_read()
108 read_val = 0x80ff0003; in thunder_pem_bridge_read()
111 read_val = pem_pci->ea_entry[0]; in thunder_pem_bridge_read()
114 read_val = pem_pci->ea_entry[1]; in thunder_pem_bridge_read()
117 read_val = pem_pci->ea_entry[2]; in thunder_pem_bridge_read()
122 read_val >>= (8 * (where & 3)); in thunder_pem_bridge_read()
125 read_val &= 0xff; in thunder_pem_bridge_read()
128 read_val &= 0xffff; in thunder_pem_bridge_read()
133 *val = read_val; in thunder_pem_bridge_read()
218 u64 write_val, read_val; in thunder_pem_bridge_write() local
235 read_val = readq(pem_pci->pem_reg_base + PEM_CFG_RD); in thunder_pem_bridge_write()
236 read_val >>= 32; in thunder_pem_bridge_write()
238 read_val &= mask; in thunder_pem_bridge_write()
240 val |= (u32)read_val; in thunder_pem_bridge_write()
244 read_val = readq(pem_pci->pem_reg_base + PEM_CFG_RD); in thunder_pem_bridge_write()
245 read_val >>= 32; in thunder_pem_bridge_write()
247 read_val &= mask; in thunder_pem_bridge_write()
249 val |= (u32)read_val; in thunder_pem_bridge_write()