Lines Matching refs:msg

302 					 const struct tcs_request *msg)  in get_tcs_for_msg()  argument
307 switch (msg->state) { in get_tcs_for_msg()
329 if (msg->state == RPMH_ACTIVE_ONLY_STATE && !tcs->num_tcs) in get_tcs_for_msg()
496 const struct tcs_request *msg) in __tcs_buffer_write() argument
505 cmd_msgid |= msg->wait_for_compl ? CMD_MSGID_RESP_REQ : 0; in __tcs_buffer_write()
507 for (i = 0, j = cmd_id; i < msg->num_cmds; i++, j++) { in __tcs_buffer_write()
508 cmd = &msg->cmds[i]; in __tcs_buffer_write()
520 trace_rpmh_send_msg(drv, tcs_id, msg->state, j, msgid, cmd); in __tcs_buffer_write()
548 const struct tcs_request *msg) in check_for_req_inflight() argument
560 for (k = 0; k < msg->num_cmds; k++) { in check_for_req_inflight()
561 if (cmd_db_match_resource_addr(msg->cmds[k].addr, addr)) in check_for_req_inflight()
608 const struct tcs_request *msg) in claim_tcs_for_req() argument
616 ret = check_for_req_inflight(drv, tcs, msg); in claim_tcs_for_req()
645 int rpmh_rsc_send_data(struct rsc_drv *drv, const struct tcs_request *msg) in rpmh_rsc_send_data() argument
652 tcs = get_tcs_for_msg(drv, msg); in rpmh_rsc_send_data()
660 (tcs_id = claim_tcs_for_req(drv, tcs, msg)) >= 0, in rpmh_rsc_send_data()
663 tcs->req[tcs_id - tcs->offset] = msg; in rpmh_rsc_send_data()
665 if (msg->state == RPMH_ACTIVE_ONLY_STATE && tcs->type != ACTIVE_TCS) { in rpmh_rsc_send_data()
684 __tcs_buffer_write(drv, tcs_id, 0, msg); in rpmh_rsc_send_data()
705 static int find_slots(struct tcs_group *tcs, const struct tcs_request *msg, in find_slots() argument
714 i, msg->num_cmds, 0); in find_slots()
718 } while (slot + msg->num_cmds - 1 >= i); in find_slots()
720 bitmap_set(tcs->slots, slot, msg->num_cmds); in find_slots()
742 int rpmh_rsc_write_ctrl_data(struct rsc_drv *drv, const struct tcs_request *msg) in rpmh_rsc_write_ctrl_data() argument
748 tcs = get_tcs_for_msg(drv, msg); in rpmh_rsc_write_ctrl_data()
753 ret = find_slots(tcs, msg, &tcs_id, &cmd_id); in rpmh_rsc_write_ctrl_data()
755 __tcs_buffer_write(drv, tcs_id, cmd_id, msg); in rpmh_rsc_write_ctrl_data()