/openbmc/linux/sound/soc/fsl/ |
H A D | fsl_asrc_dma.c | 46 struct fsl_asrc_pair *pair = runtime->private_data; in fsl_asrc_dma_complete() local 48 pair->pos += snd_pcm_lib_period_bytes(substream); in fsl_asrc_dma_complete() 49 if (pair->pos >= snd_pcm_lib_buffer_bytes(substream)) in fsl_asrc_dma_complete() 50 pair->pos = 0; in fsl_asrc_dma_complete() 60 struct fsl_asrc_pair *pair = runtime->private_data; in fsl_asrc_dma_prepare_and_submit() local 68 pair->pos = 0; in fsl_asrc_dma_prepare_and_submit() 69 pair->desc[!dir] = dmaengine_prep_dma_cyclic( in fsl_asrc_dma_prepare_and_submit() 70 pair->dma_chan[!dir], runtime->dma_addr, in fsl_asrc_dma_prepare_and_submit() 74 if (!pair->desc[!dir]) { in fsl_asrc_dma_prepare_and_submit() 79 pair->desc[!dir]->callback = fsl_asrc_dma_complete; in fsl_asrc_dma_prepare_and_submit() [all …]
|
H A D | fsl_asrc.c | 26 dev_err(&asrc->pdev->dev, "Pair %c: " fmt, 'A' + index, ##__VA_ARGS__) 29 dev_dbg(&asrc->pdev->dev, "Pair %c: " fmt, 'A' + index, ##__VA_ARGS__) 32 dev_warn(&asrc->pdev->dev, "Pair %c: " fmt, 'A' + index, ##__VA_ARGS__) 206 * fsl_asrc_request_pair - Request ASRC pair 208 * @pair: pointer to pair 210 * It assigns pair by the order of A->C->B because allocation of pair B, 211 * within range [ANCA, ANCA+ANCB-1], depends on the channels of pair A 212 * while pair A and pair C are comparatively independent. 214 static int fsl_asrc_request_pair(int channels, struct fsl_asrc_pair *pair) in fsl_asrc_request_pair() argument 217 struct fsl_asrc *asrc = pair->asrc; in fsl_asrc_request_pair() [all …]
|
H A D | fsl_asrc_common.h | 25 * fsl_asrc_pair: ASRC Pair common data 29 * @index: pair index (ASRC_PAIR_A, ASRC_PAIR_B, ASRC_PAIR_C) 36 * @private: pair private area 66 * @pair: pair pointers 75 * @pair_priv_size: size of pair private struct. 89 struct fsl_asrc_pair *pair[PAIR_CTX_NUM]; member 96 struct dma_chan *(*get_dma_channel)(struct fsl_asrc_pair *pair, bool dir); 97 int (*request_pair)(int channels, struct fsl_asrc_pair *pair); 98 void (*release_pair)(struct fsl_asrc_pair *pair);
|
/openbmc/linux/arch/riscv/kernel/ |
H A D | sys_riscv.c | 85 static void hwprobe_arch_id(struct riscv_hwprobe *pair, in hwprobe_arch_id() argument 95 switch (pair->key) { in hwprobe_arch_id() 122 pair->value = id; in hwprobe_arch_id() 125 static void hwprobe_isa_ext0(struct riscv_hwprobe *pair, in hwprobe_isa_ext0() argument 131 pair->value = 0; in hwprobe_isa_ext0() 133 pair->value |= RISCV_HWPROBE_IMA_FD; in hwprobe_isa_ext0() 136 pair->value |= RISCV_HWPROBE_IMA_C; in hwprobe_isa_ext0() 139 pair->value |= RISCV_HWPROBE_IMA_V; in hwprobe_isa_ext0() 149 pair->value |= RISCV_HWPROBE_EXT_ZBA; in hwprobe_isa_ext0() 154 pair->value |= RISCV_HWPROBE_EXT_ZBB; in hwprobe_isa_ext0() [all …]
|
/openbmc/phosphor-inventory-manager/ |
H A D | utils.hpp | 122 * @brief std::pair binary comparison adapter. 125 * the first pair element. 140 * @tparam L1 - First pair first_type. 141 * @tparam L2 - First pair second_type. 142 * @tparam R1 - Second pair first_type, convertible to L1. 143 * @tparam R2 - Second pair second_type. 145 * @param[in] l - The first pair. 146 * @param[in] r - The second pair. 151 bool operator()(const std::pair<L1, L2>& l, in operator ()() 152 const std::pair<R1, R2>& r) const in operator ()() [all …]
|
/openbmc/linux/tools/perf/ |
H A D | builtin-diff.c | 279 static double compute_delta(struct hist_entry *he, struct hist_entry *pair) in compute_delta() argument 282 double new_percent = period_percent(pair, pair->stat.period); in compute_delta() 284 pair->diff.period_ratio_delta = new_percent - old_percent; in compute_delta() 285 pair->diff.computed = true; in compute_delta() 286 return pair->diff.period_ratio_delta; in compute_delta() 289 static double compute_ratio(struct hist_entry *he, struct hist_entry *pair) in compute_ratio() argument 292 double new_period = pair->stat.period; in compute_ratio() 294 pair->diff.computed = true; in compute_ratio() 295 pair->diff.period_ratio = new_period / old_period; in compute_ratio() 296 return pair->diff.period_ratio; in compute_ratio() [all …]
|
/openbmc/telemetry/tests/src/ |
H A D | test_make_id_name.cpp | 43 EXPECT_THAT(this->makeIdName("id0", name), Eq(std::pair{"id0"s, name})); in TEST_F() 45 Eq(std::pair{"prefix/id2"s, name})); in TEST_F() 52 EXPECT_THAT(this->makeIdName("", ""), Eq(std::pair{"def"s, "def"s})); in TEST_F() 54 Eq(std::pair{"abc/def"s, "def"s})); in TEST_F() 62 EXPECT_THAT(this->makeIdName("", name), Eq(std::pair{"def"s, name})); in TEST_F() 64 Eq(std::pair{"prefix/def"s, name})); in TEST_F() 82 Eq(std::pair{"id0"s, "id0"s})); in TEST_F() 84 Eq(std::pair{"prefix/id2"s, "id2"s})); in TEST_F() 143 Eq(std::pair{"trigger0"s, "trigger"s})); in TYPED_TEST() 147 Eq(std::pair{"trigger1"s, "trigger"s})); in TYPED_TEST() [all …]
|
/openbmc/linux/tools/perf/tests/ |
H A D | vmlinux-kallsyms.c | 217 struct symbol *pair, *first_pair; in test__vmlinux_matches_kallsyms() local 228 pair = first_pair; in test__vmlinux_matches_kallsyms() 230 if (pair && UM(pair->start) == mem_start) { in test__vmlinux_matches_kallsyms() 232 if (arch__compare_symbol_names(sym->name, pair->name) == 0) { in test__vmlinux_matches_kallsyms() 242 s64 skew = mem_end - UM(pair->end); in test__vmlinux_matches_kallsyms() 246 UM(pair->end)); in test__vmlinux_matches_kallsyms() 256 pair = machine__find_kernel_symbol_by_name(&kallsyms, sym->name, NULL); in test__vmlinux_matches_kallsyms() 257 if (pair) { in test__vmlinux_matches_kallsyms() 258 if (UM(pair->start) == mem_start) in test__vmlinux_matches_kallsyms() 262 mem_start, sym->name, pair->name); in test__vmlinux_matches_kallsyms() [all …]
|
/openbmc/qemu/hw/virtio/ |
H A D | virtio-nsm.c | 309 struct cbor_pair *pair; in get_nsm_describe_pcr_req() local 319 pair = cbor_map_handle(item); in get_nsm_describe_pcr_req() 320 if (!cbor_isa_map(pair->value)) { in get_nsm_describe_pcr_req() 323 size = cbor_map_size(pair->value); in get_nsm_describe_pcr_req() 328 pair = cbor_map_handle(pair->value); in get_nsm_describe_pcr_req() 330 if (!cbor_isa_string(pair[i].key)) { in get_nsm_describe_pcr_req() 334 str = cbor_string_handle(pair[i].key); in get_nsm_describe_pcr_req() 335 if (str && cbor_string_length(pair[i].key) == 5 && in get_nsm_describe_pcr_req() 337 if (!cbor_isa_uint(pair[i].value) || in get_nsm_describe_pcr_req() 338 cbor_int_get_width(pair[i].value) != CBOR_INT_8) { in get_nsm_describe_pcr_req() [all …]
|
/openbmc/linux/drivers/misc/vmw_vmci/ |
H A D | vmci_queue_pair.c | 62 * In more detail. When a VMCI queue pair is first created, it will be in the 71 * vmci_qp_broker_set_page_store to specify the UVAs of the queue pair at 76 * - VMCIQPB_CREATED_MEM: this state is the result when the queue pair 77 * is created by a VMX using the queue pair device backend that 78 * sets the UVAs of the queue pair immediately and stores the 82 * Once the queue pair is in one of the created states (with the exception of 84 * queue pair. Again we have two new states possible: 90 * pair, and attaches to a queue pair previously created by the host side. 92 * - from VMCIQPB_CREATED_MEM when the host side attaches to a queue pair 98 * - VMCIQPB_ATTACHED_NO_MEM: If the queue pair already was in the [all …]
|
H A D | vmci_queue_pair.h | 35 u64 ppn_va; /* Start VA of queue pair PPNs. */ 44 u64 va; /* Start VA of queue pair PPNs. */ 98 * struct vmci_qp_page_store describes how the memory of a given queue pair 99 * is backed. When the queue pair is between the host and a guest, the 102 * queue pair is mapped into the VMX address space. 105 /* Reference to pages backing the queue pair. */ 114 * pair of end points, A & B. One queue is used by end point A to transmit
|
/openbmc/openpower-vpd-parser/test/ |
H A D | utest_ddimm_parser.cpp | 19 std::pair<std::string, size_t>{"MemorySizeInKB", 0x2000000}, in TEST() 20 std::pair<std::string, types::BinaryVector>{ in TEST() 22 std::pair<std::string, types::BinaryVector>{ in TEST() 24 std::pair<std::string, types::BinaryVector>{ in TEST() 28 std::pair<std::string, types::BinaryVector>{"CC", in TEST() 30 std::pair<std::string, types::BinaryVector>{"DI", {0x80, 0xCE}}}; in TEST() 43 std::pair<std::string, size_t>{"MemorySizeInKB", 0x4000000}, in TEST() 44 std::pair<std::string, types::BinaryVector>{ in TEST() 46 std::pair<std::string, types::BinaryVector>{ in TEST() 48 std::pair<std::string, types::BinaryVector>{ in TEST() [all …]
|
H A D | utest_keyword_parser.cpp | 17 std::pair<std::string, types::BinaryVector>{"WI", {0x00}}, in TEST() 18 std::pair<std::string, types::BinaryVector>{ in TEST() 20 std::pair<std::string, types::BinaryVector>{ in TEST() 28 std::pair<std::string, types::BinaryVector>{ in TEST() 32 std::pair<std::string, types::BinaryVector>{"MF", {0x00, 0x10}}, in TEST() 33 std::pair<std::string, types::BinaryVector>{"VZ", {0x30, 0x33}}, in TEST() 34 std::pair<std::string, types::BinaryVector>{ in TEST() 36 std::pair<std::string, types::BinaryVector>{ in TEST() 38 std::pair<std::string, types::BinaryVector>{"CE", {0x31}}, in TEST() 39 std::pair<std::string, types::BinaryVector>{ in TEST() [all …]
|
/openbmc/bmcweb/test/http/ |
H A D | http2_connection_test.cpp | 40 using ::testing::Pair; 67 std::vector<std::pair<std::string, std::string>>& headers) in unpackHeaders() 170 std::vector<std::pair<std::string, std::string>> headers; in TEST() 176 Pair(":status", "200"), Pair("content-length", "12"), in TEST() 177 Pair("strict-transport-security", in TEST() 179 Pair("cache-control", "no-store, max-age=0"), in TEST() 180 Pair("x-content-type-options", "nosniff"), in TEST() 181 Pair("pragma", "no-cache"), Pair("date", "TestTime"))); in TEST()
|
/openbmc/linux/arch/mips/include/asm/ |
H A D | maar.h | 28 * write_maar_pair() - write to a pair of MAARs 29 * @idx: The index of the pair (ie. use MAARs idx*2 & (idx*2)+1). 30 * @lower: The lowest address that the MAAR pair will affect. Must be 32 * @upper: The highest address that the MAAR pair will affect. Must be 37 * Program the pair of MAAR registers specified by idx to apply the attributes 88 * @lower: The lowest address that the MAAR pair will affect. Must be 90 * @upper: The highest address that the MAAR pair will affect. Must be 95 * Describes the configuration of a pair of Memory Accessibility Attribute
|
/openbmc/qemu/util/ |
H A D | cpuinfo-riscv.c | 69 struct riscv_hwprobe pair = { .key = RISCV_HWPROBE_KEY_IMA_EXT_0 }; in cpuinfo_init() local 70 if (syscall(__NR_riscv_hwprobe, &pair, 1, 0, NULL, 0) == 0 in cpuinfo_init() 71 && pair.key >= 0) { in cpuinfo_init() 72 info |= pair.value & RISCV_HWPROBE_EXT_ZBA ? CPUINFO_ZBA : 0; in cpuinfo_init() 73 info |= pair.value & RISCV_HWPROBE_EXT_ZBB ? CPUINFO_ZBB : 0; in cpuinfo_init() 76 info |= pair.value & RISCV_HWPROBE_EXT_ZICOND ? CPUINFO_ZICOND : 0; in cpuinfo_init() 80 info |= pair.value & RISCV_HWPROBE_IMA_V ? CPUINFO_ZVE64X : 0; in cpuinfo_init() 82 info |= pair.value & RISCV_HWPROBE_EXT_ZVE64X ? CPUINFO_ZVE64X : 0; in cpuinfo_init()
|
/openbmc/linux/include/linux/ |
H A D | ethtool_netlink.h | 26 int ethnl_cable_test_result(struct phy_device *phydev, u8 pair, u8 result); 27 int ethnl_cable_test_fault_length(struct phy_device *phydev, u8 pair, u32 cm); 28 int ethnl_cable_test_amplitude(struct phy_device *phydev, u8 pair, s16 mV); 57 static inline int ethnl_cable_test_result(struct phy_device *phydev, u8 pair, in ethnl_cable_test_result() argument 64 u8 pair, u32 cm) in ethnl_cable_test_fault_length() argument 70 u8 pair, s16 mV) in ethnl_cable_test_amplitude() argument
|
/openbmc/libcper/sections/ |
H A D | cper-section-pci-dev.c | 82 //Save current pair to array. in cper_section_pci_dev_to_ir() 94 //Move to next pair. in cper_section_pci_dev_to_ir() 168 //Get the pair array item out. in ir_section_pci_dev_to_cper() 172 //Create the pair array. in ir_section_pci_dev_to_cper() 173 UINT64 pair[2]; in ir_section_pci_dev_to_cper() local 174 pair[0] = json_object_get_uint64(json_object_object_get( in ir_section_pci_dev_to_cper() 176 pair[1] = json_object_get_uint64(json_object_object_get( in ir_section_pci_dev_to_cper() 180 fwrite(pair, sizeof(UINT64), 2, out); in ir_section_pci_dev_to_cper()
|
/openbmc/phosphor-webui/app/common/styles/layout/ |
H A D | list.scss | 2 * Used for any key value pair 4 <dl class="list-pair"> 10 .list-pair { 21 + .list-pair {
|
/openbmc/phosphor-pid-control/ |
H A D | util.cpp | 39 for (const auto& pair : sensorConfig) in debugPrint() local 41 std::cout << "\t{" << pair.first << ",\n\t\t{"; in debugPrint() 42 std::cout << pair.second.type << ", "; in debugPrint() 43 std::cout << pair.second.readPath << ", "; in debugPrint() 44 std::cout << pair.second.writePath << ", "; in debugPrint() 45 std::cout << pair.second.min << ", "; in debugPrint() 46 std::cout << pair.second.max << ", "; in debugPrint() 47 std::cout << pair.second.timeout << ", "; in debugPrint() 48 std::cout << pair.second.unavailableAsFailed << "},\n\t},\n"; in debugPrint()
|
/openbmc/phosphor-pid-control/test/ |
H A D | dbus_passive_unittest.cpp | 182 // Read the string in the pair (dictionary). in TEST_F() 194 .WillOnce(Return(1)); // So it exits the loop after reading one pair. in TEST_F() 196 // std::pair in TEST_F() 218 .WillOnce(Return(0)) /* std::pair */ in TEST_F() 255 // Read the string in the pair (dictionary). in TEST_F() 267 .WillOnce(Return(1)); // So it exits the loop after reading one pair. in TEST_F() 269 // std::pair in TEST_F() 291 .WillOnce(Return(0)) /* std::pair */ in TEST_F() 326 // Read the string in the pair (dictionary). in TEST_F() 338 .WillOnce(Return(1)); // So it exits the loop after reading one pair. in TEST_F() [all …]
|
/openbmc/qemu/tests/qtest/ |
H A D | dbus-display-test.c | 46 int pair[2]; in test_setup() local 50 g_assert_cmpint(qemu_socketpair(AF_UNIX, SOCK_STREAM, 0, pair), ==, 0); in test_setup() 52 qtest_qmp_add_client(*qts, "@dbus-display", pair[1]); in test_setup() 54 *conn = test_dbus_p2p_from_fd(pair[0]); in test_setup() 226 int pair[2]; in test_dbus_display_console() local 238 g_assert_cmpint(qemu_socketpair(AF_UNIX, SOCK_STREAM, 0, pair), ==, 0); in test_dbus_display_console() 241 idx = g_unix_fd_list_append(fd_list, pair[1], NULL); in test_dbus_display_console() 256 GINT_TO_POINTER(pair[0])); in test_dbus_display_console() 259 if (WSADuplicateSocketW(_get_osfhandle(pair[1]), in test_dbus_display_console() 266 close(pair[1]); in test_dbus_display_console()
|
H A D | vnc-display-test.c | 45 int pair[2]; in test_setup() 49 g_assert_cmpint(qemu_socketpair(AF_UNIX, SOCK_STREAM, 0, pair), ==, 0); in test_setup() 51 qtest_qmp_add_client(test->qts, "vnc", pair[1]); in test_setup() 61 vnc_connection_open_fd(test->conn, _get_osfhandle(pair[0])); in test_setup() 63 vnc_connection_open_fd(test->conn, pair[0]); in test_setup()
|
/openbmc/telemetry/tests/src/params/ |
H A D | metric_params.hpp | 49 MetricParams& readings(std::vector<std::pair<Milliseconds, double>> value) in readings() 55 const std::vector<std::pair<Milliseconds, double>>& readings() const in readings() 66 const std::pair<Milliseconds, double>& expectedReading() const in expectedReading() 87 std::vector<std::pair<Milliseconds, double>> readingsProperty = {}; 88 std::pair<Milliseconds, double> expectedReadingProperty = {};
|
/openbmc/linux/net/ethtool/ |
H A D | cabletest.c | 163 int ethnl_cable_test_result(struct phy_device *phydev, u8 pair, u8 result) in ethnl_cable_test_result() argument 172 if (nla_put_u8(phydev->skb, ETHTOOL_A_CABLE_RESULT_PAIR, pair)) in ethnl_cable_test_result() 186 int ethnl_cable_test_fault_length(struct phy_device *phydev, u8 pair, u32 cm) in ethnl_cable_test_fault_length() argument 196 if (nla_put_u8(phydev->skb, ETHTOOL_A_CABLE_FAULT_LENGTH_PAIR, pair)) in ethnl_cable_test_fault_length() 238 cfg->pair = PHY_PAIR_ALL; in ethnl_act_cable_test_tdr_cfg() 261 cfg->pair = nla_get_u8(tb[ETHTOOL_A_CABLE_TEST_TDR_CFG_PAIR]); in ethnl_act_cable_test_tdr_cfg() 262 if (cfg->pair > ETHTOOL_A_CABLE_PAIR_D) { in ethnl_act_cable_test_tdr_cfg() 266 "invalid pair parameter"); in ethnl_act_cable_test_tdr_cfg() 361 u8 pair, s16 mV) in ethnl_cable_test_amplitude() argument 371 if (nla_put_u8(phydev->skb, ETHTOOL_A_CABLE_AMPLITUDE_PAIR, pair)) in ethnl_cable_test_amplitude()
|