| /linux/drivers/mfd/ |
| H A 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 …]
|
| H A D | si476x-cmd.c | 171 static int si476x_core_parse_and_nag_about_error(struct si476x_core *core) in si476x_core_parse_and_nag_about_error() argument 177 if (core->revision != SI476X_REVISION_A10) { in si476x_core_parse_and_nag_about_error() 178 err = si476x_core_i2c_xfer(core, SI476X_I2C_RECV, in si476x_core_parse_and_nag_about_error() 227 dev_err(&core->client->dev, in si476x_core_parse_and_nag_about_error() 230 dev_err(&core->client->dev, in si476x_core_parse_and_nag_about_error() 257 static int si476x_core_send_command(struct si476x_core *core, in si476x_core_send_command() argument 265 struct i2c_client *client = core->client; in si476x_core_send_command() 284 err = si476x_core_i2c_xfer(core, SI476X_I2C_SEND, in si476x_core_send_command() 287 dev_err(&core->client->dev, in si476x_core_send_command() 295 atomic_set(&core->cts, 0); in si476x_core_send_command() [all …]
|
| /linux/drivers/clk/ |
| H A D | clk.c | 60 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/staging/media/meson/vdec/ |
| H A D | vdec_hevc.c | 29 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 D | vdec_1.c | 29 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 …]
|
| H A D | codec_h264.c | 148 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 …]
|
| H A 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 …]
|
| H A 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() 81 static int vp9_update_header(struct amvdec_core *core, struct vb2_buffer *buf) in vp9_update_header() argument 97 dev_warn(core->dev, "%s: unable to update header\n", __func__); in vp9_update_header() 136 dev_warn(core->dev, "%s: unable to update header\n", __func__); in vp9_update_header() 170 dev_dbg(core->dev, "%s: data has gaps, setting to 0\n", in vp9_update_header() 175 dev_err(core->dev, "%s: data overwritten\n", __func__); in vp9_update_header() [all …]
|
| /linux/drivers/bcma/ |
| H A D | main.c | 36 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 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 …]
|
| H A 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/drivers/gpu/drm/omapdrm/dss/ |
| H A D | hdmi4_cec.c | 56 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/drivers/clk/at91/ |
| H A D | clk-sam9x60-pll.c | 38 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/include/trace/events/ |
| H A D | clk.h | 17 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 D | mapfile.csv | 2 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/media/platform/qcom/iris/ |
| H A D | iris_hfi_queue.c | 112 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 …]
|
| /linux/tools/perf/tests/ |
| H A D | parse-events.c | 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() 133 PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type, in test__checkevent_tracepoint_multi() 136 1 == evsel->core.attr.sample_period, in test__checkevent_tracepoint_multi() 147 TEST_ASSERT_EVLIST("wrong number of entries", 0 != evlist->core.nr_entries, evlist); in test__checkevent_raw() [all …]
|
| /linux/drivers/media/pci/cx88/ |
| H A 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 …]
|
| H A 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 …]
|
| H A D | cx88.h | 295 #define INPUT(nr) (core->board.input[nr]) 373 void (*gate_ctrl)(struct cx88_core *core, int open); 417 #define call_hw(core, grpid, o, f, args...) \ argument 419 if (!core->i2c_rc) { \ 420 if (core->gate_ctrl) \ 421 core->gate_ctrl(core, 1); \ 422 v4l2_device_call_all(&core->v4l2_dev, \ 424 if (core->gate_ctrl) \ 425 core->gate_ctrl(core, 0); \ 429 #define call_all(core, o, f, args...) call_hw(core, 0, o, f, ##args) argument [all …]
|
| /linux/drivers/net/can/esd/ |
| H A D | esdacc.c | 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() 72 acc_write32(core, ACC_CORE_OF_TXFIFO_DLC, acc_dlc); in acc_txq_put() [all …]
|
| /linux/drivers/media/platform/amphion/ |
| H A D | vpu_rpc.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 120 struct vpu_iface_ops *ops = vpu_core_get_iface(core); in vpu_iface_check_codec() [all …]
|
| /linux/drivers/phy/broadcom/ |
| H A 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/sound/soc/qcom/qdsp6/ |
| H A 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 …]
|
| /linux/drivers/iio/common/cros_ec_sensors/ |
| H A D | cros_ec_sensors.c | 31 struct cros_ec_sensors_core_state core; member 47 mutex_lock(&st->core.cmd_lock); in cros_ec_sensors_read() 51 ret = st->core.read_ec_sensors_data(indio_dev, 1 << idx, &data); in cros_ec_sensors_read() 58 st->core.param.cmd = MOTIONSENSE_CMD_SENSOR_OFFSET; in cros_ec_sensors_read() 59 st->core.param.sensor_offset.flags = 0; in cros_ec_sensors_read() 61 ret = cros_ec_motion_send_host_cmd(&st->core, 0); in cros_ec_sensors_read() 67 st->core.calib[i].offset = in cros_ec_sensors_read() 68 st->core.resp->sensor_offset.offset[i]; in cros_ec_sensors_read() 70 *val = st->core.calib[idx].offset; in cros_ec_sensors_read() 73 st->core.param.cmd = MOTIONSENSE_CMD_SENSOR_SCALE; in cros_ec_sensors_read() [all …]
|