Home
last modified time | relevance | path

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

12345

/linux-6.6.21/drivers/firmware/arm_scmi/
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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
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()
Ddriver.c100 struct scmi_protocol_handle ph; member
103 #define ph_to_pi(h) container_of(h, struct scmi_protocol_instance, ph)
1005 static void xfer_put(const struct scmi_protocol_handle *ph, in xfer_put() argument
1008 const struct scmi_protocol_instance *pi = ph_to_pi(ph); in xfer_put()
1165 static int do_xfer(const struct scmi_protocol_handle *ph, in do_xfer() argument
1169 const struct scmi_protocol_instance *pi = ph_to_pi(ph); in do_xfer()
1237 static void reset_rx_to_maxsz(const struct scmi_protocol_handle *ph, in reset_rx_to_maxsz() argument
1240 const struct scmi_protocol_instance *pi = ph_to_pi(ph); in reset_rx_to_maxsz()
1270 static int do_xfer_with_response(const struct scmi_protocol_handle *ph, in do_xfer_with_response() argument
1286 ret = do_xfer(ph, xfer); in do_xfer_with_response()
[all …]
/linux-6.6.21/include/linux/
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 …]
/linux-6.6.21/drivers/reset/
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 …]
/linux-6.6.21/drivers/ata/pata_parport/
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 …]
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 …]
/linux-6.6.21/arch/powerpc/boot/
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 …]
/linux-6.6.21/include/linux/soc/ti/
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);
/linux-6.6.21/block/partitions/
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 …]
/linux-6.6.21/tools/perf/util/
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 …]
/linux-6.6.21/drivers/hwmon/
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 …]
/linux-6.6.21/net/phonet/
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 …]
/linux-6.6.21/drivers/clk/
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 …]
/linux-6.6.21/include/net/phonet/
Dphonet.h74 struct phonethdr *ph = pn_hdr(skb); in pn_skb_get_src_sockaddr() local
75 u16 obj = pn_object(ph->pn_sdev, ph->pn_sobj); in pn_skb_get_src_sockaddr()
79 pn_sockaddr_set_resource(sa, ph->pn_res); in pn_skb_get_src_sockaddr()
86 struct phonethdr *ph = pn_hdr(skb); in pn_skb_get_dst_sockaddr() local
87 u16 obj = pn_object(ph->pn_rdev, ph->pn_robj); in pn_skb_get_dst_sockaddr()
91 pn_sockaddr_set_resource(sa, ph->pn_res); in pn_skb_get_dst_sockaddr()
/linux-6.6.21/arch/mips/boot/
Delf2ecoff.c271 Elf32_Phdr *ph; in main() local
329 ph = (Elf32_Phdr *) saveRead(infile, ex.e_phoff, in main()
333 convert_elf_phdrs(ph, ex.e_phnum); in main()
347 qsort(ph, ex.e_phnum, sizeof(Elf32_Phdr), phcmp); in main()
351 switch (ph[i].p_type) { in main()
361 if (ph[i].p_flags & PF_W) { in main()
364 ndata.vaddr = ph[i].p_vaddr; in main()
365 ndata.len = ph[i].p_filesz; in main()
366 nbss.vaddr = ph[i].p_vaddr + ph[i].p_filesz; in main()
367 nbss.len = ph[i].p_memsz - ph[i].p_filesz; in main()
[all …]

12345