From owner-svn-src-all@FreeBSD.ORG Wed Dec 25 22:49:55 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A7F3A1F3; Wed, 25 Dec 2013 22:49:55 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 790921965; Wed, 25 Dec 2013 22:49:55 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rBPMntu6047048; Wed, 25 Dec 2013 22:49:55 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rBPMntl1047047; Wed, 25 Dec 2013 22:49:55 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201312252249.rBPMntl1047047@svn.freebsd.org> From: Dimitry Andric Date: Wed, 25 Dec 2013 22:49:55 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r259897 - head/sys/dev/cxgb/ulp/tom X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Dec 2013 22:49:55 -0000 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) {