• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/block/

Lines Matching refs:vio

20 #include <asm/vio.h>
47 struct vio_driver_state vio;
75 static inline struct vdc_port *to_vdc_port(struct vio_driver_state *vio)
77 return container_of(vio, struct vdc_port, vio);
111 static void vdc_finish(struct vio_driver_state *vio, int err, int waiting_for)
113 if (vio->cmp &&
115 vio->cmp->waiting_for == waiting_for)) {
116 vio->cmp->err = err;
117 complete(&vio->cmp->com);
118 vio->cmp = NULL;
122 static void vdc_handshake_complete(struct vio_driver_state *vio)
124 vdc_finish(vio, 0, WAITING_FOR_LINK_UP);
135 ldc_disconnect(port->vio.lp);
140 static int vdc_send_attr(struct vio_driver_state *vio)
142 struct vdc_port *port = to_vdc_port(vio);
150 pkt.tag.sid = vio_send_sid(vio);
159 return vio_ldc_send(&port->vio, &pkt, sizeof(pkt));
162 static int vdc_handle_attr(struct vio_driver_state *vio, void *arg)
164 struct vdc_port *port = to_vdc_port(vio);
182 vio->name, pkt->vdisk_type);
189 vio->name,
202 printk(KERN_ERR PFX "%s: Attribute NACK\n", vio->name);
212 vdc_finish(&port->vio, -err, WAITING_FOR_GEN_CMD);
225 ldc_unmap(port->vio.lp, desc->cookies, desc->ncookies);
245 struct vio_dring_state *dr = &port->vio.drings[VIO_DRIVER_TX_RING];
266 struct vio_driver_state *vio = &port->vio;
270 spin_lock_irqsave(&vio->lock, flags);
274 vio_link_state_change(vio, event);
275 spin_unlock_irqrestore(&vio->lock, flags);
281 spin_unlock_irqrestore(&vio->lock, flags);
292 err = ldc_read(vio->lp, &msgbuf, sizeof(msgbuf));
295 vio_conn_reset(vio);
305 err = vio_validate_sid(vio, &msgbuf.tag);
317 err = vio_control_pkt_engine(vio, &msgbuf);
325 vdc_finish(&port->vio, err, WAITING_FOR_ANY);
326 spin_unlock_irqrestore(&vio->lock, flags);
331 struct vio_dring_state *dr = &port->vio.drings[VIO_DRIVER_TX_RING];
337 .sid = vio_send_sid(&port->vio),
348 err = vio_ldc_send(&port->vio, &hdr, sizeof(hdr));
364 struct vio_dring_state *dr = &port->vio.drings[VIO_DRIVER_TX_RING];
398 err = ldc_map_sg(port->vio.lp, sg, nsg,
536 spin_lock_irqsave(&port->vio.lock, flags);
538 dr = &port->vio.drings[VIO_DRIVER_TX_RING];
542 err = ldc_map_single(port->vio.lp, req_buf, op_len,
546 spin_unlock_irqrestore(&port->vio.lock, flags);
553 port->vio.cmp = &comp;
574 spin_unlock_irqrestore(&port->vio.lock, flags);
579 port->vio.cmp = NULL;
580 spin_unlock_irqrestore(&port->vio.lock, flags);
593 struct vio_dring_state *dr = &port->vio.drings[VIO_DRIVER_TX_RING];
603 dring = ldc_alloc_exp_dring(port->vio.lp, len,
623 struct vio_dring_state *dr = &port->vio.drings[VIO_DRIVER_TX_RING];
626 ldc_free_exp_dring(port->vio.lp, dr->base,
647 port->vio.cmp = &comp;
649 vio_port_up(&port->vio);
674 q = blk_init_queue(do_vdc_request, &port->vio.lock);
677 port->vio.name);
683 port->vio.name);
693 g->first_minor = port->vio.vdev->dev_no << PARTITION_SHIFT;
699 g->driverfs_dev = &port->vio.vdev->dev;
766 err = vio_driver_init(&port->vio, vdev, VDEV_DISK,
777 err = vio_ldc_alloc(&port->vio, &vdc_ldc_cfg, port);
799 vio_ldc_free(&port->vio);
814 del_timer_sync(&port->vio.timer);
817 vio_ldc_free(&port->vio);
832 MODULE_DEVICE_TABLE(vio, vdc_port_match);