Lines Matching refs:dv
174 struct hv_ic_dev *dv; in hv_attach_icdevs() local
179 dv = &hv_ic_devs[i]; in hv_attach_icdevs()
186 if (memcmp(dv->dv_type, &ch->ch_type, in hv_attach_icdevs()
193 dv->dv_ch = ch; in hv_attach_icdevs()
201 dv->dv_ch->ch_flags &= ~CHF_BATCHED; in hv_attach_icdevs()
203 if (dv->dv_attach && dv->dv_attach(dv) != 0) in hv_attach_icdevs()
207 dv->dv_handler, dv)) { in hv_attach_icdevs()
209 sc->sc_dev.dv_xname, dv->dv_name); in hv_attach_icdevs()
212 evcount_attach(&ch->ch_evcnt, dv->dv_name, &sc->sc_idtvec); in hv_attach_icdevs()
215 printf("%s: %s", sc->sc_dev.dv_xname, dv->dv_name); in hv_attach_icdevs()
218 printf(", %s", dv->dv_name); in hv_attach_icdevs()
273 hv_heartbeat_attach(struct hv_ic_dev *dv) in hv_heartbeat_attach() argument
275 struct hv_channel *ch = dv->dv_ch; in hv_heartbeat_attach()
278 dv->dv_buf = malloc(PAGE_SIZE, M_DEVBUF, M_ZERO | in hv_heartbeat_attach()
280 if (dv->dv_buf == NULL) { in hv_heartbeat_attach()
291 struct hv_ic_dev *dv = arg; in hv_heartbeat() local
292 struct hv_channel *ch = dv->dv_ch; in hv_heartbeat()
300 rv = hv_channel_recv(ch, dv->dv_buf, PAGE_SIZE, &rlen, &rid, 0); in hv_heartbeat()
312 hdr = (struct vmbus_icmsg_hdr *)dv->dv_buf; in hv_heartbeat()
328 hv_channel_send(ch, dv->dv_buf, rlen, rid, VMBUS_CHANPKT_TYPE_INBAND, 0); in hv_heartbeat()
339 hv_shutdown_attach(struct hv_ic_dev *dv) in hv_shutdown_attach() argument
341 struct hv_channel *ch = dv->dv_ch; in hv_shutdown_attach()
344 dv->dv_buf = malloc(PAGE_SIZE, M_DEVBUF, M_ZERO | in hv_shutdown_attach()
346 if (dv->dv_buf == NULL) { in hv_shutdown_attach()
360 struct hv_ic_dev *dv = arg; in hv_shutdown() local
361 struct hv_channel *ch = dv->dv_ch; in hv_shutdown()
369 rv = hv_channel_recv(ch, dv->dv_buf, PAGE_SIZE, &rlen, &rid, 0); in hv_shutdown()
381 hdr = (struct vmbus_icmsg_hdr *)dv->dv_buf; in hv_shutdown()
402 hv_channel_send(ch, dv->dv_buf, rlen, rid, VMBUS_CHANPKT_TYPE_INBAND, 0); in hv_shutdown()
409 hv_timesync_attach(struct hv_ic_dev *dv) in hv_timesync_attach() argument
411 struct hv_channel *ch = dv->dv_ch; in hv_timesync_attach()
414 dv->dv_buf = malloc(PAGE_SIZE, M_DEVBUF, M_ZERO | in hv_timesync_attach()
416 if (dv->dv_buf == NULL) { in hv_timesync_attach()
437 struct hv_ic_dev *dv = arg; in hv_timesync() local
438 struct hv_channel *ch = dv->dv_ch; in hv_timesync()
448 rv = hv_channel_recv(ch, dv->dv_buf, PAGE_SIZE, &rlen, &rid, 0); in hv_timesync()
460 hdr = (struct vmbus_icmsg_hdr *)dv->dv_buf; in hv_timesync()
487 hv_channel_send(ch, dv->dv_buf, rlen, rid, VMBUS_CHANPKT_TYPE_INBAND, 0); in hv_timesync()
770 hv_kvp_attach(struct hv_ic_dev *dv) in hv_kvp_attach() argument
772 struct hv_channel *ch = dv->dv_ch; in hv_kvp_attach()
777 dv->dv_buf = malloc(2 * PAGE_SIZE, M_DEVBUF, M_ZERO | in hv_kvp_attach()
779 if (dv->dv_buf == NULL) { in hv_kvp_attach()
785 dv->dv_priv = malloc(sizeof(struct hv_kvp), M_DEVBUF, M_ZERO | in hv_kvp_attach()
787 if (dv->dv_priv == NULL) { in hv_kvp_attach()
788 free(dv->dv_buf, M_DEVBUF, 2 * PAGE_SIZE); in hv_kvp_attach()
793 kvp = dv->dv_priv; in hv_kvp_attach()
811 sc->sc_pvbus->hv_arg = dv; in hv_kvp_attach()
1044 struct hv_ic_dev *dv = arg; in hv_kvp() local
1045 struct hv_channel *ch = dv->dv_ch; in hv_kvp()
1047 struct hv_kvp *kvp = dv->dv_priv; in hv_kvp()
1054 rv = hv_channel_recv(ch, dv->dv_buf, 2 * PAGE_SIZE, in hv_kvp()
1067 hdr = (struct vmbus_icmsg_hdr *)dv->dv_buf; in hv_kvp()
1100 hv_channel_send(ch, dv->dv_buf, rlen, rid, in hv_kvp()
1129 struct hv_ic_dev *dv = arg; in hv_kvop() local
1130 struct hv_kvp *kvp = dv->dv_priv; in hv_kvop()