Lines Matching full:acc
427 static void raw_convert_status(struct scom_access *acc, uint32_t status) in raw_convert_status() argument
429 acc->pib_status = (status & SCOM_STATUS_PIB_RESP_MASK) >> in raw_convert_status()
431 acc->intf_errors = 0; in raw_convert_status()
434 acc->intf_errors |= SCOM_INTF_ERR_PROTECTION; in raw_convert_status()
436 acc->intf_errors |= SCOM_INTF_ERR_PARITY; in raw_convert_status()
438 acc->intf_errors |= SCOM_INTF_ERR_ABORT; in raw_convert_status()
440 acc->intf_errors |= SCOM_INTF_ERR_UNKNOWN; in raw_convert_status()
445 struct scom_access acc; in scom_raw_read() local
449 if (copy_from_user(&acc, argp, sizeof(struct scom_access))) in scom_raw_read()
452 rc = raw_get_scom(scom, &acc.data, acc.addr, &status); in scom_raw_read()
455 raw_convert_status(&acc, status); in scom_raw_read()
456 if (copy_to_user(argp, &acc, sizeof(struct scom_access))) in scom_raw_read()
464 struct scom_access acc; in scom_raw_write() local
468 if (copy_from_user(&acc, argp, sizeof(struct scom_access))) in scom_raw_write()
471 if (acc.mask) { in scom_raw_write()
472 rc = raw_get_scom(scom, &prev_data, acc.addr, &status); in scom_raw_write()
477 mask = acc.mask; in scom_raw_write()
481 data = (prev_data & ~mask) | (acc.data & mask); in scom_raw_write()
482 rc = raw_put_scom(scom, data, acc.addr, &status); in scom_raw_write()
486 raw_convert_status(&acc, status); in scom_raw_write()
487 if (copy_to_user(argp, &acc, sizeof(struct scom_access))) in scom_raw_write()