Home
last modified time | relevance | path

Searched full:core (Results 1 – 25 of 8821) sorted by relevance

12345678910>>...353

/linux/drivers/mfd/
H A Dsi476x-i2c.c3 * drivers/mfd/si476x-i2c.c -- Core device driver for si476x MFD
21 #include <linux/mfd/si476x-core.h>
29 * @core: Core device structure
36 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()
[all …]
/linux/drivers/bcma/
H A 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 …]
H A Dcore.c3 * Core ops
12 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()
[all …]
H A Dhost_pci.c14 static void bcma_host_pci_switch_core(struct bcma_device *core) in bcma_host_pci_switch_core() argument
16 int win2 = core->bus->host_is_pcie2 ? in bcma_host_pci_switch_core()
19 pci_write_config_dword(core->bus->host_pci, BCMA_PCI_BAR0_WIN, in bcma_host_pci_switch_core()
20 core->addr); in bcma_host_pci_switch_core()
21 pci_write_config_dword(core->bus->host_pci, win2, core->wrap); in bcma_host_pci_switch_core()
22 core->bus->mapped_core = core; in bcma_host_pci_switch_core()
23 bcma_debug(core->bus, "Switched to core: 0x%X\n", core->id.id); in bcma_host_pci_switch_core()
26 /* Provides access to the requested core. Returns base offset that has to be
28 static u16 bcma_host_pci_provide_access_to_core(struct bcma_device *core) in bcma_host_pci_provide_access_to_core() argument
30 switch (core->id.id) { in bcma_host_pci_provide_access_to_core()
[all …]
/linux/drivers/net/wireless/broadcom/b43/
H A Dradio_2055.h11 #define B2055_C1_SP_RSSI 0x03 /* SP RSSI Core 1 */
12 #define B2055_C1_SP_PDMISC 0x04 /* SP PD MISC Core 1 */
13 #define B2055_C2_SP_RSSI 0x05 /* SP RSSI Core 2 */
14 #define B2055_C2_SP_PDMISC 0x06 /* SP PD MISC Core 2 */
15 #define B2055_C1_SP_RXGC1 0x07 /* SP RX GC1 Core 1 */
16 #define B2055_C1_SP_RXGC2 0x08 /* SP RX GC2 Core 1 */
17 #define B2055_C2_SP_RXGC1 0x09 /* SP RX GC1 Core 2 */
18 #define B2055_C2_SP_RXGC2 0x0A /* SP RX GC2 Core 2 */
19 #define B2055_C1_SP_LPFBWSEL 0x0B /* SP LPF BW select Core 1 */
20 #define B2055_C2_SP_LPFBWSEL 0x0C /* SP LPF BW select Core 2 */
[all …]
/linux/drivers/clk/at91/
H A Dclk-sam9x60-pll.c38 struct sam9x60_pll_core core; member
45 struct sam9x60_pll_core core; member
52 #define to_sam9x60_frac(core) container_of(core, struct sam9x60_frac, core) argument
53 #define to_sam9x60_div(core) container_of(core, struct sam9x60_div, core) argument
74 struct sam9x60_pll_core *core = to_sam9x60_pll_core(hw); in sam9x60_frac_pll_recalc_rate() local
75 struct sam9x60_frac *frac = to_sam9x60_frac(core); in sam9x60_frac_pll_recalc_rate()
81 if (core->layout->div2) in sam9x60_frac_pll_recalc_rate()
87 static int sam9x60_frac_pll_set(struct sam9x60_pll_core *core) in sam9x60_frac_pll_set() argument
89 struct sam9x60_frac *frac = to_sam9x60_frac(core); in sam9x60_frac_pll_set()
90 struct regmap *regmap = core->regmap; in sam9x60_frac_pll_set()
[all …]
/linux/drivers/media/platform/qcom/venus/
H A Dpm_helpers.c18 #include "core.h"
26 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 freq_tbl *freq_tbl = core->res->freq_tbl; in core_clks_enable()
44 unsigned int freq_tbl_size = core->res->freq_tbl_size; in core_clks_enable()
[all …]
H A Dhfi.c13 #include "core.h"
50 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()
[all …]
H A Dcore.c26 #include "core.h"
31 static void venus_coredump(struct venus_core *core) in venus_coredump() argument
39 dev = core->dev; in venus_coredump()
40 mem_phys = core->fw.mem_phys; in venus_coredump()
41 mem_size = core->fw.mem_size; in venus_coredump()
58 static void venus_event_notify(struct venus_core *core, u32 event) in venus_event_notify() argument
70 mutex_lock(&core->lock); in venus_event_notify()
71 set_bit(0, &core->sys_error); in venus_event_notify()
72 set_bit(0, &core->dump_core); in venus_event_notify()
73 list_for_each_entry(inst, &core->instances, list) in venus_event_notify()
[all …]
H A Dfirmware.c19 #include "core.h"
27 static void venus_reset_cpu(struct venus_core *core) in venus_reset_cpu() argument
29 u32 fw_size = core->fw.mapped_mem_size; in venus_reset_cpu()
32 if (IS_IRIS2(core) || IS_IRIS2_1(core)) in venus_reset_cpu()
33 wrapper_base = core->wrapper_tz_base; in venus_reset_cpu()
35 wrapper_base = core->wrapper_base; in venus_reset_cpu()
44 if (IS_IRIS2(core) || IS_IRIS2_1(core)) { in venus_reset_cpu()
56 int venus_set_hw_state(struct venus_core *core, bool resume) in venus_set_hw_state() argument
60 if (core->use_tz) { in venus_set_hw_state()
68 venus_reset_cpu(core); in venus_set_hw_state()
[all …]
/linux/drivers/staging/media/meson/vdec/
H A 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 …]
H A 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 …]
/linux/drivers/clk/
H A Dclk.c60 struct clk_core *core; member
110 struct clk_core *core; member
121 static int clk_pm_runtime_get(struct clk_core *core) in clk_pm_runtime_get() argument
123 if (!core->rpm_enabled) in clk_pm_runtime_get()
126 return pm_runtime_resume_and_get(core->dev); in clk_pm_runtime_get()
129 static void clk_pm_runtime_put(struct clk_core *core) in clk_pm_runtime_put() argument
131 if (!core->rpm_enabled) in clk_pm_runtime_put()
134 pm_runtime_put_sync(core->dev); in clk_pm_runtime_put()
155 struct clk_core *core, *failed; in clk_pm_runtime_get_all() local
168 hlist_for_each_entry(core, &clk_rpm_list, rpm_node) { in clk_pm_runtime_get_all()
[all …]
/linux/drivers/gpu/drm/omapdrm/dss/
H A 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/include/trace/events/
H A Dclk.h17 TP_PROTO(struct clk_core *core),
19 TP_ARGS(core),
22 __string( 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)
55 TP_PROTO(struct clk_core *core),
[all …]
/linux/tools/perf/pmu-events/arch/x86/
H A Dmapfile.csv2 GenuineIntel-6-(97|9A|B7|BA|BF),v1.35,alderlake,core
3 GenuineIntel-6-BE,v1.35,alderlaken,core
4 GenuineIntel-6-C[56],v1.14,arrowlake,core
5 GenuineIntel-6-(1C|26|27|35|36),v5,bonnell,core
6 GenuineIntel-6-(3D|47),v30,broadwell,core
7 GenuineIntel-6-56,v12,broadwellde,core
8 GenuineIntel-6-4F,v23,broadwellx,core
9 GenuineIntel-6-55-[56789ABCDEF],v1.25,cascadelakex,core
10 GenuineIntel-6-DD,v1.00,clearwaterforest,core
11 GenuineIntel-6-9[6C],v1.05,elkhartlake,core
[all …]
/linux/drivers/accel/rocket/
H A Drocket_job.c44 static struct dma_fence *rocket_fence_create(struct rocket_core *core) in rocket_fence_create() argument
52 dma_fence_init(fence, &rocket_fence_ops, &core->fence_lock, in rocket_fence_create()
53 core->fence_context, ++core->emit_seqno); in rocket_fence_create()
108 static void rocket_job_hw_submit(struct rocket_core *core, struct rocket_job *job) in rocket_job_hw_submit() argument
114 if (atomic_read(&core->reset.pending)) in rocket_job_hw_submit()
122 rocket_pc_writel(core, BASE_ADDRESS, 0x1); in rocket_job_hw_submit()
125 extra_bit = 0x10000000 * core->index; in rocket_job_hw_submit()
126 rocket_cna_writel(core, S_POINTER, CNA_S_POINTER_POINTER_PP_EN(1) | in rocket_job_hw_submit()
131 rocket_core_writel(core, S_POINTER, CORE_S_POINTER_POINTER_PP_EN(1) | in rocket_job_hw_submit()
136 rocket_pc_writel(core, BASE_ADDRESS, task->regcmd); in rocket_job_hw_submit()
[all …]
/linux/drivers/media/platform/amphion/
H A Dvpu_rpc.h9 #include <media/videobuf2-core.h>
27 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
[all …]
H A 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 …]
/linux/drivers/media/platform/qcom/iris/
H A Diris_hfi_queue.c112 int iris_hfi_queue_cmd_write_locked(struct iris_core *core, void *pkt, u32 pkt_size) in iris_hfi_queue_cmd_write_locked() argument
114 struct iris_iface_q_info *q_info = &core->command_queue; in iris_hfi_queue_cmd_write_locked()
116 if (core->state == IRIS_CORE_ERROR || core->state == IRIS_CORE_DEINIT) in iris_hfi_queue_cmd_write_locked()
120 iris_vpu_raise_interrupt(core); in iris_hfi_queue_cmd_write_locked()
122 dev_err(core->dev, "queue full\n"); in iris_hfi_queue_cmd_write_locked()
129 int iris_hfi_queue_cmd_write(struct iris_core *core, void *pkt, u32 pkt_size) in iris_hfi_queue_cmd_write() argument
133 ret = pm_runtime_resume_and_get(core->dev); in iris_hfi_queue_cmd_write()
137 mutex_lock(&core->lock); in iris_hfi_queue_cmd_write()
138 ret = iris_hfi_queue_cmd_write_locked(core, pkt, pkt_size); in iris_hfi_queue_cmd_write()
140 mutex_unlock(&core->lock); in iris_hfi_queue_cmd_write()
[all …]
H A Diris_core.c13 void iris_core_deinit(struct iris_core *core) in iris_core_deinit() argument
15 pm_runtime_resume_and_get(core->dev); in iris_core_deinit()
17 mutex_lock(&core->lock); in iris_core_deinit()
18 if (core->state != IRIS_CORE_DEINIT) { in iris_core_deinit()
19 iris_fw_unload(core); in iris_core_deinit()
20 iris_vpu_power_off(core); in iris_core_deinit()
21 iris_hfi_queues_deinit(core); in iris_core_deinit()
22 core->state = IRIS_CORE_DEINIT; in iris_core_deinit()
24 mutex_unlock(&core->lock); in iris_core_deinit()
26 pm_runtime_put_sync(core->dev); in iris_core_deinit()
[all …]
/linux/tools/perf/pmu-events/arch/arm64/
H A Dmapfile.csv11 # Type is core, uncore etc
15 0x00000000410fd020,v1,arm/cortex-a34,core
16 0x00000000410fd030,v1,arm/cortex-a53,core
17 0x00000000420f1000,v1,arm/cortex-a53,core
18 0x00000000410fd040,v1,arm/cortex-a35,core
19 0x00000000410fd050,v1,arm/cortex-a55,core
20 0x00000000410fd060,v1,arm/cortex-a65-e1,core
21 0x00000000410fd4a0,v1,arm/cortex-a65-e1,core
22 0x00000000410fd070,v1,arm/cortex-a57-a72,core
23 0x00000000410fd080,v1,arm/cortex-a57-a72,core
[all …]
/linux/tools/perf/tests/
H A Dparse-events.c59 * Returns number of core PMUs if the evlist has >1 core PMU, otherwise in num_core_entries()
60 * returns 1. The number of core PMUs is needed as wild carding can in num_core_entries()
61 * open an event for each core PMU. If the events were opened with a in num_core_entries()
79 return (evsel->core.attr.config & PERF_HW_EVENT_MASK) == expected_config; in test_hw_config()
112 TEST_ASSERT_EVLIST("wrong number of entries", 1 == evlist->core.nr_entries, evlist); in test__checkevent_tracepoint()
114 TEST_ASSERT_EVSEL("wrong type", PERF_TYPE_TRACEPOINT == evsel->core.attr.type, evsel); in test__checkevent_tracepoint()
116 PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type, evsel); in test__checkevent_tracepoint()
117 TEST_ASSERT_EVSEL("wrong sample_period", 1 == evsel->core.attr.sample_period, evsel); in test__checkevent_tracepoint()
125 TEST_ASSERT_EVLIST("wrong number of entries", evlist->core.nr_entries > 1, evlist); in test__checkevent_tracepoint_multi()
130 PERF_TYPE_TRACEPOINT == evsel->core.attr.type, in test__checkevent_tracepoint_multi()
[all …]
/linux/drivers/net/can/esd/
H A Desdacc.c39 /* Two bit wide command masks to mask or unmask a single core IRQ */
47 static void acc_resetmode_enter(struct acc_core *core) in acc_resetmode_enter() argument
49 acc_set_bits(core, ACC_CORE_OF_CTRL, in acc_resetmode_enter()
53 acc_resetmode_entered(core); in acc_resetmode_enter()
56 static void acc_resetmode_leave(struct acc_core *core) in acc_resetmode_leave() argument
58 acc_clear_bits(core, ACC_CORE_OF_CTRL, in acc_resetmode_leave()
62 acc_resetmode_entered(core); in acc_resetmode_leave()
65 static void acc_txq_put(struct acc_core *core, u32 acc_id, u32 acc_dlc, in acc_txq_put() argument
68 acc_write32_noswap(core, ACC_CORE_OF_TXFIFO_DATA_1, in acc_txq_put()
70 acc_write32_noswap(core, ACC_CORE_OF_TXFIFO_DATA_0, in acc_txq_put()
[all …]
/linux/arch/parisc/kernel/
H A Dhardware.c317 {HPHW_A_DMA, 0x005, 0x00039, 0x80, "KittyHawk CSY Core SCSI"},
323 {HPHW_A_DMA, 0x005, 0x0003B, 0x80, "KittyHawk CSY Core FW-SCSI"},
344 {HPHW_A_DMA, 0x015, 0x00089, 0x80, "KittyHawk GSY Core FW-SCSI"},
348 {HPHW_A_DMA, 0x032, 0x00089, 0x80, "Raven T' Core FW-SCSI"},
349 {HPHW_A_DMA, 0x03B, 0x00089, 0x80, "Raven U/L2 Core FW-SCSI"},
350 {HPHW_A_DMA, 0x03C, 0x00089, 0x80, "Merlin 132 Core FW-SCSI"},
351 {HPHW_A_DMA, 0x03D, 0x00089, 0x80, "Merlin 160 Core FW-SCSI"},
352 {HPHW_A_DMA, 0x044, 0x00089, 0x80, "Mohawk Core FW-SCSI"},
377 {HPHW_BA, 0x004, 0x00070, 0x0, "Cobra Core BA"},
378 {HPHW_BA, 0x005, 0x00070, 0x0, "Coral Core BA"},
[all …]

12345678910>>...353