Lines Matching refs:ldst_cmd
738 struct fw_ldst_cmd ldst_cmd; in t4_read_pcie_cfg4() local
741 memset(&ldst_cmd, 0, sizeof(ldst_cmd)); in t4_read_pcie_cfg4()
743 ldst_cmd.op_to_addrspace = cpu_to_be32(FW_CMD_OP_V(FW_LDST_CMD) | in t4_read_pcie_cfg4()
747 ldst_cmd.cycles_to_len16 = cpu_to_be32(FW_LEN16(ldst_cmd)); in t4_read_pcie_cfg4()
748 ldst_cmd.u.pcie.select_naccess = FW_LDST_CMD_NACCESS_V(1); in t4_read_pcie_cfg4()
749 ldst_cmd.u.pcie.ctrl_to_fn = in t4_read_pcie_cfg4()
751 ldst_cmd.u.pcie.r = reg; in t4_read_pcie_cfg4()
756 ret = t4_wr_mbox(adap, adap->mbox, &ldst_cmd, sizeof(ldst_cmd), in t4_read_pcie_cfg4()
757 &ldst_cmd); in t4_read_pcie_cfg4()
759 val = be32_to_cpu(ldst_cmd.u.pcie.data[0]); in t4_read_pcie_cfg4()
10421 struct fw_ldst_cmd ldst_cmd, ldst_rpl; in t4_i2c_rd() local
10422 unsigned int i2c_max = sizeof(ldst_cmd.u.i2c.data); in t4_i2c_rd()
10432 memset(&ldst_cmd, 0, sizeof(ldst_cmd)); in t4_i2c_rd()
10433 ldst_cmd.op_to_addrspace = in t4_i2c_rd()
10438 ldst_cmd.cycles_to_len16 = cpu_to_be32(FW_LEN16(ldst_cmd)); in t4_i2c_rd()
10439 ldst_cmd.u.i2c.pid = (port < 0 ? 0xff : port); in t4_i2c_rd()
10440 ldst_cmd.u.i2c.did = devid; in t4_i2c_rd()
10445 ldst_cmd.u.i2c.boffset = offset; in t4_i2c_rd()
10446 ldst_cmd.u.i2c.blen = i2c_len; in t4_i2c_rd()
10448 ret = t4_wr_mbox(adap, mbox, &ldst_cmd, sizeof(ldst_cmd), in t4_i2c_rd()