Lines Matching refs:to_nvme_dev
180 static inline struct nvme_dev *to_nvme_dev(struct nvme_ctrl *ctrl) in to_nvme_dev() function
398 struct nvme_dev *dev = to_nvme_dev(data); in nvme_admin_init_hctx()
411 struct nvme_dev *dev = to_nvme_dev(data); in nvme_init_hctx()
441 struct nvme_dev *dev = to_nvme_dev(set->driver_data); in nvme_pci_map_queues()
1133 struct nvme_dev *dev = to_nvme_dev(ctrl); in nvme_pci_submit_async_event()
2068 struct nvme_dev *ndev = to_nvme_dev(dev_get_drvdata(dev)); in cmb_show()
2078 struct nvme_dev *ndev = to_nvme_dev(dev_get_drvdata(dev)); in cmbloc_show()
2087 struct nvme_dev *ndev = to_nvme_dev(dev_get_drvdata(dev)); in cmbsz_show()
2096 struct nvme_dev *ndev = to_nvme_dev(dev_get_drvdata(dev)); in hmb_show()
2104 struct nvme_dev *ndev = to_nvme_dev(dev_get_drvdata(dev)); in hmb_store()
2134 struct nvme_dev *dev = to_nvme_dev(ctrl); in nvme_pci_attrs_are_visible()
2679 struct nvme_dev *dev = to_nvme_dev(ctrl); in nvme_pci_free_ctrl()
2793 *val = readl(to_nvme_dev(ctrl)->bar + off); in nvme_pci_reg_read32()
2799 writel(val, to_nvme_dev(ctrl)->bar + off); in nvme_pci_reg_write32()
2805 *val = lo_hi_readq(to_nvme_dev(ctrl)->bar + off); in nvme_pci_reg_read64()
2811 struct pci_dev *pdev = to_pci_dev(to_nvme_dev(ctrl)->dev); in nvme_pci_get_address()
2818 struct pci_dev *pdev = to_pci_dev(to_nvme_dev(ctrl)->dev); in nvme_pci_print_device_info()
2832 struct nvme_dev *dev = to_nvme_dev(ctrl); in nvme_pci_supports_pci_p2pdma()