/u-boot/drivers/net/ |
A D | pcnet.c | 341 (unsigned long)packet + pkt_len); in pcnet_send_common() 354 pkt_len = 0; in pcnet_send_common() 363 writew(-pkt_len, &entry->length); in pcnet_send_common() 376 return pkt_len; in pcnet_send_common() 383 int pkt_len = 0; in pcnet_recv_common() local 412 if (pkt_len < 60) { in pcnet_recv_common() 414 lp->name, lp->cur_rx, pkt_len); in pcnet_recv_common() 420 (unsigned long)*bufp + pkt_len); in pcnet_recv_common() 423 lp->cur_rx, pkt_len, buf); in pcnet_recv_common() 425 return pkt_len; in pcnet_recv_common() [all …]
|
A D | ne2000_base.c | 249 int len, start_page, pkt_len, i, isr; in dp83902a_send() local 256 len = pkt_len = total_len; in dp83902a_send() 257 if (pkt_len < IEEE_8023_MIN_FRAME) in dp83902a_send() 258 pkt_len = IEEE_8023_MIN_FRAME; in dp83902a_send() 263 dp->tx1_len = pkt_len; in dp83902a_send() 268 dp->tx2_len = pkt_len; in dp83902a_send() 307 DP_OUT(base, DP_RBCL, pkt_len & 0xFF); in dp83902a_send() 308 DP_OUT(base, DP_RBCH, pkt_len >> 8); in dp83902a_send() 328 if (total_len < pkt_len) { in dp83902a_send() 333 for (i = total_len; i < pkt_len;) { in dp83902a_send() [all …]
|
A D | dnet.c | 174 int pkt_len, poll, i; in dnet_recv() local 186 pkt_len = cmd_word & 0xFFFF; in dnet_recv() 188 debug("Got pkt with size %d bytes\n", pkt_len); in dnet_recv() 195 for (i = 0; i < (pkt_len + 3) >> 2; i++) in dnet_recv() 199 net_process_received_packet(net_rx_packets[0], pkt_len + 5); in dnet_recv()
|
/u-boot/drivers/net/octeontx/ |
A D | nicvf_main.c | 233 size_t pkt_len; in nicvf_rcv_pkt_handler() local 242 pkt = nicvf_get_rcv_pkt(nic, cq_desc, &pkt_len); in nicvf_rcv_pkt_handler() 251 return pkt_len; in nicvf_rcv_pkt_handler() 254 int nicvf_cq_handler(struct nicvf *nic, void **ppkt, int *pkt_len) in nicvf_cq_handler() argument 288 *pkt_len = nicvf_rcv_pkt_handler(nic, cq, cq_desc, in nicvf_cq_handler() 342 if (pkt && pkt_len) in nicvf_free_pkt() 356 if (!nicvf_sq_append_pkt(nic, pkt, pkt_len)) { in nicvf_xmit() 377 int pkt_len = 0; in nicvf_recv() local 383 nicvf_cq_handler(nic, &pkt, &pkt_len); in nicvf_recv() 385 if (pkt_len) { in nicvf_recv() [all …]
|
A D | nicvf_queues.h | 327 int nicvf_sq_append_pkt(struct nicvf *nic, void *pkt, size_t pkt_len); 329 void *nicvf_get_rcv_pkt(struct nicvf *nic, void *cq_desc, size_t *pkt_len);
|
A D | nicvf_queues.c | 739 int subdesc_cnt, void *pkt, size_t pkt_len) in nicvf_sq_add_hdr_subdesc() argument 752 hdr->tot_len = pkt_len; in nicvf_sq_add_hdr_subdesc() 829 void *nicvf_get_rcv_pkt(struct nicvf *nic, void *cq_desc, size_t *pkt_len) in nicvf_get_rcv_pkt() argument 863 *pkt_len = payload_len; in nicvf_get_rcv_pkt() 872 debug("total pkt buf %p len %ld tot_len %d\n", pkt_buf, *pkt_len, in nicvf_get_rcv_pkt()
|
A D | q_struct.h | 189 u64 pkt_len:16; /* W1 */ member 243 u64 pkt_len:16; /* W1 */
|
/u-boot/drivers/usb/eth/ |
A D | asix88179.c | 584 u16 pkt_len; in asix_recv() local 587 pkt_len = (*pkt_hdr >> 16) & 0x1fff; in asix_recv() 591 net_process_received_packet(recv_buf + frame_pos, pkt_len); in asix_recv() 594 frame_pos += ((pkt_len + 7) & 0xFFF8)-2; in asix_recv() 783 u16 pkt_len; in ax88179_eth_recv() local 834 pkt_len = (*priv->pkt_hdr >> 16) & 0x1fff; in ax88179_eth_recv() 838 priv->pkt_data += (pkt_len + 7) & 0xFFF8; in ax88179_eth_recv() 843 __func__, (int)pkt_len, priv->pkt_cnt); in ax88179_eth_recv() 844 return pkt_len; in ax88179_eth_recv()
|
/u-boot/drivers/net/octeontx2/ |
A D | nix.c | 534 int nix_lf_xmit(struct udevice *dev, void *pkt, int pkt_len) in nix_lf_xmit() argument 551 memcpy(packet, pkt, pkt_len); in nix_lf_xmit() 558 tx_dr.hdr.s.total = pkt_len; in nix_lf_xmit() 564 tx_dr.tx_sg.s.seg1_size = pkt_len; in nix_lf_xmit() 571 for (int i = 0; i < pkt_len; i++) { in nix_lf_xmit() 636 int nix_lf_free_pkt(struct udevice *dev, uchar *pkt, int pkt_len) in nix_lf_free_pkt() argument 661 int pkt_len = 0; in nix_lf_recv() local 695 pkt_len = rxparse->s.pkt_lenm1 + 1; in nix_lf_recv() 703 if (pkt_len < rx_dr->rx_sg.s.seg1_size + rx_dr->rx_sg.s.seg2_size + in nix_lf_recv() 713 for (int i = 0; i < pkt_len; i++) { in nix_lf_recv() [all …]
|
A D | nix.h | 348 int nix_lf_free_pkt(struct udevice *dev, uchar *pkt, int pkt_len); 351 int nix_lf_xmit(struct udevice *dev, void *pkt, int pkt_len);
|
/u-boot/drivers/usb/gadget/ |
A D | atmel_usba_udc.c | 945 unsigned int pkt_len; in usba_control_irq() local 973 pkt_len = USBA_BFEXT(BYTE_COUNT, usba_ep_readl(ep, STA)); in usba_control_irq() 974 DBG(DBG_HW, "Packet length: %u\n", pkt_len); in usba_control_irq() 975 if (pkt_len != sizeof(crq)) { in usba_control_irq() 977 pkt_len, sizeof(crq)); in usba_control_irq()
|
/u-boot/include/linux/soc/ti/ |
A D | cppi5.h | 407 u32 pkt_len) in cppi5_hdesc_set_pktlen() argument 411 desc->hdr.pkt_info0 |= (pkt_len & CPPI5_INFO0_HDESC_PKTLEN_MASK); in cppi5_hdesc_set_pktlen()
|
/u-boot/include/ |
A D | net.h | 620 u16 pkt_len, u8 proto);
|
/u-boot/net/ |
A D | net.c | 1477 u16 pkt_len, u8 proto) in net_set_ip_header() argument 1487 ip->ip_len = htons(pkt_len); in net_set_ip_header()
|
/u-boot/drivers/dma/ti/ |
A D | k3-udma.c | 1686 u32 buf_dma_len, pkt_len; in udma_receive() local 1715 pkt_len = cppi5_hdesc_get_pktlen(desc_rx); in udma_receive() 1726 return pkt_len; in udma_receive()
|
/u-boot/arch/arm/include/asm/arch-octeontx2/csrs/ |
A D | csrs-nix.h | 3498 u64 pkt_len : 16; member
|