cas_ctl           722 drivers/net/ieee802154/ca8210.c static void ca8210_rx_done(struct cas_control *cas_ctl)
cas_ctl           727 drivers/net/ieee802154/ca8210.c 	struct ca8210_priv *priv = cas_ctl->priv;
cas_ctl           729 drivers/net/ieee802154/ca8210.c 	buf = cas_ctl->tx_in_buf;
cas_ctl           842 drivers/net/ieee802154/ca8210.c 	struct cas_control *cas_ctl = context;
cas_ctl           843 drivers/net/ieee802154/ca8210.c 	struct ca8210_priv *priv = cas_ctl->priv;
cas_ctl           849 drivers/net/ieee802154/ca8210.c 		cas_ctl->tx_in_buf[0] == SPI_NACK ||
cas_ctl           850 drivers/net/ieee802154/ca8210.c 		(cas_ctl->tx_in_buf[0] == SPI_IDLE &&
cas_ctl           851 drivers/net/ieee802154/ca8210.c 		cas_ctl->tx_in_buf[1] == SPI_NACK)
cas_ctl           855 drivers/net/ieee802154/ca8210.c 		if (cas_ctl->tx_buf[0] == SPI_IDLE) {
cas_ctl           860 drivers/net/ieee802154/ca8210.c 			kfree(cas_ctl);
cas_ctl           865 drivers/net/ieee802154/ca8210.c 			kfree(cas_ctl);
cas_ctl           869 drivers/net/ieee802154/ca8210.c 		memcpy(retry_buffer, cas_ctl->tx_buf, CA8210_SPI_BUF_SIZE);
cas_ctl           870 drivers/net/ieee802154/ca8210.c 		kfree(cas_ctl);
cas_ctl           880 drivers/net/ieee802154/ca8210.c 			cas_ctl->tx_in_buf[0] != SPI_IDLE &&
cas_ctl           881 drivers/net/ieee802154/ca8210.c 			cas_ctl->tx_in_buf[0] != SPI_NACK
cas_ctl           888 drivers/net/ieee802154/ca8210.c 		for (i = 0; i < cas_ctl->tx_in_buf[1] + 2; i++)
cas_ctl           892 drivers/net/ieee802154/ca8210.c 				cas_ctl->tx_in_buf[i]
cas_ctl           894 drivers/net/ieee802154/ca8210.c 		ca8210_rx_done(cas_ctl);
cas_ctl           897 drivers/net/ieee802154/ca8210.c 	kfree(cas_ctl);
cas_ctl           917 drivers/net/ieee802154/ca8210.c 	struct cas_control *cas_ctl;
cas_ctl           929 drivers/net/ieee802154/ca8210.c 	cas_ctl = kmalloc(sizeof(*cas_ctl), GFP_ATOMIC);
cas_ctl           930 drivers/net/ieee802154/ca8210.c 	if (!cas_ctl)
cas_ctl           933 drivers/net/ieee802154/ca8210.c 	cas_ctl->priv = priv;
cas_ctl           934 drivers/net/ieee802154/ca8210.c 	memset(cas_ctl->tx_buf, SPI_IDLE, CA8210_SPI_BUF_SIZE);
cas_ctl           935 drivers/net/ieee802154/ca8210.c 	memset(cas_ctl->tx_in_buf, SPI_IDLE, CA8210_SPI_BUF_SIZE);
cas_ctl           936 drivers/net/ieee802154/ca8210.c 	memcpy(cas_ctl->tx_buf, buf, len);
cas_ctl           939 drivers/net/ieee802154/ca8210.c 		dev_dbg(&spi->dev, "%#03x\n", cas_ctl->tx_buf[i]);
cas_ctl           941 drivers/net/ieee802154/ca8210.c 	spi_message_init(&cas_ctl->msg);
cas_ctl           943 drivers/net/ieee802154/ca8210.c 	cas_ctl->transfer.tx_nbits = 1; /* 1 MOSI line */
cas_ctl           944 drivers/net/ieee802154/ca8210.c 	cas_ctl->transfer.rx_nbits = 1; /* 1 MISO line */
cas_ctl           945 drivers/net/ieee802154/ca8210.c 	cas_ctl->transfer.speed_hz = 0; /* Use device setting */
cas_ctl           946 drivers/net/ieee802154/ca8210.c 	cas_ctl->transfer.bits_per_word = 0; /* Use device setting */
cas_ctl           947 drivers/net/ieee802154/ca8210.c 	cas_ctl->transfer.tx_buf = cas_ctl->tx_buf;
cas_ctl           948 drivers/net/ieee802154/ca8210.c 	cas_ctl->transfer.rx_buf = cas_ctl->tx_in_buf;
cas_ctl           949 drivers/net/ieee802154/ca8210.c 	cas_ctl->transfer.delay_usecs = 0;
cas_ctl           950 drivers/net/ieee802154/ca8210.c 	cas_ctl->transfer.cs_change = 0;
cas_ctl           951 drivers/net/ieee802154/ca8210.c 	cas_ctl->transfer.len = sizeof(struct mac_message);
cas_ctl           952 drivers/net/ieee802154/ca8210.c 	cas_ctl->msg.complete = ca8210_spi_transfer_complete;
cas_ctl           953 drivers/net/ieee802154/ca8210.c 	cas_ctl->msg.context = cas_ctl;
cas_ctl           956 drivers/net/ieee802154/ca8210.c 		&cas_ctl->transfer,
cas_ctl           957 drivers/net/ieee802154/ca8210.c 		&cas_ctl->msg
cas_ctl           960 drivers/net/ieee802154/ca8210.c 	status = spi_async(spi, &cas_ctl->msg);