• Home
  • Raw
  • Download

Lines Matching full:ie

32  * uwb_ie_next - get the next IE in a buffer
33 * @ptr: start of the buffer containing the IE data
37 * will get the next IE.
76 const struct uwb_ie_hdr *ie; in uwb_ie_dump_hex() local
82 ie = uwb_ie_next(&ptr, &len); in uwb_ie_dump_hex()
83 if (!ie) in uwb_ie_dump_hex()
87 (unsigned)ie->element_id, in uwb_ie_dump_hex()
88 (unsigned)ie->length); in uwb_ie_dump_hex()
89 d = (uint8_t *)ie + sizeof(struct uwb_ie_hdr); in uwb_ie_dump_hex()
133 dev_err(dev, "not enough data returned for decoding GET IE " in uwb_rc_get_ie()
138 dev_err(dev, "not enough data returned for decoding GET IE " in uwb_rc_get_ie()
152 * @cmd: pointer to the SET-IE command with the IEs to set
163 result = uwb_rc_cmd(rc, "SET-IE", &cmd->rccb, in uwb_rc_set_ie()
169 dev_err(dev, "SET-IE: not enough data to decode reply " in uwb_rc_set_ie()
174 dev_err(dev, "SET-IE: command execution failed: %s (%d)\n", in uwb_rc_set_ie()
183 /* Cleanup the whole IE management subsystem */
191 * uwb_rc_ie_setup - setup a radio controller's IE manager
194 * The current set of IEs are obtained from the hardware with a GET-IE
222 /* Cleanup the whole IE management subsystem */
235 struct uwb_ie_hdr *ie; in uwb_rc_ie_add_one() local
254 ie = uwb_ie_next(&ptr, &size); in uwb_rc_ie_add_one()
255 if (!ie || ie->element_id > new_ie->element_id) in uwb_rc_ie_add_one()
269 * @ies: the buffer containing the new IE or IEs to be added to
275 * in the SET IE command. We thus cannot send this command if the device is
276 * not beaconing. Instead, a SET IE command will be sent later right after
279 * Setting an IE on the device will overwrite all current IEs in device. So
281 * new one, and call SET IE with all the IEs needed.
290 const struct uwb_ie_hdr *ie; in uwb_rc_ie_add() local
296 ie = uwb_ie_next(&ptr, &size); in uwb_rc_ie_add()
297 if (!ie) in uwb_rc_ie_add()
300 result = uwb_rc_ie_add_one(uwb_rc, ie); in uwb_rc_ie_add()
320 * Remove an IE from internal cache
322 * We are dealing with our internal IE cache so no need to verify that the
327 * We do not break out once an IE is found in the cache. It is currently
328 * possible to have more than one IE with the same ID included in the
334 struct uwb_ie_hdr *ie; in uwb_rc_ie_cache_rm() local
342 ie = uwb_ie_next(&ptr, &size); in uwb_rc_ie_cache_rm()
343 if (!ie) in uwb_rc_ie_cache_rm()
345 if (ie->element_id == to_remove) { in uwb_rc_ie_cache_rm()
346 len -= sizeof(struct uwb_ie_hdr) + ie->length; in uwb_rc_ie_cache_rm()
347 memmove(ie, ptr, size); in uwb_rc_ie_cache_rm()
348 ptr = ie; in uwb_rc_ie_cache_rm()
356 * uwb_rc_ie_rm - remove an IE from the radio controller's beacon
358 * @element_id: the element ID of the IE to remove.
362 * Returns 0 on success; or -ve the SET-IE command to the radio