/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192se/ |
H A D | def.h | 68 #define SET_BITS_OFFSET_LE(__pdesc, __shift, __len, __val) \ 72 (((u32)(__val) & BIT_LEN_MASK_32(__len)) << (__shift))))); 77 #define SET_TX_DESC_PKT_SIZE(__pdesc, __val) \ 78 SET_BITS_OFFSET_LE(__pdesc, 0, 16, __val) 79 #define SET_TX_DESC_OFFSET(__pdesc, __val) \ 80 SET_BITS_OFFSET_LE(__pdesc, 16, 8, __val) 81 #define SET_TX_DESC_TYPE(__pdesc, __val) \ 82 SET_BITS_OFFSET_LE(__pdesc, 24, 2, __val) 83 #define SET_TX_DESC_LAST_SEG(__pdesc, __val) \ 84 SET_BITS_OFFSET_LE(__pdesc, 26, 1, __val) 85 #define SET_TX_DESC_FIRST_SEG(__pdesc, __val) \ 86 SET_BITS_OFFSET_LE(__pdesc, 27, 1, __val) 87 #define SET_TX_DESC_LINIP(__pdesc, __val) \ 88 SET_BITS_OFFSET_LE(__pdesc, 28, 1, __val) 89 #define SET_TX_DESC_AMSDU(__pdesc, __val) \ 90 SET_BITS_OFFSET_LE(__pdesc, 29, 1, __val) 91 #define SET_TX_DESC_GREEN_FIELD(__pdesc, __val) \ 92 SET_BITS_OFFSET_LE(__pdesc, 30, 1, __val) 93 #define SET_TX_DESC_OWN(__pdesc, __val) \ 94 SET_BITS_OFFSET_LE(__pdesc, 31, 1, __val) 100 #define SET_TX_DESC_MACID(__pdesc, __val) \ 101 SET_BITS_OFFSET_LE(__pdesc + 4, 0, 5, __val) 102 #define SET_TX_DESC_MORE_DATA(__pdesc, __val) \ 103 SET_BITS_OFFSET_LE(__pdesc + 4, 5, 1, __val) 104 #define SET_TX_DESC_MORE_FRAG(__pdesc, __val) \ 105 SET_BITS_OFFSET_LE(__pdesc + 4, 6, 1, __val) 106 #define SET_TX_DESC_PIFS(__pdesc, __val) \ 107 SET_BITS_OFFSET_LE(__pdesc + 4, 7, 1, __val) 108 #define SET_TX_DESC_QUEUE_SEL(__pdesc, __val) \ 109 SET_BITS_OFFSET_LE(__pdesc + 4, 8, 5, __val) 110 #define SET_TX_DESC_ACK_POLICY(__pdesc, __val) \ 111 SET_BITS_OFFSET_LE(__pdesc + 4, 13, 2, __val) 112 #define SET_TX_DESC_NO_ACM(__pdesc, __val) \ 113 SET_BITS_OFFSET_LE(__pdesc + 4, 15, 1, __val) 114 #define SET_TX_DESC_NON_QOS(__pdesc, __val) \ 115 SET_BITS_OFFSET_LE(__pdesc + 4, 16, 1, __val) 116 #define SET_TX_DESC_KEY_ID(__pdesc, __val) \ 117 SET_BITS_OFFSET_LE(__pdesc + 4, 17, 2, __val) 118 #define SET_TX_DESC_OUI(__pdesc, __val) \ 119 SET_BITS_OFFSET_LE(__pdesc + 4, 19, 1, __val) 120 #define SET_TX_DESC_PKT_TYPE(__pdesc, __val) \ 121 SET_BITS_OFFSET_LE(__pdesc + 4, 20, 1, __val) 122 #define SET_TX_DESC_EN_DESC_ID(__pdesc, __val) \ 123 SET_BITS_OFFSET_LE(__pdesc + 4, 21, 1, __val) 124 #define SET_TX_DESC_SEC_TYPE(__pdesc, __val) \ 125 SET_BITS_OFFSET_LE(__pdesc + 4, 22, 2, __val) 126 #define SET_TX_DESC_WDS(__pdesc, __val) \ 127 SET_BITS_OFFSET_LE(__pdesc + 4, 24, 1, __val) 128 #define SET_TX_DESC_HTC(__pdesc, __val) \ 129 SET_BITS_OFFSET_LE(__pdesc + 4, 25, 1, __val) 130 #define SET_TX_DESC_PKT_OFFSET(__pdesc, __val) \ 131 SET_BITS_OFFSET_LE(__pdesc + 4, 26, 5, __val) 132 #define SET_TX_DESC_HWPC(__pdesc, __val) \ 133 SET_BITS_OFFSET_LE(__pdesc + 4, 27, 1, __val) 136 #define SET_TX_DESC_DATA_RETRY_LIMIT(__pdesc, __val) \ 137 SET_BITS_OFFSET_LE(__pdesc + 8, 0, 6, __val) 138 #define SET_TX_DESC_RETRY_LIMIT_ENABLE(__pdesc, __val) \ 139 SET_BITS_OFFSET_LE(__pdesc + 8, 6, 1, __val) 140 #define SET_TX_DESC_TSFL(__pdesc, __val) \ 141 SET_BITS_OFFSET_LE(__pdesc + 8, 7, 5, __val) 142 #define SET_TX_DESC_RTS_RETRY_COUNT(__pdesc, __val) \ 143 SET_BITS_OFFSET_LE(__pdesc + 8, 12, 6, __val) 144 #define SET_TX_DESC_DATA_RETRY_COUNT(__pdesc, __val) \ 145 SET_BITS_OFFSET_LE(__pdesc + 8, 18, 6, __val) 146 #define SET_TX_DESC_RSVD_MACID(__pdesc, __val) \ 147 SET_BITS_OFFSET_LE(((__pdesc) + 8), 24, 5, __val) 148 #define SET_TX_DESC_AGG_ENABLE(__pdesc, __val) \ 149 SET_BITS_OFFSET_LE(__pdesc + 8, 29, 1, __val) 150 #define SET_TX_DESC_AGG_BREAK(__pdesc, __val) \ 151 SET_BITS_OFFSET_LE(__pdesc + 8, 30, 1, __val) 152 #define SET_TX_DESC_OWN_MAC(__pdesc, __val) \ 153 SET_BITS_OFFSET_LE(__pdesc + 8, 31, 1, __val) 156 #define SET_TX_DESC_NEXT_HEAP_PAGE(__pdesc, __val) \ 157 SET_BITS_OFFSET_LE(__pdesc + 12, 0, 8, __val) 158 #define SET_TX_DESC_TAIL_PAGE(__pdesc, __val) \ 159 SET_BITS_OFFSET_LE(__pdesc + 12, 8, 8, __val) 160 #define SET_TX_DESC_SEQ(__pdesc, __val) \ 161 SET_BITS_OFFSET_LE(__pdesc + 12, 16, 12, __val) 162 #define SET_TX_DESC_FRAG(__pdesc, __val) \ 163 SET_BITS_OFFSET_LE(__pdesc + 12, 28, 4, __val) 166 #define SET_TX_DESC_RTS_RATE(__pdesc, __val) \ 167 SET_BITS_OFFSET_LE(__pdesc + 16, 0, 6, __val) 168 #define SET_TX_DESC_DISABLE_RTS_FB(__pdesc, __val) \ 169 SET_BITS_OFFSET_LE(__pdesc + 16, 6, 1, __val) 170 #define SET_TX_DESC_RTS_RATE_FB_LIMIT(__pdesc, __val) \ 171 SET_BITS_OFFSET_LE(__pdesc + 16, 7, 4, __val) 172 #define SET_TX_DESC_CTS_ENABLE(__pdesc, __val) \ 173 SET_BITS_OFFSET_LE(__pdesc + 16, 11, 1, __val) 174 #define SET_TX_DESC_RTS_ENABLE(__pdesc, __val) \ 175 SET_BITS_OFFSET_LE(__pdesc + 16, 12, 1, __val) 176 #define SET_TX_DESC_RA_BRSR_ID(__pdesc, __val) \ 177 SET_BITS_OFFSET_LE(__pdesc + 16, 13, 3, __val) 178 #define SET_TX_DESC_TXHT(__pdesc, __val) \ 179 SET_BITS_OFFSET_LE(__pdesc + 16, 16, 1, __val) 180 #define SET_TX_DESC_TX_SHORT(__pdesc, __val) \ 181 SET_BITS_OFFSET_LE(__pdesc + 16, 17, 1, __val) 182 #define SET_TX_DESC_TX_BANDWIDTH(__pdesc, __val) \ 183 SET_BITS_OFFSET_LE(__pdesc + 16, 18, 1, __val) 184 #define SET_TX_DESC_TX_SUB_CARRIER(__pdesc, __val) \ 185 SET_BITS_OFFSET_LE(__pdesc + 16, 19, 2, __val) 186 #define SET_TX_DESC_TX_STBC(__pdesc, __val) \ 187 SET_BITS_OFFSET_LE(__pdesc + 16, 21, 2, __val) 188 #define SET_TX_DESC_TX_REVERSE_DIRECTION(__pdesc, __val) \ 189 SET_BITS_OFFSET_LE(__pdesc + 16, 23, 1, __val) 190 #define SET_TX_DESC_RTS_HT(__pdesc, __val) \ 191 SET_BITS_OFFSET_LE(__pdesc + 16, 24, 1, __val) 192 #define SET_TX_DESC_RTS_SHORT(__pdesc, __val) \ 193 SET_BITS_OFFSET_LE(__pdesc + 16, 25, 1, __val) 194 #define SET_TX_DESC_RTS_BANDWIDTH(__pdesc, __val) \ 195 SET_BITS_OFFSET_LE(__pdesc + 16, 26, 1, __val) 196 #define SET_TX_DESC_RTS_SUB_CARRIER(__pdesc, __val) \ 197 SET_BITS_OFFSET_LE(__pdesc + 16, 27, 2, __val) 198 #define SET_TX_DESC_RTS_STBC(__pdesc, __val) \ 199 SET_BITS_OFFSET_LE(__pdesc + 16, 29, 2, __val) 200 #define SET_TX_DESC_USER_RATE(__pdesc, __val) \ 201 SET_BITS_OFFSET_LE(__pdesc + 16, 31, 1, __val) 204 #define SET_TX_DESC_PACKET_ID(__pdesc, __val) \ 205 SET_BITS_OFFSET_LE(__pdesc + 20, 0, 9, __val) 206 #define SET_TX_DESC_TX_RATE(__pdesc, __val) \ 207 SET_BITS_OFFSET_LE(__pdesc + 20, 9, 6, __val) 208 #define SET_TX_DESC_DISABLE_FB(__pdesc, __val) \ 209 SET_BITS_OFFSET_LE(__pdesc + 20, 15, 1, __val) 210 #define SET_TX_DESC_DATA_RATE_FB_LIMIT(__pdesc, __val) \ 211 SET_BITS_OFFSET_LE(__pdesc + 20, 16, 5, __val) 212 #define SET_TX_DESC_TX_AGC(__pdesc, __val) \ 213 SET_BITS_OFFSET_LE(__pdesc + 20, 21, 11, __val) 216 #define SET_TX_DESC_IP_CHECK_SUM(__pdesc, __val) \ 217 SET_BITS_OFFSET_LE(__pdesc + 24, 0, 16, __val) 218 #define SET_TX_DESC_TCP_CHECK_SUM(__pdesc, __val) \ 219 SET_BITS_OFFSET_LE(__pdesc + 24, 16, 16, __val) 222 #define SET_TX_DESC_TX_BUFFER_SIZE(__pdesc, __val) \ 223 SET_BITS_OFFSET_LE(__pdesc + 28, 0, 16, __val) 224 #define SET_TX_DESC_IP_HEADER_OFFSET(__pdesc, __val) \ 225 SET_BITS_OFFSET_LE(__pdesc + 28, 16, 8, __val) 226 #define SET_TX_DESC_TCP_ENABLE(__pdesc, __val) \ 227 SET_BITS_OFFSET_LE(__pdesc + 28, 31, 1, __val) 230 #define SET_TX_DESC_TX_BUFFER_ADDRESS(__pdesc, __val) \ 231 SET_BITS_OFFSET_LE(__pdesc + 32, 0, 32, __val) 236 #define SET_TX_DESC_NEXT_DESC_ADDRESS(__pdesc, __val) \ 237 SET_BITS_OFFSET_LE(__pdesc + 36, 0, 32, __val) 254 #define SET_RX_STATUS_DESC_PKT_LEN(__pdesc, __val) \ 255 SET_BITS_OFFSET_LE(__pdesc, 0, 14, __val) 256 #define SET_RX_STATUS_DESC_CRC32(__pdesc, __val) \ 257 SET_BITS_OFFSET_LE(__pdesc, 14, 1, __val) 258 #define SET_RX_STATUS_DESC_ICV(__pdesc, __val) \ 259 SET_BITS_OFFSET_LE(__pdesc, 15, 1, __val) 260 #define SET_RX_STATUS_DESC_DRVINFO_SIZE(__pdesc, __val) \ 261 SET_BITS_OFFSET_LE(__pdesc, 16, 4, __val) 262 #define SET_RX_STATUS_DESC_SECURITY(__pdesc, __val) \ 263 SET_BITS_OFFSET_LE(__pdesc, 20, 3, __val) 264 #define SET_RX_STATUS_DESC_QOS(__pdesc, __val) \ 265 SET_BITS_OFFSET_LE(__pdesc, 23, 1, __val) 266 #define SET_RX_STATUS_DESC_SHIFT(__pdesc, __val) \ 267 SET_BITS_OFFSET_LE(__pdesc, 24, 2, __val) 268 #define SET_RX_STATUS_DESC_PHY_STATUS(__pdesc, __val) \ 269 SET_BITS_OFFSET_LE(__pdesc, 26, 1, __val) 270 #define SET_RX_STATUS_DESC_SWDEC(__pdesc, __val) \ 271 SET_BITS_OFFSET_LE(__pdesc, 27, 1, __val) 272 #define SET_RX_STATUS_DESC_LAST_SEG(__pdesc, __val) \ 273 SET_BITS_OFFSET_LE(__pdesc, 28, 1, __val) 274 #define SET_RX_STATUS_DESC_FIRST_SEG(__pdesc, __val) \ 275 SET_BITS_OFFSET_LE(__pdesc, 29, 1, __val) 276 #define SET_RX_STATUS_DESC_EOR(__pdesc, __val) \ 277 SET_BITS_OFFSET_LE(__pdesc, 30, 1, __val) 278 #define SET_RX_STATUS_DESC_OWN(__pdesc, __val) \ 279 SET_BITS_OFFSET_LE(__pdesc, 31, 1, __val) 309 #define SET_RX_STATUS_DESC_MACID(__pdesc, __val) \ 310 SET_BITS_OFFSET_LE(__pdesc + 4, 0, 5, __val) 311 #define SET_RX_STATUS_DESC_TID(__pdesc, __val) \ 312 SET_BITS_OFFSET_LE(__pdesc + 4, 5, 4, __val) 313 #define SET_RX_STATUS_DESC_PAGGR(__pdesc, __val) \ 314 SET_BITS_OFFSET_LE(__pdesc + 4, 14, 1, __val) 315 #define SET_RX_STATUS_DESC_FAGGR(__pdesc, __val) \ 316 SET_BITS_OFFSET_LE(__pdesc + 4, 15, 1, __val) 317 #define SET_RX_STATUS_DESC_A1_FIT(__pdesc, __val) \ 318 SET_BITS_OFFSET_LE(__pdesc + 4, 16, 4, __val) 319 #define SET_RX_STATUS_DESC_A2_FIT(__pdesc, __val) \ 320 SET_BITS_OFFSET_LE(__pdesc + 4, 20, 4, __val) 321 #define SET_RX_STATUS_DESC_PAM(__pdesc, __val) \ 322 SET_BITS_OFFSET_LE(__pdesc + 4, 24, 1, __val) 323 #define SET_RX_STATUS_DESC_PWR(__pdesc, __val) \ 324 SET_BITS_OFFSET_LE(__pdesc + 4, 25, 1, __val) 325 #define SET_RX_STATUS_DESC_MOREDATA(__pdesc, __val) \ 326 SET_BITS_OFFSET_LE(__pdesc + 4, 26, 1, __val) 327 #define SET_RX_STATUS_DESC_MOREFRAG(__pdesc, __val) \ 328 SET_BITS_OFFSET_LE(__pdesc + 4, 27, 1, __val) 329 #define SET_RX_STATUS_DESC_TYPE(__pdesc, __val) \ 330 SET_BITS_OFFSET_LE(__pdesc + 4, 28, 2, __val) 331 #define SET_RX_STATUS_DESC_MC(__pdesc, __val) \ 332 SET_BITS_OFFSET_LE(__pdesc + 4, 30, 1, __val) 333 #define SET_RX_STATUS_DESC_BC(__pdesc, __val) \ 334 SET_BITS_OFFSET_LE(__pdesc + 4, 31, 1, __val) 364 #define SET_RX_STATUS_DESC_SEQ(__pdesc, __val) \ 365 SET_BITS_OFFSET_LE(__pdesc + 8, 0, 12, __val) 366 #define SET_RX_STATUS_DESC_FRAG(__pdesc, __val) \ 367 SET_BITS_OFFSET_LE(__pdesc + 8, 12, 4, __val) 368 #define SET_RX_STATUS_DESC_NEXT_PKTLEN(__pdesc, __val) \ 369 SET_BITS_OFFSET_LE(__pdesc + 8, 16, 8, __val) 370 #define SET_RX_STATUS_DESC_NEXT_IND(__pdesc, __val) \ 371 SET_BITS_OFFSET_LE(__pdesc + 8, 30, 1, __val) 383 #define SET_RX_STATUS_DESC_RX_MCS(__pdesc, __val) \ 384 SET_BITS_OFFSET_LE(__pdesc + 12, 0, 6, __val) 385 #define SET_RX_STATUS_DESC_RX_HT(__pdesc, __val) \ 386 SET_BITS_OFFSET_LE(__pdesc + 12, 6, 1, __val) 387 #define SET_RX_STATUS_DESC_AMSDU(__pdesc, __val) \ 388 SET_BITS_OFFSET_LE(__pdesc + 12, 7, 1, __val) 389 #define SET_RX_STATUS_DESC_SPLCP(__pdesc, __val) \ 390 SET_BITS_OFFSET_LE(__pdesc + 12, 8, 1, __val) 391 #define SET_RX_STATUS_DESC_BW(__pdesc, __val) \ 392 SET_BITS_OFFSET_LE(__pdesc + 12, 9, 1, __val) 393 #define SET_RX_STATUS_DESC_HTC(__pdesc, __val) \ 394 SET_BITS_OFFSET_LE(__pdesc + 12, 10, 1, __val) 395 #define SET_RX_STATUS_DESC_TCP_CHK_RPT(__pdesc, __val) \ 396 SET_BITS_OFFSET_LE(__pdesc + 12, 11, 1, __val) 397 #define SET_RX_STATUS_DESC_IP_CHK_RPT(__pdesc, __val) \ 398 SET_BITS_OFFSET_LE(__pdesc + 12, 12, 1, __val) 399 #define SET_RX_STATUS_DESC_TCP_CHK_VALID(__pdesc, __val) \ 400 SET_BITS_OFFSET_LE(__pdesc + 12, 13, 1, __val) 401 #define SET_RX_STATUS_DESC_HWPC_ERR(__pdesc, __val) \ 402 SET_BITS_OFFSET_LE(__pdesc + 12, 14, 1, __val) 403 #define SET_RX_STATUS_DESC_HWPC_IND(__pdesc, __val) \ 404 SET_BITS_OFFSET_LE(__pdesc + 12, 15, 1, __val) 405 #define SET_RX_STATUS_DESC_IV0(__pdesc, __val) \ 406 SET_BITS_OFFSET_LE(__pdesc + 12, 16, 16, __val) 434 #define SET_RX_STATUS_DESC_IV1(__pdesc, __val) \ 435 SET_BITS_OFFSET_LE(__pdesc + 16, 0, 32, __val) 440 #define SET_RX_STATUS_DESC_TSFL(__pdesc, __val) \ 441 SET_BITS_OFFSET_LE(__pdesc + 20, 0, 32, __val) 446 #define SET_RX_STATUS__DESC_BUFF_ADDR(__pdesc, __val) \ 447 SET_BITS_OFFSET_LE(__pdesc + 24, 0, 32, __val)
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192ee/ |
H A D | trx.h | 57 #define SET_TX_DESC_PKT_SIZE(__pdesc, __val) \ 58 SET_BITS_TO_LE_4BYTE(__pdesc, 0, 16, __val) 59 #define SET_TX_DESC_OFFSET(__pdesc, __val) \ 60 SET_BITS_TO_LE_4BYTE(__pdesc, 16, 8, __val) 61 #define SET_TX_DESC_BMC(__pdesc, __val) \ 62 SET_BITS_TO_LE_4BYTE(__pdesc, 24, 1, __val) 63 #define SET_TX_DESC_HTC(__pdesc, __val) \ 64 SET_BITS_TO_LE_4BYTE(__pdesc, 25, 1, __val) 65 #define SET_TX_DESC_LAST_SEG(__pdesc, __val) \ 66 SET_BITS_TO_LE_4BYTE(__pdesc, 26, 1, __val) 67 #define SET_TX_DESC_FIRST_SEG(__pdesc, __val) \ 68 SET_BITS_TO_LE_4BYTE(__pdesc, 27, 1, __val) 69 #define SET_TX_DESC_LINIP(__pdesc, __val) \ 70 SET_BITS_TO_LE_4BYTE(__pdesc, 28, 1, __val) 71 #define SET_TX_DESC_NO_ACM(__pdesc, __val) \ 72 SET_BITS_TO_LE_4BYTE(__pdesc, 29, 1, __val) 73 #define SET_TX_DESC_GF(__pdesc, __val) \ 74 SET_BITS_TO_LE_4BYTE(__pdesc, 30, 1, __val) 75 #define SET_TX_DESC_OWN(__pdesc, __val) \ 76 SET_BITS_TO_LE_4BYTE(__pdesc, 31, 1, __val) 99 #define SET_TX_DESC_MACID(__pdesc, __val) \ 100 SET_BITS_TO_LE_4BYTE(__pdesc+4, 0, 7, __val) 101 #define SET_TX_DESC_QUEUE_SEL(__pdesc, __val) \ 102 SET_BITS_TO_LE_4BYTE(__pdesc+4, 8, 5, __val) 103 #define SET_TX_DESC_RDG_NAV_EXT(__pdesc, __val) \ 104 SET_BITS_TO_LE_4BYTE(__pdesc+4, 13, 1, __val) 105 #define SET_TX_DESC_LSIG_TXOP_EN(__pdesc, __val) \ 106 SET_BITS_TO_LE_4BYTE(__pdesc+4, 14, 1, __val) 107 #define SET_TX_DESC_PIFS(__pdesc, __val) \ 108 SET_BITS_TO_LE_4BYTE(__pdesc+4, 15, 1, __val) 109 #define SET_TX_DESC_RATE_ID(__pdesc, __val) \ 110 SET_BITS_TO_LE_4BYTE(__pdesc+4, 16, 5, __val) 111 #define SET_TX_DESC_EN_DESC_ID(__pdesc, __val) \ 112 SET_BITS_TO_LE_4BYTE(__pdesc+4, 21, 1, __val) 113 #define SET_TX_DESC_SEC_TYPE(__pdesc, __val) \ 114 SET_BITS_TO_LE_4BYTE(__pdesc+4, 22, 2, __val) 115 #define SET_TX_DESC_PKT_OFFSET(__pdesc, __val) \ 116 SET_BITS_TO_LE_4BYTE(__pdesc+4, 24, 5, __val) 117 #define SET_TX_DESC_MORE_DATA(__pdesc, __val) \ 118 SET_BITS_TO_LE_4BYTE(__pdesc+4, 29, 1, __val) 119 #define SET_TX_DESC_TXOP_PS_CAP(__pdesc, __val) \ 120 SET_BITS_TO_LE_4BYTE(__pdesc+4, 30, 1, __val) 121 #define SET_TX_DESC_TXOP_PS_MODE(__pdesc, __val) \ 122 SET_BITS_TO_LE_4BYTE(__pdesc+4, 31, 1, __val) 151 #define SET_TX_DESC_PAID(__pdesc, __val) \ 152 SET_BITS_TO_LE_4BYTE(__pdesc+8, 0, 9, __val) 153 #define SET_TX_DESC_CCA_RTS(__pdesc, __val) \ 154 SET_BITS_TO_LE_4BYTE(__pdesc+8, 10, 2, __val) 155 #define SET_TX_DESC_AGG_ENABLE(__pdesc, __val) \ 156 SET_BITS_TO_LE_4BYTE(__pdesc+8, 12, 1, __val) 157 #define SET_TX_DESC_RDG_ENABLE(__pdesc, __val) \ 158 SET_BITS_TO_LE_4BYTE(__pdesc+8, 13, 1, __val) 159 #define SET_TX_DESC_NULL_0(__pdesc, __val) \ 160 SET_BITS_TO_LE_4BYTE(__pdesc+8, 14, 1, __val) 161 #define SET_TX_DESC_NULL_1(__pdesc, __val) \ 162 SET_BITS_TO_LE_4BYTE(__pdesc+8, 15, 1, __val) 163 #define SET_TX_DESC_BK(__pdesc, __val) \ 164 SET_BITS_TO_LE_4BYTE(__pdesc+8, 16, 1, __val) 165 #define SET_TX_DESC_MORE_FRAG(__pdesc, __val) \ 166 SET_BITS_TO_LE_4BYTE(__pdesc+8, 17, 1, __val) 167 #define SET_TX_DESC_RAW(__pdesc, __val) \ 168 SET_BITS_TO_LE_4BYTE(__pdesc+8, 18, 1, __val) 169 #define SET_TX_DESC_SPE_RPT(__pdesc, __val) \ 170 SET_BITS_TO_LE_4BYTE(__pdesc+8, 19, 1, __val) 171 #define SET_TX_DESC_AMPDU_DENSITY(__pdesc, __val) \ 172 SET_BITS_TO_LE_4BYTE(__pdesc+8, 20, 3, __val) 173 #define SET_TX_DESC_BT_NULL(__pdesc, __val) \ 174 SET_BITS_TO_LE_4BYTE(__pdesc+8, 23, 1, __val) 175 #define SET_TX_DESC_GID(__pdesc, __val) \ 176 SET_BITS_TO_LE_4BYTE(__pdesc+8, 24, 6, __val) 178 #define SET_TX_DESC_WHEADER_LEN(__pdesc, __val) \ 179 SET_BITS_TO_LE_4BYTE(__pdesc+12, 0, 4, __val) 180 #define SET_TX_DESC_CHK_EN(__pdesc, __val) \ 181 SET_BITS_TO_LE_4BYTE(__pdesc+12, 4, 1, __val) 182 #define SET_TX_DESC_EARLY_RATE(__pdesc, __val) \ 183 SET_BITS_TO_LE_4BYTE(__pdesc+12, 5, 1, __val) 184 #define SET_TX_DESC_HWSEQ_SEL(__pdesc, __val) \ 185 SET_BITS_TO_LE_4BYTE(__pdesc+12, 6, 2, __val) 186 #define SET_TX_DESC_USE_RATE(__pdesc, __val) \ 187 SET_BITS_TO_LE_4BYTE(__pdesc+12, 8, 1, __val) 188 #define SET_TX_DESC_DISABLE_RTS_FB(__pdesc, __val) \ 189 SET_BITS_TO_LE_4BYTE(__pdesc+12, 9, 1, __val) 190 #define SET_TX_DESC_DISABLE_FB(__pdesc, __val) \ 191 SET_BITS_TO_LE_4BYTE(__pdesc+12, 10, 1, __val) 192 #define SET_TX_DESC_CTS2SELF(__pdesc, __val) \ 193 SET_BITS_TO_LE_4BYTE(__pdesc+12, 11, 1, __val) 194 #define SET_TX_DESC_RTS_ENABLE(__pdesc, __val) \ 195 SET_BITS_TO_LE_4BYTE(__pdesc+12, 12, 1, __val) 196 #define SET_TX_DESC_HW_RTS_ENABLE(__pdesc, __val) \ 197 SET_BITS_TO_LE_4BYTE(__pdesc+12, 13, 1, __val) 198 #define SET_TX_DESC_HW_PORT_ID(__pdesc, __val) \ 199 SET_BITS_TO_LE_4BYTE(__pdesc+12, 14, 1, __val) 200 #define SET_TX_DESC_NAV_USE_HDR(__pdesc, __val) \ 201 SET_BITS_TO_LE_4BYTE(__pdesc+12, 15, 1, __val) 202 #define SET_TX_DESC_USE_MAX_LEN(__pdesc, __val) \ 203 SET_BITS_TO_LE_4BYTE(__pdesc+12, 16, 1, __val) 204 #define SET_TX_DESC_MAX_AGG_NUM(__pdesc, __val) \ 205 SET_BITS_TO_LE_4BYTE(__pdesc+12, 17, 5, __val) 206 #define SET_TX_DESC_NDPA(__pdesc, __val) \ 207 SET_BITS_TO_LE_4BYTE(__pdesc+12, 22, 2, __val) 208 #define SET_TX_DESC_AMPDU_MAX_TIME(__pdesc, __val) \ 209 SET_BITS_TO_LE_4BYTE(__pdesc+12, 24, 8, __val) 212 #define SET_TX_DESC_TX_RATE(__pdesc, __val) \ 213 SET_BITS_TO_LE_4BYTE(__pdesc+16, 0, 7, __val) 214 #define SET_TX_DESC_TRY_RATE(__pdesc, __val) \ 215 SET_BITS_TO_LE_4BYTE(__pdesc+16, 7, 1, __val) 216 #define SET_TX_DESC_DATA_RATE_FB_LIMIT(__pdesc, __val) \ 217 SET_BITS_TO_LE_4BYTE(__pdesc+16, 8, 5, __val) 218 #define SET_TX_DESC_RTS_RATE_FB_LIMIT(__pdesc, __val) \ 219 SET_BITS_TO_LE_4BYTE(__pdesc+16, 13, 4, __val) 220 #define SET_TX_DESC_RETRY_LIMIT_ENABLE(__pdesc, __val) \ 221 SET_BITS_TO_LE_4BYTE(__pdesc+16, 17, 1, __val) 222 #define SET_TX_DESC_DATA_RETRY_LIMIT(__pdesc, __val) \ 223 SET_BITS_TO_LE_4BYTE(__pdesc+16, 18, 6, __val) 224 #define SET_TX_DESC_RTS_RATE(__pdesc, __val) \ 225 SET_BITS_TO_LE_4BYTE(__pdesc+16, 24, 5, __val) 226 #define SET_TX_DESC_PCTS_ENABLE(__pdesc, __val) \ 227 SET_BITS_TO_LE_4BYTE(__pdesc+16, 29, 1, __val) 228 #define SET_TX_DESC_PCTS_MASK_IDX(__pdesc, __val) \ 229 SET_BITS_TO_LE_4BYTE(__pdesc+16, 30, 2, __val) 232 #define SET_TX_DESC_TX_SUB_CARRIER(__pdesc, __val) \ 233 SET_BITS_TO_LE_4BYTE(__pdesc+20, 0, 4, __val) 234 #define SET_TX_DESC_DATA_SHORT(__pdesc, __val) \ 235 SET_BITS_TO_LE_4BYTE(__pdesc+20, 4, 1, __val) 236 #define SET_TX_DESC_DATA_BW(__pdesc, __val) \ 237 SET_BITS_TO_LE_4BYTE(__pdesc+20, 5, 2, __val) 238 #define SET_TX_DESC_DATA_LDPC(__pdesc, __val) \ 239 SET_BITS_TO_LE_4BYTE(__pdesc+20, 7, 1, __val) 240 #define SET_TX_DESC_DATA_STBC(__pdesc, __val) \ 241 SET_BITS_TO_LE_4BYTE(__pdesc+20, 8, 2, __val) 242 #define SET_TX_DESC_VCS_STBC(__pdesc, __val) \ 243 SET_BITS_TO_LE_4BYTE(__pdesc+20, 10, 2, __val) 244 #define SET_TX_DESC_RTS_SHORT(__pdesc, __val) \ 245 SET_BITS_TO_LE_4BYTE(__pdesc+20, 12, 1, __val) 246 #define SET_TX_DESC_RTS_SC(__pdesc, __val) \ 247 SET_BITS_TO_LE_4BYTE(__pdesc+20, 13, 4, __val) 248 #define SET_TX_DESC_TX_ANT(__pdesc, __val) \ 249 SET_BITS_TO_LE_4BYTE(__pdesc+20, 24, 4, __val) 250 #define SET_TX_DESC_TX_POWER_0_PSET(__pdesc, __val) \ 251 SET_BITS_TO_LE_4BYTE(__pdesc+20, 28, 3, __val) 254 #define SET_TX_DESC_SW_DEFINE(__pdesc, __val) \ 255 SET_BITS_TO_LE_4BYTE(__pdesc+24, 0, 12, __val) 256 #define SET_TX_DESC_ANTSEL_A(__pdesc, __val) \ 257 SET_BITS_TO_LE_4BYTE(__pdesc+24, 16, 3, __val) 258 #define SET_TX_DESC_ANTSEL_B(__pdesc, __val) \ 259 SET_BITS_TO_LE_4BYTE(__pdesc+24, 19, 3, __val) 260 #define SET_TX_DESC_ANTSEL_C(__pdesc, __val) \ 261 SET_BITS_TO_LE_4BYTE(__pdesc+24, 22, 3, __val) 262 #define SET_TX_DESC_ANTSEL_D(__pdesc, __val) \ 263 SET_BITS_TO_LE_4BYTE(__pdesc+24, 25, 3, __val) 266 #define SET_TX_DESC_TX_BUFFER_SIZE(__pdesc, __val) \ 267 SET_BITS_TO_LE_4BYTE(__pdesc+28, 0, 16, __val) 268 #define SET_TX_DESC_USB_TXAGG_NUM(__pdesc, __val) \ 269 SET_BITS_TO_LE_4BYTE(__pdesc+28, 24, 8, __val) 272 #define SET_TX_DESC_RTS_RC(__pdesc, __val) \ 273 SET_BITS_TO_LE_4BYTE(__pdesc+32, 0, 6, __val) 274 #define SET_TX_DESC_BAR_RTY_TH(__pdesc, __val) \ 275 SET_BITS_TO_LE_4BYTE(__pdesc+32, 6, 2, __val) 276 #define SET_TX_DESC_DATA_RC(__pdesc, __val) \ 277 SET_BITS_TO_LE_4BYTE(__pdesc+32, 8, 6, __val) 278 #define SET_TX_DESC_ENABLE_HW_SELECT(__pdesc, __val) \ 279 SET_BITS_TO_LE_4BYTE(__pdesc+32, 15, 1, __val) 280 #define SET_TX_DESC_NEXT_HEAD_PAGE(__pdesc, __val) \ 281 SET_BITS_TO_LE_4BYTE(__pdesc+32, 16, 8, __val) 282 #define SET_TX_DESC_TAIL_PAGE(__pdesc, __val) \ 283 SET_BITS_TO_LE_4BYTE(__pdesc+32, 24, 8, __val) 286 #define SET_TX_DESC_PADDING_LENGTH(__pdesc, __val) \ 287 SET_BITS_TO_LE_4BYTE(__pdesc+36, 0, 11, __val) 288 #define SET_TX_DESC_TXBF_PATH(__pdesc, __val) \ 289 SET_BITS_TO_LE_4BYTE(__pdesc+36, 11, 1, __val) 290 #define SET_TX_DESC_SEQ(__pdesc, __val) \ 291 SET_BITS_TO_LE_4BYTE(__pdesc+36, 12, 12, __val) 292 #define SET_TX_DESC_FINAL_DATA_RATE(__pdesc, __val) \ 293 SET_BITS_TO_LE_4BYTE(__pdesc+36, 24, 8, __val) 296 #define SET_TX_DESC_TX_BUFFER_ADDRESS(__pdesc, __val) \ 297 SET_BITS_TO_LE_4BYTE(__pdesc+40, 0, 32, __val) 300 #define SET_TX_DESC_NEXT_DESC_ADDRESS(__pdesc, __val) \ 301 SET_BITS_TO_LE_4BYTE(__pdesc+48, 0, 32, __val) 303 #define SET_EARLYMODE_PKTNUM(__paddr, __val) \ 304 SET_BITS_TO_LE_4BYTE(__paddr, 0, 4, __val) 305 #define SET_EARLYMODE_LEN0(__paddr, __val) \ 306 SET_BITS_TO_LE_4BYTE(__paddr, 4, 15, __val) 307 #define SET_EARLYMODE_LEN1(__paddr, __val) \ 308 SET_BITS_TO_LE_4BYTE(__paddr, 16, 2, __val) 309 #define SET_EARLYMODE_LEN1_1(__paddr, __val) \ 310 SET_BITS_TO_LE_4BYTE(__paddr, 19, 13, __val) 311 #define SET_EARLYMODE_LEN1_2(__paddr, __val) \ 312 SET_BITS_TO_LE_4BYTE(__paddr+4, 0, 2, __val) 313 #define SET_EARLYMODE_LEN2(__paddr, __val) \ 314 SET_BITS_TO_LE_4BYTE(__paddr+4, 2, 15, __val) 315 #define SET_EARLYMODE_LEN2_1(__paddr, __val) \ 316 SET_BITS_TO_LE_4BYTE(__paddr, 2, 4, __val) 317 #define SET_EARLYMODE_LEN2_2(__paddr, __val) \ 318 SET_BITS_TO_LE_4BYTE(__paddr+4, 0, 8, __val) 319 #define SET_EARLYMODE_LEN3(__paddr, __val) \ 320 SET_BITS_TO_LE_4BYTE(__paddr+4, 17, 15, __val) 321 #define SET_EARLYMODE_LEN4(__paddr, __val) \ 322 SET_BITS_TO_LE_4BYTE(__paddr+4, 20, 12, __val) 326 #define SET_TX_EXTBUFF_DESC_LEN(__pdesc, __val, __set) \ 327 SET_BITS_TO_LE_4BYTE(__pdesc+(__set*16), 0, 16, __val) 328 #define SET_TX_EXTBUFF_DESC_ADDR_LOW(__pdesc, __val, __set)\ 329 SET_BITS_TO_LE_4BYTE(__pdesc+(__set*16)+4, 0, 32, __val) 330 #define SET_TX_EXTBUFF_DESC_ADDR_HIGH(__pdesc, __val, __set)\ 331 SET_BITS_TO_LE_4BYTE(__pdesc+(__set*16)+8, 0, 32, __val) 335 #define SET_TXBUFFER_DESC_LEN_WITH_OFFSET(__pdesc, __offset, __val) \ 336 SET_BITS_TO_LE_4BYTE(__pdesc+(__offset*16), 0, 16, __val) 337 #define SET_TXBUFFER_DESC_AMSDU_WITH_OFFSET(__pdesc, __offset, __val) \ 338 SET_BITS_TO_LE_4BYTE(__pdesc+(__offset*16), 31, 1, __val) 339 #define SET_TXBUFFER_DESC_ADD_LOW_WITH_OFFSET(__pdesc, __offset, __val) \ 340 SET_BITS_TO_LE_4BYTE(__pdesc+(__offset*16)+4, 0, 32, __val) 341 #define SET_TXBUFFER_DESC_ADD_HIGT_WITH_OFFSET(__pdesc, __offset, __val)\ 342 SET_BITS_TO_LE_4BYTE(__pdesc+(__offset*16)+8, 0, 32, __val) 346 #define SET_TXBUFFER_DESC_LEN_WITH_OFFSET(__pdesc, __offset, __val) \ 347 SET_BITS_TO_LE_4BYTE(__pdesc+(__offset*8), 0, 16, __val) 348 #define SET_TXBUFFER_DESC_AMSDU_WITH_OFFSET(__pdesc, __offset, __val) \ 349 SET_BITS_TO_LE_4BYTE(__pdesc+(__offset*8), 31, 1, __val) 350 #define SET_TXBUFFER_DESC_ADD_LOW_WITH_OFFSET(__pdesc, __offset, __val) \ 351 SET_BITS_TO_LE_4BYTE(__pdesc+(__offset*8)+4, 0, 32, __val) 352 #define SET_TXBUFFER_DESC_ADD_HIGT_WITH_OFFSET(__pdesc, __offset, __val) 358 #define SET_TX_BUFF_DESC_LEN_0(__pdesc, __val) \ 359 SET_BITS_TO_LE_4BYTE(__pdesc, 0, 14, __val) 360 #define SET_TX_BUFF_DESC_PSB(__pdesc, __val) \ 361 SET_BITS_TO_LE_4BYTE(__pdesc, 16, 15, __val) 362 #define SET_TX_BUFF_DESC_OWN(__pdesc, __val) \ 363 SET_BITS_TO_LE_4BYTE(__pdesc, 31, 1, __val) 366 #define SET_TX_BUFF_DESC_ADDR_LOW_0(__pdesc, __val) \ 367 SET_BITS_TO_LE_4BYTE(__pdesc+4, 0, 32, __val) 370 #define SET_TX_BUFF_DESC_ADDR_HIGH_0(__pdesc, __val) \ 371 SET_BITS_TO_LE_4BYTE(__pdesc+8, 0, 32, __val) 374 #define SET_TX_BUFF_DESC_LEN_1(__pdesc, __val) \ 375 SET_BITS_TO_LE_4BYTE(__pdesc+16, 0, 16, __val) 376 #define SET_TX_BUFF_DESC_AMSDU_1(__pdesc, __val) \ 377 SET_BITS_TO_LE_4BYTE(__pdesc+16, 31, 1, __val) 379 #define SET_TX_BUFF_DESC_ADDR_LOW_1(__pdesc, __val) \ 380 SET_BITS_TO_LE_4BYTE(__pdesc+20, 0, 32, __val) 382 #define SET_TX_BUFF_DESC_ADDR_HIGH_1(__pdesc, __val) \ 383 SET_BITS_TO_LE_4BYTE(__pdesc+24, 0, 32, __val) 386 #define SET_TX_BUFF_DESC_LEN_2(__pdesc, __val) \ 387 SET_BITS_TO_LE_4BYTE(__pdesc+32, 0, 16, __val) 388 #define SET_TX_BUFF_DESC_AMSDU_2(__pdesc, __val) \ 389 SET_BITS_TO_LE_4BYTE(__pdesc+32, 31, 1, __val) 391 #define SET_TX_BUFF_DESC_ADDR_LOW_2(__pdesc, __val) \ 392 SET_BITS_TO_LE_4BYTE(__pdesc+36, 0, 32, __val) 394 #define SET_TX_BUFF_DESC_ADDR_HIGH_2(__pdesc, __val) \ 395 SET_BITS_TO_LE_4BYTE(__pdesc+40, 0, 32, __val) 398 #define SET_TX_BUFF_DESC_LEN_3(__pdesc, __val) \ 399 SET_BITS_TO_LE_4BYTE(__pdesc+48, 0, 16, __val) 400 #define SET_TX_BUFF_DESC_AMSDU_3(__pdesc, __val) \ 401 SET_BITS_TO_LE_4BYTE(__pdesc+48, 31, 1, __val) 403 #define SET_TX_BUFF_DESC_ADDR_LOW_3(__pdesc, __val) \ 404 SET_BITS_TO_LE_4BYTE(__pdesc+52, 0, 32, __val) 406 #define SET_TX_BUFF_DESC_ADDR_HIGH_3(__pdesc, __val) \ 407 SET_BITS_TO_LE_4BYTE(__pdesc+56, 0, 32, __val) 410 #define SET_TX_BUFF_DESC_ADDR_HIGH_0(__pdesc, __val) 412 #define SET_TX_BUFF_DESC_LEN_1(__pdesc, __val) \ 413 SET_BITS_TO_LE_4BYTE(__pdesc+8, 0, 16, __val) 414 #define SET_TX_BUFF_DESC_AMSDU_1(__pdesc, __val) \ 415 SET_BITS_TO_LE_4BYTE(__pdesc+8, 31, 1, __val) 417 #define SET_TX_BUFF_DESC_ADDR_LOW_1(__pdesc, __val) \ 418 SET_BITS_TO_LE_4BYTE(__pdesc+12, 0, 32, __val) 419 #define SET_TX_BUFF_DESC_ADDR_HIGH_1(__pdesc, __val) 421 #define SET_TX_BUFF_DESC_LEN_2(__pdesc, __val) \ 422 SET_BITS_TO_LE_4BYTE(__pdesc+16, 0, 16, __val) 423 #define SET_TX_BUFF_DESC_AMSDU_2(__pdesc, __val) \ 424 SET_BITS_TO_LE_4BYTE(__pdesc+16, 31, 1, __val) 426 #define SET_TX_BUFF_DESC_ADDR_LOW_2(__pdesc, __val) \ 427 SET_BITS_TO_LE_4BYTE(__pdesc+20, 0, 32, __val) 428 #define SET_TX_BUFF_DESC_ADDR_HIGH_2(__pdesc, __val) 430 #define SET_TX_BUFF_DESC_LEN_3(__pdesc, __val) \ 431 SET_BITS_TO_LE_4BYTE(__pdesc+24, 0, 16, __val) 432 #define SET_TX_BUFF_DESC_AMSDU_3(__pdesc, __val) \ 433 SET_BITS_TO_LE_4BYTE(__pdesc+24, 31, 1, __val) 435 #define SET_TX_BUFF_DESC_ADDR_LOW_3(__pdesc, __val) \ 436 SET_BITS_TO_LE_4BYTE(__pdesc+28, 0, 32, __val) 437 #define SET_TX_BUFF_DESC_ADDR_HIGH_3(__pdesc, __val) 443 #define SET_RX_BUFFER_DESC_DATA_LENGTH(__status, __val) \ 444 SET_BITS_TO_LE_4BYTE(__status, 0, 14, __val) 445 #define SET_RX_BUFFER_DESC_LS(__status, __val) \ 446 SET_BITS_TO_LE_4BYTE(__status, 15, 1, __val) 447 #define SET_RX_BUFFER_DESC_FS(__status, __val) \ 448 SET_BITS_TO_LE_4BYTE(__status, 16, 1, __val) 449 #define SET_RX_BUFFER_DESC_TOTAL_LENGTH(__status, __val) \ 450 SET_BITS_TO_LE_4BYTE(__status, 16, 15, __val) 462 #define SET_RX_BUFFER_PHYSICAL_LOW(__status, __val) \ 463 SET_BITS_TO_LE_4BYTE(__status+4, 0, 32, __val) 466 #define SET_RX_BUFFER_PHYSICAL_HIGH(__status, __val) \ 467 SET_BITS_TO_LE_4BYTE(__status+8, 0, 32, __val) 496 #define SET_RX_DESC_PKT_LEN(__pdesc, __val) \ 497 SET_BITS_TO_LE_4BYTE(__pdesc, 0, 14, __val) 498 #define SET_RX_DESC_EOR(__pdesc, __val) \ 499 SET_BITS_TO_LE_4BYTE(__pdesc, 30, 1, __val) 500 #define SET_RX_DESC_OWN(__pdesc, __val) \ 501 SET_BITS_TO_LE_4BYTE(__pdesc, 31, 1, __val) 573 #define SET_RX_DESC_BUFF_ADDR(__pdesc, __val) \ 574 SET_BITS_TO_LE_4BYTE(__pdesc+24, 0, 32, __val) 575 #define SET_RX_DESC_BUFF_ADDR64(__pdesc, __val) \ 576 SET_BITS_TO_LE_4BYTE(__pdesc+28, 0, 32, __val)
|
H A D | fw.h | 164 #define SET_H2CCMD_PWRMODE_PARM_MODE(__ph2ccmd, __val) \ 165 SET_BITS_TO_LE_1BYTE(__ph2ccmd, 0, 8, __val) 166 #define SET_H2CCMD_PWRMODE_PARM_RLBM(__cmd, __val) \ 167 SET_BITS_TO_LE_1BYTE((__cmd)+1, 0, 4, __val) 168 #define SET_H2CCMD_PWRMODE_PARM_SMART_PS(__cmd, __val) \ 169 SET_BITS_TO_LE_1BYTE((__cmd)+1, 4, 4, __val) 170 #define SET_H2CCMD_PWRMODE_PARM_AWAKE_INTERVAL(__cmd, __val) \ 171 SET_BITS_TO_LE_1BYTE((__cmd)+2, 0, 8, __val) 172 #define SET_H2CCMD_PWRMODE_PARM_ALL_QUEUE_UAPSD(__cmd, __val) \ 173 SET_BITS_TO_LE_1BYTE((__cmd)+3, 0, 8, __val) 174 #define SET_H2CCMD_PWRMODE_PARM_PWR_STATE(__cmd, __val) \ 175 SET_BITS_TO_LE_1BYTE((__cmd)+4, 0, 8, __val) 179 #define SET_H2CCMD_JOINBSSRPT_PARM_OPMODE(__ph2ccmd, __val) \ 180 SET_BITS_TO_LE_1BYTE(__ph2ccmd, 0, 8, __val) 181 #define SET_H2CCMD_RSVDPAGE_LOC_PROBE_RSP(__ph2ccmd, __val) \ 182 SET_BITS_TO_LE_1BYTE(__ph2ccmd, 0, 8, __val) 183 #define SET_H2CCMD_RSVDPAGE_LOC_PSPOLL(__ph2ccmd, __val) \ 184 SET_BITS_TO_LE_1BYTE((__ph2ccmd)+1, 0, 8, __val) 185 #define SET_H2CCMD_RSVDPAGE_LOC_NULL_DATA(__ph2ccmd, __val) \ 186 SET_BITS_TO_LE_1BYTE((__ph2ccmd)+2, 0, 8, __val) 189 #define SET_H2CCMD_MSRRPT_PARM_OPMODE(__cmd, __val) \ 190 SET_BITS_TO_LE_1BYTE(__cmd, 0, 1, __val) 191 #define SET_H2CCMD_MSRRPT_PARM_MACID_IND(__cmd, __val) \ 192 SET_BITS_TO_LE_1BYTE(__cmd, 1, 1, __val) 193 #define SET_H2CCMD_MSRRPT_PARM_MACID(__cmd, __val) \ 194 SET_BITS_TO_LE_1BYTE(__cmd+1, 0, 8, __val) 195 #define SET_H2CCMD_MSRRPT_PARM_MACID_END(__cmd, __val) \ 196 SET_BITS_TO_LE_1BYTE(__cmd+2, 0, 8, __val)
|
/linux-4.1.27/arch/m32r/boot/compressed/ |
H A D | boot.h | 45 #define __val(x) x macro 47 #define __val(x) (x) macro 50 #define DECOMPRESS_OFFSET_BASE __val(0x00900000) 51 #define BOOT_RELOC_SIZE __val(0x00001000) 53 #define KERNEL_EXEC_ADDR __val(CONFIG_MEMORY_START) 54 #define KERNEL_DECOMPRESS_ADDR __val(CONFIG_MEMORY_START + \ 56 #define KERNEL_ENTRY __val(CONFIG_MEMORY_START + 0x1000) 58 #define BOOT_EXEC_ADDR __val(CONFIG_MEMORY_START) 59 #define BOOT_RELOC_ADDR __val(CONFIG_MEMORY_START + DECOMPRESS_OFFSET_BASE)
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8821ae/ |
H A D | trx.h | 39 #define SET_TX_DESC_PKT_SIZE(__pdesc, __val) \ 40 SET_BITS_TO_LE_4BYTE(__pdesc, 0, 16, __val) 41 #define SET_TX_DESC_OFFSET(__pdesc, __val) \ 42 SET_BITS_TO_LE_4BYTE(__pdesc, 16, 8, __val) 43 #define SET_TX_DESC_BMC(__pdesc, __val) \ 44 SET_BITS_TO_LE_4BYTE(__pdesc, 24, 1, __val) 45 #define SET_TX_DESC_HTC(__pdesc, __val) \ 46 SET_BITS_TO_LE_4BYTE(__pdesc, 25, 1, __val) 47 #define SET_TX_DESC_LAST_SEG(__pdesc, __val) \ 48 SET_BITS_TO_LE_4BYTE(__pdesc, 26, 1, __val) 49 #define SET_TX_DESC_FIRST_SEG(__pdesc, __val) \ 50 SET_BITS_TO_LE_4BYTE(__pdesc, 27, 1, __val) 51 #define SET_TX_DESC_LINIP(__pdesc, __val) \ 52 SET_BITS_TO_LE_4BYTE(__pdesc, 28, 1, __val) 53 #define SET_TX_DESC_NO_ACM(__pdesc, __val) \ 54 SET_BITS_TO_LE_4BYTE(__pdesc, 29, 1, __val) 55 #define SET_TX_DESC_GF(__pdesc, __val) \ 56 SET_BITS_TO_LE_4BYTE(__pdesc, 30, 1, __val) 57 #define SET_TX_DESC_OWN(__pdesc, __val) \ 58 SET_BITS_TO_LE_4BYTE(__pdesc, 31, 1, __val) 81 #define SET_TX_DESC_MACID(__pdesc, __val) \ 82 SET_BITS_TO_LE_4BYTE(__pdesc+4, 0, 7, __val) 83 #define SET_TX_DESC_QUEUE_SEL(__pdesc, __val) \ 84 SET_BITS_TO_LE_4BYTE(__pdesc+4, 8, 5, __val) 85 #define SET_TX_DESC_RDG_NAV_EXT(__pdesc, __val) \ 86 SET_BITS_TO_LE_4BYTE(__pdesc+4, 13, 1, __val) 87 #define SET_TX_DESC_LSIG_TXOP_EN(__pdesc, __val) \ 88 SET_BITS_TO_LE_4BYTE(__pdesc+4, 14, 1, __val) 89 #define SET_TX_DESC_PIFS(__pdesc, __val) \ 90 SET_BITS_TO_LE_4BYTE(__pdesc+4, 15, 1, __val) 91 #define SET_TX_DESC_RATE_ID(__pdesc, __val) \ 92 SET_BITS_TO_LE_4BYTE(__pdesc+4, 16, 5, __val) 93 #define SET_TX_DESC_EN_DESC_ID(__pdesc, __val) \ 94 SET_BITS_TO_LE_4BYTE(__pdesc+4, 21, 1, __val) 95 #define SET_TX_DESC_SEC_TYPE(__pdesc, __val) \ 96 SET_BITS_TO_LE_4BYTE(__pdesc+4, 22, 2, __val) 97 #define SET_TX_DESC_PKT_OFFSET(__pdesc, __val) \ 98 SET_BITS_TO_LE_4BYTE(__pdesc+4, 24, 5, __val) 100 #define SET_TX_DESC_PAID(__pdesc, __val) \ 101 SET_BITS_TO_LE_4BYTE(__pdesc+8, 0, 9, __val) 102 #define SET_TX_DESC_CCA_RTS(__pdesc, __val) \ 103 SET_BITS_TO_LE_4BYTE(__pdesc+8, 10, 2, __val) 104 #define SET_TX_DESC_AGG_ENABLE(__pdesc, __val) \ 105 SET_BITS_TO_LE_4BYTE(__pdesc+8, 12, 1, __val) 106 #define SET_TX_DESC_RDG_ENABLE(__pdesc, __val) \ 107 SET_BITS_TO_LE_4BYTE(__pdesc+8, 13, 1, __val) 108 #define SET_TX_DESC_BAR_RTY_TH(__pdesc, __val) \ 109 SET_BITS_TO_LE_4BYTE(__pdesc+8, 14, 2, __val) 110 #define SET_TX_DESC_AGG_BREAK(__pdesc, __val) \ 111 SET_BITS_TO_LE_4BYTE(__pdesc+8, 16, 1, __val) 112 #define SET_TX_DESC_MORE_FRAG(__pdesc, __val) \ 113 SET_BITS_TO_LE_4BYTE(__pdesc+8, 17, 1, __val) 114 #define SET_TX_DESC_RAW(__pdesc, __val) \ 115 SET_BITS_TO_LE_4BYTE(__pdesc+8, 18, 1, __val) 116 #define SET_TX_DESC_SPE_RPT(__pdesc, __val) \ 117 SET_BITS_TO_LE_4BYTE(__pdesc+8, 19, 1, __val) 118 #define SET_TX_DESC_AMPDU_DENSITY(__pdesc, __val) \ 119 SET_BITS_TO_LE_4BYTE(__pdesc+8, 20, 3, __val) 120 #define SET_TX_DESC_BT_INT(__pdesc, __val) \ 121 SET_BITS_TO_LE_4BYTE(__pdesc+8, 23, 1, __val) 122 #define SET_TX_DESC_GID(__pdesc, __val) \ 123 SET_BITS_TO_LE_4BYTE(__pdesc+8, 24, 6, __val) 125 #define SET_TX_DESC_WHEADER_LEN(__pdesc, __val) \ 126 SET_BITS_TO_LE_4BYTE(__pdesc+12, 0, 4, __val) 127 #define SET_TX_DESC_CHK_EN(__pdesc, __val) \ 128 SET_BITS_TO_LE_4BYTE(__pdesc+12, 4, 1, __val) 129 #define SET_TX_DESC_EARLY_MODE(__pdesc, __val) \ 130 SET_BITS_TO_LE_4BYTE(__pdesc+12, 5, 1, __val) 131 #define SET_TX_DESC_HWSEQ_SEL(__pdesc, __val) \ 132 SET_BITS_TO_LE_4BYTE(__pdesc+12, 6, 2, __val) 133 #define SET_TX_DESC_USE_RATE(__pdesc, __val) \ 134 SET_BITS_TO_LE_4BYTE(__pdesc+12, 8, 1, __val) 135 #define SET_TX_DESC_DISABLE_RTS_FB(__pdesc, __val) \ 136 SET_BITS_TO_LE_4BYTE(__pdesc+12, 9, 1, __val) 137 #define SET_TX_DESC_DISABLE_FB(__pdesc, __val) \ 138 SET_BITS_TO_LE_4BYTE(__pdesc+12, 10, 1, __val) 139 #define SET_TX_DESC_CTS2SELF(__pdesc, __val) \ 140 SET_BITS_TO_LE_4BYTE(__pdesc+12, 11, 1, __val) 141 #define SET_TX_DESC_RTS_ENABLE(__pdesc, __val) \ 142 SET_BITS_TO_LE_4BYTE(__pdesc+12, 12, 1, __val) 143 #define SET_TX_DESC_HW_RTS_ENABLE(__pdesc, __val) \ 144 SET_BITS_TO_LE_4BYTE(__pdesc+12, 13, 1, __val) 145 #define SET_TX_DESC_NAV_USE_HDR(__pdesc, __val) \ 146 SET_BITS_TO_LE_4BYTE(__pdesc+12, 15, 1, __val) 147 #define SET_TX_DESC_USE_MAX_LEN(__pdesc, __val) \ 148 SET_BITS_TO_LE_4BYTE(__pdesc+12, 16, 1, __val) 149 #define SET_TX_DESC_MAX_AGG_NUM(__pdesc, __val) \ 150 SET_BITS_TO_LE_4BYTE(__pdesc+12, 17, 5, __val) 151 #define SET_TX_DESC_NDPA(__pdesc, __val) \ 152 SET_BITS_TO_LE_4BYTE(__pdesc+12, 22, 2, __val) 153 #define SET_TX_DESC_AMPDU_MAX_TIME(__pdesc, __val) \ 154 SET_BITS_TO_LE_4BYTE(__pdesc+12, 24, 8, __val) 155 #define SET_TX_DESC_TX_ANT(__pdesc, __val) \ 156 SET_BITS_TO_LE_4BYTE(__pdesc+20, 24, 4, __val) 158 #define SET_TX_DESC_TX_RATE(__pdesc, __val) \ 159 SET_BITS_TO_LE_4BYTE(__pdesc+16, 0, 7, __val) 160 #define SET_TX_DESC_DATA_RATE_FB_LIMIT(__pdesc, __val) \ 161 SET_BITS_TO_LE_4BYTE(__pdesc+16, 8, 5, __val) 162 #define SET_TX_DESC_RTS_RATE_FB_LIMIT(__pdesc, __val) \ 163 SET_BITS_TO_LE_4BYTE(__pdesc+16, 13, 4, __val) 164 #define SET_TX_DESC_RETRY_LIMIT_ENABLE(__pdesc, __val) \ 165 SET_BITS_TO_LE_4BYTE(__pdesc+16, 17, 1, __val) 166 #define SET_TX_DESC_DATA_RETRY_LIMIT(__pdesc, __val) \ 167 SET_BITS_TO_LE_4BYTE(__pdesc+16, 18, 6, __val) 168 #define SET_TX_DESC_RTS_RATE(__pdesc, __val) \ 169 SET_BITS_TO_LE_4BYTE(__pdesc+16, 24, 5, __val) 171 #define SET_TX_DESC_TX_SUB_CARRIER(__pdesc, __val) \ 172 SET_BITS_TO_LE_4BYTE(__pdesc+20, 0, 4, __val) 173 #define SET_TX_DESC_DATA_SHORTGI(__pdesc, __val) \ 174 SET_BITS_TO_LE_1BYTE(__pdesc+20, 4, 1, __val) 175 #define SET_TX_DESC_DATA_BW(__pdesc, __val) \ 176 SET_BITS_TO_LE_4BYTE(__pdesc+20, 5, 2, __val) 177 #define SET_TX_DESC_DATA_LDPC(__pdesc, __val) \ 178 SET_BITS_TO_LE_4BYTE(__pdesc+20, 7, 1, __val) 179 #define SET_TX_DESC_DATA_STBC(__pdesc, __val) \ 180 SET_BITS_TO_LE_4BYTE(__pdesc+20, 8, 2, __val) 181 #define SET_TX_DESC_CTROL_STBC(__pdesc, __val) \ 182 SET_BITS_TO_LE_4BYTE(__pdesc+20, 10, 2, __val) 183 #define SET_TX_DESC_RTS_SHORT(__pdesc, __val) \ 184 SET_BITS_TO_LE_4BYTE(__pdesc+20, 12, 1, __val) 185 #define SET_TX_DESC_RTS_SC(__pdesc, __val) \ 186 SET_BITS_TO_LE_4BYTE(__pdesc+20, 13, 4, __val) 188 #define SET_TX_DESC_TX_BUFFER_SIZE(__pdesc, __val) \ 189 SET_BITS_TO_LE_4BYTE(__pdesc+28, 0, 16, __val) 194 #define SET_TX_DESC_HWSEQ_EN(__pdesc, __val) \ 195 SET_BITS_TO_LE_4BYTE(__pdesc+32, 15, 1, __val) 197 #define SET_TX_DESC_SEQ(__pdesc, __val) \ 198 SET_BITS_TO_LE_4BYTE(__pdesc+36, 12, 12, __val) 200 #define SET_TX_DESC_TX_BUFFER_ADDRESS(__pdesc, __val) \ 201 SET_BITS_TO_LE_4BYTE(__pdesc+40, 0, 32, __val) 206 #define SET_TX_DESC_NEXT_DESC_ADDRESS(__pdesc, __val) \ 207 SET_BITS_TO_LE_4BYTE(__pdesc+48, 0, 32, __val) 239 #define SET_RX_DESC_PKT_LEN(__pdesc, __val) \ 240 SET_BITS_TO_LE_4BYTE(__pdesc, 0, 14, __val) 241 #define SET_RX_DESC_EOR(__pdesc, __val) \ 242 SET_BITS_TO_LE_4BYTE(__pdesc, 30, 1, __val) 243 #define SET_RX_DESC_OWN(__pdesc, __val) \ 244 SET_BITS_TO_LE_4BYTE(__pdesc, 31, 1, __val) 325 #define SET_RX_DESC_BUFF_ADDR(__pdesc, __val) \ 326 SET_BITS_TO_LE_4BYTE(__pdesc+24, 0, 32, __val) 327 #define SET_RX_DESC_BUFF_ADDR64(__pdesc, __val) \ 328 SET_BITS_TO_LE_4BYTE(__pdesc+28, 0, 32, __val)
|
H A D | fw.h | 228 #define SET_H2CCMD_PWRMODE_PARM_MODE(__ph2ccmd, __val) \ 229 SET_BITS_TO_LE_1BYTE(__ph2ccmd, 0, 8, __val) 243 #define SET_H2CCMD_JOINBSSRPT_PARM_OPMODE(__ph2ccmd, __val) \ 244 SET_BITS_TO_LE_1BYTE(__ph2ccmd, 0, 8, __val) 245 #define SET_H2CCMD_RSVDPAGE_LOC_PSPOLL(__ph2ccmd, __val) \ 246 SET_BITS_TO_LE_1BYTE((__ph2ccmd)+1, 0, 8, __val) 247 #define SET_H2CCMD_RSVDPAGE_LOC_NULL_DATA(__ph2ccmd, __val) \ 248 SET_BITS_TO_LE_1BYTE((__ph2ccmd)+2, 0, 8, __val) 249 #define SET_H2CCMD_RSVDPAGE_LOC_QOS_NULL_DATA(__ph2ccmd, __val) \ 250 SET_BITS_TO_LE_1BYTE((__ph2ccmd)+3, 0, 8, __val)
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8723be/ |
H A D | trx.h | 39 #define SET_TX_DESC_PKT_SIZE(__pdesc, __val) \ 40 SET_BITS_TO_LE_4BYTE(__pdesc, 0, 16, __val) 41 #define SET_TX_DESC_OFFSET(__pdesc, __val) \ 42 SET_BITS_TO_LE_4BYTE(__pdesc, 16, 8, __val) 43 #define SET_TX_DESC_BMC(__pdesc, __val) \ 44 SET_BITS_TO_LE_4BYTE(__pdesc, 24, 1, __val) 45 #define SET_TX_DESC_HTC(__pdesc, __val) \ 46 SET_BITS_TO_LE_4BYTE(__pdesc, 25, 1, __val) 47 #define SET_TX_DESC_LAST_SEG(__pdesc, __val) \ 48 SET_BITS_TO_LE_4BYTE(__pdesc, 26, 1, __val) 49 #define SET_TX_DESC_FIRST_SEG(__pdesc, __val) \ 50 SET_BITS_TO_LE_4BYTE(__pdesc, 27, 1, __val) 51 #define SET_TX_DESC_LINIP(__pdesc, __val) \ 52 SET_BITS_TO_LE_4BYTE(__pdesc, 28, 1, __val) 53 #define SET_TX_DESC_NO_ACM(__pdesc, __val) \ 54 SET_BITS_TO_LE_4BYTE(__pdesc, 29, 1, __val) 55 #define SET_TX_DESC_GF(__pdesc, __val) \ 56 SET_BITS_TO_LE_4BYTE(__pdesc, 30, 1, __val) 57 #define SET_TX_DESC_OWN(__pdesc, __val) \ 58 SET_BITS_TO_LE_4BYTE(__pdesc, 31, 1, __val) 81 #define SET_TX_DESC_MACID(__pdesc, __val) \ 82 SET_BITS_TO_LE_4BYTE(__pdesc+4, 0, 7, __val) 83 #define SET_TX_DESC_QUEUE_SEL(__pdesc, __val) \ 84 SET_BITS_TO_LE_4BYTE(__pdesc+4, 8, 5, __val) 85 #define SET_TX_DESC_RDG_NAV_EXT(__pdesc, __val) \ 86 SET_BITS_TO_LE_4BYTE(__pdesc+4, 13, 1, __val) 87 #define SET_TX_DESC_LSIG_TXOP_EN(__pdesc, __val) \ 88 SET_BITS_TO_LE_4BYTE(__pdesc+4, 14, 1, __val) 89 #define SET_TX_DESC_PIFS(__pdesc, __val) \ 90 SET_BITS_TO_LE_4BYTE(__pdesc+4, 15, 1, __val) 91 #define SET_TX_DESC_RATE_ID(__pdesc, __val) \ 92 SET_BITS_TO_LE_4BYTE(__pdesc+4, 16, 5, __val) 93 #define SET_TX_DESC_EN_DESC_ID(__pdesc, __val) \ 94 SET_BITS_TO_LE_4BYTE(__pdesc+4, 21, 1, __val) 95 #define SET_TX_DESC_SEC_TYPE(__pdesc, __val) \ 96 SET_BITS_TO_LE_4BYTE(__pdesc+4, 22, 2, __val) 97 #define SET_TX_DESC_PKT_OFFSET(__pdesc, __val) \ 98 SET_BITS_TO_LE_4BYTE(__pdesc+4, 24, 5, __val) 101 #define SET_TX_DESC_PAID(__pdesc, __val) \ 102 SET_BITS_TO_LE_4BYTE(__pdesc+8, 0, 9, __val) 103 #define SET_TX_DESC_CCA_RTS(__pdesc, __val) \ 104 SET_BITS_TO_LE_4BYTE(__pdesc+8, 10, 2, __val) 105 #define SET_TX_DESC_AGG_ENABLE(__pdesc, __val) \ 106 SET_BITS_TO_LE_4BYTE(__pdesc+8, 12, 1, __val) 107 #define SET_TX_DESC_RDG_ENABLE(__pdesc, __val) \ 108 SET_BITS_TO_LE_4BYTE(__pdesc+8, 13, 1, __val) 109 #define SET_TX_DESC_BAR_RTY_TH(__pdesc, __val) \ 110 SET_BITS_TO_LE_4BYTE(__pdesc+8, 14, 2, __val) 111 #define SET_TX_DESC_AGG_BREAK(__pdesc, __val) \ 112 SET_BITS_TO_LE_4BYTE(__pdesc+8, 16, 1, __val) 113 #define SET_TX_DESC_MORE_FRAG(__pdesc, __val) \ 114 SET_BITS_TO_LE_4BYTE(__pdesc+8, 17, 1, __val) 115 #define SET_TX_DESC_RAW(__pdesc, __val) \ 116 SET_BITS_TO_LE_4BYTE(__pdesc+8, 18, 1, __val) 117 #define SET_TX_DESC_SPE_RPT(__pdesc, __val) \ 118 SET_BITS_TO_LE_4BYTE(__pdesc+8, 19, 1, __val) 119 #define SET_TX_DESC_AMPDU_DENSITY(__pdesc, __val) \ 120 SET_BITS_TO_LE_4BYTE(__pdesc+8, 20, 3, __val) 121 #define SET_TX_DESC_BT_INT(__pdesc, __val) \ 122 SET_BITS_TO_LE_4BYTE(__pdesc+8, 23, 1, __val) 123 #define SET_TX_DESC_GID(__pdesc, __val) \ 124 SET_BITS_TO_LE_4BYTE(__pdesc+8, 24, 6, __val) 127 #define SET_TX_DESC_WHEADER_LEN(__pdesc, __val) \ 128 SET_BITS_TO_LE_4BYTE(__pdesc+12, 0, 4, __val) 129 #define SET_TX_DESC_CHK_EN(__pdesc, __val) \ 130 SET_BITS_TO_LE_4BYTE(__pdesc+12, 4, 1, __val) 131 #define SET_TX_DESC_EARLY_MODE(__pdesc, __val) \ 132 SET_BITS_TO_LE_4BYTE(__pdesc+12, 5, 1, __val) 133 #define SET_TX_DESC_HWSEQ_SEL(__pdesc, __val) \ 134 SET_BITS_TO_LE_4BYTE(__pdesc+12, 6, 2, __val) 135 #define SET_TX_DESC_USE_RATE(__pdesc, __val) \ 136 SET_BITS_TO_LE_4BYTE(__pdesc+12, 8, 1, __val) 137 #define SET_TX_DESC_DISABLE_RTS_FB(__pdesc, __val) \ 138 SET_BITS_TO_LE_4BYTE(__pdesc+12, 9, 1, __val) 139 #define SET_TX_DESC_DISABLE_FB(__pdesc, __val) \ 140 SET_BITS_TO_LE_4BYTE(__pdesc+12, 10, 1, __val) 141 #define SET_TX_DESC_CTS2SELF(__pdesc, __val) \ 142 SET_BITS_TO_LE_4BYTE(__pdesc+12, 11, 1, __val) 143 #define SET_TX_DESC_RTS_ENABLE(__pdesc, __val) \ 144 SET_BITS_TO_LE_4BYTE(__pdesc+12, 12, 1, __val) 145 #define SET_TX_DESC_HW_RTS_ENABLE(__pdesc, __val) \ 146 SET_BITS_TO_LE_4BYTE(__pdesc+12, 13, 1, __val) 147 #define SET_TX_DESC_NAV_USE_HDR(__pdesc, __val) \ 148 SET_BITS_TO_LE_4BYTE(__pdesc+12, 15, 1, __val) 149 #define SET_TX_DESC_USE_MAX_LEN(__pdesc, __val) \ 150 SET_BITS_TO_LE_4BYTE(__pdesc+12, 16, 1, __val) 151 #define SET_TX_DESC_MAX_AGG_NUM(__pdesc, __val) \ 152 SET_BITS_TO_LE_4BYTE(__pdesc+12, 17, 5, __val) 153 #define SET_TX_DESC_NDPA(__pdesc, __val) \ 154 SET_BITS_TO_LE_4BYTE(__pdesc+12, 22, 2, __val) 155 #define SET_TX_DESC_AMPDU_MAX_TIME(__pdesc, __val) \ 156 SET_BITS_TO_LE_4BYTE(__pdesc+12, 24, 8, __val) 159 #define SET_TX_DESC_TX_RATE(__pdesc, __val) \ 160 SET_BITS_TO_LE_4BYTE(__pdesc+16, 0, 7, __val) 161 #define SET_TX_DESC_DATA_RATE_FB_LIMIT(__pdesc, __val) \ 162 SET_BITS_TO_LE_4BYTE(__pdesc+16, 8, 5, __val) 163 #define SET_TX_DESC_RTS_RATE_FB_LIMIT(__pdesc, __val) \ 164 SET_BITS_TO_LE_4BYTE(__pdesc+16, 13, 4, __val) 165 #define SET_TX_DESC_RETRY_LIMIT_ENABLE(__pdesc, __val) \ 166 SET_BITS_TO_LE_4BYTE(__pdesc+16, 17, 1, __val) 167 #define SET_TX_DESC_DATA_RETRY_LIMIT(__pdesc, __val) \ 168 SET_BITS_TO_LE_4BYTE(__pdesc+16, 18, 6, __val) 169 #define SET_TX_DESC_RTS_RATE(__pdesc, __val) \ 170 SET_BITS_TO_LE_4BYTE(__pdesc+16, 24, 5, __val) 173 #define SET_TX_DESC_TX_SUB_CARRIER(__pdesc, __val) \ 174 SET_BITS_TO_LE_4BYTE(__pdesc+20, 0, 4, __val) 175 #define SET_TX_DESC_DATA_SHORTGI(__pdesc, __val) \ 176 SET_BITS_TO_LE_4BYTE(__pdesc+20, 4, 1, __val) 177 #define SET_TX_DESC_DATA_BW(__pdesc, __val) \ 178 SET_BITS_TO_LE_4BYTE(__pdesc+20, 5, 2, __val) 179 #define SET_TX_DESC_DATA_LDPC(__pdesc, __val) \ 180 SET_BITS_TO_LE_4BYTE(__pdesc+20, 7, 1, __val) 181 #define SET_TX_DESC_DATA_STBC(__pdesc, __val) \ 182 SET_BITS_TO_LE_4BYTE(__pdesc+20, 8, 2, __val) 183 #define SET_TX_DESC_CTROL_STBC(__pdesc, __val) \ 184 SET_BITS_TO_LE_4BYTE(__pdesc+20, 10, 2, __val) 185 #define SET_TX_DESC_RTS_SHORT(__pdesc, __val) \ 186 SET_BITS_TO_LE_4BYTE(__pdesc+20, 12, 1, __val) 187 #define SET_TX_DESC_RTS_SC(__pdesc, __val) \ 188 SET_BITS_TO_LE_4BYTE(__pdesc+20, 13, 4, __val) 191 #define SET_TX_DESC_TX_BUFFER_SIZE(__pdesc, __val) \ 192 SET_BITS_TO_LE_4BYTE(__pdesc+28, 0, 16, __val) 197 #define SET_TX_DESC_HWSEQ_EN(__pdesc, __val) \ 198 SET_BITS_TO_LE_4BYTE(__pdesc+32, 15, 1, __val) 200 #define SET_TX_DESC_SEQ(__pdesc, __val) \ 201 SET_BITS_TO_LE_4BYTE(__pdesc+36, 12, 12, __val) 203 #define SET_TX_DESC_TX_BUFFER_ADDRESS(__pdesc, __val) \ 204 SET_BITS_TO_LE_4BYTE(__pdesc+40, 0, 32, __val) 210 #define SET_TX_DESC_NEXT_DESC_ADDRESS(__pdesc, __val) \ 211 SET_BITS_TO_LE_4BYTE(__pdesc+48, 0, 32, __val) 243 #define SET_RX_DESC_PKT_LEN(__pdesc, __val) \ 244 SET_BITS_TO_LE_4BYTE(__pdesc, 0, 14, __val) 245 #define SET_RX_DESC_EOR(__pdesc, __val) \ 246 SET_BITS_TO_LE_4BYTE(__pdesc, 30, 1, __val) 247 #define SET_RX_DESC_OWN(__pdesc, __val) \ 248 SET_BITS_TO_LE_4BYTE(__pdesc, 31, 1, __val) 335 #define SET_RX_DESC_BUFF_ADDR(__pdesc, __val) \ 336 SET_BITS_TO_LE_4BYTE(__pdesc+24, 0, 32, __val) 337 #define SET_RX_DESC_BUFF_ADDR64(__pdesc, __val) \ 338 SET_BITS_TO_LE_4BYTE(__pdesc+28, 0, 32, __val)
|
H A D | fw.h | 116 #define SET_H2CCMD_PWRMODE_PARM_MODE(__ph2ccmd, __val) \ 117 SET_BITS_TO_LE_1BYTE(__ph2ccmd, 0, 8, __val) 118 #define SET_H2CCMD_PWRMODE_PARM_RLBM(__ph2ccmd, __val) \ 119 SET_BITS_TO_LE_1BYTE((__ph2ccmd)+1, 0, 4, __val) 120 #define SET_H2CCMD_PWRMODE_PARM_SMART_PS(__ph2ccmd, __val) \ 121 SET_BITS_TO_LE_1BYTE((__ph2ccmd)+1, 4, 4, __val) 122 #define SET_H2CCMD_PWRMODE_PARM_AWAKE_INTERVAL(__ph2ccmd, __val) \ 123 SET_BITS_TO_LE_1BYTE((__ph2ccmd)+2, 0, 8, __val) 124 #define SET_H2CCMD_PWRMODE_PARM_ALL_QUEUE_UAPSD(__ph2ccmd, __val) \ 125 SET_BITS_TO_LE_1BYTE((__ph2ccmd)+3, 0, 8, __val) 126 #define SET_H2CCMD_PWRMODE_PARM_PWR_STATE(__ph2ccmd, __val) \ 127 SET_BITS_TO_LE_1BYTE((__ph2ccmd)+4, 0, 8, __val) 131 #define SET_H2CCMD_MSRRPT_PARM_OPMODE(__ph2ccmd, __val) \ 132 SET_BITS_TO_LE_1BYTE(__ph2ccmd, 0, 1, __val) 133 #define SET_H2CCMD_MSRRPT_PARM_MACID_IND(__ph2ccmd, __val) \ 134 SET_BITS_TO_LE_1BYTE(__ph2ccmd, 1, 1, __val) 136 #define SET_H2CCMD_RSVDPAGE_LOC_PROBE_RSP(__ph2ccmd, __val) \ 137 SET_BITS_TO_LE_1BYTE(__ph2ccmd, 0, 8, __val) 138 #define SET_H2CCMD_RSVDPAGE_LOC_PSPOLL(__ph2ccmd, __val) \ 139 SET_BITS_TO_LE_1BYTE((__ph2ccmd)+1, 0, 8, __val) 140 #define SET_H2CCMD_RSVDPAGE_LOC_NULL_DATA(__ph2ccmd, __val) \ 141 SET_BITS_TO_LE_1BYTE((__ph2ccmd)+2, 0, 8, __val)
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8188ee/ |
H A D | trx.h | 39 #define SET_TX_DESC_PKT_SIZE(__pdesc, __val) \ 40 SET_BITS_TO_LE_4BYTE(__pdesc, 0, 16, __val) 41 #define SET_TX_DESC_OFFSET(__pdesc, __val) \ 42 SET_BITS_TO_LE_4BYTE(__pdesc, 16, 8, __val) 43 #define SET_TX_DESC_BMC(__pdesc, __val) \ 44 SET_BITS_TO_LE_4BYTE(__pdesc, 24, 1, __val) 45 #define SET_TX_DESC_HTC(__pdesc, __val) \ 46 SET_BITS_TO_LE_4BYTE(__pdesc, 25, 1, __val) 47 #define SET_TX_DESC_LAST_SEG(__pdesc, __val) \ 48 SET_BITS_TO_LE_4BYTE(__pdesc, 26, 1, __val) 49 #define SET_TX_DESC_FIRST_SEG(__pdesc, __val) \ 50 SET_BITS_TO_LE_4BYTE(__pdesc, 27, 1, __val) 51 #define SET_TX_DESC_LINIP(__pdesc, __val) \ 52 SET_BITS_TO_LE_4BYTE(__pdesc, 28, 1, __val) 53 #define SET_TX_DESC_NO_ACM(__pdesc, __val) \ 54 SET_BITS_TO_LE_4BYTE(__pdesc, 29, 1, __val) 55 #define SET_TX_DESC_GF(__pdesc, __val) \ 56 SET_BITS_TO_LE_4BYTE(__pdesc, 30, 1, __val) 57 #define SET_TX_DESC_OWN(__pdesc, __val) \ 58 SET_BITS_TO_LE_4BYTE(__pdesc, 31, 1, __val) 81 #define SET_TX_DESC_MACID(__pdesc, __val) \ 82 SET_BITS_TO_LE_4BYTE(__pdesc+4, 0, 6, __val) 83 #define SET_TX_DESC_QUEUE_SEL(__pdesc, __val) \ 84 SET_BITS_TO_LE_4BYTE(__pdesc+4, 8, 5, __val) 85 #define SET_TX_DESC_RDG_NAV_EXT(__pdesc, __val) \ 86 SET_BITS_TO_LE_4BYTE(__pdesc+4, 13, 1, __val) 87 #define SET_TX_DESC_LSIG_TXOP_EN(__pdesc, __val) \ 88 SET_BITS_TO_LE_4BYTE(__pdesc+4, 14, 1, __val) 89 #define SET_TX_DESC_PIFS(__pdesc, __val) \ 90 SET_BITS_TO_LE_4BYTE(__pdesc+4, 15, 1, __val) 91 #define SET_TX_DESC_RATE_ID(__pdesc, __val) \ 92 SET_BITS_TO_LE_4BYTE(__pdesc+4, 16, 4, __val) 93 #define SET_TX_DESC_NAV_USE_HDR(__pdesc, __val) \ 94 SET_BITS_TO_LE_4BYTE(__pdesc+4, 20, 1, __val) 95 #define SET_TX_DESC_EN_DESC_ID(__pdesc, __val) \ 96 SET_BITS_TO_LE_4BYTE(__pdesc+4, 21, 1, __val) 97 #define SET_TX_DESC_SEC_TYPE(__pdesc, __val) \ 98 SET_BITS_TO_LE_4BYTE(__pdesc+4, 22, 2, __val) 99 #define SET_TX_DESC_PKT_OFFSET(__pdesc, __val) \ 100 SET_BITS_TO_LE_4BYTE(__pdesc+4, 26, 5, __val) 101 #define SET_TX_DESC_PADDING_LEN(__pdesc, __val) \ 102 SET_BITS_TO_LE_4BYTE(__pdesc+4, 24, 8, __val) 131 #define SET_TX_DESC_RTS_RC(__pdesc, __val) \ 132 SET_BITS_TO_LE_4BYTE(__pdesc+8, 0, 6, __val) 133 #define SET_TX_DESC_DATA_RC(__pdesc, __val) \ 134 SET_BITS_TO_LE_4BYTE(__pdesc+8, 6, 6, __val) 135 #define SET_TX_DESC_AGG_ENABLE(__pdesc, __val) \ 136 SET_BITS_TO_LE_4BYTE(__pdesc+8, 12, 1, __val) 137 #define SET_TX_DESC_RDG_ENABLE(__pdesc, __val) \ 138 SET_BITS_TO_LE_4BYTE(__pdesc+8, 13, 1, __val) 139 #define SET_TX_DESC_BAR_RTY_TH(__pdesc, __val) \ 140 SET_BITS_TO_LE_4BYTE(__pdesc+8, 14, 2, __val) 141 #define SET_TX_DESC_AGG_BREAK(__pdesc, __val) \ 142 SET_BITS_TO_LE_4BYTE(__pdesc+8, 16, 1, __val) 143 #define SET_TX_DESC_MORE_FRAG(__pdesc, __val) \ 144 SET_BITS_TO_LE_4BYTE(__pdesc+8, 17, 1, __val) 145 #define SET_TX_DESC_RAW(__pdesc, __val) \ 146 SET_BITS_TO_LE_4BYTE(__pdesc+8, 18, 1, __val) 147 #define SET_TX_DESC_CCX(__pdesc, __val) \ 148 SET_BITS_TO_LE_4BYTE(__pdesc+8, 19, 1, __val) 149 #define SET_TX_DESC_AMPDU_DENSITY(__pdesc, __val) \ 150 SET_BITS_TO_LE_4BYTE(__pdesc+8, 20, 3, __val) 151 #define SET_TX_DESC_BT_INT(__pdesc, __val) \ 152 SET_BITS_TO_LE_4BYTE(__pdesc+8, 23, 1, __val) 153 #define SET_TX_DESC_ANTSEL_A(__pdesc, __val) \ 154 SET_BITS_TO_LE_4BYTE(__pdesc+8, 24, 1, __val) 155 #define SET_TX_DESC_ANTSEL_B(__pdesc, __val) \ 156 SET_BITS_TO_LE_4BYTE(__pdesc+8, 25, 1, __val) 157 #define SET_TX_DESC_TX_ANT_CCK(__pdesc, __val) \ 158 SET_BITS_TO_LE_4BYTE(__pdesc+8, 26, 2, __val) 159 #define SET_TX_DESC_TX_ANTL(__pdesc, __val) \ 160 SET_BITS_TO_LE_4BYTE(__pdesc+8, 28, 2, __val) 161 #define SET_TX_DESC_TX_ANT_HT(__pdesc, __val) \ 162 SET_BITS_TO_LE_4BYTE(__pdesc+8, 30, 2, __val) 189 #define SET_TX_DESC_NEXT_HEAP_PAGE(__pdesc, __val) \ 190 SET_BITS_TO_LE_4BYTE(__pdesc+12, 0, 8, __val) 191 #define SET_TX_DESC_TAIL_PAGE(__pdesc, __val) \ 192 SET_BITS_TO_LE_4BYTE(__pdesc+12, 8, 8, __val) 193 #define SET_TX_DESC_SEQ(__pdesc, __val) \ 194 SET_BITS_TO_LE_4BYTE(__pdesc+12, 16, 12, __val) 195 #define SET_TX_DESC_CPU_HANDLE(__pdesc, __val) \ 196 SET_BITS_TO_LE_4BYTE(__pdesc+12, 28, 1, __val) 197 #define SET_TX_DESC_TAG1(__pdesc, __val) \ 198 SET_BITS_TO_LE_4BYTE(__pdesc+12, 29, 1, __val) 199 #define SET_TX_DESC_TRIGGER_INT(__pdesc, __val) \ 200 SET_BITS_TO_LE_4BYTE(__pdesc+12, 30, 1, __val) 201 #define SET_TX_DESC_HWSEQ_EN(__pdesc, __val) \ 202 SET_BITS_TO_LE_4BYTE(__pdesc+12, 31, 1, __val) 211 #define SET_TX_DESC_RTS_RATE(__pdesc, __val) \ 212 SET_BITS_TO_LE_4BYTE(__pdesc+16, 0, 5, __val) 213 #define SET_TX_DESC_AP_DCFE(__pdesc, __val) \ 214 SET_BITS_TO_LE_4BYTE(__pdesc+16, 5, 1, __val) 215 #define SET_TX_DESC_QOS(__pdesc, __val) \ 216 SET_BITS_TO_LE_4BYTE(__pdesc+16, 6, 1, __val) 217 #define SET_TX_DESC_HWSEQ_SSN(__pdesc, __val) \ 218 SET_BITS_TO_LE_4BYTE(__pdesc+16, 7, 1, __val) 219 #define SET_TX_DESC_USE_RATE(__pdesc, __val) \ 220 SET_BITS_TO_LE_4BYTE(__pdesc+16, 8, 1, __val) 221 #define SET_TX_DESC_DISABLE_RTS_FB(__pdesc, __val) \ 222 SET_BITS_TO_LE_4BYTE(__pdesc+16, 9, 1, __val) 223 #define SET_TX_DESC_DISABLE_FB(__pdesc, __val) \ 224 SET_BITS_TO_LE_4BYTE(__pdesc+16, 10, 1, __val) 225 #define SET_TX_DESC_CTS2SELF(__pdesc, __val) \ 226 SET_BITS_TO_LE_4BYTE(__pdesc+16, 11, 1, __val) 227 #define SET_TX_DESC_RTS_ENABLE(__pdesc, __val) \ 228 SET_BITS_TO_LE_4BYTE(__pdesc+16, 12, 1, __val) 229 #define SET_TX_DESC_HW_RTS_ENABLE(__pdesc, __val) \ 230 SET_BITS_TO_LE_4BYTE(__pdesc+16, 13, 1, __val) 231 #define SET_TX_DESC_PORT_ID(__pdesc, __val) \ 232 SET_BITS_TO_LE_4BYTE(__pdesc+16, 14, 1, __val) 233 #define SET_TX_DESC_PWR_STATUS(__pdesc, __val) \ 234 SET_BITS_TO_LE_4BYTE(__pdesc+16, 15, 3, __val) 235 #define SET_TX_DESC_WAIT_DCTS(__pdesc, __val) \ 236 SET_BITS_TO_LE_4BYTE(__pdesc+16, 18, 1, __val) 237 #define SET_TX_DESC_CTS2AP_EN(__pdesc, __val) \ 238 SET_BITS_TO_LE_4BYTE(__pdesc+16, 19, 1, __val) 239 #define SET_TX_DESC_TX_SUB_CARRIER(__pdesc, __val) \ 240 SET_BITS_TO_LE_4BYTE(__pdesc+16, 20, 2, __val) 241 #define SET_TX_DESC_TX_STBC(__pdesc, __val) \ 242 SET_BITS_TO_LE_4BYTE(__pdesc+16, 22, 2, __val) 243 #define SET_TX_DESC_DATA_SHORT(__pdesc, __val) \ 244 SET_BITS_TO_LE_4BYTE(__pdesc+16, 24, 1, __val) 245 #define SET_TX_DESC_DATA_BW(__pdesc, __val) \ 246 SET_BITS_TO_LE_4BYTE(__pdesc+16, 25, 1, __val) 247 #define SET_TX_DESC_RTS_SHORT(__pdesc, __val) \ 248 SET_BITS_TO_LE_4BYTE(__pdesc+16, 26, 1, __val) 249 #define SET_TX_DESC_RTS_BW(__pdesc, __val) \ 250 SET_BITS_TO_LE_4BYTE(__pdesc+16, 27, 1, __val) 251 #define SET_TX_DESC_RTS_SC(__pdesc, __val) \ 252 SET_BITS_TO_LE_4BYTE(__pdesc+16, 28, 2, __val) 253 #define SET_TX_DESC_RTS_STBC(__pdesc, __val) \ 254 SET_BITS_TO_LE_4BYTE(__pdesc+16, 30, 2, __val) 299 #define SET_TX_DESC_TX_RATE(__pdesc, __val) \ 300 SET_BITS_TO_LE_4BYTE(__pdesc+20, 0, 6, __val) 301 #define SET_TX_DESC_DATA_SHORTGI(__pdesc, __val) \ 302 SET_BITS_TO_LE_4BYTE(__pdesc+20, 6, 1, __val) 303 #define SET_TX_DESC_CCX_TAG(__pdesc, __val) \ 304 SET_BITS_TO_LE_4BYTE(__pdesc+20, 7, 1, __val) 305 #define SET_TX_DESC_DATA_RATE_FB_LIMIT(__pdesc, __val) \ 306 SET_BITS_TO_LE_4BYTE(__pdesc+20, 8, 5, __val) 307 #define SET_TX_DESC_RTS_RATE_FB_LIMIT(__pdesc, __val) \ 308 SET_BITS_TO_LE_4BYTE(__pdesc+20, 13, 4, __val) 309 #define SET_TX_DESC_RETRY_LIMIT_ENABLE(__pdesc, __val) \ 310 SET_BITS_TO_LE_4BYTE(__pdesc+20, 17, 1, __val) 311 #define SET_TX_DESC_DATA_RETRY_LIMIT(__pdesc, __val) \ 312 SET_BITS_TO_LE_4BYTE(__pdesc+20, 18, 6, __val) 313 #define SET_TX_DESC_USB_TXAGG_NUM(__pdesc, __val) \ 314 SET_BITS_TO_LE_4BYTE(__pdesc+20, 24, 8, __val) 333 #define SET_TX_DESC_TXAGC_A(__pdesc, __val) \ 334 SET_BITS_TO_LE_4BYTE(__pdesc+24, 0, 5, __val) 335 #define SET_TX_DESC_TXAGC_B(__pdesc, __val) \ 336 SET_BITS_TO_LE_4BYTE(__pdesc+24, 5, 5, __val) 337 #define SET_TX_DESC_USE_MAX_LEN(__pdesc, __val) \ 338 SET_BITS_TO_LE_4BYTE(__pdesc+24, 10, 1, __val) 339 #define SET_TX_DESC_MAX_AGG_NUM(__pdesc, __val) \ 340 SET_BITS_TO_LE_4BYTE(__pdesc+24, 11, 5, __val) 341 #define SET_TX_DESC_MCSG1_MAX_LEN(__pdesc, __val) \ 342 SET_BITS_TO_LE_4BYTE(__pdesc+24, 16, 4, __val) 343 #define SET_TX_DESC_MCSG2_MAX_LEN(__pdesc, __val) \ 344 SET_BITS_TO_LE_4BYTE(__pdesc+24, 20, 4, __val) 345 #define SET_TX_DESC_MCSG3_MAX_LEN(__pdesc, __val) \ 346 SET_BITS_TO_LE_4BYTE(__pdesc+24, 24, 4, __val) 347 #define SET_TX_DESC_MCS7_SGI_MAX_LEN(__pdesc, __val) \ 348 SET_BITS_TO_LE_4BYTE(__pdesc+24, 28, 4, __val) 367 #define SET_TX_DESC_TX_BUFFER_SIZE(__pdesc, __val) \ 368 SET_BITS_TO_LE_4BYTE(__pdesc+28, 0, 16, __val) 369 #define SET_TX_DESC_SW_OFFSET30(__pdesc, __val) \ 370 SET_BITS_TO_LE_4BYTE(__pdesc+28, 16, 8, __val) 371 #define SET_TX_DESC_SW_OFFSET31(__pdesc, __val) \ 372 SET_BITS_TO_LE_4BYTE(__pdesc+28, 24, 4, __val) 373 #define SET_TX_DESC_ANTSEL_C(__pdesc, __val) \ 374 SET_BITS_TO_LE_4BYTE(__pdesc+28, 29, 1, __val) 375 #define SET_TX_DESC_NULL_0(__pdesc, __val) \ 376 SET_BITS_TO_LE_4BYTE(__pdesc+28, 30, 1, __val) 377 #define SET_TX_DESC_NULL_1(__pdesc, __val) \ 378 SET_BITS_TO_LE_4BYTE(__pdesc+28, 30, 1, __val) 383 #define SET_TX_DESC_TX_BUFFER_ADDRESS(__pdesc, __val) \ 384 SET_BITS_TO_LE_4BYTE(__pdesc+32, 0, 32, __val) 385 #define SET_TX_DESC_TX_BUFFER_ADDRESS64(__pdesc, __val) \ 386 SET_BITS_TO_LE_4BYTE(__pdesc+36, 0, 32, __val) 393 #define SET_TX_DESC_NEXT_DESC_ADDRESS(__pdesc, __val) \ 394 SET_BITS_TO_LE_4BYTE(__pdesc+40, 0, 32, __val) 395 #define SET_TX_DESC_NEXT_DESC_ADDRESS64(__pdesc, __val) \ 396 SET_BITS_TO_LE_4BYTE(__pdesc+44, 0, 32, __val) 430 #define SET_RX_DESC_PKT_LEN(__pdesc, __val) \ 431 SET_BITS_TO_LE_4BYTE(__pdesc, 0, 14, __val) 432 #define SET_RX_DESC_EOR(__pdesc, __val) \ 433 SET_BITS_TO_LE_4BYTE(__pdesc, 30, 1, __val) 434 #define SET_RX_DESC_OWN(__pdesc, __val) \ 435 SET_BITS_TO_LE_4BYTE(__pdesc, 31, 1, __val) 502 #define SET_RX_DESC_BUFF_ADDR(__pdesc, __val) \ 503 SET_BITS_TO_LE_4BYTE(__pdesc+24, 0, 32, __val) 504 #define SET_RX_DESC_BUFF_ADDR64(__pdesc, __val) \ 505 SET_BITS_TO_LE_4BYTE(__pdesc+28, 0, 32, __val)
|
H A D | fw.h | 216 #define SET_H2CCMD_PWRMODE_PARM_MODE(__ph2ccmd, __val) \ 217 SET_BITS_TO_LE_1BYTE(__ph2ccmd, 0, 8, __val) 231 #define SET_H2CCMD_JOINBSSRPT_PARM_OPMODE(__ph2ccmd, __val) \ 232 SET_BITS_TO_LE_1BYTE(__ph2ccmd, 0, 8, __val) 233 #define SET_H2CCMD_RSVDPAGE_LOC_PROBE_RSP(__ph2ccmd, __val) \ 234 SET_BITS_TO_LE_1BYTE(__ph2ccmd, 0, 8, __val) 235 #define SET_H2CCMD_RSVDPAGE_LOC_PSPOLL(__ph2ccmd, __val) \ 236 SET_BITS_TO_LE_1BYTE((__ph2ccmd)+1, 0, 8, __val) 237 #define SET_H2CCMD_RSVDPAGE_LOC_NULL_DATA(__ph2ccmd, __val) \ 238 SET_BITS_TO_LE_1BYTE((__ph2ccmd)+2, 0, 8, __val)
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8723ae/ |
H A D | trx.h | 39 #define SET_TX_DESC_PKT_SIZE(__pdesc, __val) \ 40 SET_BITS_TO_LE_4BYTE(__pdesc, 0, 16, __val) 41 #define SET_TX_DESC_OFFSET(__pdesc, __val) \ 42 SET_BITS_TO_LE_4BYTE(__pdesc, 16, 8, __val) 43 #define SET_TX_DESC_BMC(__pdesc, __val) \ 44 SET_BITS_TO_LE_4BYTE(__pdesc, 24, 1, __val) 45 #define SET_TX_DESC_HTC(__pdesc, __val) \ 46 SET_BITS_TO_LE_4BYTE(__pdesc, 25, 1, __val) 47 #define SET_TX_DESC_LAST_SEG(__pdesc, __val) \ 48 SET_BITS_TO_LE_4BYTE(__pdesc, 26, 1, __val) 49 #define SET_TX_DESC_FIRST_SEG(__pdesc, __val) \ 50 SET_BITS_TO_LE_4BYTE(__pdesc, 27, 1, __val) 51 #define SET_TX_DESC_LINIP(__pdesc, __val) \ 52 SET_BITS_TO_LE_4BYTE(__pdesc, 28, 1, __val) 53 #define SET_TX_DESC_NO_ACM(__pdesc, __val) \ 54 SET_BITS_TO_LE_4BYTE(__pdesc, 29, 1, __val) 55 #define SET_TX_DESC_GF(__pdesc, __val) \ 56 SET_BITS_TO_LE_4BYTE(__pdesc, 30, 1, __val) 57 #define SET_TX_DESC_OWN(__pdesc, __val) \ 58 SET_BITS_TO_LE_4BYTE(__pdesc, 31, 1, __val) 81 #define SET_TX_DESC_MACID(__pdesc, __val) \ 82 SET_BITS_TO_LE_4BYTE(__pdesc+4, 0, 5, __val) 83 #define SET_TX_DESC_AGG_BREAK(__pdesc, __val) \ 84 SET_BITS_TO_LE_4BYTE(__pdesc+4, 5, 1, __val) 85 #define SET_TX_DESC_BK(__pdesc, __val) \ 86 SET_BITS_TO_LE_4BYTE(__pdesc+4, 6, 1, __val) 87 #define SET_TX_DESC_RDG_ENABLE(__pdesc, __val) \ 88 SET_BITS_TO_LE_4BYTE(__pdesc+4, 7, 1, __val) 89 #define SET_TX_DESC_QUEUE_SEL(__pdesc, __val) \ 90 SET_BITS_TO_LE_4BYTE(__pdesc+4, 8, 5, __val) 91 #define SET_TX_DESC_RDG_NAV_EXT(__pdesc, __val) \ 92 SET_BITS_TO_LE_4BYTE(__pdesc+4, 13, 1, __val) 93 #define SET_TX_DESC_LSIG_TXOP_EN(__pdesc, __val) \ 94 SET_BITS_TO_LE_4BYTE(__pdesc+4, 14, 1, __val) 95 #define SET_TX_DESC_PIFS(__pdesc, __val) \ 96 SET_BITS_TO_LE_4BYTE(__pdesc+4, 15, 1, __val) 97 #define SET_TX_DESC_RATE_ID(__pdesc, __val) \ 98 SET_BITS_TO_LE_4BYTE(__pdesc+4, 16, 4, __val) 99 #define SET_TX_DESC_NAV_USE_HDR(__pdesc, __val) \ 100 SET_BITS_TO_LE_4BYTE(__pdesc+4, 20, 1, __val) 101 #define SET_TX_DESC_EN_DESC_ID(__pdesc, __val) \ 102 SET_BITS_TO_LE_4BYTE(__pdesc+4, 21, 1, __val) 103 #define SET_TX_DESC_SEC_TYPE(__pdesc, __val) \ 104 SET_BITS_TO_LE_4BYTE(__pdesc+4, 22, 2, __val) 105 #define SET_TX_DESC_PKT_OFFSET(__pdesc, __val) \ 106 SET_BITS_TO_LE_4BYTE(__pdesc+4, 24, 8, __val) 135 #define SET_TX_DESC_RTS_RC(__pdesc, __val) \ 136 SET_BITS_TO_LE_4BYTE(__pdesc+8, 0, 6, __val) 137 #define SET_TX_DESC_DATA_RC(__pdesc, __val) \ 138 SET_BITS_TO_LE_4BYTE(__pdesc+8, 6, 6, __val) 139 #define SET_TX_DESC_BAR_RTY_TH(__pdesc, __val) \ 140 SET_BITS_TO_LE_4BYTE(__pdesc+8, 14, 2, __val) 141 #define SET_TX_DESC_MORE_FRAG(__pdesc, __val) \ 142 SET_BITS_TO_LE_4BYTE(__pdesc+8, 17, 1, __val) 143 #define SET_TX_DESC_RAW(__pdesc, __val) \ 144 SET_BITS_TO_LE_4BYTE(__pdesc+8, 18, 1, __val) 145 #define SET_TX_DESC_CCX(__pdesc, __val) \ 146 SET_BITS_TO_LE_4BYTE(__pdesc+8, 19, 1, __val) 147 #define SET_TX_DESC_AMPDU_DENSITY(__pdesc, __val) \ 148 SET_BITS_TO_LE_4BYTE(__pdesc+8, 20, 3, __val) 149 #define SET_TX_DESC_ANTSEL_A(__pdesc, __val) \ 150 SET_BITS_TO_LE_4BYTE(__pdesc+8, 24, 1, __val) 151 #define SET_TX_DESC_ANTSEL_B(__pdesc, __val) \ 152 SET_BITS_TO_LE_4BYTE(__pdesc+8, 25, 1, __val) 153 #define SET_TX_DESC_TX_ANT_CCK(__pdesc, __val) \ 154 SET_BITS_TO_LE_4BYTE(__pdesc+8, 26, 2, __val) 155 #define SET_TX_DESC_TX_ANTL(__pdesc, __val) \ 156 SET_BITS_TO_LE_4BYTE(__pdesc+8, 28, 2, __val) 157 #define SET_TX_DESC_TX_ANT_HT(__pdesc, __val) \ 158 SET_BITS_TO_LE_4BYTE(__pdesc+8, 30, 2, __val) 185 #define SET_TX_DESC_NEXT_HEAP_PAGE(__pdesc, __val) \ 186 SET_BITS_TO_LE_4BYTE(__pdesc+12, 0, 8, __val) 187 #define SET_TX_DESC_TAIL_PAGE(__pdesc, __val) \ 188 SET_BITS_TO_LE_4BYTE(__pdesc+12, 8, 8, __val) 189 #define SET_TX_DESC_SEQ(__pdesc, __val) \ 190 SET_BITS_TO_LE_4BYTE(__pdesc+12, 16, 12, __val) 191 #define SET_TX_DESC_PKT_ID(__pdesc, __val) \ 192 SET_BITS_TO_LE_4BYTE(__pdesc+12, 28, 4, __val) 204 #define SET_TX_DESC_TRIGGER_INT(__pdesc, __val) \ 205 SET_BITS_TO_LE_4BYTE(__pdesc+12, 30, 1, __val) 206 #define SET_TX_DESC_HWSEQ_EN_8723(__pdesc, __val) \ 207 SET_BITS_TO_LE_4BYTE(__pdesc+12, 31, 1, __val) 211 #define SET_TX_DESC_RTS_RATE(__pdesc, __val) \ 212 SET_BITS_TO_LE_4BYTE(__pdesc+16, 0, 5, __val) 213 #define SET_TX_DESC_AP_DCFE(__pdesc, __val) \ 214 SET_BITS_TO_LE_4BYTE(__pdesc+16, 5, 1, __val) 215 #define SET_TX_DESC_QOS(__pdesc, __val) \ 216 SET_BITS_TO_LE_4BYTE(__pdesc+16, 6, 1, __val) 217 #define SET_TX_DESC_HWSEQ_EN(__pdesc, __val) \ 218 SET_BITS_TO_LE_4BYTE(__pdesc+16, 7, 1, __val) 219 #define SET_TX_DESC_USE_RATE(__pdesc, __val) \ 220 SET_BITS_TO_LE_4BYTE(__pdesc+16, 8, 1, __val) 221 #define SET_TX_DESC_DISABLE_RTS_FB(__pdesc, __val) \ 222 SET_BITS_TO_LE_4BYTE(__pdesc+16, 9, 1, __val) 223 #define SET_TX_DESC_DISABLE_FB(__pdesc, __val) \ 224 SET_BITS_TO_LE_4BYTE(__pdesc+16, 10, 1, __val) 225 #define SET_TX_DESC_CTS2SELF(__pdesc, __val) \ 226 SET_BITS_TO_LE_4BYTE(__pdesc+16, 11, 1, __val) 227 #define SET_TX_DESC_RTS_ENABLE(__pdesc, __val) \ 228 SET_BITS_TO_LE_4BYTE(__pdesc+16, 12, 1, __val) 229 #define SET_TX_DESC_HW_RTS_ENABLE(__pdesc, __val) \ 230 SET_BITS_TO_LE_4BYTE(__pdesc+16, 13, 1, __val) 231 #define SET_TX_DESC_PORT_ID(__pdesc, __val) \ 232 SET_BITS_TO_LE_4BYTE(__pdesc+16, 14, 1, __val) 233 #define SET_TX_DESC_WAIT_DCTS(__pdesc, __val) \ 234 SET_BITS_TO_LE_4BYTE(__pdesc+16, 18, 1, __val) 235 #define SET_TX_DESC_CTS2AP_EN(__pdesc, __val) \ 236 SET_BITS_TO_LE_4BYTE(__pdesc+16, 19, 1, __val) 237 #define SET_TX_DESC_TX_SUB_CARRIER(__pdesc, __val) \ 238 SET_BITS_TO_LE_4BYTE(__pdesc+16, 20, 2, __val) 239 #define SET_TX_DESC_TX_STBC(__pdesc, __val) \ 240 SET_BITS_TO_LE_4BYTE(__pdesc+16, 22, 2, __val) 241 #define SET_TX_DESC_DATA_SHORT(__pdesc, __val) \ 242 SET_BITS_TO_LE_4BYTE(__pdesc+16, 24, 1, __val) 243 #define SET_TX_DESC_DATA_BW(__pdesc, __val) \ 244 SET_BITS_TO_LE_4BYTE(__pdesc+16, 25, 1, __val) 245 #define SET_TX_DESC_RTS_SHORT(__pdesc, __val) \ 246 SET_BITS_TO_LE_4BYTE(__pdesc+16, 26, 1, __val) 247 #define SET_TX_DESC_RTS_BW(__pdesc, __val) \ 248 SET_BITS_TO_LE_4BYTE(__pdesc+16, 27, 1, __val) 249 #define SET_TX_DESC_RTS_SC(__pdesc, __val) \ 250 SET_BITS_TO_LE_4BYTE(__pdesc+16, 28, 2, __val) 251 #define SET_TX_DESC_RTS_STBC(__pdesc, __val) \ 252 SET_BITS_TO_LE_4BYTE(__pdesc+16, 30, 2, __val) 297 #define SET_TX_DESC_TX_RATE(__pdesc, __val) \ 298 SET_BITS_TO_LE_4BYTE(__pdesc+20, 0, 6, __val) 299 #define SET_TX_DESC_DATA_SHORTGI(__pdesc, __val) \ 300 SET_BITS_TO_LE_4BYTE(__pdesc+20, 6, 1, __val) 301 #define SET_TX_DESC_CCX_TAG(__pdesc, __val) \ 302 SET_BITS_TO_LE_4BYTE(__pdesc+20, 7, 1, __val) 303 #define SET_TX_DESC_DATA_RATE_FB_LIMIT(__pdesc, __val) \ 304 SET_BITS_TO_LE_4BYTE(__pdesc+20, 8, 5, __val) 305 #define SET_TX_DESC_RTS_RATE_FB_LIMIT(__pdesc, __val) \ 306 SET_BITS_TO_LE_4BYTE(__pdesc+20, 13, 4, __val) 307 #define SET_TX_DESC_RETRY_LIMIT_ENABLE(__pdesc, __val) \ 308 SET_BITS_TO_LE_4BYTE(__pdesc+20, 17, 1, __val) 309 #define SET_TX_DESC_DATA_RETRY_LIMIT(__pdesc, __val) \ 310 SET_BITS_TO_LE_4BYTE(__pdesc+20, 18, 6, __val) 311 #define SET_TX_DESC_USB_TXAGG_NUM(__pdesc, __val) \ 312 SET_BITS_TO_LE_4BYTE(__pdesc+20, 24, 8, __val) 331 #define SET_TX_DESC_TXAGC_A(__pdesc, __val) \ 332 SET_BITS_TO_LE_4BYTE(__pdesc+24, 0, 5, __val) 333 #define SET_TX_DESC_TXAGC_B(__pdesc, __val) \ 334 SET_BITS_TO_LE_4BYTE(__pdesc+24, 5, 5, __val) 335 #define SET_TX_DESC_USE_MAX_LEN(__pdesc, __val) \ 336 SET_BITS_TO_LE_4BYTE(__pdesc+24, 10, 1, __val) 337 #define SET_TX_DESC_MAX_AGG_NUM(__pdesc, __val) \ 338 SET_BITS_TO_LE_4BYTE(__pdesc+24, 11, 5, __val) 339 #define SET_TX_DESC_MCSG1_MAX_LEN(__pdesc, __val) \ 340 SET_BITS_TO_LE_4BYTE(__pdesc+24, 16, 4, __val) 341 #define SET_TX_DESC_MCSG2_MAX_LEN(__pdesc, __val) \ 342 SET_BITS_TO_LE_4BYTE(__pdesc+24, 20, 4, __val) 343 #define SET_TX_DESC_MCSG3_MAX_LEN(__pdesc, __val) \ 344 SET_BITS_TO_LE_4BYTE(__pdesc+24, 24, 4, __val) 345 #define SET_TX_DESC_MCS7_SGI_MAX_LEN(__pdesc, __val)\ 346 SET_BITS_TO_LE_4BYTE(__pdesc+24, 28, 4, __val) 365 #define SET_TX_DESC_TX_BUFFER_SIZE(__pdesc, __val) \ 366 SET_BITS_TO_LE_4BYTE(__pdesc+28, 0, 16, __val) 367 #define SET_TX_DESC_MCSG4_MAX_LEN(__pdesc, __val) \ 368 SET_BITS_TO_LE_4BYTE(__pdesc+28, 16, 4, __val) 369 #define SET_TX_DESC_MCSG5_MAX_LEN(__pdesc, __val) \ 370 SET_BITS_TO_LE_4BYTE(__pdesc+28, 20, 4, __val) 371 #define SET_TX_DESC_MCSG6_MAX_LEN(__pdesc, __val) \ 372 SET_BITS_TO_LE_4BYTE(__pdesc+28, 24, 4, __val) 373 #define SET_TX_DESC_MCS15_SGI_MAX_LEN(__pdesc, __val) \ 374 SET_BITS_TO_LE_4BYTE(__pdesc+28, 28, 4, __val) 387 #define SET_TX_DESC_TX_BUFFER_ADDRESS(__pdesc, __val) \ 388 SET_BITS_TO_LE_4BYTE(__pdesc+32, 0, 32, __val) 389 #define SET_TX_DESC_TX_BUFFER_ADDRESS64(__pdesc, __val) \ 390 SET_BITS_TO_LE_4BYTE(__pdesc+36, 0, 32, __val) 397 #define SET_TX_DESC_NEXT_DESC_ADDRESS(__pdesc, __val) \ 398 SET_BITS_TO_LE_4BYTE(__pdesc+40, 0, 32, __val) 399 #define SET_TX_DESC_NEXT_DESC_ADDRESS64(__pdesc, __val) \ 400 SET_BITS_TO_LE_4BYTE(__pdesc+44, 0, 32, __val) 434 #define SET_RX_DESC_PKT_LEN(__pdesc, __val) \ 435 SET_BITS_TO_LE_4BYTE(__pdesc, 0, 14, __val) 436 #define SET_RX_DESC_EOR(__pdesc, __val) \ 437 SET_BITS_TO_LE_4BYTE(__pdesc, 30, 1, __val) 438 #define SET_RX_DESC_OWN(__pdesc, __val) \ 439 SET_BITS_TO_LE_4BYTE(__pdesc, 31, 1, __val) 507 #define SET_RX_DESC_BUFF_ADDR(__pdesc, __val) \ 508 SET_BITS_TO_LE_4BYTE(__pdesc+24, 0, 32, __val) 509 #define SET_RX_DESC_BUFF_ADDR64(__pdesc, __val) \ 510 SET_BITS_TO_LE_4BYTE(__pdesc+28, 0, 32, __val)
|
H A D | fw.h | 45 #define SET_H2CCMD_PWRMODE_PARM_MODE(__ph2ccmd, __val) \ 46 SET_BITS_TO_LE_1BYTE(__ph2ccmd, 0, 8, __val) 47 #define SET_H2CCMD_PWRMODE_PARM_SMART_PS(__ph2ccmd, __val) \ 48 SET_BITS_TO_LE_1BYTE((__ph2ccmd)+1, 0, 8, __val) 49 #define SET_H2CCMD_PWRMODE_PARM_BCN_PASS_TIME(__ph2ccmd, __val) \ 50 SET_BITS_TO_LE_1BYTE((__ph2ccmd)+2, 0, 8, __val) 51 #define SET_H2CCMD_JOINBSSRPT_PARM_OPMODE(__ph2ccmd, __val) \ 52 SET_BITS_TO_LE_1BYTE(__ph2ccmd, 0, 8, __val) 53 #define SET_H2CCMD_RSVDPAGE_LOC_PROBE_RSP(__ph2ccmd, __val) \ 54 SET_BITS_TO_LE_1BYTE(__ph2ccmd, 0, 8, __val) 55 #define SET_H2CCMD_RSVDPAGE_LOC_PSPOLL(__ph2ccmd, __val) \ 56 SET_BITS_TO_LE_1BYTE((__ph2ccmd)+1, 0, 8, __val) 57 #define SET_H2CCMD_RSVDPAGE_LOC_NULL_DATA(__ph2ccmd, __val) \ 58 SET_BITS_TO_LE_1BYTE((__ph2ccmd)+2, 0, 8, __val)
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192ce/ |
H A D | trx.h | 59 #define SET_BITS_OFFSET_LE(__pdesc, __shift, __len, __val) \ 63 (((u32)(__val) & BIT_LEN_MASK_32(__len)) << (__shift))))); 67 #define SET_TX_DESC_PKT_SIZE(__pdesc, __val) \ 68 SET_BITS_OFFSET_LE(__pdesc, 0, 16, __val) 69 #define SET_TX_DESC_OFFSET(__pdesc, __val) \ 70 SET_BITS_OFFSET_LE(__pdesc, 16, 8, __val) 71 #define SET_TX_DESC_BMC(__pdesc, __val) \ 72 SET_BITS_OFFSET_LE(__pdesc, 24, 1, __val) 73 #define SET_TX_DESC_HTC(__pdesc, __val) \ 74 SET_BITS_OFFSET_LE(__pdesc, 25, 1, __val) 75 #define SET_TX_DESC_LAST_SEG(__pdesc, __val) \ 76 SET_BITS_OFFSET_LE(__pdesc, 26, 1, __val) 77 #define SET_TX_DESC_FIRST_SEG(__pdesc, __val) \ 78 SET_BITS_OFFSET_LE(__pdesc, 27, 1, __val) 79 #define SET_TX_DESC_LINIP(__pdesc, __val) \ 80 SET_BITS_OFFSET_LE(__pdesc, 28, 1, __val) 81 #define SET_TX_DESC_NO_ACM(__pdesc, __val) \ 82 SET_BITS_OFFSET_LE(__pdesc, 29, 1, __val) 83 #define SET_TX_DESC_GF(__pdesc, __val) \ 84 SET_BITS_OFFSET_LE(__pdesc, 30, 1, __val) 85 #define SET_TX_DESC_OWN(__pdesc, __val) \ 86 SET_BITS_OFFSET_LE(__pdesc, 31, 1, __val) 109 #define SET_TX_DESC_MACID(__pdesc, __val) \ 110 SET_BITS_OFFSET_LE(__pdesc+4, 0, 5, __val) 111 #define SET_TX_DESC_AGG_BREAK(__pdesc, __val) \ 112 SET_BITS_OFFSET_LE(__pdesc+4, 5, 1, __val) 113 #define SET_TX_DESC_BK(__pdesc, __val) \ 114 SET_BITS_OFFSET_LE(__pdesc+4, 6, 1, __val) 115 #define SET_TX_DESC_RDG_ENABLE(__pdesc, __val) \ 116 SET_BITS_OFFSET_LE(__pdesc+4, 7, 1, __val) 117 #define SET_TX_DESC_QUEUE_SEL(__pdesc, __val) \ 118 SET_BITS_OFFSET_LE(__pdesc+4, 8, 5, __val) 119 #define SET_TX_DESC_RDG_NAV_EXT(__pdesc, __val) \ 120 SET_BITS_OFFSET_LE(__pdesc+4, 13, 1, __val) 121 #define SET_TX_DESC_LSIG_TXOP_EN(__pdesc, __val) \ 122 SET_BITS_OFFSET_LE(__pdesc+4, 14, 1, __val) 123 #define SET_TX_DESC_PIFS(__pdesc, __val) \ 124 SET_BITS_OFFSET_LE(__pdesc+4, 15, 1, __val) 125 #define SET_TX_DESC_RATE_ID(__pdesc, __val) \ 126 SET_BITS_OFFSET_LE(__pdesc+4, 16, 4, __val) 127 #define SET_TX_DESC_NAV_USE_HDR(__pdesc, __val) \ 128 SET_BITS_OFFSET_LE(__pdesc+4, 20, 1, __val) 129 #define SET_TX_DESC_EN_DESC_ID(__pdesc, __val) \ 130 SET_BITS_OFFSET_LE(__pdesc+4, 21, 1, __val) 131 #define SET_TX_DESC_SEC_TYPE(__pdesc, __val) \ 132 SET_BITS_OFFSET_LE(__pdesc+4, 22, 2, __val) 133 #define SET_TX_DESC_PKT_OFFSET(__pdesc, __val) \ 134 SET_BITS_OFFSET_LE(__pdesc+4, 24, 8, __val) 163 #define SET_TX_DESC_RTS_RC(__pdesc, __val) \ 164 SET_BITS_OFFSET_LE(__pdesc+8, 0, 6, __val) 165 #define SET_TX_DESC_DATA_RC(__pdesc, __val) \ 166 SET_BITS_OFFSET_LE(__pdesc+8, 6, 6, __val) 167 #define SET_TX_DESC_BAR_RTY_TH(__pdesc, __val) \ 168 SET_BITS_OFFSET_LE(__pdesc+8, 14, 2, __val) 169 #define SET_TX_DESC_MORE_FRAG(__pdesc, __val) \ 170 SET_BITS_OFFSET_LE(__pdesc+8, 17, 1, __val) 171 #define SET_TX_DESC_RAW(__pdesc, __val) \ 172 SET_BITS_OFFSET_LE(__pdesc+8, 18, 1, __val) 173 #define SET_TX_DESC_CCX(__pdesc, __val) \ 174 SET_BITS_OFFSET_LE(__pdesc+8, 19, 1, __val) 175 #define SET_TX_DESC_AMPDU_DENSITY(__pdesc, __val) \ 176 SET_BITS_OFFSET_LE(__pdesc+8, 20, 3, __val) 177 #define SET_TX_DESC_ANTSEL_A(__pdesc, __val) \ 178 SET_BITS_OFFSET_LE(__pdesc+8, 24, 1, __val) 179 #define SET_TX_DESC_ANTSEL_B(__pdesc, __val) \ 180 SET_BITS_OFFSET_LE(__pdesc+8, 25, 1, __val) 181 #define SET_TX_DESC_TX_ANT_CCK(__pdesc, __val) \ 182 SET_BITS_OFFSET_LE(__pdesc+8, 26, 2, __val) 183 #define SET_TX_DESC_TX_ANTL(__pdesc, __val) \ 184 SET_BITS_OFFSET_LE(__pdesc+8, 28, 2, __val) 185 #define SET_TX_DESC_TX_ANT_HT(__pdesc, __val) \ 186 SET_BITS_OFFSET_LE(__pdesc+8, 30, 2, __val) 213 #define SET_TX_DESC_NEXT_HEAP_PAGE(__pdesc, __val) \ 214 SET_BITS_OFFSET_LE(__pdesc+12, 0, 8, __val) 215 #define SET_TX_DESC_TAIL_PAGE(__pdesc, __val) \ 216 SET_BITS_OFFSET_LE(__pdesc+12, 8, 8, __val) 217 #define SET_TX_DESC_SEQ(__pdesc, __val) \ 218 SET_BITS_OFFSET_LE(__pdesc+12, 16, 12, __val) 219 #define SET_TX_DESC_PKT_ID(__pdesc, __val) \ 220 SET_BITS_OFFSET_LE(__pdesc+12, 28, 4, __val) 231 #define SET_TX_DESC_RTS_RATE(__pdesc, __val) \ 232 SET_BITS_OFFSET_LE(__pdesc+16, 0, 5, __val) 233 #define SET_TX_DESC_AP_DCFE(__pdesc, __val) \ 234 SET_BITS_OFFSET_LE(__pdesc+16, 5, 1, __val) 235 #define SET_TX_DESC_QOS(__pdesc, __val) \ 236 SET_BITS_OFFSET_LE(__pdesc+16, 6, 1, __val) 237 #define SET_TX_DESC_HWSEQ_EN(__pdesc, __val) \ 238 SET_BITS_OFFSET_LE(__pdesc+16, 7, 1, __val) 239 #define SET_TX_DESC_USE_RATE(__pdesc, __val) \ 240 SET_BITS_OFFSET_LE(__pdesc+16, 8, 1, __val) 241 #define SET_TX_DESC_DISABLE_RTS_FB(__pdesc, __val) \ 242 SET_BITS_OFFSET_LE(__pdesc+16, 9, 1, __val) 243 #define SET_TX_DESC_DISABLE_FB(__pdesc, __val) \ 244 SET_BITS_OFFSET_LE(__pdesc+16, 10, 1, __val) 245 #define SET_TX_DESC_CTS2SELF(__pdesc, __val) \ 246 SET_BITS_OFFSET_LE(__pdesc+16, 11, 1, __val) 247 #define SET_TX_DESC_RTS_ENABLE(__pdesc, __val) \ 248 SET_BITS_OFFSET_LE(__pdesc+16, 12, 1, __val) 249 #define SET_TX_DESC_HW_RTS_ENABLE(__pdesc, __val) \ 250 SET_BITS_OFFSET_LE(__pdesc+16, 13, 1, __val) 251 #define SET_TX_DESC_PORT_ID(__pdesc, __val) \ 252 SET_BITS_OFFSET_LE(__pdesc+16, 14, 1, __val) 253 #define SET_TX_DESC_WAIT_DCTS(__pdesc, __val) \ 254 SET_BITS_OFFSET_LE(__pdesc+16, 18, 1, __val) 255 #define SET_TX_DESC_CTS2AP_EN(__pdesc, __val) \ 256 SET_BITS_OFFSET_LE(__pdesc+16, 19, 1, __val) 257 #define SET_TX_DESC_TX_SUB_CARRIER(__pdesc, __val) \ 258 SET_BITS_OFFSET_LE(__pdesc+16, 20, 2, __val) 259 #define SET_TX_DESC_TX_STBC(__pdesc, __val) \ 260 SET_BITS_OFFSET_LE(__pdesc+16, 22, 2, __val) 261 #define SET_TX_DESC_DATA_SHORT(__pdesc, __val) \ 262 SET_BITS_OFFSET_LE(__pdesc+16, 24, 1, __val) 263 #define SET_TX_DESC_DATA_BW(__pdesc, __val) \ 264 SET_BITS_OFFSET_LE(__pdesc+16, 25, 1, __val) 265 #define SET_TX_DESC_RTS_SHORT(__pdesc, __val) \ 266 SET_BITS_OFFSET_LE(__pdesc+16, 26, 1, __val) 267 #define SET_TX_DESC_RTS_BW(__pdesc, __val) \ 268 SET_BITS_OFFSET_LE(__pdesc+16, 27, 1, __val) 269 #define SET_TX_DESC_RTS_SC(__pdesc, __val) \ 270 SET_BITS_OFFSET_LE(__pdesc+16, 28, 2, __val) 271 #define SET_TX_DESC_RTS_STBC(__pdesc, __val) \ 272 SET_BITS_OFFSET_LE(__pdesc+16, 30, 2, __val) 317 #define SET_TX_DESC_TX_RATE(__pdesc, __val) \ 318 SET_BITS_OFFSET_LE(__pdesc+20, 0, 6, __val) 319 #define SET_TX_DESC_DATA_SHORTGI(__pdesc, __val) \ 320 SET_BITS_OFFSET_LE(__pdesc+20, 6, 1, __val) 321 #define SET_TX_DESC_CCX_TAG(__pdesc, __val) \ 322 SET_BITS_OFFSET_LE(__pdesc+20, 7, 1, __val) 323 #define SET_TX_DESC_DATA_RATE_FB_LIMIT(__pdesc, __val) \ 324 SET_BITS_OFFSET_LE(__pdesc+20, 8, 5, __val) 325 #define SET_TX_DESC_RTS_RATE_FB_LIMIT(__pdesc, __val) \ 326 SET_BITS_OFFSET_LE(__pdesc+20, 13, 4, __val) 327 #define SET_TX_DESC_RETRY_LIMIT_ENABLE(__pdesc, __val) \ 328 SET_BITS_OFFSET_LE(__pdesc+20, 17, 1, __val) 329 #define SET_TX_DESC_DATA_RETRY_LIMIT(__pdesc, __val) \ 330 SET_BITS_OFFSET_LE(__pdesc+20, 18, 6, __val) 331 #define SET_TX_DESC_USB_TXAGG_NUM(__pdesc, __val) \ 332 SET_BITS_OFFSET_LE(__pdesc+20, 24, 8, __val) 351 #define SET_TX_DESC_TXAGC_A(__pdesc, __val) \ 352 SET_BITS_OFFSET_LE(__pdesc+24, 0, 5, __val) 353 #define SET_TX_DESC_TXAGC_B(__pdesc, __val) \ 354 SET_BITS_OFFSET_LE(__pdesc+24, 5, 5, __val) 355 #define SET_TX_DESC_USE_MAX_LEN(__pdesc, __val) \ 356 SET_BITS_OFFSET_LE(__pdesc+24, 10, 1, __val) 357 #define SET_TX_DESC_MAX_AGG_NUM(__pdesc, __val) \ 358 SET_BITS_OFFSET_LE(__pdesc+24, 11, 5, __val) 359 #define SET_TX_DESC_MCSG1_MAX_LEN(__pdesc, __val) \ 360 SET_BITS_OFFSET_LE(__pdesc+24, 16, 4, __val) 361 #define SET_TX_DESC_MCSG2_MAX_LEN(__pdesc, __val) \ 362 SET_BITS_OFFSET_LE(__pdesc+24, 20, 4, __val) 363 #define SET_TX_DESC_MCSG3_MAX_LEN(__pdesc, __val) \ 364 SET_BITS_OFFSET_LE(__pdesc+24, 24, 4, __val) 365 #define SET_TX_DESC_MCS7_SGI_MAX_LEN(__pdesc, __val) \ 366 SET_BITS_OFFSET_LE(__pdesc+24, 28, 4, __val) 385 #define SET_TX_DESC_TX_BUFFER_SIZE(__pdesc, __val) \ 386 SET_BITS_OFFSET_LE(__pdesc+28, 0, 16, __val) 387 #define SET_TX_DESC_MCSG4_MAX_LEN(__pdesc, __val) \ 388 SET_BITS_OFFSET_LE(__pdesc+28, 16, 4, __val) 389 #define SET_TX_DESC_MCSG5_MAX_LEN(__pdesc, __val) \ 390 SET_BITS_OFFSET_LE(__pdesc+28, 20, 4, __val) 391 #define SET_TX_DESC_MCSG6_MAX_LEN(__pdesc, __val) \ 392 SET_BITS_OFFSET_LE(__pdesc+28, 24, 4, __val) 393 #define SET_TX_DESC_MCS15_SGI_MAX_LEN(__pdesc, __val) \ 394 SET_BITS_OFFSET_LE(__pdesc+28, 28, 4, __val) 407 #define SET_TX_DESC_TX_BUFFER_ADDRESS(__pdesc, __val) \ 408 SET_BITS_OFFSET_LE(__pdesc+32, 0, 32, __val) 409 #define SET_TX_DESC_TX_BUFFER_ADDRESS64(__pdesc, __val) \ 410 SET_BITS_OFFSET_LE(__pdesc+36, 0, 32, __val) 417 #define SET_TX_DESC_NEXT_DESC_ADDRESS(__pdesc, __val) \ 418 SET_BITS_OFFSET_LE(__pdesc+40, 0, 32, __val) 419 #define SET_TX_DESC_NEXT_DESC_ADDRESS64(__pdesc, __val) \ 420 SET_BITS_OFFSET_LE(__pdesc+44, 0, 32, __val) 454 #define SET_RX_DESC_PKT_LEN(__pdesc, __val) \ 455 SET_BITS_OFFSET_LE(__pdesc, 0, 14, __val) 456 #define SET_RX_DESC_EOR(__pdesc, __val) \ 457 SET_BITS_OFFSET_LE(__pdesc, 30, 1, __val) 458 #define SET_RX_DESC_OWN(__pdesc, __val) \ 459 SET_BITS_OFFSET_LE(__pdesc, 31, 1, __val) 527 #define SET_RX_DESC_BUFF_ADDR(__pdesc, __val) \ 528 SET_BITS_OFFSET_LE(__pdesc+24, 0, 32, __val) 529 #define SET_RX_DESC_BUFF_ADDR64(__pdesc, __val) \ 530 SET_BITS_OFFSET_LE(__pdesc+28, 0, 32, __val)
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192de/ |
H A D | trx.h | 59 #define SET_BITS_OFFSET_LE(__pdesc, __shift, __len, __val) \ 63 (((u32)(__val) & BIT_LEN_MASK_32(__len)) << (__shift))))); 67 #define SET_TX_DESC_PKT_SIZE(__pdesc, __val) \ 68 SET_BITS_OFFSET_LE(__pdesc, 0, 16, __val) 69 #define SET_TX_DESC_OFFSET(__pdesc, __val) \ 70 SET_BITS_OFFSET_LE(__pdesc, 16, 8, __val) 71 #define SET_TX_DESC_BMC(__pdesc, __val) \ 72 SET_BITS_OFFSET_LE(__pdesc, 24, 1, __val) 73 #define SET_TX_DESC_HTC(__pdesc, __val) \ 74 SET_BITS_OFFSET_LE(__pdesc, 25, 1, __val) 75 #define SET_TX_DESC_LAST_SEG(__pdesc, __val) \ 76 SET_BITS_OFFSET_LE(__pdesc, 26, 1, __val) 77 #define SET_TX_DESC_FIRST_SEG(__pdesc, __val) \ 78 SET_BITS_OFFSET_LE(__pdesc, 27, 1, __val) 79 #define SET_TX_DESC_LINIP(__pdesc, __val) \ 80 SET_BITS_OFFSET_LE(__pdesc, 28, 1, __val) 81 #define SET_TX_DESC_NO_ACM(__pdesc, __val) \ 82 SET_BITS_OFFSET_LE(__pdesc, 29, 1, __val) 83 #define SET_TX_DESC_GF(__pdesc, __val) \ 84 SET_BITS_OFFSET_LE(__pdesc, 30, 1, __val) 85 #define SET_TX_DESC_OWN(__pdesc, __val) \ 86 SET_BITS_OFFSET_LE(__pdesc, 31, 1, __val) 109 #define SET_TX_DESC_MACID(__pdesc, __val) \ 110 SET_BITS_OFFSET_LE(__pdesc+4, 0, 5, __val) 111 #define SET_TX_DESC_AGG_ENABLE(__pdesc, __val) \ 112 SET_BITS_OFFSET_LE(__pdesc+4, 5, 1, __val) 113 #define SET_TX_DESC_BK(__pdesc, __val) \ 114 SET_BITS_OFFSET_LE(__pdesc+4, 6, 1, __val) 115 #define SET_TX_DESC_RDG_ENABLE(__pdesc, __val) \ 116 SET_BITS_OFFSET_LE(__pdesc+4, 7, 1, __val) 117 #define SET_TX_DESC_QUEUE_SEL(__pdesc, __val) \ 118 SET_BITS_OFFSET_LE(__pdesc+4, 8, 5, __val) 119 #define SET_TX_DESC_RDG_NAV_EXT(__pdesc, __val) \ 120 SET_BITS_OFFSET_LE(__pdesc+4, 13, 1, __val) 121 #define SET_TX_DESC_LSIG_TXOP_EN(__pdesc, __val) \ 122 SET_BITS_OFFSET_LE(__pdesc+4, 14, 1, __val) 123 #define SET_TX_DESC_PIFS(__pdesc, __val) \ 124 SET_BITS_OFFSET_LE(__pdesc+4, 15, 1, __val) 125 #define SET_TX_DESC_RATE_ID(__pdesc, __val) \ 126 SET_BITS_OFFSET_LE(__pdesc+4, 16, 4, __val) 127 #define SET_TX_DESC_NAV_USE_HDR(__pdesc, __val) \ 128 SET_BITS_OFFSET_LE(__pdesc+4, 20, 1, __val) 129 #define SET_TX_DESC_EN_DESC_ID(__pdesc, __val) \ 130 SET_BITS_OFFSET_LE(__pdesc+4, 21, 1, __val) 131 #define SET_TX_DESC_SEC_TYPE(__pdesc, __val) \ 132 SET_BITS_OFFSET_LE(__pdesc+4, 22, 2, __val) 133 #define SET_TX_DESC_PKT_OFFSET(__pdesc, __val) \ 134 SET_BITS_OFFSET_LE(__pdesc+4, 26, 8, __val) 163 #define SET_TX_DESC_RTS_RC(__pdesc, __val) \ 164 SET_BITS_OFFSET_LE(__pdesc+8, 0, 6, __val) 165 #define SET_TX_DESC_DATA_RC(__pdesc, __val) \ 166 SET_BITS_OFFSET_LE(__pdesc+8, 6, 6, __val) 167 #define SET_TX_DESC_BAR_RTY_TH(__pdesc, __val) \ 168 SET_BITS_OFFSET_LE(__pdesc+8, 14, 2, __val) 169 #define SET_TX_DESC_MORE_FRAG(__pdesc, __val) \ 170 SET_BITS_OFFSET_LE(__pdesc+8, 17, 1, __val) 171 #define SET_TX_DESC_RAW(__pdesc, __val) \ 172 SET_BITS_OFFSET_LE(__pdesc+8, 18, 1, __val) 173 #define SET_TX_DESC_CCX(__pdesc, __val) \ 174 SET_BITS_OFFSET_LE(__pdesc+8, 19, 1, __val) 175 #define SET_TX_DESC_AMPDU_DENSITY(__pdesc, __val) \ 176 SET_BITS_OFFSET_LE(__pdesc+8, 20, 3, __val) 177 #define SET_TX_DESC_ANTSEL_A(__pdesc, __val) \ 178 SET_BITS_OFFSET_LE(__pdesc+8, 24, 1, __val) 179 #define SET_TX_DESC_ANTSEL_B(__pdesc, __val) \ 180 SET_BITS_OFFSET_LE(__pdesc+8, 25, 1, __val) 181 #define SET_TX_DESC_TX_ANT_CCK(__pdesc, __val) \ 182 SET_BITS_OFFSET_LE(__pdesc+8, 26, 2, __val) 183 #define SET_TX_DESC_TX_ANTL(__pdesc, __val) \ 184 SET_BITS_OFFSET_LE(__pdesc+8, 28, 2, __val) 185 #define SET_TX_DESC_TX_ANT_HT(__pdesc, __val) \ 186 SET_BITS_OFFSET_LE(__pdesc+8, 30, 2, __val) 213 #define SET_TX_DESC_NEXT_HEAP_PAGE(__pdesc, __val) \ 214 SET_BITS_OFFSET_LE(__pdesc+12, 0, 8, __val) 215 #define SET_TX_DESC_TAIL_PAGE(__pdesc, __val) \ 216 SET_BITS_OFFSET_LE(__pdesc+12, 8, 8, __val) 217 #define SET_TX_DESC_SEQ(__pdesc, __val) \ 218 SET_BITS_OFFSET_LE(__pdesc+12, 16, 12, __val) 219 #define SET_TX_DESC_PKT_ID(__pdesc, __val) \ 220 SET_BITS_OFFSET_LE(__pdesc+12, 28, 4, __val) 231 #define SET_TX_DESC_RTS_RATE(__pdesc, __val) \ 232 SET_BITS_OFFSET_LE(__pdesc+16, 0, 5, __val) 233 #define SET_TX_DESC_AP_DCFE(__pdesc, __val) \ 234 SET_BITS_OFFSET_LE(__pdesc+16, 5, 1, __val) 235 #define SET_TX_DESC_QOS(__pdesc, __val) \ 236 SET_BITS_OFFSET_LE(__pdesc+16, 6, 1, __val) 237 #define SET_TX_DESC_HWSEQ_EN(__pdesc, __val) \ 238 SET_BITS_OFFSET_LE(__pdesc+16, 7, 1, __val) 239 #define SET_TX_DESC_USE_RATE(__pdesc, __val) \ 240 SET_BITS_OFFSET_LE(__pdesc+16, 8, 1, __val) 241 #define SET_TX_DESC_DISABLE_RTS_FB(__pdesc, __val) \ 242 SET_BITS_OFFSET_LE(__pdesc+16, 9, 1, __val) 243 #define SET_TX_DESC_DISABLE_FB(__pdesc, __val) \ 244 SET_BITS_OFFSET_LE(__pdesc+16, 10, 1, __val) 245 #define SET_TX_DESC_CTS2SELF(__pdesc, __val) \ 246 SET_BITS_OFFSET_LE(__pdesc+16, 11, 1, __val) 247 #define SET_TX_DESC_RTS_ENABLE(__pdesc, __val) \ 248 SET_BITS_OFFSET_LE(__pdesc+16, 12, 1, __val) 249 #define SET_TX_DESC_HW_RTS_ENABLE(__pdesc, __val) \ 250 SET_BITS_OFFSET_LE(__pdesc+16, 13, 1, __val) 251 #define SET_TX_DESC_PORT_ID(__pdesc, __val) \ 252 SET_BITS_OFFSET_LE(__pdesc+16, 14, 1, __val) 253 #define SET_TX_DESC_WAIT_DCTS(__pdesc, __val) \ 254 SET_BITS_OFFSET_LE(__pdesc+16, 18, 1, __val) 255 #define SET_TX_DESC_CTS2AP_EN(__pdesc, __val) \ 256 SET_BITS_OFFSET_LE(__pdesc+16, 19, 1, __val) 257 #define SET_TX_DESC_TX_SUB_CARRIER(__pdesc, __val) \ 258 SET_BITS_OFFSET_LE(__pdesc+16, 20, 2, __val) 259 #define SET_TX_DESC_TX_STBC(__pdesc, __val) \ 260 SET_BITS_OFFSET_LE(__pdesc+16, 22, 2, __val) 261 #define SET_TX_DESC_DATA_SHORT(__pdesc, __val) \ 262 SET_BITS_OFFSET_LE(__pdesc+16, 24, 1, __val) 263 #define SET_TX_DESC_DATA_BW(__pdesc, __val) \ 264 SET_BITS_OFFSET_LE(__pdesc+16, 25, 1, __val) 265 #define SET_TX_DESC_RTS_SHORT(__pdesc, __val) \ 266 SET_BITS_OFFSET_LE(__pdesc+16, 26, 1, __val) 267 #define SET_TX_DESC_RTS_BW(__pdesc, __val) \ 268 SET_BITS_OFFSET_LE(__pdesc+16, 27, 1, __val) 269 #define SET_TX_DESC_RTS_SC(__pdesc, __val) \ 270 SET_BITS_OFFSET_LE(__pdesc+16, 28, 2, __val) 271 #define SET_TX_DESC_RTS_STBC(__pdesc, __val) \ 272 SET_BITS_OFFSET_LE(__pdesc+16, 30, 2, __val) 317 #define SET_TX_DESC_TX_RATE(__pdesc, __val) \ 318 SET_BITS_OFFSET_LE(__pdesc+20, 0, 6, __val) 319 #define SET_TX_DESC_DATA_SHORTGI(__pdesc, __val) \ 320 SET_BITS_OFFSET_LE(__pdesc+20, 6, 1, __val) 321 #define SET_TX_DESC_CCX_TAG(__pdesc, __val) \ 322 SET_BITS_OFFSET_LE(__pdesc+20, 7, 1, __val) 323 #define SET_TX_DESC_DATA_RATE_FB_LIMIT(__pdesc, __val) \ 324 SET_BITS_OFFSET_LE(__pdesc+20, 8, 5, __val) 325 #define SET_TX_DESC_RTS_RATE_FB_LIMIT(__pdesc, __val) \ 326 SET_BITS_OFFSET_LE(__pdesc+20, 13, 4, __val) 327 #define SET_TX_DESC_RETRY_LIMIT_ENABLE(__pdesc, __val) \ 328 SET_BITS_OFFSET_LE(__pdesc+20, 17, 1, __val) 329 #define SET_TX_DESC_DATA_RETRY_LIMIT(__pdesc, __val) \ 330 SET_BITS_OFFSET_LE(__pdesc+20, 18, 6, __val) 331 #define SET_TX_DESC_USB_TXAGG_NUM(__pdesc, __val) \ 332 SET_BITS_OFFSET_LE(__pdesc+20, 24, 8, __val) 351 #define SET_TX_DESC_TXAGC_A(__pdesc, __val) \ 352 SET_BITS_OFFSET_LE(__pdesc+24, 0, 5, __val) 353 #define SET_TX_DESC_TXAGC_B(__pdesc, __val) \ 354 SET_BITS_OFFSET_LE(__pdesc+24, 5, 5, __val) 355 #define SET_TX_DESC_USE_MAX_LEN(__pdesc, __val) \ 356 SET_BITS_OFFSET_LE(__pdesc+24, 10, 1, __val) 357 #define SET_TX_DESC_MAX_AGG_NUM(__pdesc, __val) \ 358 SET_BITS_OFFSET_LE(__pdesc+24, 11, 5, __val) 359 #define SET_TX_DESC_MCSG1_MAX_LEN(__pdesc, __val) \ 360 SET_BITS_OFFSET_LE(__pdesc+24, 16, 4, __val) 361 #define SET_TX_DESC_MCSG2_MAX_LEN(__pdesc, __val) \ 362 SET_BITS_OFFSET_LE(__pdesc+24, 20, 4, __val) 363 #define SET_TX_DESC_MCSG3_MAX_LEN(__pdesc, __val) \ 364 SET_BITS_OFFSET_LE(__pdesc+24, 24, 4, __val) 365 #define SET_TX_DESC_MCS7_SGI_MAX_LEN(__pdesc, __val) \ 366 SET_BITS_OFFSET_LE(__pdesc+24, 28, 4, __val) 385 #define SET_TX_DESC_TX_BUFFER_SIZE(__pdesc, __val) \ 386 SET_BITS_OFFSET_LE(__pdesc+28, 0, 16, __val) 387 #define SET_TX_DESC_MCSG4_MAX_LEN(__pdesc, __val) \ 388 SET_BITS_OFFSET_LE(__pdesc+28, 16, 4, __val) 389 #define SET_TX_DESC_MCSG5_MAX_LEN(__pdesc, __val) \ 390 SET_BITS_OFFSET_LE(__pdesc+28, 20, 4, __val) 391 #define SET_TX_DESC_MCSG6_MAX_LEN(__pdesc, __val) \ 392 SET_BITS_OFFSET_LE(__pdesc+28, 24, 4, __val) 393 #define SET_TX_DESC_MCS15_SGI_MAX_LEN(__pdesc, __val) \ 394 SET_BITS_OFFSET_LE(__pdesc+28, 28, 4, __val) 407 #define SET_TX_DESC_TX_BUFFER_ADDRESS(__pdesc, __val) \ 408 SET_BITS_OFFSET_LE(__pdesc+32, 0, 32, __val) 409 #define SET_TX_DESC_TX_BUFFER_ADDRESS64(__pdesc, __val) \ 410 SET_BITS_OFFSET_LE(__pdesc+36, 0, 32, __val) 417 #define SET_TX_DESC_NEXT_DESC_ADDRESS(__pdesc, __val) \ 418 SET_BITS_OFFSET_LE(__pdesc+40, 0, 32, __val) 419 #define SET_TX_DESC_NEXT_DESC_ADDRESS64(__pdesc, __val) \ 420 SET_BITS_OFFSET_LE(__pdesc+44, 0, 32, __val) 454 #define SET_RX_DESC_PKT_LEN(__pdesc, __val) \ 455 SET_BITS_OFFSET_LE(__pdesc, 0, 14, __val) 456 #define SET_RX_DESC_EOR(__pdesc, __val) \ 457 SET_BITS_OFFSET_LE(__pdesc, 30, 1, __val) 458 #define SET_RX_DESC_OWN(__pdesc, __val) \ 459 SET_BITS_OFFSET_LE(__pdesc, 31, 1, __val) 527 #define SET_RX_DESC_BUFF_ADDR(__pdesc, __val) \ 528 SET_BITS_OFFSET_LE(__pdesc+24, 0, 32, __val) 529 #define SET_RX_DESC_BUFF_ADDR64(__pdesc, __val) \ 530 SET_BITS_OFFSET_LE(__pdesc+28, 0, 32, __val)
|
H A D | fw.h | 98 #define SET_H2CCMD_PWRMODE_PARM_MODE(__ph2ccmd, __val) \ 99 SET_BITS_TO_LE_1BYTE(__ph2ccmd, 0, 8, __val) 100 #define SET_H2CCMD_PWRMODE_PARM_SMART_PS(__ph2ccmd, __val) \ 101 SET_BITS_TO_LE_1BYTE((__ph2ccmd) + 1, 0, 8, __val) 102 #define SET_H2CCMD_PWRMODE_PARM_BCN_PASS_TIME(__ph2ccmd, __val) \ 103 SET_BITS_TO_LE_1BYTE((__ph2ccmd) + 2, 0, 8, __val) 104 #define SET_H2CCMD_JOINBSSRPT_PARM_OPMODE(__ph2ccmd, __val) \ 105 SET_BITS_TO_LE_1BYTE(__ph2ccmd, 0, 8, __val) 106 #define SET_H2CCMD_RSVDPAGE_LOC_PROBE_RSP(__ph2ccmd, __val) \ 107 SET_BITS_TO_LE_1BYTE(__ph2ccmd, 0, 8, __val) 108 #define SET_H2CCMD_RSVDPAGE_LOC_PSPOLL(__ph2ccmd, __val) \ 109 SET_BITS_TO_LE_1BYTE((__ph2ccmd) + 1, 0, 8, __val) 110 #define SET_H2CCMD_RSVDPAGE_LOC_NULL_DATA(__ph2ccmd, __val) \ 111 SET_BITS_TO_LE_1BYTE((__ph2ccmd) + 2, 0, 8, __val)
|
/linux-4.1.27/arch/unicore32/include/asm/ |
H A D | cputype.h | 22 unsigned int __val; \ 24 : "=r" (__val) \ 27 __val; \
|
/linux-4.1.27/include/asm-generic/ |
H A D | cputime_jiffies.h | 49 #define timespec_to_cputime(__val) \ 50 jiffies_to_cputime(timespec_to_jiffies(__val)) 51 #define cputime_to_timespec(__ct,__val) \ 52 jiffies_to_timespec(cputime_to_jiffies(__ct),__val) 57 #define timeval_to_cputime(__val) \ 58 jiffies_to_cputime(timeval_to_jiffies(__val)) 59 #define cputime_to_timeval(__ct,__val) \ 60 jiffies_to_timeval(cputime_to_jiffies(__ct),__val)
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192c/ |
H A D | fw_common.h | 93 #define SET_H2CCMD_PWRMODE_PARM_MODE(__ph2ccmd, __val) \ 94 SET_BITS_TO_LE_1BYTE(__ph2ccmd, 0, 8, __val) 95 #define SET_H2CCMD_PWRMODE_PARM_SMART_PS(__ph2ccmd, __val) \ 96 SET_BITS_TO_LE_1BYTE((__ph2ccmd)+1, 0, 8, __val) 97 #define SET_H2CCMD_PWRMODE_PARM_BCN_PASS_TIME(__ph2ccmd, __val) \ 98 SET_BITS_TO_LE_1BYTE((__ph2ccmd)+2, 0, 8, __val) 99 #define SET_H2CCMD_JOINBSSRPT_PARM_OPMODE(__ph2ccmd, __val) \ 100 SET_BITS_TO_LE_1BYTE(__ph2ccmd, 0, 8, __val) 101 #define SET_H2CCMD_RSVDPAGE_LOC_PROBE_RSP(__ph2ccmd, __val) \ 102 SET_BITS_TO_LE_1BYTE(__ph2ccmd, 0, 8, __val) 103 #define SET_H2CCMD_RSVDPAGE_LOC_PSPOLL(__ph2ccmd, __val) \ 104 SET_BITS_TO_LE_1BYTE((__ph2ccmd)+1, 0, 8, __val) 105 #define SET_H2CCMD_RSVDPAGE_LOC_NULL_DATA(__ph2ccmd, __val) \ 106 SET_BITS_TO_LE_1BYTE((__ph2ccmd)+2, 0, 8, __val)
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/ |
H A D | base.h | 96 #define SET_BEACON_PROBE_RSP_TIME_STAMP_LOW(__phdr, __val) \ 97 WRITEEF4BYTE(((u8 *)(__phdr)) + 24, __val) 98 #define SET_BEACON_PROBE_RSP_TIME_STAMP_HIGH(__phdr, __val) \ 99 WRITEEF4BYTE(((u8 *)(__phdr)) + 28, __val) 100 #define SET_BEACON_PROBE_RSP_BEACON_INTERVAL(__phdr, __val) \ 101 WRITEEF2BYTE(((u8 *)(__phdr)) + 32, __val) 104 #define SET_BEACON_PROBE_RSP_CAPABILITY_INFO(__phdr, __val) \ 105 WRITEEF2BYTE(((u8 *)(__phdr)) + 34, __val) 106 #define MASK_BEACON_PROBE_RSP_CAPABILITY_INFO(__phdr, __val) \ 108 (GET_BEACON_PROBE_RSP_CAPABILITY_INFO(__phdr) & (~(__val))))
|
H A D | wifi.h | 2804 #define SET_BITS_TO_LE_4BYTE(__pstart, __bitoffset, __bitlen, __val) \ 2808 ((((u32)__val) & BIT_LEN_MASK_32(__bitlen)) << (__bitoffset)) \ 2810 #define SET_BITS_TO_LE_2BYTE(__pstart, __bitoffset, __bitlen, __val) \ 2814 ((((u16)__val) & BIT_LEN_MASK_16(__bitlen)) << (__bitoffset)) \ 2816 #define SET_BITS_TO_LE_1BYTE(__pstart, __bitoffset, __bitlen, __val) \ 2820 ((((u8)__val) & BIT_LEN_MASK_8(__bitlen)) << (__bitoffset)) \
|
/linux-4.1.27/arch/avr32/include/asm/ |
H A D | io.h | 84 type __val; \ 87 __val = pfx##ioswab##bwl(__addr, val); \ 91 *__addr = __val; \ 97 type __val; \ 103 __val = *__addr; \ 104 return pfx##ioswab##bwl(__addr, __val); \ 111 type __val; \ 114 __val = pfx##ioswab##bwl(__addr, val); \ 118 *__addr = __val; \ 125 type __val; \ 131 __val = *__addr; \ 134 return pfx##ioswab##bwl(__addr, __val); \
|
/linux-4.1.27/sound/drivers/pcsp/ |
H A D | pcsp.h | 42 u64 __val = 1000000000ULL * (div); \ 43 do_div(__val, PIT_TICK_RATE); \ 44 __val; \
|
/linux-4.1.27/drivers/staging/rtl8188eu/include/ |
H A D | basic_types.h | 159 #define SET_BITS_TO_LE_4BYTE(__pstart, __bitoffset, __bitlen, __val) \ 163 ((((u32)__val) & BIT_LEN_MASK_32(__bitlen)) << (__bitoffset)) \ 166 #define SET_BITS_TO_LE_2BYTE(__pstart, __bitoffset, __bitlen, __val) \ 170 ((((u16)__val) & BIT_LEN_MASK_16(__bitlen)) << (__bitoffset)) \ 173 #define SET_BITS_TO_LE_1BYTE(__pstart, __bitoffset, __bitlen, __val) \ 177 ((((u8)__val) & BIT_LEN_MASK_8(__bitlen)) << (__bitoffset)) \
|
/linux-4.1.27/arch/x86/include/asm/ |
H A D | microcode.h | 6 u64 __val = native_read_msr((msr)); \ 7 (void)((val1) = (u32)__val); \ 8 (void)((val2) = (u32)(__val >> 32)); \
|
H A D | msr.h | 142 u64 __val = native_read_msr((msr)); \ 143 (void)((low) = (u32)__val); \ 144 (void)((high) = (u32)(__val >> 32)); \ 168 u64 __val = native_read_msr_safe((msr), &__err); \ 169 (*low) = (u32)__val; \ 170 (*high) = (u32)(__val >> 32); \
|
H A D | segment.h | 257 unsigned short __val = (value); \ 269 : "+r" (__val) : : "memory"); \
|
H A D | paravirt.h | 226 unsigned long __val = paravirt_rdtscp(&__aux); \ 227 (low) = (u32)__val; \ 228 (high) = (u32)(__val >> 32); \
|
/linux-4.1.27/arch/arm64/include/asm/ |
H A D | cputype.h | 36 u64 __val; \ 37 asm("mrs %0, " #reg : "=r" (__val)); \ 38 __val; \
|
/linux-4.1.27/arch/arc/plat-arcfpga/include/plat/ |
H A D | smp.h | 55 uint32_t __val; \ 56 __val = (((irq & 0xFF) << 8) | (cmd & 0xFF)); \ 57 write_aux_reg(ARC_AUX_IDU_REG_CMD, __val); \
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192cu/ |
H A D | trx.h | 115 #define SET_BITS_OFFSET_LE(__pdesc, __shift, __len, __val) \ 119 (((u32)(__val) & BIT_LEN_MASK_32(__len)) << (__shift))))); 359 #define SET_TX_DESC_TX_RATE(__pdesc, __val) \ 360 SET_BITS_OFFSET_LE(__pdesc+20, 0, 6, __val) 361 #define SET_TX_DESC_DATA_SHORTGI(__pdesc, __val) \ 362 SET_BITS_OFFSET_LE(__pdesc+20, 6, 1, __val) 363 #define SET_TX_DESC_CCX_TAG(__pdesc, __val) \ 364 SET_BITS_OFFSET_LE(__pdesc+20, 7, 1, __val)
|
/linux-4.1.27/drivers/gpu/drm/msm/mdp/mdp5/ |
H A D | mdp5_cfg.h | 103 typeof(intf_type) __val = (intf_type); \ 104 (__val) >= INTF_VIRTUAL ? true : false; })
|
/linux-4.1.27/arch/arm/include/asm/ |
H A D | cputype.h | 89 unsigned int __val; \ 91 : "=r" (__val) \ 94 __val; \ 104 unsigned int __val; \ 106 : "=r" (__val) \ 109 __val; \
|
/linux-4.1.27/arch/mips/include/asm/ |
H A D | io.h | 317 type __val; \ 323 __val = pfx##ioswab##bwlq(__mem, val); \ 326 *__mem = __val; \ 342 : "0" (__val), "m" (*__mem)); \ 352 type __val; \ 357 __val = *__mem; \ 369 : "=r" (__val) \ 374 __val = 0; \ 378 return pfx##ioswab##bwlq(__mem, __val); \ 386 type __val; \ 392 __val = pfx##ioswab##bwlq(__addr, val); \ 397 *__addr = __val; \ 404 type __val; \ 410 __val = *__addr; \ 413 return pfx##ioswab##bwlq(__addr, __val); \
|
H A D | mipsregs.h | 1006 unsigned long long __val; \ 1018 : "=r" (__val)); \ 1027 : "=r" (__val)); \ 1030 __val; \
|
/linux-4.1.27/arch/mips/include/asm/netlogic/ |
H A D | mips-extns.h | 176 unsigned long long __val; \ 188 : "=r" (__val)); \ 197 : "=r" (__val)); \ 200 __val; \
|
/linux-4.1.27/arch/parisc/include/asm/ |
H A D | uaccess.h | 182 #define __put_kernel_asm64(__val, ptr) do { \ 189 : "r"(ptr), "r"(__val), "0"(__pu_err) \ 193 #define __put_user_asm64(__val, ptr) do { \ 200 : "r"(ptr), "r"(__val), "0"(__pu_err) \
|
/linux-4.1.27/arch/x86/kernel/ |
H A D | vm86_32.c | 438 __u8 __val = val; \ 440 if (put_user(__val, base + ptr) < 0) \ 446 __u16 __val = val; \ 448 if (put_user(val_byte(__val, 1), base + ptr) < 0) \ 451 if (put_user(val_byte(__val, 0), base + ptr) < 0) \ 457 __u32 __val = val; \ 459 if (put_user(val_byte(__val, 3), base + ptr) < 0) \ 462 if (put_user(val_byte(__val, 2), base + ptr) < 0) \ 465 if (put_user(val_byte(__val, 1), base + ptr) < 0) \ 468 if (put_user(val_byte(__val, 0), base + ptr) < 0) \
|
/linux-4.1.27/include/linux/ |
H A D | compiler.h | 250 ({ union { typeof(x) __val; char __c[1]; } __u; __read_once_size(&(x), __u.__c, sizeof(x)); __u.__val; }) 253 ({ typeof(x) __val = (val); __write_once_size(&(x), &__val, sizeof(__val)); __val; })
|
H A D | kfifo.h | 390 typeof(*__tmp->const_type) __val = (val); \ 395 __ret = __kfifo_in_r(__kfifo, &__val, sizeof(__val), \ 404 (typeof(*__tmp->type))__val; \ 428 typeof(__tmp->ptr) __val = (val); \ 433 __ret = __kfifo_out_r(__kfifo, __val, sizeof(*__val), \ 438 *(typeof(__tmp->type))__val = \ 467 typeof(__tmp->ptr) __val = (val); \ 472 __ret = __kfifo_out_peek_r(__kfifo, __val, sizeof(*__val), \ 477 *(typeof(__tmp->type))__val = \
|
/linux-4.1.27/arch/s390/include/asm/ |
H A D | bitops.h | 61 #define __BITOPS_LOOP(__addr, __val, __op_string, __barrier) \ 71 : "d" (__val) \ 83 #define __BITOPS_LOOP(__addr, __val, __op_string, __barrier) \ 95 : "d" (__val) \
|
/linux-4.1.27/arch/m68k/atari/ |
H A D | time.c | 92 ({ unsigned char __val; \ 94 __val = tt_rtc.data; \ 95 __val; \
|
/linux-4.1.27/drivers/scsi/bfa/ |
H A D | bfa_ioc_ct.c | 28 #define bfa_ioc_ct_get_sync_ackd(__val) (__val & 0x0000ffff) 29 #define bfa_ioc_ct_clear_sync_ackd(__val) (__val & 0xffff0000) 30 #define bfa_ioc_ct_get_sync_reqd(__val) (__val >> BFA_IOC_SYNC_REQD_SH)
|
H A D | bfi.h | 438 #define BFI_ADAPTER_SETP(__prop, __val) \ 439 ((__val) << BFI_ADAPTER_ ## __prop ## _SH)
|
/linux-4.1.27/drivers/net/ethernet/brocade/bna/ |
H A D | bfa_ioc_ct.c | 29 #define bfa_ioc_ct_get_sync_ackd(__val) (__val & 0x0000ffff) 30 #define bfa_ioc_ct_clear_sync_ackd(__val) (__val & 0xffff0000) 31 #define bfa_ioc_ct_get_sync_reqd(__val) (__val >> BFA_IOC_SYNC_REQD_SH)
|
H A D | bfi.h | 338 #define BFI_ADAPTER_SETP(__prop, __val) \ 339 ((__val) << BFI_ADAPTER_ ## __prop ## _SH)
|
/linux-4.1.27/arch/sh/include/asm/ |
H A D | io.h | 171 type __val; \ 174 __val = *__addr; \ 177 return __val; \
|
/linux-4.1.27/arch/ia64/include/asm/ |
H A D | paravirt_privop.h | 461 register unsigned long __val asm ("r8") = val; \ 472 "1"(__reg), "0"(__val) \
|
/linux-4.1.27/drivers/scsi/ |
H A D | virtio_scsi.c | 794 typeof(((struct virtio_scsi_config *)0)->fld) __val; \ 795 virtio_cread(vdev, struct virtio_scsi_config, fld, &__val); \ 796 __val; \ 801 typeof(((struct virtio_scsi_config *)0)->fld) __val = (val); \ 802 virtio_cwrite(vdev, struct virtio_scsi_config, fld, &__val); \
|
/linux-4.1.27/tools/lib/traceevent/ |
H A D | event-parse.h | 589 unsigned long long __val; \ 591 memcpy(&__val, (ptr), sizeof(unsigned long long)); \ 592 __data2host8(pevent, __val); \
|
/linux-4.1.27/drivers/media/dvb-frontends/ |
H A D | lgdt3305.c | 167 u8 __val; \ 168 int ret = lgdt3305_read_reg(state, reg, &__val); \ 170 __val = 0; \ 171 __val; \
|
H A D | lgdt3306a.c | 169 u8 __val; \ 170 int ret = lgdt3306a_read_reg(state, reg, &__val); \ 172 __val = 0; \ 173 __val; \
|
/linux-4.1.27/arch/sparc/kernel/ |
H A D | iommu.c | 42 #define iommu_write(__reg, __val) \ 45 : "r" (__val), "r" (__reg), \
|
H A D | prom_irqtrans.c | 325 #define schizo_write(__reg, __val) \ 328 : "r" (__val), "r" (__reg), \
|
/linux-4.1.27/drivers/net/ethernet/smsc/ |
H A D | smc91x.h | 1011 unsigned int __val = SMC_inl(ioaddr, DATA_REG(lp)); \ 1012 (status) = __val & 0xffff; \ 1013 (length) = __val >> 16; \
|
/linux-4.1.27/drivers/net/ethernet/sun/ |
H A D | sunhme.c | 244 #define hme_write32(__hp, __reg, __val) \ 245 ((__hp)->write32((__reg), (__val))) 265 #define hme_write32(__hp, __reg, __val) \ 266 sbus_writel((__val), (__reg)) 290 #define hme_write32(__hp, __reg, __val) \ 291 writel((__val), (__reg))
|
/linux-4.1.27/arch/arm/kvm/ |
H A D | coproc.c | 670 * variable. Make sure that register size matches sizeof(*__val). 681 * Make sure that register size matches sizeof(*__val).
|
/linux-4.1.27/drivers/block/ |
H A D | ataflop.c | 234 unsigned short __val; \ 238 __val = dma_wd.fdc_acces_seccount; \ 241 __val & 0xff; \
|
/linux-4.1.27/kernel/sched/ |
H A D | core.c | 483 ({ typeof(*(ptr)) __old, __val = *(ptr); \ 485 __old = cmpxchg((ptr), __val, __val | (val)); \ 486 if (__old == __val) \ 488 __val = __old; \
|
/linux-4.1.27/drivers/net/ethernet/broadcom/ |
H A D | tg3.c | 10830 do { u32 __val = tr32(REG); \ 10831 (PSTAT)->low += __val; \ 10832 if ((PSTAT)->low < __val) \
|