Lines Matching refs:hw_len
40 u16 hw_len, mask; in xgene_enet_get_data_len() local
42 hw_len = GET_VAL(BUFDATALEN, bufdatalen); in xgene_enet_get_data_len()
44 if (unlikely(hw_len == 0x7800)) { in xgene_enet_get_data_len()
46 } else if (!(hw_len & BIT(14))) { in xgene_enet_get_data_len()
48 return (hw_len & mask) ? (hw_len & mask) : SIZE_16K; in xgene_enet_get_data_len()
49 } else if (!(hw_len & GENMASK(13, 12))) { in xgene_enet_get_data_len()
51 return (hw_len & mask) ? (hw_len & mask) : SIZE_4K; in xgene_enet_get_data_len()
54 return (hw_len & mask) ? (hw_len & mask) : SIZE_2K; in xgene_enet_get_data_len()
60 u16 hw_len; in xgene_enet_set_data_len() local
62 hw_len = (size == SIZE_4K) ? BIT(14) : 0; in xgene_enet_set_data_len()
64 return hw_len; in xgene_enet_set_data_len()
77 u16 hw_len; in xgene_enet_refill_pagepool() local
103 hw_len = xgene_enet_set_data_len(PAGE_SIZE); in xgene_enet_refill_pagepool()
105 SET_VAL(BUFDATALEN, hw_len) | in xgene_enet_refill_pagepool()
417 u32 len, hw_len; in xgene_enet_setup_tx_desc() local
436 hw_len = xgene_enet_encode_len(len); in xgene_enet_setup_tx_desc()
446 SET_VAL(BUFDATALEN, hw_len) | in xgene_enet_setup_tx_desc()
491 hw_len = xgene_enet_encode_len(len); in xgene_enet_setup_tx_desc()
497 xgene_set_addr_len(exp_desc, i, dma_addr, hw_len); in xgene_enet_setup_tx_desc()
503 hw_len); in xgene_enet_setup_tx_desc()
508 hw_len); in xgene_enet_setup_tx_desc()
512 xgene_set_addr_len(exp_bufs, idx, dma_addr, hw_len); in xgene_enet_setup_tx_desc()