Lines Matching refs:cc

18 static inline void zpci_err_insn(u8 cc, u8 status, u64 req, u64 offset)  in zpci_err_insn()  argument
23 u8 cc; in zpci_err_insn() member
25 } __packed data = {req, offset, cc, status}; in zpci_err_insn()
33 u8 cc; in __mpcifc() local
39 : [cc] "=d" (cc), [req] "+d" (req), [fib] "+Q" (*fib) in __mpcifc()
42 return cc; in __mpcifc()
47 u8 cc; in zpci_mod_fc() local
50 cc = __mpcifc(req, fib, status); in zpci_mod_fc()
51 if (cc == 2) in zpci_mod_fc()
53 } while (cc == 2); in zpci_mod_fc()
55 if (cc) in zpci_mod_fc()
56 zpci_err_insn(cc, *status, req, 0); in zpci_mod_fc()
58 return cc; in zpci_mod_fc()
66 u8 cc; in __rpcit() local
72 : [cc] "=d" (cc), [fn] "+d" (fn) in __rpcit()
76 return cc; in __rpcit()
81 u8 cc, status; in zpci_refresh_trans() local
84 cc = __rpcit(fn, addr, range, &status); in zpci_refresh_trans()
85 if (cc == 2) in zpci_refresh_trans()
87 } while (cc == 2); in zpci_refresh_trans()
89 if (cc) in zpci_refresh_trans()
90 zpci_err_insn(cc, status, addr, range); in zpci_refresh_trans()
92 if (cc == 1 && (status == 4 || status == 16)) in zpci_refresh_trans()
95 return (cc) ? -EIO : 0; in zpci_refresh_trans()
114 int cc = -ENXIO; in ____pcilg() local
123 : [cc] "+d" (cc), [data] "=d" (__data), [req] "+d" (__req) in ____pcilg()
128 return cc; in ____pcilg()
134 int cc; in __pcilg() local
136 cc = ____pcilg(&__data, req, offset, status); in __pcilg()
137 if (!cc) in __pcilg()
140 return cc; in __pcilg()
146 int cc; in zpci_load() local
149 cc = __pcilg(data, req, offset, &status); in zpci_load()
150 if (cc == 2) in zpci_load()
152 } while (cc == 2); in zpci_load()
154 if (cc) in zpci_load()
155 zpci_err_insn(cc, status, req, offset); in zpci_load()
157 return (cc > 0) ? -EIO : cc; in zpci_load()
166 int cc = -ENXIO; in __pcistg() local
174 : [cc] "+d" (cc), [req] "+d" (__req) in __pcistg()
178 return cc; in __pcistg()
184 int cc; in zpci_store() local
187 cc = __pcistg(data, req, offset, &status); in zpci_store()
188 if (cc == 2) in zpci_store()
190 } while (cc == 2); in zpci_store()
192 if (cc) in zpci_store()
193 zpci_err_insn(cc, status, req, offset); in zpci_store()
195 return (cc > 0) ? -EIO : cc; in zpci_store()
202 int cc = -ENXIO; in __pcistb() local
210 : [cc] "+d" (cc), [req] "+d" (req) in __pcistb()
214 return cc; in __pcistb()
220 int cc; in zpci_store_block() local
223 cc = __pcistb(data, req, offset, &status); in zpci_store_block()
224 if (cc == 2) in zpci_store_block()
226 } while (cc == 2); in zpci_store_block()
228 if (cc) in zpci_store_block()
229 zpci_err_insn(cc, status, req, offset); in zpci_store_block()
231 return (cc > 0) ? -EIO : cc; in zpci_store_block()