Lines Matching defs:i2o_dev

109 	struct i2o_device *i2o_dev = to_i2o_device(dev);
112 osm_info("device removed (TID: %03x): %s\n", i2o_dev->lct_data.tid,
115 i2o_event_register(i2o_dev, &i2o_block_driver, 0, 0);
121 i2o_device_claim_release(i2o_dev);
250 struct i2o_device *i2o_dev = dev->i2o_dev;
251 struct i2o_controller *c = i2o_dev->iop;
261 cpu_to_le32(I2O_CMD_BLOCK_POWER << 24 | HOST_TID << 12 | i2o_dev->
579 if (!dev->i2o_dev)
586 i2o_block_device_mount(dev->i2o_dev, -1);
588 i2o_block_device_lock(dev->i2o_dev, -1);
619 if (!dev->i2o_dev)
623 i2o_block_device_flush(dev->i2o_dev);
625 i2o_block_device_unlock(dev->i2o_dev, -1);
743 if (unlikely(!dev->i2o_dev)) {
749 tid = dev->i2o_dev->lct_data.tid;
750 c = dev->i2o_dev->iop;
1030 struct i2o_device *i2o_dev = to_i2o_device(dev);
1031 struct i2o_controller *c = i2o_dev->iop;
1054 if (i2o_dev->lct_data.user_tid != 0xfff) {
1055 osm_debug("skipping used device %03x\n", i2o_dev->lct_data.tid);
1059 if (i2o_device_claim(i2o_dev)) {
1072 i2o_blk_dev->i2o_dev = i2o_dev;
1079 gd->driverfs_dev = &i2o_dev->device;
1096 if (!i2o_parm_field_get(i2o_dev, 0x0004, 1, &blocksize, 4) ||
1097 !i2o_parm_field_get(i2o_dev, 0x0000, 3, &blocksize, 4)) {
1102 if (!i2o_parm_field_get(i2o_dev, 0x0004, 0, &size, 8) ||
1103 !i2o_parm_field_get(i2o_dev, 0x0000, 4, &size, 8)) {
1108 if (!i2o_parm_field_get(i2o_dev, 0x0000, 2, &power, 2))
1111 i2o_event_register(i2o_dev, &i2o_block_driver, 0, 0xffffffff);
1117 osm_info("device added (TID: %03x): %s\n", i2o_dev->lct_data.tid,
1123 i2o_device_claim_release(i2o_dev);