Lines Matching refs:xfer_id
367 unsigned long xfer_id, next_token; in scmi_xfer_token_set() local
380 xfer_id = find_next_zero_bit(minfo->xfer_alloc_table, in scmi_xfer_token_set()
382 if (xfer_id == MSG_TOKEN_MAX) { in scmi_xfer_token_set()
388 xfer_id = find_next_zero_bit(minfo->xfer_alloc_table, in scmi_xfer_token_set()
395 if (WARN_ON_ONCE(xfer_id == MSG_TOKEN_MAX)) in scmi_xfer_token_set()
400 if (xfer_id != next_token) in scmi_xfer_token_set()
401 atomic_add((int)(xfer_id - next_token), &transfer_last_id); in scmi_xfer_token_set()
403 xfer->hdr.seq = (u16)xfer_id; in scmi_xfer_token_set()
680 scmi_xfer_lookup_unlocked(struct scmi_xfers_info *minfo, u16 xfer_id) in scmi_xfer_lookup_unlocked() argument
684 if (test_bit(xfer_id, minfo->xfer_alloc_table)) in scmi_xfer_lookup_unlocked()
685 xfer = XFER_FIND(minfo->pending_xfers, xfer_id); in scmi_xfer_lookup_unlocked()
806 u16 xfer_id = MSG_XTRACT_TOKEN(msg_hdr); in scmi_xfer_command_acquire() local
810 xfer = scmi_xfer_lookup_unlocked(minfo, xfer_id); in scmi_xfer_command_acquire()
814 xfer_id, msg_type); in scmi_xfer_command_acquire()
839 msg_type, xfer_id, msg_hdr, xfer->state); in scmi_xfer_command_acquire()