Lines Matching defs:rid
501 * so all rid access should use the read/writeXXXRid routines.
790 u8 rates[8]; /* Same as rates for config rid */
886 #define AIROGCAP 0 // Capability rid
935 unsigned short ridnum; // rid number
983 unsigned int rid: 16;
1119 static int bap_setup(struct airo_info*, u16 rid, u16 offset, int whichbap);
1126 static int PC4500_accessrid(struct airo_info*, u16 rid, u16 accmd);
1127 static int PC4500_readrid(struct airo_info*, u16 rid, void *pBuf, int len, int lock);
1128 static int PC4500_writerid(struct airo_info*, u16 rid, const void
1130 static int do_writerid(struct airo_info*, u16 rid, const void *rid_data,
1862 static int readStatsRid(struct airo_info*ai, StatsRid *sr, int rid, int lock)
1864 return PC4500_readrid(ai, rid, sr, sizeof(*sr), lock);
2630 ai->config_desc.rid_desc.rid = 0;
3617 "rid=%x, offset=%d", rsp.rsp0, rsp.rsp1, rsp.rsp2);
4027 static int bap_setup(struct airo_info *ai, u16 rid, u16 offset, int whichbap)
4032 OUT4500(ai, SELECT0+whichbap, rid);
4043 /* invalid rid or offset */
4056 OUT4500(ai, SELECT0+whichbap, rid);
4140 static int PC4500_accessrid(struct airo_info *ai, u16 rid, u16 accmd)
4148 cmd.parm0 = rid;
4159 static int PC4500_readrid(struct airo_info *ai, u16 rid, void *pBuf, int len, int lock)
4176 ai->config_desc.rid_desc.rid = 0;
4180 cmd.parm0 = rid;
4193 if ((status = PC4500_accessrid(ai, rid, CMD_ACCESS))!=SUCCESS) {
4197 if (bap_setup(ai, rid, 0, BAP1) != SUCCESS) {
4201 // read the rid length field
4203 // length for remaining part of rid
4209 (int)rid, (int)len);
4213 // read remainder of the rid
4224 static int PC4500_writerid(struct airo_info *ai, u16 rid,
4240 if (test_bit(FLAG_ENABLED, &ai->flags) && (RID_WEP_TEMP != rid))
4242 "%s: MAC should be disabled (rid=%04x)",
4243 __func__, rid);
4249 ai->config_desc.rid_desc.rid = 0;
4252 cmd.parm0 = rid;
4266 airo_print_err(ai->dev->name, "%s: Write rid Error %d",
4276 // --- first access so that we can write the rid data
4277 if ((status = PC4500_accessrid(ai, rid, CMD_ACCESS)) != 0) {
4281 // --- now write the rid data
4282 if (bap_setup(ai, rid, 0, BAP1) != SUCCESS) {
4287 // ---now commit the rid data
4288 rc = PC4500_accessrid(ai, rid, 0x100|CMD_ACCESS);
4756 u16 rid)
4774 readStatsRid(apriv, &stats, rid, 1);
4789 airo_print_warn(apriv->dev->name, "Got a short rid");
5179 static int do_writerid(struct airo_info *ai, u16 rid, const void *rid_data,
5185 rc = PC4500_writerid(ai, rid, rid_data, len, 1);
7882 /* get the count of bytes in the rid docs say 1st 2 bytes is it.
7905 int (*writer)(struct airo_info *, u16 rid, const void *, int, int);
7934 /* this is not really a rid but a command given to the card
7951 * only reads rid. But as it changes the cards state, I put it in the