Lines Matching refs:dest

757 static void copy_sense_id_to_guest(uint8_t *dest, SenseId *src)  in copy_sense_id_to_guest()  argument
761 dest[0] = src->reserved; in copy_sense_id_to_guest()
762 stw_be_p(dest + 1, src->cu_type); in copy_sense_id_to_guest()
763 dest[3] = src->cu_model; in copy_sense_id_to_guest()
764 stw_be_p(dest + 4, src->dev_type); in copy_sense_id_to_guest()
765 dest[6] = src->dev_model; in copy_sense_id_to_guest()
766 dest[7] = src->unused; in copy_sense_id_to_guest()
768 dest[8 + i * 4] = src->ciw[i].type; in copy_sense_id_to_guest()
769 dest[9 + i * 4] = src->ciw[i].command; in copy_sense_id_to_guest()
770 stw_be_p(dest + 10 + i * 4, src->ciw[i].count); in copy_sense_id_to_guest()
1317 static void copy_pmcw_to_guest(PMCW *dest, const PMCW *src) in copy_pmcw_to_guest() argument
1321 dest->intparm = cpu_to_be32(src->intparm); in copy_pmcw_to_guest()
1322 dest->flags = cpu_to_be16(src->flags); in copy_pmcw_to_guest()
1323 dest->devno = cpu_to_be16(src->devno); in copy_pmcw_to_guest()
1324 dest->lpm = src->lpm; in copy_pmcw_to_guest()
1325 dest->pnom = src->pnom; in copy_pmcw_to_guest()
1326 dest->lpum = src->lpum; in copy_pmcw_to_guest()
1327 dest->pim = src->pim; in copy_pmcw_to_guest()
1328 dest->mbi = cpu_to_be16(src->mbi); in copy_pmcw_to_guest()
1329 dest->pom = src->pom; in copy_pmcw_to_guest()
1330 dest->pam = src->pam; in copy_pmcw_to_guest()
1331 for (i = 0; i < ARRAY_SIZE(dest->chpid); i++) { in copy_pmcw_to_guest()
1332 dest->chpid[i] = src->chpid[i]; in copy_pmcw_to_guest()
1334 dest->chars = cpu_to_be32(src->chars); in copy_pmcw_to_guest()
1337 void copy_scsw_to_guest(SCSW *dest, const SCSW *src) in copy_scsw_to_guest() argument
1339 dest->flags = cpu_to_be16(src->flags); in copy_scsw_to_guest()
1340 dest->ctrl = cpu_to_be16(src->ctrl); in copy_scsw_to_guest()
1341 dest->cpa = cpu_to_be32(src->cpa); in copy_scsw_to_guest()
1342 dest->dstat = src->dstat; in copy_scsw_to_guest()
1343 dest->cstat = src->cstat; in copy_scsw_to_guest()
1344 dest->count = cpu_to_be16(src->count); in copy_scsw_to_guest()
1347 static void copy_schib_to_guest(SCHIB *dest, const SCHIB *src) in copy_schib_to_guest() argument
1359 dest->pmcw = dest_pmcw; in copy_schib_to_guest()
1362 dest->scsw = dest_scsw; in copy_schib_to_guest()
1363 dest->mba = cpu_to_be64(src->mba); in copy_schib_to_guest()
1364 for (i = 0; i < ARRAY_SIZE(dest->mda); i++) { in copy_schib_to_guest()
1365 dest->mda[i] = src->mda[i]; in copy_schib_to_guest()
1369 void copy_esw_to_guest(ESW *dest, const ESW *src) in copy_esw_to_guest() argument
1371 dest->word0 = cpu_to_be32(src->word0); in copy_esw_to_guest()
1372 dest->erw = cpu_to_be32(src->erw); in copy_esw_to_guest()
1373 dest->word2 = cpu_to_be64(src->word2); in copy_esw_to_guest()
1374 dest->word4 = cpu_to_be32(src->word4); in copy_esw_to_guest()
1393 static void copy_pmcw_from_guest(PMCW *dest, const PMCW *src) in copy_pmcw_from_guest() argument
1397 dest->intparm = be32_to_cpu(src->intparm); in copy_pmcw_from_guest()
1398 dest->flags = be16_to_cpu(src->flags); in copy_pmcw_from_guest()
1399 dest->devno = be16_to_cpu(src->devno); in copy_pmcw_from_guest()
1400 dest->lpm = src->lpm; in copy_pmcw_from_guest()
1401 dest->pnom = src->pnom; in copy_pmcw_from_guest()
1402 dest->lpum = src->lpum; in copy_pmcw_from_guest()
1403 dest->pim = src->pim; in copy_pmcw_from_guest()
1404 dest->mbi = be16_to_cpu(src->mbi); in copy_pmcw_from_guest()
1405 dest->pom = src->pom; in copy_pmcw_from_guest()
1406 dest->pam = src->pam; in copy_pmcw_from_guest()
1407 for (i = 0; i < ARRAY_SIZE(dest->chpid); i++) { in copy_pmcw_from_guest()
1408 dest->chpid[i] = src->chpid[i]; in copy_pmcw_from_guest()
1410 dest->chars = be32_to_cpu(src->chars); in copy_pmcw_from_guest()
1413 static void copy_scsw_from_guest(SCSW *dest, const SCSW *src) in copy_scsw_from_guest() argument
1415 dest->flags = be16_to_cpu(src->flags); in copy_scsw_from_guest()
1416 dest->ctrl = be16_to_cpu(src->ctrl); in copy_scsw_from_guest()
1417 dest->cpa = be32_to_cpu(src->cpa); in copy_scsw_from_guest()
1418 dest->dstat = src->dstat; in copy_scsw_from_guest()
1419 dest->cstat = src->cstat; in copy_scsw_from_guest()
1420 dest->count = be16_to_cpu(src->count); in copy_scsw_from_guest()
1423 static void copy_schib_from_guest(SCHIB *dest, const SCHIB *src) in copy_schib_from_guest() argument
1435 dest->pmcw = dest_pmcw; in copy_schib_from_guest()
1438 dest->scsw = dest_scsw; in copy_schib_from_guest()
1439 dest->mba = be64_to_cpu(src->mba); in copy_schib_from_guest()
1440 for (i = 0; i < ARRAY_SIZE(dest->mda); i++) { in copy_schib_from_guest()
1441 dest->mda[i] = src->mda[i]; in copy_schib_from_guest()
1682 static void copy_irb_to_guest(IRB *dest, const IRB *src, const PMCW *pmcw, in copy_irb_to_guest() argument
1689 copy_scsw_to_guest(&dest->scsw, &src->scsw); in copy_irb_to_guest()
1691 copy_esw_to_guest(&dest->esw, &src->esw); in copy_irb_to_guest()
1693 for (i = 0; i < ARRAY_SIZE(dest->ecw); i++) { in copy_irb_to_guest()
1694 dest->ecw[i] = cpu_to_be32(src->ecw[i]); in copy_irb_to_guest()
1696 *irb_len = sizeof(*dest) - sizeof(dest->emw); in copy_irb_to_guest()
1711 for (i = 0; i < ARRAY_SIZE(dest->emw); i++) { in copy_irb_to_guest()
1712 dest->emw[i] = cpu_to_be32(src->emw[i]); in copy_irb_to_guest()
1715 *irb_len = sizeof(*dest); in copy_irb_to_guest()
1846 static void copy_crw_to_guest(CRW *dest, const CRW *src) in copy_crw_to_guest() argument
1848 dest->flags = cpu_to_be16(src->flags); in copy_crw_to_guest()
1849 dest->rsid = cpu_to_be16(src->rsid); in copy_crw_to_guest()
1873 static void copy_crw_from_guest(CRW *dest, const CRW *src) in copy_crw_from_guest() argument
1875 dest->flags = be16_to_cpu(src->flags); in copy_crw_from_guest()
1876 dest->rsid = be16_to_cpu(src->rsid); in copy_crw_from_guest()