Lines Matching refs:state
54 /* tx retries to access the TX_ON state
98 struct at86rf230_state_change state;
116 const u8 state, void (*complete)(void *context));
419 /* Assert state change */
421 /* Special handling if transceiver state is in
425 /* Undocumented race condition. If we send a state
427 * change his state automatically to STATE_BUSY_RX_AACK
435 * transceiver state is STATE_BUSY_RX_AACK, we wait
438 * in STATE_BUSY_RX_AACK, we run a force state change
443 * TX_ON state without forcing. If the retries are
449 u8 state = ctx->to_state;
452 state = STATE_FORCE_TRX_OFF;
455 at86rf230_async_state_change(lp, ctx, state,
461 dev_warn(&lp->spi->dev, "unexcept state change from 0x%02x to 0x%02x. Actual state: 0x%02x\n",
482 /* Do state change timing delay. */
492 /* The force state changes are will show as normal states in the
493 * state status subregister. We change the to_state to the
495 * differs if we do a state change from STATE_BUSY_RX_AACK.
515 /* state change from TRX_OFF to RX_AACK_ON to do a
524 /* state change from TRX_OFF to TX_ON or ARET_ON to do
551 /* Default value, means RESET state */
590 /* Check if we already are in the state which we change in */
597 /* Set current state to the context of state change */
600 /* Going into the next step for a state change which do a timing
610 const u8 state, void (*complete)(void *context))
612 /* Initialization for the state change context */
613 ctx->to_state = state;
628 /* This function do a sync framework above the async state change.
633 at86rf230_sync_state_change(struct at86rf230_local *lp, unsigned int state)
637 at86rf230_async_state_change(lp, &lp->state, state,
643 at86rf230_async_error(lp, &lp->state, -ETIMEDOUT);
806 struct at86rf230_state_change *state)
808 state->lp = lp;
809 state->irq = lp->spi->irq;
810 spi_message_init(&state->msg);
811 state->msg.context = state;
812 state->trx.len = 2;
813 state->trx.tx_buf = state->buf;
814 state->trx.rx_buf = state->buf;
815 spi_message_add_tail(&state->trx, &state->msg);
816 hrtimer_init(&state->timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
817 state->timer.function = at86rf230_async_state_timer;
904 /* check if we change from off state */
925 * The calibration is initiate by a state change from TRX_OFF
974 /* It's recommended to set random new csma_seeds before sleep state.
1720 at86rf230_setup_spi_messages(lp, &lp->state);