Home
last modified time | relevance | path

Searched refs:qca (Results 1 – 7 of 7) sorted by relevance

/drivers/net/ethernet/qualcomm/
Dqca_spi.c82 start_spi_intr_handling(struct qcaspi *qca, u16 *intr_cause) in start_spi_intr_handling() argument
86 qcaspi_write_register(qca, SPI_REG_INTR_ENABLE, 0, wr_verify); in start_spi_intr_handling()
87 qcaspi_read_register(qca, SPI_REG_INTR_CAUSE, intr_cause); in start_spi_intr_handling()
88 netdev_dbg(qca->net_dev, "interrupts: 0x%04x\n", *intr_cause); in start_spi_intr_handling()
92 end_spi_intr_handling(struct qcaspi *qca, u16 intr_cause) in end_spi_intr_handling() argument
99 qcaspi_write_register(qca, SPI_REG_INTR_CAUSE, intr_cause, 0); in end_spi_intr_handling()
100 qcaspi_write_register(qca, SPI_REG_INTR_ENABLE, intr_enable, wr_verify); in end_spi_intr_handling()
101 netdev_dbg(qca->net_dev, "acking int: 0x%04x\n", intr_cause); in end_spi_intr_handling()
105 qcaspi_write_burst(struct qcaspi *qca, u8 *src, u32 len) in qcaspi_write_burst() argument
123 ret = spi_sync(qca->spi_dev, &msg); in qcaspi_write_burst()
[all …]
Dqca_uart.c66 struct qcauart *qca = serdev_device_get_drvdata(serdev); in qca_tty_receive() local
67 struct net_device *netdev = qca->net_dev; in qca_tty_receive()
71 if (!qca->rx_skb) { in qca_tty_receive()
72 qca->rx_skb = netdev_alloc_skb_ip_align(netdev, in qca_tty_receive()
75 if (!qca->rx_skb) { in qca_tty_receive()
85 retcode = qcafrm_fsm_decode(&qca->frm_handle, in qca_tty_receive()
86 qca->rx_skb->data, in qca_tty_receive()
87 skb_tailroom(qca->rx_skb), in qca_tty_receive()
107 skb_put(qca->rx_skb, retcode); in qca_tty_receive()
108 qca->rx_skb->protocol = eth_type_trans( in qca_tty_receive()
[all …]
Dqca_debug.c72 struct qcaspi *qca = s->private; in qcaspi_info_show() local
75 (unsigned long)qca->buffer_size); in qcaspi_info_show()
79 if (qca->txr.skb[qca->txr.head] == NULL) in qcaspi_info_show()
81 else if (qca->txr.skb[qca->txr.tail]) in qcaspi_info_show()
89 qca->txr.size); in qcaspi_info_show()
92 (unsigned int)qca->sync); in qcaspi_info_show()
93 switch (qca->sync) { in qcaspi_info_show()
110 qca->spi_dev->irq); in qcaspi_info_show()
112 qca->intr_req); in qcaspi_info_show()
114 qca->intr_svc); in qcaspi_info_show()
[all …]
Dqca_7k.c33 qcaspi_spi_error(struct qcaspi *qca) in qcaspi_spi_error() argument
35 if (qca->sync != QCASPI_SYNC_READY) in qcaspi_spi_error()
38 netdev_err(qca->net_dev, "spi error\n"); in qcaspi_spi_error()
39 qca->sync = QCASPI_SYNC_UNKNOWN; in qcaspi_spi_error()
40 qca->stats.spi_err++; in qcaspi_spi_error()
44 qcaspi_read_register(struct qcaspi *qca, u16 reg, u16 *result) in qcaspi_read_register() argument
66 if (qca->legacy_mode) { in qcaspi_read_register()
67 spi_sync(qca->spi_dev, &msg); in qcaspi_read_register()
71 ret = spi_sync(qca->spi_dev, &msg); in qcaspi_read_register()
77 qcaspi_spi_error(qca); in qcaspi_read_register()
[all …]
Dqca_7k.h67 void qcaspi_spi_error(struct qcaspi *qca);
68 int qcaspi_read_register(struct qcaspi *qca, u16 reg, u16 *result);
69 int qcaspi_write_register(struct qcaspi *qca, u16 reg, u16 value, int retry);
Dqca_debug.h28 void qcaspi_init_device_debugfs(struct qcaspi *qca);
30 void qcaspi_remove_device_debugfs(struct qcaspi *qca);
/drivers/bluetooth/
Dhci_qca.c214 struct qca_data *qca = hu->priv; in serial_clock_vote() local
217 bool old_vote = (qca->tx_vote | qca->rx_vote); in serial_clock_vote()
222 diff = jiffies_to_msecs(jiffies - qca->vote_last_jif); in serial_clock_vote()
225 qca->vote_off_ms += diff; in serial_clock_vote()
227 qca->vote_on_ms += diff; in serial_clock_vote()
231 qca->tx_vote = true; in serial_clock_vote()
232 qca->tx_votes_on++; in serial_clock_vote()
237 qca->rx_vote = true; in serial_clock_vote()
238 qca->rx_votes_on++; in serial_clock_vote()
243 qca->tx_vote = false; in serial_clock_vote()
[all …]