Home
last modified time | relevance | path

Searched refs:n_desc (Results 1 – 6 of 6) sorted by relevance

/linux-3.4.99/drivers/usb/gadget/
Dconfig.c127 unsigned n_desc; in usb_copy_descriptors() local
132 for (bytes = 0, n_desc = 0, tmp = src; *tmp; tmp++, n_desc++) in usb_copy_descriptors()
134 bytes += (n_desc + 1) * sizeof(*tmp); in usb_copy_descriptors()
146 mem += (n_desc + 1) * sizeof(*tmp); in usb_copy_descriptors()
Df_uvc.c377 unsigned int n_desc; in uvc_copy_descriptors() local
404 n_desc = 5; in uvc_copy_descriptors()
409 n_desc++; in uvc_copy_descriptors()
414 n_desc++; in uvc_copy_descriptors()
418 n_desc++; in uvc_copy_descriptors()
421 mem = kmalloc((n_desc + 1) * sizeof(*src) + bytes, GFP_KERNEL); in uvc_copy_descriptors()
427 mem += (n_desc + 1) * sizeof(*src); in uvc_copy_descriptors()
/linux-3.4.99/drivers/net/wan/
Dixp4xx_hss.c585 u32 phys, tab_phys, n_desc; in queue_get_desc() local
594 n_desc = (phys - tab_phys) / sizeof(struct desc); in queue_get_desc()
595 BUG_ON(n_desc >= (is_tx ? TX_DESCS : RX_DESCS)); in queue_get_desc()
596 debug_desc(phys, &tab[n_desc]); in queue_get_desc()
597 BUG_ON(tab[n_desc].next); in queue_get_desc()
598 return n_desc; in queue_get_desc()
794 int n_desc; in hss_hdlc_txdone_irq() local
799 while ((n_desc = queue_get_desc(queue_ids[port->id].txdone, in hss_hdlc_txdone_irq()
804 desc = tx_desc_ptr(port, n_desc); in hss_hdlc_txdone_irq()
812 dev->name, port->tx_buff_tab[n_desc]); in hss_hdlc_txdone_irq()
[all …]
/linux-3.4.99/drivers/net/ethernet/xscale/
Dixp4xx_eth.c614 u32 phys, tab_phys, n_desc; in queue_get_desc() local
623 n_desc = (phys - tab_phys) / sizeof(struct desc); in queue_get_desc()
624 BUG_ON(n_desc >= (is_tx ? TX_DESCS : RX_DESCS)); in queue_get_desc()
625 debug_desc(phys, &tab[n_desc]); in queue_get_desc()
626 BUG_ON(tab[n_desc].next); in queue_get_desc()
627 return n_desc; in queue_get_desc()
784 u32 npe_id, n_desc; in eth_txdone_irq() local
794 n_desc = (phys - tx_desc_phys(port, 0)) / sizeof(struct desc); in eth_txdone_irq()
795 BUG_ON(n_desc >= TX_DESCS); in eth_txdone_irq()
796 desc = tx_desc_ptr(port, n_desc); in eth_txdone_irq()
[all …]
/linux-3.4.99/include/linux/
Da.out.h175 short n_desc; member
/linux-3.4.99/drivers/dma/ipu/
Dipu_idmac.c959 int ret = 0, n_desc = 0; in ipu_init_channel() local
971 n_desc = 16; in ipu_init_channel()
976 n_desc = 16; in ipu_init_channel()
983 n_desc = 4; in ipu_init_channel()
997 if (n_desc && !ichan->desc) in ipu_init_channel()
998 ret = idmac_desc_alloc(ichan, n_desc); in ipu_init_channel()