/drivers/infiniband/hw/qib/ |
D | qib_file_ops.c | 95 struct qib_ctxtdata *rcd = ctxt_fp(fp); in qib_get_base_info() local 98 struct qib_devdata *dd = rcd->dd; in qib_get_base_info() 99 struct qib_pportdata *ppd = rcd->ppd; in qib_get_base_info() 104 subctxt_cnt = rcd->subctxt_cnt; in qib_get_base_info() 129 ret = dd->f_get_base_info(rcd, kinfo); in qib_get_base_info() 135 kinfo->spi_tidegrcnt = rcd->rcvegrcnt; in qib_get_base_info() 141 rcd->rcvegrbuf_chunks * rcd->rcvegrbuf_size; in qib_get_base_info() 142 kinfo->spi_rcv_egrperchunk = rcd->rcvegrbufs_perchunk; in qib_get_base_info() 144 rcd->rcvegrbuf_chunks; in qib_get_base_info() 178 kinfo->spi_rcvhdr_base = (u64) rcd->rcvhdrq_phys; in qib_get_base_info() [all …]
|
D | qib_init.c | 129 dd->rcd = kzalloc(sizeof(*dd->rcd) * dd->ctxtcnt, GFP_KERNEL); in qib_create_ctxts() 130 if (!dd->rcd) { in qib_create_ctxts() 140 struct qib_ctxtdata *rcd; in qib_create_ctxts() local 146 rcd = qib_create_ctxtdata(ppd, i); in qib_create_ctxts() 147 if (!rcd) { in qib_create_ctxts() 153 rcd->pkeys[0] = QIB_DEFAULT_P_KEY; in qib_create_ctxts() 154 rcd->seq_cnt = 1; in qib_create_ctxts() 167 struct qib_ctxtdata *rcd; in qib_create_ctxtdata() local 169 rcd = kzalloc(sizeof(*rcd), GFP_KERNEL); in qib_create_ctxtdata() 170 if (rcd) { in qib_create_ctxtdata() [all …]
|
D | qib_tx.c | 80 int qib_disarm_piobufs_ifneeded(struct qib_ctxtdata *rcd) in qib_disarm_piobufs_ifneeded() argument 82 struct qib_devdata *dd = rcd->dd; in qib_disarm_piobufs_ifneeded() 87 last = rcd->pio_base + rcd->piocnt; in qib_disarm_piobufs_ifneeded() 93 if (rcd->user_event_mask) { in qib_disarm_piobufs_ifneeded() 98 clear_bit(_QIB_EVENT_DISARM_BUFS_BIT, &rcd->user_event_mask[0]); in qib_disarm_piobufs_ifneeded() 99 for (i = 1; i < rcd->subctxt_cnt; i++) in qib_disarm_piobufs_ifneeded() 101 &rcd->user_event_mask[i]); in qib_disarm_piobufs_ifneeded() 104 for (i = rcd->pio_base; i < last; i++) { in qib_disarm_piobufs_ifneeded() 107 dd->f_sendctrl(rcd->ppd, QIB_SENDCTRL_DISARM_BUF(i)); in qib_disarm_piobufs_ifneeded() 134 struct qib_ctxtdata *rcd; in find_ctxt() local [all …]
|
D | qib_driver.c | 284 static inline void *qib_get_egrbuf(const struct qib_ctxtdata *rcd, u32 etail) in qib_get_egrbuf() argument 286 const u32 chunk = etail >> rcd->rcvegrbufs_perchunk_shift; in qib_get_egrbuf() 287 const u32 idx = etail & ((u32)rcd->rcvegrbufs_perchunk - 1); in qib_get_egrbuf() 289 return rcd->rcvegrbuf[chunk] + (idx << rcd->dd->rcvegrbufsize_shift); in qib_get_egrbuf() 296 static u32 qib_rcv_hdrerr(struct qib_ctxtdata *rcd, struct qib_pportdata *ppd, in qib_rcv_hdrerr() argument 405 &rcd->qp_wait_list); in qib_rcv_hdrerr() 445 u32 qib_kreceive(struct qib_ctxtdata *rcd, u32 *llic, u32 *npkts) in qib_kreceive() argument 447 struct qib_devdata *dd = rcd->dd; in qib_kreceive() 448 struct qib_pportdata *ppd = rcd->ppd; in qib_kreceive() 460 l = rcd->head; in qib_kreceive() [all …]
|
D | qib_intr.c | 192 struct qib_ctxtdata *rcd; in qib_handle_urcv() local 197 for (i = dd->first_user_ctxt; dd->rcd && i < dd->cfgctxts; i++) { in qib_handle_urcv() 200 rcd = dd->rcd[i]; in qib_handle_urcv() 201 if (!rcd || !rcd->cnt) in qib_handle_urcv() 204 if (test_and_clear_bit(QIB_CTXT_WAITING_RCV, &rcd->flag)) { in qib_handle_urcv() 205 wake_up_interruptible(&rcd->wait); in qib_handle_urcv() 206 dd->f_rcvctrl(rcd->ppd, QIB_RCVCTRL_INTRAVAIL_DIS, in qib_handle_urcv() 207 rcd->ctxt); in qib_handle_urcv() 209 &rcd->flag)) { in qib_handle_urcv() 210 rcd->urgent++; in qib_handle_urcv() [all …]
|
D | qib.h | 725 struct qib_ctxtdata **rcd; /* Receive Context Data */ member 1101 struct qib_ctxtdata *rcd; member 1176 (((struct qib_filedata *)(fp)->private_data)->rcd) 1352 static inline void qib_clear_rcvhdrtail(const struct qib_ctxtdata *rcd) in qib_clear_rcvhdrtail() argument 1354 *((u64 *) rcd->rcvhdrtail_kvaddr) = 0ULL; in qib_clear_rcvhdrtail() 1357 static inline u32 qib_get_rcvhdrtail(const struct qib_ctxtdata *rcd) in qib_get_rcvhdrtail() argument 1364 *((volatile __le64 *)rcd->rcvhdrtail_kvaddr)); /* DMA'ed */ in qib_get_rcvhdrtail() 1367 static inline u32 qib_get_hdrqtail(const struct qib_ctxtdata *rcd) in qib_get_hdrqtail() argument 1369 const struct qib_devdata *dd = rcd->dd; in qib_get_hdrqtail() 1376 rhf_addr = (__le32 *) rcd->rcvhdrq + in qib_get_hdrqtail() [all …]
|
D | qib_iba7322.c | 68 struct qib_ctxtdata *rcd); 2761 if (istat & INT_MASK_P(Err, 0) && dd->rcd[0]) in unlikely_7322_intr() 2762 handle_7322_p_errors(dd->rcd[0]->ppd); in unlikely_7322_intr() 2763 if (istat & INT_MASK_P(Err, 1) && dd->rcd[1]) in unlikely_7322_intr() 2764 handle_7322_p_errors(dd->rcd[1]->ppd); in unlikely_7322_intr() 2771 static void adjust_rcv_timeout(struct qib_ctxtdata *rcd, int npkts) in adjust_rcv_timeout() argument 2773 struct qib_devdata *dd = rcd->dd; in adjust_rcv_timeout() 2774 u32 timeout = dd->cspec->rcvavail_timeout[rcd->ctxt]; in adjust_rcv_timeout() 2787 dd->cspec->rcvavail_timeout[rcd->ctxt] = timeout; in adjust_rcv_timeout() 2788 qib_write_kreg(dd, kr_rcvavailtimeout + rcd->ctxt, timeout); in adjust_rcv_timeout() [all …]
|
D | qib_iba7220.c | 1995 qib_kreceive(dd->rcd[i], NULL, NULL); in qib_7220intr() 2222 struct qib_ctxtdata *rcd) in qib_7220_clear_tids() argument 2229 if (!dd->kregbase || !rcd) in qib_7220_clear_tids() 2232 ctxt = rcd->ctxt; in qib_7220_clear_tids() 2247 rcd->rcvegr_tid_base * sizeof(*tidbase)); in qib_7220_clear_tids() 2249 for (i = 0; i < rcd->rcvegrcnt; i++) in qib_7220_clear_tids() 2277 static int qib_7220_get_base_info(struct qib_ctxtdata *rcd, in qib_7220_get_base_info() argument 2283 if (rcd->dd->flags & QIB_USE_SPCL_TRIG) in qib_7220_get_base_info() 2732 static void qib_update_7220_usrhead(struct qib_ctxtdata *rcd, u64 hd, in qib_update_7220_usrhead() argument 2736 qib_write_ureg(rcd->dd, ur_rcvegrindexhead, egrhd, rcd->ctxt); in qib_update_7220_usrhead() [all …]
|
D | qib_iba6120.c | 1667 crcs += qib_kreceive(dd->rcd[i], in qib_6120intr() 1979 struct qib_ctxtdata *rcd) in qib_6120_clear_tids() argument 1986 if (!dd->kregbase || !rcd) in qib_6120_clear_tids() 1989 ctxt = rcd->ctxt; in qib_6120_clear_tids() 2005 rcd->rcvegr_tid_base * sizeof(*tidbase)); in qib_6120_clear_tids() 2007 for (i = 0; i < rcd->rcvegrcnt; i++) in qib_6120_clear_tids() 2052 static int qib_6120_get_base_info(struct qib_ctxtdata *rcd, in qib_6120_get_base_info() argument 2084 static void qib_update_6120_usrhead(struct qib_ctxtdata *rcd, u64 hd, in qib_update_6120_usrhead() argument 2088 qib_write_ureg(rcd->dd, ur_rcvegrindexhead, egrhd, rcd->ctxt); in qib_update_6120_usrhead() 2090 qib_write_ureg(rcd->dd, ur_rcvhdrhead, hd, rcd->ctxt); in qib_update_6120_usrhead() [all …]
|
D | qib_verbs.c | 559 static void qib_qp_rcv(struct qib_ctxtdata *rcd, struct qib_ib_header *hdr, in qib_qp_rcv() argument 562 struct qib_ibport *ibp = &rcd->ppd->ibport_data; in qib_qp_rcv() 583 qib_rc_rcv(rcd, hdr, has_grh, data, tlen, qp); in qib_qp_rcv() 608 void qib_ib_rcv(struct qib_ctxtdata *rcd, void *rhdr, void *data, u32 tlen) in qib_ib_rcv() argument 610 struct qib_pportdata *ppd = rcd->ppd; in qib_ib_rcv() 665 qib_qp_rcv(rcd, hdr, 1, data, tlen, p->qp); in qib_ib_rcv() 673 if (rcd->lookaside_qp) { in qib_ib_rcv() 674 if (rcd->lookaside_qpn != qp_num) { in qib_ib_rcv() 676 &rcd->lookaside_qp->refcount)) in qib_ib_rcv() 678 &rcd->lookaside_qp->wait); in qib_ib_rcv() [all …]
|
D | qib_rc.c | 1128 u64 val, struct qib_ctxtdata *rcd) in do_rc_ack() argument 1194 &rcd->qp_wait_list); in do_rc_ack() 1351 struct qib_ctxtdata *rcd) in rdma_seq_err() argument 1377 list_add_tail(&qp->rspwait, &rcd->qp_wait_list); in rdma_seq_err() 1403 struct qib_ctxtdata *rcd) in qib_rc_rcv_resp() argument 1484 if (!do_rc_ack(qp, aeth, psn, opcode, val, rcd) || in qib_rc_rcv_resp() 1538 if (!do_rc_ack(qp, aeth, psn, opcode, 0, rcd)) in qib_rc_rcv_resp() 1582 OP(RDMA_READ_RESPONSE_LAST), 0, rcd); in qib_rc_rcv_resp() 1591 rdma_seq_err(qp, ibp, psn, rcd); in qib_rc_rcv_resp() 1628 struct qib_ctxtdata *rcd) in qib_rc_rcv_error() argument [all …]
|
D | qib_mad.c | 586 struct qib_ctxtdata *rcd = dd->rcd[ppd->hw_pidx]; in get_pkeys() local 588 memcpy(pkeys, rcd->pkeys, sizeof(rcd->pkeys)); in get_pkeys() 989 struct qib_ctxtdata *rcd; in set_pkeys() local 1000 rcd = dd->rcd[ppd->hw_pidx]; in set_pkeys() 1002 for (i = 0; i < ARRAY_SIZE(rcd->pkeys); i++) { in set_pkeys() 1004 u16 okey = rcd->pkeys[i]; in set_pkeys() 1022 rcd->pkeys[i] = key; in set_pkeys()
|
D | qib_user_sdma.c | 806 int qib_user_sdma_writev(struct qib_ctxtdata *rcd, in qib_user_sdma_writev() argument 811 struct qib_devdata *dd = rcd->dd; in qib_user_sdma_writev() 812 struct qib_pportdata *ppd = rcd->ppd; in qib_user_sdma_writev()
|
D | qib_ud.c | 397 for (i = 0; i < ARRAY_SIZE(dd->rcd[ctxt]->pkeys); ++i) in qib_lookup_pkey() 398 if ((dd->rcd[ctxt]->pkeys[i] & 0x7fff) == pkey) in qib_lookup_pkey()
|
D | qib_verbs.h | 932 void qib_rc_rcv(struct qib_ctxtdata *rcd, struct qib_ib_header *hdr,
|
/drivers/acpi/apei/ |
D | erst.c | 997 struct cper_pstore_record *rcd; in erst_reader() local 998 size_t rcd_len = sizeof(*rcd) + erst_info.bufsize; in erst_reader() 1003 rcd = kmalloc(rcd_len, GFP_KERNEL); in erst_reader() 1004 if (!rcd) { in erst_reader() 1019 len = erst_read(record_id, &rcd->hdr, rcd_len); in erst_reader() 1023 else if (len < sizeof(*rcd)) { in erst_reader() 1027 if (uuid_le_cmp(rcd->hdr.creator_id, CPER_CREATOR_PSTORE) != 0) in erst_reader() 1035 memcpy(*buf, rcd->data, len - sizeof(*rcd)); in erst_reader() 1037 if (uuid_le_cmp(rcd->sec_hdr.section_type, in erst_reader() 1040 else if (uuid_le_cmp(rcd->sec_hdr.section_type, in erst_reader() [all …]
|
D | erst-dbg.c | 168 struct cper_record_header *rcd; in erst_dbg_write() local 195 rcd = erst_dbg_buf; in erst_dbg_write() 197 if (rcd->record_length != usize) in erst_dbg_write()
|
/drivers/net/vmxnet3/ |
D | vmxnet3_drv.c | 290 # define vmxnet3_getRxComp(dstrcd, rcd, tmp) do { \ argument 292 vmxnet3_RxCompToCPU((rcd), (tmp)); \ 305 # define vmxnet3_getRxComp(dstrcd, rcd, tmp) (dstrcd) = (rcd) argument 634 vmxnet3_append_frag(struct sk_buff *skb, struct Vmxnet3_RxCompDesc *rcd, in vmxnet3_append_frag() argument 644 skb_frag_size_set(frag, rcd->len); in vmxnet3_append_frag() 645 skb->data_len += rcd->len; in vmxnet3_append_frag() 1096 if (!gdesc->rcd.cnc && adapter->netdev->features & NETIF_F_RXCSUM) { in vmxnet3_rx_csum() 1101 BUG_ON(!(gdesc->rcd.tcp || gdesc->rcd.udp)); in vmxnet3_rx_csum() 1102 BUG_ON(!(gdesc->rcd.v4 || gdesc->rcd.v6)); in vmxnet3_rx_csum() 1103 BUG_ON(gdesc->rcd.frg); in vmxnet3_rx_csum() [all …]
|
D | vmxnet3_defs.h | 312 struct Vmxnet3_RxCompDesc rcd; member
|
/drivers/cpufreq/ |
D | sa1110-cpufreq.c | 133 static inline void set_mdcas(u_int *mdcas, int delayed, u_int rcd) in set_mdcas() argument 137 rcd = 2 * rcd - 1; in set_mdcas() 138 shift = delayed + 1 + rcd; in set_mdcas() 140 mdcas[0] = (1 << rcd) - 1; in set_mdcas()
|
/drivers/scsi/ |
D | sd.c | 138 int i, ct = -1, rcd, wce, sp; in sd_store_cache_type() local 171 rcd = ct & 0x01 ? 1 : 0; in sd_store_cache_type() 176 sdkp->RCD = rcd; in sd_store_cache_type() 188 buffer_data[2] |= wce << 2 | rcd; in sd_store_cache_type()
|