Lines Matching refs:ldev_info

1363 		struct myrb_ldev_info *ldev_info)  in myrb_mode_sense()  argument
1383 put_unaligned_be32(ldev_info->size, &block_desc[0]); in myrb_mode_sense()
1388 if (ldev_info->wb_enabled) in myrb_mode_sense()
1407 struct myrb_ldev_info *ldev_info) in myrb_read_capacity() argument
1413 ldev_info->size, cb->ldev_block_size); in myrb_read_capacity()
1414 put_unaligned_be32(ldev_info->size - 1, &data[0]); in myrb_read_capacity()
1425 struct myrb_ldev_info *ldev_info; in myrb_ldev_queuecommand() local
1433 ldev_info = sdev->hostdata; in myrb_ldev_queuecommand()
1434 if (ldev_info->state != MYRB_DEVICE_ONLINE && in myrb_ldev_queuecommand()
1435 ldev_info->state != MYRB_DEVICE_WO) { in myrb_ldev_queuecommand()
1437 sdev->id, ldev_info ? ldev_info->state : 0xff); in myrb_ldev_queuecommand()
1467 myrb_mode_sense(cb, scmd, ldev_info); in myrb_ldev_queuecommand()
1487 myrb_read_capacity(cb, scmd, ldev_info); in myrb_ldev_queuecommand()
1505 if (ldev_info->state == MYRB_DEVICE_WO) { in myrb_ldev_queuecommand()
1519 if (ldev_info->state == MYRB_DEVICE_WO) { in myrb_ldev_queuecommand()
1533 if (ldev_info->state == MYRB_DEVICE_WO) { in myrb_ldev_queuecommand()
1625 struct myrb_ldev_info *ldev_info; in myrb_ldev_slave_alloc() local
1629 ldev_info = cb->ldev_info_buf + ldev_num; in myrb_ldev_slave_alloc()
1630 if (!ldev_info) in myrb_ldev_slave_alloc()
1633 sdev->hostdata = kzalloc(sizeof(*ldev_info), GFP_KERNEL); in myrb_ldev_slave_alloc()
1638 ldev_num, ldev_info->state); in myrb_ldev_slave_alloc()
1639 memcpy(sdev->hostdata, ldev_info, in myrb_ldev_slave_alloc()
1640 sizeof(*ldev_info)); in myrb_ldev_slave_alloc()
1641 switch (ldev_info->raid_level) { in myrb_ldev_slave_alloc()
1720 struct myrb_ldev_info *ldev_info; in myrb_slave_configure() local
1732 ldev_info = sdev->hostdata; in myrb_slave_configure()
1733 if (!ldev_info) in myrb_slave_configure()
1735 if (ldev_info->state != MYRB_DEVICE_ONLINE) in myrb_slave_configure()
1738 myrb_devstate_name(ldev_info->state)); in myrb_slave_configure()
1772 struct myrb_ldev_info *ldev_info = sdev->hostdata; in raid_state_show() local
1775 name = myrb_devstate_name(ldev_info->state); in raid_state_show()
1780 ldev_info->state); in raid_state_show()
1880 struct myrb_ldev_info *ldev_info = sdev->hostdata; in raid_level_show() local
1883 if (!ldev_info) in raid_level_show()
1886 name = myrb_raidlevel_name(ldev_info->raid_level); in raid_level_show()
1889 ldev_info->state); in raid_level_show()
2267 struct myrb_ldev_info *ldev_info = sdev->hostdata; in myrb_get_state() local
2271 if (sdev->channel < myrb_logical_channel(sdev->host) || !ldev_info) in myrb_get_state()
2278 switch (ldev_info->state) { in myrb_get_state()