Lines Matching refs:fwinfo
161 snic->fwinfo.fw_ver = le32_to_cpu(exv_cmpl->version); in snic_io_exch_ver_cmpl_handler()
162 snic->fwinfo.hid = le32_to_cpu(exv_cmpl->hid); in snic_io_exch_ver_cmpl_handler()
163 snic->fwinfo.max_concur_ios = le32_to_cpu(exv_cmpl->max_concur_ios); in snic_io_exch_ver_cmpl_handler()
164 snic->fwinfo.max_sgs_per_cmd = le32_to_cpu(exv_cmpl->max_sgs_per_cmd); in snic_io_exch_ver_cmpl_handler()
165 snic->fwinfo.max_io_sz = le32_to_cpu(exv_cmpl->max_io_sz); in snic_io_exch_ver_cmpl_handler()
166 snic->fwinfo.max_tgts = le32_to_cpu(exv_cmpl->max_tgts); in snic_io_exch_ver_cmpl_handler()
167 snic->fwinfo.io_tmo = le16_to_cpu(exv_cmpl->io_timeout); in snic_io_exch_ver_cmpl_handler()
171 snic->fwinfo.fw_ver, in snic_io_exch_ver_cmpl_handler()
172 snic->fwinfo.hid, in snic_io_exch_ver_cmpl_handler()
173 snic->fwinfo.max_concur_ios, in snic_io_exch_ver_cmpl_handler()
174 snic->fwinfo.max_sgs_per_cmd, in snic_io_exch_ver_cmpl_handler()
175 snic->fwinfo.max_io_sz, in snic_io_exch_ver_cmpl_handler()
176 snic->fwinfo.max_tgts, in snic_io_exch_ver_cmpl_handler()
177 snic->fwinfo.io_tmo); in snic_io_exch_ver_cmpl_handler()
184 max_sgs = snic->fwinfo.max_sgs_per_cmd; in snic_io_exch_ver_cmpl_handler()
196 if (snic->shost->can_queue > snic->fwinfo.max_concur_ios) in snic_io_exch_ver_cmpl_handler()
197 snic->shost->can_queue = snic->fwinfo.max_concur_ios; in snic_io_exch_ver_cmpl_handler()
199 snic->shost->max_sectors = snic->fwinfo.max_io_sz >> 9; in snic_io_exch_ver_cmpl_handler()
200 if (snic->fwinfo.wait) in snic_io_exch_ver_cmpl_handler()
201 complete(snic->fwinfo.wait); in snic_io_exch_ver_cmpl_handler()
226 memset(&snic->fwinfo, 0, sizeof(snic->fwinfo)); in snic_get_conf()
227 snic->fwinfo.wait = &wait; in snic_get_conf()
244 ret = (snic->fwinfo.fw_ver != 0) ? 0 : -ETIMEDOUT; in snic_get_conf()
251 snic->fwinfo.wait = NULL; in snic_get_conf()