u32 lba;
u32 count;
int data_dir;
- u32 be_lba;
- u32 be_count;
u64 be_dmaa;
u64 cmdctxt;
u32 timo_slot;
cmd_ptr = &skmsg->msg_buf[skmsg->length];
memset(cmd_ptr, 0, 32);
- be_lba = cpu_to_be32(lba);
- be_count = cpu_to_be32(count);
be_dmaa = cpu_to_be64((u64)skreq->sksg_dma_address);
cmdctxt = skreq->id + SKD_ID_INCR;
static void skd_request_fn_not_online(struct request_queue *q)
{
struct skd_device *skdev = q->queuedata;
- int error;
SKD_ASSERT(skdev->state != SKD_DRVR_STATE_ONLINE);
case SKD_DRVR_STATE_FAULT:
case SKD_DRVR_STATE_DISAPPEARED:
default:
- error = -EIO;
break;
}
struct skd_device *skdev = (struct skd_device *)arg;
u32 timo_slot;
- u32 overdue_timestamp;
unsigned long reqflags;
u32 state;
goto timer_func_out;
/* Something is overdue */
- overdue_timestamp = skdev->timeout_stamp - SKD_N_TIMEOUT_SLOT;
-
pr_debug("%s:%s:%d found %d timeouts, draining busy=%d\n",
skdev->name, __func__, __LINE__,
skdev->timeout_slot[timo_slot], skdev->in_flight);
struct skd_sg_io *sksgio)
{
struct sg_io_hdr *sgp = &sksgio->sg;
- int i, acc;
+ int i, __maybe_unused acc;
if (!access_ok(VERIFY_WRITE, sksgio->argp, sizeof(sg_io_hdr_t))) {
pr_debug("%s:%s:%d access sg failed %p\n",