• Home
  • Raw
  • Download

Lines Matching refs:skmsg

218 	struct skd_fitmsg_context *skmsg;  member
356 struct skd_fitmsg_context *skmsg);
483 struct skd_fitmsg_context *skmsg; in skd_mq_queue_rq() local
535 skmsg = NULL; in skd_mq_queue_rq()
538 skmsg = skdev->skmsg; in skd_mq_queue_rq()
540 if (!skmsg) { in skd_mq_queue_rq()
541 skmsg = &skdev->skmsg_table[tag]; in skd_mq_queue_rq()
542 skdev->skmsg = skmsg; in skd_mq_queue_rq()
545 fmh = &skmsg->msg_buf->fmh; in skd_mq_queue_rq()
548 skmsg->length = sizeof(*fmh); in skd_mq_queue_rq()
550 fmh = &skmsg->msg_buf->fmh; in skd_mq_queue_rq()
553 skreq->fitmsg_id = skmsg->id; in skd_mq_queue_rq()
555 scsi_req = &skmsg->msg_buf->scsi[fmh->num_protocol_cmds_coalesced]; in skd_mq_queue_rq()
577 skmsg->length += sizeof(struct skd_scsi_request); in skd_mq_queue_rq()
587 skd_send_fitmsg(skdev, skmsg); in skd_mq_queue_rq()
591 skd_send_fitmsg(skdev, skmsg); in skd_mq_queue_rq()
592 skdev->skmsg = NULL; in skd_mq_queue_rq()
1194 struct skd_fitmsg_context *skmsg) in skd_send_fitmsg() argument
1199 &skmsg->mb_dma_address, skd_in_flight(skdev)); in skd_send_fitmsg()
1200 dev_dbg(&skdev->pdev->dev, "msg_buf %p\n", skmsg->msg_buf); in skd_send_fitmsg()
1202 qcmd = skmsg->mb_dma_address; in skd_send_fitmsg()
1206 u8 *bp = (u8 *)skmsg->msg_buf; in skd_send_fitmsg()
1208 for (i = 0; i < skmsg->length; i += 8) { in skd_send_fitmsg()
1216 if (skmsg->length > 256) in skd_send_fitmsg()
1218 else if (skmsg->length > 128) in skd_send_fitmsg()
1220 else if (skmsg->length > 64) in skd_send_fitmsg()
1230 dma_sync_single_for_device(&skdev->pdev->dev, skmsg->mb_dma_address, in skd_send_fitmsg()
1231 skmsg->length, DMA_TO_DEVICE); in skd_send_fitmsg()
2680 struct skd_fitmsg_context *skmsg; in skd_cons_skmsg() local
2682 skmsg = &skdev->skmsg_table[i]; in skd_cons_skmsg()
2684 skmsg->id = i + SKD_ID_FIT_MSG; in skd_cons_skmsg()
2686 skmsg->msg_buf = dma_alloc_coherent(&skdev->pdev->dev, in skd_cons_skmsg()
2688 &skmsg->mb_dma_address, in skd_cons_skmsg()
2690 if (skmsg->msg_buf == NULL) { in skd_cons_skmsg()
2695 WARN(((uintptr_t)skmsg->msg_buf | skmsg->mb_dma_address) & in skd_cons_skmsg()
2698 skmsg->msg_buf, &skmsg->mb_dma_address); in skd_cons_skmsg()
2996 struct skd_fitmsg_context *skmsg; in skd_free_skmsg() local
2998 skmsg = &skdev->skmsg_table[i]; in skd_free_skmsg()
3000 if (skmsg->msg_buf != NULL) { in skd_free_skmsg()
3002 skmsg->msg_buf, in skd_free_skmsg()
3003 skmsg->mb_dma_address); in skd_free_skmsg()
3005 skmsg->msg_buf = NULL; in skd_free_skmsg()
3006 skmsg->mb_dma_address = 0; in skd_free_skmsg()