Searched refs:ring_size (Results 1 – 3 of 3) sorted by relevance
/u-boot/include/xen/interface/io/ |
A D | ring.h | 369 RING_IDX ring_size) \ 379 RING_IDX ring_size) \ 382 size <= ring_size - *masked_cons) { \ 385 memcpy(opaque, buf + *masked_cons, ring_size - *masked_cons); \ 386 memcpy((unsigned char *)opaque + ring_size - *masked_cons, buf, \ 387 size - (ring_size - *masked_cons)); \ 397 RING_IDX ring_size) \ 400 size <= ring_size - *masked_prod) { \ 403 memcpy(buf + *masked_prod, opaque, ring_size - *masked_prod); \ 404 memcpy(buf, (unsigned char *)opaque + (ring_size - *masked_prod), \ [all …]
|
/u-boot/drivers/net/ |
A D | calxedaxgmac.c | 232 static inline void desc_init_rx_desc(struct xgmac_dma_desc *p, int ring_size, in desc_init_rx_desc() argument 235 struct xgmac_dma_desc *end = p + ring_size - 1; in desc_init_rx_desc() 237 memset(p, 0, sizeof(*p) * ring_size); in desc_init_rx_desc() 245 static inline void desc_init_tx_desc(struct xgmac_dma_desc *p, u32 ring_size) in desc_init_tx_desc() argument 247 memset(p, 0, sizeof(*p) * ring_size); in desc_init_tx_desc() 248 p[ring_size - 1].flags = cpu_to_le32(TXDESC_END_RING); in desc_init_tx_desc()
|
/u-boot/drivers/usb/cdns3/ |
A D | gadget.c | 192 int ring_size = cdns3_ring_size(priv_ep); in cdns3_allocate_trb_pool() local 197 dma_alloc_coherent(ring_size, in cdns3_allocate_trb_pool() 202 memset(priv_ep->trb_pool, 0, ring_size); in cdns3_allocate_trb_pool() 208 priv_ep->num_trbs = ring_size / TRB_SIZE; in cdns3_allocate_trb_pool()
|
Completed in 9 milliseconds