Lines Matching refs:i2o_dev
106 struct i2o_device *i2o_dev = to_i2o_device(dev); in i2o_block_remove() local
109 osm_info("device removed (TID: %03x): %s\n", i2o_dev->lct_data.tid, in i2o_block_remove()
112 i2o_event_register(i2o_dev, &i2o_block_driver, 0, 0); in i2o_block_remove()
118 i2o_device_claim_release(i2o_dev); in i2o_block_remove()
247 struct i2o_device *i2o_dev = dev->i2o_dev; in i2o_block_device_power() local
248 struct i2o_controller *c = i2o_dev->iop; in i2o_block_device_power()
258 cpu_to_le32(I2O_CMD_BLOCK_POWER << 24 | HOST_TID << 12 | i2o_dev-> in i2o_block_device_power()
582 if (!dev->i2o_dev) in i2o_block_open()
588 i2o_block_device_mount(dev->i2o_dev, -1); in i2o_block_open()
590 i2o_block_device_lock(dev->i2o_dev, -1); in i2o_block_open()
620 if (!dev->i2o_dev) in i2o_block_release()
623 i2o_block_device_flush(dev->i2o_dev); in i2o_block_release()
625 i2o_block_device_unlock(dev->i2o_dev, -1); in i2o_block_release()
720 u32 tid = dev->i2o_dev->lct_data.tid; in i2o_block_transfer()
730 if (unlikely(!dev->i2o_dev)) { in i2o_block_transfer()
736 c = dev->i2o_dev->iop; in i2o_block_transfer()
1016 struct i2o_device *i2o_dev = to_i2o_device(dev); in i2o_block_probe() local
1017 struct i2o_controller *c = i2o_dev->iop; in i2o_block_probe()
1040 if (i2o_dev->lct_data.user_tid != 0xfff) { in i2o_block_probe()
1041 osm_debug("skipping used device %03x\n", i2o_dev->lct_data.tid); in i2o_block_probe()
1045 if (i2o_device_claim(i2o_dev)) { in i2o_block_probe()
1058 i2o_blk_dev->i2o_dev = i2o_dev; in i2o_block_probe()
1065 gd->driverfs_dev = &i2o_dev->device; in i2o_block_probe()
1083 if (!i2o_parm_field_get(i2o_dev, 0x0004, 1, &blocksize, 4) || in i2o_block_probe()
1084 !i2o_parm_field_get(i2o_dev, 0x0000, 3, &blocksize, 4)) { in i2o_block_probe()
1089 if (!i2o_parm_field_get(i2o_dev, 0x0004, 0, &size, 8) || in i2o_block_probe()
1090 !i2o_parm_field_get(i2o_dev, 0x0000, 4, &size, 8)) { in i2o_block_probe()
1095 if (!i2o_parm_field_get(i2o_dev, 0x0000, 2, &power, 2)) in i2o_block_probe()
1098 i2o_event_register(i2o_dev, &i2o_block_driver, 0, 0xffffffff); in i2o_block_probe()
1104 osm_info("device added (TID: %03x): %s\n", i2o_dev->lct_data.tid, in i2o_block_probe()
1110 i2o_device_claim_release(i2o_dev); in i2o_block_probe()