Searched refs:ppaf (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.10/include/linux/ |
D | lightnvm.h | 447 struct nvm_addrf_12 *ppaf = (struct nvm_addrf_12 *)&geo->addrf; in generic_to_dev_addr() local 449 l.ppa = ((u64)r.g.ch) << ppaf->ch_offset; in generic_to_dev_addr() 450 l.ppa |= ((u64)r.g.lun) << ppaf->lun_offset; in generic_to_dev_addr() 451 l.ppa |= ((u64)r.g.blk) << ppaf->blk_offset; in generic_to_dev_addr() 452 l.ppa |= ((u64)r.g.pg) << ppaf->pg_offset; in generic_to_dev_addr() 453 l.ppa |= ((u64)r.g.pl) << ppaf->pln_offset; in generic_to_dev_addr() 454 l.ppa |= ((u64)r.g.sec) << ppaf->sec_offset; in generic_to_dev_addr() 476 struct nvm_addrf_12 *ppaf = (struct nvm_addrf_12 *)&geo->addrf; in dev_to_generic_addr() local 478 l.g.ch = (r.ppa & ppaf->ch_mask) >> ppaf->ch_offset; in dev_to_generic_addr() 479 l.g.lun = (r.ppa & ppaf->lun_mask) >> ppaf->lun_offset; in dev_to_generic_addr() [all …]
|
/Linux-v5.10/drivers/lightnvm/ |
D | pblk-sysfs.c | 120 struct nvm_addrf_12 *ppaf = (struct nvm_addrf_12 *)&pblk->addrf; in pblk_sysfs_ppaf() local 126 ppaf->blk_offset, ppaf->blk_len, in pblk_sysfs_ppaf() 127 ppaf->pg_offset, ppaf->pg_len, in pblk_sysfs_ppaf() 128 ppaf->lun_offset, ppaf->lun_len, in pblk_sysfs_ppaf() 129 ppaf->ch_offset, ppaf->ch_len, in pblk_sysfs_ppaf() 130 ppaf->pln_offset, ppaf->pln_len, in pblk_sysfs_ppaf() 131 ppaf->sec_offset, ppaf->sec_len); in pblk_sysfs_ppaf() 142 struct nvm_addrf *ppaf = &pblk->addrf; in pblk_sysfs_ppaf() local 148 ppaf->ch_offset, ppaf->ch_len, in pblk_sysfs_ppaf() 149 ppaf->lun_offset, ppaf->lun_len, in pblk_sysfs_ppaf() [all …]
|
D | pblk.h | 984 struct nvm_addrf_12 *ppaf = (struct nvm_addrf_12 *)&pblk->addrf; in addr_to_gen_ppa() local 988 ppa.g.pg = (paddr & ppaf->pg_mask) >> ppaf->pg_offset; in addr_to_gen_ppa() 989 ppa.g.lun = (paddr & ppaf->lun_mask) >> ppaf->lun_offset; in addr_to_gen_ppa() 990 ppa.g.ch = (paddr & ppaf->ch_mask) >> ppaf->ch_offset; in addr_to_gen_ppa() 991 ppa.g.pl = (paddr & ppaf->pln_mask) >> ppaf->pln_offset; in addr_to_gen_ppa() 992 ppa.g.sec = (paddr & ppaf->sec_mask) >> ppaf->sec_offset; in addr_to_gen_ppa() 1043 struct nvm_addrf_12 *ppaf = (struct nvm_addrf_12 *)&pblk->addrf; in pblk_dev_ppa_to_line_addr() local 1045 paddr = (u64)p.g.ch << ppaf->ch_offset; in pblk_dev_ppa_to_line_addr() 1046 paddr |= (u64)p.g.lun << ppaf->lun_offset; in pblk_dev_ppa_to_line_addr() 1047 paddr |= (u64)p.g.pg << ppaf->pg_offset; in pblk_dev_ppa_to_line_addr() [all …]
|
/Linux-v5.10/drivers/nvme/host/ |
D | lightnvm.c | 157 struct nvme_nvm_id12_addrf ppaf; member 370 nvme_nvm_set_addr_12((struct nvm_addrf_12 *)&geo->addrf, &id->ppaf); in nvme_nvm_setup_12() 1019 static ssize_t nvm_dev_attr_show_ppaf(struct nvm_addrf_12 *ppaf, char *page) in nvm_dev_attr_show_ppaf() argument 1023 ppaf->ch_offset, ppaf->ch_len, in nvm_dev_attr_show_ppaf() 1024 ppaf->lun_offset, ppaf->lun_len, in nvm_dev_attr_show_ppaf() 1025 ppaf->pln_offset, ppaf->pln_len, in nvm_dev_attr_show_ppaf() 1026 ppaf->blk_offset, ppaf->blk_len, in nvm_dev_attr_show_ppaf() 1027 ppaf->pg_offset, ppaf->pg_len, in nvm_dev_attr_show_ppaf() 1028 ppaf->sec_offset, ppaf->sec_len); in nvm_dev_attr_show_ppaf()
|