/linux-6.1.9/drivers/char/hw_random/ |
D | cctrng.c | 77 static inline void cc_iowrite(struct cctrng_drvdata *drvdata, u32 reg, u32 val) in cc_iowrite() argument 79 iowrite32(val, (drvdata->cc_base + reg)); in cc_iowrite() 81 static inline u32 cc_ioread(struct cctrng_drvdata *drvdata, u32 reg) in cc_ioread() argument 83 return ioread32(drvdata->cc_base + reg); in cc_ioread() 107 static int cc_trng_pm_init(struct cctrng_drvdata *drvdata) in cc_trng_pm_init() argument 109 struct device *dev = &(drvdata->pdev->dev); in cc_trng_pm_init() 118 static void cc_trng_pm_go(struct cctrng_drvdata *drvdata) in cc_trng_pm_go() argument 120 struct device *dev = &(drvdata->pdev->dev); in cc_trng_pm_go() 126 static void cc_trng_pm_fini(struct cctrng_drvdata *drvdata) in cc_trng_pm_fini() argument 128 struct device *dev = &(drvdata->pdev->dev); in cc_trng_pm_fini() [all …]
|
/linux-6.1.9/drivers/hwtracing/coresight/ |
D | coresight-etm3x-core.c | 52 static void etm_os_unlock(struct etm_drvdata *drvdata) in etm_os_unlock() argument 55 etm_writel(drvdata, 0x0, ETMOSLAR); in etm_os_unlock() 56 drvdata->os_unlock = true; in etm_os_unlock() 60 static void etm_set_pwrdwn(struct etm_drvdata *drvdata) in etm_set_pwrdwn() argument 67 etmcr = etm_readl(drvdata, ETMCR); in etm_set_pwrdwn() 69 etm_writel(drvdata, etmcr, ETMCR); in etm_set_pwrdwn() 72 static void etm_clr_pwrdwn(struct etm_drvdata *drvdata) in etm_clr_pwrdwn() argument 76 etmcr = etm_readl(drvdata, ETMCR); in etm_clr_pwrdwn() 78 etm_writel(drvdata, etmcr, ETMCR); in etm_clr_pwrdwn() 84 static void etm_set_pwrup(struct etm_drvdata *drvdata) in etm_set_pwrup() argument [all …]
|
D | coresight-tmc-etf.c | 19 static void __tmc_etb_enable_hw(struct tmc_drvdata *drvdata) in __tmc_etb_enable_hw() argument 21 CS_UNLOCK(drvdata->base); in __tmc_etb_enable_hw() 24 tmc_wait_for_tmcready(drvdata); in __tmc_etb_enable_hw() 26 writel_relaxed(TMC_MODE_CIRCULAR_BUFFER, drvdata->base + TMC_MODE); in __tmc_etb_enable_hw() 30 drvdata->base + TMC_FFCR); in __tmc_etb_enable_hw() 32 writel_relaxed(drvdata->trigger_cntr, drvdata->base + TMC_TRG); in __tmc_etb_enable_hw() 33 tmc_enable_hw(drvdata); in __tmc_etb_enable_hw() 35 CS_LOCK(drvdata->base); in __tmc_etb_enable_hw() 38 static int tmc_etb_enable_hw(struct tmc_drvdata *drvdata) in tmc_etb_enable_hw() argument 40 int rc = coresight_claim_device(drvdata->csdev); in tmc_etb_enable_hw() [all …]
|
D | coresight-cpu-debug.c | 112 static void debug_os_unlock(struct debug_drvdata *drvdata) in debug_os_unlock() argument 115 writel_relaxed(0x0, drvdata->base + EDOSLAR); in debug_os_unlock() 132 static bool debug_access_permitted(struct debug_drvdata *drvdata) in debug_access_permitted() argument 135 if (!(drvdata->edprsr & EDPRSR_PU)) in debug_access_permitted() 139 if (drvdata->edprsr & EDPRSR_DLK) in debug_access_permitted() 145 static void debug_force_cpu_powered_up(struct debug_drvdata *drvdata) in debug_force_cpu_powered_up() argument 157 edprcr = readl_relaxed(drvdata->base + EDPRCR); in debug_force_cpu_powered_up() 159 writel_relaxed(edprcr, drvdata->base + EDPRCR); in debug_force_cpu_powered_up() 162 if (readx_poll_timeout_atomic(readl_relaxed, drvdata->base + EDPRSR, in debug_force_cpu_powered_up() 163 drvdata->edprsr, (drvdata->edprsr & EDPRSR_PU), in debug_force_cpu_powered_up() [all …]
|
D | coresight-stm.c | 85 #define stm_channel_addr(drvdata, ch) (drvdata->chs.base + \ argument 149 static void stm_hwevent_enable_hw(struct stm_drvdata *drvdata) in stm_hwevent_enable_hw() argument 151 CS_UNLOCK(drvdata->base); in stm_hwevent_enable_hw() 153 writel_relaxed(drvdata->stmhebsr, drvdata->base + STMHEBSR); in stm_hwevent_enable_hw() 154 writel_relaxed(drvdata->stmheter, drvdata->base + STMHETER); in stm_hwevent_enable_hw() 155 writel_relaxed(drvdata->stmheer, drvdata->base + STMHEER); in stm_hwevent_enable_hw() 158 drvdata->base + STMHEMCR); in stm_hwevent_enable_hw() 160 CS_LOCK(drvdata->base); in stm_hwevent_enable_hw() 163 static void stm_port_enable_hw(struct stm_drvdata *drvdata) in stm_port_enable_hw() argument 165 CS_UNLOCK(drvdata->base); in stm_port_enable_hw() [all …]
|
D | coresight-cti-core.c | 61 void cti_write_all_hw_regs(struct cti_drvdata *drvdata) in cti_write_all_hw_regs() argument 63 struct cti_config *config = &drvdata->config; in cti_write_all_hw_regs() 66 CS_UNLOCK(drvdata->base); in cti_write_all_hw_regs() 69 writel_relaxed(0, drvdata->base + CTICONTROL); in cti_write_all_hw_regs() 73 writel_relaxed(config->ctiinen[i], drvdata->base + CTIINEN(i)); in cti_write_all_hw_regs() 75 drvdata->base + CTIOUTEN(i)); in cti_write_all_hw_regs() 79 writel_relaxed(config->ctigate, drvdata->base + CTIGATE); in cti_write_all_hw_regs() 80 writel_relaxed(config->asicctl, drvdata->base + ASICCTL); in cti_write_all_hw_regs() 81 writel_relaxed(config->ctiappset, drvdata->base + CTIAPPSET); in cti_write_all_hw_regs() 84 writel_relaxed(1, drvdata->base + CTICONTROL); in cti_write_all_hw_regs() [all …]
|
D | coresight-etb10.c | 100 static inline unsigned int etb_get_buffer_depth(struct etb_drvdata *drvdata) in etb_get_buffer_depth() argument 102 return readl_relaxed(drvdata->base + ETB_RAM_DEPTH_REG); in etb_get_buffer_depth() 105 static void __etb_enable_hw(struct etb_drvdata *drvdata) in __etb_enable_hw() argument 110 CS_UNLOCK(drvdata->base); in __etb_enable_hw() 112 depth = drvdata->buffer_depth; in __etb_enable_hw() 114 writel_relaxed(0x0, drvdata->base + ETB_RAM_WRITE_POINTER); in __etb_enable_hw() 117 writel_relaxed(0x0, drvdata->base + ETB_RWD_REG); in __etb_enable_hw() 120 writel_relaxed(0x0, drvdata->base + ETB_RAM_WRITE_POINTER); in __etb_enable_hw() 122 writel_relaxed(0x0, drvdata->base + ETB_RAM_READ_POINTER); in __etb_enable_hw() 124 writel_relaxed(drvdata->trigger_cntr, drvdata->base + ETB_TRG); in __etb_enable_hw() [all …]
|
D | coresight-etm4x-sysfs.c | 14 static int etm4_set_mode_exclude(struct etmv4_drvdata *drvdata, bool exclude) in etm4_set_mode_exclude() argument 17 struct etmv4_config *config = &drvdata->config; in etm4_set_mode_exclude() 62 struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); in nr_pe_cmp_show() local 64 val = drvdata->nr_pe_cmp; in nr_pe_cmp_show() 74 struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); in nr_addr_cmp_show() local 76 val = drvdata->nr_addr_cmp; in nr_addr_cmp_show() 86 struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); in nr_cntr_show() local 88 val = drvdata->nr_cntr; in nr_cntr_show() 98 struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); in nr_ext_inp_show() local 100 val = drvdata->nr_ext_inp; in nr_ext_inp_show() [all …]
|
D | coresight-etm4x-core.c | 61 static int etm4_set_event_filters(struct etmv4_drvdata *drvdata, 69 struct etmv4_drvdata *drvdata; member 82 static inline bool etm4x_sspcicrn_present(struct etmv4_drvdata *drvdata, int n) in etm4x_sspcicrn_present() argument 84 return (n < drvdata->nr_ss_cmp) && in etm4x_sspcicrn_present() 85 drvdata->nr_pe && in etm4x_sspcicrn_present() 86 (drvdata->config.ss_status[n] & TRCSSCSRn_PC); in etm4x_sspcicrn_present() 153 static void etm_detect_os_lock(struct etmv4_drvdata *drvdata, in etm_detect_os_lock() argument 158 drvdata->os_lock_model = ETM_OSLSR_OSLM(oslsr); in etm_detect_os_lock() 161 static void etm_write_os_lock(struct etmv4_drvdata *drvdata, in etm_write_os_lock() argument 166 switch (drvdata->os_lock_model) { in etm_write_os_lock() [all …]
|
D | coresight-tmc-core.c | 34 void tmc_wait_for_tmcready(struct tmc_drvdata *drvdata) in tmc_wait_for_tmcready() argument 36 struct coresight_device *csdev = drvdata->csdev; in tmc_wait_for_tmcready() 46 void tmc_flush_and_stop(struct tmc_drvdata *drvdata) in tmc_flush_and_stop() argument 48 struct coresight_device *csdev = drvdata->csdev; in tmc_flush_and_stop() 52 ffcr = readl_relaxed(drvdata->base + TMC_FFCR); in tmc_flush_and_stop() 54 writel_relaxed(ffcr, drvdata->base + TMC_FFCR); in tmc_flush_and_stop() 56 writel_relaxed(ffcr, drvdata->base + TMC_FFCR); in tmc_flush_and_stop() 63 tmc_wait_for_tmcready(drvdata); in tmc_flush_and_stop() 66 void tmc_enable_hw(struct tmc_drvdata *drvdata) in tmc_enable_hw() argument 68 writel_relaxed(TMC_CTL_CAPT_EN, drvdata->base + TMC_CTL); in tmc_enable_hw() [all …]
|
D | coresight-replicator.c | 46 static void dynamic_replicator_reset(struct replicator_drvdata *drvdata) in dynamic_replicator_reset() argument 48 struct coresight_device *csdev = drvdata->csdev; in dynamic_replicator_reset() 50 CS_UNLOCK(drvdata->base); in dynamic_replicator_reset() 53 writel_relaxed(0xff, drvdata->base + REPLICATOR_IDFILTER0); in dynamic_replicator_reset() 54 writel_relaxed(0xff, drvdata->base + REPLICATOR_IDFILTER1); in dynamic_replicator_reset() 58 CS_LOCK(drvdata->base); in dynamic_replicator_reset() 64 static inline void replicator_reset(struct replicator_drvdata *drvdata) in replicator_reset() argument 66 if (drvdata->base) in replicator_reset() 67 dynamic_replicator_reset(drvdata); in replicator_reset() 70 static int dynamic_replicator_enable(struct replicator_drvdata *drvdata, in dynamic_replicator_enable() argument [all …]
|
D | coresight-etm3x-sysfs.c | 17 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in nr_addr_cmp_show() local 19 val = drvdata->nr_addr_cmp; in nr_addr_cmp_show() 27 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in nr_cntr_show() local 29 val = drvdata->nr_cntr; in nr_cntr_show() 38 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in nr_ctxid_cmp_show() local 40 val = drvdata->nr_ctxid_cmp; in nr_ctxid_cmp_show() 49 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in etmsr_show() local 52 spin_lock_irqsave(&drvdata->spinlock, flags); in etmsr_show() 53 CS_UNLOCK(drvdata->base); in etmsr_show() 55 val = etm_readl(drvdata, ETMSR); in etmsr_show() [all …]
|
D | coresight-funnel.c | 51 static int dynamic_funnel_enable_hw(struct funnel_drvdata *drvdata, int port) in dynamic_funnel_enable_hw() argument 55 struct coresight_device *csdev = drvdata->csdev; in dynamic_funnel_enable_hw() 57 CS_UNLOCK(drvdata->base); in dynamic_funnel_enable_hw() 59 functl = readl_relaxed(drvdata->base + FUNNEL_FUNCTL); in dynamic_funnel_enable_hw() 70 writel_relaxed(functl, drvdata->base + FUNNEL_FUNCTL); in dynamic_funnel_enable_hw() 71 writel_relaxed(drvdata->priority, drvdata->base + FUNNEL_PRICTL); in dynamic_funnel_enable_hw() 73 CS_LOCK(drvdata->base); in dynamic_funnel_enable_hw() 81 struct funnel_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in funnel_enable() local 85 spin_lock_irqsave(&drvdata->spinlock, flags); in funnel_enable() 87 if (drvdata->base) in funnel_enable() [all …]
|
/linux-6.1.9/drivers/input/serio/ |
D | ps2-gpio.c | 98 struct ps2_gpio_data *drvdata = serio->port_data; in ps2_gpio_open() local 100 drvdata->t_irq_last = 0; in ps2_gpio_open() 101 drvdata->tx.t_xfer_end = 0; in ps2_gpio_open() 103 enable_irq(drvdata->irq); in ps2_gpio_open() 109 struct ps2_gpio_data *drvdata = serio->port_data; in ps2_gpio_close() local 111 flush_delayed_work(&drvdata->tx.work); in ps2_gpio_close() 112 disable_irq(drvdata->irq); in ps2_gpio_close() 117 struct ps2_gpio_data *drvdata = serio->port_data; in __ps2_gpio_write() local 119 disable_irq_nosync(drvdata->irq); in __ps2_gpio_write() 120 gpiod_direction_output(drvdata->gpio_clk, 0); in __ps2_gpio_write() [all …]
|
D | xilinx_ps2.c | 86 static int xps2_recv(struct xps2data *drvdata, u8 *byte) in xps2_recv() argument 92 sr = in_be32(drvdata->base_address + XPS2_STATUS_OFFSET); in xps2_recv() 94 *byte = in_be32(drvdata->base_address + XPS2_RX_DATA_OFFSET); in xps2_recv() 106 struct xps2data *drvdata = dev_id; in xps2_interrupt() local 112 intr_sr = in_be32(drvdata->base_address + XPS2_IPISR_OFFSET); in xps2_interrupt() 113 out_be32(drvdata->base_address + XPS2_IPISR_OFFSET, intr_sr); in xps2_interrupt() 117 dev_warn(drvdata->dev, "receive overrun error\n"); in xps2_interrupt() 120 drvdata->flags |= SERIO_PARITY; in xps2_interrupt() 123 drvdata->flags |= SERIO_TIMEOUT; in xps2_interrupt() 126 status = xps2_recv(drvdata, &c); in xps2_interrupt() [all …]
|
D | sun4i-ps2.c | 97 struct sun4i_ps2data *drvdata = dev_id; in sun4i_ps2_interrupt() local 104 spin_lock(&drvdata->lock); in sun4i_ps2_interrupt() 107 intr_status = readl(drvdata->reg_base + PS2_REG_LSTS); in sun4i_ps2_interrupt() 108 fifo_status = readl(drvdata->reg_base + PS2_REG_FSTS); in sun4i_ps2_interrupt() 118 writel(rval, drvdata->reg_base + PS2_REG_LSTS); in sun4i_ps2_interrupt() 125 writel(rval, drvdata->reg_base + PS2_REG_FSTS); in sun4i_ps2_interrupt() 130 byte = readl(drvdata->reg_base + PS2_REG_DATA) & 0xff; in sun4i_ps2_interrupt() 131 serio_interrupt(drvdata->serio, byte, rxflags); in sun4i_ps2_interrupt() 134 writel(intr_status, drvdata->reg_base + PS2_REG_LSTS); in sun4i_ps2_interrupt() 135 writel(fifo_status, drvdata->reg_base + PS2_REG_FSTS); in sun4i_ps2_interrupt() [all …]
|
/linux-6.1.9/drivers/hwmon/ |
D | nzxt-smart2.c | 173 struct drvdata { struct 221 static void handle_fan_config_report(struct drvdata *drvdata, void *data, int size) in handle_fan_config_report() argument 232 spin_lock(&drvdata->wq.lock); in handle_fan_config_report() 235 drvdata->fan_type[i] = report->fan_type[i]; in handle_fan_config_report() 237 drvdata->fan_config_received = true; in handle_fan_config_report() 238 wake_up_all_locked(&drvdata->wq); in handle_fan_config_report() 239 spin_unlock(&drvdata->wq.lock); in handle_fan_config_report() 242 static void handle_fan_status_report(struct drvdata *drvdata, void *data, int size) in handle_fan_status_report() argument 250 spin_lock(&drvdata->wq.lock); in handle_fan_status_report() 258 if (!drvdata->fan_config_received) { in handle_fan_status_report() [all …]
|
/linux-6.1.9/sound/drivers/ |
D | serial-generic.c | 56 static void snd_serial_generic_tx_wakeup(struct snd_serial_generic *drvdata) in snd_serial_generic_tx_wakeup() argument 58 if (test_and_set_bit(SERIAL_TX_STATE_ACTIVE, &drvdata->tx_state)) in snd_serial_generic_tx_wakeup() 59 set_bit(SERIAL_TX_STATE_WAKEUP, &drvdata->tx_state); in snd_serial_generic_tx_wakeup() 61 schedule_work(&drvdata->tx_work); in snd_serial_generic_tx_wakeup() 70 struct snd_serial_generic *drvdata = container_of(work, struct snd_serial_generic, in snd_serial_generic_tx_work() local 72 struct snd_rawmidi_substream *substream = drvdata->midi_output; in snd_serial_generic_tx_work() 74 clear_bit(SERIAL_TX_STATE_WAKEUP, &drvdata->tx_state); in snd_serial_generic_tx_work() 78 if (!test_bit(SERIAL_MODE_OUTPUT_OPEN, &drvdata->filemode)) in snd_serial_generic_tx_work() 82 num_bytes = serdev_device_write_buf(drvdata->serdev, buf, num_bytes); in snd_serial_generic_tx_work() 89 if (!test_bit(SERIAL_TX_STATE_WAKEUP, &drvdata->tx_state)) in snd_serial_generic_tx_work() [all …]
|
/linux-6.1.9/drivers/video/fbdev/ |
D | xilinxfb.c | 167 static void xilinx_fb_out32(struct xilinxfb_drvdata *drvdata, u32 offset, in xilinx_fb_out32() argument 170 if (drvdata->flags & BUS_ACCESS_FLAG) { in xilinx_fb_out32() 171 if (drvdata->flags & LITTLE_ENDIAN_ACCESS) in xilinx_fb_out32() 172 iowrite32(val, drvdata->regs + (offset << 2)); in xilinx_fb_out32() 174 iowrite32be(val, drvdata->regs + (offset << 2)); in xilinx_fb_out32() 178 dcr_write(drvdata->dcr_host, offset, val); in xilinx_fb_out32() 182 static u32 xilinx_fb_in32(struct xilinxfb_drvdata *drvdata, u32 offset) in xilinx_fb_in32() argument 184 if (drvdata->flags & BUS_ACCESS_FLAG) { in xilinx_fb_in32() 185 if (drvdata->flags & LITTLE_ENDIAN_ACCESS) in xilinx_fb_in32() 186 return ioread32(drvdata->regs + (offset << 2)); in xilinx_fb_in32() [all …]
|
/linux-6.1.9/drivers/char/xilinx_hwicap/ |
D | fifo_icap.c | 93 static inline void fifo_icap_fifo_write(struct hwicap_drvdata *drvdata, in fifo_icap_fifo_write() argument 96 dev_dbg(drvdata->dev, "fifo_write: %x\n", data); in fifo_icap_fifo_write() 97 out_be32(drvdata->base_address + XHI_WF_OFFSET, data); in fifo_icap_fifo_write() 106 static inline u32 fifo_icap_fifo_read(struct hwicap_drvdata *drvdata) in fifo_icap_fifo_read() argument 108 u32 data = in_be32(drvdata->base_address + XHI_RF_OFFSET); in fifo_icap_fifo_read() 109 dev_dbg(drvdata->dev, "fifo_read: %x\n", data); in fifo_icap_fifo_read() 118 static inline void fifo_icap_set_read_size(struct hwicap_drvdata *drvdata, in fifo_icap_set_read_size() argument 121 out_be32(drvdata->base_address + XHI_SZ_OFFSET, data); in fifo_icap_set_read_size() 128 static inline void fifo_icap_start_config(struct hwicap_drvdata *drvdata) in fifo_icap_start_config() argument 130 out_be32(drvdata->base_address + XHI_CR_OFFSET, XHI_CR_WRITE_MASK); in fifo_icap_start_config() [all …]
|
D | xilinx_hwicap.c | 230 static int hwicap_command_desync(struct hwicap_drvdata *drvdata) in hwicap_command_desync() argument 238 buffer[index++] = hwicap_type_1_write(drvdata->config_regs->CMD) | 1; in hwicap_command_desync() 247 return drvdata->config->set_configuration(drvdata, in hwicap_command_desync() 264 static int hwicap_get_configuration_register(struct hwicap_drvdata *drvdata, in hwicap_get_configuration_register() argument 284 status = drvdata->config->set_configuration(drvdata, in hwicap_get_configuration_register() 290 status = drvdata->config->get_status(drvdata); in hwicap_get_configuration_register() 303 status = drvdata->config->set_configuration(drvdata, in hwicap_get_configuration_register() 311 status = drvdata->config->get_configuration(drvdata, reg_data, 1); in hwicap_get_configuration_register() 318 static int hwicap_initialize_hwicap(struct hwicap_drvdata *drvdata) in hwicap_initialize_hwicap() argument 323 dev_dbg(drvdata->dev, "initializing\n"); in hwicap_initialize_hwicap() [all …]
|
/linux-6.1.9/drivers/clk/ |
D | clk-max9485.c | 74 struct max9485_driver_data *drvdata; member 91 static int max9485_update_bits(struct max9485_driver_data *drvdata, in max9485_update_bits() argument 96 drvdata->reg_value &= ~mask; in max9485_update_bits() 97 drvdata->reg_value |= value; in max9485_update_bits() 99 dev_dbg(&drvdata->client->dev, in max9485_update_bits() 101 mask, value, drvdata->reg_value); in max9485_update_bits() 103 ret = i2c_master_send(drvdata->client, in max9485_update_bits() 104 &drvdata->reg_value, in max9485_update_bits() 105 sizeof(drvdata->reg_value)); in max9485_update_bits() 114 return max9485_update_bits(clk_hw->drvdata, in max9485_clk_prepare() [all …]
|
/linux-6.1.9/drivers/regulator/ |
D | pwm-regulator.c | 56 struct pwm_regulator_data *drvdata = rdev_get_drvdata(rdev); in pwm_regulator_init_state() local 61 pwm_get_state(drvdata->pwm, &pwm_state); in pwm_regulator_init_state() 65 if (dutycycle == drvdata->duty_cycle_table[i].dutycycle) { in pwm_regulator_init_state() 66 drvdata->state = i; in pwm_regulator_init_state() 74 struct pwm_regulator_data *drvdata = rdev_get_drvdata(rdev); in pwm_regulator_get_voltage_sel() local 76 if (drvdata->state < 0) in pwm_regulator_get_voltage_sel() 79 return drvdata->state; in pwm_regulator_get_voltage_sel() 85 struct pwm_regulator_data *drvdata = rdev_get_drvdata(rdev); in pwm_regulator_set_voltage_sel() local 89 pwm_init_state(drvdata->pwm, &pstate); in pwm_regulator_set_voltage_sel() 91 drvdata->duty_cycle_table[selector].dutycycle, 100); in pwm_regulator_set_voltage_sel() [all …]
|
/linux-6.1.9/drivers/watchdog/ |
D | gxp-wdt.c | 29 static void gxp_wdt_enable_reload(struct gxp_wdt *drvdata) in gxp_wdt_enable_reload() argument 33 val = readb(drvdata->base + GXP_WDT_CTRL_OFS); in gxp_wdt_enable_reload() 35 writeb(val, drvdata->base + GXP_WDT_CTRL_OFS); in gxp_wdt_enable_reload() 40 struct gxp_wdt *drvdata = watchdog_get_drvdata(wdd); in gxp_wdt_start() local 42 writew(SECS_TO_WDOG_TICKS(wdd->timeout), drvdata->base + GXP_WDT_CNT_OFS); in gxp_wdt_start() 43 gxp_wdt_enable_reload(drvdata); in gxp_wdt_start() 49 struct gxp_wdt *drvdata = watchdog_get_drvdata(wdd); in gxp_wdt_stop() local 52 val = readb_relaxed(drvdata->base + GXP_WDT_CTRL_OFS); in gxp_wdt_stop() 54 writeb(val, drvdata->base + GXP_WDT_CTRL_OFS); in gxp_wdt_stop() 61 struct gxp_wdt *drvdata = watchdog_get_drvdata(wdd); in gxp_wdt_set_timeout() local [all …]
|
/linux-6.1.9/drivers/leds/ |
D | leds-lm3530.c | 189 static int lm3530_led_enable(struct lm3530_data *drvdata) in lm3530_led_enable() argument 193 if (drvdata->enable) in lm3530_led_enable() 196 ret = regulator_enable(drvdata->regulator); in lm3530_led_enable() 198 dev_err(drvdata->led_dev.dev, "Failed to enable vin:%d\n", ret); in lm3530_led_enable() 202 drvdata->enable = true; in lm3530_led_enable() 206 static void lm3530_led_disable(struct lm3530_data *drvdata) in lm3530_led_disable() argument 210 if (!drvdata->enable) in lm3530_led_disable() 213 ret = regulator_disable(drvdata->regulator); in lm3530_led_disable() 215 dev_err(drvdata->led_dev.dev, "Failed to disable vin:%d\n", in lm3530_led_disable() 220 drvdata->enable = false; in lm3530_led_disable() [all …]
|