Home
last modified time | relevance | path

Searched refs:ldst_cmd (Results 1 – 3 of 3) sorted by relevance

/freebsd-12-stable/sys/dev/cxgbe/common/
Dt4_hw.c750 struct fw_ldst_cmd ldst_cmd; in t4_read_pcie_cfg4() local
753 memset(&ldst_cmd, 0, sizeof(ldst_cmd)); in t4_read_pcie_cfg4()
754 ldst_cmd.op_to_addrspace = in t4_read_pcie_cfg4()
759 ldst_cmd.cycles_to_len16 = cpu_to_be32(FW_LEN16(ldst_cmd)); in t4_read_pcie_cfg4()
760 ldst_cmd.u.pcie.select_naccess = V_FW_LDST_CMD_NACCESS(1); in t4_read_pcie_cfg4()
761 ldst_cmd.u.pcie.ctrl_to_fn = in t4_read_pcie_cfg4()
763 ldst_cmd.u.pcie.r = reg; in t4_read_pcie_cfg4()
769 ret = t4_wr_mbox(adap, adap->mbox, &ldst_cmd, sizeof(ldst_cmd), in t4_read_pcie_cfg4()
770 &ldst_cmd); in t4_read_pcie_cfg4()
772 return be32_to_cpu(ldst_cmd.u.pcie.data[0]); in t4_read_pcie_cfg4()
[all …]
/freebsd-12-stable/sys/dev/cxgbe/
Dt4_main.c8633 struct fw_ldst_cmd ldst_cmd; in sysctl_mps_tcam() local
8635 memset(&ldst_cmd, 0, sizeof(ldst_cmd)); in sysctl_mps_tcam()
8636 ldst_cmd.op_to_addrspace = in sysctl_mps_tcam()
8640 ldst_cmd.cycles_to_len16 = htobe32(FW_LEN16(ldst_cmd)); in sysctl_mps_tcam()
8641 ldst_cmd.u.mps.rplc.fid_idx = in sysctl_mps_tcam()
8649 rc = -t4_wr_mbox(sc, sc->mbox, &ldst_cmd, in sysctl_mps_tcam()
8650 sizeof(ldst_cmd), &ldst_cmd); in sysctl_mps_tcam()
8658 be32toh(ldst_cmd.u.mps.rplc.rplc127_96), in sysctl_mps_tcam()
8659 be32toh(ldst_cmd.u.mps.rplc.rplc95_64), in sysctl_mps_tcam()
8660 be32toh(ldst_cmd.u.mps.rplc.rplc63_32), in sysctl_mps_tcam()
[all …]
/freebsd-12-stable/sys/dev/cxgbe/cudbg/
Dcudbg_lib.c3604 struct fw_ldst_cmd ldst_cmd; in collect_mps_tcam() local
3607 memset(&ldst_cmd, 0, sizeof(ldst_cmd)); in collect_mps_tcam()
3608 ldst_cmd.op_to_addrspace = in collect_mps_tcam()
3615 ldst_cmd.cycles_to_len16 = htonl(FW_LEN16(ldst_cmd)); in collect_mps_tcam()
3617 ldst_cmd.u.mps.rplc.fid_idx = in collect_mps_tcam()
3624 rc = t4_wr_mbox(padap, padap->mbox, &ldst_cmd, in collect_mps_tcam()
3625 sizeof(ldst_cmd), &ldst_cmd); in collect_mps_tcam()
3632 mps_rplc = ldst_cmd.u.mps.rplc; in collect_mps_tcam()