Lines Matching refs:cc

23 	u8 cc;  member
37 static inline void zpci_err_insn_req(int lvl, u8 insn, u8 cc, u8 status, in zpci_err_insn_req() argument
41 .insn = insn, .cc = cc, .status = status, in zpci_err_insn_req()
47 static inline void zpci_err_insn_addr(int lvl, u8 insn, u8 cc, u8 status, in zpci_err_insn_addr() argument
51 .insn = insn, .cc = cc, .status = status, in zpci_err_insn_addr()
60 u8 cc; in __mpcifc() local
66 : [cc] "=d" (cc), [req] "+d" (req), [fib] "+Q" (*fib) in __mpcifc()
69 return cc; in __mpcifc()
75 u8 cc; in zpci_mod_fc() local
78 cc = __mpcifc(req, fib, status); in zpci_mod_fc()
79 if (cc == 2) { in zpci_mod_fc()
82 zpci_err_insn_req(1, 'M', cc, *status, req, 0); in zpci_mod_fc()
86 } while (cc == 2); in zpci_mod_fc()
88 if (cc) in zpci_mod_fc()
89 zpci_err_insn_req(0, 'M', cc, *status, req, 0); in zpci_mod_fc()
91 zpci_err_insn_req(1, 'M', cc, *status, req, 0); in zpci_mod_fc()
93 return cc; in zpci_mod_fc()
101 u8 cc; in __rpcit() local
107 : [cc] "=d" (cc), [fn] "+d" (fn) in __rpcit()
111 return cc; in __rpcit()
117 u8 cc, status; in zpci_refresh_trans() local
120 cc = __rpcit(fn, addr, range, &status); in zpci_refresh_trans()
121 if (cc == 2) { in zpci_refresh_trans()
124 zpci_err_insn_addr(1, 'R', cc, status, addr, range); in zpci_refresh_trans()
128 } while (cc == 2); in zpci_refresh_trans()
130 if (cc) in zpci_refresh_trans()
131 zpci_err_insn_addr(0, 'R', cc, status, addr, range); in zpci_refresh_trans()
133 zpci_err_insn_addr(1, 'R', cc, status, addr, range); in zpci_refresh_trans()
135 if (cc == 1 && (status == 4 || status == 16)) in zpci_refresh_trans()
138 return (cc) ? -EIO : 0; in zpci_refresh_trans()
159 int cc = -ENXIO; in ____pcilg() local
168 : [cc] "+d" (cc), [data] "=d" (__data), in ____pcilg()
172 return cc; in ____pcilg()
178 int cc; in __pcilg() local
180 cc = ____pcilg(&__data, req, offset, status); in __pcilg()
181 if (!cc) in __pcilg()
184 return cc; in __pcilg()
191 int cc; in __zpci_load() local
194 cc = __pcilg(data, req, offset, &status); in __zpci_load()
195 if (cc == 2) { in __zpci_load()
198 zpci_err_insn_req(1, 'l', cc, status, req, offset); in __zpci_load()
202 } while (cc == 2); in __zpci_load()
204 if (cc) in __zpci_load()
205 zpci_err_insn_req(0, 'l', cc, status, req, offset); in __zpci_load()
207 zpci_err_insn_req(1, 'l', cc, status, req, offset); in __zpci_load()
209 return (cc > 0) ? -EIO : cc; in __zpci_load()
225 int cc = -ENXIO; in __pcilg_mio() local
234 : [cc] "+d" (cc), [data] "=d" (__data), in __pcilg_mio()
238 return cc; in __pcilg_mio()
244 int cc; in zpci_load() local
249 cc = __pcilg_mio(data, (__force u64) addr, len, &status); in zpci_load()
250 if (cc) in zpci_load()
251 zpci_err_insn_addr(0, 'L', cc, status, (__force u64) addr, len); in zpci_load()
253 return (cc > 0) ? -EIO : cc; in zpci_load()
261 int cc = -ENXIO; in __pcistg() local
269 : [cc] "+d" (cc), [req_off] "+&d" (req_off.pair) in __pcistg()
273 return cc; in __pcistg()
280 int cc; in __zpci_store() local
283 cc = __pcistg(data, req, offset, &status); in __zpci_store()
284 if (cc == 2) { in __zpci_store()
287 zpci_err_insn_req(1, 's', cc, status, req, offset); in __zpci_store()
291 } while (cc == 2); in __zpci_store()
293 if (cc) in __zpci_store()
294 zpci_err_insn_req(0, 's', cc, status, req, offset); in __zpci_store()
296 zpci_err_insn_req(1, 's', cc, status, req, offset); in __zpci_store()
298 return (cc > 0) ? -EIO : cc; in __zpci_store()
314 int cc = -ENXIO; in __pcistg_mio() local
322 : [cc] "+d" (cc), [ioaddr_len] "+&d" (ioaddr_len.pair) in __pcistg_mio()
326 return cc; in __pcistg_mio()
332 int cc; in zpci_store() local
337 cc = __pcistg_mio(data, (__force u64) addr, len, &status); in zpci_store()
338 if (cc) in zpci_store()
339 zpci_err_insn_addr(0, 'S', cc, status, (__force u64) addr, len); in zpci_store()
341 return (cc > 0) ? -EIO : cc; in zpci_store()
348 int cc = -ENXIO; in __pcistb() local
356 : [cc] "+d" (cc), [req] "+d" (req) in __pcistb()
360 return cc; in __pcistb()
367 int cc; in __zpci_store_block() local
370 cc = __pcistb(data, req, offset, &status); in __zpci_store_block()
371 if (cc == 2) { in __zpci_store_block()
374 zpci_err_insn_req(0, 'b', cc, status, req, offset); in __zpci_store_block()
378 } while (cc == 2); in __zpci_store_block()
380 if (cc) in __zpci_store_block()
381 zpci_err_insn_req(0, 'b', cc, status, req, offset); in __zpci_store_block()
383 zpci_err_insn_req(1, 'b', cc, status, req, offset); in __zpci_store_block()
385 return (cc > 0) ? -EIO : cc; in __zpci_store_block()
401 int cc = -ENXIO; in __pcistb_mio() local
409 : [cc] "+d" (cc), [len] "+d" (len) in __pcistb_mio()
413 return cc; in __pcistb_mio()
420 int cc; in zpci_write_block() local
425 cc = __pcistb_mio(src, (__force u64) dst, len, &status); in zpci_write_block()
426 if (cc) in zpci_write_block()
427 zpci_err_insn_addr(0, 'B', cc, status, (__force u64) dst, len); in zpci_write_block()
429 return (cc > 0) ? -EIO : cc; in zpci_write_block()