Lines Matching refs:t
107 struct spi_transfer t; in wl12xx_spi_reset() local
117 memset(&t, 0, sizeof(t)); in wl12xx_spi_reset()
122 t.tx_buf = cmd; in wl12xx_spi_reset()
123 t.len = WSPI_INIT_CMD_LEN; in wl12xx_spi_reset()
124 spi_message_add_tail(&t, &m); in wl12xx_spi_reset()
134 struct spi_transfer t; in wl12xx_spi_init() local
145 memset(&t, 0, sizeof(t)); in wl12xx_spi_init()
177 t.tx_buf = cmd; in wl12xx_spi_init()
178 t.len = WSPI_INIT_CMD_LEN; in wl12xx_spi_init()
179 spi_message_add_tail(&t, &m); in wl12xx_spi_init()
196 t.tx_buf = cmd; in wl12xx_spi_init()
197 t.len = 4; in wl12xx_spi_init()
198 spi_message_add_tail(&t, &m); in wl12xx_spi_init()
213 struct spi_transfer t[1]; in wl12xx_spi_read_busy() local
228 memset(t, 0, sizeof(t)); in wl12xx_spi_read_busy()
229 t[0].rx_buf = busy_buf; in wl12xx_spi_read_busy()
230 t[0].len = sizeof(u32); in wl12xx_spi_read_busy()
231 t[0].cs_change = true; in wl12xx_spi_read_busy()
232 spi_message_add_tail(&t[0], &m); in wl12xx_spi_read_busy()
249 struct spi_transfer t[2]; in wl12xx_spi_raw_read() local
271 memset(t, 0, sizeof(t)); in wl12xx_spi_raw_read()
273 t[0].tx_buf = cmd; in wl12xx_spi_raw_read()
274 t[0].len = 4; in wl12xx_spi_raw_read()
275 t[0].cs_change = true; in wl12xx_spi_raw_read()
276 spi_message_add_tail(&t[0], &m); in wl12xx_spi_raw_read()
279 t[1].rx_buf = busy_buf; in wl12xx_spi_raw_read()
280 t[1].len = WL1271_BUSY_WORD_LEN; in wl12xx_spi_raw_read()
281 t[1].cs_change = true; in wl12xx_spi_raw_read()
282 spi_message_add_tail(&t[1], &m); in wl12xx_spi_raw_read()
293 memset(t, 0, sizeof(t)); in wl12xx_spi_raw_read()
295 t[0].rx_buf = buf; in wl12xx_spi_raw_read()
296 t[0].len = chunk_len; in wl12xx_spi_raw_read()
297 t[0].cs_change = true; in wl12xx_spi_raw_read()
298 spi_message_add_tail(&t[0], &m); in wl12xx_spi_raw_read()
315 struct spi_transfer *t; in __wl12xx_spi_raw_write() local
323 t = kzalloc(sizeof(*t) * 2 * WSPI_MAX_NUM_OF_CHUNKS, GFP_KERNEL); in __wl12xx_spi_raw_write()
324 if (!t) in __wl12xx_spi_raw_write()
345 t[i].tx_buf = cmd; in __wl12xx_spi_raw_write()
346 t[i].len = sizeof(*cmd); in __wl12xx_spi_raw_write()
347 spi_message_add_tail(&t[i++], &m); in __wl12xx_spi_raw_write()
349 t[i].tx_buf = buf; in __wl12xx_spi_raw_write()
350 t[i].len = chunk_len; in __wl12xx_spi_raw_write()
351 spi_message_add_tail(&t[i++], &m); in __wl12xx_spi_raw_write()
362 kfree(t); in __wl12xx_spi_raw_write()