Lines Matching refs:xfer_id
278 unsigned long xfer_id, next_token; in scmi_xfer_token_set() local
291 xfer_id = find_next_zero_bit(minfo->xfer_alloc_table, in scmi_xfer_token_set()
293 if (xfer_id == MSG_TOKEN_MAX) { in scmi_xfer_token_set()
299 xfer_id = find_next_zero_bit(minfo->xfer_alloc_table, in scmi_xfer_token_set()
306 if (WARN_ON_ONCE(xfer_id == MSG_TOKEN_MAX)) in scmi_xfer_token_set()
311 if (xfer_id != next_token) in scmi_xfer_token_set()
312 atomic_add((int)(xfer_id - next_token), &transfer_last_id); in scmi_xfer_token_set()
315 set_bit(xfer_id, minfo->xfer_alloc_table); in scmi_xfer_token_set()
316 xfer->hdr.seq = (u16)xfer_id; in scmi_xfer_token_set()
444 scmi_xfer_lookup_unlocked(struct scmi_xfers_info *minfo, u16 xfer_id) in scmi_xfer_lookup_unlocked() argument
448 if (test_bit(xfer_id, minfo->xfer_alloc_table)) in scmi_xfer_lookup_unlocked()
449 xfer = XFER_FIND(minfo->pending_xfers, xfer_id); in scmi_xfer_lookup_unlocked()
570 u16 xfer_id = MSG_XTRACT_TOKEN(msg_hdr); in scmi_xfer_command_acquire() local
574 xfer = scmi_xfer_lookup_unlocked(minfo, xfer_id); in scmi_xfer_command_acquire()
578 xfer_id, msg_type); in scmi_xfer_command_acquire()
603 msg_type, xfer_id, msg_hdr, xfer->state); in scmi_xfer_command_acquire()