Lines Matching refs:ldev_info
1364 struct myrb_ldev_info *ldev_info) in myrb_mode_sense() argument
1384 put_unaligned_be32(ldev_info->size, &block_desc[0]); in myrb_mode_sense()
1389 if (ldev_info->wb_enabled) in myrb_mode_sense()
1409 struct myrb_ldev_info *ldev_info) in myrb_read_capacity() argument
1415 ldev_info->size, cb->ldev_block_size); in myrb_read_capacity()
1416 put_unaligned_be32(ldev_info->size - 1, &data[0]); in myrb_read_capacity()
1427 struct myrb_ldev_info *ldev_info; in myrb_ldev_queuecommand() local
1435 ldev_info = sdev->hostdata; in myrb_ldev_queuecommand()
1436 if (ldev_info->state != MYRB_DEVICE_ONLINE && in myrb_ldev_queuecommand()
1437 ldev_info->state != MYRB_DEVICE_WO) { in myrb_ldev_queuecommand()
1439 sdev->id, ldev_info ? ldev_info->state : 0xff); in myrb_ldev_queuecommand()
1475 myrb_mode_sense(cb, scmd, ldev_info); in myrb_ldev_queuecommand()
1501 myrb_read_capacity(cb, scmd, ldev_info); in myrb_ldev_queuecommand()
1522 if (ldev_info->state == MYRB_DEVICE_WO) { in myrb_ldev_queuecommand()
1539 if (ldev_info->state == MYRB_DEVICE_WO) { in myrb_ldev_queuecommand()
1556 if (ldev_info->state == MYRB_DEVICE_WO) { in myrb_ldev_queuecommand()
1653 struct myrb_ldev_info *ldev_info; in myrb_ldev_slave_alloc() local
1657 ldev_info = cb->ldev_info_buf + ldev_num; in myrb_ldev_slave_alloc()
1658 if (!ldev_info) in myrb_ldev_slave_alloc()
1661 sdev->hostdata = kzalloc(sizeof(*ldev_info), GFP_KERNEL); in myrb_ldev_slave_alloc()
1666 ldev_num, ldev_info->state); in myrb_ldev_slave_alloc()
1667 memcpy(sdev->hostdata, ldev_info, in myrb_ldev_slave_alloc()
1668 sizeof(*ldev_info)); in myrb_ldev_slave_alloc()
1669 switch (ldev_info->raid_level) { in myrb_ldev_slave_alloc()
1748 struct myrb_ldev_info *ldev_info; in myrb_slave_configure() local
1760 ldev_info = sdev->hostdata; in myrb_slave_configure()
1761 if (!ldev_info) in myrb_slave_configure()
1763 if (ldev_info->state != MYRB_DEVICE_ONLINE) in myrb_slave_configure()
1766 myrb_devstate_name(ldev_info->state)); in myrb_slave_configure()
1800 struct myrb_ldev_info *ldev_info = sdev->hostdata; in raid_state_show() local
1803 name = myrb_devstate_name(ldev_info->state); in raid_state_show()
1808 ldev_info->state); in raid_state_show()
1908 struct myrb_ldev_info *ldev_info = sdev->hostdata; in raid_level_show() local
1911 if (!ldev_info) in raid_level_show()
1914 name = myrb_raidlevel_name(ldev_info->raid_level); in raid_level_show()
1917 ldev_info->state); in raid_level_show()
2291 struct myrb_ldev_info *ldev_info = sdev->hostdata; in myrb_get_state() local
2295 if (sdev->channel < myrb_logical_channel(sdev->host) || !ldev_info) in myrb_get_state()
2302 switch (ldev_info->state) { in myrb_get_state()