/Linux-v5.4/drivers/mfd/ |
D | si476x-i2c.c | 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() 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 …]
|
D | wl1273-core.c | 21 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-v5.4/drivers/clk/ |
D | clk.c | 50 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 113 if (!core->rpm_enabled) in clk_pm_runtime_get() 116 ret = pm_runtime_get_sync(core->dev); in clk_pm_runtime_get() 120 static void clk_pm_runtime_put(struct clk_core *core) in clk_pm_runtime_put() argument 122 if (!core->rpm_enabled) in clk_pm_runtime_put() 125 pm_runtime_put_sync(core->dev); in clk_pm_runtime_put() 197 static bool clk_core_rate_is_protected(struct clk_core *core) in clk_core_rate_is_protected() argument 199 return core->protect_count; in clk_core_rate_is_protected() [all …]
|
/Linux-v5.4/drivers/staging/media/meson/vdec/ |
D | vdec_1.c | 28 struct amvdec_core *core = sess->core; in vdec_1_load_firmware() local 29 struct device *dev = core->dev_dec; in vdec_1_load_firmware() 47 mc_addr = dma_alloc_coherent(core->dev, MC_SIZE, in vdec_1_load_firmware() 56 amvdec_write_dos(core, MPSR, 0); in vdec_1_load_firmware() 57 amvdec_write_dos(core, CPSR, 0); in vdec_1_load_firmware() 59 amvdec_clear_dos_bits(core, MDEC_PIC_DC_CTRL, BIT(31)); in vdec_1_load_firmware() 61 amvdec_write_dos(core, IMEM_DMA_ADR, mc_addr_map); in vdec_1_load_firmware() 62 amvdec_write_dos(core, IMEM_DMA_COUNT, MC_SIZE / 4); in vdec_1_load_firmware() 63 amvdec_write_dos(core, IMEM_DMA_CTRL, (0x8000 | (7 << 16))); in vdec_1_load_firmware() 65 while (--i && amvdec_read_dos(core, IMEM_DMA_CTRL) & 0x8000); in vdec_1_load_firmware() [all …]
|
D | esparser.c | 62 struct amvdec_core *core = dev; in esparser_isr() local 64 int_status = amvdec_read_parser(core, PARSER_INT_STATUS); in esparser_isr() 65 amvdec_write_parser(core, PARSER_INT_STATUS, int_status); in esparser_isr() 68 amvdec_write_parser(core, PFIFO_RD_PTR, 0); in esparser_isr() 69 amvdec_write_parser(core, PFIFO_WR_PTR, 0); in esparser_isr() 103 esparser_write_data(struct amvdec_core *core, dma_addr_t addr, u32 size) in esparser_write_data() argument 105 amvdec_write_parser(core, PFIFO_RD_PTR, 0); in esparser_write_data() 106 amvdec_write_parser(core, PFIFO_WR_PTR, 0); in esparser_write_data() 107 amvdec_write_parser(core, PARSER_CONTROL, in esparser_write_data() 113 amvdec_write_parser(core, PARSER_FETCH_ADDR, addr); in esparser_write_data() [all …]
|
D | codec_mpeg12.c | 53 static int codec_mpeg12_can_recycle(struct amvdec_core *core) in codec_mpeg12_can_recycle() argument 55 return !amvdec_read_dos(core, MREG_BUFFERIN); in codec_mpeg12_can_recycle() 58 static void codec_mpeg12_recycle(struct amvdec_core *core, u32 buf_idx) in codec_mpeg12_recycle() argument 60 amvdec_write_dos(core, MREG_BUFFERIN, buf_idx + 1); in codec_mpeg12_recycle() 65 struct amvdec_core *core = sess->core; in codec_mpeg12_start() local 74 mpeg12->workspace_vaddr = dma_alloc_coherent(core->dev, SIZE_WORKSPACE, in codec_mpeg12_start() 78 dev_err(core->dev, "Failed to request MPEG 1/2 Workspace\n"); in codec_mpeg12_start() 88 amvdec_write_dos(core, POWER_CTL_VLD, BIT(4)); in codec_mpeg12_start() 89 amvdec_write_dos(core, MREG_CO_MV_START, in codec_mpeg12_start() 92 amvdec_write_dos(core, MPEG1_2_REG, 0); in codec_mpeg12_start() [all …]
|
/Linux-v5.4/drivers/bcma/ |
D | main.c | 35 struct bcma_device *core = container_of(dev, struct bcma_device, dev); in manuf_show() local 36 return sprintf(buf, "0x%03X\n", core->id.manuf); in manuf_show() 42 struct bcma_device *core = container_of(dev, struct bcma_device, dev); in id_show() local 43 return sprintf(buf, "0x%03X\n", core->id.id); in id_show() 49 struct bcma_device *core = container_of(dev, struct bcma_device, dev); in rev_show() local 50 return sprintf(buf, "0x%02X\n", core->id.rev); in rev_show() 56 struct bcma_device *core = container_of(dev, struct bcma_device, dev); in class_show() local 57 return sprintf(buf, "0x%X\n", core->id.class); in class_show() 89 struct bcma_device *core; in bcma_find_core_unit() local 91 list_for_each_entry(core, &bus->cores, list) { in bcma_find_core_unit() [all …]
|
D | core.c | 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() 49 bcma_awrite32(core, BCMA_RESET_CTL, BCMA_RESET_CTL_RESET); in bcma_core_disable() [all …]
|
D | host_pci.c | 14 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() 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() 37 if (core->bus->mapped_core != core) in bcma_host_pci_provide_access_to_core() [all …]
|
/Linux-v5.4/tools/perf/tests/ |
D | parse-events.c | 51 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_tracepoint() 53 TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT == evsel->core.attr.type); in test__checkevent_tracepoint() 55 PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type); in test__checkevent_tracepoint() 56 TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->core.attr.sample_period); in test__checkevent_tracepoint() 64 TEST_ASSERT_VAL("wrong number of entries", evlist->core.nr_entries > 1); in test__checkevent_tracepoint_multi() 69 PERF_TYPE_TRACEPOINT == evsel->core.attr.type); in test__checkevent_tracepoint_multi() 71 PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type); in test__checkevent_tracepoint_multi() 73 1 == evsel->core.attr.sample_period); in test__checkevent_tracepoint_multi() 82 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__checkevent_raw() 83 TEST_ASSERT_VAL("wrong type", PERF_TYPE_RAW == evsel->core.attr.type); in test__checkevent_raw() [all …]
|
/Linux-v5.4/drivers/gpu/drm/omapdrm/dss/ |
D | hdmi4_cec.c | 68 static void hdmi_cec_received_msg(struct hdmi_core_data *core) in hdmi_cec_received_msg() argument 70 u32 cnt = hdmi_read_reg(core->base, HDMI_CEC_RX_COUNT) & 0xff; in hdmi_cec_received_msg() 83 msg.msg[0] = hdmi_read_reg(core->base, in hdmi_cec_received_msg() 85 msg.msg[1] = hdmi_read_reg(core->base, in hdmi_cec_received_msg() 91 hdmi_read_reg(core->base, reg); in hdmi_cec_received_msg() 94 cec_received_msg(core->adap, &msg); in hdmi_cec_received_msg() 97 hdmi_write_reg(core->base, HDMI_CEC_RX_CONTROL, 1); in hdmi_cec_received_msg() 99 while (hdmi_read_reg(core->base, HDMI_CEC_RX_CONTROL) & 1) in hdmi_cec_received_msg() 105 cnt = hdmi_read_reg(core->base, HDMI_CEC_RX_COUNT) & 0xff; in hdmi_cec_received_msg() 109 void hdmi4_cec_irq(struct hdmi_core_data *core) in hdmi4_cec_irq() argument [all …]
|
/Linux-v5.4/drivers/media/platform/qcom/venus/ |
D | core.c | 25 static void venus_event_notify(struct venus_core *core, u32 event) in venus_event_notify() argument 37 mutex_lock(&core->lock); in venus_event_notify() 38 core->sys_error = true; in venus_event_notify() 39 list_for_each_entry(inst, &core->instances, list) in venus_event_notify() 41 mutex_unlock(&core->lock); in venus_event_notify() 43 disable_irq_nosync(core->irq); in venus_event_notify() 50 schedule_delayed_work(&core->work, msecs_to_jiffies(100)); in venus_event_notify() 59 struct venus_core *core = in venus_sys_error_handler() local 63 dev_warn(core->dev, "system error has occurred, starting recovery!\n"); in venus_sys_error_handler() 65 pm_runtime_get_sync(core->dev); in venus_sys_error_handler() [all …]
|
D | hfi.c | 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() 84 int hfi_core_deinit(struct venus_core *core, bool blocking) in hfi_core_deinit() argument [all …]
|
D | firmware.c | 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() 30 void __iomem *base = core->base; in venus_reset_cpu() 45 int venus_set_hw_state(struct venus_core *core, bool resume) in venus_set_hw_state() argument 47 if (core->use_tz) in venus_set_hw_state() 51 venus_reset_cpu(core); in venus_set_hw_state() 53 writel(1, core->base + WRAPPER_A9SS_SW_RESET); in venus_set_hw_state() 58 static int venus_load_fw(struct venus_core *core, const char *fwname, in venus_load_fw() argument 72 dev = core->dev; in venus_load_fw() 109 if (core->use_tz) in venus_load_fw() [all …]
|
/Linux-v5.4/include/trace/events/ |
D | clk.h | 17 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-v5.4/tools/perf/pmu-events/arch/x86/ |
D | mapfile.csv | 2 GenuineIntel-6-56,v5,broadwellde,core 3 GenuineIntel-6-3D,v17,broadwell,core 4 GenuineIntel-6-47,v17,broadwell,core 5 GenuineIntel-6-4F,v10,broadwellx,core 6 GenuineIntel-6-1C,v4,bonnell,core 7 GenuineIntel-6-26,v4,bonnell,core 8 GenuineIntel-6-27,v4,bonnell,core 9 GenuineIntel-6-36,v4,bonnell,core 10 GenuineIntel-6-35,v4,bonnell,core 11 GenuineIntel-6-5C,v8,goldmont,core [all …]
|
/Linux-v5.4/drivers/media/radio/ |
D | radio-wl1273.c | 77 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-v5.4/drivers/media/pci/cx88/ |
D | cx88-i2c.c | 46 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 …]
|
D | cx88-tvaudio.c | 92 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 …]
|
D | cx88.h | 294 #define INPUT(nr) (core->board.input[nr]) 372 void (*gate_ctrl)(struct cx88_core *core, int open); 416 #define call_hw(core, grpid, o, f, args...) \ argument 418 if (!core->i2c_rc) { \ 419 if (core->gate_ctrl) \ 420 core->gate_ctrl(core, 1); \ 421 v4l2_device_call_all(&core->v4l2_dev, \ 423 if (core->gate_ctrl) \ 424 core->gate_ctrl(core, 0); \ 428 #define call_all(core, o, f, args...) call_hw(core, 0, o, f, ##args) argument [all …]
|
D | cx88-video.c | 282 int cx88_video_mux(struct cx88_core *core, unsigned int input) in cx88_video_mux() argument 290 core->input = input; in cx88_video_mux() 322 if (core->sd_wm8775) { in cx88_video_mux() 323 call_all(core, audio, s_routing, in cx88_video_mux() 334 core->tvaudio = WW_I2SADC; in cx88_video_mux() 335 cx88_set_tvaudio(core); in cx88_video_mux() 353 struct cx88_core *core = dev->core; in start_video_dma() local 356 cx88_sram_channel_setup(core, &cx88_sram_channels[SRAM_CH21], in start_video_dma() 358 cx88_set_scale(core, core->width, core->height, core->field); in start_video_dma() 366 cx_set(MO_PCI_INTMSK, core->pci_irqmask | PCI_INT_VIDINT); in start_video_dma() [all …]
|
/Linux-v5.4/drivers/gpu/drm/nouveau/dispnv50/ |
D | head507d.c | 28 struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan; in head507d_procamp() local 30 if ((push = evo_wait(core, 2))) { in head507d_procamp() 34 evo_kick(push, core); in head507d_procamp() 41 struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan; in head507d_dither() local 43 if ((push = evo_wait(core, 2))) { in head507d_dither() 48 evo_kick(push, core); in head507d_dither() 55 struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan; in head507d_ovly() local 72 if ((push = evo_wait(core, 2))) { in head507d_ovly() 75 evo_kick(push, core); in head507d_ovly() 82 struct nv50_dmac *core = &nv50_disp(head->base.base.dev)->core->chan; in head507d_base() local [all …]
|
/Linux-v5.4/drivers/phy/broadcom/ |
D | phy-bcm-sr-pcie.c | 47 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 …]
|
/Linux-v5.4/tools/perf/util/ |
D | mmap.c | 28 return map->core.mask + 1 + page_size; in perf_mmap__mmap_len() 35 unsigned char *data = map->core.base + page_size; in perf_mmap__read() 42 event = (union perf_event *)&data[*startp & map->core.mask]; in perf_mmap__read() 52 if ((*startp & map->core.mask) + size != ((*startp + size) & map->core.mask)) { in perf_mmap__read() 55 void *dst = map->core.event_copy; in perf_mmap__read() 58 cpy = min(map->core.mask + 1 - (offset & map->core.mask), len); in perf_mmap__read() 59 memcpy(dst, &data[offset & map->core.mask], cpy); in perf_mmap__read() 65 event = (union perf_event *)map->core.event_copy; in perf_mmap__read() 93 if (!refcount_read(&map->core.refcnt)) in perf_mmap__read_event() 97 if (!map->core.overwrite) in perf_mmap__read_event() [all …]
|
/Linux-v5.4/sound/soc/qcom/qdsp6/ |
D | q6core.c | 72 struct q6core *core = dev_get_drvdata(&adev->dev); in q6core_callback() local 83 core->get_version_supported = false; in q6core_callback() 84 core->resp_received = true; in q6core_callback() 88 core->fwk_version_supported = false; in q6core_callback() 89 core->resp_received = true; in q6core_callback() 93 core->get_state_supported = false; in q6core_callback() 94 core->resp_received = true; in q6core_callback() 104 core->fwk_version = kmemdup(data->payload, in q6core_callback() 108 if (!core->fwk_version) in q6core_callback() 111 core->fwk_version_supported = true; in q6core_callback() [all …]
|