Lines Matching refs:i2o_dev
99 struct i2o_device *i2o_dev; in i2o_scsi_host_alloc() local
112 list_for_each_entry(i2o_dev, &c->devices, list) in i2o_scsi_host_alloc()
113 if (i2o_dev->lct_data.class_id == I2O_CLASS_BUS_ADAPTER) { in i2o_scsi_host_alloc()
114 if (!i2o_parm_field_get(i2o_dev, 0x0000, 0, &type, 1) in i2o_scsi_host_alloc()
145 list_for_each_entry(i2o_dev, &c->devices, list) in i2o_scsi_host_alloc()
146 if (i2o_dev->lct_data.class_id == I2O_CLASS_BUS_ADAPTER) { in i2o_scsi_host_alloc()
147 if (!i2o_parm_field_get(i2o_dev, 0x0000, 0, &type, 1) in i2o_scsi_host_alloc()
149 i2o_shost->channel[i++] = i2o_dev; in i2o_scsi_host_alloc()
183 struct i2o_device *i2o_dev = to_i2o_device(dev); in i2o_scsi_remove() local
184 struct i2o_controller *c = i2o_dev->iop; in i2o_scsi_remove()
188 osm_info("device removed (TID: %03x)\n", i2o_dev->lct_data.tid); in i2o_scsi_remove()
193 if (scsi_dev->hostdata == i2o_dev) { in i2o_scsi_remove()
194 sysfs_remove_link(&i2o_dev->device.kobj, "scsi"); in i2o_scsi_remove()
214 struct i2o_device *i2o_dev = to_i2o_device(dev); in i2o_scsi_probe() local
215 struct i2o_controller *c = i2o_dev->iop; in i2o_scsi_probe()
231 switch (i2o_dev->lct_data.class_id) { in i2o_scsi_probe()
243 if (i2o_dev->lct_data.class_id == in i2o_scsi_probe()
256 if (i2o_parm_field_get(i2o_dev, 0x0000, 3, &id, 4)) in i2o_scsi_probe()
259 if (i2o_parm_field_get(i2o_dev, 0x0000, 4, &lun, 8)) in i2o_scsi_probe()
262 parent = i2o_iop_find_device(c, i2o_dev->lct_data.parent_tid); in i2o_scsi_probe()
265 i2o_dev->lct_data.tid); in i2o_scsi_probe()
280 i2o_dev->lct_data.tid); in i2o_scsi_probe()
299 le64_to_cpu(lun), i2o_dev); in i2o_scsi_probe()
303 i2o_dev->lct_data.tid); in i2o_scsi_probe()
307 rc = sysfs_create_link(&i2o_dev->device.kobj, in i2o_scsi_probe()
313 i2o_dev->lct_data.tid, channel, le32_to_cpu(id), in i2o_scsi_probe()
396 static void i2o_scsi_notify_device_add(struct i2o_device *i2o_dev) in i2o_scsi_notify_device_add() argument
398 switch (i2o_dev->lct_data.class_id) { in i2o_scsi_notify_device_add()
401 i2o_scsi_probe(&i2o_dev->device); in i2o_scsi_notify_device_add()
416 static void i2o_scsi_notify_device_remove(struct i2o_device *i2o_dev) in i2o_scsi_notify_device_remove() argument
418 switch (i2o_dev->lct_data.class_id) { in i2o_scsi_notify_device_remove()
421 i2o_scsi_remove(&i2o_dev->device); in i2o_scsi_notify_device_remove()
513 struct i2o_device *i2o_dev; in i2o_scsi_queuecommand() local
530 i2o_dev = SCpnt->device->hostdata; in i2o_scsi_queuecommand()
531 c = i2o_dev->iop; in i2o_scsi_queuecommand()
535 if (unlikely(!i2o_dev)) { in i2o_scsi_queuecommand()
542 tid = i2o_dev->lct_data.tid; in i2o_scsi_queuecommand()
603 switch (i2o_dev->lct_data.class_id) { in i2o_scsi_queuecommand()
707 struct i2o_device *i2o_dev; in i2o_scsi_abort() local
715 i2o_dev = SCpnt->device->hostdata; in i2o_scsi_abort()
716 c = i2o_dev->iop; in i2o_scsi_abort()
717 tid = i2o_dev->lct_data.tid; in i2o_scsi_abort()