Lines Matching refs:pos
115 u8 *pos, ie_len; in mesh_path_sel_frame_tx() local
142 pos = skb_put(skb, 2 + ie_len); in mesh_path_sel_frame_tx()
143 *pos++ = WLAN_EID_PREQ; in mesh_path_sel_frame_tx()
148 pos = skb_put(skb, 2 + ie_len); in mesh_path_sel_frame_tx()
149 *pos++ = WLAN_EID_PREP; in mesh_path_sel_frame_tx()
154 pos = skb_put(skb, 2 + ie_len); in mesh_path_sel_frame_tx()
155 *pos++ = WLAN_EID_RANN; in mesh_path_sel_frame_tx()
161 *pos++ = ie_len; in mesh_path_sel_frame_tx()
162 *pos++ = flags; in mesh_path_sel_frame_tx()
163 *pos++ = hop_count; in mesh_path_sel_frame_tx()
164 *pos++ = ttl; in mesh_path_sel_frame_tx()
166 memcpy(pos, target, ETH_ALEN); in mesh_path_sel_frame_tx()
167 pos += ETH_ALEN; in mesh_path_sel_frame_tx()
168 put_unaligned_le32(target_sn, pos); in mesh_path_sel_frame_tx()
169 pos += 4; in mesh_path_sel_frame_tx()
172 put_unaligned_le32(preq_id, pos); in mesh_path_sel_frame_tx()
173 pos += 4; in mesh_path_sel_frame_tx()
175 memcpy(pos, orig_addr, ETH_ALEN); in mesh_path_sel_frame_tx()
176 pos += ETH_ALEN; in mesh_path_sel_frame_tx()
177 put_unaligned_le32(orig_sn, pos); in mesh_path_sel_frame_tx()
178 pos += 4; in mesh_path_sel_frame_tx()
180 put_unaligned_le32(lifetime, pos); /* interval for RANN */ in mesh_path_sel_frame_tx()
181 pos += 4; in mesh_path_sel_frame_tx()
182 put_unaligned_le32(metric, pos); in mesh_path_sel_frame_tx()
183 pos += 4; in mesh_path_sel_frame_tx()
185 *pos++ = 1; /* destination count */ in mesh_path_sel_frame_tx()
186 *pos++ = target_flags; in mesh_path_sel_frame_tx()
187 memcpy(pos, target, ETH_ALEN); in mesh_path_sel_frame_tx()
188 pos += ETH_ALEN; in mesh_path_sel_frame_tx()
189 put_unaligned_le32(target_sn, pos); in mesh_path_sel_frame_tx()
190 pos += 4; in mesh_path_sel_frame_tx()
192 memcpy(pos, orig_addr, ETH_ALEN); in mesh_path_sel_frame_tx()
193 pos += ETH_ALEN; in mesh_path_sel_frame_tx()
194 put_unaligned_le32(orig_sn, pos); in mesh_path_sel_frame_tx()
195 pos += 4; in mesh_path_sel_frame_tx()
247 u8 *pos, ie_len; in mesh_path_error_tx() local
275 pos = skb_put(skb, 2 + ie_len); in mesh_path_error_tx()
276 *pos++ = WLAN_EID_PERR; in mesh_path_error_tx()
277 *pos++ = ie_len; in mesh_path_error_tx()
279 *pos++ = ttl; in mesh_path_error_tx()
281 *pos++ = 1; in mesh_path_error_tx()
286 *pos = 0; in mesh_path_error_tx()
288 *pos |= MP_F_USN; in mesh_path_error_tx()
290 *pos |= MP_F_RCODE; in mesh_path_error_tx()
291 pos++; in mesh_path_error_tx()
292 memcpy(pos, target, ETH_ALEN); in mesh_path_error_tx()
293 pos += ETH_ALEN; in mesh_path_error_tx()
294 put_unaligned_le32(target_sn, pos); in mesh_path_error_tx()
295 pos += 4; in mesh_path_error_tx()
296 put_unaligned_le16(target_rcode, pos); in mesh_path_error_tx()