Home
last modified time | relevance | path

Searched refs:xact (Results 1 – 10 of 10) sorted by relevance

/freebsd/sys/dev/hyperv/vmbus/
H A Dvmbus_xact.c84 struct vmbus_xact *xact; in vmbus_xact_alloc() local
86 xact = malloc(sizeof(*xact), M_DEVBUF, M_WAITOK | M_ZERO); in vmbus_xact_alloc()
87 xact->x_ctx = ctx; in vmbus_xact_alloc()
90 xact->x_req = contigmalloc(ctx->xc_req_size, M_DEVBUF, in vmbus_xact_alloc()
92 if (xact->x_req == NULL) { in vmbus_xact_alloc()
93 free(xact, M_DEVBUF); in vmbus_xact_alloc()
97 xact->x_priv = malloc(ctx->xc_priv_size, M_DEVBUF, M_WAITOK); in vmbus_xact_alloc()
98 xact->x_resp0 = malloc(ctx->xc_resp_size, M_DEVBUF, M_WAITOK); in vmbus_xact_alloc()
100 return (xact); in vmbus_xact_alloc()
104 vmbus_xact_free(struct vmbus_xact * xact) vmbus_xact_free() argument
117 struct vmbus_xact *xact; vmbus_xact_get1() local
206 struct vmbus_xact *xact; vmbus_xact_get() local
220 vmbus_xact_put(struct vmbus_xact * xact) vmbus_xact_put() argument
235 vmbus_xact_req_data(const struct vmbus_xact * xact) vmbus_xact_req_data() argument
242 vmbus_xact_req_paddr(const struct vmbus_xact * xact) vmbus_xact_req_paddr() argument
249 vmbus_xact_priv(const struct vmbus_xact * xact,size_t priv_len) vmbus_xact_priv() argument
258 vmbus_xact_activate(struct vmbus_xact * xact) vmbus_xact_activate() argument
271 vmbus_xact_deactivate(struct vmbus_xact * xact) vmbus_xact_deactivate() argument
282 vmbus_xact_return(struct vmbus_xact * xact,size_t * resp_len) vmbus_xact_return() argument
311 vmbus_xact_wait1(struct vmbus_xact * xact,size_t * resp_len,bool can_sleep) vmbus_xact_wait1() argument
339 vmbus_xact_wait(struct vmbus_xact * xact,size_t * resp_len) vmbus_xact_wait() argument
346 vmbus_xact_busywait(struct vmbus_xact * xact,size_t * resp_len) vmbus_xact_busywait() argument
353 vmbus_xact_poll(struct vmbus_xact * xact,size_t * resp_len) vmbus_xact_poll() argument
375 vmbus_xact_save_resp(struct vmbus_xact * xact,const void * data,size_t dlen) vmbus_xact_save_resp() argument
395 vmbus_xact_wakeup(struct vmbus_xact * xact,const void * data,size_t dlen) vmbus_xact_wakeup() argument
[all...]
H A Dvmbus.c263 struct vmbus_xact *xact; in vmbus_msghc_get() local
268 xact = vmbus_xact_get(sc->vmbus_xc, in vmbus_msghc_get()
270 if (xact == NULL) in vmbus_msghc_get()
273 mh = vmbus_xact_priv(xact, sizeof(*mh)); in vmbus_msghc_get()
274 mh->mh_xact = xact; in vmbus_msghc_get()
H A Dvmbus_chan.c1674 ("still has orphan xact installed")); in vmbus_chan_free()
1982 * Set the REVOKED state flag before orphaning the installed xact. in vmbus_chan_msgproc_chrescind()
2318 vmbus_chan_set_orphan(struct vmbus_channel *chan, struct vmbus_xact_ctx *xact)
2322 chan->ch_orphan_xact = xact; in vmbus_chan_set_orphan()
2337 struct vmbus_xact *xact, size_t *resp_len, bool can_sleep)
2342 ret = vmbus_xact_wait(xact, resp_len); in vmbus_chan_xact_wait()
2344 ret = vmbus_xact_busywait(xact, resp_len); in vmbus_chan_xact_wait()
2347 * This xact probably is interrupted, and the in vmbus_chan_xact_wait()
2350 * left on the RX bufring, i.e. this xact will in vmbus_chan_xact_wait()
2320 vmbus_chan_set_orphan(struct vmbus_channel * chan,struct vmbus_xact_ctx * xact) vmbus_chan_set_orphan() argument
2339 vmbus_chan_xact_wait(const struct vmbus_channel * chan,struct vmbus_xact * xact,size_t * resp_len,bool can_sleep) vmbus_chan_xact_wait() argument
/freebsd/sys/dev/hyperv/include/
H A Dvmbus_xact.h44 void vmbus_xact_put(struct vmbus_xact *xact);
46 void *vmbus_xact_req_data(const struct vmbus_xact *xact);
47 bus_addr_t vmbus_xact_req_paddr(const struct vmbus_xact *xact);
48 void *vmbus_xact_priv(const struct vmbus_xact *xact,
50 void vmbus_xact_activate(struct vmbus_xact *xact);
51 void vmbus_xact_deactivate(struct vmbus_xact *xact);
52 const void *vmbus_xact_wait(struct vmbus_xact *xact,
54 const void *vmbus_xact_busywait(struct vmbus_xact *xact,
56 const void *vmbus_xact_poll(struct vmbus_xact *xact,
58 void vmbus_xact_wakeup(struct vmbus_xact *xact,
H A Dvmbus.h185 struct vmbus_xact *xact, size_t *resp_len, bool can_sleep);
/freebsd/sys/dev/hyperv/netvsc/
H A Dhn_nvs.c93 hn_nvs_xact_execute(struct hn_softc *sc, struct vmbus_xact *xact, in hn_nvs_xact_execute() argument
107 hn_nvs_sendctx_init(&sndc, hn_nvs_sent_xact, xact); in hn_nvs_xact_execute()
109 vmbus_xact_activate(xact); in hn_nvs_xact_execute()
113 vmbus_xact_deactivate(xact); in hn_nvs_xact_execute()
116 hdr = vmbus_chan_xact_wait(sc->hn_prichan, xact, &resplen, in hn_nvs_xact_execute()
147 struct vmbus_xact *xact = NULL; in hn_nvs_conn_rxbuf() local
182 xact = vmbus_xact_get(sc->hn_xact, sizeof(*conn)); in hn_nvs_conn_rxbuf()
183 if (xact == NULL) { in hn_nvs_conn_rxbuf()
188 conn = vmbus_xact_req_data(xact); in hn_nvs_conn_rxbuf()
194 resp = hn_nvs_xact_execute(sc, xact, conn, sizeof(*conn), &resp_len, in hn_nvs_conn_rxbuf()
[all …]
H A Dhn_rndis.c207 hn_rndis_xact_exec1(struct hn_softc *sc, struct vmbus_xact *xact, size_t reqlen, in hn_rndis_xact_exec1() argument
220 paddr = vmbus_xact_req_paddr(xact); in hn_rndis_xact_exec1()
243 vmbus_xact_activate(xact); in hn_rndis_xact_exec1()
246 vmbus_xact_deactivate(xact); in hn_rndis_xact_exec1()
250 return (vmbus_chan_xact_wait(sc->hn_prichan, xact, comp_len, in hn_rndis_xact_exec1()
255 hn_rndis_xact_execute(struct hn_softc *sc, struct vmbus_xact *xact, uint32_t rid, in hn_rndis_xact_execute() argument
268 comp = hn_rndis_xact_exec1(sc, xact, reqlen, &hn_nvs_sendctx_none, in hn_rndis_xact_execute()
322 struct vmbus_xact *xact; in hn_rndis_query2() local
328 xact = vmbus_xact_get(sc->hn_xact, reqlen); in hn_rndis_query2()
329 if (xact == NULL) { in hn_rndis_query2()
[all …]
/freebsd/sys/dev/hyperv/input/
H A Dhv_hid.c195 struct vmbus_xact *xact; in hv_hid_connect_vsp() local
201 xact = vmbus_xact_get(sc->hs_xact_ctx, HV_HID_REQ_SZ); in hv_hid_connect_vsp()
202 if (xact == NULL) { in hv_hid_connect_vsp()
206 req = vmbus_xact_req_data(xact); in hv_hid_connect_vsp()
213 vmbus_xact_activate(xact); in hv_hid_connect_vsp()
217 req, HV_HID_REQ_SZ, (uint64_t)(uintptr_t)xact); in hv_hid_connect_vsp()
220 vmbus_xact_deactivate(xact); in hv_hid_connect_vsp()
223 resp = vmbus_chan_xact_wait(sc->hs_chan, xact, &resplen, true); in hv_hid_connect_vsp()
229 vmbus_xact_put(xact); in hv_hid_connect_vsp()
265 struct vmbus_xact *xact; in hv_hid_receive() local
[all …]
H A Dhv_kbdc.c244 struct vmbus_xact_ctx *xact = sc->hs_xact_ctx; in hv_kbd_on_response() local
245 if (xact != NULL) { in hv_kbd_on_response()
247 vmbus_xact_ctx_wakeup(xact, VMBUS_CHANPKT_CONST_DATA(pkt), in hv_kbd_on_response()
344 struct vmbus_xact *xact; in hv_kbd_connect_vsp() local
348 xact = vmbus_xact_get(sc->hs_xact_ctx, sizeof(*req)); in hv_kbd_connect_vsp()
349 if (xact == NULL) { in hv_kbd_connect_vsp()
353 req = vmbus_xact_req_data(xact); in hv_kbd_connect_vsp()
357 vmbus_xact_activate(xact); in hv_kbd_connect_vsp()
362 (uint64_t)(uintptr_t)xact); in hv_kbd_connect_vsp()
365 vmbus_xact_deactivate(xact); in hv_kbd_connect_vsp()
[all …]
/freebsd/usr.sbin/services_mkdb/
H A Dservices1444 xact-backup 911/tcp
1445 xact-backup 911/udp