Lines Matching refs:tx_hdr
69 static void wl1251_tx_control(struct tx_double_buffer_desc *tx_hdr, in wl1251_tx_control() argument
72 *(u16 *)&tx_hdr->control = 0; in wl1251_tx_control()
74 tx_hdr->control.rate_policy = 0; in wl1251_tx_control()
77 tx_hdr->control.packet_type = 0; in wl1251_tx_control()
82 tx_hdr->control.rate_policy = 1; in wl1251_tx_control()
83 tx_hdr->control.ack_policy = 1; in wl1251_tx_control()
86 tx_hdr->control.tx_complete = 1; in wl1251_tx_control()
91 tx_hdr->control.qos = 1; in wl1251_tx_control()
101 static void wl1251_tx_frag_block_num(struct tx_double_buffer_desc *tx_hdr) in wl1251_tx_frag_block_num() argument
107 tx_hdr->frag_threshold = cpu_to_le16(frag_threshold); in wl1251_tx_frag_block_num()
109 payload_len = le16_to_cpu(tx_hdr->length) + MAX_MSDU_SECURITY_LENGTH; in wl1251_tx_frag_block_num()
131 tx_hdr->num_mem_blocks = mem_blocks; in wl1251_tx_frag_block_num()
137 struct tx_double_buffer_desc *tx_hdr; in wl1251_tx_fill_hdr() local
150 tx_hdr = skb_push(skb, sizeof(*tx_hdr)); in wl1251_tx_fill_hdr()
152 tx_hdr->length = cpu_to_le16(skb->len - sizeof(*tx_hdr)); in wl1251_tx_fill_hdr()
154 tx_hdr->rate = cpu_to_le16(rate->hw_value); in wl1251_tx_fill_hdr()
155 tx_hdr->expiry_time = cpu_to_le32(1 << 16); in wl1251_tx_fill_hdr()
156 tx_hdr->id = id; in wl1251_tx_fill_hdr()
158 tx_hdr->xmit_queue = wl1251_tx_get_queue(skb_get_queue_mapping(skb)); in wl1251_tx_fill_hdr()
160 wl1251_tx_control(tx_hdr, control, fc); in wl1251_tx_fill_hdr()
161 wl1251_tx_frag_block_num(tx_hdr); in wl1251_tx_fill_hdr()
170 struct tx_double_buffer_desc *tx_hdr; in wl1251_tx_send_packet() local
177 tx_hdr = (struct tx_double_buffer_desc *) skb->data; in wl1251_tx_send_packet()
186 fc = *(__le16 *)(skb->data + sizeof(*tx_hdr)); in wl1251_tx_send_packet()
187 length = le16_to_cpu(tx_hdr->length) + WL1251_TKIP_IV_SPACE; in wl1251_tx_send_packet()
188 tx_hdr->length = cpu_to_le16(length); in wl1251_tx_send_packet()
194 sizeof(*tx_hdr) + hdrlen); in wl1251_tx_send_packet()
213 tx_hdr = (struct tx_double_buffer_desc *) newskb->data; in wl1251_tx_send_packet()
216 wl->tx_frames[tx_hdr->id] = skb = newskb; in wl1251_tx_send_packet()
227 tx_hdr = (struct tx_double_buffer_desc *) skb->data; in wl1251_tx_send_packet()
243 "queue %d", tx_hdr->id, skb, tx_hdr->length, in wl1251_tx_send_packet()
244 tx_hdr->rate, tx_hdr->xmit_queue); in wl1251_tx_send_packet()