• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/ia64/sn/kernel/

Lines Matching refs:cx_dev

53 	struct cx_dev *cx_dev = to_cx_dev(dev);
61 if (ids->part_num == cx_dev->cx_id.part_num)
87 struct cx_dev *cx_device)
115 struct cx_dev *cx_dev = to_cx_dev(dev);
118 if (!cx_dev->driver && cx_drv->probe) {
119 id = cx_device_match(cx_drv->id_table, cx_dev);
121 if ((error = cx_drv->probe(cx_dev, id)) < 0)
124 cx_dev->driver = cx_drv;
137 struct cx_dev *cx_dev = to_cx_dev(dev);
138 struct cx_drv *cx_drv = cx_dev->driver;
140 cx_drv->remove(cx_dev);
141 cx_dev->driver = NULL;
193 struct cx_dev *cx_dev;
195 cx_dev = kzalloc(sizeof(struct cx_dev), GFP_KERNEL);
196 DBG("cx_dev= 0x%p\n", cx_dev);
197 if (cx_dev == NULL)
200 cx_dev->cx_id.part_num = part_num;
201 cx_dev->cx_id.mfg_num = mfg_num;
202 cx_dev->cx_id.nasid = nasid;
203 cx_dev->hubdev = hubdev;
204 cx_dev->bt = bt;
206 cx_dev->dev.parent = NULL;
207 cx_dev->dev.bus = &tiocx_bus_type;
208 cx_dev->dev.release = tiocx_bus_release;
209 dev_set_name(&cx_dev->dev, "%d", cx_dev->cx_id.nasid);
210 device_register(&cx_dev->dev);
211 get_device(&cx_dev->dev);
213 device_create_file(&cx_dev->dev, &dev_attr_cxdev_control);
220 * @cx_dev: part/mfg id for the device
222 int cx_device_unregister(struct cx_dev *cx_dev)
224 put_device(&cx_dev->dev);
225 device_unregister(&cx_dev->dev);
238 static int cx_device_reload(struct cx_dev *cx_dev)
240 cx_device_unregister(cx_dev);
241 return cx_device_register(cx_dev->cx_id.nasid, cx_dev->cx_id.part_num,
242 cx_dev->cx_id.mfg_num, cx_dev->hubdev,
243 cx_dev->bt);
402 static int tiocx_reload(struct cx_dev *cx_dev)
406 nasid_t nasid = cx_dev->cx_id.nasid;
428 cx_dev->cx_id.part_num = part_num;
429 cx_dev->cx_id.mfg_num = mfg_num;
438 return cx_device_reload(cx_dev);
443 struct cx_dev *cx_dev = to_cx_dev(dev);
446 cx_dev->cx_id.nasid,
447 cx_dev->cx_id.part_num, cx_dev->cx_id.mfg_num,
448 cx_dev->bt);
455 struct cx_dev *cx_dev = to_cx_dev(dev);
467 tio_corelet_reset(cx_dev->cx_id.nasid, TIOCX_CORELET);
468 tiocx_reload(cx_dev);
471 tiocx_reload(cx_dev);
474 tio_corelet_reset(cx_dev->cx_id.nasid, TIOCX_CORELET);
536 struct cx_dev *cx_dev = to_cx_dev(dev);
538 cx_device_unregister(cx_dev);