• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/infiniband/hw/ipath/

Lines Matching refs:dd

83 int ipath_diag_add(struct ipath_devdata *dd)
94 ipath_dev_err(dd, "Couldn't create ipath_diagpkt "
100 snprintf(name, sizeof(name), "ipath_diag%d", dd->ipath_unit);
102 ret = ipath_cdev_init(IPATH_DIAG_MINOR_BASE + dd->ipath_unit, name,
103 &diag_file_ops, &dd->diag_cdev,
104 &dd->diag_class_dev);
106 ipath_dev_err(dd, "Couldn't create %s device: %d",
113 void ipath_diag_remove(struct ipath_devdata *dd)
118 ipath_cdev_cleanup(&dd->diag_cdev, &dd->diag_class_dev);
123 * @dd: the infinipath device
134 static int ipath_read_umem64(struct ipath_devdata *dd, void __user *uaddr,
142 if (reg_addr < dd->ipath_kregbase || reg_end > dd->ipath_kregend) {
162 * @dd: the infinipath device
171 static int ipath_write_umem64(struct ipath_devdata *dd, void __iomem *caddr,
179 if (reg_addr < dd->ipath_kregbase || reg_end > dd->ipath_kregend) {
201 * @dd: the infinipath device
209 static int ipath_read_umem32(struct ipath_devdata *dd, void __user *uaddr,
216 if (reg_addr < (u32 __iomem *) dd->ipath_kregbase ||
217 reg_end > (u32 __iomem *) dd->ipath_kregend) {
240 * @dd: the infinipath device
249 static int ipath_write_umem32(struct ipath_devdata *dd, void __iomem *caddr,
256 if (reg_addr < (u32 __iomem *) dd->ipath_kregbase ||
257 reg_end > (u32 __iomem *) dd->ipath_kregend) {
280 struct ipath_devdata *dd;
290 dd = ipath_lookup(unit);
292 if (dd == NULL || !(dd->ipath_flags & IPATH_PRESENT) ||
293 !dd->ipath_kregbase) {
298 fp->private_data = dd;
305 ipath_expose_reset(&dd->pcidev->dev);
328 struct ipath_devdata *dd;
350 dd = ipath_lookup(dp.unit);
351 if (!dd || !(dd->ipath_flags & IPATH_PRESENT) ||
352 !dd->ipath_kregbase) {
360 !(dd->ipath_flags & IPATH_LINKACTIVE)) {
364 ipath_set_linkstate(dd, IPATH_IB_LINKARM);
365 ipath_set_linkstate(dd, IPATH_IB_LINKACTIVE);
368 if (!(dd->ipath_flags & IPATH_INITTED)) {
370 ipath_cdbg(VERBOSE, "unit %u not usable\n", dd->ipath_unit);
374 val = dd->ipath_lastibcstat & IPATH_IBSTATE_MASK;
378 dd->ipath_unit, (unsigned long long) val);
387 if ((plen + 4) > dd->ipath_ibmaxlen) {
389 plen - 4, dd->ipath_ibmaxlen);
395 dev_info(&dd->pcidev->dev, "Unable to allocate tmp buffer, "
408 piobuf = ipath_getpiobuf(dd, &pbufn);
411 dd->ipath_unit);
420 dd->ipath_unit, plen - 1, pbufn);
453 struct ipath_devdata *dd = fp->private_data;
457 kreg_base = dd->ipath_kregbase;
468 ret = ipath_read_umem32(dd, data, kreg_base + *off, count);
470 ret = ipath_read_umem64(dd, data, kreg_base + *off, count);
485 struct ipath_devdata *dd = fp->private_data;
489 kreg_base = dd->ipath_kregbase;
501 ret = ipath_write_umem32(dd, kreg_base + *off, data, count);
503 ret = ipath_write_umem64(dd, kreg_base + *off, data, count);