Home
last modified time | relevance | path

Searched refs:ph (Results 1 – 25 of 145) sorted by relevance

123456

/openbmc/linux/drivers/firmware/arm_scmi/
H A Dbase.c76 ret = ph->xops->do_xfer(ph, t); in scmi_base_attributes_get()
83 ph->xops->xfer_put(ph, t); in scmi_base_attributes_get()
120 ret = ph->xops->do_xfer(ph, t); in scmi_base_vendor_id_get()
124 ph->xops->xfer_put(ph, t); in scmi_base_vendor_id_get()
151 ret = ph->xops->do_xfer(ph, t); in scmi_base_implementation_version_get()
157 ph->xops->xfer_put(ph, t); in scmi_base_implementation_version_get()
199 ret = ph->xops->do_xfer(ph, t); in scmi_base_implementation_list_get()
245 ph->xops->xfer_put(ph, t); in scmi_base_implementation_list_get()
282 ph->xops->xfer_put(ph, t); in scmi_base_discover_agent_get()
305 ph->xops->xfer_put(ph, t); in scmi_base_error_notify()
[all …]
H A Dreset.c82 ret = ph->xops->do_xfer(ph, t); in scmi_reset_attributes_get()
88 ph->xops->xfer_put(ph, t); in scmi_reset_attributes_get()
110 ret = ph->xops->do_xfer(ph, t); in scmi_reset_domain_attributes_get()
122 ph->xops->xfer_put(ph, t); in scmi_reset_domain_attributes_get()
138 struct scmi_reset_info *pi = ph->get_priv(ph); in scmi_reset_num_domains_get()
190 ret = ph->xops->do_xfer(ph, t); in scmi_domain_reset()
192 ph->xops->xfer_put(ph, t); in scmi_domain_reset()
241 ret = ph->xops->do_xfer(ph, t); in scmi_reset_notify()
243 ph->xops->xfer_put(ph, t); in scmi_reset_notify()
318 ret = ph->xops->version_get(ph, &version); in scmi_reset_protocol_init()
[all …]
H A Dvoltage.c82 ret = ph->xops->do_xfer(ph, t); in scmi_protocol_attributes_get()
87 ph->xops->xfer_put(ph, t); in scmi_protocol_attributes_get()
229 if (ph->xops->do_xfer(ph, td)) in scmi_voltage_descriptors_get()
255 ph->xops->xfer_put(ph, td); in scmi_voltage_descriptors_get()
275 ret = ph->xops->do_xfer(ph, t); in __scmi_voltage_get_u32()
279 ph->xops->xfer_put(ph, t); in __scmi_voltage_get_u32()
303 ret = ph->xops->do_xfer(ph, t); in scmi_voltage_config_set()
305 ph->xops->xfer_put(ph, t); in scmi_voltage_config_set()
343 ret = ph->xops->do_xfer(ph, t); in scmi_voltage_level_set()
361 ph->xops->xfer_put(ph, t); in scmi_voltage_level_set()
[all …]
H A Dpower.c88 ret = ph->xops->do_xfer(ph, t); in scmi_power_attributes_get()
96 ph->xops->xfer_put(ph, t); in scmi_power_attributes_get()
118 ret = ph->xops->do_xfer(ph, t); in scmi_power_domain_attributes_get()
127 ph->xops->xfer_put(ph, t); in scmi_power_domain_attributes_get()
159 ret = ph->xops->do_xfer(ph, t); in scmi_power_state_set()
161 ph->xops->xfer_put(ph, t); in scmi_power_state_set()
177 ret = ph->xops->do_xfer(ph, t); in scmi_power_state_get()
181 ph->xops->xfer_put(ph, t); in scmi_power_state_get()
225 ret = ph->xops->do_xfer(ph, t); in scmi_power_request_notify()
227 ph->xops->xfer_put(ph, t); in scmi_power_request_notify()
[all …]
H A Dpowercap.c148 ret = ph->xops->do_xfer(ph, t); in scmi_powercap_attributes_get()
156 ph->xops->xfer_put(ph, t); in scmi_powercap_attributes_get()
195 ret = ph->xops->do_xfer(ph, t); in scmi_powercap_domain_attributes_get()
265 ph->xops->xfer_put(ph, t); in scmi_powercap_domain_attributes_get()
309 ret = ph->xops->do_xfer(ph, t); in scmi_powercap_xfer_cap_get()
313 ph->xops->xfer_put(ph, t); in scmi_powercap_xfer_cap_get()
385 ph->xops->xfer_put(ph, t); in scmi_powercap_xfer_cap_set()
464 ph->xops->xfer_put(ph, t); in scmi_powercap_xfer_pai_get()
508 ph->xops->xfer_put(ph, t); in scmi_powercap_xfer_pai_set()
561 ph->xops->xfer_put(ph, t); in scmi_powercap_measurements_get()
[all …]
H A Dclock.c125 ret = ph->xops->do_xfer(ph, t); in scmi_clock_protocol_attributes_get()
131 ph->xops->xfer_put(ph, t); in scmi_clock_protocol_attributes_get()
152 ret = ph->xops->do_xfer(ph, t); in scmi_clock_attributes_get()
163 ph->xops->xfer_put(ph, t); in scmi_clock_attributes_get()
341 ret = ph->xops->do_xfer(ph, t); in scmi_clock_rate_get()
345 ph->xops->xfer_put(ph, t); in scmi_clock_rate_get()
392 ph->xops->xfer_put(ph, t); in scmi_clock_rate_set()
415 ret = ph->xops->do_xfer(ph, t); in scmi_clock_config_set()
417 ph->xops->xfer_put(ph, t); in scmi_clock_config_set()
492 ret = ph->xops->do_xfer(ph, t); in scmi_clk_rate_notify()
[all …]
H A Dperf.c204 ret = ph->xops->do_xfer(ph, t); in scmi_perf_attributes_get()
221 ph->xops->xfer_put(ph, t); in scmi_perf_attributes_get()
254 ret = ph->xops->do_xfer(ph, t); in scmi_perf_domain_attributes_get()
283 ph->xops->xfer_put(ph, t); in scmi_perf_domain_attributes_get()
487 ret = ph->xops->do_xfer(ph, t); in scmi_perf_msg_limits_set()
489 ph->xops->xfer_put(ph, t); in scmi_perf_msg_limits_set()
561 ret = ph->xops->do_xfer(ph, t); in scmi_perf_msg_limits_get()
569 ph->xops->xfer_put(ph, t); in scmi_perf_msg_limits_get()
641 ph->xops->xfer_put(ph, t); in scmi_perf_msg_level_set()
702 ph->xops->xfer_put(ph, t); in scmi_perf_msg_level_get()
[all …]
H A Dsensors.c236 ret = ph->xops->do_xfer(ph, t); in scmi_sensor_attributes_get()
245 ph->xops->xfer_put(ph, t); in scmi_sensor_attributes_get()
711 ret = ph->xops->do_xfer(ph, t); in scmi_sensor_request_notify()
713 ph->xops->xfer_put(ph, t); in scmi_sensor_request_notify()
754 ret = ph->xops->do_xfer(ph, t); in scmi_sensor_trip_point_config()
756 ph->xops->xfer_put(ph, t); in scmi_sensor_trip_point_config()
776 ret = ph->xops->do_xfer(ph, t); in scmi_sensor_config_get()
784 ph->xops->xfer_put(ph, t); in scmi_sensor_config_get()
815 ph->xops->xfer_put(ph, t); in scmi_sensor_config_set()
874 ph->xops->xfer_put(ph, t); in scmi_sensor_reading_get()
[all …]
H A Dsystem.c38 static int scmi_system_request_notify(const struct scmi_protocol_handle *ph, in scmi_system_request_notify() argument
45 ret = ph->xops->xfer_get_init(ph, SYSTEM_POWER_STATE_NOTIFY, in scmi_system_request_notify()
53 ret = ph->xops->do_xfer(ph, t); in scmi_system_request_notify()
55 ph->xops->xfer_put(ph, t); in scmi_system_request_notify()
64 ret = scmi_system_request_notify(ph, enable); in scmi_system_set_notify_enabled()
72 scmi_system_fill_custom_report(const struct scmi_protocol_handle *ph, in scmi_system_fill_custom_report() argument
80 struct scmi_system_info *pinfo = ph->get_priv(ph); in scmi_system_fill_custom_report()
132 ret = ph->xops->version_get(ph, &version); in scmi_system_protocol_init()
136 dev_dbg(ph->dev, "System Power Version %d.%d\n", in scmi_system_protocol_init()
139 pinfo = devm_kzalloc(ph->dev, sizeof(*pinfo), GFP_KERNEL); in scmi_system_protocol_init()
[all …]
H A Dprotocols.h177 int (*set_priv)(const struct scmi_protocol_handle *ph, void *priv);
178 void *(*get_priv)(const struct scmi_protocol_handle *ph);
220 int (*process_response)(const struct scmi_protocol_handle *ph,
258 int (*extended_name_get)(const struct scmi_protocol_handle *ph,
260 void *(*iter_response_init)(const struct scmi_protocol_handle *ph,
265 void (*fastchannel_init)(const struct scmi_protocol_handle *ph,
289 int (*xfer_get_init)(const struct scmi_protocol_handle *ph, u8 msg_id,
292 void (*reset_rx_to_maxsz)(const struct scmi_protocol_handle *ph,
294 int (*do_xfer)(const struct scmi_protocol_handle *ph,
296 int (*do_xfer_with_response)(const struct scmi_protocol_handle *ph,
[all …]
H A Dscmi_pm_domain.c18 const struct scmi_protocol_handle *ph; member
36 ret = power_ops->state_set(pd->ph, pd->domain, state); in scmi_pd_power()
38 ret = power_ops->state_get(pd->ph, pd->domain, &ret_state); in scmi_pd_power()
64 struct scmi_protocol_handle *ph; in scmi_pm_domain_probe() local
69 power_ops = handle->devm_protocol_get(sdev, SCMI_PROTOCOL_POWER, &ph); in scmi_pm_domain_probe()
73 num_domains = power_ops->num_domains_get(ph); in scmi_pm_domain_probe()
94 if (power_ops->state_get(ph, i, &state)) { in scmi_pm_domain_probe()
100 scmi_pd->ph = ph; in scmi_pm_domain_probe()
101 scmi_pd->name = power_ops->name_get(ph, i); in scmi_pm_domain_probe()
/openbmc/phosphor-logging/test/openpower-pels/
H A Dprivate_header_test.cpp36 PrivateHeader ph(stream); in TEST_F() local
37 EXPECT_EQ(ph.valid(), true); in TEST_F()
81 ph.flatten(newStream); in TEST_F()
85 ph.setID(0x55); in TEST_F()
89 ph.flatten(newStream); in TEST_F()
105 PrivateHeader ph(stream); in TEST_F() local
117 PrivateHeader ph(stream); in TEST_F() local
129 PrivateHeader ph(stream); in TEST_F() local
141 PrivateHeader ph(stream); in TEST_F() local
166 EXPECT_TRUE(ph.valid()); in TEST_F()
[all …]
/openbmc/linux/include/linux/
H A Dscmi_protocol.h85 int (*count_get)(const struct scmi_protocol_handle *ph);
88 (const struct scmi_protocol_handle *ph, u32 clk_id);
96 int (*disable_atomic)(const struct scmi_protocol_handle *ph,
132 (const struct scmi_protocol_handle *ph, u32 domain);
478 int (*count_get)(const struct scmi_protocol_handle *ph);
480 (const struct scmi_protocol_handle *ph, u32 sensor_id);
488 int (*config_get)(const struct scmi_protocol_handle *ph,
490 int (*config_set)(const struct scmi_protocol_handle *ph,
566 (const struct scmi_protocol_handle *ph, u32 domain_id);
684 (const struct scmi_protocol_handle *ph, u32 domain_id);
[all …]
/openbmc/linux/drivers/reset/
H A Dreset-scmi.c23 const struct scmi_protocol_handle *ph; member
27 #define to_scmi_handle(p) (to_scmi_reset_data(p)->ph)
42 const struct scmi_protocol_handle *ph = to_scmi_handle(rcdev); in scmi_reset_assert() local
44 return reset_ops->assert(ph, id); in scmi_reset_assert()
60 const struct scmi_protocol_handle *ph = to_scmi_handle(rcdev); in scmi_reset_deassert() local
62 return reset_ops->deassert(ph, id); in scmi_reset_deassert()
78 const struct scmi_protocol_handle *ph = to_scmi_handle(rcdev); in scmi_reset_reset() local
80 return reset_ops->reset(ph, id); in scmi_reset_reset()
95 struct scmi_protocol_handle *ph; in scmi_reset_probe() local
111 data->rcdev.nr_resets = reset_ops->num_domains_get(ph); in scmi_reset_probe()
[all …]
/openbmc/linux/include/linux/soc/ti/
H A Dknav_qmss.h72 void knav_pool_destroy(void *ph);
73 int knav_pool_count(void *ph);
74 void *knav_pool_desc_get(void *ph);
75 void knav_pool_desc_put(void *ph, void *desc);
76 int knav_pool_desc_map(void *ph, void *desc, unsigned size,
78 void *knav_pool_desc_unmap(void *ph, dma_addr_t dma, unsigned dma_sz);
79 dma_addr_t knav_pool_desc_virt_to_dma(void *ph, void *virt);
80 void *knav_pool_desc_dma_to_virt(void *ph, dma_addr_t dma);
/openbmc/linux/arch/powerpc/boot/
H A Daddnote.c118 unsigned long ph, ps, np; in main() local
165 ph += ps; in main()
170 if (buf[ph + i] != 0) in main()
174 ns = ph + 2 * ps; in main()
175 PUT_32(ph + PH_TYPE, PT_NOTE); in main()
177 PUT_32(ph + PH_OFFSET, ns); in main()
179 PUT_64(ph + PH_OFFSET, ns); in main()
197 ph += ps; in main()
198 PUT_32(ph + PH_TYPE, PT_NOTE); in main()
200 PUT_32(ph + PH_OFFSET, ns); in main()
[all …]
/openbmc/linux/drivers/ata/pata_parport/
H A Depia.c129 int k, ph, a, b; in epia_read_block() local
134 ph = 1; in epia_read_block()
139 ph = 1 - ph; in epia_read_block()
146 ph = 1; in epia_read_block()
148 w2(4 + ph); in epia_read_block()
151 ph = 1 - ph; in epia_read_block()
157 ph = 1; in epia_read_block()
159 w2(0x24 + ph); in epia_read_block()
161 ph = 1 - ph; in epia_read_block()
208 w2(4 + ph); in epia_write_block()
[all …]
H A Depat.c93 ph = 0; in epat_read_block()
104 ph = 1 - ph; in epat_read_block()
111 ph = 0; in epat_read_block()
115 w2(4 + ph); in epat_read_block()
118 ph = 1 - ph; in epat_read_block()
125 ph = 0; in epat_read_block()
129 ph = 1 - ph; in epat_read_block()
170 int ph, k; in epat_write_block() local
177 ph = 0; in epat_write_block()
180 w2(4 + ph); in epat_write_block()
[all …]
/openbmc/phosphor-logging/extensions/openpower-pels/
H A Dprivate_header.cpp107 std::string ph; in getJSON() local
111 jsonInsert(ph, pv::createdBy, in getJSON()
113 jsonInsert(ph, "Created at", phCreateTStr, 1); in getJSON()
114 jsonInsert(ph, "Committed at", phCommitTStr, 1); in getJSON()
115 jsonInsert(ph, "Creator Subsystem", creator, 1); in getJSON()
116 jsonInsert(ph, "CSSVER", phCreatorVersionStr, 1); in getJSON()
117 jsonInsert(ph, "Platform Log Id", getNumberString("0x%X", _plid), 1); in getJSON()
118 jsonInsert(ph, "Entry Id", getNumberString("0x%X", _id), 1); in getJSON()
119 jsonInsert(ph, "BMC Event Log Id", std::to_string(_obmcLogID), 1); in getJSON()
120 ph.erase(ph.size() - 2); in getJSON()
[all …]
/openbmc/linux/block/partitions/
H A Dldm.c84 if (ph->ver_major == 2 && ph->ver_minor == 12) in ldm_parse_privhead()
88 " Aborting.", ph->ver_major, ph->ver_minor); in ldm_parse_privhead()
99 if ((ph->logical_disk_size == 0) || (ph->logical_disk_start + in ldm_parse_privhead()
100 ph->logical_disk_size > ph->config_start)) { in ldm_parse_privhead()
278 ph[1] = kmalloc (sizeof (*ph[1]), GFP_KERNEL); in ldm_validate_privheads()
279 ph[2] = kmalloc (sizeof (*ph[2]), GFP_KERNEL); in ldm_validate_privheads()
280 if (!ph[1] || !ph[2]) { in ldm_validate_privheads()
315 if ((ph[0]->logical_disk_start > ph[0]->config_start) || in ldm_validate_privheads()
316 ((ph[0]->logical_disk_start + ph[0]->logical_disk_size) in ldm_validate_privheads()
322 if (!ldm_compare_privheads (ph[0], ph[1])) { in ldm_validate_privheads()
[all …]
/openbmc/linux/tools/perf/util/
H A Dheader.c1707 struct perf_header *ph = ff->ph; in print_cpu_topology() local
2113 ff->ph->env.comp_level, ff->ph->env.comp_ratio); in print_compressed()
2582 struct perf_header *ph = ff->ph; in process_cpu_topology() local
2585 ph->env.cpu = calloc(cpu_nr, sizeof(*ph->env.cpu)); in process_cpu_topology()
2586 if (!ph->env.cpu) in process_cpu_topology()
2643 if (ph->env.arch && (!strncmp(ph->env.arch, "s390", 4) in process_cpu_topology()
3473 .ph = ph, in perf_file_section__fprintf_info()
3599 .ph = header, in perf_header__adds_write()
3854 ph->needs_swap); in try_all_file_abis()
4017 .ph = ph, in perf_file_section__process()
[all …]
/openbmc/u-boot/board/freescale/common/
H A Dfman.c37 unsigned int ph; in fdt_set_phy_handle() local
50 ph = fdt_create_phandle(fdt, offset); in fdt_set_phy_handle()
51 if (!ph) in fdt_set_phy_handle()
54 ph = cpu_to_fdt32(ph); in fdt_set_phy_handle()
60 return fdt_setprop(fdt, offset, "phy-handle", &ph, sizeof(ph)); in fdt_set_phy_handle()
/openbmc/qemu/include/hw/
H A Delf_ops.h238 rels[i].r_offset >= ph->p_vaddr + ph->p_filesz) { in glue()
327 struct elf_phdr *phdr = NULL, *ph; in glue() local
407 ph = &phdr[i]; in glue()
408 glue(bswap_phdr, SZ)(ph); in glue()
424 ph = &phdr[i]; in glue()
425 if (ph->p_type == PT_LOAD) { in glue()
499 addr = ph->p_paddr; in glue()
526 ph->p_vaddr != ph->p_paddr && in glue()
528 ehdr.e_entry < ph->p_vaddr + ph->p_filesz && in glue()
529 ph->p_flags & PF_X) { in glue()
[all …]
/openbmc/linux/drivers/hwmon/
H A Dscmi-hwmon.c19 const struct scmi_protocol_handle *ph; member
24 const struct scmi_protocol_handle *ph; member
79 ret = sensor_ops->reading_get(ph, sensor->id, &value); in scmi_hwmon_read_scaled_value()
193 const struct scmi_protocol_handle *ph, in scmi_thermal_sensor_register() argument
203 th_sensor->ph = ph; in scmi_thermal_sensor_register()
242 struct scmi_protocol_handle *ph; in scmi_hwmon_probe() local
251 nr_sensors = sensor_ops->count_get(ph); in scmi_hwmon_probe()
259 scmi_sensors->ph = ph; in scmi_hwmon_probe()
262 sensor = sensor_ops->info_get(ph, i); in scmi_hwmon_probe()
312 sensor = sensor_ops->info_get(ph, i); in scmi_hwmon_probe()
[all …]
/openbmc/linux/drivers/clk/
H A Dclk-scmi.c22 const struct scmi_protocol_handle *ph; member
34 ret = scmi_proto_clk_ops->rate_get(clk->ph, clk->id, &rate); in scmi_clk_recalc_rate()
74 return scmi_proto_clk_ops->rate_set(clk->ph, clk->id, rate); in scmi_clk_set_rate()
81 return scmi_proto_clk_ops->enable(clk->ph, clk->id); in scmi_clk_enable()
88 scmi_proto_clk_ops->disable(clk->ph, clk->id); in scmi_clk_disable()
95 return scmi_proto_clk_ops->enable_atomic(clk->ph, clk->id); in scmi_clk_atomic_enable()
102 scmi_proto_clk_ops->disable_atomic(clk->ph, clk->id); in scmi_clk_atomic_disable()
179 struct scmi_protocol_handle *ph; in scmi_clocks_probe() local
189 count = scmi_proto_clk_ops->count_get(ph); in scmi_clocks_probe()
213 sclk->info = scmi_proto_clk_ops->info_get(ph, idx); in scmi_clocks_probe()
[all …]

123456