Searched refs:nvm_dev (Results 1 – 5 of 5) sorted by relevance
| /Linux-v5.4/include/linux/ |
| D | lightnvm.h | 82 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 *, sector_t, int, 91 typedef int (nvm_submit_io_fn)(struct nvm_dev *, struct nvm_rq *, void *); 92 typedef void *(nvm_create_dma_pool_fn)(struct nvm_dev *, char *, int); 94 typedef void *(nvm_dev_dma_alloc_fn)(struct nvm_dev *, void *, gfp_t, 409 struct nvm_dev *parent; 413 struct nvm_dev { struct [all …]
|
| /Linux-v5.4/drivers/lightnvm/ |
| D | core.c | 38 static struct nvm_target *nvm_find_target(struct nvm_dev *dev, const char *name) in nvm_find_target() 51 struct nvm_dev *dev; in nvm_target_exists() 73 static int nvm_reserve_luns(struct nvm_dev *dev, int lun_begin, int lun_end) in nvm_reserve_luns() 92 static void nvm_release_luns_err(struct nvm_dev *dev, int lun_begin, in nvm_release_luns_err() 103 struct nvm_dev *dev = tgt_dev->parent; in nvm_remove_tgt_dev() 132 static struct nvm_tgt_dev *nvm_create_tgt_dev(struct nvm_dev *dev, in nvm_create_tgt_dev() 277 static int __nvm_config_simple(struct nvm_dev *dev, in __nvm_config_simple() 290 static int __nvm_config_extended(struct nvm_dev *dev, in __nvm_config_extended() 309 static int nvm_create_tgt(struct nvm_dev *dev, struct nvm_ioctl_create *create) in nvm_create_tgt() 484 struct nvm_dev *dev; in nvm_remove_tgt() [all …]
|
| /Linux-v5.4/drivers/nvme/host/ |
| D | lightnvm.c | 431 static int nvme_nvm_identity(struct nvm_dev *nvmdev) in nvme_nvm_identity() 475 static int nvme_nvm_get_bb_tbl(struct nvm_dev *nvmdev, struct ppa_addr ppa, in nvme_nvm_get_bb_tbl() 531 static int nvme_nvm_set_bb_tbl(struct nvm_dev *nvmdev, struct ppa_addr *ppas, in nvme_nvm_set_bb_tbl() 555 static int nvme_nvm_get_chk_meta(struct nvm_dev *ndev, in nvme_nvm_get_chk_meta() 670 static int nvme_nvm_submit_io(struct nvm_dev *dev, struct nvm_rq *rqd, in nvme_nvm_submit_io() 707 static void *nvme_nvm_create_dma_pool(struct nvm_dev *nvmdev, char *name, in nvme_nvm_create_dma_pool() 722 static void *nvme_nvm_dev_dma_alloc(struct nvm_dev *dev, void *pool, in nvme_nvm_dev_dma_alloc() 759 struct nvm_dev *dev = ns->ndev; in nvme_nvm_submit_user_cmd() 951 struct nvm_dev *dev; in nvme_nvm_register() 985 struct nvm_dev *ndev = ns->ndev; in nvm_dev_attr_show() [all …]
|
| D | nvme.h | 363 struct nvm_dev *ndev;
|
| /Linux-v5.4/drivers/thunderbolt/ |
| D | switch.c | 320 struct nvmem_device *nvm_dev; in tb_switch_nvm_add() local 359 nvm_dev = register_nvmem(sw, nvm->id, nvm_size, true); 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->active = nvm_dev; in tb_switch_nvm_add() 368 nvm_dev = register_nvmem(sw, nvm->id, NVM_MAX_SIZE, false); in tb_switch_nvm_add() 369 if (IS_ERR(nvm_dev)) { in tb_switch_nvm_add() 370 ret = PTR_ERR(nvm_dev); in tb_switch_nvm_add() 373 nvm->non_active = nvm_dev; in tb_switch_nvm_add()
|