Lines Matching defs:state

19  * for communicating single bit state information to remote processors.
22 * holding the state bits and the second holding a matrix of subscription bits.
24 * The state bits are structured in entries of 32 bits, each belonging to one
29 * in updates of the entry for each of the N hosts. Upon updating a state bit
40 * the number of entries in the state bitmap as well as number of columns in
66 * @num_entries: number of entries in the state map and rows in the subscription
68 * @local_state: pointer to the local processor's state bits
70 * @state: smem state handle
71 * @lock: spinlock for read-modify-write of the outgoing state
85 struct qcom_smem_state *state;
97 * @irq_enabled: bitmap of which state bits IRQs are enabled
100 * @last_value: snapshot of state bits last time the interrupts where propagated
101 * @remote_state: pointer to this entry's state bits
196 * the state bits and configuration.
268 /* Make sure our last cached state is up-to-date */
498 if (of_find_property(local_node, "#qcom,smem-state-cells", NULL))
502 dev_err(&pdev->dev, "no state entry\n");
517 /* Acquire the main SMSM state vector */
521 dev_err(&pdev->dev, "unable to allocate shared state entry\n");
527 dev_err(&pdev->dev, "Unable to acquire shared state entry\n");
547 /* Setup the reference to the local state bits */
551 /* Register the outgoing state */
552 smsm->state = qcom_smem_state_register(local_node, &smsm_state_ops, smsm);
553 if (IS_ERR(smsm->state)) {
555 ret = PTR_ERR(smsm->state);
596 qcom_smem_state_unregister(smsm->state);
611 qcom_smem_state_unregister(smsm->state);