Lines Matching refs:id

61 static int wilc_wlan_cfg_set_byte(u8 *frame, u32 offset, u16 id, u8 val8)
66 put_unaligned_le16(id, &frame[offset]);
72 static int wilc_wlan_cfg_set_hword(u8 *frame, u32 offset, u16 id, u16 val16)
77 put_unaligned_le16(id, &frame[offset]);
84 static int wilc_wlan_cfg_set_word(u8 *frame, u32 offset, u16 id, u32 val32)
89 put_unaligned_le16(id, &frame[offset]);
96 static int wilc_wlan_cfg_set_str(u8 *frame, u32 offset, u16 id, u8 *str,
102 put_unaligned_le16(id, &frame[offset]);
110 static int wilc_wlan_cfg_set_bin(u8 *frame, u32 offset, u16 id, u8 *b, u32 size)
118 put_unaligned_le16(id, &frame[offset]);
150 while (cfg->b[i].id != WID_NIL && cfg->b[i].id != wid)
153 if (cfg->b[i].id == wid)
160 while (cfg->hw[i].id != WID_NIL && cfg->hw[i].id != wid)
163 if (cfg->hw[i].id == wid)
170 while (cfg->w[i].id != WID_NIL && cfg->w[i].id != wid)
173 if (cfg->w[i].id == wid)
180 while (cfg->s[i].id != WID_NIL && cfg->s[i].id != wid)
183 if (cfg->s[i].id == wid)
209 while (wl->cfg.b[i].id != WID_NIL &&
210 wl->cfg.b[i].id != wid)
213 if (wl->cfg.b[i].id == wid)
224 int wilc_wlan_cfg_set_wid(u8 *frame, u32 offset, u16 id, u8 *buf, int size)
226 u8 type = FIELD_GET(WILC_WID_TYPE, id);
232 ret = wilc_wlan_cfg_set_byte(frame, offset, id, *buf);
237 ret = wilc_wlan_cfg_set_hword(frame, offset, id,
243 ret = wilc_wlan_cfg_set_word(frame, offset, id,
248 ret = wilc_wlan_cfg_set_str(frame, offset, id, buf, size);
252 ret = wilc_wlan_cfg_set_bin(frame, offset, id, buf, size);
259 int wilc_wlan_cfg_get_wid(u8 *frame, u32 offset, u16 id)
264 put_unaligned_le16(id, &frame[offset]);
278 while (cfg->b[i].id != WID_NIL && cfg->b[i].id != wid)
281 if (cfg->b[i].id == wid) {
286 while (cfg->hw[i].id != WID_NIL && cfg->hw[i].id != wid)
289 if (cfg->hw[i].id == wid) {
294 while (cfg->w[i].id != WID_NIL && cfg->w[i].id != wid)
297 if (cfg->w[i].id == wid) {
302 while (cfg->s[i].id != WID_NIL && cfg->s[i].id != wid)
305 if (cfg->s[i].id == wid) {
385 wl->cfg.s[i].id = WID_FIRMWARE_VERSION;
388 wl->cfg.s[i].id = WID_MAC_ADDR;
391 wl->cfg.s[i].id = WID_ASSOC_RES_INFO;
394 wl->cfg.s[i].id = WID_NIL;