Lines Matching refs:ctlr_info
167 ldev_present = cs->ctlr_info->ldev_present;
168 ldev_critical = cs->ctlr_info->ldev_critical;
169 ldev_offline = cs->ctlr_info->ldev_offline;
171 ctlr_info_addr = dma_map_single(&cs->pdev->dev, cs->ctlr_info,
179 mbox->ctlr_info.id = MYRS_DCMD_TAG;
180 mbox->ctlr_info.opcode = MYRS_CMD_OP_IOCTL;
181 mbox->ctlr_info.control.dma_ctrl_to_host = true;
182 mbox->ctlr_info.control.no_autosense = true;
183 mbox->ctlr_info.dma_size = sizeof(struct myrs_ctlr_info);
184 mbox->ctlr_info.ctlr_num = 0;
185 mbox->ctlr_info.ioctl_opcode = MYRS_IOCTL_GET_CTLR_INFO;
186 sgl = &mbox->ctlr_info.dma_addr;
188 sgl->sge[0].sge_count = mbox->ctlr_info.dma_size;
196 if (cs->ctlr_info->bg_init_active +
197 cs->ctlr_info->ldev_init_active +
198 cs->ctlr_info->pdev_init_active +
199 cs->ctlr_info->cc_active +
200 cs->ctlr_info->rbld_active +
201 cs->ctlr_info->exp_active != 0)
203 if (cs->ctlr_info->ldev_present != ldev_present ||
204 cs->ctlr_info->ldev_critical != ldev_critical ||
205 cs->ctlr_info->ldev_offline != ldev_offline)
208 cs->ctlr_info->ldev_critical,
209 cs->ctlr_info->ldev_offline,
210 cs->ctlr_info->ldev_present);
470 sgl->sge[0].sge_count = mbox->ctlr_info.dma_size;
541 cs->ctlr_info = kzalloc(sizeof(struct myrs_ctlr_info), GFP_KERNEL);
542 if (!cs->ctlr_info)
582 struct myrs_ctlr_info *info = cs->ctlr_info;
856 sdev->channel < cs->ctlr_info->physchan_present) {
944 if (sdev->channel >= cs->ctlr_info->physchan_present) {
990 if (sdev->channel < cs->ctlr_info->physchan_present) {
1032 if (sdev->channel < cs->ctlr_info->physchan_present) {
1063 if (sdev->channel >= cs->ctlr_info->physchan_present) {
1088 if (sdev->channel < cs->ctlr_info->physchan_present)
1120 if (sdev->channel < cs->ctlr_info->physchan_present)
1192 if (sdev->channel < cs->ctlr_info->physchan_present)
1220 if (sdev->channel < cs->ctlr_info->physchan_present)
1304 memcpy(serial, cs->ctlr_info->serial_number, 16);
1341 struct myrs_ctlr_info *info = cs->ctlr_info;
1401 return snprintf(buf, 4, "%d\n", cs->ctlr_info->ctlr_type);
1411 return snprintf(buf, 8, "%d MB\n", cs->ctlr_info->cache_size_mb);
1422 cs->ctlr_info->fw_major_version,
1423 cs->ctlr_info->fw_minor_version,
1424 cs->ctlr_info->fw_turn_number);
1610 if (scmd->device->channel >= cs->ctlr_info->physchan_present) {
1636 if (scmd->device->channel >= cs->ctlr_info->physchan_present) {
1682 if (scmd->device->channel >= cs->ctlr_info->physchan_present) {
1782 sdev->channel - cs->ctlr_info->physchan_present;
1797 if (sdev->channel >= cs->ctlr_info->physchan_present) {
1893 if (sdev->channel < cs->ctlr_info->physchan_present) {
1967 return (sdev->channel >= cs->ctlr_info->physchan_present) ? 1 : 0;
1982 if (sdev->channel < cs->ctlr_info->physchan_present || !ldev_info)
2006 if (sdev->channel < cs->ctlr_info->physchan_present || !ldev_info)
2107 struct myrs_ctlr_info *info = cs->ctlr_info;
2244 kfree(cs->ctlr_info);