Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/firmware/arm_scmi/
Dvirtio.c114 static void scmi_vio_channel_ready(struct scmi_vio_channel *vioch, in scmi_vio_channel_ready() argument
119 spin_lock_irqsave(&vioch->lock, flags); in scmi_vio_channel_ready()
120 cinfo->transport_info = vioch; in scmi_vio_channel_ready()
122 vioch->cinfo = cinfo; in scmi_vio_channel_ready()
123 spin_unlock_irqrestore(&vioch->lock, flags); in scmi_vio_channel_ready()
125 refcount_set(&vioch->users, 1); in scmi_vio_channel_ready()
128 static inline bool scmi_vio_channel_acquire(struct scmi_vio_channel *vioch) in scmi_vio_channel_acquire() argument
130 return refcount_inc_not_zero(&vioch->users); in scmi_vio_channel_acquire()
133 static inline void scmi_vio_channel_release(struct scmi_vio_channel *vioch) in scmi_vio_channel_release() argument
135 if (refcount_dec_and_test(&vioch->users)) { in scmi_vio_channel_release()
[all …]