/netbsd/sys/dev/hpc/ |
H A D | hpckbd.c | 306 static struct wscons_keydesc *ndesc = NULL; in hpckbd_keymap_setup() local 313 if (ndesc == NULL) { in hpckbd_keymap_setup() 318 ndesc = malloc(sz * sizeof(*ndesc), M_DEVBUF, M_WAITOK); in hpckbd_keymap_setup() 319 memcpy(ndesc, hpckbd_keymapdata.keydesc, sz * sizeof(*ndesc)); in hpckbd_keymap_setup() 321 hpckbd_keymapdata.keydesc = ndesc; in hpckbd_keymap_setup() 327 ndesc[i].map = map; in hpckbd_keymap_setup() 328 ndesc[i].map_size = mapsize; in hpckbd_keymap_setup()
|
/netbsd/sys/dev/pci/cxgb/ |
H A D | cxgb_sge.c | 876 txq->in_use += ndesc; in txq_prod() 882 txq->unacked += ndesc; in txq_prod() 886 txq->pidx += ndesc; in txq_prod() 1090 if (__predict_true(ndesc == 1)) { in write_wr_hdr_sgl() 1113 ndesc--; in write_wr_hdr_sgl() 1288 txq_prod(txq, ndesc, &txqs); in t3_encap() 1787 unsigned int ndesc; in ofld_xmit() local 1813 q->in_use += ndesc; in ofld_xmit() 1815 q->pidx += ndesc; in ofld_xmit() 1875 q->in_use += ndesc; in restart_offloadq() [all …]
|
/netbsd/sys/arch/sgimips/hpc/ |
H A D | hpcdma.c | 66 hpcdma_init(struct hpc_attach_args *haa, struct hpc_dma_softc *sc, int ndesc) in hpcdma_init() argument 73 sc->sc_ndesc = ndesc; in hpcdma_init() 83 allocsz = sizeof(struct hpc_dma_desc) * (ndesc + 1); in hpcdma_init()
|
/netbsd/sys/dev/ieee1394/ |
H A D | fwohci.c | 354 sc->arrq.ndesc = 1; in fwohci_init() 355 sc->arrs.ndesc = 1; in fwohci_init() 357 sc->atrs.ndesc = 2; in fwohci_init() 819 dbch->ndesc = 2; in fwohci_irx_enable() 834 ldesc = dbch->ndesc - 1; in fwohci_irx_enable() 926 dbch->ndesc = 3; in fwohci_itxbuf_enable() 955 dbch->ndesc; in fwohci_itxbuf_enable() 1767 dbch->ndesc > 3 ? dbch->ndesc - 2 : 1, MAX_REQCOUNT, 0, 1824 z = dbch->ndesc; 1870 z = dbch->ndesc; [all …]
|
H A D | fwohcivar.h | 50 u_int ndesc; member
|
/netbsd/sys/kern/ |
H A D | exec_elf.c | 939 const char *ndata, *ndesc; in netbsd_elf_signature() local 958 ndesc = nptr; in netbsd_elf_signature() 965 isnetbsd |= netbsd_elf_note(epp, np, ndata, ndesc); in netbsd_elf_signature() 982 const Elf_Nhdr *np, const char *ndata, const char *ndesc) in netbsd_elf_note() argument 1000 memcpy(&epp->ep_osversion, ndesc, in netbsd_elf_note() 1030 memcpy(&flags, ndesc, sizeof(flags)); in netbsd_elf_note() 1053 if (strnlen(ndesc, np->n_descsz) + 1 != in netbsd_elf_note() 1058 strlcpy(epp->ep_machine_arch, ndesc, in netbsd_elf_note() 1071 ELF_MD_MCMODEL_CHECK(epp, ndesc, np->n_descsz); in netbsd_elf_note()
|
/netbsd/sys/arch/arm/xscale/ |
H A D | pxa2x0_dmac.c | 902 struct dmac_desc *desc, *ndesc; in pxa2x0_dmac_abort_xfer() local 945 for (desc = SLIST_FIRST(&dxs->dxs_descs); desc; desc = ndesc) { in pxa2x0_dmac_abort_xfer() 946 ndesc = SLIST_NEXT(desc, d_link); in pxa2x0_dmac_abort_xfer() 1151 struct dmac_desc *ndesc; in dmac_continue_xfer() local 1153 desc; desc = ndesc) { in dmac_continue_xfer() 1154 ndesc = SLIST_NEXT(desc, d_link); in dmac_continue_xfer() 1197 struct dmac_desc *desc, *ndesc; in dmac_channel_intr() local 1236 for (desc = SLIST_FIRST(&dxs->dxs_descs); desc; desc = ndesc) { in dmac_channel_intr() 1237 ndesc = SLIST_NEXT(desc, d_link); in dmac_channel_intr()
|
/netbsd/sys/arch/arm/gemini/ |
H A D | gemini_ipm.c | 267 gemini_ipm_produce(const void *adescp, size_t ndesc) in gemini_ipm_produce() argument 274 KASSERT(ndesc == 1); /* XXX TMP */ in gemini_ipm_produce() 277 __FUNCTION__, __LINE__, descp, ndesc, descp->tag)); in gemini_ipm_produce()
|
H A D | gemini_gmac.c | 961 gmac_hwqmem_create(gmac_mapcache_t *mc, size_t ndesc, size_t nqueue, int flags) in gmac_hwqmem_create() argument 966 KASSERT(ndesc > 0 && ndesc <= 2048); in gmac_hwqmem_create() 967 KASSERT((ndesc & (ndesc - 1)) == 0); in gmac_hwqmem_create() 970 hqm->hqm_memsize = nqueue * sizeof(gmac_desc_t [ndesc]); in gmac_hwqmem_create() 973 hqm->hqm_ndesc = ndesc; in gmac_hwqmem_create()
|
/netbsd/external/bsd/libpcap/dist/ |
H A D | pcap-common.c | 1464 uhdr->ndesc = SWAPLONG(uhdr->ndesc); in swap_linux_usb_header() 1472 for (i = 0; i < uhdr->ndesc; i++) { in swap_linux_usb_header()
|
H A D | pcap-usb-linux.c | 1329 (hdr->ndesc * sizeof (usb_isodesc)) + hdr->urb_len; in usb_read_linux_mmap()
|
/netbsd/sys/arch/ia64/stand/ia64/efi/ |
H A D | main.c | 205 int i, ndesc; in command_memmap() local 236 ndesc = sz / dsz; in command_memmap() 240 for (i = 0, p = map; i < ndesc; in command_memmap()
|
/netbsd/external/bsd/libpcap/dist/pcap/ |
H A D | usb.h | 127 uint32_t ndesc; /* number of isochronous descriptors */ member
|
/netbsd/sys/dev/marvell/ |
H A D | if_mvxpe.c | 2305 uint32_t ptxs, ptxsu, ndesc; in mvxpe_tx_queue_complete() local 2311 ndesc = MVXPE_PTXS_GET_TBC(ptxs); in mvxpe_tx_queue_complete() 2312 if (ndesc == 0) in mvxpe_tx_queue_complete() 2318 mvxpe_ring_sync_tx(sc, q, tx->tx_dma, ndesc, in mvxpe_tx_queue_complete() 2321 for (i = 0; i < ndesc; i++) { in mvxpe_tx_queue_complete() 2368 while (ndesc > 255) { in mvxpe_tx_queue_complete() 2371 ndesc -= 255; in mvxpe_tx_queue_complete() 2373 if (ndesc > 0) { in mvxpe_tx_queue_complete() 2374 ptxsu = MVXPE_PTXSU_NORB(ndesc); in mvxpe_tx_queue_complete() 2560 uint32_t prxs, prxsu, ndesc; in mvxpe_rx_queue_refill() local [all …]
|
/netbsd/sys/dev/ic/ |
H A D | rtw.c | 1321 int *ndesc, device_t dev) in rtw_rxsoft_init_all() argument 1344 *ndesc = i; in rtw_rxsoft_init_all() 1707 struct rtw_txsoft *ts, int ndesc) in rtw_collect_txpkt() argument 1717 tdb->tdb_nfree += ndesc; in rtw_collect_txpkt() 1771 int ndesc; in rtw_collect_txring() local 1784 ndesc = 1 + ts->ts_last - ts->ts_first; in rtw_collect_txring() 1786 ndesc += tdb->tdb_ndesc; in rtw_collect_txring() 1788 KASSERT(ndesc > 0); in rtw_collect_txring() 1790 rtw_txdescs_sync(tdb, ts->ts_first, ndesc, in rtw_collect_txring() 1825 rtw_collect_txpkt(sc, tdb, ts, ndesc); in rtw_collect_txring() [all …]
|
H A D | ath.c | 2643 const char *name, int nbuf, int ndesc) in ath_descdma_setup() argument 2653 __func__, name, nbuf, ndesc); in ath_descdma_setup() 2656 dd->dd_desc_len = sizeof(struct ath_desc) * nbuf * ndesc; in ath_descdma_setup() 2668 "error %u\n", nbuf * ndesc, dd->dd_name, error); in ath_descdma_setup() 2676 nbuf * ndesc, dd->dd_name, error); in ath_descdma_setup() 2710 for (i = 0; i < nbuf; i++, bf++, ds += ndesc) { in ath_descdma_setup() 2713 error = bus_dmamap_create(sc->sc_dmat, MCLBYTES, ndesc, in ath_descdma_setup()
|
H A D | bwi.c | 6389 int ndesc, int desc_idx, bus_addr_t paddr, int buf_len, int tx) in bwi_setup_desc32() argument 6402 if (desc_idx == ndesc - 1) in bwi_setup_desc32() 8187 bus_addr_t paddr, int hdr_size, int ndesc) in bwi_init_rxdesc_ring32() argument 8205 (ndesc - 1) * sizeof(struct bwi_desc32)); in bwi_init_rxdesc_ring32()
|
/netbsd/external/cddl/osnet/dist/uts/common/dtrace/ |
H A D | dtrace.c | 12934 dtrace_ecbdesc_t **ndesc; local 12960 ndesc = kmem_zalloc(nsize, KM_SLEEP); 12961 bcopy(enab->dten_desc, ndesc, osize); 12965 enab->dten_desc = ndesc;
|