• Home
  • Raw
  • Download

Lines Matching refs:nd_region

157 void nvdimm_region_notify(struct nd_region *nd_region, enum nvdimm_event event)  in nvdimm_region_notify()  argument
159 struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(&nd_region->dev); in nvdimm_region_notify()
165 nd_device_notify(&nd_region->dev, event); in nvdimm_region_notify()
176 struct nd_region *nd_region; in nvdimm_clear_badblocks_region() local
184 nd_region = to_nd_region(dev); in nvdimm_clear_badblocks_region()
185 ndr_end = nd_region->ndr_start + nd_region->ndr_size - 1; in nvdimm_clear_badblocks_region()
188 if (ctx->phys < nd_region->ndr_start || in nvdimm_clear_badblocks_region()
192 sector = (ctx->phys - nd_region->ndr_start) / 512; in nvdimm_clear_badblocks_region()
193 badblocks_clear(&nd_region->bb, sector, ctx->cleared / 512); in nvdimm_clear_badblocks_region()
195 if (nd_region->bb_state) in nvdimm_clear_badblocks_region()
196 sysfs_notify_dirent(nd_region->bb_state); in nvdimm_clear_badblocks_region()
625 struct nd_region *nd_region = to_nd_region(dev->parent); in nvdimm_check_and_set_ro() local
629 if (disk_ro == nd_region->ro) in nvdimm_check_and_set_ro()
633 dev_name(&nd_region->dev), nd_region->ro ? "only" : "write", in nvdimm_check_and_set_ro()
634 disk->disk_name, nd_region->ro ? "only" : "write"); in nvdimm_check_and_set_ro()
635 set_disk_ro(disk, nd_region->ro); in nvdimm_check_and_set_ro()
677 struct nd_region *nd_region = NULL; in nvdimm_dev_to_target_node() local
680 nd_region = to_nd_region(dev); in nvdimm_dev_to_target_node()
682 nd_region = to_nd_region(parent); in nvdimm_dev_to_target_node()
684 if (!nd_region) in nvdimm_dev_to_target_node()
686 return nd_region->target_node; in nvdimm_dev_to_target_node()