Lines Matching refs:ldst_cmd
748 struct fw_ldst_cmd ldst_cmd; in t4_read_pcie_cfg4() local
751 memset(&ldst_cmd, 0, sizeof(ldst_cmd)); in t4_read_pcie_cfg4()
752 ldst_cmd.op_to_addrspace = in t4_read_pcie_cfg4()
757 ldst_cmd.cycles_to_len16 = cpu_to_be32(FW_LEN16(ldst_cmd)); in t4_read_pcie_cfg4()
758 ldst_cmd.u.pcie.select_naccess = V_FW_LDST_CMD_NACCESS(1); in t4_read_pcie_cfg4()
759 ldst_cmd.u.pcie.ctrl_to_fn = in t4_read_pcie_cfg4()
761 ldst_cmd.u.pcie.r = reg; in t4_read_pcie_cfg4()
767 ret = t4_wr_mbox(adap, adap->mbox, &ldst_cmd, sizeof(ldst_cmd), in t4_read_pcie_cfg4()
768 &ldst_cmd); in t4_read_pcie_cfg4()
770 return be32_to_cpu(ldst_cmd.u.pcie.data[0]); in t4_read_pcie_cfg4()
10980 struct fw_ldst_cmd ldst_cmd, ldst_rpl; in t4_i2c_io() local
10981 unsigned int i2c_max = sizeof(ldst_cmd.u.i2c.data); in t4_i2c_io()
10991 memset(&ldst_cmd, 0, sizeof(ldst_cmd)); in t4_i2c_io()
10992 ldst_cmd.op_to_addrspace = in t4_i2c_io()
10997 ldst_cmd.cycles_to_len16 = cpu_to_be32(FW_LEN16(ldst_cmd)); in t4_i2c_io()
10998 ldst_cmd.u.i2c.pid = (port < 0 ? 0xff : port); in t4_i2c_io()
10999 ldst_cmd.u.i2c.did = devid; in t4_i2c_io()
11004 ldst_cmd.u.i2c.boffset = offset; in t4_i2c_io()
11005 ldst_cmd.u.i2c.blen = i2c_len; in t4_i2c_io()
11008 memcpy(ldst_cmd.u.i2c.data, buf, i2c_len); in t4_i2c_io()
11010 ret = t4_wr_mbox(adap, mbox, &ldst_cmd, sizeof(ldst_cmd), in t4_i2c_io()