css.c (db736e0437aa6fd7c1b7e4599c17f9619ab6b837) | css.c (46ea3841edaff2a7657b8f6c7f474e5e3850cd62) |
---|---|
1/* 2 * Channel subsystem base support. 3 * 4 * Copyright 2012 IBM Corp. 5 * Author(s): Cornelia Huck <cornelia.huck@de.ibm.com> 6 * 7 * This work is licensed under the terms of the GNU GPL, version 2 or (at 8 * your option) any later version. See the COPYING file in the top-level --- 1321 unchanged lines hidden (view full) --- 1330 copy_scsw_to_guest(&dest_scsw, &src_scsw); 1331 dest->scsw = dest_scsw; 1332 dest->mba = cpu_to_be64(src->mba); 1333 for (i = 0; i < ARRAY_SIZE(dest->mda); i++) { 1334 dest->mda[i] = src->mda[i]; 1335 } 1336} 1337 | 1/* 2 * Channel subsystem base support. 3 * 4 * Copyright 2012 IBM Corp. 5 * Author(s): Cornelia Huck <cornelia.huck@de.ibm.com> 6 * 7 * This work is licensed under the terms of the GNU GPL, version 2 or (at 8 * your option) any later version. See the COPYING file in the top-level --- 1321 unchanged lines hidden (view full) --- 1330 copy_scsw_to_guest(&dest_scsw, &src_scsw); 1331 dest->scsw = dest_scsw; 1332 dest->mba = cpu_to_be64(src->mba); 1333 for (i = 0; i < ARRAY_SIZE(dest->mda); i++) { 1334 dest->mda[i] = src->mda[i]; 1335 } 1336} 1337 |
1338int css_do_stsch(SubchDev *sch, SCHIB *schib) | 1338IOInstEnding css_do_stsch(SubchDev *sch, SCHIB *schib) |
1339{ | 1339{ |
1340 int ret; 1341 1342 /* 1343 * For some subchannels, we may want to update parts of 1344 * the schib (e.g., update path masks from the host device 1345 * for passthrough subchannels). 1346 */ 1347 ret = s390_ccw_store(sch); 1348 |
|
1340 /* Use current status. */ 1341 copy_schib_to_guest(schib, &sch->curr_status); | 1349 /* Use current status. */ 1350 copy_schib_to_guest(schib, &sch->curr_status); |
1342 return 0; | 1351 return ret; |
1343} 1344 1345static void copy_pmcw_from_guest(PMCW *dest, const PMCW *src) 1346{ 1347 int i; 1348 1349 dest->intparm = be32_to_cpu(src->intparm); 1350 dest->flags = be16_to_cpu(src->flags); --- 1241 unchanged lines hidden --- | 1352} 1353 1354static void copy_pmcw_from_guest(PMCW *dest, const PMCW *src) 1355{ 1356 int i; 1357 1358 dest->intparm = be32_to_cpu(src->intparm); 1359 dest->flags = be16_to_cpu(src->flags); --- 1241 unchanged lines hidden --- |