Home
last modified time | relevance | path

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

12

/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 …]
Dvoltage.c63 static int scmi_protocol_attributes_get(const struct scmi_protocol_handle *ph, in scmi_protocol_attributes_get() argument
69 ret = ph->xops->xfer_get_init(ph, PROTOCOL_ATTRIBUTES, 0, in scmi_protocol_attributes_get()
74 ret = ph->xops->do_xfer(ph, t); in scmi_protocol_attributes_get()
79 ph->xops->xfer_put(ph, t); in scmi_protocol_attributes_get()
113 static int scmi_voltage_descriptors_get(const struct scmi_protocol_handle *ph, in scmi_voltage_descriptors_get() argument
118 struct device *dev = ph->dev; in scmi_voltage_descriptors_get()
122 ret = ph->xops->xfer_get_init(ph, VOLTAGE_DOMAIN_ATTRIBUTES, in scmi_voltage_descriptors_get()
128 ret = ph->xops->xfer_get_init(ph, VOLTAGE_DESCRIBE_LEVELS, in scmi_voltage_descriptors_get()
142 ret = ph->xops->do_xfer(ph, td); in scmi_voltage_descriptors_get()
160 ret = ph->xops->do_xfer(ph, tl); in scmi_voltage_descriptors_get()
[all …]
Dreset.c68 static int scmi_reset_attributes_get(const struct scmi_protocol_handle *ph, in scmi_reset_attributes_get() argument
75 ret = ph->xops->xfer_get_init(ph, PROTOCOL_ATTRIBUTES, in scmi_reset_attributes_get()
80 ret = ph->xops->do_xfer(ph, t); in scmi_reset_attributes_get()
86 ph->xops->xfer_put(ph, t); in scmi_reset_attributes_get()
91 scmi_reset_domain_attributes_get(const struct scmi_protocol_handle *ph, in scmi_reset_domain_attributes_get() argument
98 ret = ph->xops->xfer_get_init(ph, RESET_DOMAIN_ATTRIBUTES, in scmi_reset_domain_attributes_get()
106 ret = ph->xops->do_xfer(ph, t); in scmi_reset_domain_attributes_get()
118 ph->xops->xfer_put(ph, t); in scmi_reset_domain_attributes_get()
122 static int scmi_reset_num_domains_get(const struct scmi_protocol_handle *ph) in scmi_reset_num_domains_get() argument
124 struct scmi_reset_info *pi = ph->get_priv(ph); in scmi_reset_num_domains_get()
[all …]
Dclock.c79 scmi_clock_protocol_attributes_get(const struct scmi_protocol_handle *ph, in scmi_clock_protocol_attributes_get() argument
86 ret = ph->xops->xfer_get_init(ph, PROTOCOL_ATTRIBUTES, in scmi_clock_protocol_attributes_get()
93 ret = ph->xops->do_xfer(ph, t); in scmi_clock_protocol_attributes_get()
99 ph->xops->xfer_put(ph, t); in scmi_clock_protocol_attributes_get()
103 static int scmi_clock_attributes_get(const struct scmi_protocol_handle *ph, in scmi_clock_attributes_get() argument
110 ret = ph->xops->xfer_get_init(ph, CLOCK_ATTRIBUTES, in scmi_clock_attributes_get()
118 ret = ph->xops->do_xfer(ph, t); in scmi_clock_attributes_get()
124 ph->xops->xfer_put(ph, t); in scmi_clock_attributes_get()
141 scmi_clock_describe_rates_get(const struct scmi_protocol_handle *ph, u32 clk_id, in scmi_clock_describe_rates_get() argument
153 ret = ph->xops->xfer_get_init(ph, CLOCK_DESCRIBE_RATES, in scmi_clock_describe_rates_get()
[all …]
Dpower.c72 static int scmi_power_attributes_get(const struct scmi_protocol_handle *ph, in scmi_power_attributes_get() argument
79 ret = ph->xops->xfer_get_init(ph, PROTOCOL_ATTRIBUTES, in scmi_power_attributes_get()
86 ret = ph->xops->do_xfer(ph, t); in scmi_power_attributes_get()
94 ph->xops->xfer_put(ph, t); in scmi_power_attributes_get()
99 scmi_power_domain_attributes_get(const struct scmi_protocol_handle *ph, in scmi_power_domain_attributes_get() argument
106 ret = ph->xops->xfer_get_init(ph, POWER_DOMAIN_ATTRIBUTES, in scmi_power_domain_attributes_get()
114 ret = ph->xops->do_xfer(ph, t); in scmi_power_domain_attributes_get()
124 ph->xops->xfer_put(ph, t); in scmi_power_domain_attributes_get()
128 static int scmi_power_state_set(const struct scmi_protocol_handle *ph, in scmi_power_state_set() argument
135 ret = ph->xops->xfer_get_init(ph, POWER_STATE_SET, sizeof(*st), 0, &t); in scmi_power_state_set()
[all …]
Dperf.c179 static int scmi_perf_attributes_get(const struct scmi_protocol_handle *ph, in scmi_perf_attributes_get() argument
186 ret = ph->xops->xfer_get_init(ph, PROTOCOL_ATTRIBUTES, 0, in scmi_perf_attributes_get()
193 ret = ph->xops->do_xfer(ph, t); in scmi_perf_attributes_get()
204 ph->xops->xfer_put(ph, t); in scmi_perf_attributes_get()
209 scmi_perf_domain_attributes_get(const struct scmi_protocol_handle *ph, in scmi_perf_domain_attributes_get() argument
216 ret = ph->xops->xfer_get_init(ph, PERF_DOMAIN_ATTRIBUTES, in scmi_perf_domain_attributes_get()
224 ret = ph->xops->do_xfer(ph, t); in scmi_perf_domain_attributes_get()
248 ph->xops->xfer_put(ph, t); in scmi_perf_domain_attributes_get()
260 scmi_perf_describe_levels_get(const struct scmi_protocol_handle *ph, u32 domain, in scmi_perf_describe_levels_get() argument
271 ret = ph->xops->xfer_get_init(ph, PERF_DESCRIBE_LEVELS, in scmi_perf_describe_levels_get()
[all …]
Dsensors.c206 static int scmi_sensor_attributes_get(const struct scmi_protocol_handle *ph, in scmi_sensor_attributes_get() argument
213 ret = ph->xops->xfer_get_init(ph, PROTOCOL_ATTRIBUTES, in scmi_sensor_attributes_get()
220 ret = ph->xops->do_xfer(ph, t); in scmi_sensor_attributes_get()
229 ph->xops->xfer_put(ph, t); in scmi_sensor_attributes_get()
240 static int scmi_sensor_update_intervals(const struct scmi_protocol_handle *ph, in scmi_sensor_update_intervals() argument
250 ret = ph->xops->xfer_get_init(ph, SENSOR_LIST_UPDATE_INTERVALS, in scmi_sensor_update_intervals()
264 ret = ph->xops->do_xfer(ph, ti); in scmi_sensor_update_intervals()
282 dev_err(ph->dev, in scmi_sensor_update_intervals()
293 devm_kcalloc(ph->dev, in scmi_sensor_update_intervals()
305 dev_err(ph->dev, in scmi_sensor_update_intervals()
[all …]
Dsystem.c36 static int scmi_system_request_notify(const struct scmi_protocol_handle *ph, in scmi_system_request_notify() argument
43 ret = ph->xops->xfer_get_init(ph, SYSTEM_POWER_STATE_NOTIFY, in scmi_system_request_notify()
51 ret = ph->xops->do_xfer(ph, t); in scmi_system_request_notify()
53 ph->xops->xfer_put(ph, t); in scmi_system_request_notify()
57 static int scmi_system_set_notify_enabled(const struct scmi_protocol_handle *ph, in scmi_system_set_notify_enabled() argument
62 ret = scmi_system_request_notify(ph, enable); in scmi_system_set_notify_enabled()
70 scmi_system_fill_custom_report(const struct scmi_protocol_handle *ph, in scmi_system_fill_custom_report() argument
114 static int scmi_system_protocol_init(const struct scmi_protocol_handle *ph) in scmi_system_protocol_init() argument
119 ph->xops->version_get(ph, &version); in scmi_system_protocol_init()
121 dev_dbg(ph->dev, "System Power Version %d.%d\n", in scmi_system_protocol_init()
[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()
Dcommon.h239 int (*set_priv)(const struct scmi_protocol_handle *ph, void *priv);
240 void *(*get_priv)(const struct scmi_protocol_handle *ph);
258 int (*version_get)(const struct scmi_protocol_handle *ph, u32 *version);
259 int (*xfer_get_init)(const struct scmi_protocol_handle *ph, u8 msg_id,
262 void (*reset_rx_to_maxsz)(const struct scmi_protocol_handle *ph,
264 int (*do_xfer)(const struct scmi_protocol_handle *ph,
266 int (*do_xfer_with_response)(const struct scmi_protocol_handle *ph,
268 void (*xfer_put)(const struct scmi_protocol_handle *ph,
273 scmi_revision_area_get(const struct scmi_protocol_handle *ph);
278 void scmi_setup_protocol_implemented(const struct scmi_protocol_handle *ph,
Ddriver.c109 struct scmi_protocol_handle ph; member
112 #define ph_to_pi(h) container_of(h, struct scmi_protocol_instance, ph)
719 static void xfer_put(const struct scmi_protocol_handle *ph, in xfer_put() argument
722 const struct scmi_protocol_instance *pi = ph_to_pi(ph); in xfer_put()
754 static int do_xfer(const struct scmi_protocol_handle *ph, in do_xfer() argument
759 const struct scmi_protocol_instance *pi = ph_to_pi(ph); in do_xfer()
846 static void reset_rx_to_maxsz(const struct scmi_protocol_handle *ph, in reset_rx_to_maxsz() argument
849 const struct scmi_protocol_instance *pi = ph_to_pi(ph); in reset_rx_to_maxsz()
867 static int do_xfer_with_response(const struct scmi_protocol_handle *ph, in do_xfer_with_response() argument
875 ret = do_xfer(ph, xfer); in do_xfer_with_response()
[all …]
Dnotify.h53 int (*get_num_sources)(const struct scmi_protocol_handle *ph);
54 int (*set_notify_enabled)(const struct scmi_protocol_handle *ph,
56 void *(*fill_custom_report)(const struct scmi_protocol_handle *ph,
83 const struct scmi_protocol_handle *ph,
/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 …]
/drivers/block/paride/
Depia.c138 { int k, ph, a, b; in epia_read_block() local
143 ph = 1; in epia_read_block()
145 w2(2+ph); a = r1(); in epia_read_block()
146 w2(4+ph); b = r1(); in epia_read_block()
148 ph = 1 - ph; in epia_read_block()
155 ph = 1; in epia_read_block()
157 w2(4+ph); in epia_read_block()
160 ph = 1 - ph; in epia_read_block()
166 ph = 1; in epia_read_block()
168 w2(0x24+ph); in epia_read_block()
[all …]
Depat.c99 { int k, ph, a, b; in epat_read_block() local
104 ph = 0; in epat_read_block()
107 w2(6+ph); a = r1(); in epat_read_block()
109 else { w2(4+ph); b = r1(); } in epat_read_block()
111 ph = 1 - ph; in epat_read_block()
117 ph = 0; in epat_read_block()
120 w2(4+ph); in epat_read_block()
123 ph = 1 - ph; in epat_read_block()
129 ph = 0; in epat_read_block()
131 w2(0x24+ph); in epat_read_block()
[all …]
Dfriq.c79 { int h, l, k, ph; in friq_read_block_int() local
92 case 1: ph = 2; in friq_read_block_int()
96 w2(0xa4 + ph); in friq_read_block_int()
98 ph = 2 - ph; in friq_read_block_int()
/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()
147 struct scmi_protocol_handle *ph; in scmi_clocks_probe() local
153 handle->devm_protocol_get(sdev, SCMI_PROTOCOL_CLOCK, &ph); in scmi_clocks_probe()
157 count = scmi_proto_clk_ops->count_get(ph); in scmi_clocks_probe()
178 sclk->info = scmi_proto_clk_ops->info_get(ph, idx); in scmi_clocks_probe()
186 sclk->ph = ph; in scmi_clocks_probe()
/drivers/clk/meson/
Dclk-phase.c43 val = meson_parm_read(clk->map, &phase->ph); in meson_clk_phase_get_phase()
45 return meson_clk_degrees_from_val(val, phase->ph.width); in meson_clk_phase_get_phase()
54 val = meson_clk_degrees_to_val(degrees, phase->ph.width); in meson_clk_phase_set_phase()
55 meson_parm_write(clk->map, &phase->ph, val); in meson_clk_phase_set_phase()
147 val = meson_parm_read(clk->map, &tph->ph); in meson_sclk_ws_inv_sync()
159 val = meson_parm_read(clk->map, &tph->ph); in meson_sclk_ws_inv_get_phase()
161 return meson_clk_degrees_from_val(val, tph->ph.width); in meson_sclk_ws_inv_get_phase()
170 val = meson_clk_degrees_to_val(degrees, tph->ph.width); in meson_sclk_ws_inv_set_phase()
171 meson_parm_write(clk->map, &tph->ph, val); in meson_sclk_ws_inv_set_phase()
/drivers/regulator/
Dscmi-regulator.c41 struct scmi_protocol_handle *ph; member
57 return voltage_ops->config_set(sreg->ph, sreg->id, in scmi_reg_enable()
65 return voltage_ops->config_set(sreg->ph, sreg->id, in scmi_reg_disable()
75 ret = voltage_ops->config_get(sreg->ph, sreg->id, &config); in scmi_reg_is_enabled()
92 ret = voltage_ops->level_get(sreg->ph, sreg->id, &volt_uV); in scmi_reg_get_voltage_sel()
109 return voltage_ops->level_set(sreg->ph, sreg->id, 0x0, volt_uV); in scmi_reg_set_voltage_sel()
207 vinfo = voltage_ops->info_get(sreg->ph, sreg->id); in scmi_regulator_common_init()
256 struct scmi_protocol_handle *ph, in process_scmi_regulator_of_node() argument
284 rinfo->sregv[dom]->ph = ph; in process_scmi_regulator_of_node()
303 struct scmi_protocol_handle *ph; in scmi_regulator_probe() local
[all …]
/drivers/cpufreq/
Dscmi-cpufreq.c30 static struct scmi_protocol_handle *ph; variable
40 ret = perf_ops->freq_get(ph, priv->domain_id, &rate, false); in scmi_cpufreq_get_rate()
57 return perf_ops->freq_set(ph, priv->domain_id, freq * 1000, false); in scmi_cpufreq_set_target()
65 if (!perf_ops->freq_set(ph, priv->domain_id, in scmi_cpufreq_fast_switch()
111 ret = perf_ops->est_power_get(ph, domain, &Hz, power); in scmi_get_cpu_power()
173 ret = perf_ops->device_opps_add(ph, cpu_dev); in scmi_cpufreq_init()
214 latency = perf_ops->transition_latency_get(ph, cpu_dev); in scmi_cpufreq_init()
221 perf_ops->fast_switch_possible(ph, cpu_dev); in scmi_cpufreq_init()
252 bool power_scale_mw = perf_ops->power_scale_mw_get(ph); in scmi_cpufreq_register_em()
296 perf_ops = handle->devm_protocol_get(sdev, SCMI_PROTOCOL_PERF, &ph); in scmi_cpufreq_probe()
/drivers/staging/r8188eu/core/
Drtw_br_ext.c51 static unsigned char *__nat25_find_pppoe_tag(struct pppoe_hdr *ph, unsigned short type) in __nat25_find_pppoe_tag() argument
56 start_ptr = cur_ptr = (unsigned char *)ph->tag; in __nat25_find_pppoe_tag()
57 while ((cur_ptr - start_ptr) < ntohs(ph->length)) { in __nat25_find_pppoe_tag()
70 struct pppoe_hdr *ph = (struct pppoe_hdr *)(skb->data + ETH_HLEN); in __nat25_add_pppoe_tag() local
81 memmove(((unsigned char *)ph->tag + data_len), (unsigned char *)ph->tag, ntohs(ph->length)); in __nat25_add_pppoe_tag()
82 ph->length = htons(ntohs(ph->length) + data_len); in __nat25_add_pppoe_tag()
83 memcpy((unsigned char *)ph->tag, tag, data_len); in __nat25_add_pppoe_tag()
476 struct pppoe_hdr *ph = (struct pppoe_hdr *)(skb->data + ETH_HLEN); in nat25_db_handle() local
481 if (ph->sid == 0) in nat25_db_handle()
485 if (ph->sid == 0) { /* Discovery phase according to tag */ in nat25_db_handle()
[all …]
/drivers/hwmon/
Dscmi-hwmon.c19 const struct scmi_protocol_handle *ph; member
76 ret = sensor_ops->reading_get(scmi_sensors->ph, sensor->id, &value); in scmi_hwmon_read()
173 struct scmi_protocol_handle *ph; in scmi_hwmon_probe() local
178 sensor_ops = handle->devm_protocol_get(sdev, SCMI_PROTOCOL_SENSOR, &ph); in scmi_hwmon_probe()
182 nr_sensors = sensor_ops->count_get(ph); in scmi_hwmon_probe()
190 scmi_sensors->ph = ph; in scmi_hwmon_probe()
193 sensor = sensor_ops->info_get(ph, i); in scmi_hwmon_probe()
245 sensor = sensor_ops->info_get(ph, i); in scmi_hwmon_probe()
/drivers/net/ppp/
Dpppoe.c416 struct pppoe_hdr *ph; in pppoe_rcv() local
431 ph = pppoe_hdr(skb); in pppoe_rcv()
432 len = ntohs(ph->length); in pppoe_rcv()
434 skb_pull_rcsum(skb, sizeof(*ph)); in pppoe_rcv()
441 ph = pppoe_hdr(skb); in pppoe_rcv()
447 po = get_item(pn, ph->sid, eth_hdr(skb)->h_source, dev->ifindex); in pppoe_rcv()
485 struct pppoe_hdr *ph; in pppoe_disc_rcv() local
499 ph = pppoe_hdr(skb); in pppoe_disc_rcv()
500 if (ph->code != PADT_CODE) in pppoe_disc_rcv()
504 po = get_item(pn, ph->sid, eth_hdr(skb)->h_source, dev->ifindex); in pppoe_disc_rcv()
[all …]
/drivers/iio/common/scmi_sensors/
Dscmi_iio.c26 struct scmi_protocol_handle *ph; member
95 err = sensor->sensor_ops->config_set(sensor->ph, in scmi_iio_buffer_preenable()
113 err = sensor->sensor_ops->config_set(sensor->ph, in scmi_iio_buffer_postdisable()
138 int err = sensor->sensor_ops->config_get(sensor->ph, in scmi_iio_set_odr_val()
186 err = sensor->sensor_ops->config_set(sensor->ph, in scmi_iio_set_odr_val()
253 int err = sensor->sensor_ops->config_get(sensor->ph, in scmi_iio_get_odr_val()
511 struct scmi_protocol_handle *ph, in scmi_alloc_iiodev() argument
530 sensor->ph = ph; in scmi_alloc_iiodev()
586 struct scmi_protocol_handle *ph; in scmi_iio_dev_probe() local
595 sensor_ops = handle->devm_protocol_get(sdev, SCMI_PROTOCOL_SENSOR, &ph); in scmi_iio_dev_probe()
[all …]
/drivers/sbus/char/
Dopenprom.c187 phandle ph; in opromnext() local
194 ph = *((int *) op->oprom_array); in opromnext()
195 if (ph) { in opromnext()
196 dp = of_find_node_by_phandle(ph); in opromnext()
221 ph = 0; in opromnext()
223 ph = dp->phandle; in opromnext()
226 *((int *) op->oprom_array) = ph; in opromnext()
260 phandle ph = 0; in oprompath2node() local
264 ph = dp->phandle; in oprompath2node()
266 *((int *)op->oprom_array) = ph; in oprompath2node()

12