diff options
author | Hariprasad Shenai <hariprasad@chelsio.com> | 2014-11-21 02:22:03 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-22 16:57:47 -0500 |
commit | 6e4b51a604f9722f6cf99b7b3d7b79b7b4336ece (patch) | |
tree | cdfac5c0556502c2ca88a71e6517cf5cd6c747a4 | |
parent | 5167865aaa70d605bb0771368878cbad0553d854 (diff) |
cxgb4/cxgb4vf/csiostor: Cleanup macros/register defines related to queues
This patch cleanups all queue related macros/register defines that are defined
in t4fw_api.h and the affected files.
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/sge.c | 115 | ||||
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 32 | ||||
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h | 690 | ||||
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4vf/sge.c | 63 | ||||
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c | 8 | ||||
-rw-r--r-- | drivers/scsi/csiostor/csio_mb.c | 119 |
6 files changed, 684 insertions, 343 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/sge.c b/drivers/net/ethernet/chelsio/cxgb4/sge.c index 5cc5e19286a1..433560b8cb1b 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/sge.c +++ b/drivers/net/ethernet/chelsio/cxgb4/sge.c | |||
@@ -2299,18 +2299,18 @@ int t4_sge_alloc_rxq(struct adapter *adap, struct sge_rspq *iq, bool fwevtq, | |||
2299 | memset(&c, 0, sizeof(c)); | 2299 | memset(&c, 0, sizeof(c)); |
2300 | c.op_to_vfn = htonl(FW_CMD_OP_V(FW_IQ_CMD) | FW_CMD_REQUEST_F | | 2300 | c.op_to_vfn = htonl(FW_CMD_OP_V(FW_IQ_CMD) | FW_CMD_REQUEST_F | |
2301 | FW_CMD_WRITE_F | FW_CMD_EXEC_F | | 2301 | FW_CMD_WRITE_F | FW_CMD_EXEC_F | |
2302 | FW_IQ_CMD_PFN(adap->fn) | FW_IQ_CMD_VFN(0)); | 2302 | FW_IQ_CMD_PFN_V(adap->fn) | FW_IQ_CMD_VFN_V(0)); |
2303 | c.alloc_to_len16 = htonl(FW_IQ_CMD_ALLOC | FW_IQ_CMD_IQSTART(1) | | 2303 | c.alloc_to_len16 = htonl(FW_IQ_CMD_ALLOC_F | FW_IQ_CMD_IQSTART_F | |
2304 | FW_LEN16(c)); | 2304 | FW_LEN16(c)); |
2305 | c.type_to_iqandstindex = htonl(FW_IQ_CMD_TYPE(FW_IQ_TYPE_FL_INT_CAP) | | 2305 | c.type_to_iqandstindex = htonl(FW_IQ_CMD_TYPE_V(FW_IQ_TYPE_FL_INT_CAP) | |
2306 | FW_IQ_CMD_IQASYNCH(fwevtq) | FW_IQ_CMD_VIID(pi->viid) | | 2306 | FW_IQ_CMD_IQASYNCH_V(fwevtq) | FW_IQ_CMD_VIID_V(pi->viid) | |
2307 | FW_IQ_CMD_IQANDST(intr_idx < 0) | FW_IQ_CMD_IQANUD(1) | | 2307 | FW_IQ_CMD_IQANDST_V(intr_idx < 0) | FW_IQ_CMD_IQANUD_V(1) | |
2308 | FW_IQ_CMD_IQANDSTINDEX(intr_idx >= 0 ? intr_idx : | 2308 | FW_IQ_CMD_IQANDSTINDEX_V(intr_idx >= 0 ? intr_idx : |
2309 | -intr_idx - 1)); | 2309 | -intr_idx - 1)); |
2310 | c.iqdroprss_to_iqesize = htons(FW_IQ_CMD_IQPCIECH(pi->tx_chan) | | 2310 | c.iqdroprss_to_iqesize = htons(FW_IQ_CMD_IQPCIECH_V(pi->tx_chan) | |
2311 | FW_IQ_CMD_IQGTSMODE | | 2311 | FW_IQ_CMD_IQGTSMODE_F | |
2312 | FW_IQ_CMD_IQINTCNTTHRESH(iq->pktcnt_idx) | | 2312 | FW_IQ_CMD_IQINTCNTTHRESH_V(iq->pktcnt_idx) | |
2313 | FW_IQ_CMD_IQESIZE(ilog2(iq->iqe_len) - 4)); | 2313 | FW_IQ_CMD_IQESIZE_V(ilog2(iq->iqe_len) - 4)); |
2314 | c.iqsize = htons(iq->size); | 2314 | c.iqsize = htons(iq->size); |
2315 | c.iqaddr = cpu_to_be64(iq->phys_addr); | 2315 | c.iqaddr = cpu_to_be64(iq->phys_addr); |
2316 | 2316 | ||
@@ -2323,12 +2323,12 @@ int t4_sge_alloc_rxq(struct adapter *adap, struct sge_rspq *iq, bool fwevtq, | |||
2323 | goto fl_nomem; | 2323 | goto fl_nomem; |
2324 | 2324 | ||
2325 | flsz = fl->size / 8 + s->stat_len / sizeof(struct tx_desc); | 2325 | flsz = fl->size / 8 + s->stat_len / sizeof(struct tx_desc); |
2326 | c.iqns_to_fl0congen = htonl(FW_IQ_CMD_FL0PACKEN(1) | | 2326 | c.iqns_to_fl0congen = htonl(FW_IQ_CMD_FL0PACKEN_F | |
2327 | FW_IQ_CMD_FL0FETCHRO(1) | | 2327 | FW_IQ_CMD_FL0FETCHRO_F | |
2328 | FW_IQ_CMD_FL0DATARO(1) | | 2328 | FW_IQ_CMD_FL0DATARO_F | |
2329 | FW_IQ_CMD_FL0PADEN(1)); | 2329 | FW_IQ_CMD_FL0PADEN_F); |
2330 | c.fl0dcaen_to_fl0cidxfthresh = htons(FW_IQ_CMD_FL0FBMIN(2) | | 2330 | c.fl0dcaen_to_fl0cidxfthresh = htons(FW_IQ_CMD_FL0FBMIN_V(2) | |
2331 | FW_IQ_CMD_FL0FBMAX(3)); | 2331 | FW_IQ_CMD_FL0FBMAX_V(3)); |
2332 | c.fl0size = htons(flsz); | 2332 | c.fl0size = htons(flsz); |
2333 | c.fl0addr = cpu_to_be64(fl->addr); | 2333 | c.fl0addr = cpu_to_be64(fl->addr); |
2334 | } | 2334 | } |
@@ -2425,19 +2425,20 @@ int t4_sge_alloc_eth_txq(struct adapter *adap, struct sge_eth_txq *txq, | |||
2425 | memset(&c, 0, sizeof(c)); | 2425 | memset(&c, 0, sizeof(c)); |
2426 | c.op_to_vfn = htonl(FW_CMD_OP_V(FW_EQ_ETH_CMD) | FW_CMD_REQUEST_F | | 2426 | c.op_to_vfn = htonl(FW_CMD_OP_V(FW_EQ_ETH_CMD) | FW_CMD_REQUEST_F | |
2427 | FW_CMD_WRITE_F | FW_CMD_EXEC_F | | 2427 | FW_CMD_WRITE_F | FW_CMD_EXEC_F | |
2428 | FW_EQ_ETH_CMD_PFN(adap->fn) | FW_EQ_ETH_CMD_VFN(0)); | 2428 | FW_EQ_ETH_CMD_PFN_V(adap->fn) | |
2429 | c.alloc_to_len16 = htonl(FW_EQ_ETH_CMD_ALLOC | | 2429 | FW_EQ_ETH_CMD_VFN_V(0)); |
2430 | FW_EQ_ETH_CMD_EQSTART | FW_LEN16(c)); | 2430 | c.alloc_to_len16 = htonl(FW_EQ_ETH_CMD_ALLOC_F | |
2431 | c.viid_pkd = htonl(FW_EQ_ETH_CMD_AUTOEQUEQE | | 2431 | FW_EQ_ETH_CMD_EQSTART_F | FW_LEN16(c)); |
2432 | FW_EQ_ETH_CMD_VIID(pi->viid)); | 2432 | c.viid_pkd = htonl(FW_EQ_ETH_CMD_AUTOEQUEQE_F | |
2433 | c.fetchszm_to_iqid = htonl(FW_EQ_ETH_CMD_HOSTFCMODE(2) | | 2433 | FW_EQ_ETH_CMD_VIID_V(pi->viid)); |
2434 | FW_EQ_ETH_CMD_PCIECHN(pi->tx_chan) | | 2434 | c.fetchszm_to_iqid = htonl(FW_EQ_ETH_CMD_HOSTFCMODE_V(2) | |
2435 | FW_EQ_ETH_CMD_FETCHRO(1) | | 2435 | FW_EQ_ETH_CMD_PCIECHN_V(pi->tx_chan) | |
2436 | FW_EQ_ETH_CMD_IQID(iqid)); | 2436 | FW_EQ_ETH_CMD_FETCHRO_V(1) | |
2437 | c.dcaen_to_eqsize = htonl(FW_EQ_ETH_CMD_FBMIN(2) | | 2437 | FW_EQ_ETH_CMD_IQID_V(iqid)); |
2438 | FW_EQ_ETH_CMD_FBMAX(3) | | 2438 | c.dcaen_to_eqsize = htonl(FW_EQ_ETH_CMD_FBMIN_V(2) | |
2439 | FW_EQ_ETH_CMD_CIDXFTHRESH(5) | | 2439 | FW_EQ_ETH_CMD_FBMAX_V(3) | |
2440 | FW_EQ_ETH_CMD_EQSIZE(nentries)); | 2440 | FW_EQ_ETH_CMD_CIDXFTHRESH_V(5) | |
2441 | FW_EQ_ETH_CMD_EQSIZE_V(nentries)); | ||
2441 | c.eqaddr = cpu_to_be64(txq->q.phys_addr); | 2442 | c.eqaddr = cpu_to_be64(txq->q.phys_addr); |
2442 | 2443 | ||
2443 | ret = t4_wr_mbox(adap, adap->fn, &c, sizeof(c), &c); | 2444 | ret = t4_wr_mbox(adap, adap->fn, &c, sizeof(c), &c); |
@@ -2451,7 +2452,7 @@ int t4_sge_alloc_eth_txq(struct adapter *adap, struct sge_eth_txq *txq, | |||
2451 | return ret; | 2452 | return ret; |
2452 | } | 2453 | } |
2453 | 2454 | ||
2454 | init_txq(adap, &txq->q, FW_EQ_ETH_CMD_EQID_GET(ntohl(c.eqid_pkd))); | 2455 | init_txq(adap, &txq->q, FW_EQ_ETH_CMD_EQID_G(ntohl(c.eqid_pkd))); |
2455 | txq->txq = netdevq; | 2456 | txq->txq = netdevq; |
2456 | txq->tso = txq->tx_cso = txq->vlan_ins = 0; | 2457 | txq->tso = txq->tx_cso = txq->vlan_ins = 0; |
2457 | txq->mapping_err = 0; | 2458 | txq->mapping_err = 0; |
@@ -2478,20 +2479,20 @@ int t4_sge_alloc_ctrl_txq(struct adapter *adap, struct sge_ctrl_txq *txq, | |||
2478 | 2479 | ||
2479 | c.op_to_vfn = htonl(FW_CMD_OP_V(FW_EQ_CTRL_CMD) | FW_CMD_REQUEST_F | | 2480 | c.op_to_vfn = htonl(FW_CMD_OP_V(FW_EQ_CTRL_CMD) | FW_CMD_REQUEST_F | |
2480 | FW_CMD_WRITE_F | FW_CMD_EXEC_F | | 2481 | FW_CMD_WRITE_F | FW_CMD_EXEC_F | |
2481 | FW_EQ_CTRL_CMD_PFN(adap->fn) | | 2482 | FW_EQ_CTRL_CMD_PFN_V(adap->fn) | |
2482 | FW_EQ_CTRL_CMD_VFN(0)); | 2483 | FW_EQ_CTRL_CMD_VFN_V(0)); |
2483 | c.alloc_to_len16 = htonl(FW_EQ_CTRL_CMD_ALLOC | | 2484 | c.alloc_to_len16 = htonl(FW_EQ_CTRL_CMD_ALLOC_F | |
2484 | FW_EQ_CTRL_CMD_EQSTART | FW_LEN16(c)); | 2485 | FW_EQ_CTRL_CMD_EQSTART_F | FW_LEN16(c)); |
2485 | c.cmpliqid_eqid = htonl(FW_EQ_CTRL_CMD_CMPLIQID(cmplqid)); | 2486 | c.cmpliqid_eqid = htonl(FW_EQ_CTRL_CMD_CMPLIQID_V(cmplqid)); |
2486 | c.physeqid_pkd = htonl(0); | 2487 | c.physeqid_pkd = htonl(0); |
2487 | c.fetchszm_to_iqid = htonl(FW_EQ_CTRL_CMD_HOSTFCMODE(2) | | 2488 | c.fetchszm_to_iqid = htonl(FW_EQ_CTRL_CMD_HOSTFCMODE_V(2) | |
2488 | FW_EQ_CTRL_CMD_PCIECHN(pi->tx_chan) | | 2489 | FW_EQ_CTRL_CMD_PCIECHN_V(pi->tx_chan) | |
2489 | FW_EQ_CTRL_CMD_FETCHRO | | 2490 | FW_EQ_CTRL_CMD_FETCHRO_F | |
2490 | FW_EQ_CTRL_CMD_IQID(iqid)); | 2491 | FW_EQ_CTRL_CMD_IQID_V(iqid)); |
2491 | c.dcaen_to_eqsize = htonl(FW_EQ_CTRL_CMD_FBMIN(2) | | 2492 | c.dcaen_to_eqsize = htonl(FW_EQ_CTRL_CMD_FBMIN_V(2) | |
2492 | FW_EQ_CTRL_CMD_FBMAX(3) | | 2493 | FW_EQ_CTRL_CMD_FBMAX_V(3) | |
2493 | FW_EQ_CTRL_CMD_CIDXFTHRESH(5) | | 2494 | FW_EQ_CTRL_CMD_CIDXFTHRESH_V(5) | |
2494 | FW_EQ_CTRL_CMD_EQSIZE(nentries)); | 2495 | FW_EQ_CTRL_CMD_EQSIZE_V(nentries)); |
2495 | c.eqaddr = cpu_to_be64(txq->q.phys_addr); | 2496 | c.eqaddr = cpu_to_be64(txq->q.phys_addr); |
2496 | 2497 | ||
2497 | ret = t4_wr_mbox(adap, adap->fn, &c, sizeof(c), &c); | 2498 | ret = t4_wr_mbox(adap, adap->fn, &c, sizeof(c), &c); |
@@ -2503,7 +2504,7 @@ int t4_sge_alloc_ctrl_txq(struct adapter *adap, struct sge_ctrl_txq *txq, | |||
2503 | return ret; | 2504 | return ret; |
2504 | } | 2505 | } |
2505 | 2506 | ||
2506 | init_txq(adap, &txq->q, FW_EQ_CTRL_CMD_EQID_GET(ntohl(c.cmpliqid_eqid))); | 2507 | init_txq(adap, &txq->q, FW_EQ_CTRL_CMD_EQID_G(ntohl(c.cmpliqid_eqid))); |
2507 | txq->adap = adap; | 2508 | txq->adap = adap; |
2508 | skb_queue_head_init(&txq->sendq); | 2509 | skb_queue_head_init(&txq->sendq); |
2509 | tasklet_init(&txq->qresume_tsk, restart_ctrlq, (unsigned long)txq); | 2510 | tasklet_init(&txq->qresume_tsk, restart_ctrlq, (unsigned long)txq); |
@@ -2532,18 +2533,18 @@ int t4_sge_alloc_ofld_txq(struct adapter *adap, struct sge_ofld_txq *txq, | |||
2532 | memset(&c, 0, sizeof(c)); | 2533 | memset(&c, 0, sizeof(c)); |
2533 | c.op_to_vfn = htonl(FW_CMD_OP_V(FW_EQ_OFLD_CMD) | FW_CMD_REQUEST_F | | 2534 | c.op_to_vfn = htonl(FW_CMD_OP_V(FW_EQ_OFLD_CMD) | FW_CMD_REQUEST_F | |
2534 | FW_CMD_WRITE_F | FW_CMD_EXEC_F | | 2535 | FW_CMD_WRITE_F | FW_CMD_EXEC_F | |
2535 | FW_EQ_OFLD_CMD_PFN(adap->fn) | | 2536 | FW_EQ_OFLD_CMD_PFN_V(adap->fn) | |
2536 | FW_EQ_OFLD_CMD_VFN(0)); | 2537 | FW_EQ_OFLD_CMD_VFN_V(0)); |
2537 | c.alloc_to_len16 = htonl(FW_EQ_OFLD_CMD_ALLOC | | 2538 | c.alloc_to_len16 = htonl(FW_EQ_OFLD_CMD_ALLOC_F | |
2538 | FW_EQ_OFLD_CMD_EQSTART | FW_LEN16(c)); | 2539 | FW_EQ_OFLD_CMD_EQSTART_F | FW_LEN16(c)); |
2539 | c.fetchszm_to_iqid = htonl(FW_EQ_OFLD_CMD_HOSTFCMODE(2) | | 2540 | c.fetchszm_to_iqid = htonl(FW_EQ_OFLD_CMD_HOSTFCMODE_V(2) | |
2540 | FW_EQ_OFLD_CMD_PCIECHN(pi->tx_chan) | | 2541 | FW_EQ_OFLD_CMD_PCIECHN_V(pi->tx_chan) | |
2541 | FW_EQ_OFLD_CMD_FETCHRO(1) | | 2542 | FW_EQ_OFLD_CMD_FETCHRO_F | |
2542 | FW_EQ_OFLD_CMD_IQID(iqid)); | 2543 | FW_EQ_OFLD_CMD_IQID_V(iqid)); |
2543 | c.dcaen_to_eqsize = htonl(FW_EQ_OFLD_CMD_FBMIN(2) | | 2544 | c.dcaen_to_eqsize = htonl(FW_EQ_OFLD_CMD_FBMIN_V(2) | |
2544 | FW_EQ_OFLD_CMD_FBMAX(3) | | 2545 | FW_EQ_OFLD_CMD_FBMAX_V(3) | |
2545 | FW_EQ_OFLD_CMD_CIDXFTHRESH(5) | | 2546 | FW_EQ_OFLD_CMD_CIDXFTHRESH_V(5) | |
2546 | FW_EQ_OFLD_CMD_EQSIZE(nentries)); | 2547 | FW_EQ_OFLD_CMD_EQSIZE_V(nentries)); |
2547 | c.eqaddr = cpu_to_be64(txq->q.phys_addr); | 2548 | c.eqaddr = cpu_to_be64(txq->q.phys_addr); |
2548 | 2549 | ||
2549 | ret = t4_wr_mbox(adap, adap->fn, &c, sizeof(c), &c); | 2550 | ret = t4_wr_mbox(adap, adap->fn, &c, sizeof(c), &c); |
@@ -2557,7 +2558,7 @@ int t4_sge_alloc_ofld_txq(struct adapter *adap, struct sge_ofld_txq *txq, | |||
2557 | return ret; | 2558 | return ret; |
2558 | } | 2559 | } |
2559 | 2560 | ||
2560 | init_txq(adap, &txq->q, FW_EQ_OFLD_CMD_EQID_GET(ntohl(c.eqid_pkd))); | 2561 | init_txq(adap, &txq->q, FW_EQ_OFLD_CMD_EQID_G(ntohl(c.eqid_pkd))); |
2561 | txq->adap = adap; | 2562 | txq->adap = adap; |
2562 | skb_queue_head_init(&txq->sendq); | 2563 | skb_queue_head_init(&txq->sendq); |
2563 | tasklet_init(&txq->qresume_tsk, restart_ofldq, (unsigned long)txq); | 2564 | tasklet_init(&txq->qresume_tsk, restart_ofldq, (unsigned long)txq); |
diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c index 9f1b3043d003..da72814dff3d 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c +++ b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | |||
@@ -3715,10 +3715,10 @@ int t4_iq_free(struct adapter *adap, unsigned int mbox, unsigned int pf, | |||
3715 | 3715 | ||
3716 | memset(&c, 0, sizeof(c)); | 3716 | memset(&c, 0, sizeof(c)); |
3717 | c.op_to_vfn = htonl(FW_CMD_OP_V(FW_IQ_CMD) | FW_CMD_REQUEST_F | | 3717 | c.op_to_vfn = htonl(FW_CMD_OP_V(FW_IQ_CMD) | FW_CMD_REQUEST_F | |
3718 | FW_CMD_EXEC_F | FW_IQ_CMD_PFN(pf) | | 3718 | FW_CMD_EXEC_F | FW_IQ_CMD_PFN_V(pf) | |
3719 | FW_IQ_CMD_VFN(vf)); | 3719 | FW_IQ_CMD_VFN_V(vf)); |
3720 | c.alloc_to_len16 = htonl(FW_IQ_CMD_FREE | FW_LEN16(c)); | 3720 | c.alloc_to_len16 = htonl(FW_IQ_CMD_FREE_F | FW_LEN16(c)); |
3721 | c.type_to_iqandstindex = htonl(FW_IQ_CMD_TYPE(iqtype)); | 3721 | c.type_to_iqandstindex = htonl(FW_IQ_CMD_TYPE_V(iqtype)); |
3722 | c.iqid = htons(iqid); | 3722 | c.iqid = htons(iqid); |
3723 | c.fl0id = htons(fl0id); | 3723 | c.fl0id = htons(fl0id); |
3724 | c.fl1id = htons(fl1id); | 3724 | c.fl1id = htons(fl1id); |
@@ -3742,10 +3742,10 @@ int t4_eth_eq_free(struct adapter *adap, unsigned int mbox, unsigned int pf, | |||
3742 | 3742 | ||
3743 | memset(&c, 0, sizeof(c)); | 3743 | memset(&c, 0, sizeof(c)); |
3744 | c.op_to_vfn = htonl(FW_CMD_OP_V(FW_EQ_ETH_CMD) | FW_CMD_REQUEST_F | | 3744 | c.op_to_vfn = htonl(FW_CMD_OP_V(FW_EQ_ETH_CMD) | FW_CMD_REQUEST_F | |
3745 | FW_CMD_EXEC_F | FW_EQ_ETH_CMD_PFN(pf) | | 3745 | FW_CMD_EXEC_F | FW_EQ_ETH_CMD_PFN_V(pf) | |
3746 | FW_EQ_ETH_CMD_VFN(vf)); | 3746 | FW_EQ_ETH_CMD_VFN_V(vf)); |
3747 | c.alloc_to_len16 = htonl(FW_EQ_ETH_CMD_FREE | FW_LEN16(c)); | 3747 | c.alloc_to_len16 = htonl(FW_EQ_ETH_CMD_FREE_F | FW_LEN16(c)); |
3748 | c.eqid_pkd = htonl(FW_EQ_ETH_CMD_EQID(eqid)); | 3748 | c.eqid_pkd = htonl(FW_EQ_ETH_CMD_EQID_V(eqid)); |
3749 | return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL); | 3749 | return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL); |
3750 | } | 3750 | } |
3751 | 3751 | ||
@@ -3766,10 +3766,10 @@ int t4_ctrl_eq_free(struct adapter *adap, unsigned int mbox, unsigned int pf, | |||
3766 | 3766 | ||
3767 | memset(&c, 0, sizeof(c)); | 3767 | memset(&c, 0, sizeof(c)); |
3768 | c.op_to_vfn = htonl(FW_CMD_OP_V(FW_EQ_CTRL_CMD) | FW_CMD_REQUEST_F | | 3768 | c.op_to_vfn = htonl(FW_CMD_OP_V(FW_EQ_CTRL_CMD) | FW_CMD_REQUEST_F | |
3769 | FW_CMD_EXEC_F | FW_EQ_CTRL_CMD_PFN(pf) | | 3769 | FW_CMD_EXEC_F | FW_EQ_CTRL_CMD_PFN_V(pf) | |
3770 | FW_EQ_CTRL_CMD_VFN(vf)); | 3770 | FW_EQ_CTRL_CMD_VFN_V(vf)); |
3771 | c.alloc_to_len16 = htonl(FW_EQ_CTRL_CMD_FREE | FW_LEN16(c)); | 3771 | c.alloc_to_len16 = htonl(FW_EQ_CTRL_CMD_FREE_F | FW_LEN16(c)); |
3772 | c.cmpliqid_eqid = htonl(FW_EQ_CTRL_CMD_EQID(eqid)); | 3772 | c.cmpliqid_eqid = htonl(FW_EQ_CTRL_CMD_EQID_V(eqid)); |
3773 | return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL); | 3773 | return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL); |
3774 | } | 3774 | } |
3775 | 3775 | ||
@@ -3790,10 +3790,10 @@ int t4_ofld_eq_free(struct adapter *adap, unsigned int mbox, unsigned int pf, | |||
3790 | 3790 | ||
3791 | memset(&c, 0, sizeof(c)); | 3791 | memset(&c, 0, sizeof(c)); |
3792 | c.op_to_vfn = htonl(FW_CMD_OP_V(FW_EQ_OFLD_CMD) | FW_CMD_REQUEST_F | | 3792 | c.op_to_vfn = htonl(FW_CMD_OP_V(FW_EQ_OFLD_CMD) | FW_CMD_REQUEST_F | |
3793 | FW_CMD_EXEC_F | FW_EQ_OFLD_CMD_PFN(pf) | | 3793 | FW_CMD_EXEC_F | FW_EQ_OFLD_CMD_PFN_V(pf) | |
3794 | FW_EQ_OFLD_CMD_VFN(vf)); | 3794 | FW_EQ_OFLD_CMD_VFN_V(vf)); |
3795 | c.alloc_to_len16 = htonl(FW_EQ_OFLD_CMD_FREE | FW_LEN16(c)); | 3795 | c.alloc_to_len16 = htonl(FW_EQ_OFLD_CMD_FREE_F | FW_LEN16(c)); |
3796 | c.eqid_pkd = htonl(FW_EQ_OFLD_CMD_EQID(eqid)); | 3796 | c.eqid_pkd = htonl(FW_EQ_OFLD_CMD_EQID_V(eqid)); |
3797 | return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL); | 3797 | return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL); |
3798 | } | 3798 | } |
3799 | 3799 | ||
diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h b/drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h index 5839b8077575..92a0df5be28f 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h +++ b/drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h | |||
@@ -1274,85 +1274,239 @@ struct fw_iq_cmd { | |||
1274 | __be64 fl1addr; | 1274 | __be64 fl1addr; |
1275 | }; | 1275 | }; |
1276 | 1276 | ||
1277 | #define FW_IQ_CMD_PFN(x) ((x) << 8) | 1277 | #define FW_IQ_CMD_PFN_S 8 |
1278 | #define FW_IQ_CMD_VFN(x) ((x) << 0) | 1278 | #define FW_IQ_CMD_PFN_V(x) ((x) << FW_IQ_CMD_PFN_S) |
1279 | 1279 | ||
1280 | #define FW_IQ_CMD_ALLOC (1U << 31) | 1280 | #define FW_IQ_CMD_VFN_S 0 |
1281 | #define FW_IQ_CMD_FREE (1U << 30) | 1281 | #define FW_IQ_CMD_VFN_V(x) ((x) << FW_IQ_CMD_VFN_S) |
1282 | #define FW_IQ_CMD_MODIFY (1U << 29) | 1282 | |
1283 | #define FW_IQ_CMD_IQSTART(x) ((x) << 28) | 1283 | #define FW_IQ_CMD_ALLOC_S 31 |
1284 | #define FW_IQ_CMD_IQSTOP(x) ((x) << 27) | 1284 | #define FW_IQ_CMD_ALLOC_V(x) ((x) << FW_IQ_CMD_ALLOC_S) |
1285 | 1285 | #define FW_IQ_CMD_ALLOC_F FW_IQ_CMD_ALLOC_V(1U) | |
1286 | #define FW_IQ_CMD_TYPE(x) ((x) << 29) | 1286 | |
1287 | #define FW_IQ_CMD_IQASYNCH(x) ((x) << 28) | 1287 | #define FW_IQ_CMD_FREE_S 30 |
1288 | #define FW_IQ_CMD_VIID(x) ((x) << 16) | 1288 | #define FW_IQ_CMD_FREE_V(x) ((x) << FW_IQ_CMD_FREE_S) |
1289 | #define FW_IQ_CMD_IQANDST(x) ((x) << 15) | 1289 | #define FW_IQ_CMD_FREE_F FW_IQ_CMD_FREE_V(1U) |
1290 | #define FW_IQ_CMD_IQANUS(x) ((x) << 14) | 1290 | |
1291 | #define FW_IQ_CMD_IQANUD(x) ((x) << 12) | 1291 | #define FW_IQ_CMD_MODIFY_S 29 |
1292 | #define FW_IQ_CMD_IQANDSTINDEX(x) ((x) << 0) | 1292 | #define FW_IQ_CMD_MODIFY_V(x) ((x) << FW_IQ_CMD_MODIFY_S) |
1293 | 1293 | #define FW_IQ_CMD_MODIFY_F FW_IQ_CMD_MODIFY_V(1U) | |
1294 | #define FW_IQ_CMD_IQDROPRSS (1U << 15) | 1294 | |
1295 | #define FW_IQ_CMD_IQGTSMODE (1U << 14) | 1295 | #define FW_IQ_CMD_IQSTART_S 28 |
1296 | #define FW_IQ_CMD_IQPCIECH(x) ((x) << 12) | 1296 | #define FW_IQ_CMD_IQSTART_V(x) ((x) << FW_IQ_CMD_IQSTART_S) |
1297 | #define FW_IQ_CMD_IQDCAEN(x) ((x) << 11) | 1297 | #define FW_IQ_CMD_IQSTART_F FW_IQ_CMD_IQSTART_V(1U) |
1298 | #define FW_IQ_CMD_IQDCACPU(x) ((x) << 6) | 1298 | |
1299 | #define FW_IQ_CMD_IQINTCNTTHRESH(x) ((x) << 4) | 1299 | #define FW_IQ_CMD_IQSTOP_S 27 |
1300 | #define FW_IQ_CMD_IQO (1U << 3) | 1300 | #define FW_IQ_CMD_IQSTOP_V(x) ((x) << FW_IQ_CMD_IQSTOP_S) |
1301 | #define FW_IQ_CMD_IQCPRIO(x) ((x) << 2) | 1301 | #define FW_IQ_CMD_IQSTOP_F FW_IQ_CMD_IQSTOP_V(1U) |
1302 | #define FW_IQ_CMD_IQESIZE(x) ((x) << 0) | 1302 | |
1303 | 1303 | #define FW_IQ_CMD_TYPE_S 29 | |
1304 | #define FW_IQ_CMD_IQNS(x) ((x) << 31) | 1304 | #define FW_IQ_CMD_TYPE_V(x) ((x) << FW_IQ_CMD_TYPE_S) |
1305 | #define FW_IQ_CMD_IQRO(x) ((x) << 30) | 1305 | |
1306 | #define FW_IQ_CMD_IQFLINTIQHSEN(x) ((x) << 28) | 1306 | #define FW_IQ_CMD_IQASYNCH_S 28 |
1307 | #define FW_IQ_CMD_IQFLINTCONGEN(x) ((x) << 27) | 1307 | #define FW_IQ_CMD_IQASYNCH_V(x) ((x) << FW_IQ_CMD_IQASYNCH_S) |
1308 | #define FW_IQ_CMD_IQFLINTISCSIC(x) ((x) << 26) | 1308 | |
1309 | #define FW_IQ_CMD_FL0CNGCHMAP(x) ((x) << 20) | 1309 | #define FW_IQ_CMD_VIID_S 16 |
1310 | #define FW_IQ_CMD_FL0CACHELOCK(x) ((x) << 15) | 1310 | #define FW_IQ_CMD_VIID_V(x) ((x) << FW_IQ_CMD_VIID_S) |
1311 | #define FW_IQ_CMD_FL0DBP(x) ((x) << 14) | 1311 | |
1312 | #define FW_IQ_CMD_FL0DATANS(x) ((x) << 13) | 1312 | #define FW_IQ_CMD_IQANDST_S 15 |
1313 | #define FW_IQ_CMD_FL0DATARO(x) ((x) << 12) | 1313 | #define FW_IQ_CMD_IQANDST_V(x) ((x) << FW_IQ_CMD_IQANDST_S) |
1314 | #define FW_IQ_CMD_FL0CONGCIF(x) ((x) << 11) | 1314 | |
1315 | #define FW_IQ_CMD_FL0ONCHIP(x) ((x) << 10) | 1315 | #define FW_IQ_CMD_IQANUS_S 14 |
1316 | #define FW_IQ_CMD_FL0STATUSPGNS(x) ((x) << 9) | 1316 | #define FW_IQ_CMD_IQANUS_V(x) ((x) << FW_IQ_CMD_IQANUS_S) |
1317 | #define FW_IQ_CMD_FL0STATUSPGRO(x) ((x) << 8) | 1317 | |
1318 | #define FW_IQ_CMD_FL0FETCHNS(x) ((x) << 7) | 1318 | #define FW_IQ_CMD_IQANUD_S 12 |
1319 | #define FW_IQ_CMD_FL0FETCHRO(x) ((x) << 6) | 1319 | #define FW_IQ_CMD_IQANUD_V(x) ((x) << FW_IQ_CMD_IQANUD_S) |
1320 | #define FW_IQ_CMD_FL0HOSTFCMODE(x) ((x) << 4) | 1320 | |
1321 | #define FW_IQ_CMD_FL0CPRIO(x) ((x) << 3) | 1321 | #define FW_IQ_CMD_IQANDSTINDEX_S 0 |
1322 | #define FW_IQ_CMD_FL0PADEN(x) ((x) << 2) | 1322 | #define FW_IQ_CMD_IQANDSTINDEX_V(x) ((x) << FW_IQ_CMD_IQANDSTINDEX_S) |
1323 | #define FW_IQ_CMD_FL0PACKEN(x) ((x) << 1) | 1323 | |
1324 | #define FW_IQ_CMD_FL0CONGEN (1U << 0) | 1324 | #define FW_IQ_CMD_IQDROPRSS_S 15 |
1325 | 1325 | #define FW_IQ_CMD_IQDROPRSS_V(x) ((x) << FW_IQ_CMD_IQDROPRSS_S) | |
1326 | #define FW_IQ_CMD_FL0DCAEN(x) ((x) << 15) | 1326 | #define FW_IQ_CMD_IQDROPRSS_F FW_IQ_CMD_IQDROPRSS_V(1U) |
1327 | #define FW_IQ_CMD_FL0DCACPU(x) ((x) << 10) | 1327 | |
1328 | #define FW_IQ_CMD_FL0FBMIN(x) ((x) << 7) | 1328 | #define FW_IQ_CMD_IQGTSMODE_S 14 |
1329 | #define FW_IQ_CMD_FL0FBMAX(x) ((x) << 4) | 1329 | #define FW_IQ_CMD_IQGTSMODE_V(x) ((x) << FW_IQ_CMD_IQGTSMODE_S) |
1330 | #define FW_IQ_CMD_FL0CIDXFTHRESHO (1U << 3) | 1330 | #define FW_IQ_CMD_IQGTSMODE_F FW_IQ_CMD_IQGTSMODE_V(1U) |
1331 | #define FW_IQ_CMD_FL0CIDXFTHRESH(x) ((x) << 0) | 1331 | |
1332 | 1332 | #define FW_IQ_CMD_IQPCIECH_S 12 | |
1333 | #define FW_IQ_CMD_FL1CNGCHMAP(x) ((x) << 20) | 1333 | #define FW_IQ_CMD_IQPCIECH_V(x) ((x) << FW_IQ_CMD_IQPCIECH_S) |
1334 | #define FW_IQ_CMD_FL1CACHELOCK(x) ((x) << 15) | 1334 | |
1335 | #define FW_IQ_CMD_FL1DBP(x) ((x) << 14) | 1335 | #define FW_IQ_CMD_IQDCAEN_S 11 |
1336 | #define FW_IQ_CMD_FL1DATANS(x) ((x) << 13) | 1336 | #define FW_IQ_CMD_IQDCAEN_V(x) ((x) << FW_IQ_CMD_IQDCAEN_S) |
1337 | #define FW_IQ_CMD_FL1DATARO(x) ((x) << 12) | 1337 | |
1338 | #define FW_IQ_CMD_FL1CONGCIF(x) ((x) << 11) | 1338 | #define FW_IQ_CMD_IQDCACPU_S 6 |
1339 | #define FW_IQ_CMD_FL1ONCHIP(x) ((x) << 10) | 1339 | #define FW_IQ_CMD_IQDCACPU_V(x) ((x) << FW_IQ_CMD_IQDCACPU_S) |
1340 | #define FW_IQ_CMD_FL1STATUSPGNS(x) ((x) << 9) | 1340 | |
1341 | #define FW_IQ_CMD_FL1STATUSPGRO(x) ((x) << 8) | 1341 | #define FW_IQ_CMD_IQINTCNTTHRESH_S 4 |
1342 | #define FW_IQ_CMD_FL1FETCHNS(x) ((x) << 7) | 1342 | #define FW_IQ_CMD_IQINTCNTTHRESH_V(x) ((x) << FW_IQ_CMD_IQINTCNTTHRESH_S) |
1343 | #define FW_IQ_CMD_FL1FETCHRO(x) ((x) << 6) | 1343 | |
1344 | #define FW_IQ_CMD_FL1HOSTFCMODE(x) ((x) << 4) | 1344 | #define FW_IQ_CMD_IQO_S 3 |
1345 | #define FW_IQ_CMD_FL1CPRIO(x) ((x) << 3) | 1345 | #define FW_IQ_CMD_IQO_V(x) ((x) << FW_IQ_CMD_IQO_S) |
1346 | #define FW_IQ_CMD_FL1PADEN (1U << 2) | 1346 | #define FW_IQ_CMD_IQO_F FW_IQ_CMD_IQO_V(1U) |
1347 | #define FW_IQ_CMD_FL1PACKEN (1U << 1) | 1347 | |
1348 | #define FW_IQ_CMD_FL1CONGEN (1U << 0) | 1348 | #define FW_IQ_CMD_IQCPRIO_S 2 |
1349 | 1349 | #define FW_IQ_CMD_IQCPRIO_V(x) ((x) << FW_IQ_CMD_IQCPRIO_S) | |
1350 | #define FW_IQ_CMD_FL1DCAEN(x) ((x) << 15) | 1350 | |
1351 | #define FW_IQ_CMD_FL1DCACPU(x) ((x) << 10) | 1351 | #define FW_IQ_CMD_IQESIZE_S 0 |
1352 | #define FW_IQ_CMD_FL1FBMIN(x) ((x) << 7) | 1352 | #define FW_IQ_CMD_IQESIZE_V(x) ((x) << FW_IQ_CMD_IQESIZE_S) |
1353 | #define FW_IQ_CMD_FL1FBMAX(x) ((x) << 4) | 1353 | |
1354 | #define FW_IQ_CMD_FL1CIDXFTHRESHO (1U << 3) | 1354 | #define FW_IQ_CMD_IQNS_S 31 |
1355 | #define FW_IQ_CMD_FL1CIDXFTHRESH(x) ((x) << 0) | 1355 | #define FW_IQ_CMD_IQNS_V(x) ((x) << FW_IQ_CMD_IQNS_S) |
1356 | |||
1357 | #define FW_IQ_CMD_IQRO_S 30 | ||
1358 | #define FW_IQ_CMD_IQRO_V(x) ((x) << FW_IQ_CMD_IQRO_S) | ||
1359 | |||
1360 | #define FW_IQ_CMD_IQFLINTIQHSEN_S 28 | ||
1361 | #define FW_IQ_CMD_IQFLINTIQHSEN_V(x) ((x) << FW_IQ_CMD_IQFLINTIQHSEN_S) | ||
1362 | |||
1363 | #define FW_IQ_CMD_IQFLINTCONGEN_S 27 | ||
1364 | #define FW_IQ_CMD_IQFLINTCONGEN_V(x) ((x) << FW_IQ_CMD_IQFLINTCONGEN_S) | ||
1365 | |||
1366 | #define FW_IQ_CMD_IQFLINTISCSIC_S 26 | ||
1367 | #define FW_IQ_CMD_IQFLINTISCSIC_V(x) ((x) << FW_IQ_CMD_IQFLINTISCSIC_S) | ||
1368 | |||
1369 | #define FW_IQ_CMD_FL0CNGCHMAP_S 20 | ||
1370 | #define FW_IQ_CMD_FL0CNGCHMAP_V(x) ((x) << FW_IQ_CMD_FL0CNGCHMAP_S) | ||
1371 | |||
1372 | #define FW_IQ_CMD_FL0CACHELOCK_S 15 | ||
1373 | #define FW_IQ_CMD_FL0CACHELOCK_V(x) ((x) << FW_IQ_CMD_FL0CACHELOCK_S) | ||
1374 | |||
1375 | #define FW_IQ_CMD_FL0DBP_S 14 | ||
1376 | #define FW_IQ_CMD_FL0DBP_V(x) ((x) << FW_IQ_CMD_FL0DBP_S) | ||
1377 | |||
1378 | #define FW_IQ_CMD_FL0DATANS_S 13 | ||
1379 | #define FW_IQ_CMD_FL0DATANS_V(x) ((x) << FW_IQ_CMD_FL0DATANS_S) | ||
1380 | |||
1381 | #define FW_IQ_CMD_FL0DATARO_S 12 | ||
1382 | #define FW_IQ_CMD_FL0DATARO_V(x) ((x) << FW_IQ_CMD_FL0DATARO_S) | ||
1383 | #define FW_IQ_CMD_FL0DATARO_F FW_IQ_CMD_FL0DATARO_V(1U) | ||
1384 | |||
1385 | #define FW_IQ_CMD_FL0CONGCIF_S 11 | ||
1386 | #define FW_IQ_CMD_FL0CONGCIF_V(x) ((x) << FW_IQ_CMD_FL0CONGCIF_S) | ||
1387 | |||
1388 | #define FW_IQ_CMD_FL0ONCHIP_S 10 | ||
1389 | #define FW_IQ_CMD_FL0ONCHIP_V(x) ((x) << FW_IQ_CMD_FL0ONCHIP_S) | ||
1390 | |||
1391 | #define FW_IQ_CMD_FL0STATUSPGNS_S 9 | ||
1392 | #define FW_IQ_CMD_FL0STATUSPGNS_V(x) ((x) << FW_IQ_CMD_FL0STATUSPGNS_S) | ||
1393 | |||
1394 | #define FW_IQ_CMD_FL0STATUSPGRO_S 8 | ||
1395 | #define FW_IQ_CMD_FL0STATUSPGRO_V(x) ((x) << FW_IQ_CMD_FL0STATUSPGRO_S) | ||
1396 | |||
1397 | #define FW_IQ_CMD_FL0FETCHNS_S 7 | ||
1398 | #define FW_IQ_CMD_FL0FETCHNS_V(x) ((x) << FW_IQ_CMD_FL0FETCHNS_S) | ||
1399 | |||
1400 | #define FW_IQ_CMD_FL0FETCHRO_S 6 | ||
1401 | #define FW_IQ_CMD_FL0FETCHRO_V(x) ((x) << FW_IQ_CMD_FL0FETCHRO_S) | ||
1402 | #define FW_IQ_CMD_FL0FETCHRO_F FW_IQ_CMD_FL0FETCHRO_V(1U) | ||
1403 | |||
1404 | #define FW_IQ_CMD_FL0HOSTFCMODE_S 4 | ||
1405 | #define FW_IQ_CMD_FL0HOSTFCMODE_V(x) ((x) << FW_IQ_CMD_FL0HOSTFCMODE_S) | ||
1406 | |||
1407 | #define FW_IQ_CMD_FL0CPRIO_S 3 | ||
1408 | #define FW_IQ_CMD_FL0CPRIO_V(x) ((x) << FW_IQ_CMD_FL0CPRIO_S) | ||
1409 | |||
1410 | #define FW_IQ_CMD_FL0PADEN_S 2 | ||
1411 | #define FW_IQ_CMD_FL0PADEN_V(x) ((x) << FW_IQ_CMD_FL0PADEN_S) | ||
1412 | #define FW_IQ_CMD_FL0PADEN_F FW_IQ_CMD_FL0PADEN_V(1U) | ||
1413 | |||
1414 | #define FW_IQ_CMD_FL0PACKEN_S 1 | ||
1415 | #define FW_IQ_CMD_FL0PACKEN_V(x) ((x) << FW_IQ_CMD_FL0PACKEN_S) | ||
1416 | #define FW_IQ_CMD_FL0PACKEN_F FW_IQ_CMD_FL0PACKEN_V(1U) | ||
1417 | |||
1418 | #define FW_IQ_CMD_FL0CONGEN_S 0 | ||
1419 | #define FW_IQ_CMD_FL0CONGEN_V(x) ((x) << FW_IQ_CMD_FL0CONGEN_S) | ||
1420 | #define FW_IQ_CMD_FL0CONGEN_F FW_IQ_CMD_FL0CONGEN_V(1U) | ||
1421 | |||
1422 | #define FW_IQ_CMD_FL0DCAEN_S 15 | ||
1423 | #define FW_IQ_CMD_FL0DCAEN_V(x) ((x) << FW_IQ_CMD_FL0DCAEN_S) | ||
1424 | |||
1425 | #define FW_IQ_CMD_FL0DCACPU_S 10 | ||
1426 | #define FW_IQ_CMD_FL0DCACPU_V(x) ((x) << FW_IQ_CMD_FL0DCACPU_S) | ||
1427 | |||
1428 | #define FW_IQ_CMD_FL0FBMIN_S 7 | ||
1429 | #define FW_IQ_CMD_FL0FBMIN_V(x) ((x) << FW_IQ_CMD_FL0FBMIN_S) | ||
1430 | |||
1431 | #define FW_IQ_CMD_FL0FBMAX_S 4 | ||
1432 | #define FW_IQ_CMD_FL0FBMAX_V(x) ((x) << FW_IQ_CMD_FL0FBMAX_S) | ||
1433 | |||
1434 | #define FW_IQ_CMD_FL0CIDXFTHRESHO_S 3 | ||
1435 | #define FW_IQ_CMD_FL0CIDXFTHRESHO_V(x) ((x) << FW_IQ_CMD_FL0CIDXFTHRESHO_S) | ||
1436 | #define FW_IQ_CMD_FL0CIDXFTHRESHO_F FW_IQ_CMD_FL0CIDXFTHRESHO_V(1U) | ||
1437 | |||
1438 | #define FW_IQ_CMD_FL0CIDXFTHRESH_S 0 | ||
1439 | #define FW_IQ_CMD_FL0CIDXFTHRESH_V(x) ((x) << FW_IQ_CMD_FL0CIDXFTHRESH_S) | ||
1440 | |||
1441 | #define FW_IQ_CMD_FL1CNGCHMAP_S 20 | ||
1442 | #define FW_IQ_CMD_FL1CNGCHMAP_V(x) ((x) << FW_IQ_CMD_FL1CNGCHMAP_S) | ||
1443 | |||
1444 | #define FW_IQ_CMD_FL1CACHELOCK_S 15 | ||
1445 | #define FW_IQ_CMD_FL1CACHELOCK_V(x) ((x) << FW_IQ_CMD_FL1CACHELOCK_S) | ||
1446 | |||
1447 | #define FW_IQ_CMD_FL1DBP_S 14 | ||
1448 | #define FW_IQ_CMD_FL1DBP_V(x) ((x) << FW_IQ_CMD_FL1DBP_S) | ||
1449 | |||
1450 | #define FW_IQ_CMD_FL1DATANS_S 13 | ||
1451 | #define FW_IQ_CMD_FL1DATANS_V(x) ((x) << FW_IQ_CMD_FL1DATANS_S) | ||
1452 | |||
1453 | #define FW_IQ_CMD_FL1DATARO_S 12 | ||
1454 | #define FW_IQ_CMD_FL1DATARO_V(x) ((x) << FW_IQ_CMD_FL1DATARO_S) | ||
1455 | |||
1456 | #define FW_IQ_CMD_FL1CONGCIF_S 11 | ||
1457 | #define FW_IQ_CMD_FL1CONGCIF_V(x) ((x) << FW_IQ_CMD_FL1CONGCIF_S) | ||
1458 | |||
1459 | #define FW_IQ_CMD_FL1ONCHIP_S 10 | ||
1460 | #define FW_IQ_CMD_FL1ONCHIP_V(x) ((x) << FW_IQ_CMD_FL1ONCHIP_S) | ||
1461 | |||
1462 | #define FW_IQ_CMD_FL1STATUSPGNS_S 9 | ||
1463 | #define FW_IQ_CMD_FL1STATUSPGNS_V(x) ((x) << FW_IQ_CMD_FL1STATUSPGNS_S) | ||
1464 | |||
1465 | #define FW_IQ_CMD_FL1STATUSPGRO_S 8 | ||
1466 | #define FW_IQ_CMD_FL1STATUSPGRO_V(x) ((x) << FW_IQ_CMD_FL1STATUSPGRO_S) | ||
1467 | |||
1468 | #define FW_IQ_CMD_FL1FETCHNS_S 7 | ||
1469 | #define FW_IQ_CMD_FL1FETCHNS_V(x) ((x) << FW_IQ_CMD_FL1FETCHNS_S) | ||
1470 | |||
1471 | #define FW_IQ_CMD_FL1FETCHRO_S 6 | ||
1472 | #define FW_IQ_CMD_FL1FETCHRO_V(x) ((x) << FW_IQ_CMD_FL1FETCHRO_S) | ||
1473 | |||
1474 | #define FW_IQ_CMD_FL1HOSTFCMODE_S 4 | ||
1475 | #define FW_IQ_CMD_FL1HOSTFCMODE_V(x) ((x) << FW_IQ_CMD_FL1HOSTFCMODE_S) | ||
1476 | |||
1477 | #define FW_IQ_CMD_FL1CPRIO_S 3 | ||
1478 | #define FW_IQ_CMD_FL1CPRIO_V(x) ((x) << FW_IQ_CMD_FL1CPRIO_S) | ||
1479 | |||
1480 | #define FW_IQ_CMD_FL1PADEN_S 2 | ||
1481 | #define FW_IQ_CMD_FL1PADEN_V(x) ((x) << FW_IQ_CMD_FL1PADEN_S) | ||
1482 | #define FW_IQ_CMD_FL1PADEN_F FW_IQ_CMD_FL1PADEN_V(1U) | ||
1483 | |||
1484 | #define FW_IQ_CMD_FL1PACKEN_S 1 | ||
1485 | #define FW_IQ_CMD_FL1PACKEN_V(x) ((x) << FW_IQ_CMD_FL1PACKEN_S) | ||
1486 | #define FW_IQ_CMD_FL1PACKEN_F FW_IQ_CMD_FL1PACKEN_V(1U) | ||
1487 | |||
1488 | #define FW_IQ_CMD_FL1CONGEN_S 0 | ||
1489 | #define FW_IQ_CMD_FL1CONGEN_V(x) ((x) << FW_IQ_CMD_FL1CONGEN_S) | ||
1490 | #define FW_IQ_CMD_FL1CONGEN_F FW_IQ_CMD_FL1CONGEN_V(1U) | ||
1491 | |||
1492 | #define FW_IQ_CMD_FL1DCAEN_S 15 | ||
1493 | #define FW_IQ_CMD_FL1DCAEN_V(x) ((x) << FW_IQ_CMD_FL1DCAEN_S) | ||
1494 | |||
1495 | #define FW_IQ_CMD_FL1DCACPU_S 10 | ||
1496 | #define FW_IQ_CMD_FL1DCACPU_V(x) ((x) << FW_IQ_CMD_FL1DCACPU_S) | ||
1497 | |||
1498 | #define FW_IQ_CMD_FL1FBMIN_S 7 | ||
1499 | #define FW_IQ_CMD_FL1FBMIN_V(x) ((x) << FW_IQ_CMD_FL1FBMIN_S) | ||
1500 | |||
1501 | #define FW_IQ_CMD_FL1FBMAX_S 4 | ||
1502 | #define FW_IQ_CMD_FL1FBMAX_V(x) ((x) << FW_IQ_CMD_FL1FBMAX_S) | ||
1503 | |||
1504 | #define FW_IQ_CMD_FL1CIDXFTHRESHO_S 3 | ||
1505 | #define FW_IQ_CMD_FL1CIDXFTHRESHO_V(x) ((x) << FW_IQ_CMD_FL1CIDXFTHRESHO_S) | ||
1506 | #define FW_IQ_CMD_FL1CIDXFTHRESHO_F FW_IQ_CMD_FL1CIDXFTHRESHO_V(1U) | ||
1507 | |||
1508 | #define FW_IQ_CMD_FL1CIDXFTHRESH_S 0 | ||
1509 | #define FW_IQ_CMD_FL1CIDXFTHRESH_V(x) ((x) << FW_IQ_CMD_FL1CIDXFTHRESH_S) | ||
1356 | 1510 | ||
1357 | struct fw_eq_eth_cmd { | 1511 | struct fw_eq_eth_cmd { |
1358 | __be32 op_to_vfn; | 1512 | __be32 op_to_vfn; |
@@ -1367,40 +1521,102 @@ struct fw_eq_eth_cmd { | |||
1367 | __be64 r9; | 1521 | __be64 r9; |
1368 | }; | 1522 | }; |
1369 | 1523 | ||
1370 | #define FW_EQ_ETH_CMD_PFN(x) ((x) << 8) | 1524 | #define FW_EQ_ETH_CMD_PFN_S 8 |
1371 | #define FW_EQ_ETH_CMD_VFN(x) ((x) << 0) | 1525 | #define FW_EQ_ETH_CMD_PFN_V(x) ((x) << FW_EQ_ETH_CMD_PFN_S) |
1372 | #define FW_EQ_ETH_CMD_ALLOC (1U << 31) | 1526 | |
1373 | #define FW_EQ_ETH_CMD_FREE (1U << 30) | 1527 | #define FW_EQ_ETH_CMD_VFN_S 0 |
1374 | #define FW_EQ_ETH_CMD_MODIFY (1U << 29) | 1528 | #define FW_EQ_ETH_CMD_VFN_V(x) ((x) << FW_EQ_ETH_CMD_VFN_S) |
1375 | #define FW_EQ_ETH_CMD_EQSTART (1U << 28) | 1529 | |
1376 | #define FW_EQ_ETH_CMD_EQSTOP (1U << 27) | 1530 | #define FW_EQ_ETH_CMD_ALLOC_S 31 |
1377 | 1531 | #define FW_EQ_ETH_CMD_ALLOC_V(x) ((x) << FW_EQ_ETH_CMD_ALLOC_S) | |
1378 | #define FW_EQ_ETH_CMD_EQID(x) ((x) << 0) | 1532 | #define FW_EQ_ETH_CMD_ALLOC_F FW_EQ_ETH_CMD_ALLOC_V(1U) |
1379 | #define FW_EQ_ETH_CMD_EQID_GET(x) (((x) >> 0) & 0xfffff) | 1533 | |
1380 | #define FW_EQ_ETH_CMD_PHYSEQID(x) ((x) << 0) | 1534 | #define FW_EQ_ETH_CMD_FREE_S 30 |
1381 | #define FW_EQ_ETH_CMD_PHYSEQID_GET(x) (((x) >> 0) & 0xfffff) | 1535 | #define FW_EQ_ETH_CMD_FREE_V(x) ((x) << FW_EQ_ETH_CMD_FREE_S) |
1382 | 1536 | #define FW_EQ_ETH_CMD_FREE_F FW_EQ_ETH_CMD_FREE_V(1U) | |
1383 | #define FW_EQ_ETH_CMD_FETCHSZM(x) ((x) << 26) | 1537 | |
1384 | #define FW_EQ_ETH_CMD_STATUSPGNS(x) ((x) << 25) | 1538 | #define FW_EQ_ETH_CMD_MODIFY_S 29 |
1385 | #define FW_EQ_ETH_CMD_STATUSPGRO(x) ((x) << 24) | 1539 | #define FW_EQ_ETH_CMD_MODIFY_V(x) ((x) << FW_EQ_ETH_CMD_MODIFY_S) |
1386 | #define FW_EQ_ETH_CMD_FETCHNS(x) ((x) << 23) | 1540 | #define FW_EQ_ETH_CMD_MODIFY_F FW_EQ_ETH_CMD_MODIFY_V(1U) |
1387 | #define FW_EQ_ETH_CMD_FETCHRO(x) ((x) << 22) | 1541 | |
1388 | #define FW_EQ_ETH_CMD_HOSTFCMODE(x) ((x) << 20) | 1542 | #define FW_EQ_ETH_CMD_EQSTART_S 28 |
1389 | #define FW_EQ_ETH_CMD_CPRIO(x) ((x) << 19) | 1543 | #define FW_EQ_ETH_CMD_EQSTART_V(x) ((x) << FW_EQ_ETH_CMD_EQSTART_S) |
1390 | #define FW_EQ_ETH_CMD_ONCHIP(x) ((x) << 18) | 1544 | #define FW_EQ_ETH_CMD_EQSTART_F FW_EQ_ETH_CMD_EQSTART_V(1U) |
1391 | #define FW_EQ_ETH_CMD_PCIECHN(x) ((x) << 16) | 1545 | |
1392 | #define FW_EQ_ETH_CMD_IQID(x) ((x) << 0) | 1546 | #define FW_EQ_ETH_CMD_EQSTOP_S 27 |
1393 | 1547 | #define FW_EQ_ETH_CMD_EQSTOP_V(x) ((x) << FW_EQ_ETH_CMD_EQSTOP_S) | |
1394 | #define FW_EQ_ETH_CMD_DCAEN(x) ((x) << 31) | 1548 | #define FW_EQ_ETH_CMD_EQSTOP_F FW_EQ_ETH_CMD_EQSTOP_V(1U) |
1395 | #define FW_EQ_ETH_CMD_DCACPU(x) ((x) << 26) | 1549 | |
1396 | #define FW_EQ_ETH_CMD_FBMIN(x) ((x) << 23) | 1550 | #define FW_EQ_ETH_CMD_EQID_S 0 |
1397 | #define FW_EQ_ETH_CMD_FBMAX(x) ((x) << 20) | 1551 | #define FW_EQ_ETH_CMD_EQID_M 0xfffff |
1398 | #define FW_EQ_ETH_CMD_CIDXFTHRESHO(x) ((x) << 19) | 1552 | #define FW_EQ_ETH_CMD_EQID_V(x) ((x) << FW_EQ_ETH_CMD_EQID_S) |
1399 | #define FW_EQ_ETH_CMD_CIDXFTHRESH(x) ((x) << 16) | 1553 | #define FW_EQ_ETH_CMD_EQID_G(x) \ |
1400 | #define FW_EQ_ETH_CMD_EQSIZE(x) ((x) << 0) | 1554 | (((x) >> FW_EQ_ETH_CMD_EQID_S) & FW_EQ_ETH_CMD_EQID_M) |
1401 | 1555 | ||
1402 | #define FW_EQ_ETH_CMD_AUTOEQUEQE (1U << 30) | 1556 | #define FW_EQ_ETH_CMD_PHYSEQID_S 0 |
1403 | #define FW_EQ_ETH_CMD_VIID(x) ((x) << 16) | 1557 | #define FW_EQ_ETH_CMD_PHYSEQID_M 0xfffff |
1558 | #define FW_EQ_ETH_CMD_PHYSEQID_V(x) ((x) << FW_EQ_ETH_CMD_PHYSEQID_S) | ||
1559 | #define FW_EQ_ETH_CMD_PHYSEQID_G(x) \ | ||
1560 | (((x) >> FW_EQ_ETH_CMD_PHYSEQID_S) & FW_EQ_ETH_CMD_PHYSEQID_M) | ||
1561 | |||
1562 | #define FW_EQ_ETH_CMD_FETCHSZM_S 26 | ||
1563 | #define FW_EQ_ETH_CMD_FETCHSZM_V(x) ((x) << FW_EQ_ETH_CMD_FETCHSZM_S) | ||
1564 | #define FW_EQ_ETH_CMD_FETCHSZM_F FW_EQ_ETH_CMD_FETCHSZM_V(1U) | ||
1565 | |||
1566 | #define FW_EQ_ETH_CMD_STATUSPGNS_S 25 | ||
1567 | #define FW_EQ_ETH_CMD_STATUSPGNS_V(x) ((x) << FW_EQ_ETH_CMD_STATUSPGNS_S) | ||
1568 | |||
1569 | #define FW_EQ_ETH_CMD_STATUSPGRO_S 24 | ||
1570 | #define FW_EQ_ETH_CMD_STATUSPGRO_V(x) ((x) << FW_EQ_ETH_CMD_STATUSPGRO_S) | ||
1571 | |||
1572 | #define FW_EQ_ETH_CMD_FETCHNS_S 23 | ||
1573 | #define FW_EQ_ETH_CMD_FETCHNS_V(x) ((x) << FW_EQ_ETH_CMD_FETCHNS_S) | ||
1574 | |||
1575 | #define FW_EQ_ETH_CMD_FETCHRO_S 22 | ||
1576 | #define FW_EQ_ETH_CMD_FETCHRO_V(x) ((x) << FW_EQ_ETH_CMD_FETCHRO_S) | ||
1577 | |||
1578 | #define FW_EQ_ETH_CMD_HOSTFCMODE_S 20 | ||
1579 | #define FW_EQ_ETH_CMD_HOSTFCMODE_V(x) ((x) << FW_EQ_ETH_CMD_HOSTFCMODE_S) | ||
1580 | |||
1581 | #define FW_EQ_ETH_CMD_CPRIO_S 19 | ||
1582 | #define FW_EQ_ETH_CMD_CPRIO_V(x) ((x) << FW_EQ_ETH_CMD_CPRIO_S) | ||
1583 | |||
1584 | #define FW_EQ_ETH_CMD_ONCHIP_S 18 | ||
1585 | #define FW_EQ_ETH_CMD_ONCHIP_V(x) ((x) << FW_EQ_ETH_CMD_ONCHIP_S) | ||
1586 | |||
1587 | #define FW_EQ_ETH_CMD_PCIECHN_S 16 | ||
1588 | #define FW_EQ_ETH_CMD_PCIECHN_V(x) ((x) << FW_EQ_ETH_CMD_PCIECHN_S) | ||
1589 | |||
1590 | #define FW_EQ_ETH_CMD_IQID_S 0 | ||
1591 | #define FW_EQ_ETH_CMD_IQID_V(x) ((x) << FW_EQ_ETH_CMD_IQID_S) | ||
1592 | |||
1593 | #define FW_EQ_ETH_CMD_DCAEN_S 31 | ||
1594 | #define FW_EQ_ETH_CMD_DCAEN_V(x) ((x) << FW_EQ_ETH_CMD_DCAEN_S) | ||
1595 | |||
1596 | #define FW_EQ_ETH_CMD_DCACPU_S 26 | ||
1597 | #define FW_EQ_ETH_CMD_DCACPU_V(x) ((x) << FW_EQ_ETH_CMD_DCACPU_S) | ||
1598 | |||
1599 | #define FW_EQ_ETH_CMD_FBMIN_S 23 | ||
1600 | #define FW_EQ_ETH_CMD_FBMIN_V(x) ((x) << FW_EQ_ETH_CMD_FBMIN_S) | ||
1601 | |||
1602 | #define FW_EQ_ETH_CMD_FBMAX_S 20 | ||
1603 | #define FW_EQ_ETH_CMD_FBMAX_V(x) ((x) << FW_EQ_ETH_CMD_FBMAX_S) | ||
1604 | |||
1605 | #define FW_EQ_ETH_CMD_CIDXFTHRESHO_S 19 | ||
1606 | #define FW_EQ_ETH_CMD_CIDXFTHRESHO_V(x) ((x) << FW_EQ_ETH_CMD_CIDXFTHRESHO_S) | ||
1607 | |||
1608 | #define FW_EQ_ETH_CMD_CIDXFTHRESH_S 16 | ||
1609 | #define FW_EQ_ETH_CMD_CIDXFTHRESH_V(x) ((x) << FW_EQ_ETH_CMD_CIDXFTHRESH_S) | ||
1610 | |||
1611 | #define FW_EQ_ETH_CMD_EQSIZE_S 0 | ||
1612 | #define FW_EQ_ETH_CMD_EQSIZE_V(x) ((x) << FW_EQ_ETH_CMD_EQSIZE_S) | ||
1613 | |||
1614 | #define FW_EQ_ETH_CMD_AUTOEQUEQE_S 30 | ||
1615 | #define FW_EQ_ETH_CMD_AUTOEQUEQE_V(x) ((x) << FW_EQ_ETH_CMD_AUTOEQUEQE_S) | ||
1616 | #define FW_EQ_ETH_CMD_AUTOEQUEQE_F FW_EQ_ETH_CMD_AUTOEQUEQE_V(1U) | ||
1617 | |||
1618 | #define FW_EQ_ETH_CMD_VIID_S 16 | ||
1619 | #define FW_EQ_ETH_CMD_VIID_V(x) ((x) << FW_EQ_ETH_CMD_VIID_S) | ||
1404 | 1620 | ||
1405 | struct fw_eq_ctrl_cmd { | 1621 | struct fw_eq_ctrl_cmd { |
1406 | __be32 op_to_vfn; | 1622 | __be32 op_to_vfn; |
@@ -1412,38 +1628,102 @@ struct fw_eq_ctrl_cmd { | |||
1412 | __be64 eqaddr; | 1628 | __be64 eqaddr; |
1413 | }; | 1629 | }; |
1414 | 1630 | ||
1415 | #define FW_EQ_CTRL_CMD_PFN(x) ((x) << 8) | 1631 | #define FW_EQ_CTRL_CMD_PFN_S 8 |
1416 | #define FW_EQ_CTRL_CMD_VFN(x) ((x) << 0) | 1632 | #define FW_EQ_CTRL_CMD_PFN_V(x) ((x) << FW_EQ_CTRL_CMD_PFN_S) |
1417 | 1633 | ||
1418 | #define FW_EQ_CTRL_CMD_ALLOC (1U << 31) | 1634 | #define FW_EQ_CTRL_CMD_VFN_S 0 |
1419 | #define FW_EQ_CTRL_CMD_FREE (1U << 30) | 1635 | #define FW_EQ_CTRL_CMD_VFN_V(x) ((x) << FW_EQ_CTRL_CMD_VFN_S) |
1420 | #define FW_EQ_CTRL_CMD_MODIFY (1U << 29) | 1636 | |
1421 | #define FW_EQ_CTRL_CMD_EQSTART (1U << 28) | 1637 | #define FW_EQ_CTRL_CMD_ALLOC_S 31 |
1422 | #define FW_EQ_CTRL_CMD_EQSTOP (1U << 27) | 1638 | #define FW_EQ_CTRL_CMD_ALLOC_V(x) ((x) << FW_EQ_CTRL_CMD_ALLOC_S) |
1423 | 1639 | #define FW_EQ_CTRL_CMD_ALLOC_F FW_EQ_CTRL_CMD_ALLOC_V(1U) | |
1424 | #define FW_EQ_CTRL_CMD_CMPLIQID(x) ((x) << 20) | 1640 | |
1425 | #define FW_EQ_CTRL_CMD_EQID(x) ((x) << 0) | 1641 | #define FW_EQ_CTRL_CMD_FREE_S 30 |
1426 | #define FW_EQ_CTRL_CMD_EQID_GET(x) (((x) >> 0) & 0xfffff) | 1642 | #define FW_EQ_CTRL_CMD_FREE_V(x) ((x) << FW_EQ_CTRL_CMD_FREE_S) |
1427 | #define FW_EQ_CTRL_CMD_PHYSEQID_GET(x) (((x) >> 0) & 0xfffff) | 1643 | #define FW_EQ_CTRL_CMD_FREE_F FW_EQ_CTRL_CMD_FREE_V(1U) |
1428 | 1644 | ||
1429 | #define FW_EQ_CTRL_CMD_FETCHSZM (1U << 26) | 1645 | #define FW_EQ_CTRL_CMD_MODIFY_S 29 |
1430 | #define FW_EQ_CTRL_CMD_STATUSPGNS (1U << 25) | 1646 | #define FW_EQ_CTRL_CMD_MODIFY_V(x) ((x) << FW_EQ_CTRL_CMD_MODIFY_S) |
1431 | #define FW_EQ_CTRL_CMD_STATUSPGRO (1U << 24) | 1647 | #define FW_EQ_CTRL_CMD_MODIFY_F FW_EQ_CTRL_CMD_MODIFY_V(1U) |
1432 | #define FW_EQ_CTRL_CMD_FETCHNS (1U << 23) | 1648 | |
1433 | #define FW_EQ_CTRL_CMD_FETCHRO (1U << 22) | 1649 | #define FW_EQ_CTRL_CMD_EQSTART_S 28 |
1434 | #define FW_EQ_CTRL_CMD_HOSTFCMODE(x) ((x) << 20) | 1650 | #define FW_EQ_CTRL_CMD_EQSTART_V(x) ((x) << FW_EQ_CTRL_CMD_EQSTART_S) |
1435 | #define FW_EQ_CTRL_CMD_CPRIO(x) ((x) << 19) | 1651 | #define FW_EQ_CTRL_CMD_EQSTART_F FW_EQ_CTRL_CMD_EQSTART_V(1U) |
1436 | #define FW_EQ_CTRL_CMD_ONCHIP(x) ((x) << 18) | 1652 | |
1437 | #define FW_EQ_CTRL_CMD_PCIECHN(x) ((x) << 16) | 1653 | #define FW_EQ_CTRL_CMD_EQSTOP_S 27 |
1438 | #define FW_EQ_CTRL_CMD_IQID(x) ((x) << 0) | 1654 | #define FW_EQ_CTRL_CMD_EQSTOP_V(x) ((x) << FW_EQ_CTRL_CMD_EQSTOP_S) |
1439 | 1655 | #define FW_EQ_CTRL_CMD_EQSTOP_F FW_EQ_CTRL_CMD_EQSTOP_V(1U) | |
1440 | #define FW_EQ_CTRL_CMD_DCAEN(x) ((x) << 31) | 1656 | |
1441 | #define FW_EQ_CTRL_CMD_DCACPU(x) ((x) << 26) | 1657 | #define FW_EQ_CTRL_CMD_CMPLIQID_S 20 |
1442 | #define FW_EQ_CTRL_CMD_FBMIN(x) ((x) << 23) | 1658 | #define FW_EQ_CTRL_CMD_CMPLIQID_V(x) ((x) << FW_EQ_CTRL_CMD_CMPLIQID_S) |
1443 | #define FW_EQ_CTRL_CMD_FBMAX(x) ((x) << 20) | 1659 | |
1444 | #define FW_EQ_CTRL_CMD_CIDXFTHRESHO(x) ((x) << 19) | 1660 | #define FW_EQ_CTRL_CMD_EQID_S 0 |
1445 | #define FW_EQ_CTRL_CMD_CIDXFTHRESH(x) ((x) << 16) | 1661 | #define FW_EQ_CTRL_CMD_EQID_M 0xfffff |
1446 | #define FW_EQ_CTRL_CMD_EQSIZE(x) ((x) << 0) | 1662 | #define FW_EQ_CTRL_CMD_EQID_V(x) ((x) << FW_EQ_CTRL_CMD_EQID_S) |
1663 | #define FW_EQ_CTRL_CMD_EQID_G(x) \ | ||
1664 | (((x) >> FW_EQ_CTRL_CMD_EQID_S) & FW_EQ_CTRL_CMD_EQID_M) | ||
1665 | |||
1666 | #define FW_EQ_CTRL_CMD_PHYSEQID_S 0 | ||
1667 | #define FW_EQ_CTRL_CMD_PHYSEQID_M 0xfffff | ||
1668 | #define FW_EQ_CTRL_CMD_PHYSEQID_G(x) \ | ||
1669 | (((x) >> FW_EQ_CTRL_CMD_PHYSEQID_S) & FW_EQ_CTRL_CMD_PHYSEQID_M) | ||
1670 | |||
1671 | #define FW_EQ_CTRL_CMD_FETCHSZM_S 26 | ||
1672 | #define FW_EQ_CTRL_CMD_FETCHSZM_V(x) ((x) << FW_EQ_CTRL_CMD_FETCHSZM_S) | ||
1673 | #define FW_EQ_CTRL_CMD_FETCHSZM_F FW_EQ_CTRL_CMD_FETCHSZM_V(1U) | ||
1674 | |||
1675 | #define FW_EQ_CTRL_CMD_STATUSPGNS_S 25 | ||
1676 | #define FW_EQ_CTRL_CMD_STATUSPGNS_V(x) ((x) << FW_EQ_CTRL_CMD_STATUSPGNS_S) | ||
1677 | #define FW_EQ_CTRL_CMD_STATUSPGNS_F FW_EQ_CTRL_CMD_STATUSPGNS_V(1U) | ||
1678 | |||
1679 | #define FW_EQ_CTRL_CMD_STATUSPGRO_S 24 | ||
1680 | #define FW_EQ_CTRL_CMD_STATUSPGRO_V(x) ((x) << FW_EQ_CTRL_CMD_STATUSPGRO_S) | ||
1681 | #define FW_EQ_CTRL_CMD_STATUSPGRO_F FW_EQ_CTRL_CMD_STATUSPGRO_V(1U) | ||
1682 | |||
1683 | #define FW_EQ_CTRL_CMD_FETCHNS_S 23 | ||
1684 | #define FW_EQ_CTRL_CMD_FETCHNS_V(x) ((x) << FW_EQ_CTRL_CMD_FETCHNS_S) | ||
1685 | #define FW_EQ_CTRL_CMD_FETCHNS_F FW_EQ_CTRL_CMD_FETCHNS_V(1U) | ||
1686 | |||
1687 | #define FW_EQ_CTRL_CMD_FETCHRO_S 22 | ||
1688 | #define FW_EQ_CTRL_CMD_FETCHRO_V(x) ((x) << FW_EQ_CTRL_CMD_FETCHRO_S) | ||
1689 | #define FW_EQ_CTRL_CMD_FETCHRO_F FW_EQ_CTRL_CMD_FETCHRO_V(1U) | ||
1690 | |||
1691 | #define FW_EQ_CTRL_CMD_HOSTFCMODE_S 20 | ||
1692 | #define FW_EQ_CTRL_CMD_HOSTFCMODE_V(x) ((x) << FW_EQ_CTRL_CMD_HOSTFCMODE_S) | ||
1693 | |||
1694 | #define FW_EQ_CTRL_CMD_CPRIO_S 19 | ||
1695 | #define FW_EQ_CTRL_CMD_CPRIO_V(x) ((x) << FW_EQ_CTRL_CMD_CPRIO_S) | ||
1696 | |||
1697 | #define FW_EQ_CTRL_CMD_ONCHIP_S 18 | ||
1698 | #define FW_EQ_CTRL_CMD_ONCHIP_V(x) ((x) << FW_EQ_CTRL_CMD_ONCHIP_S) | ||
1699 | |||
1700 | #define FW_EQ_CTRL_CMD_PCIECHN_S 16 | ||
1701 | #define FW_EQ_CTRL_CMD_PCIECHN_V(x) ((x) << FW_EQ_CTRL_CMD_PCIECHN_S) | ||
1702 | |||
1703 | #define FW_EQ_CTRL_CMD_IQID_S 0 | ||
1704 | #define FW_EQ_CTRL_CMD_IQID_V(x) ((x) << FW_EQ_CTRL_CMD_IQID_S) | ||
1705 | |||
1706 | #define FW_EQ_CTRL_CMD_DCAEN_S 31 | ||
1707 | #define FW_EQ_CTRL_CMD_DCAEN_V(x) ((x) << FW_EQ_CTRL_CMD_DCAEN_S) | ||
1708 | |||
1709 | #define FW_EQ_CTRL_CMD_DCACPU_S 26 | ||
1710 | #define FW_EQ_CTRL_CMD_DCACPU_V(x) ((x) << FW_EQ_CTRL_CMD_DCACPU_S) | ||
1711 | |||
1712 | #define FW_EQ_CTRL_CMD_FBMIN_S 23 | ||
1713 | #define FW_EQ_CTRL_CMD_FBMIN_V(x) ((x) << FW_EQ_CTRL_CMD_FBMIN_S) | ||
1714 | |||
1715 | #define FW_EQ_CTRL_CMD_FBMAX_S 20 | ||
1716 | #define FW_EQ_CTRL_CMD_FBMAX_V(x) ((x) << FW_EQ_CTRL_CMD_FBMAX_S) | ||
1717 | |||
1718 | #define FW_EQ_CTRL_CMD_CIDXFTHRESHO_S 19 | ||
1719 | #define FW_EQ_CTRL_CMD_CIDXFTHRESHO_V(x) \ | ||
1720 | ((x) << FW_EQ_CTRL_CMD_CIDXFTHRESHO_S) | ||
1721 | |||
1722 | #define FW_EQ_CTRL_CMD_CIDXFTHRESH_S 16 | ||
1723 | #define FW_EQ_CTRL_CMD_CIDXFTHRESH_V(x) ((x) << FW_EQ_CTRL_CMD_CIDXFTHRESH_S) | ||
1724 | |||
1725 | #define FW_EQ_CTRL_CMD_EQSIZE_S 0 | ||
1726 | #define FW_EQ_CTRL_CMD_EQSIZE_V(x) ((x) << FW_EQ_CTRL_CMD_EQSIZE_S) | ||
1447 | 1727 | ||
1448 | struct fw_eq_ofld_cmd { | 1728 | struct fw_eq_ofld_cmd { |
1449 | __be32 op_to_vfn; | 1729 | __be32 op_to_vfn; |
@@ -1455,37 +1735,95 @@ struct fw_eq_ofld_cmd { | |||
1455 | __be64 eqaddr; | 1735 | __be64 eqaddr; |
1456 | }; | 1736 | }; |
1457 | 1737 | ||
1458 | #define FW_EQ_OFLD_CMD_PFN(x) ((x) << 8) | 1738 | #define FW_EQ_OFLD_CMD_PFN_S 8 |
1459 | #define FW_EQ_OFLD_CMD_VFN(x) ((x) << 0) | 1739 | #define FW_EQ_OFLD_CMD_PFN_V(x) ((x) << FW_EQ_OFLD_CMD_PFN_S) |
1460 | 1740 | ||
1461 | #define FW_EQ_OFLD_CMD_ALLOC (1U << 31) | 1741 | #define FW_EQ_OFLD_CMD_VFN_S 0 |
1462 | #define FW_EQ_OFLD_CMD_FREE (1U << 30) | 1742 | #define FW_EQ_OFLD_CMD_VFN_V(x) ((x) << FW_EQ_OFLD_CMD_VFN_S) |
1463 | #define FW_EQ_OFLD_CMD_MODIFY (1U << 29) | 1743 | |
1464 | #define FW_EQ_OFLD_CMD_EQSTART (1U << 28) | 1744 | #define FW_EQ_OFLD_CMD_ALLOC_S 31 |
1465 | #define FW_EQ_OFLD_CMD_EQSTOP (1U << 27) | 1745 | #define FW_EQ_OFLD_CMD_ALLOC_V(x) ((x) << FW_EQ_OFLD_CMD_ALLOC_S) |
1466 | 1746 | #define FW_EQ_OFLD_CMD_ALLOC_F FW_EQ_OFLD_CMD_ALLOC_V(1U) | |
1467 | #define FW_EQ_OFLD_CMD_EQID(x) ((x) << 0) | 1747 | |
1468 | #define FW_EQ_OFLD_CMD_EQID_GET(x) (((x) >> 0) & 0xfffff) | 1748 | #define FW_EQ_OFLD_CMD_FREE_S 30 |
1469 | #define FW_EQ_OFLD_CMD_PHYSEQID_GET(x) (((x) >> 0) & 0xfffff) | 1749 | #define FW_EQ_OFLD_CMD_FREE_V(x) ((x) << FW_EQ_OFLD_CMD_FREE_S) |
1470 | 1750 | #define FW_EQ_OFLD_CMD_FREE_F FW_EQ_OFLD_CMD_FREE_V(1U) | |
1471 | #define FW_EQ_OFLD_CMD_FETCHSZM(x) ((x) << 26) | 1751 | |
1472 | #define FW_EQ_OFLD_CMD_STATUSPGNS(x) ((x) << 25) | 1752 | #define FW_EQ_OFLD_CMD_MODIFY_S 29 |
1473 | #define FW_EQ_OFLD_CMD_STATUSPGRO(x) ((x) << 24) | 1753 | #define FW_EQ_OFLD_CMD_MODIFY_V(x) ((x) << FW_EQ_OFLD_CMD_MODIFY_S) |
1474 | #define FW_EQ_OFLD_CMD_FETCHNS(x) ((x) << 23) | 1754 | #define FW_EQ_OFLD_CMD_MODIFY_F FW_EQ_OFLD_CMD_MODIFY_V(1U) |
1475 | #define FW_EQ_OFLD_CMD_FETCHRO(x) ((x) << 22) | 1755 | |
1476 | #define FW_EQ_OFLD_CMD_HOSTFCMODE(x) ((x) << 20) | 1756 | #define FW_EQ_OFLD_CMD_EQSTART_S 28 |
1477 | #define FW_EQ_OFLD_CMD_CPRIO(x) ((x) << 19) | 1757 | #define FW_EQ_OFLD_CMD_EQSTART_V(x) ((x) << FW_EQ_OFLD_CMD_EQSTART_S) |
1478 | #define FW_EQ_OFLD_CMD_ONCHIP(x) ((x) << 18) | 1758 | #define FW_EQ_OFLD_CMD_EQSTART_F FW_EQ_OFLD_CMD_EQSTART_V(1U) |
1479 | #define FW_EQ_OFLD_CMD_PCIECHN(x) ((x) << 16) | 1759 | |
1480 | #define FW_EQ_OFLD_CMD_IQID(x) ((x) << 0) | 1760 | #define FW_EQ_OFLD_CMD_EQSTOP_S 27 |
1481 | 1761 | #define FW_EQ_OFLD_CMD_EQSTOP_V(x) ((x) << FW_EQ_OFLD_CMD_EQSTOP_S) | |
1482 | #define FW_EQ_OFLD_CMD_DCAEN(x) ((x) << 31) | 1762 | #define FW_EQ_OFLD_CMD_EQSTOP_F FW_EQ_OFLD_CMD_EQSTOP_V(1U) |
1483 | #define FW_EQ_OFLD_CMD_DCACPU(x) ((x) << 26) | 1763 | |
1484 | #define FW_EQ_OFLD_CMD_FBMIN(x) ((x) << 23) | 1764 | #define FW_EQ_OFLD_CMD_EQID_S 0 |
1485 | #define FW_EQ_OFLD_CMD_FBMAX(x) ((x) << 20) | 1765 | #define FW_EQ_OFLD_CMD_EQID_M 0xfffff |
1486 | #define FW_EQ_OFLD_CMD_CIDXFTHRESHO(x) ((x) << 19) | 1766 | #define FW_EQ_OFLD_CMD_EQID_V(x) ((x) << FW_EQ_OFLD_CMD_EQID_S) |
1487 | #define FW_EQ_OFLD_CMD_CIDXFTHRESH(x) ((x) << 16) | 1767 | #define FW_EQ_OFLD_CMD_EQID_G(x) \ |
1488 | #define FW_EQ_OFLD_CMD_EQSIZE(x) ((x) << 0) | 1768 | (((x) >> FW_EQ_OFLD_CMD_EQID_S) & FW_EQ_OFLD_CMD_EQID_M) |
1769 | |||
1770 | #define FW_EQ_OFLD_CMD_PHYSEQID_S 0 | ||
1771 | #define FW_EQ_OFLD_CMD_PHYSEQID_M 0xfffff | ||
1772 | #define FW_EQ_OFLD_CMD_PHYSEQID_G(x) \ | ||
1773 | (((x) >> FW_EQ_OFLD_CMD_PHYSEQID_S) & FW_EQ_OFLD_CMD_PHYSEQID_M) | ||
1774 | |||
1775 | #define FW_EQ_OFLD_CMD_FETCHSZM_S 26 | ||
1776 | #define FW_EQ_OFLD_CMD_FETCHSZM_V(x) ((x) << FW_EQ_OFLD_CMD_FETCHSZM_S) | ||
1777 | |||
1778 | #define FW_EQ_OFLD_CMD_STATUSPGNS_S 25 | ||
1779 | #define FW_EQ_OFLD_CMD_STATUSPGNS_V(x) ((x) << FW_EQ_OFLD_CMD_STATUSPGNS_S) | ||
1780 | |||
1781 | #define FW_EQ_OFLD_CMD_STATUSPGRO_S 24 | ||
1782 | #define FW_EQ_OFLD_CMD_STATUSPGRO_V(x) ((x) << FW_EQ_OFLD_CMD_STATUSPGRO_S) | ||
1783 | |||
1784 | #define FW_EQ_OFLD_CMD_FETCHNS_S 23 | ||
1785 | #define FW_EQ_OFLD_CMD_FETCHNS_V(x) ((x) << FW_EQ_OFLD_CMD_FETCHNS_S) | ||
1786 | |||
1787 | #define FW_EQ_OFLD_CMD_FETCHRO_S 22 | ||
1788 | #define FW_EQ_OFLD_CMD_FETCHRO_V(x) ((x) << FW_EQ_OFLD_CMD_FETCHRO_S) | ||
1789 | #define FW_EQ_OFLD_CMD_FETCHRO_F FW_EQ_OFLD_CMD_FETCHRO_V(1U) | ||
1790 | |||
1791 | #define FW_EQ_OFLD_CMD_HOSTFCMODE_S 20 | ||
1792 | #define FW_EQ_OFLD_CMD_HOSTFCMODE_V(x) ((x) << FW_EQ_OFLD_CMD_HOSTFCMODE_S) | ||
1793 | |||
1794 | #define FW_EQ_OFLD_CMD_CPRIO_S 19 | ||
1795 | #define FW_EQ_OFLD_CMD_CPRIO_V(x) ((x) << FW_EQ_OFLD_CMD_CPRIO_S) | ||
1796 | |||
1797 | #define FW_EQ_OFLD_CMD_ONCHIP_S 18 | ||
1798 | #define FW_EQ_OFLD_CMD_ONCHIP_V(x) ((x) << FW_EQ_OFLD_CMD_ONCHIP_S) | ||
1799 | |||
1800 | #define FW_EQ_OFLD_CMD_PCIECHN_S 16 | ||
1801 | #define FW_EQ_OFLD_CMD_PCIECHN_V(x) ((x) << FW_EQ_OFLD_CMD_PCIECHN_S) | ||
1802 | |||
1803 | #define FW_EQ_OFLD_CMD_IQID_S 0 | ||
1804 | #define FW_EQ_OFLD_CMD_IQID_V(x) ((x) << FW_EQ_OFLD_CMD_IQID_S) | ||
1805 | |||
1806 | #define FW_EQ_OFLD_CMD_DCAEN_S 31 | ||
1807 | #define FW_EQ_OFLD_CMD_DCAEN_V(x) ((x) << FW_EQ_OFLD_CMD_DCAEN_S) | ||
1808 | |||
1809 | #define FW_EQ_OFLD_CMD_DCACPU_S 26 | ||
1810 | #define FW_EQ_OFLD_CMD_DCACPU_V(x) ((x) << FW_EQ_OFLD_CMD_DCACPU_S) | ||
1811 | |||
1812 | #define FW_EQ_OFLD_CMD_FBMIN_S 23 | ||
1813 | #define FW_EQ_OFLD_CMD_FBMIN_V(x) ((x) << FW_EQ_OFLD_CMD_FBMIN_S) | ||
1814 | |||
1815 | #define FW_EQ_OFLD_CMD_FBMAX_S 20 | ||
1816 | #define FW_EQ_OFLD_CMD_FBMAX_V(x) ((x) << FW_EQ_OFLD_CMD_FBMAX_S) | ||
1817 | |||
1818 | #define FW_EQ_OFLD_CMD_CIDXFTHRESHO_S 19 | ||
1819 | #define FW_EQ_OFLD_CMD_CIDXFTHRESHO_V(x) \ | ||
1820 | ((x) << FW_EQ_OFLD_CMD_CIDXFTHRESHO_S) | ||
1821 | |||
1822 | #define FW_EQ_OFLD_CMD_CIDXFTHRESH_S 16 | ||
1823 | #define FW_EQ_OFLD_CMD_CIDXFTHRESH_V(x) ((x) << FW_EQ_OFLD_CMD_CIDXFTHRESH_S) | ||
1824 | |||
1825 | #define FW_EQ_OFLD_CMD_EQSIZE_S 0 | ||
1826 | #define FW_EQ_OFLD_CMD_EQSIZE_V(x) ((x) << FW_EQ_OFLD_CMD_EQSIZE_S) | ||
1489 | 1827 | ||
1490 | /* | 1828 | /* |
1491 | * Macros for VIID parsing: | 1829 | * Macros for VIID parsing: |
diff --git a/drivers/net/ethernet/chelsio/cxgb4vf/sge.c b/drivers/net/ethernet/chelsio/cxgb4vf/sge.c index 50b1b34bde6d..045301d336bb 100644 --- a/drivers/net/ethernet/chelsio/cxgb4vf/sge.c +++ b/drivers/net/ethernet/chelsio/cxgb4vf/sge.c | |||
@@ -2092,22 +2092,22 @@ int t4vf_sge_alloc_rxq(struct adapter *adapter, struct sge_rspq *rspq, | |||
2092 | FW_CMD_REQUEST_F | | 2092 | FW_CMD_REQUEST_F | |
2093 | FW_CMD_WRITE_F | | 2093 | FW_CMD_WRITE_F | |
2094 | FW_CMD_EXEC_F); | 2094 | FW_CMD_EXEC_F); |
2095 | cmd.alloc_to_len16 = cpu_to_be32(FW_IQ_CMD_ALLOC | | 2095 | cmd.alloc_to_len16 = cpu_to_be32(FW_IQ_CMD_ALLOC_F | |
2096 | FW_IQ_CMD_IQSTART(1) | | 2096 | FW_IQ_CMD_IQSTART_F | |
2097 | FW_LEN16(cmd)); | 2097 | FW_LEN16(cmd)); |
2098 | cmd.type_to_iqandstindex = | 2098 | cmd.type_to_iqandstindex = |
2099 | cpu_to_be32(FW_IQ_CMD_TYPE(FW_IQ_TYPE_FL_INT_CAP) | | 2099 | cpu_to_be32(FW_IQ_CMD_TYPE_V(FW_IQ_TYPE_FL_INT_CAP) | |
2100 | FW_IQ_CMD_IQASYNCH(iqasynch) | | 2100 | FW_IQ_CMD_IQASYNCH_V(iqasynch) | |
2101 | FW_IQ_CMD_VIID(pi->viid) | | 2101 | FW_IQ_CMD_VIID_V(pi->viid) | |
2102 | FW_IQ_CMD_IQANDST(iqandst) | | 2102 | FW_IQ_CMD_IQANDST_V(iqandst) | |
2103 | FW_IQ_CMD_IQANUS(1) | | 2103 | FW_IQ_CMD_IQANUS_V(1) | |
2104 | FW_IQ_CMD_IQANUD(SGE_UPDATEDEL_INTR) | | 2104 | FW_IQ_CMD_IQANUD_V(SGE_UPDATEDEL_INTR) | |
2105 | FW_IQ_CMD_IQANDSTINDEX(intr_dest)); | 2105 | FW_IQ_CMD_IQANDSTINDEX_V(intr_dest)); |
2106 | cmd.iqdroprss_to_iqesize = | 2106 | cmd.iqdroprss_to_iqesize = |
2107 | cpu_to_be16(FW_IQ_CMD_IQPCIECH(pi->port_id) | | 2107 | cpu_to_be16(FW_IQ_CMD_IQPCIECH_V(pi->port_id) | |
2108 | FW_IQ_CMD_IQGTSMODE | | 2108 | FW_IQ_CMD_IQGTSMODE_F | |
2109 | FW_IQ_CMD_IQINTCNTTHRESH(rspq->pktcnt_idx) | | 2109 | FW_IQ_CMD_IQINTCNTTHRESH_V(rspq->pktcnt_idx) | |
2110 | FW_IQ_CMD_IQESIZE(ilog2(rspq->iqe_len) - 4)); | 2110 | FW_IQ_CMD_IQESIZE_V(ilog2(rspq->iqe_len) - 4)); |
2111 | cmd.iqsize = cpu_to_be16(rspq->size); | 2111 | cmd.iqsize = cpu_to_be16(rspq->size); |
2112 | cmd.iqaddr = cpu_to_be64(rspq->phys_addr); | 2112 | cmd.iqaddr = cpu_to_be64(rspq->phys_addr); |
2113 | 2113 | ||
@@ -2141,13 +2141,13 @@ int t4vf_sge_alloc_rxq(struct adapter *adapter, struct sge_rspq *rspq, | |||
2141 | */ | 2141 | */ |
2142 | cmd.iqns_to_fl0congen = | 2142 | cmd.iqns_to_fl0congen = |
2143 | cpu_to_be32( | 2143 | cpu_to_be32( |
2144 | FW_IQ_CMD_FL0HOSTFCMODE(SGE_HOSTFCMODE_NONE) | | 2144 | FW_IQ_CMD_FL0HOSTFCMODE_V(SGE_HOSTFCMODE_NONE) | |
2145 | FW_IQ_CMD_FL0PACKEN(1) | | 2145 | FW_IQ_CMD_FL0PACKEN_F | |
2146 | FW_IQ_CMD_FL0PADEN(1)); | 2146 | FW_IQ_CMD_FL0PADEN_F); |
2147 | cmd.fl0dcaen_to_fl0cidxfthresh = | 2147 | cmd.fl0dcaen_to_fl0cidxfthresh = |
2148 | cpu_to_be16( | 2148 | cpu_to_be16( |
2149 | FW_IQ_CMD_FL0FBMIN(SGE_FETCHBURSTMIN_64B) | | 2149 | FW_IQ_CMD_FL0FBMIN_V(SGE_FETCHBURSTMIN_64B) | |
2150 | FW_IQ_CMD_FL0FBMAX(SGE_FETCHBURSTMAX_512B)); | 2150 | FW_IQ_CMD_FL0FBMAX_V(SGE_FETCHBURSTMAX_512B)); |
2151 | cmd.fl0size = cpu_to_be16(flsz); | 2151 | cmd.fl0size = cpu_to_be16(flsz); |
2152 | cmd.fl0addr = cpu_to_be64(fl->addr); | 2152 | cmd.fl0addr = cpu_to_be64(fl->addr); |
2153 | } | 2153 | } |
@@ -2255,20 +2255,21 @@ int t4vf_sge_alloc_eth_txq(struct adapter *adapter, struct sge_eth_txq *txq, | |||
2255 | FW_CMD_REQUEST_F | | 2255 | FW_CMD_REQUEST_F | |
2256 | FW_CMD_WRITE_F | | 2256 | FW_CMD_WRITE_F | |
2257 | FW_CMD_EXEC_F); | 2257 | FW_CMD_EXEC_F); |
2258 | cmd.alloc_to_len16 = cpu_to_be32(FW_EQ_ETH_CMD_ALLOC | | 2258 | cmd.alloc_to_len16 = cpu_to_be32(FW_EQ_ETH_CMD_ALLOC_F | |
2259 | FW_EQ_ETH_CMD_EQSTART | | 2259 | FW_EQ_ETH_CMD_EQSTART_F | |
2260 | FW_LEN16(cmd)); | 2260 | FW_LEN16(cmd)); |
2261 | cmd.viid_pkd = cpu_to_be32(FW_EQ_ETH_CMD_AUTOEQUEQE | | 2261 | cmd.viid_pkd = cpu_to_be32(FW_EQ_ETH_CMD_AUTOEQUEQE_F | |
2262 | FW_EQ_ETH_CMD_VIID(pi->viid)); | 2262 | FW_EQ_ETH_CMD_VIID_V(pi->viid)); |
2263 | cmd.fetchszm_to_iqid = | 2263 | cmd.fetchszm_to_iqid = |
2264 | cpu_to_be32(FW_EQ_ETH_CMD_HOSTFCMODE(SGE_HOSTFCMODE_STPG) | | 2264 | cpu_to_be32(FW_EQ_ETH_CMD_HOSTFCMODE_V(SGE_HOSTFCMODE_STPG) | |
2265 | FW_EQ_ETH_CMD_PCIECHN(pi->port_id) | | 2265 | FW_EQ_ETH_CMD_PCIECHN_V(pi->port_id) | |
2266 | FW_EQ_ETH_CMD_IQID(iqid)); | 2266 | FW_EQ_ETH_CMD_IQID_V(iqid)); |
2267 | cmd.dcaen_to_eqsize = | 2267 | cmd.dcaen_to_eqsize = |
2268 | cpu_to_be32(FW_EQ_ETH_CMD_FBMIN(SGE_FETCHBURSTMIN_64B) | | 2268 | cpu_to_be32(FW_EQ_ETH_CMD_FBMIN_V(SGE_FETCHBURSTMIN_64B) | |
2269 | FW_EQ_ETH_CMD_FBMAX(SGE_FETCHBURSTMAX_512B) | | 2269 | FW_EQ_ETH_CMD_FBMAX_V(SGE_FETCHBURSTMAX_512B) | |
2270 | FW_EQ_ETH_CMD_CIDXFTHRESH(SGE_CIDXFLUSHTHRESH_32) | | 2270 | FW_EQ_ETH_CMD_CIDXFTHRESH_V( |
2271 | FW_EQ_ETH_CMD_EQSIZE(nentries)); | 2271 | SGE_CIDXFLUSHTHRESH_32) | |
2272 | FW_EQ_ETH_CMD_EQSIZE_V(nentries)); | ||
2272 | cmd.eqaddr = cpu_to_be64(txq->q.phys_addr); | 2273 | cmd.eqaddr = cpu_to_be64(txq->q.phys_addr); |
2273 | 2274 | ||
2274 | /* | 2275 | /* |
@@ -2294,9 +2295,9 @@ int t4vf_sge_alloc_eth_txq(struct adapter *adapter, struct sge_eth_txq *txq, | |||
2294 | txq->q.cidx = 0; | 2295 | txq->q.cidx = 0; |
2295 | txq->q.pidx = 0; | 2296 | txq->q.pidx = 0; |
2296 | txq->q.stat = (void *)&txq->q.desc[txq->q.size]; | 2297 | txq->q.stat = (void *)&txq->q.desc[txq->q.size]; |
2297 | txq->q.cntxt_id = FW_EQ_ETH_CMD_EQID_GET(be32_to_cpu(rpl.eqid_pkd)); | 2298 | txq->q.cntxt_id = FW_EQ_ETH_CMD_EQID_G(be32_to_cpu(rpl.eqid_pkd)); |
2298 | txq->q.abs_id = | 2299 | txq->q.abs_id = |
2299 | FW_EQ_ETH_CMD_PHYSEQID_GET(be32_to_cpu(rpl.physeqid_pkd)); | 2300 | FW_EQ_ETH_CMD_PHYSEQID_G(be32_to_cpu(rpl.physeqid_pkd)); |
2300 | txq->txq = devq; | 2301 | txq->txq = devq; |
2301 | txq->tso = 0; | 2302 | txq->tso = 0; |
2302 | txq->tx_cso = 0; | 2303 | txq->tx_cso = 0; |
diff --git a/drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c b/drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c index f2087eb013c3..5d3bd8db7ea6 100644 --- a/drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c +++ b/drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c | |||
@@ -1302,10 +1302,10 @@ int t4vf_iq_free(struct adapter *adapter, unsigned int iqtype, | |||
1302 | cmd.op_to_vfn = cpu_to_be32(FW_CMD_OP_V(FW_IQ_CMD) | | 1302 | cmd.op_to_vfn = cpu_to_be32(FW_CMD_OP_V(FW_IQ_CMD) | |
1303 | FW_CMD_REQUEST_F | | 1303 | FW_CMD_REQUEST_F | |
1304 | FW_CMD_EXEC_F); | 1304 | FW_CMD_EXEC_F); |
1305 | cmd.alloc_to_len16 = cpu_to_be32(FW_IQ_CMD_FREE | | 1305 | cmd.alloc_to_len16 = cpu_to_be32(FW_IQ_CMD_FREE_F | |
1306 | FW_LEN16(cmd)); | 1306 | FW_LEN16(cmd)); |
1307 | cmd.type_to_iqandstindex = | 1307 | cmd.type_to_iqandstindex = |
1308 | cpu_to_be32(FW_IQ_CMD_TYPE(iqtype)); | 1308 | cpu_to_be32(FW_IQ_CMD_TYPE_V(iqtype)); |
1309 | 1309 | ||
1310 | cmd.iqid = cpu_to_be16(iqid); | 1310 | cmd.iqid = cpu_to_be16(iqid); |
1311 | cmd.fl0id = cpu_to_be16(fl0id); | 1311 | cmd.fl0id = cpu_to_be16(fl0id); |
@@ -1328,9 +1328,9 @@ int t4vf_eth_eq_free(struct adapter *adapter, unsigned int eqid) | |||
1328 | cmd.op_to_vfn = cpu_to_be32(FW_CMD_OP_V(FW_EQ_ETH_CMD) | | 1328 | cmd.op_to_vfn = cpu_to_be32(FW_CMD_OP_V(FW_EQ_ETH_CMD) | |
1329 | FW_CMD_REQUEST_F | | 1329 | FW_CMD_REQUEST_F | |
1330 | FW_CMD_EXEC_F); | 1330 | FW_CMD_EXEC_F); |
1331 | cmd.alloc_to_len16 = cpu_to_be32(FW_EQ_ETH_CMD_FREE | | 1331 | cmd.alloc_to_len16 = cpu_to_be32(FW_EQ_ETH_CMD_FREE_F | |
1332 | FW_LEN16(cmd)); | 1332 | FW_LEN16(cmd)); |
1333 | cmd.eqid_pkd = cpu_to_be32(FW_EQ_ETH_CMD_EQID(eqid)); | 1333 | cmd.eqid_pkd = cpu_to_be32(FW_EQ_ETH_CMD_EQID_V(eqid)); |
1334 | return t4vf_wr_mbox(adapter, &cmd, sizeof(cmd), NULL); | 1334 | return t4vf_wr_mbox(adapter, &cmd, sizeof(cmd), NULL); |
1335 | } | 1335 | } |
1336 | 1336 | ||
diff --git a/drivers/scsi/csiostor/csio_mb.c b/drivers/scsi/csiostor/csio_mb.c index a1e0568b657f..5a514b6bc8ec 100644 --- a/drivers/scsi/csiostor/csio_mb.c +++ b/drivers/scsi/csiostor/csio_mb.c | |||
@@ -445,16 +445,16 @@ csio_mb_iq_alloc(struct csio_hw *hw, struct csio_mb *mbp, void *priv, | |||
445 | 445 | ||
446 | cmdp->op_to_vfn = htonl(FW_CMD_OP_V(FW_IQ_CMD) | | 446 | cmdp->op_to_vfn = htonl(FW_CMD_OP_V(FW_IQ_CMD) | |
447 | FW_CMD_REQUEST_F | FW_CMD_EXEC_F | | 447 | FW_CMD_REQUEST_F | FW_CMD_EXEC_F | |
448 | FW_IQ_CMD_PFN(iq_params->pfn) | | 448 | FW_IQ_CMD_PFN_V(iq_params->pfn) | |
449 | FW_IQ_CMD_VFN(iq_params->vfn)); | 449 | FW_IQ_CMD_VFN_V(iq_params->vfn)); |
450 | 450 | ||
451 | cmdp->alloc_to_len16 = htonl(FW_IQ_CMD_ALLOC | | 451 | cmdp->alloc_to_len16 = htonl(FW_IQ_CMD_ALLOC_F | |
452 | FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); | 452 | FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); |
453 | 453 | ||
454 | cmdp->type_to_iqandstindex = htonl( | 454 | cmdp->type_to_iqandstindex = htonl( |
455 | FW_IQ_CMD_VIID(iq_params->viid) | | 455 | FW_IQ_CMD_VIID_V(iq_params->viid) | |
456 | FW_IQ_CMD_TYPE(iq_params->type) | | 456 | FW_IQ_CMD_TYPE_V(iq_params->type) | |
457 | FW_IQ_CMD_IQASYNCH(iq_params->iqasynch)); | 457 | FW_IQ_CMD_IQASYNCH_V(iq_params->iqasynch)); |
458 | 458 | ||
459 | cmdp->fl0size = htons(iq_params->fl0size); | 459 | cmdp->fl0size = htons(iq_params->fl0size); |
460 | cmdp->fl0size = htons(iq_params->fl1size); | 460 | cmdp->fl0size = htons(iq_params->fl1size); |
@@ -488,8 +488,8 @@ csio_mb_iq_write(struct csio_hw *hw, struct csio_mb *mbp, void *priv, | |||
488 | struct fw_iq_cmd *cmdp = (struct fw_iq_cmd *)(mbp->mb); | 488 | struct fw_iq_cmd *cmdp = (struct fw_iq_cmd *)(mbp->mb); |
489 | 489 | ||
490 | uint32_t iq_start_stop = (iq_params->iq_start) ? | 490 | uint32_t iq_start_stop = (iq_params->iq_start) ? |
491 | FW_IQ_CMD_IQSTART(1) : | 491 | FW_IQ_CMD_IQSTART_F : |
492 | FW_IQ_CMD_IQSTOP(1); | 492 | FW_IQ_CMD_IQSTOP_F; |
493 | 493 | ||
494 | /* | 494 | /* |
495 | * If this IQ write is cascaded with IQ alloc request, do not | 495 | * If this IQ write is cascaded with IQ alloc request, do not |
@@ -501,49 +501,49 @@ csio_mb_iq_write(struct csio_hw *hw, struct csio_mb *mbp, void *priv, | |||
501 | 501 | ||
502 | cmdp->op_to_vfn |= htonl(FW_CMD_OP_V(FW_IQ_CMD) | | 502 | cmdp->op_to_vfn |= htonl(FW_CMD_OP_V(FW_IQ_CMD) | |
503 | FW_CMD_REQUEST_F | FW_CMD_WRITE_F | | 503 | FW_CMD_REQUEST_F | FW_CMD_WRITE_F | |
504 | FW_IQ_CMD_PFN(iq_params->pfn) | | 504 | FW_IQ_CMD_PFN_V(iq_params->pfn) | |
505 | FW_IQ_CMD_VFN(iq_params->vfn)); | 505 | FW_IQ_CMD_VFN_V(iq_params->vfn)); |
506 | cmdp->alloc_to_len16 |= htonl(iq_start_stop | | 506 | cmdp->alloc_to_len16 |= htonl(iq_start_stop | |
507 | FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); | 507 | FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); |
508 | cmdp->iqid |= htons(iq_params->iqid); | 508 | cmdp->iqid |= htons(iq_params->iqid); |
509 | cmdp->fl0id |= htons(iq_params->fl0id); | 509 | cmdp->fl0id |= htons(iq_params->fl0id); |
510 | cmdp->fl1id |= htons(iq_params->fl1id); | 510 | cmdp->fl1id |= htons(iq_params->fl1id); |
511 | cmdp->type_to_iqandstindex |= htonl( | 511 | cmdp->type_to_iqandstindex |= htonl( |
512 | FW_IQ_CMD_IQANDST(iq_params->iqandst) | | 512 | FW_IQ_CMD_IQANDST_V(iq_params->iqandst) | |
513 | FW_IQ_CMD_IQANUS(iq_params->iqanus) | | 513 | FW_IQ_CMD_IQANUS_V(iq_params->iqanus) | |
514 | FW_IQ_CMD_IQANUD(iq_params->iqanud) | | 514 | FW_IQ_CMD_IQANUD_V(iq_params->iqanud) | |
515 | FW_IQ_CMD_IQANDSTINDEX(iq_params->iqandstindex)); | 515 | FW_IQ_CMD_IQANDSTINDEX_V(iq_params->iqandstindex)); |
516 | cmdp->iqdroprss_to_iqesize |= htons( | 516 | cmdp->iqdroprss_to_iqesize |= htons( |
517 | FW_IQ_CMD_IQPCIECH(iq_params->iqpciech) | | 517 | FW_IQ_CMD_IQPCIECH_V(iq_params->iqpciech) | |
518 | FW_IQ_CMD_IQDCAEN(iq_params->iqdcaen) | | 518 | FW_IQ_CMD_IQDCAEN_V(iq_params->iqdcaen) | |
519 | FW_IQ_CMD_IQDCACPU(iq_params->iqdcacpu) | | 519 | FW_IQ_CMD_IQDCACPU_V(iq_params->iqdcacpu) | |
520 | FW_IQ_CMD_IQINTCNTTHRESH(iq_params->iqintcntthresh) | | 520 | FW_IQ_CMD_IQINTCNTTHRESH_V(iq_params->iqintcntthresh) | |
521 | FW_IQ_CMD_IQCPRIO(iq_params->iqcprio) | | 521 | FW_IQ_CMD_IQCPRIO_V(iq_params->iqcprio) | |
522 | FW_IQ_CMD_IQESIZE(iq_params->iqesize)); | 522 | FW_IQ_CMD_IQESIZE_V(iq_params->iqesize)); |
523 | 523 | ||
524 | cmdp->iqsize |= htons(iq_params->iqsize); | 524 | cmdp->iqsize |= htons(iq_params->iqsize); |
525 | cmdp->iqaddr |= cpu_to_be64(iq_params->iqaddr); | 525 | cmdp->iqaddr |= cpu_to_be64(iq_params->iqaddr); |
526 | 526 | ||
527 | if (iq_params->type == 0) { | 527 | if (iq_params->type == 0) { |
528 | cmdp->iqns_to_fl0congen |= htonl( | 528 | cmdp->iqns_to_fl0congen |= htonl( |
529 | FW_IQ_CMD_IQFLINTIQHSEN(iq_params->iqflintiqhsen)| | 529 | FW_IQ_CMD_IQFLINTIQHSEN_V(iq_params->iqflintiqhsen)| |
530 | FW_IQ_CMD_IQFLINTCONGEN(iq_params->iqflintcongen)); | 530 | FW_IQ_CMD_IQFLINTCONGEN_V(iq_params->iqflintcongen)); |
531 | } | 531 | } |
532 | 532 | ||
533 | if (iq_params->fl0size && iq_params->fl0addr && | 533 | if (iq_params->fl0size && iq_params->fl0addr && |
534 | (iq_params->fl0id != 0xFFFF)) { | 534 | (iq_params->fl0id != 0xFFFF)) { |
535 | 535 | ||
536 | cmdp->iqns_to_fl0congen |= htonl( | 536 | cmdp->iqns_to_fl0congen |= htonl( |
537 | FW_IQ_CMD_FL0HOSTFCMODE(iq_params->fl0hostfcmode)| | 537 | FW_IQ_CMD_FL0HOSTFCMODE_V(iq_params->fl0hostfcmode)| |
538 | FW_IQ_CMD_FL0CPRIO(iq_params->fl0cprio) | | 538 | FW_IQ_CMD_FL0CPRIO_V(iq_params->fl0cprio) | |
539 | FW_IQ_CMD_FL0PADEN(iq_params->fl0paden) | | 539 | FW_IQ_CMD_FL0PADEN_V(iq_params->fl0paden) | |
540 | FW_IQ_CMD_FL0PACKEN(iq_params->fl0packen)); | 540 | FW_IQ_CMD_FL0PACKEN_V(iq_params->fl0packen)); |
541 | cmdp->fl0dcaen_to_fl0cidxfthresh |= htons( | 541 | cmdp->fl0dcaen_to_fl0cidxfthresh |= htons( |
542 | FW_IQ_CMD_FL0DCAEN(iq_params->fl0dcaen) | | 542 | FW_IQ_CMD_FL0DCAEN_V(iq_params->fl0dcaen) | |
543 | FW_IQ_CMD_FL0DCACPU(iq_params->fl0dcacpu) | | 543 | FW_IQ_CMD_FL0DCACPU_V(iq_params->fl0dcacpu) | |
544 | FW_IQ_CMD_FL0FBMIN(iq_params->fl0fbmin) | | 544 | FW_IQ_CMD_FL0FBMIN_V(iq_params->fl0fbmin) | |
545 | FW_IQ_CMD_FL0FBMAX(iq_params->fl0fbmax) | | 545 | FW_IQ_CMD_FL0FBMAX_V(iq_params->fl0fbmax) | |
546 | FW_IQ_CMD_FL0CIDXFTHRESH(iq_params->fl0cidxfthresh)); | 546 | FW_IQ_CMD_FL0CIDXFTHRESH_V(iq_params->fl0cidxfthresh)); |
547 | cmdp->fl0size |= htons(iq_params->fl0size); | 547 | cmdp->fl0size |= htons(iq_params->fl0size); |
548 | cmdp->fl0addr |= cpu_to_be64(iq_params->fl0addr); | 548 | cmdp->fl0addr |= cpu_to_be64(iq_params->fl0addr); |
549 | } | 549 | } |
@@ -624,11 +624,11 @@ csio_mb_iq_free(struct csio_hw *hw, struct csio_mb *mbp, void *priv, | |||
624 | 624 | ||
625 | cmdp->op_to_vfn = htonl(FW_CMD_OP_V(FW_IQ_CMD) | | 625 | cmdp->op_to_vfn = htonl(FW_CMD_OP_V(FW_IQ_CMD) | |
626 | FW_CMD_REQUEST_F | FW_CMD_EXEC_F | | 626 | FW_CMD_REQUEST_F | FW_CMD_EXEC_F | |
627 | FW_IQ_CMD_PFN(iq_params->pfn) | | 627 | FW_IQ_CMD_PFN_V(iq_params->pfn) | |
628 | FW_IQ_CMD_VFN(iq_params->vfn)); | 628 | FW_IQ_CMD_VFN_V(iq_params->vfn)); |
629 | cmdp->alloc_to_len16 = htonl(FW_IQ_CMD_FREE | | 629 | cmdp->alloc_to_len16 = htonl(FW_IQ_CMD_FREE_F | |
630 | FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); | 630 | FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); |
631 | cmdp->type_to_iqandstindex = htonl(FW_IQ_CMD_TYPE(iq_params->type)); | 631 | cmdp->type_to_iqandstindex = htonl(FW_IQ_CMD_TYPE_V(iq_params->type)); |
632 | 632 | ||
633 | cmdp->iqid = htons(iq_params->iqid); | 633 | cmdp->iqid = htons(iq_params->iqid); |
634 | cmdp->fl0id = htons(iq_params->fl0id); | 634 | cmdp->fl0id = htons(iq_params->fl0id); |
@@ -659,9 +659,9 @@ csio_mb_eq_ofld_alloc(struct csio_hw *hw, struct csio_mb *mbp, void *priv, | |||
659 | CSIO_INIT_MBP(mbp, cmdp, mb_tmo, priv, cbfn, 1); | 659 | CSIO_INIT_MBP(mbp, cmdp, mb_tmo, priv, cbfn, 1); |
660 | cmdp->op_to_vfn = htonl(FW_CMD_OP_V(FW_EQ_OFLD_CMD) | | 660 | cmdp->op_to_vfn = htonl(FW_CMD_OP_V(FW_EQ_OFLD_CMD) | |
661 | FW_CMD_REQUEST_F | FW_CMD_EXEC_F | | 661 | FW_CMD_REQUEST_F | FW_CMD_EXEC_F | |
662 | FW_EQ_OFLD_CMD_PFN(eq_ofld_params->pfn) | | 662 | FW_EQ_OFLD_CMD_PFN_V(eq_ofld_params->pfn) | |
663 | FW_EQ_OFLD_CMD_VFN(eq_ofld_params->vfn)); | 663 | FW_EQ_OFLD_CMD_VFN_V(eq_ofld_params->vfn)); |
664 | cmdp->alloc_to_len16 = htonl(FW_EQ_OFLD_CMD_ALLOC | | 664 | cmdp->alloc_to_len16 = htonl(FW_EQ_OFLD_CMD_ALLOC_F | |
665 | FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); | 665 | FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); |
666 | 666 | ||
667 | } /* csio_mb_eq_ofld_alloc */ | 667 | } /* csio_mb_eq_ofld_alloc */ |
@@ -694,7 +694,8 @@ csio_mb_eq_ofld_write(struct csio_hw *hw, struct csio_mb *mbp, void *priv, | |||
694 | struct fw_eq_ofld_cmd *cmdp = (struct fw_eq_ofld_cmd *)(mbp->mb); | 694 | struct fw_eq_ofld_cmd *cmdp = (struct fw_eq_ofld_cmd *)(mbp->mb); |
695 | 695 | ||
696 | uint32_t eq_start_stop = (eq_ofld_params->eqstart) ? | 696 | uint32_t eq_start_stop = (eq_ofld_params->eqstart) ? |
697 | FW_EQ_OFLD_CMD_EQSTART : FW_EQ_OFLD_CMD_EQSTOP; | 697 | FW_EQ_OFLD_CMD_EQSTART_F : |
698 | FW_EQ_OFLD_CMD_EQSTOP_F; | ||
698 | 699 | ||
699 | /* | 700 | /* |
700 | * If this EQ write is cascaded with EQ alloc request, do not | 701 | * If this EQ write is cascaded with EQ alloc request, do not |
@@ -706,27 +707,27 @@ csio_mb_eq_ofld_write(struct csio_hw *hw, struct csio_mb *mbp, void *priv, | |||
706 | 707 | ||
707 | cmdp->op_to_vfn |= htonl(FW_CMD_OP_V(FW_EQ_OFLD_CMD) | | 708 | cmdp->op_to_vfn |= htonl(FW_CMD_OP_V(FW_EQ_OFLD_CMD) | |
708 | FW_CMD_REQUEST_F | FW_CMD_WRITE_F | | 709 | FW_CMD_REQUEST_F | FW_CMD_WRITE_F | |
709 | FW_EQ_OFLD_CMD_PFN(eq_ofld_params->pfn) | | 710 | FW_EQ_OFLD_CMD_PFN_V(eq_ofld_params->pfn) | |
710 | FW_EQ_OFLD_CMD_VFN(eq_ofld_params->vfn)); | 711 | FW_EQ_OFLD_CMD_VFN_V(eq_ofld_params->vfn)); |
711 | cmdp->alloc_to_len16 |= htonl(eq_start_stop | | 712 | cmdp->alloc_to_len16 |= htonl(eq_start_stop | |
712 | FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); | 713 | FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); |
713 | 714 | ||
714 | cmdp->eqid_pkd |= htonl(FW_EQ_OFLD_CMD_EQID(eq_ofld_params->eqid)); | 715 | cmdp->eqid_pkd |= htonl(FW_EQ_OFLD_CMD_EQID_V(eq_ofld_params->eqid)); |
715 | 716 | ||
716 | cmdp->fetchszm_to_iqid |= htonl( | 717 | cmdp->fetchszm_to_iqid |= htonl( |
717 | FW_EQ_OFLD_CMD_HOSTFCMODE(eq_ofld_params->hostfcmode) | | 718 | FW_EQ_OFLD_CMD_HOSTFCMODE_V(eq_ofld_params->hostfcmode) | |
718 | FW_EQ_OFLD_CMD_CPRIO(eq_ofld_params->cprio) | | 719 | FW_EQ_OFLD_CMD_CPRIO_V(eq_ofld_params->cprio) | |
719 | FW_EQ_OFLD_CMD_PCIECHN(eq_ofld_params->pciechn) | | 720 | FW_EQ_OFLD_CMD_PCIECHN_V(eq_ofld_params->pciechn) | |
720 | FW_EQ_OFLD_CMD_IQID(eq_ofld_params->iqid)); | 721 | FW_EQ_OFLD_CMD_IQID_V(eq_ofld_params->iqid)); |
721 | 722 | ||
722 | cmdp->dcaen_to_eqsize |= htonl( | 723 | cmdp->dcaen_to_eqsize |= htonl( |
723 | FW_EQ_OFLD_CMD_DCAEN(eq_ofld_params->dcaen) | | 724 | FW_EQ_OFLD_CMD_DCAEN_V(eq_ofld_params->dcaen) | |
724 | FW_EQ_OFLD_CMD_DCACPU(eq_ofld_params->dcacpu) | | 725 | FW_EQ_OFLD_CMD_DCACPU_V(eq_ofld_params->dcacpu) | |
725 | FW_EQ_OFLD_CMD_FBMIN(eq_ofld_params->fbmin) | | 726 | FW_EQ_OFLD_CMD_FBMIN_V(eq_ofld_params->fbmin) | |
726 | FW_EQ_OFLD_CMD_FBMAX(eq_ofld_params->fbmax) | | 727 | FW_EQ_OFLD_CMD_FBMAX_V(eq_ofld_params->fbmax) | |
727 | FW_EQ_OFLD_CMD_CIDXFTHRESHO(eq_ofld_params->cidxfthresho) | | 728 | FW_EQ_OFLD_CMD_CIDXFTHRESHO_V(eq_ofld_params->cidxfthresho) | |
728 | FW_EQ_OFLD_CMD_CIDXFTHRESH(eq_ofld_params->cidxfthresh) | | 729 | FW_EQ_OFLD_CMD_CIDXFTHRESH_V(eq_ofld_params->cidxfthresh) | |
729 | FW_EQ_OFLD_CMD_EQSIZE(eq_ofld_params->eqsize)); | 730 | FW_EQ_OFLD_CMD_EQSIZE_V(eq_ofld_params->eqsize)); |
730 | 731 | ||
731 | cmdp->eqaddr |= cpu_to_be64(eq_ofld_params->eqaddr); | 732 | cmdp->eqaddr |= cpu_to_be64(eq_ofld_params->eqaddr); |
732 | 733 | ||
@@ -776,9 +777,9 @@ csio_mb_eq_ofld_alloc_write_rsp(struct csio_hw *hw, | |||
776 | *ret_val = FW_CMD_RETVAL_G(ntohl(rsp->alloc_to_len16)); | 777 | *ret_val = FW_CMD_RETVAL_G(ntohl(rsp->alloc_to_len16)); |
777 | 778 | ||
778 | if (*ret_val == FW_SUCCESS) { | 779 | if (*ret_val == FW_SUCCESS) { |
779 | eq_ofld_params->eqid = FW_EQ_OFLD_CMD_EQID_GET( | 780 | eq_ofld_params->eqid = FW_EQ_OFLD_CMD_EQID_G( |
780 | ntohl(rsp->eqid_pkd)); | 781 | ntohl(rsp->eqid_pkd)); |
781 | eq_ofld_params->physeqid = FW_EQ_OFLD_CMD_PHYSEQID_GET( | 782 | eq_ofld_params->physeqid = FW_EQ_OFLD_CMD_PHYSEQID_G( |
782 | ntohl(rsp->physeqid_pkd)); | 783 | ntohl(rsp->physeqid_pkd)); |
783 | } else | 784 | } else |
784 | eq_ofld_params->eqid = 0; | 785 | eq_ofld_params->eqid = 0; |
@@ -809,11 +810,11 @@ csio_mb_eq_ofld_free(struct csio_hw *hw, struct csio_mb *mbp, void *priv, | |||
809 | 810 | ||
810 | cmdp->op_to_vfn = htonl(FW_CMD_OP_V(FW_EQ_OFLD_CMD) | | 811 | cmdp->op_to_vfn = htonl(FW_CMD_OP_V(FW_EQ_OFLD_CMD) | |
811 | FW_CMD_REQUEST_F | FW_CMD_EXEC_F | | 812 | FW_CMD_REQUEST_F | FW_CMD_EXEC_F | |
812 | FW_EQ_OFLD_CMD_PFN(eq_ofld_params->pfn) | | 813 | FW_EQ_OFLD_CMD_PFN_V(eq_ofld_params->pfn) | |
813 | FW_EQ_OFLD_CMD_VFN(eq_ofld_params->vfn)); | 814 | FW_EQ_OFLD_CMD_VFN_V(eq_ofld_params->vfn)); |
814 | cmdp->alloc_to_len16 = htonl(FW_EQ_OFLD_CMD_FREE | | 815 | cmdp->alloc_to_len16 = htonl(FW_EQ_OFLD_CMD_FREE_F | |
815 | FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); | 816 | FW_CMD_LEN16_V(sizeof(*cmdp) / 16)); |
816 | cmdp->eqid_pkd = htonl(FW_EQ_OFLD_CMD_EQID(eq_ofld_params->eqid)); | 817 | cmdp->eqid_pkd = htonl(FW_EQ_OFLD_CMD_EQID_V(eq_ofld_params->eqid)); |
817 | 818 | ||
818 | } /* csio_mb_eq_ofld_free */ | 819 | } /* csio_mb_eq_ofld_free */ |
819 | 820 | ||