/drivers/infiniband/hw/hfi1/ |
D | sdma.c | 201 struct sdma_engine *sde, 204 struct sdma_engine *sde, 206 static void dump_sdma_state(struct sdma_engine *sde); 207 static void sdma_make_progress(struct sdma_engine *sde, u64 status); 208 static void sdma_desc_avail(struct sdma_engine *sde, uint avail); 209 static void sdma_flush_descq(struct sdma_engine *sde); 245 struct sdma_engine *sde, in write_sde_csr() argument 249 write_kctxt_csr(sde->dd, sde->this_idx, offset0, value); in write_sde_csr() 253 struct sdma_engine *sde, in read_sde_csr() argument 256 return read_kctxt_csr(sde->dd, sde->this_idx, offset0); in read_sde_csr() [all …]
|
D | vnic_sdma.c | 49 static noinline int build_vnic_ulp_payload(struct sdma_engine *sde, in build_vnic_ulp_payload() argument 55 sde->dd, in build_vnic_ulp_payload() 66 ret = sdma_txadd_page(sde->dd, in build_vnic_ulp_payload() 77 ret = sdma_txadd_kvaddr(sde->dd, &tx->txreq, in build_vnic_ulp_payload() 85 static int build_vnic_tx_desc(struct sdma_engine *sde, in build_vnic_tx_desc() argument 107 sde->dd, in build_vnic_tx_desc() 115 ret = build_vnic_ulp_payload(sde, tx); in build_vnic_tx_desc() 131 struct sdma_engine *sde = vnic_sdma->sde; in hfi1_vnic_send_dma() local 138 if (unlikely(!sde || !sdma_running(sde))) in hfi1_vnic_send_dma() 151 ret = build_vnic_tx_desc(sde, tx, pbc); in hfi1_vnic_send_dma() [all …]
|
D | trace_tx.h | 110 TP_PROTO(struct sdma_engine *sde, 115 TP_ARGS(sde, desc0, desc1, e, descp), 116 TP_STRUCT__entry(DD_DEV_ENTRY(sde->dd) 123 TP_fast_assign(DD_DEV_ASSIGN(sde->dd); 126 __entry->idx = sde->this_idx; 304 TP_PROTO(struct sdma_engine *sde, u64 status), 305 TP_ARGS(sde, status), 306 TP_STRUCT__entry(DD_DEV_ENTRY(sde->dd) 310 TP_fast_assign(DD_DEV_ASSIGN(sde->dd); 312 __entry->idx = sde->this_idx; [all …]
|
D | sdma.h | 391 static inline int sdma_empty(struct sdma_engine *sde) in sdma_empty() argument 393 return sde->descq_tail == sde->descq_head; in sdma_empty() 396 static inline u16 sdma_descq_freecnt(struct sdma_engine *sde) in sdma_descq_freecnt() argument 398 return sde->descq_cnt - in sdma_descq_freecnt() 399 (sde->descq_tail - in sdma_descq_freecnt() 400 READ_ONCE(sde->descq_head)) - 1; in sdma_descq_freecnt() 403 static inline u16 sdma_descq_inprocess(struct sdma_engine *sde) in sdma_descq_inprocess() argument 405 return sde->descq_cnt - sdma_descq_freecnt(sde); in sdma_descq_inprocess() 828 int sdma_send_txreq(struct sdma_engine *sde, 832 int sdma_send_txlist(struct sdma_engine *sde, [all …]
|
D | msix.c | 185 int msix_request_sdma_irq(struct sdma_engine *sde) in msix_request_sdma_irq() argument 191 sde->dd->unit, sde->this_idx); in msix_request_sdma_irq() 192 nr = msix_request_irq(sde->dd, sde, sdma_interrupt, NULL, in msix_request_sdma_irq() 196 sde->msix_intr = nr; in msix_request_sdma_irq() 197 remap_sdma_interrupts(sde->dd, sde->this_idx, nr); in msix_request_sdma_irq() 259 struct sdma_engine *sde = &dd->per_sdma[i]; in msix_request_irqs() local 261 ret = msix_request_sdma_irq(sde); in msix_request_irqs() 264 enable_sdma_srcs(sde->dd, i); in msix_request_irqs()
|
D | sysfs.c | 571 ssize_t (*show)(struct sdma_engine *sde, char *buf); 572 ssize_t (*store)(struct sdma_engine *sde, const char *buf, size_t cnt); 579 struct sdma_engine *sde = in sde_show() local 585 return sde_attr->show(sde, buf); in sde_show() 593 struct sdma_engine *sde = in sde_store() local 602 return sde_attr->store(sde, buf, count); in sde_store() 618 static ssize_t sde_show_cpu_to_sde_map(struct sdma_engine *sde, char *buf) in sde_show_cpu_to_sde_map() argument 620 return sdma_get_cpu_to_sde_map(sde, buf); in sde_show_cpu_to_sde_map() 623 static ssize_t sde_store_cpu_to_sde_map(struct sdma_engine *sde, in sde_store_cpu_to_sde_map() argument 626 return sdma_set_cpu_to_sde_map(sde, buf, count); in sde_store_cpu_to_sde_map() [all …]
|
D | qp.c | 26 struct sdma_engine *sde, 437 struct sdma_engine *sde, in iowait_sleep() argument 461 write_seqlock(&sde->waitlock); in iowait_sleep() 462 if (sdma_progress(sde, seq, stx)) in iowait_sleep() 472 &sde->dmawait); in iowait_sleep() 473 priv->s_iowait.lock = &sde->waitlock; in iowait_sleep() 477 write_sequnlock(&sde->waitlock); in iowait_sleep() 487 write_sequnlock(&sde->waitlock); in iowait_sleep() 542 struct sdma_engine *sde; in qp_to_sdma_engine() local 552 sde = sdma_select_engine_sc(dd, qp->ibqp.qp_num >> dd->qos_shift, sc5); in qp_to_sdma_engine() [all …]
|
D | ipoib_tx.c | 126 tx->txq->sde->this_idx); in hfi1_ipoib_free_tx() 389 txq->sde = in hfi1_ipoib_send_dma_common() 410 ret = sdma_send_txlist(txq->sde, in hfi1_ipoib_submit_tx_list() 444 ret = sdma_send_txreq(txq->sde, in hfi1_ipoib_submit_tx() 613 static int hfi1_ipoib_sdma_sleep(struct sdma_engine *sde, in hfi1_ipoib_sdma_sleep() argument 622 write_seqlock(&sde->waitlock); in hfi1_ipoib_sdma_sleep() 625 if (sdma_progress(sde, seq, txreq)) { in hfi1_ipoib_sdma_sleep() 626 write_sequnlock(&sde->waitlock); in hfi1_ipoib_sdma_sleep() 634 struct hfi1_ibport *ibp = &sde->ppd->ibport_data; in hfi1_ipoib_sdma_sleep() 641 iowait_queue(pkts_sent, wait->iow, &sde->dmawait); in hfi1_ipoib_sdma_sleep() [all …]
|
D | user_sdma.c | 57 struct sdma_engine *sde, 65 struct sdma_engine *sde, in defer_packet_queue() argument 74 write_seqlock(&sde->waitlock); in defer_packet_queue() 75 trace_hfi1_usdma_defer(pq, sde, &pq->busy); in defer_packet_queue() 76 if (sdma_progress(sde, seq, txreq)) in defer_packet_queue() 85 pq->busy.lock = &sde->waitlock; in defer_packet_queue() 87 iowait_queue(pkts_sent, &pq->busy, &sde->dmawait); in defer_packet_queue() 89 write_sequnlock(&sde->waitlock); in defer_packet_queue() 92 write_sequnlock(&sde->waitlock); in defer_packet_queue() 514 req->sde = sdma_select_user_engine(dd, selector, vl); in hfi1_user_sdma_process_request() [all …]
|
D | affinity.c | 741 struct sdma_engine *sde = msix->arg; in hfi1_update_sdma_affinity() local 742 struct hfi1_devdata *dd = sde->dd; in hfi1_update_sdma_affinity() 747 if (cpu > num_online_cpus() || cpu == sde->cpu) in hfi1_update_sdma_affinity() 755 old_cpu = sde->cpu; in hfi1_update_sdma_affinity() 756 sde->cpu = cpu; in hfi1_update_sdma_affinity() 761 sde->this_idx, cpu); in hfi1_update_sdma_affinity() 839 struct sdma_engine *sde = NULL; in get_irq_affinity() local 851 sde = (struct sdma_engine *)msix->arg; in get_irq_affinity() 852 scnprintf(extra, 64, "engine %u", sde->this_idx); in get_irq_affinity() 902 sde->cpu = cpu; in get_irq_affinity()
|
D | verbs_txreq.h | 23 struct sdma_engine *sde; member 50 tx->sde = priv->s_sde; in get_txreq()
|
D | msix.h | 17 int msix_request_sdma_irq(struct sdma_engine *sde);
|
D | iowait.h | 101 struct sdma_engine *sde, 133 int (*sleep)(struct sdma_engine *sde,
|
D | verbs.c | 655 struct sdma_engine *sde, in build_verbs_ulp_payload() argument 670 sde->dd, in build_verbs_ulp_payload() 719 struct sdma_engine *sde, in build_verbs_tx_desc() argument 753 sde->dd, in build_verbs_tx_desc() 774 ret = build_verbs_ulp_payload(sde, length, tx); in build_verbs_tx_desc() 781 ret = sdma_txadd_daddr(sde->dd, &tx->txreq, sde->dd->sdma_pad_phys, in build_verbs_tx_desc() 848 ret = build_verbs_tx_desc(tx->sde, len, tx, ahg_info, pbc); in hfi1_verbs_send_dma() 852 ret = sdma_send_txreq(tx->sde, ps->wait, &tx->txreq, ps->pkts_sent); in hfi1_verbs_send_dma()
|
D | vnic.h | 44 struct sdma_engine *sde; member
|
D | vnic_main.c | 284 struct sdma_engine *sde; in hfi1_vnic_select_queue() local 287 sde = sdma_select_engine_vl(vinfo->dd, mdata->entropy, mdata->vl); in hfi1_vnic_select_queue() 288 return sde->this_idx; in hfi1_vnic_select_queue()
|
D | ipoib.h | 111 struct sdma_engine *sde; member
|
D | iowait.c | 44 int (*sleep)(struct sdma_engine *sde, in iowait_init() argument
|
D | user_sdma.h | 134 struct sdma_engine *sde; member
|
D | chip.c | 6008 struct sdma_engine *sde; in handle_sdma_eng_err() local 6011 sde = &dd->per_sdma[source]; in handle_sdma_eng_err() 6013 dd_dev_err(sde->dd, "CONFIG SDMA(%u) %s:%d %s()\n", sde->this_idx, in handle_sdma_eng_err() 6015 dd_dev_err(sde->dd, "CONFIG SDMA(%u) source: %u status 0x%llx\n", in handle_sdma_eng_err() 6016 sde->this_idx, source, (unsigned long long)status); in handle_sdma_eng_err() 6018 sde->err_cnt++; in handle_sdma_eng_err() 6019 sdma_engine_error(sde, status); in handle_sdma_eng_err() 6038 struct sdma_engine *sde = &dd->per_sdma[source]; in is_sdma_eng_err_int() local 6040 dd_dev_err(dd, "CONFIG SDMA(%u) %s:%d %s()\n", sde->this_idx, in is_sdma_eng_err_int() 6042 dd_dev_err(dd, "CONFIG SDMA(%u) source: %u\n", sde->this_idx, in is_sdma_eng_err_int() [all …]
|
D | uc.c | 229 ps->s_txreq->sde = priv->s_sde; in hfi1_make_uc_req()
|
D | ud.c | 522 ps->s_txreq->sde = priv->s_sde; in hfi1_make_ud_req()
|
D | rc.c | 353 ps->s_txreq->sde = qpriv->s_sde; in make_rc_ack() 1147 ps->s_txreq->sde = priv->s_sde; in hfi1_make_rc_req()
|
/drivers/net/fddi/skfp/ |
D | smt.c | 74 static void smt_fill_sde(struct s_smc *smc, struct smt_p_sde *sde); 938 smt_fill_sde(smc,&nif->sde) ; /* set station descriptor */ in smt_send_nif() 1030 smt_fill_sde(smc,&sif->sde) ; /* set station descriptor */ in smt_send_sif_config() 1157 static void smt_fill_sde(struct s_smc *smc, struct smt_p_sde *sde) in smt_fill_sde() argument 1159 SMTSETPARA(sde,SMT_P_SDE) ; in smt_fill_sde() 1160 sde->sde_non_master = smc->mib.fddiSMTNonMaster_Ct ; in smt_fill_sde() 1161 sde->sde_master = smc->mib.fddiSMTMaster_Ct ; in smt_fill_sde() 1162 sde->sde_mac_count = NUMMACS ; /* only 1 MAC */ in smt_fill_sde() 1164 sde->sde_type = SMT_SDE_CONCENTRATOR ; in smt_fill_sde() 1166 sde->sde_type = SMT_SDE_STATION ; in smt_fill_sde()
|
/drivers/net/fddi/skfp/h/ |
D | smt.h | 727 struct smt_p_sde sde ; /* station descriptor */ member 740 struct smt_p_sde sde ; /* station descriptor */ member
|