Lines Matching refs:packet

696  *	 Transmit sw packet structure
699 * Receive sw packet structure
1127 p_tx_sw_packet_t packet;
1140 * software packet. This structure stores all the relevant information
1141 * for transmitting a single packet.
1149 for (j = 0, packet = tx_ring->packet_area;
1150 j < Adapter->tx_freelist_num; j++, packet++) {
1152 ASSERT(packet != NULL);
1167 &packet->tx_dma_handle);
1174 &packet->tx_dma_handle);
1181 packet->tx_dma_handle = NULL;
1194 tx_buf = packet->tx_buf;
1212 ASSERT(packet->tx_dma_handle != NULL);
1216 dvma_release(packet->tx_dma_handle);
1220 ddi_dma_free_handle(&packet->tx_dma_handle);
1226 packet->tx_dma_handle = NULL;
1232 packet->dma_type = e1000g_dma_type;
1248 p_rx_sw_packet_t packet;
1259 packet = e1000g_alloc_rx_sw_packet(rx_data, &dma_attr);
1260 if (packet == NULL)
1262 packet->next = cur;
1263 cur = packet;
1285 p_rx_sw_packet_t packet;
1298 * received packet, the maximum number of rx_sw_packet that we'll
1306 packet = e1000g_alloc_rx_sw_packet(rx_data, &dma_attr);
1307 if (packet == NULL)
1310 packet->next = rx_data->packet_area;
1311 rx_data->packet_area = packet;
1327 p_rx_sw_packet_t packet;
1333 packet = kmem_zalloc(sizeof (rx_sw_packet_t), KM_NOSLEEP);
1334 if (packet == NULL) {
1340 rx_buf = packet->rx_buf;
1367 if (packet != NULL)
1368 kmem_free(packet, sizeof (rx_sw_packet_t));
1379 packet->rx_data = (caddr_t)rx_data;
1380 packet->free_rtn.free_func = e1000g_rxfree_func;
1381 packet->free_rtn.free_arg = (char *)packet;
1387 packet->mp = desballoc((unsigned char *)
1390 BPRI_MED, &packet->free_rtn);
1392 packet->dma_type = e1000g_dma_type;
1393 packet->ref_cnt = 1;
1395 return (packet);
1399 e1000g_free_rx_sw_packet(p_rx_sw_packet_t packet, boolean_t full_release)
1403 if (packet->mp != NULL) {
1404 freemsg(packet->mp);
1405 packet->mp = NULL;
1408 rx_buf = packet->rx_buf;
1410 switch (packet->dma_type) {
1427 packet->dma_type = USE_NONE;
1432 kmem_free(packet, sizeof (rx_sw_packet_t));
1438 p_rx_sw_packet_t packet, next_packet;
1443 packet = rx_data->packet_area;
1444 while (packet != NULL) {
1445 next_packet = packet->next;
1447 ref_cnt = atomic_dec_32_nv(&packet->ref_cnt);
1452 e1000g_free_rx_sw_packet(packet, full_release);
1455 packet = next_packet;
1470 p_tx_sw_packet_t packet;
1475 for (j = 0, packet = tx_ring->packet_area;
1476 j < Adapter->tx_freelist_num; j++, packet++) {
1478 if (packet == NULL)
1482 if (packet->tx_dma_handle != NULL) {
1483 switch (packet->dma_type) {
1486 dvma_release(packet->tx_dma_handle);
1490 ddi_dma_free_handle(&packet->tx_dma_handle);
1496 packet->tx_dma_handle = NULL;
1506 tx_buf = packet->tx_buf;
1508 switch (packet->dma_type) {
1522 packet->dma_type = USE_NONE;