Lines Matching refs:ctlr_info
168 ldev_present = cs->ctlr_info->ldev_present; in myrs_get_ctlr_info()
169 ldev_critical = cs->ctlr_info->ldev_critical; in myrs_get_ctlr_info()
170 ldev_offline = cs->ctlr_info->ldev_offline; in myrs_get_ctlr_info()
172 ctlr_info_addr = dma_map_single(&cs->pdev->dev, cs->ctlr_info, in myrs_get_ctlr_info()
180 mbox->ctlr_info.id = MYRS_DCMD_TAG; in myrs_get_ctlr_info()
181 mbox->ctlr_info.opcode = MYRS_CMD_OP_IOCTL; in myrs_get_ctlr_info()
182 mbox->ctlr_info.control.dma_ctrl_to_host = true; in myrs_get_ctlr_info()
183 mbox->ctlr_info.control.no_autosense = true; in myrs_get_ctlr_info()
184 mbox->ctlr_info.dma_size = sizeof(struct myrs_ctlr_info); in myrs_get_ctlr_info()
185 mbox->ctlr_info.ctlr_num = 0; in myrs_get_ctlr_info()
186 mbox->ctlr_info.ioctl_opcode = MYRS_IOCTL_GET_CTLR_INFO; in myrs_get_ctlr_info()
187 sgl = &mbox->ctlr_info.dma_addr; in myrs_get_ctlr_info()
189 sgl->sge[0].sge_count = mbox->ctlr_info.dma_size; in myrs_get_ctlr_info()
197 if (cs->ctlr_info->bg_init_active + in myrs_get_ctlr_info()
198 cs->ctlr_info->ldev_init_active + in myrs_get_ctlr_info()
199 cs->ctlr_info->pdev_init_active + in myrs_get_ctlr_info()
200 cs->ctlr_info->cc_active + in myrs_get_ctlr_info()
201 cs->ctlr_info->rbld_active + in myrs_get_ctlr_info()
202 cs->ctlr_info->exp_active != 0) in myrs_get_ctlr_info()
204 if (cs->ctlr_info->ldev_present != ldev_present || in myrs_get_ctlr_info()
205 cs->ctlr_info->ldev_critical != ldev_critical || in myrs_get_ctlr_info()
206 cs->ctlr_info->ldev_offline != ldev_offline) in myrs_get_ctlr_info()
209 cs->ctlr_info->ldev_critical, in myrs_get_ctlr_info()
210 cs->ctlr_info->ldev_offline, in myrs_get_ctlr_info()
211 cs->ctlr_info->ldev_present); in myrs_get_ctlr_info()
471 sgl->sge[0].sge_count = mbox->ctlr_info.dma_size; in myrs_get_fwstatus()
542 cs->ctlr_info = kzalloc(sizeof(struct myrs_ctlr_info), in myrs_enable_mmio_mbox()
544 if (!cs->ctlr_info) in myrs_enable_mmio_mbox()
585 struct myrs_ctlr_info *info = cs->ctlr_info; in myrs_get_config()
859 sdev->channel < cs->ctlr_info->physchan_present) { in myrs_log_event()
947 if (sdev->channel >= cs->ctlr_info->physchan_present) { in raid_state_show()
993 if (sdev->channel < cs->ctlr_info->physchan_present) { in raid_state_store()
1035 if (sdev->channel < cs->ctlr_info->physchan_present) { in raid_state_store()
1066 if (sdev->channel >= cs->ctlr_info->physchan_present) { in raid_level_show()
1091 if (sdev->channel < cs->ctlr_info->physchan_present) in rebuild_show()
1123 if (sdev->channel < cs->ctlr_info->physchan_present) in rebuild_store()
1196 if (sdev->channel < cs->ctlr_info->physchan_present) in consistency_check_show()
1224 if (sdev->channel < cs->ctlr_info->physchan_present) in consistency_check_store()
1306 memcpy(serial, cs->ctlr_info->serial_number, 16); in serial_show()
1343 struct myrs_ctlr_info *info = cs->ctlr_info; in processor_show()
1403 return snprintf(buf, 4, "%d\n", cs->ctlr_info->ctlr_type); in ctlr_type_show()
1413 return snprintf(buf, 8, "%d MB\n", cs->ctlr_info->cache_size_mb); in cache_size_show()
1424 cs->ctlr_info->fw_major_version, in firmware_show()
1425 cs->ctlr_info->fw_minor_version, in firmware_show()
1426 cs->ctlr_info->fw_turn_number); in firmware_show()
1611 if (scmd->device->channel >= cs->ctlr_info->physchan_present) { in myrs_queuecommand()
1640 if (scmd->device->channel >= cs->ctlr_info->physchan_present) { in myrs_queuecommand()
1686 if (scmd->device->channel >= cs->ctlr_info->physchan_present) { in myrs_queuecommand()
1786 sdev->channel - cs->ctlr_info->physchan_present; in myrs_translate_ldev()
1801 if (sdev->channel >= cs->ctlr_info->physchan_present) { in myrs_slave_alloc()
1897 if (sdev->channel < cs->ctlr_info->physchan_present) { in myrs_slave_configure()
1971 return (sdev->channel >= cs->ctlr_info->physchan_present) ? 1 : 0; in myrs_is_raid()
1987 if (sdev->channel < cs->ctlr_info->physchan_present || !ldev_info) in myrs_get_resync()
2011 if (sdev->channel < cs->ctlr_info->physchan_present || !ldev_info) in myrs_get_state()
2112 struct myrs_ctlr_info *info = cs->ctlr_info; in myrs_monitor()
2249 kfree(cs->ctlr_info); in myrs_unmap()