/freebsd/sys/dev/cxgbe/crypto/ |
H A D | t6_kern_tls.c | 1117 int len16, ndesc, pktlen; in ktls_write_tcp_options() local 1131 ndesc = tx_len16_to_desc(len16); in ktls_write_tcp_options() 1132 MPASS(ndesc <= available); in ktls_write_tcp_options() 1197 txsd->desc_used = ndesc; in ktls_write_tcp_options() 1199 return (ndesc); in ktls_write_tcp_options() 1211 int len16, ndesc, pktlen; in ktls_write_tunnel_packet() local 1231 ndesc = tx_len16_to_desc(len16); in ktls_write_tunnel_packet() 1232 MPASS(ndesc <= available); in ktls_write_tunnel_packet() 1301 txsd->desc_used = ndesc; in ktls_write_tunnel_packet() 1303 return (ndesc); in ktls_write_tunnel_packet() 1329 u_int imm_len, mss, ndesc, offset, plen, tlen, twr_len, wr_len; ktls_write_tls_wr() local 1859 int len16, ndesc, pktlen; ktls_write_tcp_fin() local 1955 u_int ndesc, pidx, totdesc; t6_ktls_write_wr() local [all...] |
/freebsd/sys/dev/ath/ |
H A D | if_ath_descdma.c | 145 const char *name, int ds_size, int ndesc) in ath_descdma_alloc_desc() argument 157 __func__, name, ndesc, dd->dd_descsize); in ath_descdma_alloc_desc() 160 dd->dd_desc_len = dd->dd_descsize * ndesc; in ath_descdma_alloc_desc() 203 ndesc, dd->dd_name, error); in ath_descdma_alloc_desc() 238 const char *name, int ds_size, int nbuf, int ndesc) in ath_descdma_setup() argument 250 nbuf * ndesc); in ath_descdma_setup() 271 for (i = 0; i < nbuf; i++, bf++, ds += (ndesc * dd->dd_descsize)) { in ath_descdma_setup()
|
H A D | if_ath_descdma.h | 34 int ds_size, int ndesc); 37 int ndesc);
|
/freebsd/sys/contrib/dev/mediatek/mt76/ |
H A D | dma.c | 191 Q_WRITE(dev, q, ring_size, q->ndesc); in mt76_dma_sync_idx() 201 if (!q || !q->ndesc) in mt76_dma_queue_reset() 205 for (i = 0; i < q->ndesc; i++) in mt76_dma_queue_reset() 252 q->head = (q->head + 1) % q->ndesc; in mt76_dma_add_rx_buf() 277 next = (q->head + 1) % q->ndesc; in mt76_dma_add_buf() 357 if (!q || !q->ndesc) in mt76_dma_tx_cleanup() 460 q->tail = (q->tail + 1) % q->ndesc; in mt76_dma_dequeue() 476 if (q->queued + 1 >= q->ndesc - 1) in mt76_dma_tx_queue_skb_raw() 554 if (q->queued + (tx_info.nbuf + 1) / 2 >= q->ndesc - 1) { in mt76_dma_tx_queue_skb() 605 if (!q->ndesc) in mt76_dma_rx_fill() [all …]
|
H A D | usb.c | 447 q->tail = (q->tail + 1) % q->ndesc; in mt76u_get_next_rx_entry() 582 q->head = (q->head + 1) % q->ndesc; in mt76u_complete_rx() 649 for (i = 0; i < q->ndesc; i++) { in mt76u_submit_rx_buffers() 678 q->ndesc = MT_NUM_RX_ENTRIES; in mt76u_alloc_rx_queue() 681 for (i = 0; i < q->ndesc; i++) { in mt76u_alloc_rx_queue() 701 for (i = 0; i < q->ndesc; i++) { in mt76u_free_rx_queue() 732 for (j = 0; j < q->ndesc; j++) in mt76u_stop_rx() 746 for (j = 0; j < q->ndesc; j++) in mt76u_resume_rx() 864 if (q->queued == q->ndesc) in mt76u_tx_queue_skb() 880 q->head = (q->head + 1) % q->ndesc; in mt76u_tx_queue_skb() [all …]
|
H A D | sdio.c | 315 q->ndesc = MT76S_NUM_RX_ENTRIES; in mt76s_alloc_rx_queue() 338 q->ndesc = MT76S_NUM_TX_ENTRIES; in mt76s_alloc_tx_queue() 374 q->tail = (q->tail + 1) % q->ndesc; in mt76s_get_next_rx_entry() 527 if (q->queued == q->ndesc) in mt76s_tx_queue_skb() 541 q->head = (q->head + 1) % q->ndesc; in mt76s_tx_queue_skb() 553 if (q->queued == q->ndesc) in mt76s_tx_queue_skb_raw() 569 q->head = (q->head + 1) % q->ndesc; in mt76s_tx_queue_skb_raw() 617 for (j = 0; j < q->ndesc; j++) { in mt76s_deinit()
|
H A D | sdio_txrx.c | 119 int index = (q->head + i) % q->ndesc; in mt76s_rx_run_queue() 133 if (q->queued + i + 1 == q->ndesc) in mt76s_rx_run_queue() 142 q->head = (q->head + i) % q->ndesc; in mt76s_rx_run_queue() 292 q->first = (q->first + 1) % q->ndesc; in mt76s_tx_run_queue()
|
/freebsd/sys/dev/virtio/ |
H A D | virtqueue.c | 488 uint16_t ndesc, avail_idx; in virtqueue_postpone_intr() local 491 ndesc = (uint16_t)(avail_idx - vq->vq_used_cons_idx); in virtqueue_postpone_intr() 495 ndesc = ndesc / 4; in virtqueue_postpone_intr() 498 ndesc = (ndesc * 3) / 4; in virtqueue_postpone_intr() 504 return (vq_ring_enable_interrupt(vq, ndesc)); in virtqueue_postpone_intr() 792 vq_ring_enable_interrupt(struct virtqueue *vq, uint16_t ndesc) in vq_ring_enable_interrupt() argument 801 vq_gtoh16(vq, vq->vq_used_cons_idx + ndesc); in vq_ring_enable_interrupt() 814 if (virtqueue_nused(vq) > ndesc) in vq_ring_enable_interrupt() [all...] |
/freebsd/contrib/libpcap/ |
H A D | pcap-usb-linux-common.h | 57 usb_hdr->ndesc * sizeof (usb_isodesc)); in iso_pseudo_header_len() 97 desc < hdr->ndesc && bytes_left >= sizeof (usb_isodesc); in incoming_isochronous_transfer_completed_len()
|
H A D | pcap-util.c | 350 uhdr->ndesc = SWAPLONG(uhdr->ndesc); in swap_linux_usb_header() 358 for (i = 0; i < uhdr->ndesc; i++) { in swap_linux_usb_header() 565 if (usb_hdr->ndesc > USB_MAXDESC) in pcapint_post_process()
|
/freebsd/sys/dev/firewire/ |
H A D | fwohci.c | 655 sc->arrq.ndesc = 1; 656 sc->arrs.ndesc = 1; 657 sc->atrq.ndesc = 8; /* equal to maximum of mbuf chains */ 658 sc->atrs.ndesc = 2; 1237 /*nsegments*/ dbch->ndesc > 3 ? dbch->ndesc - 2 : 1, 1252 #define DB_SIZE(x) (sizeof(struct fwohcidb) * (x)->ndesc) 1348 z = dbch->ndesc; 1403 z = dbch->ndesc; 1516 dbch->ndesc = 3; 1526 ldesc = dbch->ndesc - 1; [all …]
|
H A D | fwohcivar.h | 50 u_int ndesc; member
|
/freebsd/stand/efi/loader/ |
H A D | copy.c | 101 int i, ndesc; in efi_verify_staging_size() local 129 ndesc = sz / dsz; in efi_verify_staging_size() 130 for (i = 0, p = map; i < ndesc; in efi_verify_staging_size() 151 for ( ; i < ndesc; in efi_verify_staging_size()
|
H A D | bootinfo.c | 150 int curr, ndesc, nset; in efi_do_vmap() local 154 ndesc = sz / mmsz; in efi_do_vmap() 160 for (curr = 0; curr < ndesc; in efi_do_vmap()
|
/freebsd/sys/dev/beri/virtio/ |
H A D | virtio.c | 129 int idx, ndesc, n_indir; in vq_getchain() local 134 ndesc = (be16toh(vq->vq_avail->idx) - idx); in vq_getchain() 135 if (ndesc == 0) in vq_getchain()
|
/freebsd/sys/dev/efidev/ |
H A D | efirt.c | 133 efi_is_in_map(struct efi_md *map, int ndesc, int descsz, vm_offset_t addr) in efi_is_in_map() argument 138 for (i = 0, p = map; i < ndesc; i++, p = efi_next_descriptor(p, in efi_is_in_map() 172 int ndesc, rt_disabled; in efi_init() local 215 ndesc = efihdr->memory_size / efihdr->descriptor_size; in efi_init() 216 if (!efi_create_1t1_map(map, ndesc, efihdr->descriptor_size)) { in efi_init() 241 if (rtdm == NULL || !efi_is_in_map(map, ndesc, efihdr->descriptor_size, in efi_init()
|
/freebsd/sys/dev/cxgb/ |
H A D | cxgb_sge.c | 1128 txq_prod(struct sge_txq *txq, unsigned int ndesc, struct txq_state *txqs) in txq_prod() argument 1130 txq->in_use += ndesc; in txq_prod() 1136 txq->unacked += ndesc; in txq_prod() 1140 txq->pidx += ndesc; in txq_prod() 1279 write_wr_hdr_sgl(unsigned int ndesc, struct tx_desc *txd, struct txq_state *txqs, in write_wr_hdr_sgl() argument 1286 if (__predict_true(ndesc == 1)) { in write_wr_hdr_sgl() 1309 ndesc--; in write_wr_hdr_sgl() 1359 unsigned int ndesc, flits, cntrl, mlen; in t3_encap() local 1390 ndesc = 1; in t3_encap() 1400 ndesc = calc_tx_descs(m0, nsegs); in t3_encap() [all …]
|
/freebsd/sys/dev/cxgbe/ |
H A D | t4_sge.c | 2915 int ndesc, available; in start_wrq_wr() local 2920 ndesc = tx_len16_to_desc(len16); in start_wrq_wr() 2921 MPASS(ndesc > 0 && ndesc <= SGE_MAX_WR_NDESC); in start_wrq_wr() 2939 cookie->ndesc = ndesc; in start_wrq_wr() 2948 if (available < ndesc) in start_wrq_wr() 2952 cookie->ndesc = ndesc; in start_wrq_wr() 2956 IDXINCR(eq->pidx, ndesc, eq->sidx); in start_wrq_wr() 2957 if (__predict_false(cookie->pidx + ndesc > eq->sidx)) { in start_wrq_wr() 2973 int ndesc, pidx; in commit_wrq_wr() local 2994 ndesc = cookie->ndesc; /* Can be more than SGE_MAX_WR_NDESC here. */ in commit_wrq_wr() [all …]
|
H A D | t4_l2t.c | 212 int *ndesc, uint16_t vlan, uint8_t port, uint8_t *eth_addr) in t4_l2t_alloc_tls() argument 221 *ndesc = 0; in t4_l2t_alloc_tls() 274 *ndesc = howmany(sizeof(struct cpl_l2t_write_req), EQ_ESIZE); in t4_l2t_alloc_tls() 275 MPASS(*ndesc == 1); in t4_l2t_alloc_tls()
|
/freebsd/sys/arm64/arm64/ |
H A D | machdep.c | 460 int ndesc, i; in foreach_efi_map_entry() local 471 ndesc = efihdr->memory_size / efihdr->descriptor_size; in foreach_efi_map_entry() 473 for (i = 0, p = map; i < ndesc; i++, in foreach_efi_map_entry() 846 int ndesc, i; in memory_mapping_mode() local 860 ndesc = efihdr->memory_size / efihdr->descriptor_size; in memory_mapping_mode() 862 for (i = 0, p = map; i < ndesc; i++, in memory_mapping_mode()
|
H A D | efirt_machdep.c | 160 efi_create_1t1_map(struct efi_md *map, int ndesc, int descsz) in efi_create_1t1_map() argument 180 for (i = 0, p = map; i < ndesc; i++, p = efi_next_descriptor(p, in efi_create_1t1_map()
|
/freebsd/sys/arm/arm/ |
H A D | machdep_boot.c | 397 int ndesc, i, j; in arm_add_efi_map_entries() local 428 ndesc = efihdr->memory_size / efihdr->descriptor_size; in arm_add_efi_map_entries() 434 for (i = 0, j = 0, p = map; i < ndesc; i++, in arm_add_efi_map_entries()
|
/freebsd/usr.sbin/bhyve/ |
H A D | virtio.c | 274 u_int ndesc, n_indir; in vq_getchain() local 300 ndesc = (uint16_t)((u_int)vq->vq_avail->idx - idx); in vq_getchain() 301 if (ndesc == 0) in vq_getchain() 303 if (ndesc > vq->vq_qsize) { in vq_getchain() 307 name, (u_int)ndesc); in vq_getchain()
|
/freebsd/sys/amd64/amd64/ |
H A D | efirt_machdep.c | 172 efi_create_1t1_map(struct efi_md *map, int ndesc, int descsz) in efi_create_1t1_map() argument 198 for (i = 0, p = map; i < ndesc; i++, p = efi_next_descriptor(p, in efi_create_1t1_map()
|
/freebsd/contrib/libpcap/pcap/ |
H A D | usb.h | 125 uint32_t ndesc; /* number of isochronous descriptors */ member
|