Lines Matching defs:mdev
59 struct moxtet_device *mdev = to_moxtet_device(dev); \
64 DEF_MODULE_ATTR(id, "0x%x\n", mdev->id);
65 DEF_MODULE_ATTR(name, "%s\n", mox_module_name(mdev->id));
67 mox_module_known(mdev->id) ? mox_module_table[mdev->id].desc
88 struct moxtet_device *mdev = to_moxtet_device(dev);
99 if (*t == mdev->id)
122 struct moxtet_device *mdev = to_moxtet_device(dev);
125 if (mdev->moxtet == new_dev->moxtet && mdev->id == new_dev->id &&
126 mdev->idx == new_dev->idx)
133 struct moxtet_device *mdev = to_moxtet_device(dev);
135 put_device(mdev->moxtet->dev);
136 kfree(mdev);
405 struct moxtet_device *mdev = to_moxtet_device(dev);
406 struct moxtet *moxtet = mdev->moxtet;
410 if (mdev->idx >= moxtet->count)
417 return buf[mdev->idx + 1] >> 4;
423 struct moxtet_device *mdev = to_moxtet_device(dev);
424 struct moxtet *moxtet = mdev->moxtet;
427 if (mdev->idx >= moxtet->count)
432 moxtet->tx[moxtet->count - mdev->idx] = val;
445 struct moxtet_device *mdev = to_moxtet_device(dev);
446 struct moxtet *moxtet = mdev->moxtet;
448 if (mdev->idx >= moxtet->count)
451 return moxtet->tx[moxtet->count - mdev->idx];