Lines Matching refs:qca

70 	struct qcaspi *qca = s->private;  in qcaspi_info_show()  local
73 (unsigned long)qca->buffer_size); in qcaspi_info_show()
77 if (qca->txr.skb[qca->txr.head] == NULL) in qcaspi_info_show()
79 else if (qca->txr.skb[qca->txr.tail]) in qcaspi_info_show()
87 qca->txr.size); in qcaspi_info_show()
90 (unsigned int)qca->sync); in qcaspi_info_show()
91 switch (qca->sync) { in qcaspi_info_show()
108 qca->spi_dev->irq); in qcaspi_info_show()
110 qca->intr_req); in qcaspi_info_show()
112 qca->intr_svc); in qcaspi_info_show()
115 (unsigned long)qca->spi_dev->max_speed_hz); in qcaspi_info_show()
117 qca->spi_dev->mode); in qcaspi_info_show()
119 (unsigned int)qca->spi_dev->chip_select); in qcaspi_info_show()
121 (unsigned int)qca->legacy_mode); in qcaspi_info_show()
123 (unsigned int)qca->burst_len); in qcaspi_info_show()
142 qcaspi_init_device_debugfs(struct qcaspi *qca) in qcaspi_init_device_debugfs() argument
146 device_root = debugfs_create_dir(dev_name(&qca->net_dev->dev), NULL); in qcaspi_init_device_debugfs()
147 qca->device_root = device_root; in qcaspi_init_device_debugfs()
151 dev_name(&qca->net_dev->dev)); in qcaspi_init_device_debugfs()
154 debugfs_create_file("info", S_IFREG | 0444, device_root, qca, in qcaspi_init_device_debugfs()
159 qcaspi_remove_device_debugfs(struct qcaspi *qca) in qcaspi_remove_device_debugfs() argument
161 debugfs_remove_recursive(qca->device_root); in qcaspi_remove_device_debugfs()
167 qcaspi_init_device_debugfs(struct qcaspi *qca) in qcaspi_init_device_debugfs() argument
172 qcaspi_remove_device_debugfs(struct qcaspi *qca) in qcaspi_remove_device_debugfs() argument
181 struct qcaspi *qca = netdev_priv(dev); in qcaspi_get_drvinfo() local
186 strlcpy(p->bus_info, dev_name(&qca->spi_dev->dev), in qcaspi_get_drvinfo()
208 struct qcaspi *qca = netdev_priv(dev); in qcaspi_get_ethtool_stats() local
209 struct qcaspi_stats *st = &qca->stats; in qcaspi_get_ethtool_stats()
248 struct qcaspi *qca = netdev_priv(dev); in qcaspi_get_regs() local
258 qcaspi_read_register(qca, qcaspi_spi_regs[i], &value); in qcaspi_get_regs()
267 struct qcaspi *qca = netdev_priv(dev); in qcaspi_get_ringparam() local
272 ring->tx_pending = qca->txr.count; in qcaspi_get_ringparam()
279 struct qcaspi *qca = netdev_priv(dev); in qcaspi_set_ringparam() local
289 qca->txr.count = max_t(u32, ring->tx_pending, TX_RING_MIN_LEN); in qcaspi_set_ringparam()
290 qca->txr.count = min_t(u16, qca->txr.count, TX_RING_MAX_LEN); in qcaspi_set_ringparam()