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()
252 ret = spi_sync(mses->spidev, msg); in mse102x_tx_frame_spi()
267 struct mse102x_net_spi *mses = to_mse102x_spi(mse); in mse102x_rx_frame_spi() local
268 struct spi_transfer *xfer = &mses->spi_xfer; in mse102x_rx_frame_spi()
269 struct spi_message *msg = &mses->spi_msg; in mse102x_rx_frame_spi()
278 ret = spi_sync(mses->spidev, msg); in mse102x_rx_frame_spi()
431 struct mse102x_net_spi *mses; in mse102x_tx_work() local
436 mses = container_of(work, struct mse102x_net_spi, tx_work); in mse102x_tx_work()
437 mse = &mses->mse102x; in mse102x_tx_work()
440 mutex_lock(&mses->lock); in mse102x_tx_work()
442 mutex_unlock(&mses->lock); in mse102x_tx_work()
467 struct mse102x_net_spi *mses = to_mse102x_spi(mse); in mse102x_start_xmit_spi() local
477 schedule_work(&mses->tx_work); in mse102x_start_xmit_spi()
498 struct mse102x_net_spi *mses = to_mse102x_spi(mse); in mse102x_irq() local
500 mutex_lock(&mses->lock); in mse102x_irq()
502 mutex_unlock(&mses->lock); in mse102x_irq()
533 struct mse102x_net_spi *mses = to_mse102x_spi(mse); in mse102x_net_stop() local
540 flush_work(&mses->tx_work); in mse102x_net_stop()
660 struct mse102x_net_spi *mses; in mse102x_probe_spi() local
696 mses = to_mse102x_spi(mse); in mse102x_probe_spi()
698 mses->spidev = spi; in mse102x_probe_spi()
699 mutex_init(&mses->lock); in mse102x_probe_spi()
700 INIT_WORK(&mses->tx_work, mse102x_tx_work); in mse102x_probe_spi()
703 spi_message_init(&mses->spi_msg); in mse102x_probe_spi()
704 spi_message_add_tail(&mses->spi_xfer, &mses->spi_msg); in mse102x_probe_spi()
730 mse102x_init_device_debugfs(mses); in mse102x_probe_spi()
738 struct mse102x_net_spi *mses = to_mse102x_spi(mse); in mse102x_remove_spi() local
743 mse102x_remove_device_debugfs(mses); in mse102x_remove_spi()