/freebsd/sys/dev/axgbe/ |
H A D | xgbe-txrx.c | 78 struct xgbe_ring_desc *rdesc; in axgbe_ctx_desc_setup() local 83 rdesc = rdata->rdesc; in axgbe_ctx_desc_setup() 98 XGMAC_SET_BITS_LE(rdesc->desc2, TX_CONTEXT_DESC2, in axgbe_ctx_desc_setup() 100 XGMAC_SET_BITS_LE(rdesc->desc3, TX_CONTEXT_DESC3, CTXT, 1); in axgbe_ctx_desc_setup() 101 XGMAC_SET_BITS_LE(rdesc->desc3, TX_CONTEXT_DESC3, TCMSSV, 1); in axgbe_ctx_desc_setup() 112 XGMAC_SET_BITS_LE(rdesc->desc3, TX_CONTEXT_DESC3, CTXT, 1); in axgbe_ctx_desc_setup() 113 XGMAC_SET_BITS_LE(rdesc->desc3, TX_CONTEXT_DESC3, in axgbe_ctx_desc_setup() 115 XGMAC_SET_BITS_LE(rdesc->desc3, TX_CONTEXT_DESC3, VLTV, 1); in axgbe_ctx_desc_setup() 176 struct xgbe_ring_desc *rdesc; in axgbe_isc_txd_encap() local 450 struct xgbe_ring_desc *rdesc; axgbe_isc_rxd_refill() local 565 struct xgbe_ring_desc *rdesc; axgbe_isc_rxd_available() local [all...] |
H A D | xgbe-desc.c | 125 struct xgbe_ring_desc *rdesc; in xgbe_wrapper_tx_descriptor_init() local 139 rdesc = ring->rdesc; in xgbe_wrapper_tx_descriptor_init() 145 rdata->rdesc = rdesc; in xgbe_wrapper_tx_descriptor_init() 148 rdesc++; in xgbe_wrapper_tx_descriptor_init() 168 struct xgbe_ring_desc *rdesc; in xgbe_wrapper_rx_descriptor_init() local 183 rdesc = ring->rdesc; in xgbe_wrapper_rx_descriptor_init() 189 rdata->rdesc = rdesc; in xgbe_wrapper_rx_descriptor_init() 192 rdesc++; in xgbe_wrapper_rx_descriptor_init()
|
H A D | xgbe-dev.c | 1257 xgbe_tx_complete(struct xgbe_ring_desc *rdesc) in xgbe_tx_complete() argument 1259 return (!XGMAC_GET_BITS_LE(rdesc->desc3, TX_NORMAL_DESC3, OWN)); in xgbe_tx_complete() 1283 struct xgbe_ring_desc *rdesc = rdata->rdesc; in xgbe_tx_desc_reset() local 1291 rdesc->desc0 = 0; in xgbe_tx_desc_reset() 1292 rdesc->desc1 = 0; in xgbe_tx_desc_reset() 1293 rdesc->desc2 = 0; in xgbe_tx_desc_reset() 1294 rdesc->desc3 = 0; in xgbe_tx_desc_reset() 1355 struct xgbe_ring_desc *rdesc; in xgbe_dev_read() local 1362 rdesc = rdata->rdesc; in xgbe_dev_read() 1365 if (XGMAC_GET_BITS_LE(rdesc->desc3, RX_NORMAL_DESC3, OWN)) in xgbe_dev_read() [all …]
|
H A D | xgbe.h | 453 struct xgbe_ring_desc *rdesc; /* Virtual address of descriptor */ member 482 struct xgbe_ring_desc *rdesc; member
|
H A D | if_axgbe_pci.c | 1717 tx_ring->rdesc = (struct xgbe_ring_desc *)va[i*ntxqs + j]; in axgbe_if_tx_queues_alloc() 1790 rx_ring->rdesc = (struct xgbe_ring_desc *)va[i*nrxqs + j]; in axgbe_if_rx_queues_alloc()
|
/freebsd/sys/dev/hid/ |
H A D | hidbus.c | 80 struct hid_rdesc_info rdesc; member 258 &sc->rdesc); in hidbus_attach_children() 260 error = hidbus_enumerate_children(dev, sc->rdesc.data, sc->rdesc.len); in hidbus_attach_children() 275 if (hid_is_keyboard(sc->rdesc.data, sc->rdesc.len) != 0) in hidbus_attach_children() 369 hidbus_fill_rdesc_info(&sc->rdesc, d_ptr, d_len); in hidbus_attach() 390 free(sc->rdesc.data, M_DEVBUF); in hidbus_detach() 664 return (&sc->rdesc); in hidbus_get_rdesc_info() 688 if (sc->rdesc.data == NULL || sc->rdesc.len == 0) in hid_get_report_descr() 692 *data = sc->rdesc.data; in hid_get_report_descr() 694 *len = sc->rdesc.len; in hid_get_report_descr() [all …]
|
H A D | bcm5974.c | 644 static uint8_t rdesc[BCM5974_WELLSPRING9_RDESC_SIZE]; in bcm5974_get_wsp9_model() 649 if (hw->rdescsize == sizeof(rdesc) && in bcm5974_get_wsp9_model() 650 hid_get_rdesc(dev, rdesc, sizeof(rdesc)) == 0) { in bcm5974_get_wsp9_model() 651 model_byte = rdesc[BCM5974_WELLSPRING9_MODEL_OFFSET]; in bcm5974_get_wsp9_model() 642 static uint8_t rdesc[BCM5974_WELLSPRING9_RDESC_SIZE]; bcm5974_get_wsp9_model() local
|
H A D | hid_if.m | 43 # rdesc is pointer to structire containing requested maximal sizes of input, 54 struct hid_rdesc_info *rdesc;
|
/freebsd/sys/dev/hyperv/input/ |
H A D | hv_hid.c | 71 uint8_t *rdesc; member 239 void *rdesc; in hv_hid_receive() local 288 if (sc->rdesc != NULL) in hv_hid_receive() 307 rdesc = malloc(hdi->rdescsize, M_DEVBUF, M_WAITOK | M_ZERO); in hv_hid_receive() 308 memcpy(rdesc, (const uint8_t *)hdesc + hdesc->bLength, in hv_hid_receive() 311 sc->rdesc = rdesc; in hv_hid_receive() 432 if (sc->rdesc == NULL) in hv_hid_attach() 467 free(sc->rdesc, M_DEVBUF); in hv_hid_detach() 475 void *ctx, struct hid_rdesc_info *rdesc) in hv_hid_intr_setup() argument 486 rdesc->rdsize = rdesc->isize; in hv_hid_intr_setup() [all …]
|
/freebsd/sys/dev/qlxgbe/ |
H A D | ql_isr.c | 892 qla_rdesc_t *rdesc; in qla_replenish_normal_rx() local 897 rdesc = &ha->hw.rds[r_idx]; in qla_replenish_normal_rx() 899 rx_next = rdesc->rx_next; in qla_replenish_normal_rx() 911 qla_set_hw_rcv_desc(ha, r_idx, rdesc->rx_in, in qla_replenish_normal_rx() 914 rdesc->rx_in++; in qla_replenish_normal_rx() 915 if (rdesc->rx_in == NUM_RX_DESCRIPTORS) in qla_replenish_normal_rx() 916 rdesc->rx_in = 0; in qla_replenish_normal_rx() 917 rdesc->rx_next++; in qla_replenish_normal_rx() 918 if (rdesc->rx_next == NUM_RX_DESCRIPTORS) in qla_replenish_normal_rx() 919 rdesc->rx_next = 0; in qla_replenish_normal_rx() [all …]
|
H A D | ql_hw.c | 2887 qla_rdesc_t *rdesc; in ql_init_hw_if() local 2927 rdesc = &ha->hw.rds[i]; in ql_init_hw_if() 2928 rdesc->rx_next = NUM_RX_DESCRIPTORS - 2; in ql_init_hw_if() 2929 rdesc->rx_in = 0; in ql_init_hw_if() 2931 QL_UPDATE_RDS_PRODUCER_INDEX(ha, rdesc->prod_std,\ in ql_init_hw_if() 2932 rdesc->rx_next); in ql_init_hw_if()
|
/freebsd/sys/dev/usb/input/ |
H A D | usbhid.c | 334 void *context, struct hid_rdesc_info *rdesc) in usbhid_intr_setup() argument 380 sc->sc_config[USBHID_INTR_OUT_DT].bufsize = rdesc->osize; in usbhid_intr_setup() 381 sc->sc_config[USBHID_INTR_IN_DT].bufsize = rdesc->isize; in usbhid_intr_setup() 383 MAX(rdesc->isize, MAX(rdesc->osize, rdesc->fsize)); in usbhid_intr_setup() 396 rdesc->rdsize = usbhid_xfer_max_len(sc->sc_xfer[USBHID_INTR_IN_DT]); in usbhid_intr_setup() 397 rdesc->grsize = usbhid_xfer_max_len(sc->sc_xfer[USBHID_CTRL_DT]); in usbhid_intr_setup() 398 rdesc->srsize = rdesc->grsize; in usbhid_intr_setup() 399 rdesc->wrsize = nowrite ? rdesc->srsize : in usbhid_intr_setup() 402 sc->sc_intr_buf = malloc(rdesc->rdsize, M_USBDEV, M_ZERO | M_WAITOK); in usbhid_intr_setup()
|
/freebsd/sys/dev/atopcase/ |
H A D | atopcase.c | 184 memcpy(ac->rdesc, payload, pl_len); in atopcase_process_message() 187 (int) ac->hw.rdescsize, ac->rdesc, " "); in atopcase_process_message() 573 void *context, struct hid_rdesc_info *rdesc) in atopcase_intr_setup() argument 580 rdesc->rdsize = ATOPCASE_MSG_SIZE - sizeof(struct atopcase_header) - 2; in atopcase_intr_setup() 581 rdesc->grsize = 0; in atopcase_intr_setup() 582 rdesc->srsize = ATOPCASE_DATA_SIZE - sizeof(struct atopcase_header) - 2; in atopcase_intr_setup() 583 rdesc->wrsize = 0; in atopcase_intr_setup() 655 memcpy(buf, ac->rdesc, len); in atopcase_get_rdesc()
|
H A D | atopcase_var.h | 53 uint8_t rdesc[ATOPCASE_MSG_SIZE]; member
|
/freebsd/sys/dev/safexcel/ |
H A D | safexcel.c | 121 struct safexcel_res_descr *rdesc; in safexcel_res_descr_next() local 125 rdesc = &ring->desc[ring->read]; in safexcel_res_descr_next() 127 return (rdesc); in safexcel_res_descr_next() 165 struct safexcel_res_descr *rdesc; in safexcel_rdr_intr() local 213 rdesc = safexcel_res_descr_next(&ring->rdr); in safexcel_rdr_intr() 214 error = rdesc->result_data.error_code; in safexcel_rdr_intr() 1983 struct safexcel_res_descr *rdesc; in safexcel_res_descr_add() local 1992 rdesc = &rring->desc[rring->write]; in safexcel_res_descr_add() 1995 rdesc->particle_size = len; in safexcel_res_descr_add() 1996 rdesc->rsvd0 = 0; in safexcel_res_descr_add() [all …]
|
/freebsd/sys/dev/iicbus/ |
H A D | iichid.c | 835 void *context, struct hid_rdesc_info *rdesc) argument 848 rdesc->rdsize = 849 MAX(rdesc->isize, le16toh(sc->desc.wMaxInputLength) - 2); 851 rdesc->grsize = rdesc->srsize = IICHID_SIZE_MAX; 852 rdesc->wrsize = IICHID_SIZE_MAX; 859 sc->intr_bufsize = rdesc->rdsize;
|