Lines Matching refs:cnum
3267 if (qd.cnum == -1) { in query_disk()
3270 qd.cnum = qd.id; in query_disk()
3272 if (qd.cnum < 0 || qd.cnum >= dev->maximum_num_containers) in query_disk()
3276 qd.id = CONTAINER_TO_ID(qd.cnum); in query_disk()
3277 qd.lun = CONTAINER_TO_LUN(qd.cnum); in query_disk()
3281 qd.valid = fsa_dev_ptr[qd.cnum].valid != 0; in query_disk()
3282 qd.locked = fsa_dev_ptr[qd.cnum].locked; in query_disk()
3283 qd.deleted = fsa_dev_ptr[qd.cnum].deleted; in query_disk()
3285 if (fsa_dev_ptr[qd.cnum].devname[0] == '\0') in query_disk()
3290 strscpy(qd.name, fsa_dev_ptr[qd.cnum].devname, in query_disk()
3291 min(sizeof(qd.name), sizeof(fsa_dev_ptr[qd.cnum].devname) + 1)); in query_disk()
3310 if (dd.cnum >= dev->maximum_num_containers) in force_delete_disk()
3315 fsa_dev_ptr[dd.cnum].deleted = 1; in force_delete_disk()
3319 fsa_dev_ptr[dd.cnum].valid = 0; in force_delete_disk()
3335 if (dd.cnum >= dev->maximum_num_containers) in delete_disk()
3340 if (fsa_dev_ptr[dd.cnum].locked) in delete_disk()
3346 fsa_dev_ptr[dd.cnum].valid = 0; in delete_disk()
3347 fsa_dev_ptr[dd.cnum].devname[0] = '\0'; in delete_disk()