|
@@ -502,7 +502,7 @@ static ssize_t show_rev(struct device *device, struct device_attribute *attr,
|
|
char *buf)
|
|
char *buf)
|
|
{
|
|
{
|
|
struct qib_ibdev *dev =
|
|
struct qib_ibdev *dev =
|
|
- container_of(device, struct qib_ibdev, ibdev.dev);
|
|
|
|
|
|
+ container_of(device, struct qib_ibdev, rdi.ibdev.dev);
|
|
|
|
|
|
return sprintf(buf, "%x\n", dd_from_dev(dev)->minrev);
|
|
return sprintf(buf, "%x\n", dd_from_dev(dev)->minrev);
|
|
}
|
|
}
|
|
@@ -511,7 +511,7 @@ static ssize_t show_hca(struct device *device, struct device_attribute *attr,
|
|
char *buf)
|
|
char *buf)
|
|
{
|
|
{
|
|
struct qib_ibdev *dev =
|
|
struct qib_ibdev *dev =
|
|
- container_of(device, struct qib_ibdev, ibdev.dev);
|
|
|
|
|
|
+ container_of(device, struct qib_ibdev, rdi.ibdev.dev);
|
|
struct qib_devdata *dd = dd_from_dev(dev);
|
|
struct qib_devdata *dd = dd_from_dev(dev);
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
@@ -533,7 +533,7 @@ static ssize_t show_boardversion(struct device *device,
|
|
struct device_attribute *attr, char *buf)
|
|
struct device_attribute *attr, char *buf)
|
|
{
|
|
{
|
|
struct qib_ibdev *dev =
|
|
struct qib_ibdev *dev =
|
|
- container_of(device, struct qib_ibdev, ibdev.dev);
|
|
|
|
|
|
+ container_of(device, struct qib_ibdev, rdi.ibdev.dev);
|
|
struct qib_devdata *dd = dd_from_dev(dev);
|
|
struct qib_devdata *dd = dd_from_dev(dev);
|
|
|
|
|
|
/* The string printed here is already newline-terminated. */
|
|
/* The string printed here is already newline-terminated. */
|
|
@@ -545,7 +545,7 @@ static ssize_t show_localbus_info(struct device *device,
|
|
struct device_attribute *attr, char *buf)
|
|
struct device_attribute *attr, char *buf)
|
|
{
|
|
{
|
|
struct qib_ibdev *dev =
|
|
struct qib_ibdev *dev =
|
|
- container_of(device, struct qib_ibdev, ibdev.dev);
|
|
|
|
|
|
+ container_of(device, struct qib_ibdev, rdi.ibdev.dev);
|
|
struct qib_devdata *dd = dd_from_dev(dev);
|
|
struct qib_devdata *dd = dd_from_dev(dev);
|
|
|
|
|
|
/* The string printed here is already newline-terminated. */
|
|
/* The string printed here is already newline-terminated. */
|
|
@@ -557,7 +557,7 @@ static ssize_t show_nctxts(struct device *device,
|
|
struct device_attribute *attr, char *buf)
|
|
struct device_attribute *attr, char *buf)
|
|
{
|
|
{
|
|
struct qib_ibdev *dev =
|
|
struct qib_ibdev *dev =
|
|
- container_of(device, struct qib_ibdev, ibdev.dev);
|
|
|
|
|
|
+ container_of(device, struct qib_ibdev, rdi.ibdev.dev);
|
|
struct qib_devdata *dd = dd_from_dev(dev);
|
|
struct qib_devdata *dd = dd_from_dev(dev);
|
|
|
|
|
|
/* Return the number of user ports (contexts) available. */
|
|
/* Return the number of user ports (contexts) available. */
|
|
@@ -572,7 +572,7 @@ static ssize_t show_nfreectxts(struct device *device,
|
|
struct device_attribute *attr, char *buf)
|
|
struct device_attribute *attr, char *buf)
|
|
{
|
|
{
|
|
struct qib_ibdev *dev =
|
|
struct qib_ibdev *dev =
|
|
- container_of(device, struct qib_ibdev, ibdev.dev);
|
|
|
|
|
|
+ container_of(device, struct qib_ibdev, rdi.ibdev.dev);
|
|
struct qib_devdata *dd = dd_from_dev(dev);
|
|
struct qib_devdata *dd = dd_from_dev(dev);
|
|
|
|
|
|
/* Return the number of free user ports (contexts) available. */
|
|
/* Return the number of free user ports (contexts) available. */
|
|
@@ -583,7 +583,7 @@ static ssize_t show_serial(struct device *device,
|
|
struct device_attribute *attr, char *buf)
|
|
struct device_attribute *attr, char *buf)
|
|
{
|
|
{
|
|
struct qib_ibdev *dev =
|
|
struct qib_ibdev *dev =
|
|
- container_of(device, struct qib_ibdev, ibdev.dev);
|
|
|
|
|
|
+ container_of(device, struct qib_ibdev, rdi.ibdev.dev);
|
|
struct qib_devdata *dd = dd_from_dev(dev);
|
|
struct qib_devdata *dd = dd_from_dev(dev);
|
|
|
|
|
|
buf[sizeof(dd->serial)] = '\0';
|
|
buf[sizeof(dd->serial)] = '\0';
|
|
@@ -597,7 +597,7 @@ static ssize_t store_chip_reset(struct device *device,
|
|
size_t count)
|
|
size_t count)
|
|
{
|
|
{
|
|
struct qib_ibdev *dev =
|
|
struct qib_ibdev *dev =
|
|
- container_of(device, struct qib_ibdev, ibdev.dev);
|
|
|
|
|
|
+ container_of(device, struct qib_ibdev, rdi.ibdev.dev);
|
|
struct qib_devdata *dd = dd_from_dev(dev);
|
|
struct qib_devdata *dd = dd_from_dev(dev);
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
@@ -618,7 +618,7 @@ static ssize_t show_tempsense(struct device *device,
|
|
struct device_attribute *attr, char *buf)
|
|
struct device_attribute *attr, char *buf)
|
|
{
|
|
{
|
|
struct qib_ibdev *dev =
|
|
struct qib_ibdev *dev =
|
|
- container_of(device, struct qib_ibdev, ibdev.dev);
|
|
|
|
|
|
+ container_of(device, struct qib_ibdev, rdi.ibdev.dev);
|
|
struct qib_devdata *dd = dd_from_dev(dev);
|
|
struct qib_devdata *dd = dd_from_dev(dev);
|
|
int ret;
|
|
int ret;
|
|
int idx;
|
|
int idx;
|
|
@@ -778,7 +778,7 @@ bail:
|
|
*/
|
|
*/
|
|
int qib_verbs_register_sysfs(struct qib_devdata *dd)
|
|
int qib_verbs_register_sysfs(struct qib_devdata *dd)
|
|
{
|
|
{
|
|
- struct ib_device *dev = &dd->verbs_dev.ibdev;
|
|
|
|
|
|
+ struct ib_device *dev = &dd->verbs_dev.rdi.ibdev;
|
|
int i, ret;
|
|
int i, ret;
|
|
|
|
|
|
for (i = 0; i < ARRAY_SIZE(qib_attributes); ++i) {
|
|
for (i = 0; i < ARRAY_SIZE(qib_attributes); ++i) {
|