Lines Matching defs:packet
60 e1000g_rxfree_func(p_rx_sw_packet_t packet)
69 if (packet->ref_cnt == 0) {
77 rx_data = (e1000g_rx_data_t *)(uintptr_t)packet->rx_data;
79 if (packet->mp == NULL) {
83 address = (unsigned char *)packet->rx_buf->address;
85 packet->mp = desballoc((unsigned char *)
86 address, packet->rx_buf->size,
87 BPRI_MED, &packet->free_rtn);
94 * to freelist. This helps in avoiding per packet mutex contention
98 QUEUE_PUSH_TAIL(&rx_data->recycle_list, &packet->Link);
102 ref_cnt = atomic_dec_32_nv(&packet->ref_cnt);
105 e1000g_free_rx_sw_packet(packet, B_FALSE);
148 p_rx_sw_packet_t packet;
182 * the both were allocated in one packet area.
184 packet = rx_data->packet_area;
188 i++, packet = packet->next, descriptor++) {
189 ASSERT(packet != NULL);
192 packet->rx_buf->dma_address;
196 &packet->Link);
200 i++, packet = packet->next) {
201 ASSERT(packet != NULL);
204 &packet->Link);
212 packet = (p_rx_sw_packet_t)
217 ASSERT(packet != NULL);
220 packet->rx_buf->dma_address;
223 packet = (p_rx_sw_packet_t)
224 QUEUE_GET_NEXT(&rx_data->recv_list, &packet->Link);
307 * Only takes effect when packet size is equal or larger than the
381 * e1000g_get_buf - get an rx sw packet from the free_list
386 p_rx_sw_packet_t packet;
392 packet = (p_rx_sw_packet_t)
394 if (packet != NULL) {
408 packet = (p_rx_sw_packet_t)QUEUE_POP_HEAD(&rx_data->free_list);
409 if (packet != NULL) {
416 packet = (p_rx_sw_packet_t)
418 if (packet != NULL) {
425 return (packet);
442 p_rx_sw_packet_t packet;
492 * descriptor owned by the hardware that begins a packet.
503 /* packet has EOP set */
508 * End-Of-Packet bit set, the received packet
510 * packet upstack till we get all the related buffers.
520 packet =
522 ASSERT(packet != NULL);
524 rx_buf = packet->rx_buf;
529 if (packet->dma_type == USE_DVMA)
578 * Indicate the packet to the NOS if it was good.
580 * Check for the packet to be a valid Ethernet packet
584 * error in incoming packet, either the packet is not a
585 * ethernet size packet, or the packet has an error. In
586 * either case, the packet will simply be discarded.
612 * the end of the packet.
636 if (packet->mp == NULL) {
637 packet->mp = desballoc((unsigned char *)
639 BPRI_MED, &packet->free_rtn);
642 if (packet->mp != NULL) {
646 * Each time we get a good packet, Try to get a buffer
662 * and strip it off the sw packet.
664 nmp = packet->mp;
665 packet->mp = NULL;
666 atomic_inc_32(&packet->ref_cnt);
673 * point to this new packet.
675 packet = newpkt;
699 * to send up the incoming packet, hence
700 * the packet will have to be processed
710 * available, so, the received packet will
713 * packet reception.
747 * We need to maintain our packet chain in the global
756 } else { /* Not the first packet */
769 * We will send packet upwards as soon as we get EOP
770 * set on the packet.
791 * Found packet with EOP
844 &packet->Link);
883 QUEUE_PUSH_TAIL(&rx_data->recv_list, &packet->Link);