Home
last modified time | relevance | path

Searched refs:core (Results 1 – 25 of 2036) sorted by relevance

12345678910>>...82

/linux-6.6.21/drivers/media/platform/amphion/
Dvpu_core.c29 void csr_writel(struct vpu_core *core, u32 reg, u32 val) in csr_writel() argument
31 writel(val, core->base + reg); in csr_writel()
34 u32 csr_readl(struct vpu_core *core, u32 reg) in csr_readl() argument
36 return readl(core->base + reg); in csr_readl()
39 static int vpu_core_load_firmware(struct vpu_core *core) in vpu_core_load_firmware() argument
44 if (!core->fw.virt) { in vpu_core_load_firmware()
45 dev_err(core->dev, "firmware buffer is not ready\n"); in vpu_core_load_firmware()
49 ret = request_firmware(&pfw, core->res->fwname, core->dev); in vpu_core_load_firmware()
50 dev_dbg(core->dev, "request_firmware %s : %d\n", core->res->fwname, ret); in vpu_core_load_firmware()
52 dev_err(core->dev, "request firmware %s failed, ret = %d\n", in vpu_core_load_firmware()
[all …]
Dvpu_mbox.c20 struct vpu_core *core = container_of(rx, struct vpu_core, rx); in vpu_mbox_rx_callback() local
22 vpu_isr(core, *(u32 *)msg); in vpu_mbox_rx_callback()
56 int vpu_mbox_init(struct vpu_core *core) in vpu_mbox_init() argument
58 scnprintf(core->tx_type.name, sizeof(core->tx_type.name) - 1, "tx0"); in vpu_mbox_init()
59 core->tx_type.block = true; in vpu_mbox_init()
61 scnprintf(core->tx_data.name, sizeof(core->tx_data.name) - 1, "tx1"); in vpu_mbox_init()
62 core->tx_data.block = false; in vpu_mbox_init()
64 scnprintf(core->rx.name, sizeof(core->rx.name) - 1, "rx"); in vpu_mbox_init()
65 core->rx.block = true; in vpu_mbox_init()
70 int vpu_mbox_request(struct vpu_core *core) in vpu_mbox_request() argument
[all …]
Dvpu_rpc.h27 struct vpu_core *core; member
47 int (*boot_core)(struct vpu_core *core);
48 int (*shutdown_core)(struct vpu_core *core);
49 int (*restore_core)(struct vpu_core *core);
50 int (*get_power_state)(struct vpu_core *core);
51 int (*on_firmware_loaded)(struct vpu_core *core);
114 struct vpu_iface_ops *vpu_core_get_iface(struct vpu_core *core);
116 int vpu_iface_check_memory_region(struct vpu_core *core, dma_addr_t addr, u32 size);
118 static inline bool vpu_iface_check_codec(struct vpu_core *core) in vpu_iface_check_codec() argument
120 struct vpu_iface_ops *ops = vpu_core_get_iface(core); in vpu_iface_check_codec()
[all …]
/linux-6.6.21/drivers/mfd/
Dsi476x-i2c.c36 static int si476x_core_config_pinmux(struct si476x_core *core) in si476x_core_config_pinmux() argument
39 dev_dbg(&core->client->dev, "Configuring pinmux\n"); in si476x_core_config_pinmux()
40 err = si476x_core_cmd_dig_audio_pin_cfg(core, in si476x_core_config_pinmux()
41 core->pinmux.dclk, in si476x_core_config_pinmux()
42 core->pinmux.dfs, in si476x_core_config_pinmux()
43 core->pinmux.dout, in si476x_core_config_pinmux()
44 core->pinmux.xout); in si476x_core_config_pinmux()
46 dev_err(&core->client->dev, in si476x_core_config_pinmux()
52 err = si476x_core_cmd_zif_pin_cfg(core, in si476x_core_config_pinmux()
53 core->pinmux.iqclk, in si476x_core_config_pinmux()
[all …]
Dwl1273-core.c21 static int wl1273_fm_read_reg(struct wl1273_core *core, u8 reg, u16 *value) in wl1273_fm_read_reg() argument
23 struct i2c_client *client = core->client; in wl1273_fm_read_reg()
38 static int wl1273_fm_write_cmd(struct wl1273_core *core, u8 cmd, u16 param) in wl1273_fm_write_cmd() argument
40 struct i2c_client *client = core->client; in wl1273_fm_write_cmd()
53 static int wl1273_fm_write_data(struct wl1273_core *core, u8 *data, u16 len) in wl1273_fm_write_data() argument
55 struct i2c_client *client = core->client; in wl1273_fm_write_data()
80 static int wl1273_fm_set_audio(struct wl1273_core *core, unsigned int new_mode) in wl1273_fm_set_audio() argument
84 if (core->mode == WL1273_MODE_OFF || in wl1273_fm_set_audio()
85 core->mode == WL1273_MODE_SUSPENDED) in wl1273_fm_set_audio()
88 if (core->mode == WL1273_MODE_RX && new_mode == WL1273_AUDIO_DIGITAL) { in wl1273_fm_set_audio()
[all …]
/linux-6.6.21/drivers/clk/
Dclk.c50 struct clk_core *core; member
98 struct clk_core *core; member
109 static int clk_pm_runtime_get(struct clk_core *core) in clk_pm_runtime_get() argument
111 if (!core->rpm_enabled) in clk_pm_runtime_get()
114 return pm_runtime_resume_and_get(core->dev); in clk_pm_runtime_get()
117 static void clk_pm_runtime_put(struct clk_core *core) in clk_pm_runtime_put() argument
119 if (!core->rpm_enabled) in clk_pm_runtime_put()
122 pm_runtime_put_sync(core->dev); in clk_pm_runtime_put()
194 static bool clk_core_rate_is_protected(struct clk_core *core) in clk_core_rate_is_protected() argument
196 return core->protect_count; in clk_core_rate_is_protected()
[all …]
/linux-6.6.21/drivers/staging/media/meson/vdec/
Dvdec_1.c29 struct amvdec_core *core = sess->core; in vdec_1_load_firmware() local
30 struct device *dev = core->dev_dec; in vdec_1_load_firmware()
48 mc_addr = dma_alloc_coherent(core->dev, MC_SIZE, in vdec_1_load_firmware()
57 amvdec_write_dos(core, MPSR, 0); in vdec_1_load_firmware()
58 amvdec_write_dos(core, CPSR, 0); in vdec_1_load_firmware()
60 amvdec_clear_dos_bits(core, MDEC_PIC_DC_CTRL, BIT(31)); in vdec_1_load_firmware()
62 amvdec_write_dos(core, IMEM_DMA_ADR, mc_addr_map); in vdec_1_load_firmware()
63 amvdec_write_dos(core, IMEM_DMA_COUNT, MC_SIZE / 4); in vdec_1_load_firmware()
64 amvdec_write_dos(core, IMEM_DMA_CTRL, (0x8000 | (7 << 16))); in vdec_1_load_firmware()
66 while (--i && amvdec_read_dos(core, IMEM_DMA_CTRL) & 0x8000); in vdec_1_load_firmware()
[all …]
Dvdec_hevc.c29 struct amvdec_core *core = sess->core; in vdec_hevc_load_firmware() local
30 struct device *dev = core->dev_dec; in vdec_hevc_load_firmware()
50 mc_addr = dma_alloc_coherent(core->dev, MC_SIZE, &mc_addr_map, in vdec_hevc_load_firmware()
59 amvdec_write_dos(core, HEVC_MPSR, 0); in vdec_hevc_load_firmware()
60 amvdec_write_dos(core, HEVC_CPSR, 0); in vdec_hevc_load_firmware()
62 amvdec_write_dos(core, HEVC_IMEM_DMA_ADR, mc_addr_map); in vdec_hevc_load_firmware()
63 amvdec_write_dos(core, HEVC_IMEM_DMA_COUNT, MC_SIZE / 4); in vdec_hevc_load_firmware()
64 amvdec_write_dos(core, HEVC_IMEM_DMA_CTRL, (0x8000 | (7 << 16))); in vdec_hevc_load_firmware()
66 while (i && (readl(core->dos_base + HEVC_IMEM_DMA_CTRL) & 0x8000)) in vdec_hevc_load_firmware()
74 dma_free_coherent(core->dev, MC_SIZE, mc_addr, mc_addr_map); in vdec_hevc_load_firmware()
[all …]
Dcodec_h264.c148 static int codec_h264_can_recycle(struct amvdec_core *core) in codec_h264_can_recycle() argument
150 return !amvdec_read_dos(core, AV_SCRATCH_7) || in codec_h264_can_recycle()
151 !amvdec_read_dos(core, AV_SCRATCH_8); in codec_h264_can_recycle()
154 static void codec_h264_recycle(struct amvdec_core *core, u32 buf_idx) in codec_h264_recycle() argument
160 if (!amvdec_read_dos(core, AV_SCRATCH_7)) in codec_h264_recycle()
161 amvdec_write_dos(core, AV_SCRATCH_7, buf_idx + 1); in codec_h264_recycle()
163 amvdec_write_dos(core, AV_SCRATCH_8, buf_idx + 1); in codec_h264_recycle()
169 struct amvdec_core *core = sess->core; in codec_h264_start() local
174 dma_alloc_coherent(core->dev, SIZE_WORKSPACE, in codec_h264_start()
180 h264->sei_vaddr = dma_alloc_coherent(core->dev, SIZE_SEI, in codec_h264_start()
[all …]
/linux-6.6.21/drivers/media/platform/qcom/venus/
Dcore.c29 static void venus_coredump(struct venus_core *core) in venus_coredump() argument
37 dev = core->dev; in venus_coredump()
38 mem_phys = core->fw.mem_phys; in venus_coredump()
39 mem_size = core->fw.mem_size; in venus_coredump()
56 static void venus_event_notify(struct venus_core *core, u32 event) in venus_event_notify() argument
68 mutex_lock(&core->lock); in venus_event_notify()
69 set_bit(0, &core->sys_error); in venus_event_notify()
70 list_for_each_entry(inst, &core->instances, list) in venus_event_notify()
72 mutex_unlock(&core->lock); in venus_event_notify()
74 disable_irq_nosync(core->irq); in venus_event_notify()
[all …]
Dpm_helpers.c26 static int core_clks_get(struct venus_core *core) in core_clks_get() argument
28 const struct venus_resources *res = core->res; in core_clks_get()
29 struct device *dev = core->dev; in core_clks_get()
33 core->clks[i] = devm_clk_get(dev, res->clks[i]); in core_clks_get()
34 if (IS_ERR(core->clks[i])) in core_clks_get()
35 return PTR_ERR(core->clks[i]); in core_clks_get()
41 static int core_clks_enable(struct venus_core *core) in core_clks_enable() argument
43 const struct venus_resources *res = core->res; in core_clks_enable()
44 const struct freq_tbl *freq_tbl = core->res->freq_tbl; in core_clks_enable()
45 unsigned int freq_tbl_size = core->res->freq_tbl_size; in core_clks_enable()
[all …]
Dhfi.c50 int hfi_core_init(struct venus_core *core) in hfi_core_init() argument
54 mutex_lock(&core->lock); in hfi_core_init()
56 if (core->state >= CORE_INIT) in hfi_core_init()
59 reinit_completion(&core->done); in hfi_core_init()
61 ret = core->ops->core_init(core); in hfi_core_init()
65 ret = wait_for_completion_timeout(&core->done, TIMEOUT); in hfi_core_init()
73 if (core->error != HFI_ERR_NONE) { in hfi_core_init()
78 core->state = CORE_INIT; in hfi_core_init()
80 mutex_unlock(&core->lock); in hfi_core_init()
84 int hfi_core_deinit(struct venus_core *core, bool blocking) in hfi_core_deinit() argument
[all …]
Dfirmware.c28 static void venus_reset_cpu(struct venus_core *core) in venus_reset_cpu() argument
30 u32 fw_size = core->fw.mapped_mem_size; in venus_reset_cpu()
33 if (IS_IRIS2_1(core)) in venus_reset_cpu()
34 wrapper_base = core->wrapper_tz_base; in venus_reset_cpu()
36 wrapper_base = core->wrapper_base; in venus_reset_cpu()
45 if (IS_IRIS2_1(core)) { in venus_reset_cpu()
57 int venus_set_hw_state(struct venus_core *core, bool resume) in venus_set_hw_state() argument
61 if (core->use_tz) { in venus_set_hw_state()
69 venus_reset_cpu(core); in venus_set_hw_state()
71 if (IS_IRIS2_1(core)) in venus_set_hw_state()
[all …]
/linux-6.6.21/drivers/bcma/
Dmain.c36 struct bcma_device *core = container_of(dev, struct bcma_device, dev); in manuf_show() local
37 return sprintf(buf, "0x%03X\n", core->id.manuf); in manuf_show()
43 struct bcma_device *core = container_of(dev, struct bcma_device, dev); in id_show() local
44 return sprintf(buf, "0x%03X\n", core->id.id); in id_show()
50 struct bcma_device *core = container_of(dev, struct bcma_device, dev); in rev_show() local
51 return sprintf(buf, "0x%02X\n", core->id.rev); in rev_show()
57 struct bcma_device *core = container_of(dev, struct bcma_device, dev); in class_show() local
58 return sprintf(buf, "0x%X\n", core->id.class); in class_show()
90 struct bcma_device *core; in bcma_find_core_unit() local
92 list_for_each_entry(core, &bus->cores, list) { in bcma_find_core_unit()
[all …]
Dcore.c12 static bool bcma_core_wait_value(struct bcma_device *core, u16 reg, u32 mask, in bcma_core_wait_value() argument
19 val = bcma_aread32(core, reg); in bcma_core_wait_value()
26 bcma_warn(core->bus, "Timeout waiting for register 0x%04X!\n", reg); in bcma_core_wait_value()
31 bool bcma_core_is_enabled(struct bcma_device *core) in bcma_core_is_enabled() argument
33 if ((bcma_aread32(core, BCMA_IOCTL) & (BCMA_IOCTL_CLK | BCMA_IOCTL_FGC)) in bcma_core_is_enabled()
36 if (bcma_aread32(core, BCMA_RESET_CTL) & BCMA_RESET_CTL_RESET) in bcma_core_is_enabled()
42 void bcma_core_disable(struct bcma_device *core, u32 flags) in bcma_core_disable() argument
44 if (bcma_aread32(core, BCMA_RESET_CTL) & BCMA_RESET_CTL_RESET) in bcma_core_disable()
47 bcma_core_wait_value(core, BCMA_RESET_ST, ~0, 0, 300); in bcma_core_disable()
49 bcma_awrite32(core, BCMA_RESET_CTL, BCMA_RESET_CTL_RESET); in bcma_core_disable()
[all …]
/linux-6.6.21/drivers/gpu/drm/omapdrm/dss/
Dhdmi4_cec.c56 static void hdmi_cec_received_msg(struct hdmi_core_data *core) in hdmi_cec_received_msg() argument
58 u32 cnt = hdmi_read_reg(core->base, HDMI_CEC_RX_COUNT) & 0xff; in hdmi_cec_received_msg()
71 msg.msg[0] = hdmi_read_reg(core->base, in hdmi_cec_received_msg()
73 msg.msg[1] = hdmi_read_reg(core->base, in hdmi_cec_received_msg()
79 hdmi_read_reg(core->base, reg); in hdmi_cec_received_msg()
82 cec_received_msg(core->adap, &msg); in hdmi_cec_received_msg()
85 hdmi_write_reg(core->base, HDMI_CEC_RX_CONTROL, 1); in hdmi_cec_received_msg()
87 while (hdmi_read_reg(core->base, HDMI_CEC_RX_CONTROL) & 1) in hdmi_cec_received_msg()
93 cnt = hdmi_read_reg(core->base, HDMI_CEC_RX_COUNT) & 0xff; in hdmi_cec_received_msg()
97 void hdmi4_cec_irq(struct hdmi_core_data *core) in hdmi4_cec_irq() argument
[all …]
/linux-6.6.21/drivers/clk/at91/
Dclk-sam9x60-pll.c41 struct sam9x60_pll_core core; member
48 struct sam9x60_pll_core core; member
55 #define to_sam9x60_frac(core) container_of(core, struct sam9x60_frac, core) argument
56 #define to_sam9x60_div(core) container_of(core, struct sam9x60_div, core) argument
77 struct sam9x60_pll_core *core = to_sam9x60_pll_core(hw); in sam9x60_frac_pll_recalc_rate() local
78 struct sam9x60_frac *frac = to_sam9x60_frac(core); in sam9x60_frac_pll_recalc_rate()
84 static int sam9x60_frac_pll_set(struct sam9x60_pll_core *core) in sam9x60_frac_pll_set() argument
86 struct sam9x60_frac *frac = to_sam9x60_frac(core); in sam9x60_frac_pll_set()
87 struct regmap *regmap = core->regmap; in sam9x60_frac_pll_set()
91 spin_lock_irqsave(core->lock, flags); in sam9x60_frac_pll_set()
[all …]
/linux-6.6.21/include/trace/events/
Dclk.h17 TP_PROTO(struct clk_core *core),
19 TP_ARGS(core),
22 __string( name, core->name )
26 __assign_str(name, core->name);
34 TP_PROTO(struct clk_core *core),
36 TP_ARGS(core)
41 TP_PROTO(struct clk_core *core),
43 TP_ARGS(core)
48 TP_PROTO(struct clk_core *core),
50 TP_ARGS(core)
[all …]
/linux-6.6.21/drivers/media/radio/
Dradio-wl1273.c77 struct wl1273_core *core; member
95 static int wl1273_fm_write_fw(struct wl1273_core *core, in wl1273_fm_write_fw() argument
98 struct i2c_client *client = core->client; in wl1273_fm_write_fw()
133 struct wl1273_core *core = radio->core; in wl1273_fm_rds() local
134 struct i2c_client *client = core->client; in wl1273_fm_rds()
154 if (core->mode != WL1273_MODE_RX) in wl1273_fm_rds()
157 r = core->read(core, WL1273_RDS_SYNC_GET, &val); in wl1273_fm_rds()
221 struct wl1273_core *core = radio->core; in wl1273_fm_irq_thread_handler() local
225 r = core->read(core, WL1273_FLAG_GET, &flags); in wl1273_fm_irq_thread_handler()
249 r = core->read(core, WL1273_RSSI_LVL_GET, &level); in wl1273_fm_irq_thread_handler()
[all …]
/linux-6.6.21/tools/perf/pmu-events/arch/x86/
Dmapfile.csv2 GenuineIntel-6-(97|9A|B7|BA|BF),v1.21,alderlake,core
3 GenuineIntel-6-BE,v1.21,alderlaken,core
4 GenuineIntel-6-(1C|26|27|35|36),v4,bonnell,core
5 GenuineIntel-6-(3D|47),v28,broadwell,core
6 GenuineIntel-6-56,v10,broadwellde,core
7 GenuineIntel-6-4F,v21,broadwellx,core
8 GenuineIntel-6-55-[56789ABCDEF],v1.19,cascadelakex,core
9 GenuineIntel-6-9[6C],v1.04,elkhartlake,core
10 GenuineIntel-6-5[CF],v13,goldmont,core
11 GenuineIntel-6-7A,v1.01,goldmontplus,core
[all …]
/linux-6.6.21/drivers/remoteproc/
Dti_k3_r5_remoteproc.c166 struct k3_r5_core *core; member
235 static int k3_r5_split_reset(struct k3_r5_core *core) in k3_r5_split_reset() argument
239 ret = reset_control_assert(core->reset); in k3_r5_split_reset()
241 dev_err(core->dev, "local-reset assert failed, ret = %d\n", in k3_r5_split_reset()
246 ret = core->ti_sci->ops.dev_ops.put_device(core->ti_sci, in k3_r5_split_reset()
247 core->ti_sci_id); in k3_r5_split_reset()
249 dev_err(core->dev, "module-reset assert failed, ret = %d\n", in k3_r5_split_reset()
251 if (reset_control_deassert(core->reset)) in k3_r5_split_reset()
252 dev_warn(core->dev, "local-reset deassert back failed\n"); in k3_r5_split_reset()
258 static int k3_r5_split_release(struct k3_r5_core *core) in k3_r5_split_release() argument
[all …]
/linux-6.6.21/tools/perf/tests/
Dparse-events.c39 __u32 type = evsel->core.attr.type; in test_config()
40 __u64 config = evsel->core.attr.config; in test_config()
89 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_tracepoint()
91 TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT == evsel->core.attr.type); in test__checkevent_tracepoint()
93 PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type); in test__checkevent_tracepoint()
94 TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->core.attr.sample_period); in test__checkevent_tracepoint()
102 TEST_ASSERT_VAL("wrong number of entries", evlist->core.nr_entries > 1); in test__checkevent_tracepoint_multi()
107 PERF_TYPE_TRACEPOINT == evsel->core.attr.type); in test__checkevent_tracepoint_multi()
109 PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type); in test__checkevent_tracepoint_multi()
111 1 == evsel->core.attr.sample_period); in test__checkevent_tracepoint_multi()
[all …]
/linux-6.6.21/drivers/media/pci/cx88/
Dcx88-i2c.c46 struct cx88_core *core = data; in cx8800_bit_setscl() local
49 core->i2c_state |= 0x02; in cx8800_bit_setscl()
51 core->i2c_state &= ~0x02; in cx8800_bit_setscl()
52 cx_write(MO_I2C, core->i2c_state); in cx8800_bit_setscl()
58 struct cx88_core *core = data; in cx8800_bit_setsda() local
61 core->i2c_state |= 0x01; in cx8800_bit_setsda()
63 core->i2c_state &= ~0x01; in cx8800_bit_setsda()
64 cx_write(MO_I2C, core->i2c_state); in cx8800_bit_setsda()
70 struct cx88_core *core = data; in cx8800_bit_getscl() local
79 struct cx88_core *core = data; in cx8800_bit_getsda() local
[all …]
Dcx88-tvaudio.c92 static void set_audio_registers(struct cx88_core *core, const struct rlist *l) in set_audio_registers() argument
113 static void set_audio_start(struct cx88_core *core, u32 mode) in set_audio_start() argument
124 static void set_audio_finish(struct cx88_core *core, u32 ctl) in set_audio_finish() argument
129 cx88_stop_audio_dma(core); in set_audio_finish()
131 cx88_start_audio_dma(core); in set_audio_finish()
133 if (core->board.mpeg & CX88_MPEG_BLACKBIRD) { in set_audio_finish()
145 if ((always_analog) || (!(core->board.mpeg & CX88_MPEG_BLACKBIRD))) { in set_audio_finish()
157 core->last_change = jiffies; in set_audio_finish()
162 static void set_audio_standard_BTSC(struct cx88_core *core, unsigned int sap, in set_audio_standard_BTSC() argument
261 set_audio_start(core, SEL_SAP); in set_audio_standard_BTSC()
[all …]
/linux-6.6.21/drivers/phy/broadcom/
Dphy-bcm-sr-pcie.c47 struct sr_pcie_phy_core *core; member
120 static u32 pipemux_strap_read(struct sr_pcie_phy_core *core) in pipemux_strap_read() argument
130 pipemux = readl(core->base + PCIE_PIPEMUX_CFG_OFFSET); in pipemux_strap_read()
133 regmap_read(core->cdru, CDRU_STRAP_DATA_LSW_OFFSET, &pipemux); in pipemux_strap_read()
147 struct sr_pcie_phy_core *core = phy->core; in pcie_core_is_for_rc() local
150 return !!((pipemux_table[core->pipemux] >> core_idx) & 0x1); in pcie_core_is_for_rc()
171 struct sr_pcie_phy_core *core = phy->core; in sr_paxc_phy_init() local
178 regmap_read(core->mhb, MHB_MEM_PW_PAXC_OFFSET, &val); in sr_paxc_phy_init()
180 dev_err(core->dev, "PAXC is not powered up\n"); in sr_paxc_phy_init()
200 struct sr_pcie_phy_core *core; in sr_pcie_phy_xlate() local
[all …]

12345678910>>...82