Lines Matching refs:qca

62 	struct qcaspi *qca = s->private;  in qcaspi_info_show()  local
65 (unsigned long)qca->buffer_size); in qcaspi_info_show()
69 if (qca->txr.skb[qca->txr.head] == NULL) in qcaspi_info_show()
71 else if (qca->txr.skb[qca->txr.tail]) in qcaspi_info_show()
79 qca->txr.size); in qcaspi_info_show()
82 (unsigned int)qca->sync); in qcaspi_info_show()
83 switch (qca->sync) { in qcaspi_info_show()
100 qca->spi_dev->irq); in qcaspi_info_show()
102 qca->intr); in qcaspi_info_show()
105 (unsigned long)qca->spi_dev->max_speed_hz); in qcaspi_info_show()
107 qca->spi_dev->mode); in qcaspi_info_show()
109 (unsigned int)spi_get_chipselect(qca->spi_dev, 0)); in qcaspi_info_show()
111 (unsigned int)qca->legacy_mode); in qcaspi_info_show()
113 (unsigned int)qca->burst_len); in qcaspi_info_show()
120 qcaspi_init_device_debugfs(struct qcaspi *qca) in qcaspi_init_device_debugfs() argument
122 qca->device_root = debugfs_create_dir(dev_name(&qca->net_dev->dev), in qcaspi_init_device_debugfs()
125 debugfs_create_file("info", S_IFREG | 0444, qca->device_root, qca, in qcaspi_init_device_debugfs()
130 qcaspi_remove_device_debugfs(struct qcaspi *qca) in qcaspi_remove_device_debugfs() argument
132 debugfs_remove_recursive(qca->device_root); in qcaspi_remove_device_debugfs()
138 qcaspi_init_device_debugfs(struct qcaspi *qca) in qcaspi_init_device_debugfs() argument
143 qcaspi_remove_device_debugfs(struct qcaspi *qca) in qcaspi_remove_device_debugfs() argument
152 struct qcaspi *qca = netdev_priv(dev); in qcaspi_get_drvinfo() local
157 strscpy(p->bus_info, dev_name(&qca->spi_dev->dev), in qcaspi_get_drvinfo()
179 struct qcaspi *qca = netdev_priv(dev); in qcaspi_get_ethtool_stats() local
180 struct qcaspi_stats *st = &qca->stats; in qcaspi_get_ethtool_stats()
219 struct qcaspi *qca = netdev_priv(dev); in qcaspi_get_regs() local
229 qcaspi_read_register(qca, qcaspi_spi_regs[i], &value); in qcaspi_get_regs()
240 struct qcaspi *qca = netdev_priv(dev); in qcaspi_get_ringparam() local
245 ring->tx_pending = qca->txr.count; in qcaspi_get_ringparam()
253 struct qcaspi *qca = netdev_priv(dev); in qcaspi_set_ringparam() local
260 if (qca->spi_thread) in qcaspi_set_ringparam()
261 kthread_park(qca->spi_thread); in qcaspi_set_ringparam()
263 qca->txr.count = max_t(u32, ring->tx_pending, QCASPI_TX_RING_MIN_LEN); in qcaspi_set_ringparam()
264 qca->txr.count = min_t(u16, qca->txr.count, QCASPI_TX_RING_MAX_LEN); in qcaspi_set_ringparam()
266 if (qca->spi_thread) in qcaspi_set_ringparam()
267 kthread_unpark(qca->spi_thread); in qcaspi_set_ringparam()