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.c64 static int scmi_base_attributes_get(const struct scmi_protocol_handle *ph) in scmi_base_attributes_get() argument
69 struct scmi_revision_info *rev = ph->get_priv(ph); in scmi_base_attributes_get()
71 ret = ph->xops->xfer_get_init(ph, PROTOCOL_ATTRIBUTES, in scmi_base_attributes_get()
76 ret = ph->xops->do_xfer(ph, t); in scmi_base_attributes_get()
83 ph->xops->xfer_put(ph, t); in scmi_base_attributes_get()
97 scmi_base_vendor_id_get(const struct scmi_protocol_handle *ph, bool sub_vendor) in scmi_base_vendor_id_get() argument
103 struct scmi_revision_info *rev = ph->get_priv(ph); in scmi_base_vendor_id_get()
116 ret = ph->xops->xfer_get_init(ph, cmd, 0, size, &t); in scmi_base_vendor_id_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()
[all …]
H A Dvoltage.c71 static int scmi_protocol_attributes_get(const struct scmi_protocol_handle *ph, in scmi_protocol_attributes_get() argument
77 ret = ph->xops->xfer_get_init(ph, PROTOCOL_ATTRIBUTES, 0, in scmi_protocol_attributes_get()
82 ret = ph->xops->do_xfer(ph, t); in scmi_protocol_attributes_get()
87 ph->xops->xfer_put(ph, t); in scmi_protocol_attributes_get()
162 iter_volt_levels_process_response(const struct scmi_protocol_handle *ph, in iter_volt_levels_process_response() argument
178 static int scmi_voltage_levels_get(const struct scmi_protocol_handle *ph, in scmi_voltage_levels_get() argument
189 .dev = ph->dev, in scmi_voltage_levels_get()
193 iter = ph->hops->iter_response_init(ph, &ops, v->num_levels, in scmi_voltage_levels_get()
200 ret = ph->hops->iter_response_run(iter); in scmi_voltage_levels_get()
203 devm_kfree(ph->dev, v->levels_uv); in scmi_voltage_levels_get()
[all …]
H A Dreset.c70 static int scmi_reset_attributes_get(const struct scmi_protocol_handle *ph, in scmi_reset_attributes_get() argument
77 ret = ph->xops->xfer_get_init(ph, PROTOCOL_ATTRIBUTES, in scmi_reset_attributes_get()
82 ret = ph->xops->do_xfer(ph, t); in scmi_reset_attributes_get()
88 ph->xops->xfer_put(ph, t); in scmi_reset_attributes_get()
93 scmi_reset_domain_attributes_get(const struct scmi_protocol_handle *ph, in scmi_reset_domain_attributes_get() argument
102 ret = ph->xops->xfer_get_init(ph, RESET_DOMAIN_ATTRIBUTES, in scmi_reset_domain_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()
130 ph->hops->extended_name_get(ph, RESET_DOMAIN_NAME_GET, domain, in scmi_reset_domain_attributes_get()
136 static int scmi_reset_num_domains_get(const struct scmi_protocol_handle *ph) in scmi_reset_num_domains_get() argument
[all …]
H A Dpower.c74 static int scmi_power_attributes_get(const struct scmi_protocol_handle *ph, in scmi_power_attributes_get() argument
81 ret = ph->xops->xfer_get_init(ph, PROTOCOL_ATTRIBUTES, in scmi_power_attributes_get()
88 ret = ph->xops->do_xfer(ph, t); in scmi_power_attributes_get()
96 ph->xops->xfer_put(ph, t); in scmi_power_attributes_get()
101 scmi_power_domain_attributes_get(const struct scmi_protocol_handle *ph, in scmi_power_domain_attributes_get() argument
110 ret = ph->xops->xfer_get_init(ph, POWER_DOMAIN_ATTRIBUTES, in scmi_power_domain_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()
135 ph->hops->extended_name_get(ph, POWER_DOMAIN_NAME_GET, in scmi_power_domain_attributes_get()
143 static int scmi_power_state_set(const struct scmi_protocol_handle *ph, in scmi_power_state_set() argument
[all …]
H A Dpowercap.c133 static int scmi_powercap_notify(const struct scmi_protocol_handle *ph,
137 scmi_powercap_attributes_get(const struct scmi_protocol_handle *ph, in scmi_powercap_attributes_get() argument
143 ret = ph->xops->xfer_get_init(ph, PROTOCOL_ATTRIBUTES, 0, in scmi_powercap_attributes_get()
148 ret = ph->xops->do_xfer(ph, t); in scmi_powercap_attributes_get()
156 ph->xops->xfer_put(ph, t); in scmi_powercap_attributes_get()
178 scmi_powercap_domain_attributes_get(const struct scmi_protocol_handle *ph, in scmi_powercap_domain_attributes_get() argument
187 ret = ph->xops->xfer_get_init(ph, POWERCAP_DOMAIN_ATTRIBUTES, in scmi_powercap_domain_attributes_get()
195 ret = ph->xops->do_xfer(ph, t); in scmi_powercap_domain_attributes_get()
229 dev_err(ph->dev, in scmi_powercap_domain_attributes_get()
243 dev_err(ph->dev, in scmi_powercap_domain_attributes_get()
[all …]
H A Dclock.c111 scmi_clock_protocol_attributes_get(const struct scmi_protocol_handle *ph, in scmi_clock_protocol_attributes_get() argument
118 ret = ph->xops->xfer_get_init(ph, PROTOCOL_ATTRIBUTES, in scmi_clock_protocol_attributes_get()
125 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()
135 static int scmi_clock_attributes_get(const struct scmi_protocol_handle *ph, in scmi_clock_attributes_get() argument
144 ret = ph->xops->xfer_get_init(ph, CLOCK_ATTRIBUTES, in scmi_clock_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()
171 ph->hops->extended_name_get(ph, CLOCK_NAME_GET, clk_id, in scmi_clock_attributes_get()
254 iter_clk_describe_process_response(const struct scmi_protocol_handle *ph, in iter_clk_describe_process_response() argument
[all …]
H A Dperf.c190 static int scmi_perf_attributes_get(const struct scmi_protocol_handle *ph, in scmi_perf_attributes_get() argument
197 ret = ph->xops->xfer_get_init(ph, PROTOCOL_ATTRIBUTES, 0, in scmi_perf_attributes_get()
204 ret = ph->xops->do_xfer(ph, t); in scmi_perf_attributes_get()
221 ph->xops->xfer_put(ph, t); in scmi_perf_attributes_get()
237 scmi_perf_domain_attributes_get(const struct scmi_protocol_handle *ph, in scmi_perf_domain_attributes_get() argument
246 ret = ph->xops->xfer_get_init(ph, PERF_DOMAIN_ATTRIBUTES, in scmi_perf_domain_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()
291 ph->hops->extended_name_get(ph, PERF_DOMAIN_NAME_GET, in scmi_perf_domain_attributes_get()
384 iter_perf_levels_process_response(const struct scmi_protocol_handle *ph, in iter_perf_levels_process_response() argument
[all …]
H A Dsensors.c222 static int scmi_sensor_attributes_get(const struct scmi_protocol_handle *ph, in scmi_sensor_attributes_get() argument
229 ret = ph->xops->xfer_get_init(ph, PROTOCOL_ATTRIBUTES, in scmi_sensor_attributes_get()
236 ret = ph->xops->do_xfer(ph, t); in scmi_sensor_attributes_get()
245 ph->xops->xfer_put(ph, t); in scmi_sensor_attributes_get()
324 iter_intervals_process_response(const struct scmi_protocol_handle *ph, in iter_intervals_process_response() argument
337 static int scmi_sensor_update_intervals(const struct scmi_protocol_handle *ph, in scmi_sensor_update_intervals() argument
348 .dev = ph->dev, in scmi_sensor_update_intervals()
351 iter = ph->hops->iter_response_init(ph, &ops, s->intervals.count, in scmi_sensor_update_intervals()
358 return ph->hops->iter_response_run(iter); in scmi_sensor_update_intervals()
394 iter_axes_desc_process_response(const struct scmi_protocol_handle *ph, in iter_axes_desc_process_response() argument
[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()
59 static int scmi_system_set_notify_enabled(const struct scmi_protocol_handle *ph, in scmi_system_set_notify_enabled() argument
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()
126 static int scmi_system_protocol_init(const struct scmi_protocol_handle *ph) in scmi_system_protocol_init() argument
132 ret = ph->xops->version_get(ph, &version); 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,
288 int (*version_get)(const struct scmi_protocol_handle *ph, u32 *version);
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,
[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()
39 EXPECT_EQ(ph.header().id, 0x5048); in TEST_F()
40 EXPECT_EQ(ph.header().size, PrivateHeader::flattenedSize()); in TEST_F()
41 EXPECT_EQ(ph.header().version, 0x01); in TEST_F()
42 EXPECT_EQ(ph.header().subType, 0x02); in TEST_F()
43 EXPECT_EQ(ph.header().componentID, 0x0304); in TEST_F()
45 auto ct = ph.createTimestamp(); in TEST_F()
55 auto mt = ph.commitTimestamp(); in TEST_F()
65 EXPECT_EQ(ph.creatorID(), 0x4F); 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);
89 int (*rate_get)(const struct scmi_protocol_handle *ph, u32 clk_id,
91 int (*rate_set)(const struct scmi_protocol_handle *ph, u32 clk_id,
93 int (*enable)(const struct scmi_protocol_handle *ph, u32 clk_id);
94 int (*disable)(const struct scmi_protocol_handle *ph, u32 clk_id);
95 int (*enable_atomic)(const struct scmi_protocol_handle *ph, u32 clk_id);
96 int (*disable_atomic)(const struct scmi_protocol_handle *ph,
130 int (*num_domains_get)(const struct scmi_protocol_handle *ph);
132 (const struct scmi_protocol_handle *ph, u32 domain);
[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
100 reset_ops = handle->devm_protocol_get(sdev, SCMI_PROTOCOL_RESET, &ph); in scmi_reset_probe()
[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()
136 w2(2+ph); a = r1(); in epia_read_block()
137 w2(4+ph); b = r1(); 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()
[all …]
H A Depat.c87 int k, ph, a, b; in epat_read_block() local
93 ph = 0; in epat_read_block()
97 w2(6 + ph); a = r1(); in epat_read_block()
101 w2(4+ph); b = r1(); 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()
127 w2(0x24 + ph); in epat_read_block()
[all …]
/openbmc/linux/arch/powerpc/boot/
H A Daddnote.c118 unsigned long ph, ps, np; in main() local
151 ph = (e_class == ELFCLASS32 ? GET_32(E_PHOFF) : GET_64(E_PHOFF)); in main()
154 if (ph < E_HSIZE || ps < PH_HSIZE || np < 1) in main()
156 if (ph + (np + 2) * ps + nnote + nnote2 > n) in main()
160 if (GET_32(ph + PH_TYPE) == PT_NOTE) { in main()
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()
[all …]
/openbmc/phosphor-logging/extensions/openpower-pels/
H A Dprivate_header.cpp107 std::string ph; in getJSON() local
108 jsonInsert(ph, pv::sectionVer, getNumberString("%d", privateHeaderVersion), in getJSON()
110 jsonInsert(ph, pv::subSection, getNumberString("%d", _header.subType), 1); in getJSON()
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()
[all …]
/openbmc/linux/block/partitions/
H A Dldm.c67 static bool ldm_parse_privhead(const u8 *data, struct privhead *ph) in ldm_parse_privhead() argument
71 BUG_ON(!data || !ph); in ldm_parse_privhead()
77 ph->ver_major = get_unaligned_be16(data + 0x000C); in ldm_parse_privhead()
78 ph->ver_minor = get_unaligned_be16(data + 0x000E); in ldm_parse_privhead()
79 ph->logical_disk_start = get_unaligned_be64(data + 0x011B); in ldm_parse_privhead()
80 ph->logical_disk_size = get_unaligned_be64(data + 0x0123); in ldm_parse_privhead()
81 ph->config_start = get_unaligned_be64(data + 0x012B); in ldm_parse_privhead()
82 ph->config_size = get_unaligned_be64(data + 0x0133); in ldm_parse_privhead()
84 if (ph->ver_major == 2 && ph->ver_minor == 12) in ldm_parse_privhead()
86 if (!is_vista && (ph->ver_major != 2 || ph->ver_minor != 11)) { in ldm_parse_privhead()
[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/tools/perf/util/
H A Dheader.c234 if (ff->ph->needs_swap) in do_read_u32()
247 if (ff->ph->needs_swap) in do_read_u64()
324 session = container_of(ff->ph, struct perf_session, header); in write_build_id()
892 session = container_of(ff->ph, struct perf_session, header); in write_auxtrace()
903 return do_write(ff, &ff->ph->env.clock.clockid_res_ns, in write_clockid()
904 sizeof(ff->ph->env.clock.clockid_res_ns)); in write_clockid()
922 data32 = ff->ph->env.clock.clockid; in write_clock_data()
929 data64 = &ff->ph->env.clock.tod_ns; in write_clock_data()
936 data64 = &ff->ph->env.clock.clockid_ns; in write_clock_data()
981 session = container_of(ff->ph, struct perf_session, header); in write_dir_format()
[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
72 static int scmi_hwmon_read_scaled_value(const struct scmi_protocol_handle *ph, in scmi_hwmon_read_scaled_value() argument
79 ret = sensor_ops->reading_get(ph, sensor->id, &value); in scmi_hwmon_read_scaled_value()
98 return scmi_hwmon_read_scaled_value(scmi_sensors->ph, sensor, val); in scmi_hwmon_read()
146 ret = scmi_hwmon_read_scaled_value(th_sensor->ph, th_sensor->info, in scmi_hwmon_thermal_get_temp()
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
247 sensor_ops = handle->devm_protocol_get(sdev, SCMI_PROTOCOL_SENSOR, &ph); in scmi_hwmon_probe()
[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/linux/net/phonet/
H A Dpep.c52 } *ph, h; in pep_get_sb() local
55 ph = skb_header_pointer(skb, 0, 2, &h); in pep_get_sb()
56 if (ph == NULL || ph->sb_len < 2 || !pskb_may_pull(skb, ph->sb_len)) in pep_get_sb()
58 ph->sb_len -= 2; in pep_get_sb()
59 *ptype = ph->sb_type; in pep_get_sb()
60 *plen = ph->sb_len; in pep_get_sb()
62 if (buflen > ph->sb_len) in pep_get_sb()
63 buflen = ph->sb_len; in pep_get_sb()
65 __skb_pull(skb, 2 + ph->sb_len); in pep_get_sb()
89 struct pnpipehdr *ph; in pep_reply() local
[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
185 handle->devm_protocol_get(sdev, SCMI_PROTOCOL_CLOCK, &ph); in scmi_clocks_probe()
189 count = scmi_proto_clk_ops->count_get(ph); in scmi_clocks_probe()
[all …]

123456