Lines Matching refs:tty_dev
65 struct device *tty_dev; member
96 if (dev->tty_dev) in rfcomm_dev_destruct()
135 if (dev->tty_dev->parent) in rfcomm_dev_shutdown()
136 device_move(dev->tty_dev, NULL, DPM_ORDER_DEV_LAST); in rfcomm_dev_shutdown()
195 device_move(dev->tty_dev, &conn->dev, DPM_ORDER_DEV_AFTER_PARENT); in rfcomm_reparent_device()
201 static ssize_t show_address(struct device *tty_dev, struct device_attribute *attr, char *buf) in show_address() argument
203 struct rfcomm_dev *dev = dev_get_drvdata(tty_dev); in show_address()
207 static ssize_t show_channel(struct device *tty_dev, struct device_attribute *attr, char *buf) in show_channel() argument
209 struct rfcomm_dev *dev = dev_get_drvdata(tty_dev); in show_channel()
337 dev->tty_dev = tty; in rfcomm_dev_add()
339 dev_set_drvdata(dev->tty_dev, dev); in rfcomm_dev_add()
341 if (device_create_file(dev->tty_dev, &dev_attr_address) < 0) in rfcomm_dev_add()
344 if (device_create_file(dev->tty_dev, &dev_attr_channel) < 0) in rfcomm_dev_add()