svn commit: r259897 - head/sys/dev/cxgb/ulp/tom
Dimitry Andric
dim at FreeBSD.org
Wed Dec 25 22:49:55 UTC 2013
Author: dim
Date: Wed Dec 25 22:49:54 2013
New Revision: 259897
URL: http://svnweb.freebsd.org/changeset/base/259897
Log:
In sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c, remove static functions
mk_cpl_barrier_ulp(), mk_get_tcb_ulp() and mk_set_tcb_field_ulp(), which
are all unused since r237263.
MFC after: 3 days
Modified:
head/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c
Modified: head/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c
==============================================================================
--- head/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c Wed Dec 25 22:45:33 2013 (r259896)
+++ head/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c Wed Dec 25 22:49:54 2013 (r259897)
@@ -1795,53 +1795,6 @@ do_wr_ack(struct sge_qset *qs, struct rs
return (0);
}
-/*
- * Build a CPL_BARRIER message as payload of a ULP_TX_PKT command.
- */
-static inline void
-mk_cpl_barrier_ulp(struct cpl_barrier *b)
-{
- struct ulp_txpkt *txpkt = (struct ulp_txpkt *)b;
-
- txpkt->cmd_dest = htonl(V_ULPTX_CMD(ULP_TXPKT));
- txpkt->len = htonl(V_ULPTX_NFLITS(sizeof(*b) / 8));
- b->opcode = CPL_BARRIER;
-}
-
-/*
- * Build a CPL_GET_TCB message as payload of a ULP_TX_PKT command.
- */
-static inline void
-mk_get_tcb_ulp(struct cpl_get_tcb *req, unsigned int tid, unsigned int cpuno)
-{
- struct ulp_txpkt *txpkt = (struct ulp_txpkt *)req;
-
- txpkt = (struct ulp_txpkt *)req;
- txpkt->cmd_dest = htonl(V_ULPTX_CMD(ULP_TXPKT));
- txpkt->len = htonl(V_ULPTX_NFLITS(sizeof(*req) / 8));
- OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_GET_TCB, tid));
- req->cpuno = htons(cpuno);
-}
-
-/*
- * Build a CPL_SET_TCB_FIELD message as payload of a ULP_TX_PKT command.
- */
-static inline void
-mk_set_tcb_field_ulp(struct cpl_set_tcb_field *req, unsigned int tid,
- unsigned int word, uint64_t mask, uint64_t val)
-{
- struct ulp_txpkt *txpkt = (struct ulp_txpkt *)req;
-
- txpkt->cmd_dest = htonl(V_ULPTX_CMD(ULP_TXPKT));
- txpkt->len = htonl(V_ULPTX_NFLITS(sizeof(*req) / 8));
- OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_SET_TCB_FIELD, tid));
- req->reply = V_NO_REPLY(1);
- req->cpu_idx = 0;
- req->word = htons(word);
- req->mask = htobe64(mask);
- req->val = htobe64(val);
-}
-
void
t3_init_cpl_io(struct adapter *sc)
{
More information about the svn-src-head
mailing list