Lines Matching refs:xfer

79  * @xfer:	xfer info
92 struct ti_sci_xfer xfer;
130 struct ti_sci_xfer *xfer = &info->xfer;
144 xfer->tx_message.buf = buf;
145 xfer->tx_message.len = tx_message_size;
146 xfer->rx_len = (u8)rx_message_size;
154 return xfer;
160 * @xfer: Transfer to initiate and wait for response
168 struct ti_sci_xfer *xfer,
171 struct k3_sec_proxy_msg *msg = &xfer->tx_message;
201 dev_err(info->dev, "%s: Unable to handle %zu xfer (max %d)\n",
206 if (msg->len < xfer->rx_len) {
207 dev_err(info->dev, "%s: Recv xfer %zu < expected %d length\n",
208 __func__, msg->len, xfer->rx_len);
230 * @xfer: Transfer to initiate and wait for response
235 struct ti_sci_xfer *xfer)
237 struct k3_sec_proxy_msg *msg = &xfer->tx_message;
252 memcpy(&secure_buf[sizeof(*secure_hdr)], xfer->tx_message.buf,
253 xfer->tx_message.len);
255 xfer->tx_message.buf = (u32 *)secure_buf;
256 xfer->tx_message.len += sizeof(*secure_hdr);
258 if (xfer->rx_len)
259 xfer->rx_len += sizeof(*secure_hdr);
271 if (xfer->rx_len) {
272 ret = ti_sci_get_response(info, xfer, &info->chan_rx);
273 if (!ti_sci_is_response_ack(xfer->tx_message.buf)) {
296 struct ti_sci_xfer *xfer;
306 xfer = ti_sci_setup_one_xfer(info, TI_SCI_MSG_VERSION,
310 if (IS_ERR(xfer)) {
311 ret = PTR_ERR(xfer);
315 ret = ti_sci_do_xfer(info, xfer);
319 rev_info = (struct ti_sci_msg_resp_version *)xfer->tx_message.buf;
347 struct ti_sci_xfer *xfer;
357 xfer = ti_sci_setup_one_xfer(info, msg_type,
360 if (IS_ERR(xfer)) {
361 ret = PTR_ERR(xfer);
368 ret = ti_sci_do_xfer(info, xfer);
500 struct ti_sci_xfer *xfer;
510 xfer = ti_sci_setup_one_xfer(info, TI_SCI_MSG_SET_DEVICE_STATE,
513 if (IS_ERR(xfer)) {
514 ret = PTR_ERR(xfer);
520 ret = ti_sci_do_xfer(info, xfer);
547 struct ti_sci_xfer *xfer;
557 xfer = ti_sci_setup_one_xfer(info, TI_SCI_MSG_SET_DEVICE_STATE,
560 if (IS_ERR(xfer)) {
561 ret = PTR_ERR(xfer);
567 ret = ti_sci_do_xfer(info, xfer);
592 struct ti_sci_xfer *xfer;
605 xfer = ti_sci_setup_one_xfer(info, TI_SCI_MSG_GET_DEVICE_STATE,
608 if (IS_ERR(xfer)) {
609 ret = PTR_ERR(xfer);
614 ret = ti_sci_do_xfer(info, xfer);
618 resp = (struct ti_sci_msg_resp_get_device_state *)xfer->tx_message.buf;
878 struct ti_sci_xfer *xfer;
888 xfer = ti_sci_setup_one_xfer(info, TI_SCI_MSG_SET_DEVICE_RESETS,
891 if (IS_ERR(xfer)) {
892 ret = PTR_ERR(xfer);
898 ret = ti_sci_do_xfer(info, xfer);
940 struct ti_sci_xfer *xfer;
950 xfer = ti_sci_setup_one_xfer(info, TI_SCI_MSG_SET_CLOCK_STATE,
953 if (IS_ERR(xfer)) {
954 ret = PTR_ERR(xfer);
961 ret = ti_sci_do_xfer(info, xfer);
987 struct ti_sci_xfer *xfer;
1000 xfer = ti_sci_setup_one_xfer(info, TI_SCI_MSG_GET_CLOCK_STATE,
1003 if (IS_ERR(xfer)) {
1004 ret = PTR_ERR(xfer);
1010 ret = ti_sci_do_xfer(info, xfer);
1014 resp = (struct ti_sci_msg_resp_get_clock_state *)xfer->tx_message.buf;
1200 struct ti_sci_xfer *xfer;
1210 xfer = ti_sci_setup_one_xfer(info, TI_SCI_MSG_SET_CLOCK_PARENT,
1213 if (IS_ERR(xfer)) {
1214 ret = PTR_ERR(xfer);
1221 ret = ti_sci_do_xfer(info, xfer);
1245 struct ti_sci_xfer *xfer;
1255 xfer = ti_sci_setup_one_xfer(info, TI_SCI_MSG_GET_CLOCK_PARENT,
1258 if (IS_ERR(xfer)) {
1259 ret = PTR_ERR(xfer);
1265 ret = ti_sci_do_xfer(info, xfer);
1292 struct ti_sci_xfer *xfer;
1302 xfer = ti_sci_setup_one_xfer(info, TI_SCI_MSG_GET_NUM_CLOCK_PARENTS,
1305 if (IS_ERR(xfer)) {
1306 ret = PTR_ERR(xfer);
1312 ret = ti_sci_do_xfer(info, xfer);
1317 xfer->tx_message.buf;
1351 struct ti_sci_xfer *xfer;
1361 xfer = ti_sci_setup_one_xfer(info, TI_SCI_MSG_QUERY_CLOCK_FREQ,
1364 if (IS_ERR(xfer)) {
1365 ret = PTR_ERR(xfer);
1374 ret = ti_sci_do_xfer(info, xfer);
1378 resp = (struct ti_sci_msg_resp_query_clock_freq *)xfer->tx_message.buf;
1410 struct ti_sci_xfer *xfer;
1420 xfer = ti_sci_setup_one_xfer(info, TI_SCI_MSG_SET_CLOCK_FREQ,
1423 if (IS_ERR(xfer)) {
1424 ret = PTR_ERR(xfer);
1433 ret = ti_sci_do_xfer(info, xfer);
1457 struct ti_sci_xfer *xfer;
1467 xfer = ti_sci_setup_one_xfer(info, TI_SCI_MSG_GET_CLOCK_FREQ,
1470 if (IS_ERR(xfer)) {
1471 ret = PTR_ERR(xfer);
1477 ret = ti_sci_do_xfer(info, xfer);
1481 resp = (struct ti_sci_msg_resp_get_clock_freq *)xfer->tx_message.buf;
1499 struct ti_sci_xfer *xfer;
1509 xfer = ti_sci_setup_one_xfer(info, TI_SCI_MSG_SYS_RESET,
1512 if (IS_ERR(xfer)) {
1513 ret = PTR_ERR(xfer);
1518 ret = ti_sci_do_xfer(info, xfer);
1545 struct ti_sci_xfer *xfer;
1556 xfer = ti_sci_setup_one_xfer(info, TI_SCI_MSG_GET_RESOURCE_RANGE,
1559 if (IS_ERR(xfer)) {
1560 ret = PTR_ERR(xfer);
1568 ret = ti_sci_do_xfer(info, xfer);
1572 resp = (struct ti_sci_msg_resp_get_resource_range *)xfer->tx_message.buf;
1669 struct ti_sci_xfer *xfer;
1679 xfer = ti_sci_setup_one_xfer(info, TISCI_MSG_QUERY_MSMC,
1682 if (IS_ERR(xfer)) {
1683 ret = PTR_ERR(xfer);
1687 ret = ti_sci_do_xfer(info, xfer);
1691 resp = (struct ti_sci_msg_resp_query_msmc *)xfer->tx_message.buf;
1714 struct ti_sci_xfer *xfer;
1724 xfer = ti_sci_setup_one_xfer(info, TISCI_MSG_PROC_REQUEST,
1727 if (IS_ERR(xfer)) {
1728 ret = PTR_ERR(xfer);
1733 ret = ti_sci_do_xfer(info, xfer);
1753 struct ti_sci_xfer *xfer;
1763 xfer = ti_sci_setup_one_xfer(info, TISCI_MSG_PROC_RELEASE,
1766 if (IS_ERR(xfer)) {
1767 ret = PTR_ERR(xfer);
1772 ret = ti_sci_do_xfer(info, xfer);
1795 struct ti_sci_xfer *xfer;
1805 xfer = ti_sci_setup_one_xfer(info, TISCI_MSG_PROC_HANDOVER,
1808 if (IS_ERR(xfer)) {
1809 ret = PTR_ERR(xfer);
1815 ret = ti_sci_do_xfer(info, xfer);
1840 struct ti_sci_xfer *xfer;
1850 xfer = ti_sci_setup_one_xfer(info, TISCI_MSG_SET_PROC_BOOT_CONFIG,
1853 if (IS_ERR(xfer)) {
1854 ret = PTR_ERR(xfer);
1864 ret = ti_sci_do_xfer(info, xfer);
1888 struct ti_sci_xfer *xfer;
1898 xfer = ti_sci_setup_one_xfer(info, TISCI_MSG_SET_PROC_BOOT_CTRL,
1901 if (IS_ERR(xfer)) {
1902 ret = PTR_ERR(xfer);
1909 ret = ti_sci_do_xfer(info, xfer);
1934 struct ti_sci_xfer *xfer;
1944 xfer = ti_sci_setup_one_xfer(info, TISCI_MSG_PROC_AUTH_BOOT_IMAGE,
1947 if (IS_ERR(xfer)) {
1948 ret = PTR_ERR(xfer);
1955 ret = ti_sci_do_xfer(info, xfer);
1959 resp = (struct ti_sci_msg_resp_proc_auth_boot_image *)xfer->tx_message.buf;
1983 struct ti_sci_xfer *xfer;
1993 xfer = ti_sci_setup_one_xfer(info, TISCI_MSG_GET_PROC_BOOT_STATUS,
1996 if (IS_ERR(xfer)) {
1997 ret = PTR_ERR(xfer);
2002 ret = ti_sci_do_xfer(info, xfer);
2007 xfer->tx_message.buf;
2068 struct ti_sci_xfer *xfer;
2078 xfer = ti_sci_setup_one_xfer(info, TISCI_MSG_WAIT_PROC_BOOT_STATUS,
2081 if (IS_ERR(xfer)) {
2082 ret = PTR_ERR(xfer);
2095 ret = ti_sci_do_xfer(info, xfer);
2181 struct ti_sci_xfer *xfer;
2192 xfer = ti_sci_setup_one_xfer(info, TI_SCI_MSG_RM_RING_CFG,
2195 if (IS_ERR(xfer)) {
2196 ret = PTR_ERR(xfer);
2209 ret = ti_sci_do_xfer(info, xfer);
2223 struct ti_sci_xfer *xfer;
2234 xfer = ti_sci_setup_one_xfer(info, TI_SCI_MSG_RM_PSIL_PAIR,
2237 if (IS_ERR(xfer)) {
2238 ret = PTR_ERR(xfer);
2245 ret = ti_sci_do_xfer(info, xfer);
2260 struct ti_sci_xfer *xfer;
2271 xfer = ti_sci_setup_one_xfer(info, TI_SCI_MSG_RM_PSIL_UNPAIR,
2274 if (IS_ERR(xfer)) {
2275 ret = PTR_ERR(xfer);
2282 ret = ti_sci_do_xfer(info, xfer);
2298 struct ti_sci_xfer *xfer;
2309 xfer = ti_sci_setup_one_xfer(info, TISCI_MSG_RM_UDMAP_TX_CH_CFG,
2312 if (IS_ERR(xfer)) {
2313 ret = PTR_ERR(xfer);
2337 ret = ti_sci_do_xfer(info, xfer);
2352 struct ti_sci_xfer *xfer;
2363 xfer = ti_sci_setup_one_xfer(info, TISCI_MSG_RM_UDMAP_RX_CH_CFG,
2366 if (IS_ERR(xfer)) {
2367 ret = PTR_ERR(xfer);
2388 ret = ti_sci_do_xfer(info, xfer);
2403 struct ti_sci_xfer *xfer;
2414 xfer = ti_sci_setup_one_xfer(info, TISCI_MSG_RM_UDMAP_FLOW_CFG,
2417 if (IS_ERR(xfer)) {
2418 ret = PTR_ERR(xfer);
2445 ret = ti_sci_do_xfer(info, xfer);
2467 struct ti_sci_xfer *xfer;
2477 xfer = ti_sci_setup_one_xfer(info, TISCI_MSG_FWL_SET,
2480 if (IS_ERR(xfer)) {
2481 ret = PTR_ERR(xfer);
2495 ret = ti_sci_do_xfer(info, xfer);
2515 struct ti_sci_xfer *xfer;
2525 xfer = ti_sci_setup_one_xfer(info, TISCI_MSG_FWL_GET,
2528 if (IS_ERR(xfer)) {
2529 ret = PTR_ERR(xfer);
2537 ret = ti_sci_do_xfer(info, xfer);
2541 resp = (struct ti_sci_msg_fwl_get_firewall_region_resp *)xfer->tx_message.buf;
2569 struct ti_sci_xfer *xfer;
2579 xfer = ti_sci_setup_one_xfer(info, TISCI_MSG_FWL_CHANGE_OWNER,
2582 if (IS_ERR(xfer)) {
2583 ret = PTR_ERR(xfer);
2591 ret = ti_sci_do_xfer(info, xfer);
2595 resp = (struct ti_sci_msg_fwl_change_owner_info_resp *)xfer->tx_message.buf;