• Home
  • Raw
  • Download

Lines Matching refs:dr

85 	struct vio_dring_state *dr;  in flush_rx_dring()  local
90 dr = &vio->drings[VIO_DRIVER_RX_RING]; in flush_rx_dring()
91 ident = dr->ident; in flush_rx_dring()
97 memset(dr, 0, sizeof(*dr)); in flush_rx_dring()
98 dr->ident = ident; in flush_rx_dring()
137 struct vio_dring_state *dr; in handshake_failure() local
149 dr = &vio->drings[VIO_DRIVER_RX_RING]; in handshake_failure()
150 memset(dr, 0, sizeof(*dr)); in handshake_failure()
178 struct vio_dring_state *dr = &vio->drings[VIO_DRIVER_TX_RING]; in send_dreg() local
187 dr->ncookies); in send_dreg()
196 u.pkt.num_descr = dr->num_entries; in send_dreg()
197 u.pkt.descr_size = dr->entry_size; in send_dreg()
199 u.pkt.num_cookies = dr->ncookies; in send_dreg()
206 for (i = 0; i < dr->ncookies; i++) { in send_dreg()
207 u.pkt.cookies[i] = dr->cookies[i]; in send_dreg()
430 struct vio_dring_state *dr; in process_dreg_info() local
460 dr = &vio->drings[VIO_DRIVER_RX_RING]; in process_dreg_info()
462 dr->num_entries = pkt->num_descr; in process_dreg_info()
463 dr->entry_size = pkt->descr_size; in process_dreg_info()
464 dr->ncookies = pkt->num_cookies; in process_dreg_info()
465 for (i = 0; i < dr->ncookies; i++) { in process_dreg_info()
466 dr->cookies[i] = pkt->cookies[i]; in process_dreg_info()
477 pkt->dring_ident = ++dr->ident; in process_dreg_info()
485 if (send_ctrl(vio, &pkt->tag, struct_size(pkt, cookies, dr->ncookies)) < 0) in process_dreg_info()
503 struct vio_dring_state *dr; in process_dreg_ack() local
511 dr = &vio->drings[VIO_DRIVER_TX_RING]; in process_dreg_ack()
516 dr->ident = pkt->dring_ident; in process_dreg_ack()
563 struct vio_dring_state *dr = &vio->drings[VIO_DRIVER_RX_RING]; in process_dunreg() local
567 if (pkt->dring_ident != dr->ident) in process_dunreg()
572 memset(dr, 0, sizeof(*dr)); in process_dunreg()