Lines Matching refs:ctlr_info

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