Home
last modified time | relevance | path

Searched refs:MAX_DESC_BUF_SZ (Results 1 – 2 of 2) sorted by relevance

/openbmc/u-boot/drivers/net/
H A Dcalxedaxgmac.c114 #define MAX_DESC_BUF_SZ (0x2000 - 8) macro
216 if (buf_sz > MAX_DESC_BUF_SZ) in desc_set_buf_len()
217 p->buf_size = cpu_to_le32(MAX_DESC_BUF_SZ | in desc_set_buf_len()
218 (buf_sz - MAX_DESC_BUF_SZ) << DESC_BUFFER2_SZ_OFFSET); in desc_set_buf_len()
277 if (len > MAX_DESC_BUF_SZ) in desc_set_buf_addr()
278 p->buf2_addr = cpu_to_le32(paddr + MAX_DESC_BUF_SZ); in desc_set_buf_addr()
/openbmc/linux/drivers/net/ethernet/calxeda/
H A Dxgmac.c266 #define MAX_DESC_BUF_SZ (0x2000 - 8) macro
406 if (buf_sz > MAX_DESC_BUF_SZ) in desc_set_buf_len()
407 p->buf_size = cpu_to_le32(MAX_DESC_BUF_SZ | in desc_set_buf_len()
408 (buf_sz - MAX_DESC_BUF_SZ) << DESC_BUFFER2_SZ_OFFSET); in desc_set_buf_len()
484 if (len > MAX_DESC_BUF_SZ) in desc_set_buf_addr()
485 p->buf2_addr = cpu_to_le32(paddr + MAX_DESC_BUF_SZ); in desc_set_buf_addr()