diff options
author | Hariprasad Shenai <hariprasad@chelsio.com> | 2015-01-15 22:54:48 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-01-16 01:07:02 -0500 |
commit | cf7fe64aee90b0901660e90d335941969c37bd7a (patch) | |
tree | 2df6b3f3e77b549b274282b4a11f596579f95d29 | |
parent | a56c66e8089ea8474a26af1c7da9b5d7ad3017cb (diff) |
iw_cxgb4: Cleanup register defines/MACROS defined in t4fw_ri_api.h
Cleanup all the MACROS that are defined in t4fw_ri_api.h and affected files
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/infiniband/hw/cxgb4/cm.c | 30 | ||||
-rw-r--r-- | drivers/infiniband/hw/cxgb4/cq.c | 22 | ||||
-rw-r--r-- | drivers/infiniband/hw/cxgb4/device.c | 12 | ||||
-rw-r--r-- | drivers/infiniband/hw/cxgb4/ev.c | 12 | ||||
-rw-r--r-- | drivers/infiniband/hw/cxgb4/mem.c | 18 | ||||
-rw-r--r-- | drivers/infiniband/hw/cxgb4/qp.c | 60 | ||||
-rw-r--r-- | drivers/infiniband/hw/cxgb4/t4fw_ri_api.h | 812 |
7 files changed, 483 insertions, 483 deletions
diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c index 694e03075b4b..57176ddd4c50 100644 --- a/drivers/infiniband/hw/cxgb4/cm.c +++ b/drivers/infiniband/hw/cxgb4/cm.c | |||
@@ -674,7 +674,7 @@ static int send_connect(struct c4iw_ep *ep) | |||
674 | opt2 |= WND_SCALE_EN_F; | 674 | opt2 |= WND_SCALE_EN_F; |
675 | if (is_t5(ep->com.dev->rdev.lldi.adapter_type)) { | 675 | if (is_t5(ep->com.dev->rdev.lldi.adapter_type)) { |
676 | opt2 |= T5_OPT_2_VALID_F; | 676 | opt2 |= T5_OPT_2_VALID_F; |
677 | opt2 |= V_CONG_CNTRL(CONG_ALG_TAHOE); | 677 | opt2 |= CONG_CNTRL_V(CONG_ALG_TAHOE); |
678 | opt2 |= CONG_CNTRL_VALID; /* OPT_2_ISS for T5 */ | 678 | opt2 |= CONG_CNTRL_VALID; /* OPT_2_ISS for T5 */ |
679 | } | 679 | } |
680 | t4_set_arp_err_handler(skb, ep, act_open_req_arp_failure); | 680 | t4_set_arp_err_handler(skb, ep, act_open_req_arp_failure); |
@@ -1258,8 +1258,8 @@ static int update_rx_credits(struct c4iw_ep *ep, u32 credits) | |||
1258 | OPCODE_TID(req) = cpu_to_be32(MK_OPCODE_TID(CPL_RX_DATA_ACK, | 1258 | OPCODE_TID(req) = cpu_to_be32(MK_OPCODE_TID(CPL_RX_DATA_ACK, |
1259 | ep->hwtid)); | 1259 | ep->hwtid)); |
1260 | req->credit_dack = cpu_to_be32(credits | RX_FORCE_ACK_F | | 1260 | req->credit_dack = cpu_to_be32(credits | RX_FORCE_ACK_F | |
1261 | F_RX_DACK_CHANGE | | 1261 | RX_DACK_CHANGE_F | |
1262 | V_RX_DACK_MODE(dack_mode)); | 1262 | RX_DACK_MODE_V(dack_mode)); |
1263 | set_wr_txq(skb, CPL_PRIORITY_ACK, ep->ctrlq_idx); | 1263 | set_wr_txq(skb, CPL_PRIORITY_ACK, ep->ctrlq_idx); |
1264 | c4iw_ofld_send(&ep->com.dev->rdev, skb); | 1264 | c4iw_ofld_send(&ep->com.dev->rdev, skb); |
1265 | return credits; | 1265 | return credits; |
@@ -2205,15 +2205,15 @@ static void accept_cr(struct c4iw_ep *ep, struct sk_buff *skb, | |||
2205 | const struct tcphdr *tcph; | 2205 | const struct tcphdr *tcph; |
2206 | u32 hlen = ntohl(req->hdr_len); | 2206 | u32 hlen = ntohl(req->hdr_len); |
2207 | 2207 | ||
2208 | tcph = (const void *)(req + 1) + G_ETH_HDR_LEN(hlen) + | 2208 | tcph = (const void *)(req + 1) + ETH_HDR_LEN_G(hlen) + |
2209 | G_IP_HDR_LEN(hlen); | 2209 | IP_HDR_LEN_G(hlen); |
2210 | if (tcph->ece && tcph->cwr) | 2210 | if (tcph->ece && tcph->cwr) |
2211 | opt2 |= CCTRL_ECN_V(1); | 2211 | opt2 |= CCTRL_ECN_V(1); |
2212 | } | 2212 | } |
2213 | if (is_t5(ep->com.dev->rdev.lldi.adapter_type)) { | 2213 | if (is_t5(ep->com.dev->rdev.lldi.adapter_type)) { |
2214 | u32 isn = (prandom_u32() & ~7UL) - 1; | 2214 | u32 isn = (prandom_u32() & ~7UL) - 1; |
2215 | opt2 |= T5_OPT_2_VALID_F; | 2215 | opt2 |= T5_OPT_2_VALID_F; |
2216 | opt2 |= V_CONG_CNTRL(CONG_ALG_TAHOE); | 2216 | opt2 |= CONG_CNTRL_V(CONG_ALG_TAHOE); |
2217 | opt2 |= CONG_CNTRL_VALID; /* OPT_2_ISS for T5 */ | 2217 | opt2 |= CONG_CNTRL_VALID; /* OPT_2_ISS for T5 */ |
2218 | rpl5 = (void *)rpl; | 2218 | rpl5 = (void *)rpl; |
2219 | memset(&rpl5->iss, 0, roundup(sizeof(*rpl5)-sizeof(*rpl), 16)); | 2219 | memset(&rpl5->iss, 0, roundup(sizeof(*rpl5)-sizeof(*rpl), 16)); |
@@ -2245,8 +2245,8 @@ static void get_4tuple(struct cpl_pass_accept_req *req, int *iptype, | |||
2245 | __u8 *local_ip, __u8 *peer_ip, | 2245 | __u8 *local_ip, __u8 *peer_ip, |
2246 | __be16 *local_port, __be16 *peer_port) | 2246 | __be16 *local_port, __be16 *peer_port) |
2247 | { | 2247 | { |
2248 | int eth_len = G_ETH_HDR_LEN(be32_to_cpu(req->hdr_len)); | 2248 | int eth_len = ETH_HDR_LEN_G(be32_to_cpu(req->hdr_len)); |
2249 | int ip_len = G_IP_HDR_LEN(be32_to_cpu(req->hdr_len)); | 2249 | int ip_len = IP_HDR_LEN_G(be32_to_cpu(req->hdr_len)); |
2250 | struct iphdr *ip = (struct iphdr *)((u8 *)(req + 1) + eth_len); | 2250 | struct iphdr *ip = (struct iphdr *)((u8 *)(req + 1) + eth_len); |
2251 | struct ipv6hdr *ip6 = (struct ipv6hdr *)((u8 *)(req + 1) + eth_len); | 2251 | struct ipv6hdr *ip6 = (struct ipv6hdr *)((u8 *)(req + 1) + eth_len); |
2252 | struct tcphdr *tcp = (struct tcphdr *) | 2252 | struct tcphdr *tcp = (struct tcphdr *) |
@@ -3500,20 +3500,20 @@ static void build_cpl_pass_accept_req(struct sk_buff *skb, int stid , u8 tos) | |||
3500 | 3500 | ||
3501 | req = (struct cpl_pass_accept_req *)__skb_push(skb, sizeof(*req)); | 3501 | req = (struct cpl_pass_accept_req *)__skb_push(skb, sizeof(*req)); |
3502 | memset(req, 0, sizeof(*req)); | 3502 | memset(req, 0, sizeof(*req)); |
3503 | req->l2info = cpu_to_be16(V_SYN_INTF(intf) | | 3503 | req->l2info = cpu_to_be16(SYN_INTF_V(intf) | |
3504 | V_SYN_MAC_IDX(RX_MACIDX_G( | 3504 | SYN_MAC_IDX_V(RX_MACIDX_G( |
3505 | (__force int) htonl(l2info))) | | 3505 | (__force int) htonl(l2info))) | |
3506 | F_SYN_XACT_MATCH); | 3506 | SYN_XACT_MATCH_F); |
3507 | eth_hdr_len = is_t4(dev->rdev.lldi.adapter_type) ? | 3507 | eth_hdr_len = is_t4(dev->rdev.lldi.adapter_type) ? |
3508 | RX_ETHHDR_LEN_G((__force int)htonl(l2info)) : | 3508 | RX_ETHHDR_LEN_G((__force int)htonl(l2info)) : |
3509 | RX_T5_ETHHDR_LEN_G((__force int)htonl(l2info)); | 3509 | RX_T5_ETHHDR_LEN_G((__force int)htonl(l2info)); |
3510 | req->hdr_len = cpu_to_be32(V_SYN_RX_CHAN(RX_CHAN_G( | 3510 | req->hdr_len = cpu_to_be32(SYN_RX_CHAN_V(RX_CHAN_G( |
3511 | (__force int) htonl(l2info))) | | 3511 | (__force int) htonl(l2info))) | |
3512 | V_TCP_HDR_LEN(RX_TCPHDR_LEN_G( | 3512 | TCP_HDR_LEN_V(RX_TCPHDR_LEN_G( |
3513 | (__force int) htons(hdr_len))) | | 3513 | (__force int) htons(hdr_len))) | |
3514 | V_IP_HDR_LEN(RX_IPHDR_LEN_G( | 3514 | IP_HDR_LEN_V(RX_IPHDR_LEN_G( |
3515 | (__force int) htons(hdr_len))) | | 3515 | (__force int) htons(hdr_len))) | |
3516 | V_ETH_HDR_LEN(RX_ETHHDR_LEN_G(eth_hdr_len))); | 3516 | ETH_HDR_LEN_V(RX_ETHHDR_LEN_G(eth_hdr_len))); |
3517 | req->vlan = (__force __be16) vlantag; | 3517 | req->vlan = (__force __be16) vlantag; |
3518 | req->len = (__force __be16) len; | 3518 | req->len = (__force __be16) len; |
3519 | req->tos_stid = cpu_to_be32(PASS_OPEN_TID_V(stid) | | 3519 | req->tos_stid = cpu_to_be32(PASS_OPEN_TID_V(stid) | |
diff --git a/drivers/infiniband/hw/cxgb4/cq.c b/drivers/infiniband/hw/cxgb4/cq.c index 39b0da39a08e..ab7692ac2044 100644 --- a/drivers/infiniband/hw/cxgb4/cq.c +++ b/drivers/infiniband/hw/cxgb4/cq.c | |||
@@ -52,7 +52,7 @@ static int destroy_cq(struct c4iw_rdev *rdev, struct t4_cq *cq, | |||
52 | memset(res_wr, 0, wr_len); | 52 | memset(res_wr, 0, wr_len); |
53 | res_wr->op_nres = cpu_to_be32( | 53 | res_wr->op_nres = cpu_to_be32( |
54 | FW_WR_OP_V(FW_RI_RES_WR) | | 54 | FW_WR_OP_V(FW_RI_RES_WR) | |
55 | V_FW_RI_RES_WR_NRES(1) | | 55 | FW_RI_RES_WR_NRES_V(1) | |
56 | FW_WR_COMPL_F); | 56 | FW_WR_COMPL_F); |
57 | res_wr->len16_pkd = cpu_to_be32(DIV_ROUND_UP(wr_len, 16)); | 57 | res_wr->len16_pkd = cpu_to_be32(DIV_ROUND_UP(wr_len, 16)); |
58 | res_wr->cookie = (unsigned long) &wr_wait; | 58 | res_wr->cookie = (unsigned long) &wr_wait; |
@@ -122,7 +122,7 @@ static int create_cq(struct c4iw_rdev *rdev, struct t4_cq *cq, | |||
122 | memset(res_wr, 0, wr_len); | 122 | memset(res_wr, 0, wr_len); |
123 | res_wr->op_nres = cpu_to_be32( | 123 | res_wr->op_nres = cpu_to_be32( |
124 | FW_WR_OP_V(FW_RI_RES_WR) | | 124 | FW_WR_OP_V(FW_RI_RES_WR) | |
125 | V_FW_RI_RES_WR_NRES(1) | | 125 | FW_RI_RES_WR_NRES_V(1) | |
126 | FW_WR_COMPL_F); | 126 | FW_WR_COMPL_F); |
127 | res_wr->len16_pkd = cpu_to_be32(DIV_ROUND_UP(wr_len, 16)); | 127 | res_wr->len16_pkd = cpu_to_be32(DIV_ROUND_UP(wr_len, 16)); |
128 | res_wr->cookie = (unsigned long) &wr_wait; | 128 | res_wr->cookie = (unsigned long) &wr_wait; |
@@ -131,17 +131,17 @@ static int create_cq(struct c4iw_rdev *rdev, struct t4_cq *cq, | |||
131 | res->u.cq.op = FW_RI_RES_OP_WRITE; | 131 | res->u.cq.op = FW_RI_RES_OP_WRITE; |
132 | res->u.cq.iqid = cpu_to_be32(cq->cqid); | 132 | res->u.cq.iqid = cpu_to_be32(cq->cqid); |
133 | res->u.cq.iqandst_to_iqandstindex = cpu_to_be32( | 133 | res->u.cq.iqandst_to_iqandstindex = cpu_to_be32( |
134 | V_FW_RI_RES_WR_IQANUS(0) | | 134 | FW_RI_RES_WR_IQANUS_V(0) | |
135 | V_FW_RI_RES_WR_IQANUD(1) | | 135 | FW_RI_RES_WR_IQANUD_V(1) | |
136 | F_FW_RI_RES_WR_IQANDST | | 136 | FW_RI_RES_WR_IQANDST_F | |
137 | V_FW_RI_RES_WR_IQANDSTINDEX( | 137 | FW_RI_RES_WR_IQANDSTINDEX_V( |
138 | rdev->lldi.ciq_ids[cq->vector])); | 138 | rdev->lldi.ciq_ids[cq->vector])); |
139 | res->u.cq.iqdroprss_to_iqesize = cpu_to_be16( | 139 | res->u.cq.iqdroprss_to_iqesize = cpu_to_be16( |
140 | F_FW_RI_RES_WR_IQDROPRSS | | 140 | FW_RI_RES_WR_IQDROPRSS_F | |
141 | V_FW_RI_RES_WR_IQPCIECH(2) | | 141 | FW_RI_RES_WR_IQPCIECH_V(2) | |
142 | V_FW_RI_RES_WR_IQINTCNTTHRESH(0) | | 142 | FW_RI_RES_WR_IQINTCNTTHRESH_V(0) | |
143 | F_FW_RI_RES_WR_IQO | | 143 | FW_RI_RES_WR_IQO_F | |
144 | V_FW_RI_RES_WR_IQESIZE(1)); | 144 | FW_RI_RES_WR_IQESIZE_V(1)); |
145 | res->u.cq.iqsize = cpu_to_be16(cq->size); | 145 | res->u.cq.iqsize = cpu_to_be16(cq->size); |
146 | res->u.cq.iqaddr = cpu_to_be64(cq->dma_addr); | 146 | res->u.cq.iqaddr = cpu_to_be64(cq->dma_addr); |
147 | 147 | ||
diff --git a/drivers/infiniband/hw/cxgb4/device.c b/drivers/infiniband/hw/cxgb4/device.c index eb5df4e62703..aafdbcd84fc4 100644 --- a/drivers/infiniband/hw/cxgb4/device.c +++ b/drivers/infiniband/hw/cxgb4/device.c | |||
@@ -380,12 +380,12 @@ static int dump_stag(int id, void *p, void *data) | |||
380 | "stag: idx 0x%x valid %d key 0x%x state %d pdid %d " | 380 | "stag: idx 0x%x valid %d key 0x%x state %d pdid %d " |
381 | "perm 0x%x ps %d len 0x%llx va 0x%llx\n", | 381 | "perm 0x%x ps %d len 0x%llx va 0x%llx\n", |
382 | (u32)id<<8, | 382 | (u32)id<<8, |
383 | G_FW_RI_TPTE_VALID(ntohl(tpte.valid_to_pdid)), | 383 | FW_RI_TPTE_VALID_G(ntohl(tpte.valid_to_pdid)), |
384 | G_FW_RI_TPTE_STAGKEY(ntohl(tpte.valid_to_pdid)), | 384 | FW_RI_TPTE_STAGKEY_G(ntohl(tpte.valid_to_pdid)), |
385 | G_FW_RI_TPTE_STAGSTATE(ntohl(tpte.valid_to_pdid)), | 385 | FW_RI_TPTE_STAGSTATE_G(ntohl(tpte.valid_to_pdid)), |
386 | G_FW_RI_TPTE_PDID(ntohl(tpte.valid_to_pdid)), | 386 | FW_RI_TPTE_PDID_G(ntohl(tpte.valid_to_pdid)), |
387 | G_FW_RI_TPTE_PERM(ntohl(tpte.locread_to_qpid)), | 387 | FW_RI_TPTE_PERM_G(ntohl(tpte.locread_to_qpid)), |
388 | G_FW_RI_TPTE_PS(ntohl(tpte.locread_to_qpid)), | 388 | FW_RI_TPTE_PS_G(ntohl(tpte.locread_to_qpid)), |
389 | ((u64)ntohl(tpte.len_hi) << 32) | ntohl(tpte.len_lo), | 389 | ((u64)ntohl(tpte.len_hi) << 32) | ntohl(tpte.len_lo), |
390 | ((u64)ntohl(tpte.va_hi) << 32) | ntohl(tpte.va_lo_fbo)); | 390 | ((u64)ntohl(tpte.va_hi) << 32) | ntohl(tpte.va_lo_fbo)); |
391 | if (cc < space) | 391 | if (cc < space) |
diff --git a/drivers/infiniband/hw/cxgb4/ev.c b/drivers/infiniband/hw/cxgb4/ev.c index c9df0549f51d..794555dc86a5 100644 --- a/drivers/infiniband/hw/cxgb4/ev.c +++ b/drivers/infiniband/hw/cxgb4/ev.c | |||
@@ -50,12 +50,12 @@ static void print_tpte(struct c4iw_dev *dev, u32 stag) | |||
50 | PDBG("stag idx 0x%x valid %d key 0x%x state %d pdid %d " | 50 | PDBG("stag idx 0x%x valid %d key 0x%x state %d pdid %d " |
51 | "perm 0x%x ps %d len 0x%llx va 0x%llx\n", | 51 | "perm 0x%x ps %d len 0x%llx va 0x%llx\n", |
52 | stag & 0xffffff00, | 52 | stag & 0xffffff00, |
53 | G_FW_RI_TPTE_VALID(ntohl(tpte.valid_to_pdid)), | 53 | FW_RI_TPTE_VALID_G(ntohl(tpte.valid_to_pdid)), |
54 | G_FW_RI_TPTE_STAGKEY(ntohl(tpte.valid_to_pdid)), | 54 | FW_RI_TPTE_STAGKEY_G(ntohl(tpte.valid_to_pdid)), |
55 | G_FW_RI_TPTE_STAGSTATE(ntohl(tpte.valid_to_pdid)), | 55 | FW_RI_TPTE_STAGSTATE_G(ntohl(tpte.valid_to_pdid)), |
56 | G_FW_RI_TPTE_PDID(ntohl(tpte.valid_to_pdid)), | 56 | FW_RI_TPTE_PDID_G(ntohl(tpte.valid_to_pdid)), |
57 | G_FW_RI_TPTE_PERM(ntohl(tpte.locread_to_qpid)), | 57 | FW_RI_TPTE_PERM_G(ntohl(tpte.locread_to_qpid)), |
58 | G_FW_RI_TPTE_PS(ntohl(tpte.locread_to_qpid)), | 58 | FW_RI_TPTE_PS_G(ntohl(tpte.locread_to_qpid)), |
59 | ((u64)ntohl(tpte.len_hi) << 32) | ntohl(tpte.len_lo), | 59 | ((u64)ntohl(tpte.len_hi) << 32) | ntohl(tpte.len_lo), |
60 | ((u64)ntohl(tpte.va_hi) << 32) | ntohl(tpte.va_lo_fbo)); | 60 | ((u64)ntohl(tpte.va_hi) << 32) | ntohl(tpte.va_lo_fbo)); |
61 | } | 61 | } |
diff --git a/drivers/infiniband/hw/cxgb4/mem.c b/drivers/infiniband/hw/cxgb4/mem.c index b9dc9fc6be66..6791fd16272c 100644 --- a/drivers/infiniband/hw/cxgb4/mem.c +++ b/drivers/infiniband/hw/cxgb4/mem.c | |||
@@ -286,17 +286,17 @@ static int write_tpt_entry(struct c4iw_rdev *rdev, u32 reset_tpt_entry, | |||
286 | if (reset_tpt_entry) | 286 | if (reset_tpt_entry) |
287 | memset(&tpt, 0, sizeof(tpt)); | 287 | memset(&tpt, 0, sizeof(tpt)); |
288 | else { | 288 | else { |
289 | tpt.valid_to_pdid = cpu_to_be32(F_FW_RI_TPTE_VALID | | 289 | tpt.valid_to_pdid = cpu_to_be32(FW_RI_TPTE_VALID_F | |
290 | V_FW_RI_TPTE_STAGKEY((*stag & M_FW_RI_TPTE_STAGKEY)) | | 290 | FW_RI_TPTE_STAGKEY_V((*stag & FW_RI_TPTE_STAGKEY_M)) | |
291 | V_FW_RI_TPTE_STAGSTATE(stag_state) | | 291 | FW_RI_TPTE_STAGSTATE_V(stag_state) | |
292 | V_FW_RI_TPTE_STAGTYPE(type) | V_FW_RI_TPTE_PDID(pdid)); | 292 | FW_RI_TPTE_STAGTYPE_V(type) | FW_RI_TPTE_PDID_V(pdid)); |
293 | tpt.locread_to_qpid = cpu_to_be32(V_FW_RI_TPTE_PERM(perm) | | 293 | tpt.locread_to_qpid = cpu_to_be32(FW_RI_TPTE_PERM_V(perm) | |
294 | (bind_enabled ? F_FW_RI_TPTE_MWBINDEN : 0) | | 294 | (bind_enabled ? FW_RI_TPTE_MWBINDEN_F : 0) | |
295 | V_FW_RI_TPTE_ADDRTYPE((zbva ? FW_RI_ZERO_BASED_TO : | 295 | FW_RI_TPTE_ADDRTYPE_V((zbva ? FW_RI_ZERO_BASED_TO : |
296 | FW_RI_VA_BASED_TO))| | 296 | FW_RI_VA_BASED_TO))| |
297 | V_FW_RI_TPTE_PS(page_size)); | 297 | FW_RI_TPTE_PS_V(page_size)); |
298 | tpt.nosnoop_pbladdr = !pbl_size ? 0 : cpu_to_be32( | 298 | tpt.nosnoop_pbladdr = !pbl_size ? 0 : cpu_to_be32( |
299 | V_FW_RI_TPTE_PBLADDR(PBL_OFF(rdev, pbl_addr)>>3)); | 299 | FW_RI_TPTE_PBLADDR_V(PBL_OFF(rdev, pbl_addr)>>3)); |
300 | tpt.len_lo = cpu_to_be32((u32)(len & 0xffffffffUL)); | 300 | tpt.len_lo = cpu_to_be32((u32)(len & 0xffffffffUL)); |
301 | tpt.va_hi = cpu_to_be32((u32)(to >> 32)); | 301 | tpt.va_hi = cpu_to_be32((u32)(to >> 32)); |
302 | tpt.va_lo_fbo = cpu_to_be32((u32)(to & 0xffffffffUL)); | 302 | tpt.va_lo_fbo = cpu_to_be32((u32)(to & 0xffffffffUL)); |
diff --git a/drivers/infiniband/hw/cxgb4/qp.c b/drivers/infiniband/hw/cxgb4/qp.c index 42238edc95cb..15cae5a31018 100644 --- a/drivers/infiniband/hw/cxgb4/qp.c +++ b/drivers/infiniband/hw/cxgb4/qp.c | |||
@@ -272,7 +272,7 @@ static int create_qp(struct c4iw_rdev *rdev, struct t4_wq *wq, | |||
272 | memset(res_wr, 0, wr_len); | 272 | memset(res_wr, 0, wr_len); |
273 | res_wr->op_nres = cpu_to_be32( | 273 | res_wr->op_nres = cpu_to_be32( |
274 | FW_WR_OP_V(FW_RI_RES_WR) | | 274 | FW_WR_OP_V(FW_RI_RES_WR) | |
275 | V_FW_RI_RES_WR_NRES(2) | | 275 | FW_RI_RES_WR_NRES_V(2) | |
276 | FW_WR_COMPL_F); | 276 | FW_WR_COMPL_F); |
277 | res_wr->len16_pkd = cpu_to_be32(DIV_ROUND_UP(wr_len, 16)); | 277 | res_wr->len16_pkd = cpu_to_be32(DIV_ROUND_UP(wr_len, 16)); |
278 | res_wr->cookie = (unsigned long) &wr_wait; | 278 | res_wr->cookie = (unsigned long) &wr_wait; |
@@ -287,19 +287,19 @@ static int create_qp(struct c4iw_rdev *rdev, struct t4_wq *wq, | |||
287 | rdev->hw_queue.t4_eq_status_entries; | 287 | rdev->hw_queue.t4_eq_status_entries; |
288 | 288 | ||
289 | res->u.sqrq.fetchszm_to_iqid = cpu_to_be32( | 289 | res->u.sqrq.fetchszm_to_iqid = cpu_to_be32( |
290 | V_FW_RI_RES_WR_HOSTFCMODE(0) | /* no host cidx updates */ | 290 | FW_RI_RES_WR_HOSTFCMODE_V(0) | /* no host cidx updates */ |
291 | V_FW_RI_RES_WR_CPRIO(0) | /* don't keep in chip cache */ | 291 | FW_RI_RES_WR_CPRIO_V(0) | /* don't keep in chip cache */ |
292 | V_FW_RI_RES_WR_PCIECHN(0) | /* set by uP at ri_init time */ | 292 | FW_RI_RES_WR_PCIECHN_V(0) | /* set by uP at ri_init time */ |
293 | (t4_sq_onchip(&wq->sq) ? F_FW_RI_RES_WR_ONCHIP : 0) | | 293 | (t4_sq_onchip(&wq->sq) ? FW_RI_RES_WR_ONCHIP_F : 0) | |
294 | V_FW_RI_RES_WR_IQID(scq->cqid)); | 294 | FW_RI_RES_WR_IQID_V(scq->cqid)); |
295 | res->u.sqrq.dcaen_to_eqsize = cpu_to_be32( | 295 | res->u.sqrq.dcaen_to_eqsize = cpu_to_be32( |
296 | V_FW_RI_RES_WR_DCAEN(0) | | 296 | FW_RI_RES_WR_DCAEN_V(0) | |
297 | V_FW_RI_RES_WR_DCACPU(0) | | 297 | FW_RI_RES_WR_DCACPU_V(0) | |
298 | V_FW_RI_RES_WR_FBMIN(2) | | 298 | FW_RI_RES_WR_FBMIN_V(2) | |
299 | V_FW_RI_RES_WR_FBMAX(2) | | 299 | FW_RI_RES_WR_FBMAX_V(2) | |
300 | V_FW_RI_RES_WR_CIDXFTHRESHO(0) | | 300 | FW_RI_RES_WR_CIDXFTHRESHO_V(0) | |
301 | V_FW_RI_RES_WR_CIDXFTHRESH(0) | | 301 | FW_RI_RES_WR_CIDXFTHRESH_V(0) | |
302 | V_FW_RI_RES_WR_EQSIZE(eqsize)); | 302 | FW_RI_RES_WR_EQSIZE_V(eqsize)); |
303 | res->u.sqrq.eqid = cpu_to_be32(wq->sq.qid); | 303 | res->u.sqrq.eqid = cpu_to_be32(wq->sq.qid); |
304 | res->u.sqrq.eqaddr = cpu_to_be64(wq->sq.dma_addr); | 304 | res->u.sqrq.eqaddr = cpu_to_be64(wq->sq.dma_addr); |
305 | res++; | 305 | res++; |
@@ -312,18 +312,18 @@ static int create_qp(struct c4iw_rdev *rdev, struct t4_wq *wq, | |||
312 | eqsize = wq->rq.size * T4_RQ_NUM_SLOTS + | 312 | eqsize = wq->rq.size * T4_RQ_NUM_SLOTS + |
313 | rdev->hw_queue.t4_eq_status_entries; | 313 | rdev->hw_queue.t4_eq_status_entries; |
314 | res->u.sqrq.fetchszm_to_iqid = cpu_to_be32( | 314 | res->u.sqrq.fetchszm_to_iqid = cpu_to_be32( |
315 | V_FW_RI_RES_WR_HOSTFCMODE(0) | /* no host cidx updates */ | 315 | FW_RI_RES_WR_HOSTFCMODE_V(0) | /* no host cidx updates */ |
316 | V_FW_RI_RES_WR_CPRIO(0) | /* don't keep in chip cache */ | 316 | FW_RI_RES_WR_CPRIO_V(0) | /* don't keep in chip cache */ |
317 | V_FW_RI_RES_WR_PCIECHN(0) | /* set by uP at ri_init time */ | 317 | FW_RI_RES_WR_PCIECHN_V(0) | /* set by uP at ri_init time */ |
318 | V_FW_RI_RES_WR_IQID(rcq->cqid)); | 318 | FW_RI_RES_WR_IQID_V(rcq->cqid)); |
319 | res->u.sqrq.dcaen_to_eqsize = cpu_to_be32( | 319 | res->u.sqrq.dcaen_to_eqsize = cpu_to_be32( |
320 | V_FW_RI_RES_WR_DCAEN(0) | | 320 | FW_RI_RES_WR_DCAEN_V(0) | |
321 | V_FW_RI_RES_WR_DCACPU(0) | | 321 | FW_RI_RES_WR_DCACPU_V(0) | |
322 | V_FW_RI_RES_WR_FBMIN(2) | | 322 | FW_RI_RES_WR_FBMIN_V(2) | |
323 | V_FW_RI_RES_WR_FBMAX(2) | | 323 | FW_RI_RES_WR_FBMAX_V(2) | |
324 | V_FW_RI_RES_WR_CIDXFTHRESHO(0) | | 324 | FW_RI_RES_WR_CIDXFTHRESHO_V(0) | |
325 | V_FW_RI_RES_WR_CIDXFTHRESH(0) | | 325 | FW_RI_RES_WR_CIDXFTHRESH_V(0) | |
326 | V_FW_RI_RES_WR_EQSIZE(eqsize)); | 326 | FW_RI_RES_WR_EQSIZE_V(eqsize)); |
327 | res->u.sqrq.eqid = cpu_to_be32(wq->rq.qid); | 327 | res->u.sqrq.eqid = cpu_to_be32(wq->rq.qid); |
328 | res->u.sqrq.eqaddr = cpu_to_be64(wq->rq.dma_addr); | 328 | res->u.sqrq.eqaddr = cpu_to_be64(wq->rq.dma_addr); |
329 | 329 | ||
@@ -444,19 +444,19 @@ static int build_rdma_send(struct t4_sq *sq, union t4_wr *wqe, | |||
444 | case IB_WR_SEND: | 444 | case IB_WR_SEND: |
445 | if (wr->send_flags & IB_SEND_SOLICITED) | 445 | if (wr->send_flags & IB_SEND_SOLICITED) |
446 | wqe->send.sendop_pkd = cpu_to_be32( | 446 | wqe->send.sendop_pkd = cpu_to_be32( |
447 | V_FW_RI_SEND_WR_SENDOP(FW_RI_SEND_WITH_SE)); | 447 | FW_RI_SEND_WR_SENDOP_V(FW_RI_SEND_WITH_SE)); |
448 | else | 448 | else |
449 | wqe->send.sendop_pkd = cpu_to_be32( | 449 | wqe->send.sendop_pkd = cpu_to_be32( |
450 | V_FW_RI_SEND_WR_SENDOP(FW_RI_SEND)); | 450 | FW_RI_SEND_WR_SENDOP_V(FW_RI_SEND)); |
451 | wqe->send.stag_inv = 0; | 451 | wqe->send.stag_inv = 0; |
452 | break; | 452 | break; |
453 | case IB_WR_SEND_WITH_INV: | 453 | case IB_WR_SEND_WITH_INV: |
454 | if (wr->send_flags & IB_SEND_SOLICITED) | 454 | if (wr->send_flags & IB_SEND_SOLICITED) |
455 | wqe->send.sendop_pkd = cpu_to_be32( | 455 | wqe->send.sendop_pkd = cpu_to_be32( |
456 | V_FW_RI_SEND_WR_SENDOP(FW_RI_SEND_WITH_SE_INV)); | 456 | FW_RI_SEND_WR_SENDOP_V(FW_RI_SEND_WITH_SE_INV)); |
457 | else | 457 | else |
458 | wqe->send.sendop_pkd = cpu_to_be32( | 458 | wqe->send.sendop_pkd = cpu_to_be32( |
459 | V_FW_RI_SEND_WR_SENDOP(FW_RI_SEND_WITH_INV)); | 459 | FW_RI_SEND_WR_SENDOP_V(FW_RI_SEND_WITH_INV)); |
460 | wqe->send.stag_inv = cpu_to_be32(wr->ex.invalidate_rkey); | 460 | wqe->send.stag_inv = cpu_to_be32(wr->ex.invalidate_rkey); |
461 | break; | 461 | break; |
462 | 462 | ||
@@ -1283,8 +1283,8 @@ static int rdma_init(struct c4iw_dev *rhp, struct c4iw_qp *qhp) | |||
1283 | 1283 | ||
1284 | wqe->u.init.type = FW_RI_TYPE_INIT; | 1284 | wqe->u.init.type = FW_RI_TYPE_INIT; |
1285 | wqe->u.init.mpareqbit_p2ptype = | 1285 | wqe->u.init.mpareqbit_p2ptype = |
1286 | V_FW_RI_WR_MPAREQBIT(qhp->attr.mpa_attr.initiator) | | 1286 | FW_RI_WR_MPAREQBIT_V(qhp->attr.mpa_attr.initiator) | |
1287 | V_FW_RI_WR_P2PTYPE(qhp->attr.mpa_attr.p2p_type); | 1287 | FW_RI_WR_P2PTYPE_V(qhp->attr.mpa_attr.p2p_type); |
1288 | wqe->u.init.mpa_attrs = FW_RI_MPA_IETF_ENABLE; | 1288 | wqe->u.init.mpa_attrs = FW_RI_MPA_IETF_ENABLE; |
1289 | if (qhp->attr.mpa_attr.recv_marker_enabled) | 1289 | if (qhp->attr.mpa_attr.recv_marker_enabled) |
1290 | wqe->u.init.mpa_attrs |= FW_RI_MPA_RX_MARKER_ENABLE; | 1290 | wqe->u.init.mpa_attrs |= FW_RI_MPA_RX_MARKER_ENABLE; |
diff --git a/drivers/infiniband/hw/cxgb4/t4fw_ri_api.h b/drivers/infiniband/hw/cxgb4/t4fw_ri_api.h index 5709e77faf7c..5e53327fc647 100644 --- a/drivers/infiniband/hw/cxgb4/t4fw_ri_api.h +++ b/drivers/infiniband/hw/cxgb4/t4fw_ri_api.h | |||
@@ -162,102 +162,102 @@ struct fw_ri_tpte { | |||
162 | __be32 len_hi; | 162 | __be32 len_hi; |
163 | }; | 163 | }; |
164 | 164 | ||
165 | #define S_FW_RI_TPTE_VALID 31 | 165 | #define FW_RI_TPTE_VALID_S 31 |
166 | #define M_FW_RI_TPTE_VALID 0x1 | 166 | #define FW_RI_TPTE_VALID_M 0x1 |
167 | #define V_FW_RI_TPTE_VALID(x) ((x) << S_FW_RI_TPTE_VALID) | 167 | #define FW_RI_TPTE_VALID_V(x) ((x) << FW_RI_TPTE_VALID_S) |
168 | #define G_FW_RI_TPTE_VALID(x) \ | 168 | #define FW_RI_TPTE_VALID_G(x) \ |
169 | (((x) >> S_FW_RI_TPTE_VALID) & M_FW_RI_TPTE_VALID) | 169 | (((x) >> FW_RI_TPTE_VALID_S) & FW_RI_TPTE_VALID_M) |
170 | #define F_FW_RI_TPTE_VALID V_FW_RI_TPTE_VALID(1U) | 170 | #define FW_RI_TPTE_VALID_F FW_RI_TPTE_VALID_V(1U) |
171 | 171 | ||
172 | #define S_FW_RI_TPTE_STAGKEY 23 | 172 | #define FW_RI_TPTE_STAGKEY_S 23 |
173 | #define M_FW_RI_TPTE_STAGKEY 0xff | 173 | #define FW_RI_TPTE_STAGKEY_M 0xff |
174 | #define V_FW_RI_TPTE_STAGKEY(x) ((x) << S_FW_RI_TPTE_STAGKEY) | 174 | #define FW_RI_TPTE_STAGKEY_V(x) ((x) << FW_RI_TPTE_STAGKEY_S) |
175 | #define G_FW_RI_TPTE_STAGKEY(x) \ | 175 | #define FW_RI_TPTE_STAGKEY_G(x) \ |
176 | (((x) >> S_FW_RI_TPTE_STAGKEY) & M_FW_RI_TPTE_STAGKEY) | 176 | (((x) >> FW_RI_TPTE_STAGKEY_S) & FW_RI_TPTE_STAGKEY_M) |
177 | 177 | ||
178 | #define S_FW_RI_TPTE_STAGSTATE 22 | 178 | #define FW_RI_TPTE_STAGSTATE_S 22 |
179 | #define M_FW_RI_TPTE_STAGSTATE 0x1 | 179 | #define FW_RI_TPTE_STAGSTATE_M 0x1 |
180 | #define V_FW_RI_TPTE_STAGSTATE(x) ((x) << S_FW_RI_TPTE_STAGSTATE) | 180 | #define FW_RI_TPTE_STAGSTATE_V(x) ((x) << FW_RI_TPTE_STAGSTATE_S) |
181 | #define G_FW_RI_TPTE_STAGSTATE(x) \ | 181 | #define FW_RI_TPTE_STAGSTATE_G(x) \ |
182 | (((x) >> S_FW_RI_TPTE_STAGSTATE) & M_FW_RI_TPTE_STAGSTATE) | 182 | (((x) >> FW_RI_TPTE_STAGSTATE_S) & FW_RI_TPTE_STAGSTATE_M) |
183 | #define F_FW_RI_TPTE_STAGSTATE V_FW_RI_TPTE_STAGSTATE(1U) | 183 | #define FW_RI_TPTE_STAGSTATE_F FW_RI_TPTE_STAGSTATE_V(1U) |
184 | 184 | ||
185 | #define S_FW_RI_TPTE_STAGTYPE 20 | 185 | #define FW_RI_TPTE_STAGTYPE_S 20 |
186 | #define M_FW_RI_TPTE_STAGTYPE 0x3 | 186 | #define FW_RI_TPTE_STAGTYPE_M 0x3 |
187 | #define V_FW_RI_TPTE_STAGTYPE(x) ((x) << S_FW_RI_TPTE_STAGTYPE) | 187 | #define FW_RI_TPTE_STAGTYPE_V(x) ((x) << FW_RI_TPTE_STAGTYPE_S) |
188 | #define G_FW_RI_TPTE_STAGTYPE(x) \ | 188 | #define FW_RI_TPTE_STAGTYPE_G(x) \ |
189 | (((x) >> S_FW_RI_TPTE_STAGTYPE) & M_FW_RI_TPTE_STAGTYPE) | 189 | (((x) >> FW_RI_TPTE_STAGTYPE_S) & FW_RI_TPTE_STAGTYPE_M) |
190 | 190 | ||
191 | #define S_FW_RI_TPTE_PDID 0 | 191 | #define FW_RI_TPTE_PDID_S 0 |
192 | #define M_FW_RI_TPTE_PDID 0xfffff | 192 | #define FW_RI_TPTE_PDID_M 0xfffff |
193 | #define V_FW_RI_TPTE_PDID(x) ((x) << S_FW_RI_TPTE_PDID) | 193 | #define FW_RI_TPTE_PDID_V(x) ((x) << FW_RI_TPTE_PDID_S) |
194 | #define G_FW_RI_TPTE_PDID(x) \ | 194 | #define FW_RI_TPTE_PDID_G(x) \ |
195 | (((x) >> S_FW_RI_TPTE_PDID) & M_FW_RI_TPTE_PDID) | 195 | (((x) >> FW_RI_TPTE_PDID_S) & FW_RI_TPTE_PDID_M) |
196 | 196 | ||
197 | #define S_FW_RI_TPTE_PERM 28 | 197 | #define FW_RI_TPTE_PERM_S 28 |
198 | #define M_FW_RI_TPTE_PERM 0xf | 198 | #define FW_RI_TPTE_PERM_M 0xf |
199 | #define V_FW_RI_TPTE_PERM(x) ((x) << S_FW_RI_TPTE_PERM) | 199 | #define FW_RI_TPTE_PERM_V(x) ((x) << FW_RI_TPTE_PERM_S) |
200 | #define G_FW_RI_TPTE_PERM(x) \ | 200 | #define FW_RI_TPTE_PERM_G(x) \ |
201 | (((x) >> S_FW_RI_TPTE_PERM) & M_FW_RI_TPTE_PERM) | 201 | (((x) >> FW_RI_TPTE_PERM_S) & FW_RI_TPTE_PERM_M) |
202 | 202 | ||
203 | #define S_FW_RI_TPTE_REMINVDIS 27 | 203 | #define FW_RI_TPTE_REMINVDIS_S 27 |
204 | #define M_FW_RI_TPTE_REMINVDIS 0x1 | 204 | #define FW_RI_TPTE_REMINVDIS_M 0x1 |
205 | #define V_FW_RI_TPTE_REMINVDIS(x) ((x) << S_FW_RI_TPTE_REMINVDIS) | 205 | #define FW_RI_TPTE_REMINVDIS_V(x) ((x) << FW_RI_TPTE_REMINVDIS_S) |
206 | #define G_FW_RI_TPTE_REMINVDIS(x) \ | 206 | #define FW_RI_TPTE_REMINVDIS_G(x) \ |
207 | (((x) >> S_FW_RI_TPTE_REMINVDIS) & M_FW_RI_TPTE_REMINVDIS) | 207 | (((x) >> FW_RI_TPTE_REMINVDIS_S) & FW_RI_TPTE_REMINVDIS_M) |
208 | #define F_FW_RI_TPTE_REMINVDIS V_FW_RI_TPTE_REMINVDIS(1U) | 208 | #define FW_RI_TPTE_REMINVDIS_F FW_RI_TPTE_REMINVDIS_V(1U) |
209 | 209 | ||
210 | #define S_FW_RI_TPTE_ADDRTYPE 26 | 210 | #define FW_RI_TPTE_ADDRTYPE_S 26 |
211 | #define M_FW_RI_TPTE_ADDRTYPE 1 | 211 | #define FW_RI_TPTE_ADDRTYPE_M 1 |
212 | #define V_FW_RI_TPTE_ADDRTYPE(x) ((x) << S_FW_RI_TPTE_ADDRTYPE) | 212 | #define FW_RI_TPTE_ADDRTYPE_V(x) ((x) << FW_RI_TPTE_ADDRTYPE_S) |
213 | #define G_FW_RI_TPTE_ADDRTYPE(x) \ | 213 | #define FW_RI_TPTE_ADDRTYPE_G(x) \ |
214 | (((x) >> S_FW_RI_TPTE_ADDRTYPE) & M_FW_RI_TPTE_ADDRTYPE) | 214 | (((x) >> FW_RI_TPTE_ADDRTYPE_S) & FW_RI_TPTE_ADDRTYPE_M) |
215 | #define F_FW_RI_TPTE_ADDRTYPE V_FW_RI_TPTE_ADDRTYPE(1U) | 215 | #define FW_RI_TPTE_ADDRTYPE_F FW_RI_TPTE_ADDRTYPE_V(1U) |
216 | 216 | ||
217 | #define S_FW_RI_TPTE_MWBINDEN 25 | 217 | #define FW_RI_TPTE_MWBINDEN_S 25 |
218 | #define M_FW_RI_TPTE_MWBINDEN 0x1 | 218 | #define FW_RI_TPTE_MWBINDEN_M 0x1 |
219 | #define V_FW_RI_TPTE_MWBINDEN(x) ((x) << S_FW_RI_TPTE_MWBINDEN) | 219 | #define FW_RI_TPTE_MWBINDEN_V(x) ((x) << FW_RI_TPTE_MWBINDEN_S) |
220 | #define G_FW_RI_TPTE_MWBINDEN(x) \ | 220 | #define FW_RI_TPTE_MWBINDEN_G(x) \ |
221 | (((x) >> S_FW_RI_TPTE_MWBINDEN) & M_FW_RI_TPTE_MWBINDEN) | 221 | (((x) >> FW_RI_TPTE_MWBINDEN_S) & FW_RI_TPTE_MWBINDEN_M) |
222 | #define F_FW_RI_TPTE_MWBINDEN V_FW_RI_TPTE_MWBINDEN(1U) | 222 | #define FW_RI_TPTE_MWBINDEN_F FW_RI_TPTE_MWBINDEN_V(1U) |
223 | 223 | ||
224 | #define S_FW_RI_TPTE_PS 20 | 224 | #define FW_RI_TPTE_PS_S 20 |
225 | #define M_FW_RI_TPTE_PS 0x1f | 225 | #define FW_RI_TPTE_PS_M 0x1f |
226 | #define V_FW_RI_TPTE_PS(x) ((x) << S_FW_RI_TPTE_PS) | 226 | #define FW_RI_TPTE_PS_V(x) ((x) << FW_RI_TPTE_PS_S) |
227 | #define G_FW_RI_TPTE_PS(x) \ | 227 | #define FW_RI_TPTE_PS_G(x) \ |
228 | (((x) >> S_FW_RI_TPTE_PS) & M_FW_RI_TPTE_PS) | 228 | (((x) >> FW_RI_TPTE_PS_S) & FW_RI_TPTE_PS_M) |
229 | 229 | ||
230 | #define S_FW_RI_TPTE_QPID 0 | 230 | #define FW_RI_TPTE_QPID_S 0 |
231 | #define M_FW_RI_TPTE_QPID 0xfffff | 231 | #define FW_RI_TPTE_QPID_M 0xfffff |
232 | #define V_FW_RI_TPTE_QPID(x) ((x) << S_FW_RI_TPTE_QPID) | 232 | #define FW_RI_TPTE_QPID_V(x) ((x) << FW_RI_TPTE_QPID_S) |
233 | #define G_FW_RI_TPTE_QPID(x) \ | 233 | #define FW_RI_TPTE_QPID_G(x) \ |
234 | (((x) >> S_FW_RI_TPTE_QPID) & M_FW_RI_TPTE_QPID) | 234 | (((x) >> FW_RI_TPTE_QPID_S) & FW_RI_TPTE_QPID_M) |
235 | 235 | ||
236 | #define S_FW_RI_TPTE_NOSNOOP 30 | 236 | #define FW_RI_TPTE_NOSNOOP_S 30 |
237 | #define M_FW_RI_TPTE_NOSNOOP 0x1 | 237 | #define FW_RI_TPTE_NOSNOOP_M 0x1 |
238 | #define V_FW_RI_TPTE_NOSNOOP(x) ((x) << S_FW_RI_TPTE_NOSNOOP) | 238 | #define FW_RI_TPTE_NOSNOOP_V(x) ((x) << FW_RI_TPTE_NOSNOOP_S) |
239 | #define G_FW_RI_TPTE_NOSNOOP(x) \ | 239 | #define FW_RI_TPTE_NOSNOOP_G(x) \ |
240 | (((x) >> S_FW_RI_TPTE_NOSNOOP) & M_FW_RI_TPTE_NOSNOOP) | 240 | (((x) >> FW_RI_TPTE_NOSNOOP_S) & FW_RI_TPTE_NOSNOOP_M) |
241 | #define F_FW_RI_TPTE_NOSNOOP V_FW_RI_TPTE_NOSNOOP(1U) | 241 | #define FW_RI_TPTE_NOSNOOP_F FW_RI_TPTE_NOSNOOP_V(1U) |
242 | 242 | ||
243 | #define S_FW_RI_TPTE_PBLADDR 0 | 243 | #define FW_RI_TPTE_PBLADDR_S 0 |
244 | #define M_FW_RI_TPTE_PBLADDR 0x1fffffff | 244 | #define FW_RI_TPTE_PBLADDR_M 0x1fffffff |
245 | #define V_FW_RI_TPTE_PBLADDR(x) ((x) << S_FW_RI_TPTE_PBLADDR) | 245 | #define FW_RI_TPTE_PBLADDR_V(x) ((x) << FW_RI_TPTE_PBLADDR_S) |
246 | #define G_FW_RI_TPTE_PBLADDR(x) \ | 246 | #define FW_RI_TPTE_PBLADDR_G(x) \ |
247 | (((x) >> S_FW_RI_TPTE_PBLADDR) & M_FW_RI_TPTE_PBLADDR) | 247 | (((x) >> FW_RI_TPTE_PBLADDR_S) & FW_RI_TPTE_PBLADDR_M) |
248 | 248 | ||
249 | #define S_FW_RI_TPTE_DCA 24 | 249 | #define FW_RI_TPTE_DCA_S 24 |
250 | #define M_FW_RI_TPTE_DCA 0x1f | 250 | #define FW_RI_TPTE_DCA_M 0x1f |
251 | #define V_FW_RI_TPTE_DCA(x) ((x) << S_FW_RI_TPTE_DCA) | 251 | #define FW_RI_TPTE_DCA_V(x) ((x) << FW_RI_TPTE_DCA_S) |
252 | #define G_FW_RI_TPTE_DCA(x) \ | 252 | #define FW_RI_TPTE_DCA_G(x) \ |
253 | (((x) >> S_FW_RI_TPTE_DCA) & M_FW_RI_TPTE_DCA) | 253 | (((x) >> FW_RI_TPTE_DCA_S) & FW_RI_TPTE_DCA_M) |
254 | 254 | ||
255 | #define S_FW_RI_TPTE_MWBCNT_PSTAG 0 | 255 | #define FW_RI_TPTE_MWBCNT_PSTAG_S 0 |
256 | #define M_FW_RI_TPTE_MWBCNT_PSTAG 0xffffff | 256 | #define FW_RI_TPTE_MWBCNT_PSTAG_M 0xffffff |
257 | #define V_FW_RI_TPTE_MWBCNT_PSTAT(x) \ | 257 | #define FW_RI_TPTE_MWBCNT_PSTAT_V(x) \ |
258 | ((x) << S_FW_RI_TPTE_MWBCNT_PSTAG) | 258 | ((x) << FW_RI_TPTE_MWBCNT_PSTAG_S) |
259 | #define G_FW_RI_TPTE_MWBCNT_PSTAG(x) \ | 259 | #define FW_RI_TPTE_MWBCNT_PSTAG_G(x) \ |
260 | (((x) >> S_FW_RI_TPTE_MWBCNT_PSTAG) & M_FW_RI_TPTE_MWBCNT_PSTAG) | 260 | (((x) >> FW_RI_TPTE_MWBCNT_PSTAG_S) & FW_RI_TPTE_MWBCNT_PSTAG_M) |
261 | 261 | ||
262 | enum fw_ri_res_type { | 262 | enum fw_ri_res_type { |
263 | FW_RI_RES_TYPE_SQ, | 263 | FW_RI_RES_TYPE_SQ, |
@@ -308,222 +308,222 @@ struct fw_ri_res_wr { | |||
308 | #endif | 308 | #endif |
309 | }; | 309 | }; |
310 | 310 | ||
311 | #define S_FW_RI_RES_WR_NRES 0 | 311 | #define FW_RI_RES_WR_NRES_S 0 |
312 | #define M_FW_RI_RES_WR_NRES 0xff | 312 | #define FW_RI_RES_WR_NRES_M 0xff |
313 | #define V_FW_RI_RES_WR_NRES(x) ((x) << S_FW_RI_RES_WR_NRES) | 313 | #define FW_RI_RES_WR_NRES_V(x) ((x) << FW_RI_RES_WR_NRES_S) |
314 | #define G_FW_RI_RES_WR_NRES(x) \ | 314 | #define FW_RI_RES_WR_NRES_G(x) \ |
315 | (((x) >> S_FW_RI_RES_WR_NRES) & M_FW_RI_RES_WR_NRES) | 315 | (((x) >> FW_RI_RES_WR_NRES_S) & FW_RI_RES_WR_NRES_M) |
316 | 316 | ||
317 | #define S_FW_RI_RES_WR_FETCHSZM 26 | 317 | #define FW_RI_RES_WR_FETCHSZM_S 26 |
318 | #define M_FW_RI_RES_WR_FETCHSZM 0x1 | 318 | #define FW_RI_RES_WR_FETCHSZM_M 0x1 |
319 | #define V_FW_RI_RES_WR_FETCHSZM(x) ((x) << S_FW_RI_RES_WR_FETCHSZM) | 319 | #define FW_RI_RES_WR_FETCHSZM_V(x) ((x) << FW_RI_RES_WR_FETCHSZM_S) |
320 | #define G_FW_RI_RES_WR_FETCHSZM(x) \ | 320 | #define FW_RI_RES_WR_FETCHSZM_G(x) \ |
321 | (((x) >> S_FW_RI_RES_WR_FETCHSZM) & M_FW_RI_RES_WR_FETCHSZM) | 321 | (((x) >> FW_RI_RES_WR_FETCHSZM_S) & FW_RI_RES_WR_FETCHSZM_M) |
322 | #define F_FW_RI_RES_WR_FETCHSZM V_FW_RI_RES_WR_FETCHSZM(1U) | 322 | #define FW_RI_RES_WR_FETCHSZM_F FW_RI_RES_WR_FETCHSZM_V(1U) |
323 | 323 | ||
324 | #define S_FW_RI_RES_WR_STATUSPGNS 25 | 324 | #define FW_RI_RES_WR_STATUSPGNS_S 25 |
325 | #define M_FW_RI_RES_WR_STATUSPGNS 0x1 | 325 | #define FW_RI_RES_WR_STATUSPGNS_M 0x1 |
326 | #define V_FW_RI_RES_WR_STATUSPGNS(x) ((x) << S_FW_RI_RES_WR_STATUSPGNS) | 326 | #define FW_RI_RES_WR_STATUSPGNS_V(x) ((x) << FW_RI_RES_WR_STATUSPGNS_S) |
327 | #define G_FW_RI_RES_WR_STATUSPGNS(x) \ | 327 | #define FW_RI_RES_WR_STATUSPGNS_G(x) \ |
328 | (((x) >> S_FW_RI_RES_WR_STATUSPGNS) & M_FW_RI_RES_WR_STATUSPGNS) | 328 | (((x) >> FW_RI_RES_WR_STATUSPGNS_S) & FW_RI_RES_WR_STATUSPGNS_M) |
329 | #define F_FW_RI_RES_WR_STATUSPGNS V_FW_RI_RES_WR_STATUSPGNS(1U) | 329 | #define FW_RI_RES_WR_STATUSPGNS_F FW_RI_RES_WR_STATUSPGNS_V(1U) |
330 | 330 | ||
331 | #define S_FW_RI_RES_WR_STATUSPGRO 24 | 331 | #define FW_RI_RES_WR_STATUSPGRO_S 24 |
332 | #define M_FW_RI_RES_WR_STATUSPGRO 0x1 | 332 | #define FW_RI_RES_WR_STATUSPGRO_M 0x1 |
333 | #define V_FW_RI_RES_WR_STATUSPGRO(x) ((x) << S_FW_RI_RES_WR_STATUSPGRO) | 333 | #define FW_RI_RES_WR_STATUSPGRO_V(x) ((x) << FW_RI_RES_WR_STATUSPGRO_S) |
334 | #define G_FW_RI_RES_WR_STATUSPGRO(x) \ | 334 | #define FW_RI_RES_WR_STATUSPGRO_G(x) \ |
335 | (((x) >> S_FW_RI_RES_WR_STATUSPGRO) & M_FW_RI_RES_WR_STATUSPGRO) | 335 | (((x) >> FW_RI_RES_WR_STATUSPGRO_S) & FW_RI_RES_WR_STATUSPGRO_M) |
336 | #define F_FW_RI_RES_WR_STATUSPGRO V_FW_RI_RES_WR_STATUSPGRO(1U) | 336 | #define FW_RI_RES_WR_STATUSPGRO_F FW_RI_RES_WR_STATUSPGRO_V(1U) |
337 | 337 | ||
338 | #define S_FW_RI_RES_WR_FETCHNS 23 | 338 | #define FW_RI_RES_WR_FETCHNS_S 23 |
339 | #define M_FW_RI_RES_WR_FETCHNS 0x1 | 339 | #define FW_RI_RES_WR_FETCHNS_M 0x1 |
340 | #define V_FW_RI_RES_WR_FETCHNS(x) ((x) << S_FW_RI_RES_WR_FETCHNS) | 340 | #define FW_RI_RES_WR_FETCHNS_V(x) ((x) << FW_RI_RES_WR_FETCHNS_S) |
341 | #define G_FW_RI_RES_WR_FETCHNS(x) \ | 341 | #define FW_RI_RES_WR_FETCHNS_G(x) \ |
342 | (((x) >> S_FW_RI_RES_WR_FETCHNS) & M_FW_RI_RES_WR_FETCHNS) | 342 | (((x) >> FW_RI_RES_WR_FETCHNS_S) & FW_RI_RES_WR_FETCHNS_M) |
343 | #define F_FW_RI_RES_WR_FETCHNS V_FW_RI_RES_WR_FETCHNS(1U) | 343 | #define FW_RI_RES_WR_FETCHNS_F FW_RI_RES_WR_FETCHNS_V(1U) |
344 | 344 | ||
345 | #define S_FW_RI_RES_WR_FETCHRO 22 | 345 | #define FW_RI_RES_WR_FETCHRO_S 22 |
346 | #define M_FW_RI_RES_WR_FETCHRO 0x1 | 346 | #define FW_RI_RES_WR_FETCHRO_M 0x1 |
347 | #define V_FW_RI_RES_WR_FETCHRO(x) ((x) << S_FW_RI_RES_WR_FETCHRO) | 347 | #define FW_RI_RES_WR_FETCHRO_V(x) ((x) << FW_RI_RES_WR_FETCHRO_S) |
348 | #define G_FW_RI_RES_WR_FETCHRO(x) \ | 348 | #define FW_RI_RES_WR_FETCHRO_G(x) \ |
349 | (((x) >> S_FW_RI_RES_WR_FETCHRO) & M_FW_RI_RES_WR_FETCHRO) | 349 | (((x) >> FW_RI_RES_WR_FETCHRO_S) & FW_RI_RES_WR_FETCHRO_M) |
350 | #define F_FW_RI_RES_WR_FETCHRO V_FW_RI_RES_WR_FETCHRO(1U) | 350 | #define FW_RI_RES_WR_FETCHRO_F FW_RI_RES_WR_FETCHRO_V(1U) |
351 | 351 | ||
352 | #define S_FW_RI_RES_WR_HOSTFCMODE 20 | 352 | #define FW_RI_RES_WR_HOSTFCMODE_S 20 |
353 | #define M_FW_RI_RES_WR_HOSTFCMODE 0x3 | 353 | #define FW_RI_RES_WR_HOSTFCMODE_M 0x3 |
354 | #define V_FW_RI_RES_WR_HOSTFCMODE(x) ((x) << S_FW_RI_RES_WR_HOSTFCMODE) | 354 | #define FW_RI_RES_WR_HOSTFCMODE_V(x) ((x) << FW_RI_RES_WR_HOSTFCMODE_S) |
355 | #define G_FW_RI_RES_WR_HOSTFCMODE(x) \ | 355 | #define FW_RI_RES_WR_HOSTFCMODE_G(x) \ |
356 | (((x) >> S_FW_RI_RES_WR_HOSTFCMODE) & M_FW_RI_RES_WR_HOSTFCMODE) | 356 | (((x) >> FW_RI_RES_WR_HOSTFCMODE_S) & FW_RI_RES_WR_HOSTFCMODE_M) |
357 | 357 | ||
358 | #define S_FW_RI_RES_WR_CPRIO 19 | 358 | #define FW_RI_RES_WR_CPRIO_S 19 |
359 | #define M_FW_RI_RES_WR_CPRIO 0x1 | 359 | #define FW_RI_RES_WR_CPRIO_M 0x1 |
360 | #define V_FW_RI_RES_WR_CPRIO(x) ((x) << S_FW_RI_RES_WR_CPRIO) | 360 | #define FW_RI_RES_WR_CPRIO_V(x) ((x) << FW_RI_RES_WR_CPRIO_S) |
361 | #define G_FW_RI_RES_WR_CPRIO(x) \ | 361 | #define FW_RI_RES_WR_CPRIO_G(x) \ |
362 | (((x) >> S_FW_RI_RES_WR_CPRIO) & M_FW_RI_RES_WR_CPRIO) | 362 | (((x) >> FW_RI_RES_WR_CPRIO_S) & FW_RI_RES_WR_CPRIO_M) |
363 | #define F_FW_RI_RES_WR_CPRIO V_FW_RI_RES_WR_CPRIO(1U) | 363 | #define FW_RI_RES_WR_CPRIO_F FW_RI_RES_WR_CPRIO_V(1U) |
364 | 364 | ||
365 | #define S_FW_RI_RES_WR_ONCHIP 18 | 365 | #define FW_RI_RES_WR_ONCHIP_S 18 |
366 | #define M_FW_RI_RES_WR_ONCHIP 0x1 | 366 | #define FW_RI_RES_WR_ONCHIP_M 0x1 |
367 | #define V_FW_RI_RES_WR_ONCHIP(x) ((x) << S_FW_RI_RES_WR_ONCHIP) | 367 | #define FW_RI_RES_WR_ONCHIP_V(x) ((x) << FW_RI_RES_WR_ONCHIP_S) |
368 | #define G_FW_RI_RES_WR_ONCHIP(x) \ | 368 | #define FW_RI_RES_WR_ONCHIP_G(x) \ |
369 | (((x) >> S_FW_RI_RES_WR_ONCHIP) & M_FW_RI_RES_WR_ONCHIP) | 369 | (((x) >> FW_RI_RES_WR_ONCHIP_S) & FW_RI_RES_WR_ONCHIP_M) |
370 | #define F_FW_RI_RES_WR_ONCHIP V_FW_RI_RES_WR_ONCHIP(1U) | 370 | #define FW_RI_RES_WR_ONCHIP_F FW_RI_RES_WR_ONCHIP_V(1U) |
371 | 371 | ||
372 | #define S_FW_RI_RES_WR_PCIECHN 16 | 372 | #define FW_RI_RES_WR_PCIECHN_S 16 |
373 | #define M_FW_RI_RES_WR_PCIECHN 0x3 | 373 | #define FW_RI_RES_WR_PCIECHN_M 0x3 |
374 | #define V_FW_RI_RES_WR_PCIECHN(x) ((x) << S_FW_RI_RES_WR_PCIECHN) | 374 | #define FW_RI_RES_WR_PCIECHN_V(x) ((x) << FW_RI_RES_WR_PCIECHN_S) |
375 | #define G_FW_RI_RES_WR_PCIECHN(x) \ | 375 | #define FW_RI_RES_WR_PCIECHN_G(x) \ |
376 | (((x) >> S_FW_RI_RES_WR_PCIECHN) & M_FW_RI_RES_WR_PCIECHN) | 376 | (((x) >> FW_RI_RES_WR_PCIECHN_S) & FW_RI_RES_WR_PCIECHN_M) |
377 | 377 | ||
378 | #define S_FW_RI_RES_WR_IQID 0 | 378 | #define FW_RI_RES_WR_IQID_S 0 |
379 | #define M_FW_RI_RES_WR_IQID 0xffff | 379 | #define FW_RI_RES_WR_IQID_M 0xffff |
380 | #define V_FW_RI_RES_WR_IQID(x) ((x) << S_FW_RI_RES_WR_IQID) | 380 | #define FW_RI_RES_WR_IQID_V(x) ((x) << FW_RI_RES_WR_IQID_S) |
381 | #define G_FW_RI_RES_WR_IQID(x) \ | 381 | #define FW_RI_RES_WR_IQID_G(x) \ |
382 | (((x) >> S_FW_RI_RES_WR_IQID) & M_FW_RI_RES_WR_IQID) | 382 | (((x) >> FW_RI_RES_WR_IQID_S) & FW_RI_RES_WR_IQID_M) |
383 | 383 | ||
384 | #define S_FW_RI_RES_WR_DCAEN 31 | 384 | #define FW_RI_RES_WR_DCAEN_S 31 |
385 | #define M_FW_RI_RES_WR_DCAEN 0x1 | 385 | #define FW_RI_RES_WR_DCAEN_M 0x1 |
386 | #define V_FW_RI_RES_WR_DCAEN(x) ((x) << S_FW_RI_RES_WR_DCAEN) | 386 | #define FW_RI_RES_WR_DCAEN_V(x) ((x) << FW_RI_RES_WR_DCAEN_S) |
387 | #define G_FW_RI_RES_WR_DCAEN(x) \ | 387 | #define FW_RI_RES_WR_DCAEN_G(x) \ |
388 | (((x) >> S_FW_RI_RES_WR_DCAEN) & M_FW_RI_RES_WR_DCAEN) | 388 | (((x) >> FW_RI_RES_WR_DCAEN_S) & FW_RI_RES_WR_DCAEN_M) |
389 | #define F_FW_RI_RES_WR_DCAEN V_FW_RI_RES_WR_DCAEN(1U) | 389 | #define FW_RI_RES_WR_DCAEN_F FW_RI_RES_WR_DCAEN_V(1U) |
390 | 390 | ||
391 | #define S_FW_RI_RES_WR_DCACPU 26 | 391 | #define FW_RI_RES_WR_DCACPU_S 26 |
392 | #define M_FW_RI_RES_WR_DCACPU 0x1f | 392 | #define FW_RI_RES_WR_DCACPU_M 0x1f |
393 | #define V_FW_RI_RES_WR_DCACPU(x) ((x) << S_FW_RI_RES_WR_DCACPU) | 393 | #define FW_RI_RES_WR_DCACPU_V(x) ((x) << FW_RI_RES_WR_DCACPU_S) |
394 | #define G_FW_RI_RES_WR_DCACPU(x) \ | 394 | #define FW_RI_RES_WR_DCACPU_G(x) \ |
395 | (((x) >> S_FW_RI_RES_WR_DCACPU) & M_FW_RI_RES_WR_DCACPU) | 395 | (((x) >> FW_RI_RES_WR_DCACPU_S) & FW_RI_RES_WR_DCACPU_M) |
396 | 396 | ||
397 | #define S_FW_RI_RES_WR_FBMIN 23 | 397 | #define FW_RI_RES_WR_FBMIN_S 23 |
398 | #define M_FW_RI_RES_WR_FBMIN 0x7 | 398 | #define FW_RI_RES_WR_FBMIN_M 0x7 |
399 | #define V_FW_RI_RES_WR_FBMIN(x) ((x) << S_FW_RI_RES_WR_FBMIN) | 399 | #define FW_RI_RES_WR_FBMIN_V(x) ((x) << FW_RI_RES_WR_FBMIN_S) |
400 | #define G_FW_RI_RES_WR_FBMIN(x) \ | 400 | #define FW_RI_RES_WR_FBMIN_G(x) \ |
401 | (((x) >> S_FW_RI_RES_WR_FBMIN) & M_FW_RI_RES_WR_FBMIN) | 401 | (((x) >> FW_RI_RES_WR_FBMIN_S) & FW_RI_RES_WR_FBMIN_M) |
402 | 402 | ||
403 | #define S_FW_RI_RES_WR_FBMAX 20 | 403 | #define FW_RI_RES_WR_FBMAX_S 20 |
404 | #define M_FW_RI_RES_WR_FBMAX 0x7 | 404 | #define FW_RI_RES_WR_FBMAX_M 0x7 |
405 | #define V_FW_RI_RES_WR_FBMAX(x) ((x) << S_FW_RI_RES_WR_FBMAX) | 405 | #define FW_RI_RES_WR_FBMAX_V(x) ((x) << FW_RI_RES_WR_FBMAX_S) |
406 | #define G_FW_RI_RES_WR_FBMAX(x) \ | 406 | #define FW_RI_RES_WR_FBMAX_G(x) \ |
407 | (((x) >> S_FW_RI_RES_WR_FBMAX) & M_FW_RI_RES_WR_FBMAX) | 407 | (((x) >> FW_RI_RES_WR_FBMAX_S) & FW_RI_RES_WR_FBMAX_M) |
408 | 408 | ||
409 | #define S_FW_RI_RES_WR_CIDXFTHRESHO 19 | 409 | #define FW_RI_RES_WR_CIDXFTHRESHO_S 19 |
410 | #define M_FW_RI_RES_WR_CIDXFTHRESHO 0x1 | 410 | #define FW_RI_RES_WR_CIDXFTHRESHO_M 0x1 |
411 | #define V_FW_RI_RES_WR_CIDXFTHRESHO(x) ((x) << S_FW_RI_RES_WR_CIDXFTHRESHO) | 411 | #define FW_RI_RES_WR_CIDXFTHRESHO_V(x) ((x) << FW_RI_RES_WR_CIDXFTHRESHO_S) |
412 | #define G_FW_RI_RES_WR_CIDXFTHRESHO(x) \ | 412 | #define FW_RI_RES_WR_CIDXFTHRESHO_G(x) \ |
413 | (((x) >> S_FW_RI_RES_WR_CIDXFTHRESHO) & M_FW_RI_RES_WR_CIDXFTHRESHO) | 413 | (((x) >> FW_RI_RES_WR_CIDXFTHRESHO_S) & FW_RI_RES_WR_CIDXFTHRESHO_M) |
414 | #define F_FW_RI_RES_WR_CIDXFTHRESHO V_FW_RI_RES_WR_CIDXFTHRESHO(1U) | 414 | #define FW_RI_RES_WR_CIDXFTHRESHO_F FW_RI_RES_WR_CIDXFTHRESHO_V(1U) |
415 | 415 | ||
416 | #define S_FW_RI_RES_WR_CIDXFTHRESH 16 | 416 | #define FW_RI_RES_WR_CIDXFTHRESH_S 16 |
417 | #define M_FW_RI_RES_WR_CIDXFTHRESH 0x7 | 417 | #define FW_RI_RES_WR_CIDXFTHRESH_M 0x7 |
418 | #define V_FW_RI_RES_WR_CIDXFTHRESH(x) ((x) << S_FW_RI_RES_WR_CIDXFTHRESH) | 418 | #define FW_RI_RES_WR_CIDXFTHRESH_V(x) ((x) << FW_RI_RES_WR_CIDXFTHRESH_S) |
419 | #define G_FW_RI_RES_WR_CIDXFTHRESH(x) \ | 419 | #define FW_RI_RES_WR_CIDXFTHRESH_G(x) \ |
420 | (((x) >> S_FW_RI_RES_WR_CIDXFTHRESH) & M_FW_RI_RES_WR_CIDXFTHRESH) | 420 | (((x) >> FW_RI_RES_WR_CIDXFTHRESH_S) & FW_RI_RES_WR_CIDXFTHRESH_M) |
421 | 421 | ||
422 | #define S_FW_RI_RES_WR_EQSIZE 0 | 422 | #define FW_RI_RES_WR_EQSIZE_S 0 |
423 | #define M_FW_RI_RES_WR_EQSIZE 0xffff | 423 | #define FW_RI_RES_WR_EQSIZE_M 0xffff |
424 | #define V_FW_RI_RES_WR_EQSIZE(x) ((x) << S_FW_RI_RES_WR_EQSIZE) | 424 | #define FW_RI_RES_WR_EQSIZE_V(x) ((x) << FW_RI_RES_WR_EQSIZE_S) |
425 | #define G_FW_RI_RES_WR_EQSIZE(x) \ | 425 | #define FW_RI_RES_WR_EQSIZE_G(x) \ |
426 | (((x) >> S_FW_RI_RES_WR_EQSIZE) & M_FW_RI_RES_WR_EQSIZE) | 426 | (((x) >> FW_RI_RES_WR_EQSIZE_S) & FW_RI_RES_WR_EQSIZE_M) |
427 | 427 | ||
428 | #define S_FW_RI_RES_WR_IQANDST 15 | 428 | #define FW_RI_RES_WR_IQANDST_S 15 |
429 | #define M_FW_RI_RES_WR_IQANDST 0x1 | 429 | #define FW_RI_RES_WR_IQANDST_M 0x1 |
430 | #define V_FW_RI_RES_WR_IQANDST(x) ((x) << S_FW_RI_RES_WR_IQANDST) | 430 | #define FW_RI_RES_WR_IQANDST_V(x) ((x) << FW_RI_RES_WR_IQANDST_S) |
431 | #define G_FW_RI_RES_WR_IQANDST(x) \ | 431 | #define FW_RI_RES_WR_IQANDST_G(x) \ |
432 | (((x) >> S_FW_RI_RES_WR_IQANDST) & M_FW_RI_RES_WR_IQANDST) | 432 | (((x) >> FW_RI_RES_WR_IQANDST_S) & FW_RI_RES_WR_IQANDST_M) |
433 | #define F_FW_RI_RES_WR_IQANDST V_FW_RI_RES_WR_IQANDST(1U) | 433 | #define FW_RI_RES_WR_IQANDST_F FW_RI_RES_WR_IQANDST_V(1U) |
434 | 434 | ||
435 | #define S_FW_RI_RES_WR_IQANUS 14 | 435 | #define FW_RI_RES_WR_IQANUS_S 14 |
436 | #define M_FW_RI_RES_WR_IQANUS 0x1 | 436 | #define FW_RI_RES_WR_IQANUS_M 0x1 |
437 | #define V_FW_RI_RES_WR_IQANUS(x) ((x) << S_FW_RI_RES_WR_IQANUS) | 437 | #define FW_RI_RES_WR_IQANUS_V(x) ((x) << FW_RI_RES_WR_IQANUS_S) |
438 | #define G_FW_RI_RES_WR_IQANUS(x) \ | 438 | #define FW_RI_RES_WR_IQANUS_G(x) \ |
439 | (((x) >> S_FW_RI_RES_WR_IQANUS) & M_FW_RI_RES_WR_IQANUS) | 439 | (((x) >> FW_RI_RES_WR_IQANUS_S) & FW_RI_RES_WR_IQANUS_M) |
440 | #define F_FW_RI_RES_WR_IQANUS V_FW_RI_RES_WR_IQANUS(1U) | 440 | #define FW_RI_RES_WR_IQANUS_F FW_RI_RES_WR_IQANUS_V(1U) |
441 | 441 | ||
442 | #define S_FW_RI_RES_WR_IQANUD 12 | 442 | #define FW_RI_RES_WR_IQANUD_S 12 |
443 | #define M_FW_RI_RES_WR_IQANUD 0x3 | 443 | #define FW_RI_RES_WR_IQANUD_M 0x3 |
444 | #define V_FW_RI_RES_WR_IQANUD(x) ((x) << S_FW_RI_RES_WR_IQANUD) | 444 | #define FW_RI_RES_WR_IQANUD_V(x) ((x) << FW_RI_RES_WR_IQANUD_S) |
445 | #define G_FW_RI_RES_WR_IQANUD(x) \ | 445 | #define FW_RI_RES_WR_IQANUD_G(x) \ |
446 | (((x) >> S_FW_RI_RES_WR_IQANUD) & M_FW_RI_RES_WR_IQANUD) | 446 | (((x) >> FW_RI_RES_WR_IQANUD_S) & FW_RI_RES_WR_IQANUD_M) |
447 | 447 | ||
448 | #define S_FW_RI_RES_WR_IQANDSTINDEX 0 | 448 | #define FW_RI_RES_WR_IQANDSTINDEX_S 0 |
449 | #define M_FW_RI_RES_WR_IQANDSTINDEX 0xfff | 449 | #define FW_RI_RES_WR_IQANDSTINDEX_M 0xfff |
450 | #define V_FW_RI_RES_WR_IQANDSTINDEX(x) ((x) << S_FW_RI_RES_WR_IQANDSTINDEX) | 450 | #define FW_RI_RES_WR_IQANDSTINDEX_V(x) ((x) << FW_RI_RES_WR_IQANDSTINDEX_S) |
451 | #define G_FW_RI_RES_WR_IQANDSTINDEX(x) \ | 451 | #define FW_RI_RES_WR_IQANDSTINDEX_G(x) \ |
452 | (((x) >> S_FW_RI_RES_WR_IQANDSTINDEX) & M_FW_RI_RES_WR_IQANDSTINDEX) | 452 | (((x) >> FW_RI_RES_WR_IQANDSTINDEX_S) & FW_RI_RES_WR_IQANDSTINDEX_M) |
453 | 453 | ||
454 | #define S_FW_RI_RES_WR_IQDROPRSS 15 | 454 | #define FW_RI_RES_WR_IQDROPRSS_S 15 |
455 | #define M_FW_RI_RES_WR_IQDROPRSS 0x1 | 455 | #define FW_RI_RES_WR_IQDROPRSS_M 0x1 |
456 | #define V_FW_RI_RES_WR_IQDROPRSS(x) ((x) << S_FW_RI_RES_WR_IQDROPRSS) | 456 | #define FW_RI_RES_WR_IQDROPRSS_V(x) ((x) << FW_RI_RES_WR_IQDROPRSS_S) |
457 | #define G_FW_RI_RES_WR_IQDROPRSS(x) \ | 457 | #define FW_RI_RES_WR_IQDROPRSS_G(x) \ |
458 | (((x) >> S_FW_RI_RES_WR_IQDROPRSS) & M_FW_RI_RES_WR_IQDROPRSS) | 458 | (((x) >> FW_RI_RES_WR_IQDROPRSS_S) & FW_RI_RES_WR_IQDROPRSS_M) |
459 | #define F_FW_RI_RES_WR_IQDROPRSS V_FW_RI_RES_WR_IQDROPRSS(1U) | 459 | #define FW_RI_RES_WR_IQDROPRSS_F FW_RI_RES_WR_IQDROPRSS_V(1U) |
460 | 460 | ||
461 | #define S_FW_RI_RES_WR_IQGTSMODE 14 | 461 | #define FW_RI_RES_WR_IQGTSMODE_S 14 |
462 | #define M_FW_RI_RES_WR_IQGTSMODE 0x1 | 462 | #define FW_RI_RES_WR_IQGTSMODE_M 0x1 |
463 | #define V_FW_RI_RES_WR_IQGTSMODE(x) ((x) << S_FW_RI_RES_WR_IQGTSMODE) | 463 | #define FW_RI_RES_WR_IQGTSMODE_V(x) ((x) << FW_RI_RES_WR_IQGTSMODE_S) |
464 | #define G_FW_RI_RES_WR_IQGTSMODE(x) \ | 464 | #define FW_RI_RES_WR_IQGTSMODE_G(x) \ |
465 | (((x) >> S_FW_RI_RES_WR_IQGTSMODE) & M_FW_RI_RES_WR_IQGTSMODE) | 465 | (((x) >> FW_RI_RES_WR_IQGTSMODE_S) & FW_RI_RES_WR_IQGTSMODE_M) |
466 | #define F_FW_RI_RES_WR_IQGTSMODE V_FW_RI_RES_WR_IQGTSMODE(1U) | 466 | #define FW_RI_RES_WR_IQGTSMODE_F FW_RI_RES_WR_IQGTSMODE_V(1U) |
467 | 467 | ||
468 | #define S_FW_RI_RES_WR_IQPCIECH 12 | 468 | #define FW_RI_RES_WR_IQPCIECH_S 12 |
469 | #define M_FW_RI_RES_WR_IQPCIECH 0x3 | 469 | #define FW_RI_RES_WR_IQPCIECH_M 0x3 |
470 | #define V_FW_RI_RES_WR_IQPCIECH(x) ((x) << S_FW_RI_RES_WR_IQPCIECH) | 470 | #define FW_RI_RES_WR_IQPCIECH_V(x) ((x) << FW_RI_RES_WR_IQPCIECH_S) |
471 | #define G_FW_RI_RES_WR_IQPCIECH(x) \ | 471 | #define FW_RI_RES_WR_IQPCIECH_G(x) \ |
472 | (((x) >> S_FW_RI_RES_WR_IQPCIECH) & M_FW_RI_RES_WR_IQPCIECH) | 472 | (((x) >> FW_RI_RES_WR_IQPCIECH_S) & FW_RI_RES_WR_IQPCIECH_M) |
473 | 473 | ||
474 | #define S_FW_RI_RES_WR_IQDCAEN 11 | 474 | #define FW_RI_RES_WR_IQDCAEN_S 11 |
475 | #define M_FW_RI_RES_WR_IQDCAEN 0x1 | 475 | #define FW_RI_RES_WR_IQDCAEN_M 0x1 |
476 | #define V_FW_RI_RES_WR_IQDCAEN(x) ((x) << S_FW_RI_RES_WR_IQDCAEN) | 476 | #define FW_RI_RES_WR_IQDCAEN_V(x) ((x) << FW_RI_RES_WR_IQDCAEN_S) |
477 | #define G_FW_RI_RES_WR_IQDCAEN(x) \ | 477 | #define FW_RI_RES_WR_IQDCAEN_G(x) \ |
478 | (((x) >> S_FW_RI_RES_WR_IQDCAEN) & M_FW_RI_RES_WR_IQDCAEN) | 478 | (((x) >> FW_RI_RES_WR_IQDCAEN_S) & FW_RI_RES_WR_IQDCAEN_M) |
479 | #define F_FW_RI_RES_WR_IQDCAEN V_FW_RI_RES_WR_IQDCAEN(1U) | 479 | #define FW_RI_RES_WR_IQDCAEN_F FW_RI_RES_WR_IQDCAEN_V(1U) |
480 | 480 | ||
481 | #define S_FW_RI_RES_WR_IQDCACPU 6 | 481 | #define FW_RI_RES_WR_IQDCACPU_S 6 |
482 | #define M_FW_RI_RES_WR_IQDCACPU 0x1f | 482 | #define FW_RI_RES_WR_IQDCACPU_M 0x1f |
483 | #define V_FW_RI_RES_WR_IQDCACPU(x) ((x) << S_FW_RI_RES_WR_IQDCACPU) | 483 | #define FW_RI_RES_WR_IQDCACPU_V(x) ((x) << FW_RI_RES_WR_IQDCACPU_S) |
484 | #define G_FW_RI_RES_WR_IQDCACPU(x) \ | 484 | #define FW_RI_RES_WR_IQDCACPU_G(x) \ |
485 | (((x) >> S_FW_RI_RES_WR_IQDCACPU) & M_FW_RI_RES_WR_IQDCACPU) | 485 | (((x) >> FW_RI_RES_WR_IQDCACPU_S) & FW_RI_RES_WR_IQDCACPU_M) |
486 | 486 | ||
487 | #define S_FW_RI_RES_WR_IQINTCNTTHRESH 4 | 487 | #define FW_RI_RES_WR_IQINTCNTTHRESH_S 4 |
488 | #define M_FW_RI_RES_WR_IQINTCNTTHRESH 0x3 | 488 | #define FW_RI_RES_WR_IQINTCNTTHRESH_M 0x3 |
489 | #define V_FW_RI_RES_WR_IQINTCNTTHRESH(x) \ | 489 | #define FW_RI_RES_WR_IQINTCNTTHRESH_V(x) \ |
490 | ((x) << S_FW_RI_RES_WR_IQINTCNTTHRESH) | 490 | ((x) << FW_RI_RES_WR_IQINTCNTTHRESH_S) |
491 | #define G_FW_RI_RES_WR_IQINTCNTTHRESH(x) \ | 491 | #define FW_RI_RES_WR_IQINTCNTTHRESH_G(x) \ |
492 | (((x) >> S_FW_RI_RES_WR_IQINTCNTTHRESH) & M_FW_RI_RES_WR_IQINTCNTTHRESH) | 492 | (((x) >> FW_RI_RES_WR_IQINTCNTTHRESH_S) & FW_RI_RES_WR_IQINTCNTTHRESH_M) |
493 | 493 | ||
494 | #define S_FW_RI_RES_WR_IQO 3 | 494 | #define FW_RI_RES_WR_IQO_S 3 |
495 | #define M_FW_RI_RES_WR_IQO 0x1 | 495 | #define FW_RI_RES_WR_IQO_M 0x1 |
496 | #define V_FW_RI_RES_WR_IQO(x) ((x) << S_FW_RI_RES_WR_IQO) | 496 | #define FW_RI_RES_WR_IQO_V(x) ((x) << FW_RI_RES_WR_IQO_S) |
497 | #define G_FW_RI_RES_WR_IQO(x) \ | 497 | #define FW_RI_RES_WR_IQO_G(x) \ |
498 | (((x) >> S_FW_RI_RES_WR_IQO) & M_FW_RI_RES_WR_IQO) | 498 | (((x) >> FW_RI_RES_WR_IQO_S) & FW_RI_RES_WR_IQO_M) |
499 | #define F_FW_RI_RES_WR_IQO V_FW_RI_RES_WR_IQO(1U) | 499 | #define FW_RI_RES_WR_IQO_F FW_RI_RES_WR_IQO_V(1U) |
500 | 500 | ||
501 | #define S_FW_RI_RES_WR_IQCPRIO 2 | 501 | #define FW_RI_RES_WR_IQCPRIO_S 2 |
502 | #define M_FW_RI_RES_WR_IQCPRIO 0x1 | 502 | #define FW_RI_RES_WR_IQCPRIO_M 0x1 |
503 | #define V_FW_RI_RES_WR_IQCPRIO(x) ((x) << S_FW_RI_RES_WR_IQCPRIO) | 503 | #define FW_RI_RES_WR_IQCPRIO_V(x) ((x) << FW_RI_RES_WR_IQCPRIO_S) |
504 | #define G_FW_RI_RES_WR_IQCPRIO(x) \ | 504 | #define FW_RI_RES_WR_IQCPRIO_G(x) \ |
505 | (((x) >> S_FW_RI_RES_WR_IQCPRIO) & M_FW_RI_RES_WR_IQCPRIO) | 505 | (((x) >> FW_RI_RES_WR_IQCPRIO_S) & FW_RI_RES_WR_IQCPRIO_M) |
506 | #define F_FW_RI_RES_WR_IQCPRIO V_FW_RI_RES_WR_IQCPRIO(1U) | 506 | #define FW_RI_RES_WR_IQCPRIO_F FW_RI_RES_WR_IQCPRIO_V(1U) |
507 | 507 | ||
508 | #define S_FW_RI_RES_WR_IQESIZE 0 | 508 | #define FW_RI_RES_WR_IQESIZE_S 0 |
509 | #define M_FW_RI_RES_WR_IQESIZE 0x3 | 509 | #define FW_RI_RES_WR_IQESIZE_M 0x3 |
510 | #define V_FW_RI_RES_WR_IQESIZE(x) ((x) << S_FW_RI_RES_WR_IQESIZE) | 510 | #define FW_RI_RES_WR_IQESIZE_V(x) ((x) << FW_RI_RES_WR_IQESIZE_S) |
511 | #define G_FW_RI_RES_WR_IQESIZE(x) \ | 511 | #define FW_RI_RES_WR_IQESIZE_G(x) \ |
512 | (((x) >> S_FW_RI_RES_WR_IQESIZE) & M_FW_RI_RES_WR_IQESIZE) | 512 | (((x) >> FW_RI_RES_WR_IQESIZE_S) & FW_RI_RES_WR_IQESIZE_M) |
513 | 513 | ||
514 | #define S_FW_RI_RES_WR_IQNS 31 | 514 | #define FW_RI_RES_WR_IQNS_S 31 |
515 | #define M_FW_RI_RES_WR_IQNS 0x1 | 515 | #define FW_RI_RES_WR_IQNS_M 0x1 |
516 | #define V_FW_RI_RES_WR_IQNS(x) ((x) << S_FW_RI_RES_WR_IQNS) | 516 | #define FW_RI_RES_WR_IQNS_V(x) ((x) << FW_RI_RES_WR_IQNS_S) |
517 | #define G_FW_RI_RES_WR_IQNS(x) \ | 517 | #define FW_RI_RES_WR_IQNS_G(x) \ |
518 | (((x) >> S_FW_RI_RES_WR_IQNS) & M_FW_RI_RES_WR_IQNS) | 518 | (((x) >> FW_RI_RES_WR_IQNS_S) & FW_RI_RES_WR_IQNS_M) |
519 | #define F_FW_RI_RES_WR_IQNS V_FW_RI_RES_WR_IQNS(1U) | 519 | #define FW_RI_RES_WR_IQNS_F FW_RI_RES_WR_IQNS_V(1U) |
520 | 520 | ||
521 | #define S_FW_RI_RES_WR_IQRO 30 | 521 | #define FW_RI_RES_WR_IQRO_S 30 |
522 | #define M_FW_RI_RES_WR_IQRO 0x1 | 522 | #define FW_RI_RES_WR_IQRO_M 0x1 |
523 | #define V_FW_RI_RES_WR_IQRO(x) ((x) << S_FW_RI_RES_WR_IQRO) | 523 | #define FW_RI_RES_WR_IQRO_V(x) ((x) << FW_RI_RES_WR_IQRO_S) |
524 | #define G_FW_RI_RES_WR_IQRO(x) \ | 524 | #define FW_RI_RES_WR_IQRO_G(x) \ |
525 | (((x) >> S_FW_RI_RES_WR_IQRO) & M_FW_RI_RES_WR_IQRO) | 525 | (((x) >> FW_RI_RES_WR_IQRO_S) & FW_RI_RES_WR_IQRO_M) |
526 | #define F_FW_RI_RES_WR_IQRO V_FW_RI_RES_WR_IQRO(1U) | 526 | #define FW_RI_RES_WR_IQRO_F FW_RI_RES_WR_IQRO_V(1U) |
527 | 527 | ||
528 | struct fw_ri_rdma_write_wr { | 528 | struct fw_ri_rdma_write_wr { |
529 | __u8 opcode; | 529 | __u8 opcode; |
@@ -562,11 +562,11 @@ struct fw_ri_send_wr { | |||
562 | #endif | 562 | #endif |
563 | }; | 563 | }; |
564 | 564 | ||
565 | #define S_FW_RI_SEND_WR_SENDOP 0 | 565 | #define FW_RI_SEND_WR_SENDOP_S 0 |
566 | #define M_FW_RI_SEND_WR_SENDOP 0xf | 566 | #define FW_RI_SEND_WR_SENDOP_M 0xf |
567 | #define V_FW_RI_SEND_WR_SENDOP(x) ((x) << S_FW_RI_SEND_WR_SENDOP) | 567 | #define FW_RI_SEND_WR_SENDOP_V(x) ((x) << FW_RI_SEND_WR_SENDOP_S) |
568 | #define G_FW_RI_SEND_WR_SENDOP(x) \ | 568 | #define FW_RI_SEND_WR_SENDOP_G(x) \ |
569 | (((x) >> S_FW_RI_SEND_WR_SENDOP) & M_FW_RI_SEND_WR_SENDOP) | 569 | (((x) >> FW_RI_SEND_WR_SENDOP_S) & FW_RI_SEND_WR_SENDOP_M) |
570 | 570 | ||
571 | struct fw_ri_rdma_read_wr { | 571 | struct fw_ri_rdma_read_wr { |
572 | __u8 opcode; | 572 | __u8 opcode; |
@@ -612,25 +612,25 @@ struct fw_ri_bind_mw_wr { | |||
612 | __be64 r4; | 612 | __be64 r4; |
613 | }; | 613 | }; |
614 | 614 | ||
615 | #define S_FW_RI_BIND_MW_WR_QPBINDE 6 | 615 | #define FW_RI_BIND_MW_WR_QPBINDE_S 6 |
616 | #define M_FW_RI_BIND_MW_WR_QPBINDE 0x1 | 616 | #define FW_RI_BIND_MW_WR_QPBINDE_M 0x1 |
617 | #define V_FW_RI_BIND_MW_WR_QPBINDE(x) ((x) << S_FW_RI_BIND_MW_WR_QPBINDE) | 617 | #define FW_RI_BIND_MW_WR_QPBINDE_V(x) ((x) << FW_RI_BIND_MW_WR_QPBINDE_S) |
618 | #define G_FW_RI_BIND_MW_WR_QPBINDE(x) \ | 618 | #define FW_RI_BIND_MW_WR_QPBINDE_G(x) \ |
619 | (((x) >> S_FW_RI_BIND_MW_WR_QPBINDE) & M_FW_RI_BIND_MW_WR_QPBINDE) | 619 | (((x) >> FW_RI_BIND_MW_WR_QPBINDE_S) & FW_RI_BIND_MW_WR_QPBINDE_M) |
620 | #define F_FW_RI_BIND_MW_WR_QPBINDE V_FW_RI_BIND_MW_WR_QPBINDE(1U) | 620 | #define FW_RI_BIND_MW_WR_QPBINDE_F FW_RI_BIND_MW_WR_QPBINDE_V(1U) |
621 | 621 | ||
622 | #define S_FW_RI_BIND_MW_WR_NS 5 | 622 | #define FW_RI_BIND_MW_WR_NS_S 5 |
623 | #define M_FW_RI_BIND_MW_WR_NS 0x1 | 623 | #define FW_RI_BIND_MW_WR_NS_M 0x1 |
624 | #define V_FW_RI_BIND_MW_WR_NS(x) ((x) << S_FW_RI_BIND_MW_WR_NS) | 624 | #define FW_RI_BIND_MW_WR_NS_V(x) ((x) << FW_RI_BIND_MW_WR_NS_S) |
625 | #define G_FW_RI_BIND_MW_WR_NS(x) \ | 625 | #define FW_RI_BIND_MW_WR_NS_G(x) \ |
626 | (((x) >> S_FW_RI_BIND_MW_WR_NS) & M_FW_RI_BIND_MW_WR_NS) | 626 | (((x) >> FW_RI_BIND_MW_WR_NS_S) & FW_RI_BIND_MW_WR_NS_M) |
627 | #define F_FW_RI_BIND_MW_WR_NS V_FW_RI_BIND_MW_WR_NS(1U) | 627 | #define FW_RI_BIND_MW_WR_NS_F FW_RI_BIND_MW_WR_NS_V(1U) |
628 | 628 | ||
629 | #define S_FW_RI_BIND_MW_WR_DCACPU 0 | 629 | #define FW_RI_BIND_MW_WR_DCACPU_S 0 |
630 | #define M_FW_RI_BIND_MW_WR_DCACPU 0x1f | 630 | #define FW_RI_BIND_MW_WR_DCACPU_M 0x1f |
631 | #define V_FW_RI_BIND_MW_WR_DCACPU(x) ((x) << S_FW_RI_BIND_MW_WR_DCACPU) | 631 | #define FW_RI_BIND_MW_WR_DCACPU_V(x) ((x) << FW_RI_BIND_MW_WR_DCACPU_S) |
632 | #define G_FW_RI_BIND_MW_WR_DCACPU(x) \ | 632 | #define FW_RI_BIND_MW_WR_DCACPU_G(x) \ |
633 | (((x) >> S_FW_RI_BIND_MW_WR_DCACPU) & M_FW_RI_BIND_MW_WR_DCACPU) | 633 | (((x) >> FW_RI_BIND_MW_WR_DCACPU_S) & FW_RI_BIND_MW_WR_DCACPU_M) |
634 | 634 | ||
635 | struct fw_ri_fr_nsmr_wr { | 635 | struct fw_ri_fr_nsmr_wr { |
636 | __u8 opcode; | 636 | __u8 opcode; |
@@ -649,25 +649,25 @@ struct fw_ri_fr_nsmr_wr { | |||
649 | __be32 va_lo_fbo; | 649 | __be32 va_lo_fbo; |
650 | }; | 650 | }; |
651 | 651 | ||
652 | #define S_FW_RI_FR_NSMR_WR_QPBINDE 6 | 652 | #define FW_RI_FR_NSMR_WR_QPBINDE_S 6 |
653 | #define M_FW_RI_FR_NSMR_WR_QPBINDE 0x1 | 653 | #define FW_RI_FR_NSMR_WR_QPBINDE_M 0x1 |
654 | #define V_FW_RI_FR_NSMR_WR_QPBINDE(x) ((x) << S_FW_RI_FR_NSMR_WR_QPBINDE) | 654 | #define FW_RI_FR_NSMR_WR_QPBINDE_V(x) ((x) << FW_RI_FR_NSMR_WR_QPBINDE_S) |
655 | #define G_FW_RI_FR_NSMR_WR_QPBINDE(x) \ | 655 | #define FW_RI_FR_NSMR_WR_QPBINDE_G(x) \ |
656 | (((x) >> S_FW_RI_FR_NSMR_WR_QPBINDE) & M_FW_RI_FR_NSMR_WR_QPBINDE) | 656 | (((x) >> FW_RI_FR_NSMR_WR_QPBINDE_S) & FW_RI_FR_NSMR_WR_QPBINDE_M) |
657 | #define F_FW_RI_FR_NSMR_WR_QPBINDE V_FW_RI_FR_NSMR_WR_QPBINDE(1U) | 657 | #define FW_RI_FR_NSMR_WR_QPBINDE_F FW_RI_FR_NSMR_WR_QPBINDE_V(1U) |
658 | 658 | ||
659 | #define S_FW_RI_FR_NSMR_WR_NS 5 | 659 | #define FW_RI_FR_NSMR_WR_NS_S 5 |
660 | #define M_FW_RI_FR_NSMR_WR_NS 0x1 | 660 | #define FW_RI_FR_NSMR_WR_NS_M 0x1 |
661 | #define V_FW_RI_FR_NSMR_WR_NS(x) ((x) << S_FW_RI_FR_NSMR_WR_NS) | 661 | #define FW_RI_FR_NSMR_WR_NS_V(x) ((x) << FW_RI_FR_NSMR_WR_NS_S) |
662 | #define G_FW_RI_FR_NSMR_WR_NS(x) \ | 662 | #define FW_RI_FR_NSMR_WR_NS_G(x) \ |
663 | (((x) >> S_FW_RI_FR_NSMR_WR_NS) & M_FW_RI_FR_NSMR_WR_NS) | 663 | (((x) >> FW_RI_FR_NSMR_WR_NS_S) & FW_RI_FR_NSMR_WR_NS_M) |
664 | #define F_FW_RI_FR_NSMR_WR_NS V_FW_RI_FR_NSMR_WR_NS(1U) | 664 | #define FW_RI_FR_NSMR_WR_NS_F FW_RI_FR_NSMR_WR_NS_V(1U) |
665 | 665 | ||
666 | #define S_FW_RI_FR_NSMR_WR_DCACPU 0 | 666 | #define FW_RI_FR_NSMR_WR_DCACPU_S 0 |
667 | #define M_FW_RI_FR_NSMR_WR_DCACPU 0x1f | 667 | #define FW_RI_FR_NSMR_WR_DCACPU_M 0x1f |
668 | #define V_FW_RI_FR_NSMR_WR_DCACPU(x) ((x) << S_FW_RI_FR_NSMR_WR_DCACPU) | 668 | #define FW_RI_FR_NSMR_WR_DCACPU_V(x) ((x) << FW_RI_FR_NSMR_WR_DCACPU_S) |
669 | #define G_FW_RI_FR_NSMR_WR_DCACPU(x) \ | 669 | #define FW_RI_FR_NSMR_WR_DCACPU_G(x) \ |
670 | (((x) >> S_FW_RI_FR_NSMR_WR_DCACPU) & M_FW_RI_FR_NSMR_WR_DCACPU) | 670 | (((x) >> FW_RI_FR_NSMR_WR_DCACPU_S) & FW_RI_FR_NSMR_WR_DCACPU_M) |
671 | 671 | ||
672 | struct fw_ri_inv_lstag_wr { | 672 | struct fw_ri_inv_lstag_wr { |
673 | __u8 opcode; | 673 | __u8 opcode; |
@@ -740,18 +740,18 @@ struct fw_ri_wr { | |||
740 | } u; | 740 | } u; |
741 | }; | 741 | }; |
742 | 742 | ||
743 | #define S_FW_RI_WR_MPAREQBIT 7 | 743 | #define FW_RI_WR_MPAREQBIT_S 7 |
744 | #define M_FW_RI_WR_MPAREQBIT 0x1 | 744 | #define FW_RI_WR_MPAREQBIT_M 0x1 |
745 | #define V_FW_RI_WR_MPAREQBIT(x) ((x) << S_FW_RI_WR_MPAREQBIT) | 745 | #define FW_RI_WR_MPAREQBIT_V(x) ((x) << FW_RI_WR_MPAREQBIT_S) |
746 | #define G_FW_RI_WR_MPAREQBIT(x) \ | 746 | #define FW_RI_WR_MPAREQBIT_G(x) \ |
747 | (((x) >> S_FW_RI_WR_MPAREQBIT) & M_FW_RI_WR_MPAREQBIT) | 747 | (((x) >> FW_RI_WR_MPAREQBIT_S) & FW_RI_WR_MPAREQBIT_M) |
748 | #define F_FW_RI_WR_MPAREQBIT V_FW_RI_WR_MPAREQBIT(1U) | 748 | #define FW_RI_WR_MPAREQBIT_F FW_RI_WR_MPAREQBIT_V(1U) |
749 | 749 | ||
750 | #define S_FW_RI_WR_P2PTYPE 0 | 750 | #define FW_RI_WR_P2PTYPE_S 0 |
751 | #define M_FW_RI_WR_P2PTYPE 0xf | 751 | #define FW_RI_WR_P2PTYPE_M 0xf |
752 | #define V_FW_RI_WR_P2PTYPE(x) ((x) << S_FW_RI_WR_P2PTYPE) | 752 | #define FW_RI_WR_P2PTYPE_V(x) ((x) << FW_RI_WR_P2PTYPE_S) |
753 | #define G_FW_RI_WR_P2PTYPE(x) \ | 753 | #define FW_RI_WR_P2PTYPE_G(x) \ |
754 | (((x) >> S_FW_RI_WR_P2PTYPE) & M_FW_RI_WR_P2PTYPE) | 754 | (((x) >> FW_RI_WR_P2PTYPE_S) & FW_RI_WR_P2PTYPE_M) |
755 | 755 | ||
756 | struct tcp_options { | 756 | struct tcp_options { |
757 | __be16 mss; | 757 | __be16 mss; |
@@ -783,58 +783,58 @@ struct cpl_pass_accept_req { | |||
783 | }; | 783 | }; |
784 | 784 | ||
785 | /* cpl_pass_accept_req.hdr_len fields */ | 785 | /* cpl_pass_accept_req.hdr_len fields */ |
786 | #define S_SYN_RX_CHAN 0 | 786 | #define SYN_RX_CHAN_S 0 |
787 | #define M_SYN_RX_CHAN 0xF | 787 | #define SYN_RX_CHAN_M 0xF |
788 | #define V_SYN_RX_CHAN(x) ((x) << S_SYN_RX_CHAN) | 788 | #define SYN_RX_CHAN_V(x) ((x) << SYN_RX_CHAN_S) |
789 | #define G_SYN_RX_CHAN(x) (((x) >> S_SYN_RX_CHAN) & M_SYN_RX_CHAN) | 789 | #define SYN_RX_CHAN_G(x) (((x) >> SYN_RX_CHAN_S) & SYN_RX_CHAN_M) |
790 | 790 | ||
791 | #define S_TCP_HDR_LEN 10 | 791 | #define TCP_HDR_LEN_S 10 |
792 | #define M_TCP_HDR_LEN 0x3F | 792 | #define TCP_HDR_LEN_M 0x3F |
793 | #define V_TCP_HDR_LEN(x) ((x) << S_TCP_HDR_LEN) | 793 | #define TCP_HDR_LEN_V(x) ((x) << TCP_HDR_LEN_S) |
794 | #define G_TCP_HDR_LEN(x) (((x) >> S_TCP_HDR_LEN) & M_TCP_HDR_LEN) | 794 | #define TCP_HDR_LEN_G(x) (((x) >> TCP_HDR_LEN_S) & TCP_HDR_LEN_M) |
795 | 795 | ||
796 | #define S_IP_HDR_LEN 16 | 796 | #define IP_HDR_LEN_S 16 |
797 | #define M_IP_HDR_LEN 0x3FF | 797 | #define IP_HDR_LEN_M 0x3FF |
798 | #define V_IP_HDR_LEN(x) ((x) << S_IP_HDR_LEN) | 798 | #define IP_HDR_LEN_V(x) ((x) << IP_HDR_LEN_S) |
799 | #define G_IP_HDR_LEN(x) (((x) >> S_IP_HDR_LEN) & M_IP_HDR_LEN) | 799 | #define IP_HDR_LEN_G(x) (((x) >> IP_HDR_LEN_S) & IP_HDR_LEN_M) |
800 | 800 | ||
801 | #define S_ETH_HDR_LEN 26 | 801 | #define ETH_HDR_LEN_S 26 |
802 | #define M_ETH_HDR_LEN 0x1F | 802 | #define ETH_HDR_LEN_M 0x1F |
803 | #define V_ETH_HDR_LEN(x) ((x) << S_ETH_HDR_LEN) | 803 | #define ETH_HDR_LEN_V(x) ((x) << ETH_HDR_LEN_S) |
804 | #define G_ETH_HDR_LEN(x) (((x) >> S_ETH_HDR_LEN) & M_ETH_HDR_LEN) | 804 | #define ETH_HDR_LEN_G(x) (((x) >> ETH_HDR_LEN_S) & ETH_HDR_LEN_M) |
805 | 805 | ||
806 | /* cpl_pass_accept_req.l2info fields */ | 806 | /* cpl_pass_accept_req.l2info fields */ |
807 | #define S_SYN_MAC_IDX 0 | 807 | #define SYN_MAC_IDX_S 0 |
808 | #define M_SYN_MAC_IDX 0x1FF | 808 | #define SYN_MAC_IDX_M 0x1FF |
809 | #define V_SYN_MAC_IDX(x) ((x) << S_SYN_MAC_IDX) | 809 | #define SYN_MAC_IDX_V(x) ((x) << SYN_MAC_IDX_S) |
810 | #define G_SYN_MAC_IDX(x) (((x) >> S_SYN_MAC_IDX) & M_SYN_MAC_IDX) | 810 | #define SYN_MAC_IDX_G(x) (((x) >> SYN_MAC_IDX_S) & SYN_MAC_IDX_M) |
811 | 811 | ||
812 | #define S_SYN_XACT_MATCH 9 | 812 | #define SYN_XACT_MATCH_S 9 |
813 | #define V_SYN_XACT_MATCH(x) ((x) << S_SYN_XACT_MATCH) | 813 | #define SYN_XACT_MATCH_V(x) ((x) << SYN_XACT_MATCH_S) |
814 | #define F_SYN_XACT_MATCH V_SYN_XACT_MATCH(1U) | 814 | #define SYN_XACT_MATCH_F SYN_XACT_MATCH_V(1U) |
815 | 815 | ||
816 | #define S_SYN_INTF 12 | 816 | #define SYN_INTF_S 12 |
817 | #define M_SYN_INTF 0xF | 817 | #define SYN_INTF_M 0xF |
818 | #define V_SYN_INTF(x) ((x) << S_SYN_INTF) | 818 | #define SYN_INTF_V(x) ((x) << SYN_INTF_S) |
819 | #define G_SYN_INTF(x) (((x) >> S_SYN_INTF) & M_SYN_INTF) | 819 | #define SYN_INTF_G(x) (((x) >> SYN_INTF_S) & SYN_INTF_M) |
820 | 820 | ||
821 | struct ulptx_idata { | 821 | struct ulptx_idata { |
822 | __be32 cmd_more; | 822 | __be32 cmd_more; |
823 | __be32 len; | 823 | __be32 len; |
824 | }; | 824 | }; |
825 | 825 | ||
826 | #define S_ULPTX_NSGE 0 | 826 | #define ULPTX_NSGE_S 0 |
827 | #define M_ULPTX_NSGE 0xFFFF | 827 | #define ULPTX_NSGE_M 0xFFFF |
828 | #define V_ULPTX_NSGE(x) ((x) << S_ULPTX_NSGE) | 828 | #define ULPTX_NSGE_V(x) ((x) << ULPTX_NSGE_S) |
829 | 829 | ||
830 | #define S_RX_DACK_MODE 29 | 830 | #define RX_DACK_MODE_S 29 |
831 | #define M_RX_DACK_MODE 0x3 | 831 | #define RX_DACK_MODE_M 0x3 |
832 | #define V_RX_DACK_MODE(x) ((x) << S_RX_DACK_MODE) | 832 | #define RX_DACK_MODE_V(x) ((x) << RX_DACK_MODE_S) |
833 | #define G_RX_DACK_MODE(x) (((x) >> S_RX_DACK_MODE) & M_RX_DACK_MODE) | 833 | #define RX_DACK_MODE_G(x) (((x) >> RX_DACK_MODE_S) & RX_DACK_MODE_M) |
834 | 834 | ||
835 | #define S_RX_DACK_CHANGE 31 | 835 | #define RX_DACK_CHANGE_S 31 |
836 | #define V_RX_DACK_CHANGE(x) ((x) << S_RX_DACK_CHANGE) | 836 | #define RX_DACK_CHANGE_V(x) ((x) << RX_DACK_CHANGE_S) |
837 | #define F_RX_DACK_CHANGE V_RX_DACK_CHANGE(1U) | 837 | #define RX_DACK_CHANGE_F RX_DACK_CHANGE_V(1U) |
838 | 838 | ||
839 | enum { /* TCP congestion control algorithms */ | 839 | enum { /* TCP congestion control algorithms */ |
840 | CONG_ALG_RENO, | 840 | CONG_ALG_RENO, |
@@ -843,10 +843,10 @@ enum { /* TCP congestion control algorithms */ | |||
843 | CONG_ALG_HIGHSPEED | 843 | CONG_ALG_HIGHSPEED |
844 | }; | 844 | }; |
845 | 845 | ||
846 | #define S_CONG_CNTRL 14 | 846 | #define CONG_CNTRL_S 14 |
847 | #define M_CONG_CNTRL 0x3 | 847 | #define CONG_CNTRL_M 0x3 |
848 | #define V_CONG_CNTRL(x) ((x) << S_CONG_CNTRL) | 848 | #define CONG_CNTRL_V(x) ((x) << CONG_CNTRL_S) |
849 | #define G_CONG_CNTRL(x) (((x) >> S_CONG_CNTRL) & M_CONG_CNTRL) | 849 | #define CONG_CNTRL_G(x) (((x) >> CONG_CNTRL_S) & CONG_CNTRL_M) |
850 | 850 | ||
851 | #define CONG_CNTRL_VALID (1 << 18) | 851 | #define CONG_CNTRL_VALID (1 << 18) |
852 | 852 | ||