Lines Matching +full:read +full:- +full:to +full:- +full:read
1 /* SPDX-License-Identifier: GPL-2.0-only */
29 "Request-block error",
32 "Absolute address of channel-subsystem communication block exceeds 2G - 1.",
34 "Invalid channel-subsystem identification (CSSID)",
35 "The command-request block specified an invalid format for the command response block.",
36 "Invalid subchannel-set identification (SSID)",
44 if (h->code == CHSC_RSP_OK) in check_response()
47 if (h->code > CHSC_RSP_MAX) in check_response()
48 h->code = 0; in check_response()
50 report_abort("Response code %04x: %s", h->code, in check_response()
51 chsc_rsp_description[h->code]); in check_response()
59 h->code = code; in chsc()
60 h->len = len; in chsc()
148 if (!(pmcw->flags & PMCW_DNV)) in css_enumerate()
183 if (!(pmcw->flags & PMCW_ENABLE)) { in css_enabled()
192 * @isc : number of the interruption subclass to use
196 * or -1 if the retry count is exceeded.
205 /* Read the SCHIB for this subchannel */ in css_enable()
213 if ((pmcw->flags & (PMCW_ISC_MASK | PMCW_ENABLE)) == flags) { in css_enable()
219 /* Update the SCHIB to enable the channel and set the ISC */ in css_enable()
220 pmcw->flags &= ~PMCW_ISC_MASK; in css_enable()
221 pmcw->flags |= flags; in css_enable()
223 /* Tell the CSS we want to modify the subchannel */ in css_enable()
236 * Read the SCHIB again to verify the enablement in css_enable()
247 schid, retry_count, pmcw->flags); in css_enable()
248 return -1; in css_enable()
256 * @flags : PMCW_MBUE to enable measurement block update
257 * PMCW_DCTME to enable device connect time
258 * 0 to disable measurement
259 * @format1: set if format 1 is to be used
267 /* Read the SCHIB for this subchannel */ in schib_update_mb()
274 /* Update the SCHIB to enable the measurement block */ in schib_update_mb()
276 pmcw->flags |= flags; in schib_update_mb()
279 pmcw->flags2 |= PMCW_MBF1; in schib_update_mb()
281 pmcw->flags2 &= ~PMCW_MBF1; in schib_update_mb()
283 pmcw->mbi = mbi; in schib_update_mb()
286 pmcw->flags &= ~(PMCW_MBUE | PMCW_DCTME); in schib_update_mb()
289 /* Tell the CSS we want to modify the subchannel */ in schib_update_mb()
302 * Read the SCHIB again in schib_update_mb()
318 * @format1: set if format 1 is to be used
320 * @flags : PMCW_MBUE to enable measurement block update
321 * PMCW_DCTME to enable device connect time
329 while (retry_count-- && in css_enable_mb()
333 return schib.mbo == mb && pmcw->mbi == mbi; in css_enable_mb()
344 while (retry_count-- && in css_disable_mb()
412 ccw->code = code; in ccw_alloc()
413 ccw->flags = flags; in ccw_alloc()
414 ccw->count = count; in ccw_alloc()
415 ccw->data_address = (int)(unsigned long)data; in ccw_alloc()
423 * Makes the most common check to validate a successful I/O
438 ret = -1; in wait_and_check_io_completion()
446 ret = -1; in wait_and_check_io_completion()
453 ret = -1; in wait_and_check_io_completion()
460 ret = -1; in wait_and_check_io_completion()
466 ret = -1; in wait_and_check_io_completion()
481 * Not meaningful: -1 (-1 can not be a valid count)
487 return -1; in css_residual_count()
491 return -1; in css_residual_count()
510 return schib->pmcw.pim & BIT(7 - chp_idx); in is_path_installed()
515 * @sid: subsystem-identification word
518 * returns 0 on success, -1 if no chpid found any other value
538 return -1; in css_find_installed_chpid()
543 * @sid: subsystem-identification word
545 * returns 0 when a CRW was generated, -1 if no chpid found.
557 return -1; in css_generate_crw()