Lines Matching refs:mses
98 struct mse102x_net_spi *mses = s->private; in mse102x_info_show() local
101 skb_queue_len(&mses->mse102x.txq)); in mse102x_info_show()
104 mses->spidev->irq); in mse102x_info_show()
107 (unsigned long)mses->spi_xfer.effective_speed_hz); in mse102x_info_show()
109 mses->spidev->mode); in mse102x_info_show()
115 static void mse102x_init_device_debugfs(struct mse102x_net_spi *mses) in mse102x_init_device_debugfs() argument
117 mses->device_root = debugfs_create_dir(dev_name(&mses->mse102x.ndev->dev), in mse102x_init_device_debugfs()
120 debugfs_create_file("info", S_IFREG | 0444, mses->device_root, mses, in mse102x_init_device_debugfs()
124 static void mse102x_remove_device_debugfs(struct mse102x_net_spi *mses) in mse102x_remove_device_debugfs() argument
126 debugfs_remove_recursive(mses->device_root); in mse102x_remove_device_debugfs()
131 static void mse102x_init_device_debugfs(struct mse102x_net_spi *mses) in mse102x_init_device_debugfs() argument
135 static void mse102x_remove_device_debugfs(struct mse102x_net_spi *mses) in mse102x_remove_device_debugfs() argument
150 struct mse102x_net_spi *mses = to_mse102x_spi(mse); in mse102x_tx_cmd_spi() local
151 struct spi_transfer *xfer = &mses->spi_xfer; in mse102x_tx_cmd_spi()
152 struct spi_message *msg = &mses->spi_msg; in mse102x_tx_cmd_spi()
163 ret = spi_sync(mses->spidev, msg); in mse102x_tx_cmd_spi()
173 struct mse102x_net_spi *mses = to_mse102x_spi(mse); in mse102x_rx_cmd_spi() local
174 struct spi_transfer *xfer = &mses->spi_xfer; in mse102x_rx_cmd_spi()
175 struct spi_message *msg = &mses->spi_msg; in mse102x_rx_cmd_spi()
188 ret = spi_sync(mses->spidev, msg); in mse102x_rx_cmd_spi()
222 struct mse102x_net_spi *mses = to_mse102x_spi(mse); in mse102x_tx_frame_spi() local
223 struct spi_transfer *xfer = &mses->spi_xfer; in mse102x_tx_frame_spi()
224 struct spi_message *msg = &mses->spi_msg; in mse102x_tx_frame_spi()
253 ret = spi_sync(mses->spidev, msg); in mse102x_tx_frame_spi()
266 struct mse102x_net_spi *mses = to_mse102x_spi(mse); in mse102x_rx_frame_spi() local
267 struct spi_transfer *xfer = &mses->spi_xfer; in mse102x_rx_frame_spi()
268 struct spi_message *msg = &mses->spi_msg; in mse102x_rx_frame_spi()
277 ret = spi_sync(mses->spidev, msg); in mse102x_rx_frame_spi()
430 struct mse102x_net_spi *mses; in mse102x_tx_work() local
435 mses = container_of(work, struct mse102x_net_spi, tx_work); in mse102x_tx_work()
436 mse = &mses->mse102x; in mse102x_tx_work()
439 mutex_lock(&mses->lock); in mse102x_tx_work()
441 mutex_unlock(&mses->lock); in mse102x_tx_work()
466 struct mse102x_net_spi *mses = to_mse102x_spi(mse); in mse102x_start_xmit_spi() local
476 schedule_work(&mses->tx_work); in mse102x_start_xmit_spi()
497 struct mse102x_net_spi *mses = to_mse102x_spi(mse); in mse102x_irq() local
499 mutex_lock(&mses->lock); in mse102x_irq()
501 mutex_unlock(&mses->lock); in mse102x_irq()
532 struct mse102x_net_spi *mses = to_mse102x_spi(mse); in mse102x_net_stop() local
539 flush_work(&mses->tx_work); in mse102x_net_stop()
659 struct mse102x_net_spi *mses; in mse102x_probe_spi() local
695 mses = to_mse102x_spi(mse); in mse102x_probe_spi()
697 mses->spidev = spi; in mse102x_probe_spi()
698 mutex_init(&mses->lock); in mse102x_probe_spi()
699 INIT_WORK(&mses->tx_work, mse102x_tx_work); in mse102x_probe_spi()
702 spi_message_init(&mses->spi_msg); in mse102x_probe_spi()
703 spi_message_add_tail(&mses->spi_xfer, &mses->spi_msg); in mse102x_probe_spi()
729 mse102x_init_device_debugfs(mses); in mse102x_probe_spi()
737 struct mse102x_net_spi *mses = to_mse102x_spi(mse); in mse102x_remove_spi() local
742 mse102x_remove_device_debugfs(mses); in mse102x_remove_spi()