| /OK3568_Linux_fs/external/mpp/mpp/codec/dec/avs2/ |
| H A D | avs2d_ps.c | 139 Avs2dPicHeader_t *ph = &p_dec->ph; in wq_init_frame_quant_param() local 141 if (!p_dec->enable_wq || ph->pic_wq_data_index != 1) { in wq_init_frame_quant_param() 146 if (ph->wq_param_index == 0) { in wq_init_frame_quant_param() 148 ph->pic_wq_param[i] = wq_param_default[DETAILED][i]; in wq_init_frame_quant_param() 150 } else if (ph->wq_param_index == 1) { in wq_init_frame_quant_param() 152 ph->pic_wq_param[i] = ph->wq_param_delta1[i] + wq_param_default[UNDETAILED][i]; in wq_init_frame_quant_param() 154 } else if (ph->wq_param_index == 2) { in wq_init_frame_quant_param() 156 ph->pic_wq_param[i] = ph->wq_param_delta2[i] + wq_param_default[DETAILED][i]; in wq_init_frame_quant_param() 163 k = WeightQuantModel[ph->wq_model][j * 8 + i]; in wq_init_frame_quant_param() 164 ph->pic_wq_matrix[1][j * 8 + i] = ph->pic_wq_param[k]; in wq_init_frame_quant_param() [all …]
|
| H A D | avs2d_dpb.c | 177 static void recompute_cycle_order_index(Avs2dFrameMgr_t *mgr, Avs2dPicHeader_t *ph) in recompute_cycle_order_index() argument 183 if (ph->doi < (INT_MAX - 2 * AVS2_DOI_CYCLE)) { in recompute_cycle_order_index() 197 ph->doi -= wrap_oi; in recompute_cycle_order_index() 206 Avs2dPicHeader_t *ph = &p_dec->ph; in compute_frame_order_index() local 213 ph->doi != (mgr->prev_doi + 1) % AVS2_DOI_CYCLE) { in compute_frame_order_index() 214 …VS2D_DBG(AVS2D_DBG_WARNNING, "discontinuous DOI (prev: %d --> curr: %d).", mgr->prev_doi, ph->doi); in compute_frame_order_index() 221 if (MPP_ABS(ph->doi - (p->doi % AVS2_DOI_CYCLE)) > 1) { in compute_frame_order_index() 229 if (ph->doi < mgr->prev_doi) { in compute_frame_order_index() 233 mgr->prev_doi = ph->doi; in compute_frame_order_index() 234 ph->doi += mgr->tr_wrap_cnt * AVS2_DOI_CYCLE; in compute_frame_order_index() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/firmware/arm_scmi/ |
| H A D | base.c | 58 static int scmi_base_attributes_get(const struct scmi_protocol_handle *ph) in scmi_base_attributes_get() argument 63 struct scmi_revision_info *rev = ph->get_priv(ph); in scmi_base_attributes_get() 65 ret = ph->xops->xfer_get_init(ph, PROTOCOL_ATTRIBUTES, in scmi_base_attributes_get() 70 ret = ph->xops->do_xfer(ph, t); in scmi_base_attributes_get() 77 ph->xops->xfer_put(ph, t); in scmi_base_attributes_get() 91 scmi_base_vendor_id_get(const struct scmi_protocol_handle *ph, bool sub_vendor) in scmi_base_vendor_id_get() argument 97 struct scmi_revision_info *rev = ph->get_priv(ph); in scmi_base_vendor_id_get() 110 ret = ph->xops->xfer_get_init(ph, cmd, 0, size, &t); in scmi_base_vendor_id_get() 114 ret = ph->xops->do_xfer(ph, t); in scmi_base_vendor_id_get() 118 ph->xops->xfer_put(ph, t); in scmi_base_vendor_id_get() [all …]
|
| H A D | voltage.c | 62 static int scmi_protocol_attributes_get(const struct scmi_protocol_handle *ph, in scmi_protocol_attributes_get() argument 68 ret = ph->xops->xfer_get_init(ph, PROTOCOL_ATTRIBUTES, 0, in scmi_protocol_attributes_get() 73 ret = ph->xops->do_xfer(ph, t); in scmi_protocol_attributes_get() 78 ph->xops->xfer_put(ph, t); in scmi_protocol_attributes_get() 112 static int scmi_voltage_descriptors_get(const struct scmi_protocol_handle *ph, in scmi_voltage_descriptors_get() argument 117 struct device *dev = ph->dev; in scmi_voltage_descriptors_get() 121 ret = ph->xops->xfer_get_init(ph, VOLTAGE_DOMAIN_ATTRIBUTES, in scmi_voltage_descriptors_get() 127 ret = ph->xops->xfer_get_init(ph, VOLTAGE_DESCRIBE_LEVELS, in scmi_voltage_descriptors_get() 141 ret = ph->xops->do_xfer(ph, td); in scmi_voltage_descriptors_get() 159 ret = ph->xops->do_xfer(ph, tl); in scmi_voltage_descriptors_get() [all …]
|
| H A D | reset.c | 68 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 …]
|
| H A D | clock.c | 79 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 …]
|
| H A D | power.c | 72 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 …]
|
| H A D | perf.c | 179 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 …]
|
| H A D | sensors.c | 206 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 …]
|
| H 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() 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 …]
|
| H A D | scmi_pm_domain.c | 18 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_get_protocol(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()
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/dec/avs/ |
| H A D | avsd_parse.c | 73 static MPP_RET gen_weight_quant_param(AvsdPicHeader_t *ph) in gen_weight_quant_param() argument 76 RK_U32 *wqp = (RK_U32 *)ph->weighting_quant_param; in gen_weight_quant_param() 82 if (ph->weighting_quant_flag == 0) { in gen_weight_quant_param() 90 if (ph->weighting_quant_param_index == 0x0) { in gen_weight_quant_param() 94 } else if (ph->weighting_quant_param_index == 0x1) { in gen_weight_quant_param() 97 ph->weighting_quant_param_delta1[i]; in gen_weight_quant_param() 99 } else if (ph->weighting_quant_param_index == 0x2) { in gen_weight_quant_param() 102 ph->weighting_quant_param_delta2[i]; in gen_weight_quant_param() 115 static MPP_RET get_extend_header(BitReadCtx_t *bitctx, AvsdSeqHeader_t *vsh, AvsdPicHeader_t *ph) in get_extend_header() argument 120 READ_ONEBIT(bitctx, &ph->loop_filter_disable); in get_extend_header() [all …]
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | scmi_protocol.h | 76 int (*count_get)(const struct scmi_protocol_handle *ph); 79 (const struct scmi_protocol_handle *ph, u32 clk_id); 80 int (*rate_get)(const struct scmi_protocol_handle *ph, u32 clk_id, 82 int (*rate_set)(const struct scmi_protocol_handle *ph, u32 clk_id, 84 int (*enable)(const struct scmi_protocol_handle *ph, u32 clk_id); 85 int (*disable)(const struct scmi_protocol_handle *ph, u32 clk_id); 109 int (*limits_set)(const struct scmi_protocol_handle *ph, u32 domain, 111 int (*limits_get)(const struct scmi_protocol_handle *ph, u32 domain, 113 int (*level_set)(const struct scmi_protocol_handle *ph, u32 domain, 115 int (*level_get)(const struct scmi_protocol_handle *ph, u32 domain, [all …]
|
| /OK3568_Linux_fs/kernel/drivers/reset/ |
| H 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 100 reset_ops = handle->devm_get_protocol(sdev, SCMI_PROTOCOL_RESET, &ph); in scmi_reset_probe() [all …]
|
| /OK3568_Linux_fs/kernel/tools/perf/util/ |
| H A D | header.c | 224 if (ff->ph->needs_swap) in do_read_u32() 237 if (ff->ph->needs_swap) in do_read_u64() 312 session = container_of(ff->ph, struct perf_session, header); in write_build_id() 884 session = container_of(ff->ph, struct perf_session, header); in write_auxtrace() 895 return do_write(ff, &ff->ph->env.clock.clockid_res_ns, in write_clockid() 896 sizeof(ff->ph->env.clock.clockid_res_ns)); in write_clockid() 914 data32 = ff->ph->env.clock.clockid; in write_clock_data() 921 data64 = &ff->ph->env.clock.tod_ns; in write_clock_data() 928 data64 = &ff->ph->env.clock.clockid_ns; in write_clock_data() 939 session = container_of(ff->ph, struct perf_session, header); in write_dir_format() [all …]
|
| /OK3568_Linux_fs/kernel/arch/powerpc/boot/ |
| H A D | addnote.c | 118 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/block/paride/ |
| H A D | epia.c | 138 { 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 …]
|
| H A D | epat.c | 99 { 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 …]
|
| /OK3568_Linux_fs/kernel/block/partitions/ |
| H A D | ldm.c | 67 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 …]
|
| /OK3568_Linux_fs/kernel/include/linux/soc/ti/ |
| H 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);
|
| /OK3568_Linux_fs/kernel/net/phonet/ |
| H A D | pep.c | 52 } *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 …]
|
| /OK3568_Linux_fs/u-boot/board/freescale/common/ |
| H A D | fman.c | 38 unsigned int ph; in fdt_set_phy_handle() local 51 ph = fdt_create_phandle(fdt, offset); in fdt_set_phy_handle() 52 if (!ph) in fdt_set_phy_handle() 55 ph = cpu_to_fdt32(ph); in fdt_set_phy_handle() 61 return fdt_setprop(fdt, offset, "phy-handle", &ph, sizeof(ph)); in fdt_set_phy_handle()
|
| /OK3568_Linux_fs/kernel/include/net/phonet/ |
| H 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()
|
| /OK3568_Linux_fs/kernel/arch/mips/boot/ |
| H A D | elf2ecoff.c | 271 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/clk/ |
| H A D | clk-scmi.c | 22 const struct scmi_protocol_handle *ph; member 34 ret = clk_ops->rate_get(clk->ph, clk->id, &rate); in scmi_clk_recalc_rate() 74 return clk_ops->rate_set(clk->ph, clk->id, rate); in scmi_clk_set_rate() 81 return clk_ops->enable(clk->ph, clk->id); in scmi_clk_enable() 88 clk_ops->disable(clk->ph, clk->id); in scmi_clk_disable() 147 struct scmi_protocol_handle *ph; in scmi_clocks_probe() local 152 clk_ops = handle->devm_get_protocol(sdev, SCMI_PROTOCOL_CLOCK, &ph); in scmi_clocks_probe() 156 count = clk_ops->count_get(ph); in scmi_clocks_probe() 177 sclk->info = clk_ops->info_get(ph, idx); in scmi_clocks_probe() 184 sclk->ph = ph; in scmi_clocks_probe()
|