Lines Matching refs:cc

20 static inline void zpci_err_insn(u8 cc, u8 status, u64 req, u64 offset)  in zpci_err_insn()  argument
25 u8 cc; in zpci_err_insn() member
27 } __packed data = {req, offset, cc, status}; in zpci_err_insn()
35 u8 cc; in __mpcifc() local
41 : [cc] "=d" (cc), [req] "+d" (req), [fib] "+Q" (*fib) in __mpcifc()
44 return cc; in __mpcifc()
49 u8 cc; in zpci_mod_fc() local
52 cc = __mpcifc(req, fib, status); in zpci_mod_fc()
53 if (cc == 2) in zpci_mod_fc()
55 } while (cc == 2); in zpci_mod_fc()
57 if (cc) in zpci_mod_fc()
58 zpci_err_insn(cc, *status, req, 0); in zpci_mod_fc()
60 return cc; in zpci_mod_fc()
67 u8 cc; in __rpcit() local
73 : [cc] "=d" (cc), [fn] "+d" (fn) in __rpcit()
77 return cc; in __rpcit()
82 u8 cc, status; in zpci_refresh_trans() local
85 cc = __rpcit(fn, addr, range, &status); in zpci_refresh_trans()
86 if (cc == 2) in zpci_refresh_trans()
88 } while (cc == 2); in zpci_refresh_trans()
90 if (cc) in zpci_refresh_trans()
91 zpci_err_insn(cc, status, addr, range); in zpci_refresh_trans()
93 if (cc == 1 && (status == 4 || status == 16)) in zpci_refresh_trans()
96 return (cc) ? -EIO : 0; in zpci_refresh_trans()
116 int cc = -ENXIO; in ____pcilg() local
125 : [cc] "+d" (cc), [data] "=d" (__data), in ____pcilg()
129 return cc; in ____pcilg()
135 int cc; in __pcilg() local
137 cc = ____pcilg(&__data, req, offset, status); in __pcilg()
138 if (!cc) in __pcilg()
141 return cc; in __pcilg()
147 int cc; in __zpci_load() local
150 cc = __pcilg(data, req, offset, &status); in __zpci_load()
151 if (cc == 2) in __zpci_load()
153 } while (cc == 2); in __zpci_load()
155 if (cc) in __zpci_load()
156 zpci_err_insn(cc, status, req, offset); in __zpci_load()
158 return (cc > 0) ? -EIO : cc; in __zpci_load()
174 int cc = -ENXIO; in __pcilg_mio() local
183 : [cc] "+d" (cc), [data] "=d" (__data), in __pcilg_mio()
187 return cc; in __pcilg_mio()
193 int cc; in zpci_load() local
198 cc = __pcilg_mio(data, (__force u64) addr, len, &status); in zpci_load()
199 if (cc) in zpci_load()
200 zpci_err_insn(cc, status, 0, (__force u64) addr); in zpci_load()
202 return (cc > 0) ? -EIO : cc; in zpci_load()
210 int cc = -ENXIO; in __pcistg() local
218 : [cc] "+d" (cc), [req_off] "+&d" (req_off.pair) in __pcistg()
222 return cc; in __pcistg()
228 int cc; in __zpci_store() local
231 cc = __pcistg(data, req, offset, &status); in __zpci_store()
232 if (cc == 2) in __zpci_store()
234 } while (cc == 2); in __zpci_store()
236 if (cc) in __zpci_store()
237 zpci_err_insn(cc, status, req, offset); in __zpci_store()
239 return (cc > 0) ? -EIO : cc; in __zpci_store()
255 int cc = -ENXIO; in __pcistg_mio() local
263 : [cc] "+d" (cc), [ioaddr_len] "+&d" (ioaddr_len.pair) in __pcistg_mio()
267 return cc; in __pcistg_mio()
273 int cc; in zpci_store() local
278 cc = __pcistg_mio(data, (__force u64) addr, len, &status); in zpci_store()
279 if (cc) in zpci_store()
280 zpci_err_insn(cc, status, 0, (__force u64) addr); in zpci_store()
282 return (cc > 0) ? -EIO : cc; in zpci_store()
289 int cc = -ENXIO; in __pcistb() local
297 : [cc] "+d" (cc), [req] "+d" (req) in __pcistb()
301 return cc; in __pcistb()
307 int cc; in __zpci_store_block() local
310 cc = __pcistb(data, req, offset, &status); in __zpci_store_block()
311 if (cc == 2) in __zpci_store_block()
313 } while (cc == 2); in __zpci_store_block()
315 if (cc) in __zpci_store_block()
316 zpci_err_insn(cc, status, req, offset); in __zpci_store_block()
318 return (cc > 0) ? -EIO : cc; in __zpci_store_block()
334 int cc = -ENXIO; in __pcistb_mio() local
342 : [cc] "+d" (cc), [len] "+d" (len) in __pcistb_mio()
346 return cc; in __pcistb_mio()
353 int cc; in zpci_write_block() local
358 cc = __pcistb_mio(src, (__force u64) dst, len, &status); in zpci_write_block()
359 if (cc) in zpci_write_block()
360 zpci_err_insn(cc, status, 0, (__force u64) dst); in zpci_write_block()
362 return (cc > 0) ? -EIO : cc; in zpci_write_block()