Lines Matching refs:pos

112 	u8 *pos, ie_len;  in mesh_path_sel_frame_tx()  local
139 pos = skb_put(skb, 2 + ie_len); in mesh_path_sel_frame_tx()
140 *pos++ = WLAN_EID_PREQ; in mesh_path_sel_frame_tx()
145 pos = skb_put(skb, 2 + ie_len); in mesh_path_sel_frame_tx()
146 *pos++ = WLAN_EID_PREP; in mesh_path_sel_frame_tx()
151 pos = skb_put(skb, 2 + ie_len); in mesh_path_sel_frame_tx()
152 *pos++ = WLAN_EID_RANN; in mesh_path_sel_frame_tx()
158 *pos++ = ie_len; in mesh_path_sel_frame_tx()
159 *pos++ = flags; in mesh_path_sel_frame_tx()
160 *pos++ = hop_count; in mesh_path_sel_frame_tx()
161 *pos++ = ttl; in mesh_path_sel_frame_tx()
163 memcpy(pos, target, ETH_ALEN); in mesh_path_sel_frame_tx()
164 pos += ETH_ALEN; in mesh_path_sel_frame_tx()
165 put_unaligned_le32(target_sn, pos); in mesh_path_sel_frame_tx()
166 pos += 4; in mesh_path_sel_frame_tx()
169 put_unaligned_le32(preq_id, pos); in mesh_path_sel_frame_tx()
170 pos += 4; in mesh_path_sel_frame_tx()
172 memcpy(pos, orig_addr, ETH_ALEN); in mesh_path_sel_frame_tx()
173 pos += ETH_ALEN; in mesh_path_sel_frame_tx()
174 put_unaligned_le32(orig_sn, pos); in mesh_path_sel_frame_tx()
175 pos += 4; in mesh_path_sel_frame_tx()
177 put_unaligned_le32(lifetime, pos); /* interval for RANN */ in mesh_path_sel_frame_tx()
178 pos += 4; in mesh_path_sel_frame_tx()
179 put_unaligned_le32(metric, pos); in mesh_path_sel_frame_tx()
180 pos += 4; in mesh_path_sel_frame_tx()
182 *pos++ = 1; /* destination count */ in mesh_path_sel_frame_tx()
183 *pos++ = target_flags; in mesh_path_sel_frame_tx()
184 memcpy(pos, target, ETH_ALEN); in mesh_path_sel_frame_tx()
185 pos += ETH_ALEN; in mesh_path_sel_frame_tx()
186 put_unaligned_le32(target_sn, pos); in mesh_path_sel_frame_tx()
187 pos += 4; in mesh_path_sel_frame_tx()
189 memcpy(pos, orig_addr, ETH_ALEN); in mesh_path_sel_frame_tx()
190 pos += ETH_ALEN; in mesh_path_sel_frame_tx()
191 put_unaligned_le32(orig_sn, pos); in mesh_path_sel_frame_tx()
192 pos += 4; in mesh_path_sel_frame_tx()
244 u8 *pos, ie_len; in mesh_path_error_tx() local
272 pos = skb_put(skb, 2 + ie_len); in mesh_path_error_tx()
273 *pos++ = WLAN_EID_PERR; in mesh_path_error_tx()
274 *pos++ = ie_len; in mesh_path_error_tx()
276 *pos++ = ttl; in mesh_path_error_tx()
278 *pos++ = 1; in mesh_path_error_tx()
282 *pos = 0; in mesh_path_error_tx()
283 pos++; in mesh_path_error_tx()
284 memcpy(pos, target, ETH_ALEN); in mesh_path_error_tx()
285 pos += ETH_ALEN; in mesh_path_error_tx()
286 put_unaligned_le32(target_sn, pos); in mesh_path_error_tx()
287 pos += 4; in mesh_path_error_tx()
288 put_unaligned_le16(target_rcode, pos); in mesh_path_error_tx()