apple.c (8613dec04e746f698418e9b8344acf19efff4997) apple.c (6887fc6495f2dfd55e088c982e983815278ee453)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Apple ANS NVM Express device driver
4 * Copyright The Asahi Linux Contributors
5 *
6 * Based on the pci.c NVM Express device driver
7 * Copyright (c) 2011-2014, Intel Corporation.
8 * and on the rdma.c NVMe over Fabrics RDMA host code.

--- 749 unchanged lines hidden (view full) ---

758 return ret;
759
760 if (blk_rq_nr_phys_segments(req)) {
761 ret = apple_nvme_map_data(anv, req, cmnd);
762 if (ret)
763 goto out_free_cmd;
764 }
765
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Apple ANS NVM Express device driver
4 * Copyright The Asahi Linux Contributors
5 *
6 * Based on the pci.c NVM Express device driver
7 * Copyright (c) 2011-2014, Intel Corporation.
8 * and on the rdma.c NVMe over Fabrics RDMA host code.

--- 749 unchanged lines hidden (view full) ---

758 return ret;
759
760 if (blk_rq_nr_phys_segments(req)) {
761 ret = apple_nvme_map_data(anv, req, cmnd);
762 if (ret)
763 goto out_free_cmd;
764 }
765
766 blk_mq_start_request(req);
766 nvme_start_request(req);
767 apple_nvme_submit_cmd(q, cmnd);
768 return BLK_STS_OK;
769
770out_free_cmd:
771 nvme_cleanup_cmd(req);
772 return ret;
773}
774

--- 818 unchanged lines hidden ---
767 apple_nvme_submit_cmd(q, cmnd);
768 return BLK_STS_OK;
769
770out_free_cmd:
771 nvme_cleanup_cmd(req);
772 return ret;
773}
774

--- 818 unchanged lines hidden ---