Lines Matching refs:qd
2827 struct aac_query_disk qd; in query_disk() local
2833 if (copy_from_user(&qd, arg, sizeof (struct aac_query_disk))) in query_disk()
2835 if (qd.cnum == -1) in query_disk()
2836 qd.cnum = qd.id; in query_disk()
2837 else if ((qd.bus == -1) && (qd.id == -1) && (qd.lun == -1)) in query_disk()
2839 if (qd.cnum < 0 || qd.cnum >= dev->maximum_num_containers) in query_disk()
2841 qd.instance = dev->scsi_host_ptr->host_no; in query_disk()
2842 qd.bus = 0; in query_disk()
2843 qd.id = CONTAINER_TO_ID(qd.cnum); in query_disk()
2844 qd.lun = CONTAINER_TO_LUN(qd.cnum); in query_disk()
2848 qd.valid = fsa_dev_ptr[qd.cnum].valid != 0; in query_disk()
2849 qd.locked = fsa_dev_ptr[qd.cnum].locked; in query_disk()
2850 qd.deleted = fsa_dev_ptr[qd.cnum].deleted; in query_disk()
2852 if (fsa_dev_ptr[qd.cnum].devname[0] == '\0') in query_disk()
2853 qd.unmapped = 1; in query_disk()
2855 qd.unmapped = 0; in query_disk()
2857 strlcpy(qd.name, fsa_dev_ptr[qd.cnum].devname, in query_disk()
2858 min(sizeof(qd.name), sizeof(fsa_dev_ptr[qd.cnum].devname) + 1)); in query_disk()
2860 if (copy_to_user(arg, &qd, sizeof (struct aac_query_disk))) in query_disk()