Searched refs:sge (Results 1 - 25 of 83) sorted by relevance

1234

/drivers/net/ethernet/chelsio/cxgb/
H A Dsge.h3 * File: sge.h *
71 struct sge;
73 struct sge *t1_sge_create(struct adapter *, struct sge_params *);
74 int t1_sge_configure(struct sge *, struct sge_params *);
75 int t1_sge_set_coalesce_params(struct sge *, struct sge_params *);
76 void t1_sge_destroy(struct sge *);
82 void t1_sge_start(struct sge *);
83 void t1_sge_stop(struct sge *);
84 int t1_sge_intr_error_handler(struct sge *);
85 void t1_sge_intr_enable(struct sge *);
[all...]
H A Dsge.c3 * File: sge.c *
58 #include "sge.h"
254 struct sge { struct
268 u32 sge_control; /* shadow value of sge control reg */
282 static void tx_sched_stop(struct sge *sge) argument
284 struct sched *s = sge->tx_sched;
297 unsigned int t1_sched_update_parms(struct sge *sge, unsigned int port, argument
300 struct sched *s = sge
371 tx_sched_init(struct sge *sge) argument
397 sched_update_avail(struct sge *sge) argument
431 sched_skb(struct sge *sge, struct sk_buff *skb, unsigned int credits) argument
525 free_rx_resources(struct sge *sge) argument
555 alloc_rx_resources(struct sge *sge, struct sge_params *p) argument
618 free_cmdQ_buffers(struct sge *sge, struct cmdQ *q, unsigned int n) argument
652 free_tx_resources(struct sge *sge) argument
676 alloc_tx_resources(struct sge *sge, struct sge_params *p) argument
733 struct sge *sge = adapter->sge; local
749 configure_sge(struct sge *sge, struct sge_params *p) argument
790 jumbo_payload_capacity(const struct sge *sge) argument
800 t1_sge_destroy(struct sge *sge) argument
825 refill_free_list(struct sge *sge, struct freelQ *q) argument
871 freelQs_empty(struct sge *sge) argument
904 t1_sge_intr_disable(struct sge *sge) argument
915 t1_sge_intr_enable(struct sge *sge) argument
929 t1_sge_intr_clear(struct sge *sge) argument
938 t1_sge_intr_error_handler(struct sge *sge) argument
972 t1_sge_get_intr_counts(const struct sge *sge) argument
977 t1_sge_get_port_stats(const struct sge *sge, int port, struct sge_port_stats *ss) argument
1288 reclaim_completed_tx(struct sge *sge, struct cmdQ *q) argument
1306 struct sge *sge = (struct sge *) arg; local
1352 sge_rx(struct sge *sge, struct freelQ *fl, unsigned int len) argument
1407 restart_tx_queues(struct sge *sge) argument
1434 struct sge *sge = adapter->sge; local
1468 struct sge *sge = adapter->sge; local
1558 struct sge *sge = adapter->sge; local
1617 struct sge *sge = adapter->sge; local
1662 struct sge *sge = adapter->sge; local
1774 struct sge *sge = adapter->sge; local
1888 struct sge *sge = (struct sge *)data; local
1908 t1_sge_set_coalesce_params(struct sge *sge, struct sge_params *p) argument
1920 t1_sge_configure(struct sge *sge, struct sge_params *p) argument
1943 t1_sge_stop(struct sge *sge) argument
1963 t1_sge_start(struct sge *sge) argument
1984 struct sge *sge = adapter->sge; local
2027 struct sge *sge = adapter->sge; local
2061 struct sge *sge = kzalloc(sizeof(*sge), GFP_KERNEL); local
[all...]
H A DMakefile8 cxgb-objs := cxgb2.o espi.o tp.o pm3393.o sge.o subr.o \
H A Dcxgb2.c53 #include "sge.h"
174 t1_sched_update_parms(adapter->sge, port_id, 0, sched_speed);
228 t1_sge_start(adapter->sge);
239 t1_sge_stop(adapter->sge);
467 t = t1_sge_get_intr_counts(adapter->sge);
468 t1_sge_get_port_stats(adapter->sge, dev->if_port, &ss);
716 e->rx_pending = adapter->params.sge.freelQ_size[!jumbo_fl];
717 e->rx_jumbo_pending = adapter->params.sge.freelQ_size[jumbo_fl];
718 e->tx_pending = adapter->params.sge.cmdQ_size[0];
737 adapter->params.sge
[all...]
H A Dcommon.h185 struct sge_params sge; member in struct:adapter_params
224 struct sge;
242 struct sge *sge; member in struct:adapter
/drivers/net/ethernet/chelsio/cxgb4vf/
H A DMakefile7 cxgb4vf-objs := cxgb4vf_main.o t4vf_hw.o sge.o
H A Dsge.c263 const struct sge *s = &adapter->sge;
324 for (p = sgl->sge; nfrags >= 2; nfrags -= 2) {
456 const struct sge *s = &adapter->sge;
587 struct sge *s = &adapter->sge;
694 set_bit(fl->cntxt_id, adapter->sge.starving_fl);
914 to = (u8 *)end > (u8 *)tq->stat ? buf : sgl->sge;
928 unsigned int part0 = (u8 *)tq->stat - (u8 *)sgl->sge, part
[all...]
H A Dcxgb4vf_main.c121 * unused. See sge.c for more details ...
290 struct sge *s = &adapter->sge;
328 struct sge *s = &adapter->sge;
361 struct sge *s = &adapter->sge;
384 struct sge *s = &adapter->sge;
442 struct sge *
[all...]
H A Dadapter.h260 struct sge { struct
339 #define for_each_ethrxq(sge, iter) \
340 for (iter = 0; iter < (sge)->ethqsets; iter++)
362 struct sge sge; member in struct:adapter
/drivers/net/ethernet/chelsio/cxgb4/
H A DMakefile7 cxgb4-objs := cxgb4_main.o l2t.o t4_hw.o sge.o
H A Dsge.c169 struct sge *s = &adapter->sge;
327 for (p = sgl->sge; nfrags >= 2; nfrags -= 2) {
442 struct sge *s = &adapter->sge;
572 struct sge *s = &adap->sge;
649 set_bit(q->cntxt_id - adap->sge.egr_start,
650 adap->sge.starving_fl);
827 to = (u8 *)end > (u8 *)q->stat ? buf : sgl->sge;
[all...]
/drivers/infiniband/hw/ipath/
H A Dipath_keys.c113 * @sge: SGE to check
122 struct ib_sge *sge, int acc)
134 if (sge->lkey == 0) {
143 isge->vaddr = (void *) sge->addr;
144 isge->length = sge->length;
145 isge->sge_length = sge->length;
149 mr = rkt->table[(sge->lkey >> (32 - ib_ipath_lkey_table_size))];
150 if (unlikely(mr == NULL || mr->lkey != sge->lkey ||
156 off = sge->addr - mr->user_base;
157 if (unlikely(sge
121 ipath_lkey_ok(struct ipath_qp *qp, struct ipath_sge *isge, struct ib_sge *sge, int acc) argument
204 struct ipath_sge *sge = &ss->sge; local
[all...]
H A Dipath_verbs.c173 struct ipath_sge *sge = &ss->sge; local
176 u32 len = sge->length;
180 if (len > sge->sge_length)
181 len = sge->sge_length;
183 memcpy(sge->vaddr, data, len);
184 sge->vaddr += len;
185 sge->length -= len;
186 sge->sge_length -= len;
187 if (sge
213 struct ipath_sge *sge = &ss->sge; local
252 struct ipath_sge sge = ss->sge; local
298 struct ipath_sge *sge = &ss->sge; local
782 struct ipath_sge *sge = &ss->sge; local
[all...]
H A Dipath_ruc.c134 if (!ipath_lkey_ok(qp, j ? &ss->sg_list[j - 1] : &ss->sge,
265 struct ipath_sge *sge; local
328 sqp->s_sge.sge = wqe->sg_list[0];
370 qp->r_sge.sge = wqe->sg_list[0];
385 maddr = (atomic64_t *) qp->r_sge.sge.vaddr;
387 *(u64 *) sqp->s_sge.sge.vaddr =
390 (u64) cmpxchg((u64 *) qp->r_sge.sge.vaddr,
399 sge = &sqp->s_sge.sge;
403 if (len > sge
[all...]
H A Dipath_ud.c59 struct ipath_sge *sge; local
184 sge = swqe->sg_list;
186 u32 len = sge->length;
190 if (len > sge->sge_length)
191 len = sge->sge_length;
193 ipath_copy_sge(&rsge, sge->vaddr, len);
194 sge->vaddr += len;
195 sge->length -= len;
196 sge->sge_length -= len;
197 if (sge
[all...]
H A Dipath_sdma.c670 struct ipath_sge *sge; local
729 sge = &ss->sge;
735 if (len > sge->length)
736 len = sge->length;
737 if (len > sge->sge_length)
738 len = sge->sge_length;
741 addr = dma_map_single(&dd->pcidev->dev, sge->vaddr, dw << 2,
759 sge->vaddr += len;
760 sge
[all...]
/drivers/scsi/esas2r/
H A Desas2r_io.c222 if (unlikely(sgc->sge.a64.curr > sgc->sge.a64.limit)) {
237 sgelen = (u8)((u8 *)sgc->sge.a64.curr
238 - (u8 *)sgc->sge.a64.last);
244 memcpy(sgl->virt_addr, sgc->sge.a64.last, sgelen);
247 sgc->sge.a64.curr =
252 sgc->sge.a64.limit =
257 sgc->sge.a64.last->length = cpu_to_le32(
259 sgc->sge.a64.last->address =
268 if (sgc->sge
[all...]
H A Desas2r_vda.c119 firstsg = rq->vrq->flash.data.file.sge;
130 firstsg = rq->vrq->cli.sge;
194 firstsg = rq->vrq->mgt.sge;
363 data.sge);
394 struct atto_vda_mgmt_req, sge);
396 vrq->sge[0].length = cpu_to_le32(SGE_LAST | length);
397 vrq->sge[0].address = cpu_to_le64(
432 (u8)offsetof(struct atto_vda_ae_req, sge);
433 vrq->sge[0].length = cpu_to_le32(SGE_LAST | vrq->length);
434 vrq->sge[
[all...]
/drivers/infiniband/hw/qib/
H A Dqib_keys.c141 * @sge: SGE to check
152 struct qib_sge *isge, struct ib_sge *sge, int acc)
163 if (sge->lkey == 0) {
176 isge->vaddr = (void *) sge->addr;
177 isge->length = sge->length;
178 isge->sge_length = sge->length;
184 rkt->table[(sge->lkey >> (32 - ib_qib_lkey_table_size))]);
185 if (unlikely(!mr || mr->lkey != sge->lkey || mr->pd != &pd->ibpd))
188 off = sge->addr - mr->user_base;
189 if (unlikely(sge
151 qib_lkey_ok(struct qib_lkey_table *rkt, struct qib_pd *pd, struct qib_sge *isge, struct ib_sge *sge, int acc) argument
248 qib_rkey_ok(struct qib_qp *qp, struct qib_sge *sge, u32 len, u64 vaddr, u32 rkey, int acc) argument
[all...]
H A Dqib_verbs.c170 struct qib_sge *sge = &ss->sge; local
173 u32 len = sge->length;
177 if (len > sge->sge_length)
178 len = sge->sge_length;
180 memcpy(sge->vaddr, data, len);
181 sge->vaddr += len;
182 sge->length -= len;
183 sge->sge_length -= len;
184 if (sge
212 struct qib_sge *sge = &ss->sge; local
253 struct qib_sge sge = ss->sge; local
298 struct qib_sge *sge = &ss->sge; local
437 struct qib_sge *sge = &wqe->sg_list[--j]; local
736 struct qib_sge *sge = &ss->sge; local
[all...]
H A Dqib_ud.c57 struct qib_sge *sge; local
173 ssge.sge = *swqe->sg_list;
175 sge = &ssge.sge;
177 u32 len = sge->length;
181 if (len > sge->sge_length)
182 len = sge->sge_length;
184 qib_copy_sge(&qp->r_sge, sge->vaddr, len, 1);
185 sge->vaddr += len;
186 sge
[all...]
H A Dqib_ruc.c98 if (!qib_lkey_ok(rkt, pd, j ? &ss->sg_list[j - 1] : &ss->sge,
111 struct qib_sge *sge = --j ? &ss->sg_list[j - 1] : &ss->sge; local
113 qib_put_mr(sge->mr);
360 struct qib_sge *sge; local
427 sqp->s_sge.sge = wqe->sg_list[0];
460 if (unlikely(!qib_rkey_ok(qp, &qp->r_sge.sge, wqe->length,
473 if (unlikely(!qib_rkey_ok(qp, &sqp->s_sge.sge, wqe->length,
481 qp->r_sge.sge = wqe->sg_list[0];
491 if (unlikely(!qib_rkey_ok(qp, &qp->r_sge.sge, sizeo
780 struct qib_sge *sge = &wqe->sg_list[i]; local
[all...]
H A Dqib_sdma.c538 struct qib_sge *sge; local
586 sge = &ss->sge;
592 if (len > sge->length)
593 len = sge->length;
594 if (len > sge->sge_length)
595 len = sge->sge_length;
598 addr = dma_map_single(&ppd->dd->pcidev->dev, sge->vaddr,
617 sge->vaddr += len;
618 sge
[all...]
/drivers/net/ethernet/chelsio/cxgb3/
H A DMakefile8 xgmac.o sge.o l2t.o cxgb3_offload.o aq100x.o
/drivers/scsi/csiostor/
H A Dcsio_wr.c57 csio_get_flbuf_size(struct csio_hw *hw, struct csio_sge *sge, uint32_t reg) argument
59 sge->sge_fl_buf_size[reg] = csio_rd_reg32(hw, SGE_FL_BUFFER_SIZE0 +
65 csio_wr_fl_bufsz(struct csio_sge *sge, struct csio_dma_buf *buf) argument
67 return sge->sge_fl_buf_size[buf->paddr & 0xF];
74 return (hw->wrm.sge.sge_control & EGRSTATUSPAGESIZE(1)) ? 128 : 64;
117 struct csio_sge *sge = &wrm->sge; local
125 buf->len = sge->sge_fl_buf_size[sreg];
1044 struct csio_sge *sge = &wrm->sge; local
1307 struct csio_sge *sge = &wrm->sge; local
1359 struct csio_sge *sge = &wrm->sge; local
1381 struct csio_sge *sge = &wrm->sge; local
1450 struct csio_sge *sge = &wrm->sge; local
[all...]

Completed in 276 milliseconds

1234