Home | History | Annotate | Download | only in net

Lines Matching refs:rid

282  * Prepare BAP for access.  Assigns FID and RID, sets offset register
287 * id FID or RID, destined for the select register (host order)
288 * offset An _even_ offset into the buffer for the given FID/RID.
302 /* Write fid/rid and offset */
329 * id FID or RID, destined for the select register (host order)
330 * offset An _even_ offset into the buffer for the given FID/RID.
368 * id FID or RID, destined for the select register (host order)
369 * offset An _even_ offset into the buffer for the given FID/RID.
413 * rid RID of the record to read/write. (host order)
418 static inline int hfa384x_cmd_access(hfa384x_t *hw, UINT16 write, UINT16 rid)
420 return hfa384x_docmd_wait(hw, HFA384x_CMD_CMDCODE_SET(HFA384x_CMDCODE_ACCESS) | HFA384x_CMD_WRITE_SET(write), rid, 0, 0);
428 * rid config/info record id (host order)
431 * RID and len).
437 static int hfa384x_drvr_getconfig(hfa384x_t *hw, UINT16 rid, void *buf, UINT16 len)
442 /* Request read of RID */
443 result = hfa384x_cmd_access( hw, 0, rid);
449 result = hfa384x_copy_from_bap( hw, rid, 0, &rec, sizeof(rec));
455 printf ( "RID len mismatch, rid=%#hx hlen=%d fwlen=%d\n", rid, len, (hfa384x2host_16(rec.reclen)-1)*2);
459 result = hfa384x_copy_from_bap( hw, rid, sizeof(rec), buf, len);
469 * rid config/info record id (in host order)
476 static int hfa384x_drvr_getconfig16(hfa384x_t *hw, UINT16 rid, void *val)
479 result = hfa384x_drvr_getconfig(hw, rid, val, sizeof(UINT16));
487 static int hfa384x_drvr_getconfig32(hfa384x_t *hw, UINT16 rid, void *val)
490 result = hfa384x_drvr_getconfig(hw, rid, val, sizeof(UINT32));
503 * rid config/info record id (in host order)
510 static int hfa384x_drvr_setconfig(hfa384x_t *hw, UINT16 rid, void *buf, UINT16 len)
515 rec.rid = host2hfa384x_16(rid);
516 rec.reclen = host2hfa384x_16((len/2) + 1); /* note conversion to words, +1 for rid field */
518 result = hfa384x_copy_to_bap( hw, rid, 0, &rec, sizeof(rec));
525 result = hfa384x_copy_to_bap( hw, rid, sizeof(rec), buf, len);
532 result = hfa384x_cmd_access( hw, 1, rid);
541 * rid config/info record id (in host order)
547 static int hfa384x_drvr_setconfig16(hfa384x_t *hw, UINT16 rid, UINT16 *val)
551 return hfa384x_drvr_setconfig(hw, rid, &value, sizeof(UINT16));
554 static int hfa384x_drvr_setconfig32(hfa384x_t *hw, UINT16 rid, UINT32 *val)
558 return hfa384x_drvr_setconfig(hw, rid, &value, sizeof(UINT32));