Home
last modified time | relevance | path

Searched refs:cfspi (Results 1 – 3 of 3) sorted by relevance

/linux-4.4.14/drivers/net/caif/
Dcaif_spi_slave.c23 static inline int forward_to_spi_cmd(struct cfspi *cfspi) in forward_to_spi_cmd() argument
25 return cfspi->rx_cpck_len; in forward_to_spi_cmd()
29 static inline int forward_to_spi_cmd(struct cfspi *cfspi) in forward_to_spi_cmd() argument
47 static inline void debugfs_store_prev(struct cfspi *cfspi) in debugfs_store_prev() argument
50 cfspi->pcmd = cfspi->cmd; in debugfs_store_prev()
52 cfspi->tx_ppck_len = cfspi->tx_cpck_len; in debugfs_store_prev()
53 cfspi->rx_ppck_len = cfspi->rx_cpck_len; in debugfs_store_prev()
56 static inline void debugfs_store_prev(struct cfspi *cfspi) in debugfs_store_prev() argument
63 struct cfspi *cfspi; in cfspi_xfer() local
67 cfspi = container_of(work, struct cfspi, work); in cfspi_xfer()
[all …]
Dcaif_spi.c122 static inline void dev_debugfs_rem(struct cfspi *cfspi) in dev_debugfs_rem() argument
124 debugfs_remove(cfspi->dbgfs_frame); in dev_debugfs_rem()
125 debugfs_remove(cfspi->dbgfs_state); in dev_debugfs_rem()
126 debugfs_remove(cfspi->dbgfs_dir); in dev_debugfs_rem()
135 struct cfspi *cfspi = file->private_data; in dbgfs_state() local
148 "STATE: %d\n", cfspi->dbg_state); in dbgfs_state()
150 "Previous CMD: 0x%x\n", cfspi->pcmd); in dbgfs_state()
152 "Current CMD: 0x%x\n", cfspi->cmd); in dbgfs_state()
154 "Previous TX len: %d\n", cfspi->tx_ppck_len); in dbgfs_state()
156 "Previous RX len: %d\n", cfspi->rx_ppck_len); in dbgfs_state()
[all …]
/linux-4.4.14/include/net/caif/
Dcaif_spi.h99 struct cfspi { struct
144 void cfspi_dbg_state(struct cfspi *cfspi, int state); argument
145 int cfspi_xmitfrm(struct cfspi *cfspi, u8 *buf, size_t len);
146 int cfspi_xmitlen(struct cfspi *cfspi);
147 int cfspi_rxfrm(struct cfspi *cfspi, u8 *buf, size_t len);
150 int cfspi_xmitfrm(struct cfspi *cfspi, u8 *buf, size_t len);
151 int cfspi_xmitlen(struct cfspi *cfspi);
152 int cfspi_rxfrm(struct cfspi *cfspi, u8 *buf, size_t len);