Lines Matching refs:pdev_info

309 		struct myrs_pdev_info *pdev_info)  in myrs_get_pdev_info()  argument
317 pdev_info_addr = dma_map_single(&cs->pdev->dev, pdev_info, in myrs_get_pdev_info()
325 mbox->pdev_info.opcode = MYRS_CMD_OP_IOCTL; in myrs_get_pdev_info()
326 mbox->pdev_info.id = MYRS_DCMD_TAG; in myrs_get_pdev_info()
327 mbox->pdev_info.control.dma_ctrl_to_host = true; in myrs_get_pdev_info()
328 mbox->pdev_info.control.no_autosense = true; in myrs_get_pdev_info()
329 mbox->pdev_info.dma_size = sizeof(struct myrs_pdev_info); in myrs_get_pdev_info()
330 mbox->pdev_info.pdev.lun = lun; in myrs_get_pdev_info()
331 mbox->pdev_info.pdev.target = target; in myrs_get_pdev_info()
332 mbox->pdev_info.pdev.channel = channel; in myrs_get_pdev_info()
333 mbox->pdev_info.ioctl_opcode = MYRS_IOCTL_GET_PDEV_INFO_VALID; in myrs_get_pdev_info()
334 sgl = &mbox->pdev_info.dma_addr; in myrs_get_pdev_info()
336 sgl->sge[0].sge_count = mbox->pdev_info.dma_size; in myrs_get_pdev_info()
397 mbox->pdev_info.opcode = MYRS_CMD_OP_IOCTL; in myrs_translate_pdev()
398 mbox->pdev_info.control.dma_ctrl_to_host = true; in myrs_translate_pdev()
399 mbox->pdev_info.control.no_autosense = true; in myrs_translate_pdev()
400 mbox->pdev_info.dma_size = sizeof(struct myrs_devmap); in myrs_translate_pdev()
401 mbox->pdev_info.pdev.target = target; in myrs_translate_pdev()
402 mbox->pdev_info.pdev.channel = channel; in myrs_translate_pdev()
403 mbox->pdev_info.pdev.lun = lun; in myrs_translate_pdev()
404 mbox->pdev_info.ioctl_opcode = MYRS_IOCTL_XLATE_PDEV_TO_LDEV; in myrs_translate_pdev()
405 sgl = &mbox->pdev_info.dma_addr; in myrs_translate_pdev()
407 sgl->sge[0].sge_count = mbox->pdev_info.dma_size; in myrs_translate_pdev()
860 struct myrs_pdev_info *pdev_info = sdev->hostdata; in myrs_log_event() local
865 pdev_info->dev_state = MYRS_DEVICE_ONLINE; in myrs_log_event()
868 pdev_info->dev_state = MYRS_DEVICE_STANDBY; in myrs_log_event()
871 pdev_info->dev_state = MYRS_DEVICE_OFFLINE; in myrs_log_event()
874 pdev_info->dev_state = MYRS_DEVICE_MISSING; in myrs_log_event()
877 pdev_info->dev_state = MYRS_DEVICE_UNCONFIGURED; in myrs_log_event()
958 struct myrs_pdev_info *pdev_info; in raid_state_show() local
961 pdev_info = sdev->hostdata; in raid_state_show()
962 name = myrs_devstate_name(pdev_info->dev_state); in raid_state_show()
967 pdev_info->dev_state); in raid_state_show()
994 struct myrs_pdev_info *pdev_info = sdev->hostdata; in raid_state_store() local
996 (struct myrs_devmap *)&pdev_info->rsvd13; in raid_state_store()
998 if (pdev_info->dev_state == new_state) { in raid_state_store()
1036 struct myrs_pdev_info *pdev_info = sdev->hostdata; in raid_state_store() local
1038 pdev_info->dev_state = new_state; in raid_state_store()
1870 struct myrs_pdev_info *pdev_info; in myrs_slave_alloc() local
1872 pdev_info = kzalloc(sizeof(*pdev_info), GFP_KERNEL|GFP_DMA); in myrs_slave_alloc()
1873 if (!pdev_info) in myrs_slave_alloc()
1878 pdev_info); in myrs_slave_alloc()
1881 kfree(pdev_info); in myrs_slave_alloc()
1884 sdev->hostdata = pdev_info; in myrs_slave_alloc()