/linux/drivers/firmware/arm_scmi/ |
A D | base.c | 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() 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() 213 ph->xops->xfer_put(ph, t); in scmi_base_implementation_list_get() 244 ret = ph->xops->do_xfer(ph, t); in scmi_base_discover_agent_get() 250 ph->xops->xfer_put(ph, t); in scmi_base_discover_agent_get() 273 ph->xops->xfer_put(ph, t); in scmi_base_error_notify() [all …]
|
A D | voltage.c | 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() 142 ret = ph->xops->do_xfer(ph, td); in scmi_voltage_descriptors_get() 210 ph->xops->xfer_put(ph, tl); in scmi_voltage_descriptors_get() 212 ph->xops->xfer_put(ph, td); in scmi_voltage_descriptors_get() 232 ret = ph->xops->do_xfer(ph, t); in __scmi_voltage_get_u32() 236 ph->xops->xfer_put(ph, t); in __scmi_voltage_get_u32() 260 ret = ph->xops->do_xfer(ph, t); in scmi_voltage_config_set() 262 ph->xops->xfer_put(ph, t); in scmi_voltage_config_set() 294 ret = ph->xops->do_xfer(ph, t); in scmi_voltage_level_set() [all …]
|
A D | reset.c | 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() 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() 124 struct scmi_reset_info *pi = ph->get_priv(ph); in scmi_reset_num_domains_get() 172 ret = ph->xops->do_xfer(ph, t); in scmi_domain_reset() 174 ph->xops->xfer_put(ph, t); in scmi_domain_reset() 223 ret = ph->xops->do_xfer(ph, t); in scmi_reset_notify() 225 ph->xops->xfer_put(ph, t); in scmi_reset_notify() 300 ph->xops->version_get(ph, &version); in scmi_reset_protocol_init() [all …]
|
A D | clock.c | 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() 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() 166 ret = ph->xops->do_xfer(ph, t); in scmi_clock_describe_rates_get() 213 ph->xops->xfer_put(ph, t); in scmi_clock_describe_rates_get() 231 ret = ph->xops->do_xfer(ph, t); in scmi_clock_rate_get() 235 ph->xops->xfer_put(ph, t); in scmi_clock_rate_get() 270 ph->xops->xfer_put(ph, t); in scmi_clock_rate_set() 291 ret = ph->xops->do_xfer(ph, t); in scmi_clock_config_set() [all …]
|
A D | power.c | 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() 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() 144 ret = ph->xops->do_xfer(ph, t); in scmi_power_state_set() 146 ph->xops->xfer_put(ph, t); in scmi_power_state_set() 162 ret = ph->xops->do_xfer(ph, t); in scmi_power_state_get() 166 ph->xops->xfer_put(ph, t); in scmi_power_state_get() 209 ret = ph->xops->do_xfer(ph, t); in scmi_power_request_notify() 211 ph->xops->xfer_put(ph, t); in scmi_power_request_notify() [all …]
|
A D | perf.c | 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() 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() 316 ph->xops->xfer_put(ph, t); in scmi_perf_describe_levels_get() 375 ph->xops->xfer_put(ph, t); in scmi_perf_mb_limits_set() 417 ph->xops->xfer_put(ph, t); in scmi_perf_mb_limits_get() 454 ph->xops->xfer_put(ph, t); in scmi_perf_mb_level_set() 491 ph->xops->xfer_put(ph, t); in scmi_perf_mb_level_get() 527 ph->xops->xfer_put(ph, t); in scmi_perf_level_limits_notify() [all …]
|
A D | sensors.c | 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() 325 ph->xops->xfer_put(ph, ti); in scmi_sensor_update_intervals() 417 ph->xops->xfer_put(ph, te); in scmi_sensor_axis_description() 559 ph->xops->xfer_put(ph, t); in scmi_sensor_description_get() 582 ph->xops->xfer_put(ph, t); in scmi_sensor_request_notify() 625 ph->xops->xfer_put(ph, t); in scmi_sensor_trip_point_config() 650 ph->xops->xfer_put(ph, t); in scmi_sensor_config_get() 678 ph->xops->xfer_put(ph, t); in scmi_sensor_config_set() 733 ph->xops->xfer_put(ph, t); in scmi_sensor_reading_get() [all …]
|
A D | system.c | 36 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() 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() 124 pinfo = devm_kzalloc(ph->dev, sizeof(*pinfo), GFP_KERNEL); in scmi_system_protocol_init() [all …]
|
A D | scmi_pm_domain.c | 19 const struct scmi_protocol_handle *ph; member 37 ret = power_ops->state_set(pd->ph, pd->domain, state); in scmi_pd_power() 39 ret = power_ops->state_get(pd->ph, pd->domain, &ret_state); in scmi_pd_power() 86 struct scmi_protocol_handle *ph; in scmi_pm_domain_probe() local 91 power_ops = handle->devm_protocol_get(sdev, SCMI_PROTOCOL_POWER, &ph); in scmi_pm_domain_probe() 95 num_domains = power_ops->num_domains_get(ph); in scmi_pm_domain_probe() 116 if (power_ops->state_get(ph, i, &state)) { in scmi_pm_domain_probe() 122 scmi_pd->ph = ph; in scmi_pm_domain_probe() 123 scmi_pd->name = power_ops->name_get(ph, i); in scmi_pm_domain_probe()
|
/linux/include/linux/ |
A D | scmi_protocol.h | 75 int (*count_get)(const struct scmi_protocol_handle *ph); 78 (const struct scmi_protocol_handle *ph, u32 clk_id); 83 int (*enable)(const struct scmi_protocol_handle *ph, u32 clk_id); 121 int (*device_opps_add)(const struct scmi_protocol_handle *ph, 144 int (*num_domains_get)(const struct scmi_protocol_handle *ph); 454 int (*count_get)(const struct scmi_protocol_handle *ph); 456 (const struct scmi_protocol_handle *ph, u32 sensor_id); 464 int (*config_get)(const struct scmi_protocol_handle *ph, 466 int (*config_set)(const struct scmi_protocol_handle *ph, 535 (const struct scmi_protocol_handle *ph, u32 domain_id); [all …]
|
/linux/drivers/reset/ |
A D | reset-scmi.c | 23 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 …]
|
/linux/tools/perf/util/ |
A D | header.c | 1594 struct perf_header *ph = ff->ph; in print_cpu_topology() local 2000 ff->ph->env.comp_level, ff->ph->env.comp_ratio); in print_compressed() 2479 struct perf_header *ph = ff->ph; in process_cpu_topology() local 2482 ph->env.cpu = calloc(cpu_nr, sizeof(*ph->env.cpu)); in process_cpu_topology() 2483 if (!ph->env.cpu) in process_cpu_topology() 2540 if (ph->env.arch && (!strncmp(ph->env.arch, "s390", 4) in process_cpu_topology() 3361 .ph = ph, in perf_file_section__fprintf_info() 3457 .ph = header, in perf_header__adds_write() 3682 ph->needs_swap); in try_all_file_abis() 3845 .ph = ph, in perf_file_section__process() [all …]
|
/linux/arch/powerpc/boot/ |
A D | addnote.c | 118 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 …]
|
/linux/drivers/block/paride/ |
A D | epia.c | 138 { int k, ph, a, b; in epia_read_block() local 143 ph = 1; 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() 170 ph = 1 - ph; in epia_read_block() 198 { int ph, k, last, d; in epia_write_block() local 209 w2(4+ph); in epia_write_block() [all …]
|
A D | epat.c | 104 ph = 0; 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() 133 ph = 1 - ph; in epat_read_block() 164 { int ph, k; in epat_write_block() local 171 ph = 0; in epat_write_block() 174 w2(4+ph); in epat_write_block() [all …]
|
/linux/block/partitions/ |
A D | ldm.c | 84 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 …]
|
/linux/include/linux/soc/ti/ |
A D | knav_qmss.h | 80 void knav_pool_destroy(void *ph); 81 int knav_pool_count(void *ph); 82 void *knav_pool_desc_get(void *ph); 83 void knav_pool_desc_put(void *ph, void *desc); 84 int knav_pool_desc_map(void *ph, void *desc, unsigned size, 86 void *knav_pool_desc_unmap(void *ph, dma_addr_t dma, unsigned dma_sz); 87 dma_addr_t knav_pool_desc_virt_to_dma(void *ph, void *virt); 88 void *knav_pool_desc_dma_to_virt(void *ph, dma_addr_t dma);
|
/linux/net/phonet/ |
A D | pep.c | 52 } *ph, h; in pep_get_sb() local 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() 60 *plen = ph->sb_len; in pep_get_sb() 97 ph = pnp_hdr(skb); in pep_reply() 118 ph = pnp_hdr(skb); in pep_indicate() 119 ph->utid = 0; in pep_indicate() 139 ph = pnp_hdr(skb); in pipe_handler_request() 726 ph->utid = 0; in pipe_do_remove() 729 ph->data0 = PAD; in pipe_do_remove() [all …]
|
A D | af_phonet.c | 151 struct phonethdr *ph; in pn_send() local 170 ph = pn_hdr(skb); in pn_send() 171 ph->pn_rdev = pn_dev(dst); in pn_send() 172 ph->pn_sdev = pn_dev(src); in pn_send() 173 ph->pn_res = res; in pn_send() 174 ph->pn_length = __cpu_to_be16(skb->len + 2 - sizeof(*ph)); in pn_send() 175 ph->pn_robj = pn_obj(dst); in pn_send() 176 ph->pn_sobj = pn_obj(src); in pn_send() 293 ph = pn_hdr(skb); in can_respond() 362 struct phonethdr *ph; in phonet_rcv() local [all …]
|
/linux/include/net/phonet/ |
A D | phonet.h | 70 struct phonethdr *ph = pn_hdr(skb); in pn_skb_get_src_sockaddr() local 71 u16 obj = pn_object(ph->pn_sdev, ph->pn_sobj); in pn_skb_get_src_sockaddr() 75 pn_sockaddr_set_resource(sa, ph->pn_res); in pn_skb_get_src_sockaddr() 82 struct phonethdr *ph = pn_hdr(skb); in pn_skb_get_dst_sockaddr() local 83 u16 obj = pn_object(ph->pn_rdev, ph->pn_robj); in pn_skb_get_dst_sockaddr() 87 pn_sockaddr_set_resource(sa, ph->pn_res); in pn_skb_get_dst_sockaddr()
|
/linux/arch/mips/boot/ |
A D | elf2ecoff.c | 271 Elf32_Phdr *ph; in main() local 351 switch (ph[i].p_type) { in main() 361 if (ph[i].p_flags & PF_W) { 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() 375 ntxt.len = ph[i].p_filesz; in main() 381 cur_vma = ph[i].p_vaddr; in main() 567 if (ph[i].p_type == PT_LOAD && ph[i].p_filesz) { in main() 597 ph[i].p_filesz); in main() 599 ph[i].p_filesz); in main() [all …]
|
/linux/drivers/clk/ |
A D | clk-scmi.c | 22 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() 185 sclk->ph = ph; in scmi_clocks_probe()
|
/linux/drivers/clk/meson/ |
A D | clk-phase.c | 43 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()
|
/linux/drivers/regulator/ |
A D | scmi-regulator.c | 41 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() 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 309 SCMI_PROTOCOL_VOLTAGE, &ph); in scmi_regulator_probe() [all …]
|
/linux/drivers/cpufreq/ |
A D | scmi-cpufreq.c | 30 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()
|