Home
last modified time | relevance | path

Searched refs:nvm_dev (Results 1 – 5 of 5) sorted by relevance

/Linux-v4.19/include/linux/
Dlightnvm.h82 struct nvm_dev;
86 typedef int (nvm_id_fn)(struct nvm_dev *);
87 typedef int (nvm_op_bb_tbl_fn)(struct nvm_dev *, struct ppa_addr, u8 *);
88 typedef int (nvm_op_set_bb_fn)(struct nvm_dev *, struct ppa_addr *, int, int);
89 typedef int (nvm_get_chk_meta_fn)(struct nvm_dev *, struct nvm_chk_meta *,
91 typedef int (nvm_submit_io_fn)(struct nvm_dev *, struct nvm_rq *);
92 typedef int (nvm_submit_io_sync_fn)(struct nvm_dev *, struct nvm_rq *);
93 typedef void *(nvm_create_dma_pool_fn)(struct nvm_dev *, char *);
95 typedef void *(nvm_dev_dma_alloc_fn)(struct nvm_dev *, void *, gfp_t,
402 struct nvm_dev *parent;
[all …]
/Linux-v4.19/drivers/lightnvm/
Dcore.c48 static struct nvm_target *nvm_find_target(struct nvm_dev *dev, const char *name) in nvm_find_target()
61 struct nvm_dev *dev; in nvm_target_exists()
83 static int nvm_reserve_luns(struct nvm_dev *dev, int lun_begin, int lun_end) in nvm_reserve_luns()
102 static void nvm_release_luns_err(struct nvm_dev *dev, int lun_begin, in nvm_release_luns_err()
113 struct nvm_dev *dev = tgt_dev->parent; in nvm_remove_tgt_dev()
142 static struct nvm_tgt_dev *nvm_create_tgt_dev(struct nvm_dev *dev, in nvm_create_tgt_dev()
287 static int __nvm_config_simple(struct nvm_dev *dev, in __nvm_config_simple()
300 static int __nvm_config_extended(struct nvm_dev *dev, in __nvm_config_extended()
319 static int nvm_create_tgt(struct nvm_dev *dev, struct nvm_ioctl_create *create) in nvm_create_tgt()
482 static int nvm_remove_tgt(struct nvm_dev *dev, struct nvm_ioctl_remove *remove) in nvm_remove_tgt()
[all …]
/Linux-v4.19/drivers/nvme/host/
Dlightnvm.c445 static int nvme_nvm_identity(struct nvm_dev *nvmdev) in nvme_nvm_identity()
489 static int nvme_nvm_get_bb_tbl(struct nvm_dev *nvmdev, struct ppa_addr ppa, in nvme_nvm_get_bb_tbl()
545 static int nvme_nvm_set_bb_tbl(struct nvm_dev *nvmdev, struct ppa_addr *ppas, in nvme_nvm_set_bb_tbl()
569 static int nvme_nvm_get_chk_meta(struct nvm_dev *ndev, in nvme_nvm_get_chk_meta()
674 static int nvme_nvm_submit_io(struct nvm_dev *dev, struct nvm_rq *rqd) in nvme_nvm_submit_io()
697 static int nvme_nvm_submit_io_sync(struct nvm_dev *dev, struct nvm_rq *rqd) in nvme_nvm_submit_io_sync()
725 static void *nvme_nvm_create_dma_pool(struct nvm_dev *nvmdev, char *name) in nvme_nvm_create_dma_pool()
739 static void *nvme_nvm_dev_dma_alloc(struct nvm_dev *dev, void *pool, in nvme_nvm_dev_dma_alloc()
777 struct nvm_dev *dev = ns->ndev; in nvme_nvm_submit_user_cmd()
968 struct nvm_dev *ndev = ns->ndev; in nvme_nvm_update_nvm_info()
[all …]
Dnvme.h318 struct nvm_dev *ndev;
/Linux-v4.19/drivers/thunderbolt/
Dswitch.c312 struct nvmem_device *nvm_dev; in tb_switch_nvm_add() local
351 nvm_dev = register_nvmem(sw, nvm->id, nvm_size, true); in tb_switch_nvm_add()
352 if (IS_ERR(nvm_dev)) { in tb_switch_nvm_add()
353 ret = PTR_ERR(nvm_dev); in tb_switch_nvm_add()
356 nvm->active = nvm_dev; in tb_switch_nvm_add()
359 nvm_dev = register_nvmem(sw, nvm->id, NVM_MAX_SIZE, false); in tb_switch_nvm_add()
360 if (IS_ERR(nvm_dev)) { in tb_switch_nvm_add()
361 ret = PTR_ERR(nvm_dev); in tb_switch_nvm_add()
364 nvm->non_active = nvm_dev; in tb_switch_nvm_add()