pci.c (38dabe210fbab4e7e8a03670ab3ba42f247ea08f) | pci.c (ad22c355b707a8d8d48e282aadc01c0b0604b2e9) |
---|---|
1/* 2 * NVM Express device driver 3 * Copyright (c) 2011-2014, Intel Corporation. 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms and conditions of the GNU General Public License, 7 * version 2, as published by the Free Software Foundation. 8 * --- 1029 unchanged lines hidden (view full) --- 1038 1039static int nvme_poll(struct blk_mq_hw_ctx *hctx, unsigned int tag) 1040{ 1041 struct nvme_queue *nvmeq = hctx->driver_data; 1042 1043 return __nvme_poll(nvmeq, tag); 1044} 1045 | 1/* 2 * NVM Express device driver 3 * Copyright (c) 2011-2014, Intel Corporation. 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms and conditions of the GNU General Public License, 7 * version 2, as published by the Free Software Foundation. 8 * --- 1029 unchanged lines hidden (view full) --- 1038 1039static int nvme_poll(struct blk_mq_hw_ctx *hctx, unsigned int tag) 1040{ 1041 struct nvme_queue *nvmeq = hctx->driver_data; 1042 1043 return __nvme_poll(nvmeq, tag); 1044} 1045 |
1046static void nvme_pci_submit_async_event(struct nvme_ctrl *ctrl, int aer_idx) | 1046static void nvme_pci_submit_async_event(struct nvme_ctrl *ctrl) |
1047{ 1048 struct nvme_dev *dev = to_nvme_dev(ctrl); 1049 struct nvme_queue *nvmeq = dev->queues[0]; 1050 struct nvme_command c; 1051 1052 memset(&c, 0, sizeof(c)); 1053 c.common.opcode = nvme_admin_async_event; | 1047{ 1048 struct nvme_dev *dev = to_nvme_dev(ctrl); 1049 struct nvme_queue *nvmeq = dev->queues[0]; 1050 struct nvme_command c; 1051 1052 memset(&c, 0, sizeof(c)); 1053 c.common.opcode = nvme_admin_async_event; |
1054 c.common.command_id = NVME_AQ_BLK_MQ_DEPTH + aer_idx; | 1054 c.common.command_id = NVME_AQ_BLK_MQ_DEPTH; |
1055 1056 spin_lock_irq(&nvmeq->q_lock); 1057 __nvme_submit_cmd(nvmeq, &c); 1058 spin_unlock_irq(&nvmeq->q_lock); 1059} 1060 1061static int adapter_delete_queue(struct nvme_dev *dev, u8 opcode, u16 id) 1062{ --- 1651 unchanged lines hidden --- | 1055 1056 spin_lock_irq(&nvmeq->q_lock); 1057 __nvme_submit_cmd(nvmeq, &c); 1058 spin_unlock_irq(&nvmeq->q_lock); 1059} 1060 1061static int adapter_delete_queue(struct nvme_dev *dev, u8 opcode, u16 id) 1062{ --- 1651 unchanged lines hidden --- |