Home
last modified time | relevance | path

Searched refs:txBuf (Results 1 – 4 of 4) sorted by relevance

/freebsd/sys/dev/flash/
H A Dmx25l.c162 uint8_t txBuf[2], rxBuf[2]; in mx25l_wait_for_device_ready() local
169 txBuf[0] = CMD_READ_STATUS; in mx25l_wait_for_device_ready()
170 cmd.tx_cmd = txBuf; in mx25l_wait_for_device_ready()
183 uint8_t txBuf[8], rxBuf[8]; in mx25l_get_device_ident() local
190 memset(txBuf, 0, sizeof(txBuf)); in mx25l_get_device_ident()
193 txBuf[0] = CMD_READ_IDENT; in mx25l_get_device_ident()
194 cmd.tx_cmd = &txBuf; in mx25l_get_device_ident()
224 uint8_t txBuf[1], rxBuf[1]; in mx25l_set_writable() local
229 memset(txBuf, 0, sizeof(txBuf)); in mx25l_set_writable()
232 txBuf[0] = writable ? CMD_WRITE_ENABLE : CMD_WRITE_DISABLE; in mx25l_set_writable()
[all …]
H A Dat45d.c168 uint8_t rxBuf[8], txBuf[8]; in at45d_get_status() local
173 memset(txBuf, 0, sizeof(txBuf)); in at45d_get_status()
176 txBuf[0] = STATUS_REGISTER_READ; in at45d_get_status()
177 cmd.tx_cmd = txBuf; in at45d_get_status()
188 uint8_t rxBuf[8], txBuf[8]; in at45d_get_mfg_info() local
193 memset(txBuf, 0, sizeof(txBuf)); in at45d_get_mfg_info()
196 txBuf[0] = MANUFACTURER_ID; in at45d_get_mfg_info()
197 cmd.tx_cmd = &txBuf; in at45d_get_mfg_info()
438 uint8_t rxBuf[8], txBuf[8]; in at45d_task() local
452 memset(txBuf, 0, sizeof(txBuf)); in at45d_task()
[all …]
H A Dw25n.c116 uint8_t txBuf[3], rxBuf[3]; in w25n_read_status_register() local
122 txBuf[0] = CMD_READ_STATUS; in w25n_read_status_register()
123 txBuf[1] = reg; in w25n_read_status_register()
124 cmd.tx_cmd = txBuf; in w25n_read_status_register()
151 uint8_t txBuf[4], rxBuf[4]; in w25n_set_page_address() local
155 txBuf[0] = CMD_PAGE_DATA_READ; in w25n_set_page_address()
156 txBuf[1] = 0; /* dummy */ in w25n_set_page_address()
157 txBuf[2] = (page_idx >> 8) & 0xff; in w25n_set_page_address()
158 txBuf[3] = (page_idx >> 0) & 0xff; in w25n_set_page_address()
159 cmd.tx_cmd = txBuf; in w25n_set_page_address()
[all …]
/freebsd/sys/dev/etherswitch/micrel/
H A Dksz8995ma.c852 uint8_t txBuf[8], rxBuf[8]; in ksz8995ma_readreg() local
857 memset(txBuf, 0, sizeof(txBuf)); in ksz8995ma_readreg()
861 txBuf[0] = KSZ8995MA_SPI_READ; in ksz8995ma_readreg()
862 txBuf[1] = addr; in ksz8995ma_readreg()
863 cmd.tx_cmd = &txBuf; in ksz8995ma_readreg()
877 uint8_t txBuf[8], rxBuf[8]; in ksz8995ma_writereg() local
882 memset(txBuf, 0, sizeof(txBuf)); in ksz8995ma_writereg()
886 txBuf[0] = KSZ8995MA_SPI_WRITE; in ksz8995ma_writereg()
887 txBuf[1] = addr; in ksz8995ma_writereg()
888 txBuf[2] = value; in ksz8995ma_writereg()
[all …]