Lines Matching refs:packet

733 	struct ipw2100_tx_packet *packet;  in ipw2100_hw_send_command()  local
776 packet = list_entry(element, struct ipw2100_tx_packet, list); in ipw2100_hw_send_command()
777 packet->jiffy_start = jiffies; in ipw2100_hw_send_command()
780 packet->info.c_struct.cmd->host_command_reg = cmd->host_command; in ipw2100_hw_send_command()
781 packet->info.c_struct.cmd->host_command_reg1 = cmd->host_command1; in ipw2100_hw_send_command()
782 packet->info.c_struct.cmd->host_command_len_reg = in ipw2100_hw_send_command()
784 packet->info.c_struct.cmd->sequence = cmd->host_command_sequence; in ipw2100_hw_send_command()
786 memcpy(packet->info.c_struct.cmd->host_command_params_reg, in ipw2100_hw_send_command()
788 sizeof(packet->info.c_struct.cmd->host_command_params_reg)); in ipw2100_hw_send_command()
2304 struct ipw2100_rx_packet *packet) in ipw2100_alloc_skb() argument
2306 packet->skb = dev_alloc_skb(sizeof(struct ipw2100_rx)); in ipw2100_alloc_skb()
2307 if (!packet->skb) in ipw2100_alloc_skb()
2310 packet->rxp = (struct ipw2100_rx *)packet->skb->data; in ipw2100_alloc_skb()
2311 packet->dma_addr = pci_map_single(priv->pci_dev, packet->skb->data, in ipw2100_alloc_skb()
2466 struct ipw2100_rx_packet *packet = &priv->rx_buffers[i]; in isr_rx() local
2470 if (unlikely(status->frame_size > skb_tailroom(packet->skb))) { in isr_rx()
2474 status->frame_size, skb_tailroom(packet->skb)); in isr_rx()
2494 packet->dma_addr, in isr_rx()
2497 skb_put(packet->skb, status->frame_size); in isr_rx()
2502 skb_copy_from_linear_data(packet->skb, packet_data, in isr_rx()
2507 if (!libipw_rx(priv->ieee, packet->skb, stats)) { in isr_rx()
2516 dev_kfree_skb_any(packet->skb); in isr_rx()
2517 packet->skb = NULL; in isr_rx()
2521 if (unlikely(ipw2100_alloc_skb(priv, packet))) { in isr_rx()
2530 priv->rx_queue.drv[i].host_addr = packet->dma_addr; in isr_rx()
2540 struct ipw2100_rx_packet *packet = &priv->rx_buffers[i]; in isr_rx_monitor() local
2552 if (unlikely(status->frame_size > skb_tailroom(packet->skb) - in isr_rx_monitor()
2558 skb_tailroom(packet->skb)); in isr_rx_monitor()
2577 pci_unmap_single(priv->pci_dev, packet->dma_addr, in isr_rx_monitor()
2579 memmove(packet->skb->data + sizeof(struct ipw_rt_hdr), in isr_rx_monitor()
2580 packet->skb->data, status->frame_size); in isr_rx_monitor()
2582 ipw_rt = (struct ipw_rt_hdr *) packet->skb->data; in isr_rx_monitor()
2592 skb_put(packet->skb, status->frame_size + sizeof(struct ipw_rt_hdr)); in isr_rx_monitor()
2594 if (!libipw_rx(priv->ieee, packet->skb, stats)) { in isr_rx_monitor()
2598 dev_kfree_skb_any(packet->skb); in isr_rx_monitor()
2599 packet->skb = NULL; in isr_rx_monitor()
2603 if (unlikely(ipw2100_alloc_skb(priv, packet))) { in isr_rx_monitor()
2612 priv->rx_queue.drv[i].host_addr = packet->dma_addr; in isr_rx_monitor()
2677 struct ipw2100_rx_packet *packet; in __ipw2100_rx_process() local
2699 packet = &priv->rx_buffers[i]; in __ipw2100_rx_process()
2703 pci_dma_sync_single_for_cpu(priv->pci_dev, packet->dma_addr, in __ipw2100_rx_process()
2712 u = packet->rxp; in __ipw2100_rx_process()
2823 struct ipw2100_tx_packet *packet; in __ipw2100_tx_process() local
2833 packet = list_entry(element, struct ipw2100_tx_packet, list); in __ipw2100_tx_process()
2834 tbd = &txq->drv[packet->index]; in __ipw2100_tx_process()
2837 switch (packet->type) { in __ipw2100_tx_process()
2908 if (packet->type == DATA) { in __ipw2100_tx_process()
2921 switch (packet->type) { in __ipw2100_tx_process()
2927 priv->net_dev->name, txq->oldest, packet->index); in __ipw2100_tx_process()
2931 tbd = &txq->drv[(packet->index + 1 + i) % txq->entries]; in __ipw2100_tx_process()
2934 (packet->index + 1 + i) % txq->entries, in __ipw2100_tx_process()
2942 libipw_txb_free(packet->info.d_struct.txb); in __ipw2100_tx_process()
2943 packet->info.d_struct.txb = NULL; in __ipw2100_tx_process()
2964 priv->net_dev->name, txq->oldest, packet->index); in __ipw2100_tx_process()
2967 if (packet->info.c_struct.cmd->host_command_reg < in __ipw2100_tx_process()
2970 command_types[packet->info.c_struct.cmd-> in __ipw2100_tx_process()
2972 packet->info.c_struct.cmd-> in __ipw2100_tx_process()
2974 packet->info.c_struct.cmd->cmd_status_reg); in __ipw2100_tx_process()
2989 jiffies - packet->jiffy_start); in __ipw2100_tx_process()
3011 struct ipw2100_tx_packet *packet; in ipw2100_tx_send_commands() local
3032 packet = list_entry(element, struct ipw2100_tx_packet, list); in ipw2100_tx_send_commands()
3039 packet->index = txq->next; in ipw2100_tx_send_commands()
3044 tbd->host_addr = packet->info.c_struct.cmd_phys; in ipw2100_tx_send_commands()
3080 struct ipw2100_tx_packet *packet; in ipw2100_tx_send_data() local
3096 packet = list_entry(element, struct ipw2100_tx_packet, list); in ipw2100_tx_send_data()
3098 if (unlikely(1 + packet->info.d_struct.txb->nr_frags > in ipw2100_tx_send_data()
3107 if (txq->available <= 3 + packet->info.d_struct.txb->nr_frags) { in ipw2100_tx_send_data()
3117 packet->index = txq->next; in ipw2100_tx_send_data()
3119 ipw_hdr = packet->info.d_struct.data; in ipw2100_tx_send_data()
3120 hdr = (struct libipw_hdr_3addr *)packet->info.d_struct.txb-> in ipw2100_tx_send_data()
3140 ipw_hdr->encrypted = packet->info.d_struct.txb->encrypted; in ipw2100_tx_send_data()
3141 if (packet->info.d_struct.txb->nr_frags > 1) in ipw2100_tx_send_data()
3143 packet->info.d_struct.txb->frag_size - in ipw2100_tx_send_data()
3148 tbd->host_addr = packet->info.d_struct.data_phys; in ipw2100_tx_send_data()
3150 tbd->num_fragments = 1 + packet->info.d_struct.txb->nr_frags; in ipw2100_tx_send_data()
3158 packet->index, tbd->host_addr, tbd->buf_length); in ipw2100_tx_send_data()
3160 if (packet->info.d_struct.txb->nr_frags > 1) in ipw2100_tx_send_data()
3162 packet->info.d_struct.txb->nr_frags); in ipw2100_tx_send_data()
3165 for (i = 0; i < packet->info.d_struct.txb->nr_frags; i++) { in ipw2100_tx_send_data()
3167 if (i == packet->info.d_struct.txb->nr_frags - 1) in ipw2100_tx_send_data()
3176 tbd->buf_length = packet->info.d_struct.txb-> in ipw2100_tx_send_data()
3180 packet->info.d_struct. in ipw2100_tx_send_data()
3200 txq->available -= 1 + packet->info.d_struct.txb->nr_frags; in ipw2100_tx_send_data()
3392 struct ipw2100_tx_packet *packet; in ipw2100_tx() local
3408 packet = list_entry(element, struct ipw2100_tx_packet, list); in ipw2100_tx()
3410 packet->info.d_struct.txb = txb; in ipw2100_tx()
3415 packet->jiffy_start = jiffies; in ipw2100_tx()
4600 struct ipw2100_rx_packet *packet = &priv->rx_buffers[i]; in ipw2100_rx_allocate() local
4602 err = ipw2100_alloc_skb(priv, packet); in ipw2100_rx_allocate()
4609 priv->rx_queue.drv[i].host_addr = packet->dma_addr; in ipw2100_rx_allocate()
5818 struct ipw2100_tx_packet *packet; in ipw2100_close() local
5831 packet = list_entry(element, struct ipw2100_tx_packet, list); in ipw2100_close()
5836 libipw_txb_free(packet->info.d_struct.txb); in ipw2100_close()
5837 packet->info.d_struct.txb = NULL; in ipw2100_close()