Searched refs:n_desc (Results 1 – 5 of 5) sorted by relevance
/drivers/usb/gadget/ |
D | config.c | 127 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()
|
D | f_uvc.c | 377 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()
|
/drivers/net/wan/ |
D | ixp4xx_hss.c | 585 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 …]
|
/drivers/net/ethernet/xscale/ |
D | ixp4xx_eth.c | 614 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 …]
|
/drivers/dma/ipu/ |
D | ipu_idmac.c | 959 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()
|