Searched refs:chdev (Results 1 – 1 of 1) sorted by relevance
1883 struct mport_dev *chdev; in mport_cdev_open() local1892 chdev = container_of(inode->i_cdev, struct mport_dev, cdev); in mport_cdev_open()1894 rmcd_debug(INIT, "%s filp=%p", dev_name(&chdev->dev), filp); in mport_cdev_open()1896 if (atomic_read(&chdev->active) == 0) in mport_cdev_open()1899 get_device(&chdev->dev); in mport_cdev_open()1903 put_device(&chdev->dev); in mport_cdev_open()1907 priv->md = chdev; in mport_cdev_open()1917 put_device(&chdev->dev); in mport_cdev_open()1918 dev_err(&chdev->dev, DRV_NAME ": kfifo_alloc failed\n"); in mport_cdev_open()1928 mutex_lock(&chdev->file_mutex); in mport_cdev_open()[all …]