Home
last modified time | relevance | path

Searched refs:xfer (Results 1 – 16 of 16) sorted by relevance

/haiku/src/libs/compat/freebsd_network/
H A Dusb.cpp290 struct usb_xfer* xfer = new usb_xfer; in usbd_transfer_setup() local
291 xfer->mutex = xfer_mtx; in usbd_transfer_setup()
292 xfer->priv_sc = priv_sc; in usbd_transfer_setup()
293 xfer->priv = NULL; in usbd_transfer_setup()
294 xfer->callback = setup->callback; in usbd_transfer_setup()
295 xfer->flags = setup->flags; in usbd_transfer_setup()
296 xfer->max_data_length = setup->bufsize; in usbd_transfer_setup()
298 xfer->device = (usb_device)udev->haiku_usb_device; in usbd_transfer_setup()
299 xfer->type = setup->type; in usbd_transfer_setup()
301 xfer->pipe = -1; in usbd_transfer_setup()
[all …]
/haiku/src/add-ons/kernel/bus_managers/firewire/
H A Dfwmem.cpp60 struct fw_xfer *xfer; in fwmem_xfer_req() local
62 xfer = fw_xfer_alloc(); in fwmem_xfer_req()
63 if (xfer == NULL) in fwmem_xfer_req()
66 xfer->fc = fwdev->fc; in fwmem_xfer_req()
67 xfer->send.hdr.mode.hdr.dst = FWLOCALBUS | fwdev->dst; in fwmem_xfer_req()
69 xfer->send.spd = fwdev->speed; in fwmem_xfer_req()
71 xfer->send.spd = min_c(spd, fwdev->speed); in fwmem_xfer_req()
72 xfer->hand = (void (*)(fw_xfer*))hand; in fwmem_xfer_req()
73 xfer->sc = sc; in fwmem_xfer_req()
74 xfer->send.pay_len = slen; in fwmem_xfer_req()
[all …]
H A Dfirewire.cpp145 fw_asyreq(struct firewire_comm *fc, int sub, struct fw_xfer *xfer) in fw_asyreq() argument
154 if(xfer == NULL) return EINVAL; in fw_asyreq()
155 if(xfer->hand == NULL){ in fw_asyreq()
159 fp = &xfer->send.hdr; in fw_asyreq()
173 xfer->resp = EAGAIN; in fw_asyreq()
174 xfer->flag = FWXF_BUSY; in fw_asyreq()
183 if (xfer->send.pay_len > MAXREC(fc->maxrec)) { in fw_asyreq()
193 if (len != xfer->send.pay_len){ in fw_asyreq()
195 len, xfer->send.pay_len, tcode_str[tcode], tcode); in fw_asyreq()
209 xfer->tl = -1; in fw_asyreq()
[all …]
H A Dfwohci.cpp568 db_tr->xfer = NULL;
572 db_tr->xfer = NULL;
880 struct fw_xfer *xfer; local
905 xfer = STAILQ_FIRST(&dbch->xferq.q);
906 if(xfer == NULL){
915 db_tr->xfer = xfer;
916 xfer->flag = FWXF_START;
918 fp = &xfer->send.hdr;
930 ohcifp->mode.common.spd = xfer->send.spd & 0x7;
965 if (xfer->send.pay_len > 0) {
[all …]
H A Dfwohcireg.h337 struct fw_xfer *xfer; member
/haiku/headers/private/firewire/
H A Dfirewire_module.h25 int (*fw_asyreq)(struct firewire_comm *fc, int sub, struct fw_xfer *xfer);
27 void (*fw_xferwake)(struct fw_xfer *xfer);
28 int (*fw_xferwait)(struct fw_xfer *xfer);
46 void (*fw_xfer_done)(struct fw_xfer *xfer);
48 void (*fw_xfer_unload)(struct fw_xfer* xfer);
50 void (*fw_xfer_free_buf)( struct fw_xfer* xfer);
52 void (*fw_xfer_free)( struct fw_xfer* xfer);
54 void (*fw_asy_callback_free)(struct fw_xfer *xfer);
H A Dfirewirereg.h338 struct fw_xfer *xfer; member
/haiku/src/add-ons/kernel/drivers/bus/firewire/
H A Dfw_raw.c223 struct fw_xfer *xfer; in fw_free() local
251 for (xfer = STAILQ_FIRST(&ir->q); in fw_free()
252 xfer != NULL; xfer = STAILQ_FIRST(&ir->q)) { in fw_free()
256 xfer->resp = 0; in fw_free()
257 gFirewire->fw_xfer_done(xfer); in fw_free()
289 struct fw_xfer *xfer; in fw_read_async() local
299 while ((xfer = STAILQ_FIRST(&d->rq)) == NULL && err == B_OK) { in fw_read_async()
316 FW_GUNLOCK(xfer->fc); in fw_read_async()
318 fp = &xfer->recv.hdr; in fw_read_async()
323 tinfo = &xfer->fc->tcode[fp->mode.hdr.tcode]; in fw_read_async()
[all …]
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/usb/
H A Drtwn_usb_tx.c136 rtwn_bulk_tx_callback_qid(struct usb_xfer *xfer, usb_error_t error, int qid) in rtwn_bulk_tx_callback_qid() argument
138 struct rtwn_usb_softc *uc = usbd_xfer_softc(xfer); in rtwn_bulk_tx_callback_qid()
149 switch (USB_GET_STATE(xfer)){ in rtwn_bulk_tx_callback_qid()
175 usbd_xfer_set_frame_data(xfer, 0, data->buf, data->buflen); in rtwn_bulk_tx_callback_qid()
176 usbd_transfer_submit(xfer); in rtwn_bulk_tx_callback_qid()
193 usbd_xfer_set_stall(xfer); in rtwn_bulk_tx_callback_qid()
242 rtwn_bulk_tx_callback_be(struct usb_xfer *xfer, usb_error_t error) in rtwn_bulk_tx_callback_be() argument
245 rtwn_bulk_tx_callback_qid(xfer, error, RTWN_BULK_TX_BE); in rtwn_bulk_tx_callback_be()
249 rtwn_bulk_tx_callback_bk(struct usb_xfer *xfer, usb_error_t error) in rtwn_bulk_tx_callback_bk() argument
252 rtwn_bulk_tx_callback_qid(xfer, error, RTWN_BULK_TX_BK); in rtwn_bulk_tx_callback_bk()
[all …]
H A Drtwn_usb_rx.c293 rtwn_report_intr(struct rtwn_usb_softc *uc, struct usb_xfer *xfer, in rtwn_report_intr() argument
301 usbd_xfer_status(xfer, &len, NULL, NULL, NULL); in rtwn_report_intr()
362 rtwn_bulk_rx_callback(struct usb_xfer *xfer, usb_error_t error) in rtwn_bulk_rx_callback() argument
364 struct rtwn_usb_softc *uc = usbd_xfer_softc(xfer); in rtwn_bulk_rx_callback()
373 switch (USB_GET_STATE(xfer)) { in rtwn_bulk_rx_callback()
379 m = rtwn_report_intr(uc, xfer, data); in rtwn_bulk_rx_callback()
391 usbd_xfer_set_frame_data(xfer, 0, data->buf, in rtwn_bulk_rx_callback()
392 usbd_xfer_max_len(xfer)); in rtwn_bulk_rx_callback()
393 usbd_transfer_submit(xfer); in rtwn_bulk_rx_callback()
434 usbd_xfer_set_stall(xfer); in rtwn_bulk_rx_callback()
/haiku/src/libs/compat/freebsd_network/compat/dev/usb/
H A Dusbdi.h335 #define USB_GET_STATE(xfer) (usbd_xfer_state(xfer)) argument
355 void* usbd_xfer_softc(struct usb_xfer *xfer);
356 void* usbd_xfer_get_priv(struct usb_xfer* xfer);
357 void usbd_xfer_set_priv(struct usb_xfer* xfer, void* ptr);
358 uint8_t usbd_xfer_state(struct usb_xfer *xfer);
359 usb_frlength_t usbd_xfer_max_len(struct usb_xfer *xfer);
361 void usbd_xfer_set_frames(struct usb_xfer *xfer, usb_frcount_t n);
362 void usbd_xfer_set_frame_data(struct usb_xfer *xfer, usb_frcount_t frindex,
364 void usbd_xfer_set_frame_len(struct usb_xfer *xfer, usb_frcount_t frindex,
366 void usbd_xfer_set_stall(struct usb_xfer *xfer);
[all …]
H A Dusb_debug.h60 void usb_dump_xfer(struct usb_xfer *xfer);
/haiku/src/add-ons/kernel/drivers/network/ether/pcnet/dev/le/
H A Dlance.c767 int xfer;
771 xfer = min(len, 16 - boff);
773 memcpy(bptr + boff, from, xfer);
774 from += xfer;
777 len -= xfer;
778 xfer = min(len, 16);
787 int xfer;
791 xfer = min(len, 16 - boff);
793 memcpy(to, bptr + boff, xfer);
794 to += xfer;
[all …]
/haiku/src/add-ons/kernel/drivers/network/wlan/ralinkwifi/dev/usb/wlan/
H A Dif_ural.c757 ural_bulk_write_callback(struct usb_xfer *xfer, usb_error_t error) in ural_bulk_write_callback() argument
759 struct ural_softc *sc = usbd_xfer_softc(xfer); in ural_bulk_write_callback()
766 usbd_xfer_status(xfer, &len, NULL, NULL, NULL); in ural_bulk_write_callback()
768 switch (USB_GET_STATE(xfer)) { in ural_bulk_write_callback()
773 data = usbd_xfer_get_priv(xfer); in ural_bulk_write_callback()
775 usbd_xfer_set_priv(xfer, NULL); in ural_bulk_write_callback()
790 pc = usbd_xfer_get_frame(xfer, 0); in ural_bulk_write_callback()
814 usbd_xfer_set_frame_len(xfer, 0, len); in ural_bulk_write_callback()
815 usbd_xfer_set_priv(xfer, data); in ural_bulk_write_callback()
817 usbd_transfer_submit(xfer); in ural_bulk_write_callback()
[all …]
H A Dif_rum.c1071 rum_bulk_write_callback(struct usb_xfer *xfer, usb_error_t error) in rum_bulk_write_callback() argument
1073 struct rum_softc *sc = usbd_xfer_softc(xfer); in rum_bulk_write_callback()
1081 usbd_xfer_status(xfer, &actlen, &sumlen, NULL, NULL); in rum_bulk_write_callback()
1083 switch (USB_GET_STATE(xfer)) { in rum_bulk_write_callback()
1088 data = usbd_xfer_get_priv(xfer); in rum_bulk_write_callback()
1090 usbd_xfer_set_priv(xfer, NULL); in rum_bulk_write_callback()
1105 pc = usbd_xfer_get_frame(xfer, 0); in rum_bulk_write_callback()
1129 usbd_xfer_set_frame_len(xfer, 0, len); in rum_bulk_write_callback()
1130 usbd_xfer_set_priv(xfer, data); in rum_bulk_write_callback()
1132 usbd_transfer_submit(xfer); in rum_bulk_write_callback()
[all …]
H A Dif_run.c377 static void run_bulk_tx_callbackN(struct usb_xfer *xfer,
3011 run_bulk_rx_callback(struct usb_xfer *xfer, usb_error_t error) in run_bulk_rx_callback() argument
3013 struct run_softc *sc = usbd_xfer_softc(xfer); in run_bulk_rx_callback()
3027 usbd_xfer_status(xfer, &xferlen, NULL, NULL, NULL); in run_bulk_rx_callback()
3029 switch (USB_GET_STATE(xfer)) { in run_bulk_rx_callback()
3057 usbd_xfer_set_stall(xfer); in run_bulk_rx_callback()
3058 usbd_xfer_set_frames(xfer, 0); in run_bulk_rx_callback()
3065 usbd_xfer_set_frame_data(xfer, 0, in run_bulk_rx_callback()
3067 usbd_xfer_set_frames(xfer, 1); in run_bulk_rx_callback()
3069 usbd_transfer_submit(xfer); in run_bulk_rx_callback()
[all …]