Lines Matching refs:ssp_cmd
4441 struct ssp_ini_io_start_req ssp_cmd; in pm80xx_chip_ssp_io_req() local
4450 memset(&ssp_cmd, 0, sizeof(ssp_cmd)); in pm80xx_chip_ssp_io_req()
4451 memcpy(ssp_cmd.ssp_iu.lun, task->ssp_task.LUN, 8); in pm80xx_chip_ssp_io_req()
4456 ssp_cmd.dad_dir_m_tlr = in pm80xx_chip_ssp_io_req()
4458 ssp_cmd.data_len = cpu_to_le32(task->total_xfer_len); in pm80xx_chip_ssp_io_req()
4459 ssp_cmd.device_id = cpu_to_le32(pm8001_dev->device_id); in pm80xx_chip_ssp_io_req()
4460 ssp_cmd.tag = cpu_to_le32(tag); in pm80xx_chip_ssp_io_req()
4462 ssp_cmd.ssp_iu.efb_prio_attr |= 0x80; in pm80xx_chip_ssp_io_req()
4463 ssp_cmd.ssp_iu.efb_prio_attr |= (task->ssp_task.task_prio << 3); in pm80xx_chip_ssp_io_req()
4464 ssp_cmd.ssp_iu.efb_prio_attr |= (task->ssp_task.task_attr & 7); in pm80xx_chip_ssp_io_req()
4465 memcpy(ssp_cmd.ssp_iu.cdb, task->ssp_task.cmd->cmnd, in pm80xx_chip_ssp_io_req()
4479 ssp_cmd.dad_dir_m_tlr = cpu_to_le32 in pm80xx_chip_ssp_io_req()
4487 ssp_cmd.enc_addr_low = in pm80xx_chip_ssp_io_req()
4489 ssp_cmd.enc_addr_high = in pm80xx_chip_ssp_io_req()
4491 ssp_cmd.enc_esgl = cpu_to_le32(1<<31); in pm80xx_chip_ssp_io_req()
4494 ssp_cmd.enc_addr_low = in pm80xx_chip_ssp_io_req()
4496 ssp_cmd.enc_addr_high = in pm80xx_chip_ssp_io_req()
4498 ssp_cmd.enc_len = cpu_to_le32(task->total_xfer_len); in pm80xx_chip_ssp_io_req()
4499 ssp_cmd.enc_esgl = 0; in pm80xx_chip_ssp_io_req()
4502 end_addr = (start_addr + ssp_cmd.enc_len) - 1; in pm80xx_chip_ssp_io_req()
4505 if (end_addr_high != ssp_cmd.enc_addr_high) { in pm80xx_chip_ssp_io_req()
4511 start_addr, ssp_cmd.enc_len, in pm80xx_chip_ssp_io_req()
4516 ssp_cmd.enc_addr_low = in pm80xx_chip_ssp_io_req()
4518 ssp_cmd.enc_addr_high = in pm80xx_chip_ssp_io_req()
4520 ssp_cmd.enc_esgl = cpu_to_le32(1<<31); in pm80xx_chip_ssp_io_req()
4523 ssp_cmd.enc_addr_low = 0; in pm80xx_chip_ssp_io_req()
4524 ssp_cmd.enc_addr_high = 0; in pm80xx_chip_ssp_io_req()
4525 ssp_cmd.enc_len = cpu_to_le32(task->total_xfer_len); in pm80xx_chip_ssp_io_req()
4526 ssp_cmd.enc_esgl = 0; in pm80xx_chip_ssp_io_req()
4529 ssp_cmd.key_cmode = 0x6 << 4; in pm80xx_chip_ssp_io_req()
4531 ssp_cmd.twk_val0 = cpu_to_le32((task->ssp_task.cmd->cmnd[2] << 24) | in pm80xx_chip_ssp_io_req()
4544 ssp_cmd.addr_low = in pm80xx_chip_ssp_io_req()
4546 ssp_cmd.addr_high = in pm80xx_chip_ssp_io_req()
4548 ssp_cmd.esgl = cpu_to_le32(1<<31); in pm80xx_chip_ssp_io_req()
4551 ssp_cmd.addr_low = cpu_to_le32(lower_32_bits(dma_addr)); in pm80xx_chip_ssp_io_req()
4552 ssp_cmd.addr_high = in pm80xx_chip_ssp_io_req()
4554 ssp_cmd.len = cpu_to_le32(task->total_xfer_len); in pm80xx_chip_ssp_io_req()
4555 ssp_cmd.esgl = 0; in pm80xx_chip_ssp_io_req()
4558 end_addr = (start_addr + ssp_cmd.len) - 1; in pm80xx_chip_ssp_io_req()
4561 if (end_addr_high != ssp_cmd.addr_high) { in pm80xx_chip_ssp_io_req()
4567 start_addr, ssp_cmd.len, in pm80xx_chip_ssp_io_req()
4572 ssp_cmd.addr_low = in pm80xx_chip_ssp_io_req()
4574 ssp_cmd.addr_high = in pm80xx_chip_ssp_io_req()
4576 ssp_cmd.esgl = cpu_to_le32(1<<31); in pm80xx_chip_ssp_io_req()
4579 ssp_cmd.addr_low = 0; in pm80xx_chip_ssp_io_req()
4580 ssp_cmd.addr_high = 0; in pm80xx_chip_ssp_io_req()
4581 ssp_cmd.len = cpu_to_le32(task->total_xfer_len); in pm80xx_chip_ssp_io_req()
4582 ssp_cmd.esgl = 0; in pm80xx_chip_ssp_io_req()
4587 &ssp_cmd, sizeof(ssp_cmd), q_index); in pm80xx_chip_ssp_io_req()