/linux-6.12.1/drivers/i2c/busses/ |
D | i2c-gxp.c | 96 static void gxp_i2c_start(struct gxp_i2c_drvdata *drvdata) in gxp_i2c_start() argument 100 drvdata->buf = drvdata->curr_msg->buf; in gxp_i2c_start() 101 drvdata->buf_remaining = drvdata->curr_msg->len; in gxp_i2c_start() 104 value = drvdata->curr_msg->addr << 9; in gxp_i2c_start() 107 value |= drvdata->curr_msg->flags & I2C_M_RD ? RW_CMD | START_CMD : START_CMD; in gxp_i2c_start() 109 drvdata->state = GXP_I2C_ADDR_PHASE; in gxp_i2c_start() 110 writew(value, drvdata->base + GXP_I2CMCMD); in gxp_i2c_start() 117 struct gxp_i2c_drvdata *drvdata = i2c_get_adapdata(adapter); in gxp_i2c_master_xfer() local 120 drvdata->msgs_remaining = num; in gxp_i2c_master_xfer() 121 drvdata->curr_msg = msgs; in gxp_i2c_master_xfer() [all …]
|
/linux-6.12.1/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.12.1/drivers/hwtracing/coresight/ |
D | coresight-etm3x-core.c | 53 static void etm_os_unlock(struct etm_drvdata *drvdata) in etm_os_unlock() argument 56 etm_writel(drvdata, 0x0, ETMOSLAR); in etm_os_unlock() 57 drvdata->os_unlock = true; in etm_os_unlock() 61 static void etm_set_pwrdwn(struct etm_drvdata *drvdata) in etm_set_pwrdwn() argument 68 etmcr = etm_readl(drvdata, ETMCR); in etm_set_pwrdwn() 70 etm_writel(drvdata, etmcr, ETMCR); in etm_set_pwrdwn() 73 static void etm_clr_pwrdwn(struct etm_drvdata *drvdata) in etm_clr_pwrdwn() argument 77 etmcr = etm_readl(drvdata, ETMCR); in etm_clr_pwrdwn() 79 etm_writel(drvdata, etmcr, ETMCR); in etm_clr_pwrdwn() 85 static void etm_set_pwrup(struct etm_drvdata *drvdata) in etm_set_pwrup() argument [all …]
|
D | coresight-cpu-debug.c | 115 static void debug_os_unlock(struct debug_drvdata *drvdata) in debug_os_unlock() argument 118 writel_relaxed(0x0, drvdata->base + EDOSLAR); in debug_os_unlock() 135 static bool debug_access_permitted(struct debug_drvdata *drvdata) in debug_access_permitted() argument 138 if (!(drvdata->edprsr & EDPRSR_PU)) in debug_access_permitted() 142 if (drvdata->edprsr & EDPRSR_DLK) in debug_access_permitted() 148 static void debug_force_cpu_powered_up(struct debug_drvdata *drvdata) in debug_force_cpu_powered_up() argument 160 edprcr = readl_relaxed(drvdata->base + EDPRCR); in debug_force_cpu_powered_up() 162 writel_relaxed(edprcr, drvdata->base + EDPRCR); in debug_force_cpu_powered_up() 165 if (readx_poll_timeout_atomic(readl_relaxed, drvdata->base + EDPRSR, in debug_force_cpu_powered_up() 166 drvdata->edprsr, (drvdata->edprsr & EDPRSR_PU), in debug_force_cpu_powered_up() [all …]
|
D | coresight-tmc-etf.c | 19 static int __tmc_etb_enable_hw(struct tmc_drvdata *drvdata) in __tmc_etb_enable_hw() argument 23 CS_UNLOCK(drvdata->base); in __tmc_etb_enable_hw() 26 rc = tmc_wait_for_tmcready(drvdata); in __tmc_etb_enable_hw() 28 dev_err(&drvdata->csdev->dev, in __tmc_etb_enable_hw() 30 CS_LOCK(drvdata->base); in __tmc_etb_enable_hw() 34 writel_relaxed(TMC_MODE_CIRCULAR_BUFFER, drvdata->base + TMC_MODE); in __tmc_etb_enable_hw() 38 drvdata->base + TMC_FFCR); in __tmc_etb_enable_hw() 40 writel_relaxed(drvdata->trigger_cntr, drvdata->base + TMC_TRG); in __tmc_etb_enable_hw() 41 tmc_enable_hw(drvdata); in __tmc_etb_enable_hw() 43 CS_LOCK(drvdata->base); in __tmc_etb_enable_hw() [all …]
|
D | coresight-stm.c | 87 #define stm_channel_addr(drvdata, ch) (drvdata->chs.base + \ argument 151 static void stm_hwevent_enable_hw(struct stm_drvdata *drvdata) in stm_hwevent_enable_hw() argument 153 CS_UNLOCK(drvdata->base); in stm_hwevent_enable_hw() 155 writel_relaxed(drvdata->stmhebsr, drvdata->base + STMHEBSR); in stm_hwevent_enable_hw() 156 writel_relaxed(drvdata->stmheter, drvdata->base + STMHETER); in stm_hwevent_enable_hw() 157 writel_relaxed(drvdata->stmheer, drvdata->base + STMHEER); in stm_hwevent_enable_hw() 160 drvdata->base + STMHEMCR); in stm_hwevent_enable_hw() 162 CS_LOCK(drvdata->base); in stm_hwevent_enable_hw() 165 static void stm_port_enable_hw(struct stm_drvdata *drvdata) in stm_port_enable_hw() argument 167 CS_UNLOCK(drvdata->base); in stm_port_enable_hw() [all …]
|
D | coresight-tpdm.c | 29 struct tpdm_drvdata *drvdata = dev_get_drvdata(dev->parent); in tpdm_simple_dataset_show() local 38 drvdata->dsb->edge_ctrl[tpdm_attr->idx]); in tpdm_simple_dataset_show() 43 drvdata->dsb->edge_ctrl_mask[tpdm_attr->idx]); in tpdm_simple_dataset_show() 48 drvdata->dsb->trig_patt[tpdm_attr->idx]); in tpdm_simple_dataset_show() 53 drvdata->dsb->trig_patt_mask[tpdm_attr->idx]); in tpdm_simple_dataset_show() 58 drvdata->dsb->patt_val[tpdm_attr->idx]); in tpdm_simple_dataset_show() 63 drvdata->dsb->patt_mask[tpdm_attr->idx]); in tpdm_simple_dataset_show() 65 if (tpdm_attr->idx >= drvdata->dsb_msr_num) in tpdm_simple_dataset_show() 68 drvdata->dsb->msr[tpdm_attr->idx]); in tpdm_simple_dataset_show() 73 drvdata->cmb->trig_patt[tpdm_attr->idx]); in tpdm_simple_dataset_show() [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 | 98 static inline unsigned int etb_get_buffer_depth(struct etb_drvdata *drvdata) in etb_get_buffer_depth() argument 100 return readl_relaxed(drvdata->base + ETB_RAM_DEPTH_REG); in etb_get_buffer_depth() 103 static void __etb_enable_hw(struct etb_drvdata *drvdata) in __etb_enable_hw() argument 108 CS_UNLOCK(drvdata->base); in __etb_enable_hw() 110 depth = drvdata->buffer_depth; in __etb_enable_hw() 112 writel_relaxed(0x0, drvdata->base + ETB_RAM_WRITE_POINTER); in __etb_enable_hw() 115 writel_relaxed(0x0, drvdata->base + ETB_RWD_REG); in __etb_enable_hw() 118 writel_relaxed(0x0, drvdata->base + ETB_RAM_WRITE_POINTER); in __etb_enable_hw() 120 writel_relaxed(0x0, drvdata->base + ETB_RAM_READ_POINTER); in __etb_enable_hw() 122 writel_relaxed(drvdata->trigger_cntr, drvdata->base + ETB_TRG); in __etb_enable_hw() [all …]
|
D | coresight-tpda.c | 34 struct tpda_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in tpda_clear_element_size() local 36 drvdata->dsb_esize = 0; in tpda_clear_element_size() 37 drvdata->cmb_esize = 0; in tpda_clear_element_size() 40 static void tpda_set_element_size(struct tpda_drvdata *drvdata, u32 *val) in tpda_set_element_size() argument 45 if (drvdata->dsb_esize == 64) in tpda_set_element_size() 47 else if (drvdata->dsb_esize == 32) in tpda_set_element_size() 50 if (drvdata->cmb_esize == 64) in tpda_set_element_size() 52 else if (drvdata->cmb_esize == 32) in tpda_set_element_size() 54 else if (drvdata->cmb_esize == 8) in tpda_set_element_size() 65 static int tpdm_read_element_size(struct tpda_drvdata *drvdata, in tpdm_read_element_size() argument [all …]
|
D | coresight-etm4x-core.c | 64 static int etm4_set_event_filters(struct etmv4_drvdata *drvdata, 87 static inline bool etm4x_sspcicrn_present(struct etmv4_drvdata *drvdata, int n) in etm4x_sspcicrn_present() argument 89 return (n < drvdata->nr_ss_cmp) && in etm4x_sspcicrn_present() 90 drvdata->nr_pe && in etm4x_sspcicrn_present() 91 (drvdata->config.ss_status[n] & TRCSSCSRn_PC); in etm4x_sspcicrn_present() 158 static void etm_detect_os_lock(struct etmv4_drvdata *drvdata, in etm_detect_os_lock() argument 163 drvdata->os_lock_model = ETM_OSLSR_OSLM(oslsr); in etm_detect_os_lock() 166 static void etm_write_os_lock(struct etmv4_drvdata *drvdata, in etm_write_os_lock() argument 171 switch (drvdata->os_lock_model) { in etm_write_os_lock() 180 smp_processor_id(), drvdata->os_lock_model); in etm_write_os_lock() [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-replicator.c | 48 static void dynamic_replicator_reset(struct replicator_drvdata *drvdata) in dynamic_replicator_reset() argument 50 struct coresight_device *csdev = drvdata->csdev; in dynamic_replicator_reset() 52 CS_UNLOCK(drvdata->base); in dynamic_replicator_reset() 55 writel_relaxed(0xff, drvdata->base + REPLICATOR_IDFILTER0); in dynamic_replicator_reset() 56 writel_relaxed(0xff, drvdata->base + REPLICATOR_IDFILTER1); in dynamic_replicator_reset() 60 CS_LOCK(drvdata->base); in dynamic_replicator_reset() 66 static inline void replicator_reset(struct replicator_drvdata *drvdata) in replicator_reset() argument 68 if (drvdata->base) in replicator_reset() 69 dynamic_replicator_reset(drvdata); in replicator_reset() 72 static int dynamic_replicator_enable(struct replicator_drvdata *drvdata, in dynamic_replicator_enable() argument [all …]
|
D | coresight-funnel.c | 53 static int dynamic_funnel_enable_hw(struct funnel_drvdata *drvdata, int port) in dynamic_funnel_enable_hw() argument 57 struct coresight_device *csdev = drvdata->csdev; in dynamic_funnel_enable_hw() 59 CS_UNLOCK(drvdata->base); in dynamic_funnel_enable_hw() 61 functl = readl_relaxed(drvdata->base + FUNNEL_FUNCTL); in dynamic_funnel_enable_hw() 72 writel_relaxed(functl, drvdata->base + FUNNEL_FUNCTL); in dynamic_funnel_enable_hw() 73 writel_relaxed(drvdata->priority, drvdata->base + FUNNEL_PRICTL); in dynamic_funnel_enable_hw() 75 CS_LOCK(drvdata->base); in dynamic_funnel_enable_hw() 84 struct funnel_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); in funnel_enable() local 88 spin_lock_irqsave(&drvdata->spinlock, flags); in funnel_enable() 90 if (drvdata->base) in funnel_enable() [all …]
|
D | coresight-tmc-core.c | 37 int tmc_wait_for_tmcready(struct tmc_drvdata *drvdata) in tmc_wait_for_tmcready() argument 39 struct coresight_device *csdev = drvdata->csdev; in tmc_wait_for_tmcready() 51 void tmc_flush_and_stop(struct tmc_drvdata *drvdata) in tmc_flush_and_stop() argument 53 struct coresight_device *csdev = drvdata->csdev; in tmc_flush_and_stop() 57 ffcr = readl_relaxed(drvdata->base + TMC_FFCR); in tmc_flush_and_stop() 59 writel_relaxed(ffcr, drvdata->base + TMC_FFCR); in tmc_flush_and_stop() 61 writel_relaxed(ffcr, drvdata->base + TMC_FFCR); in tmc_flush_and_stop() 68 tmc_wait_for_tmcready(drvdata); in tmc_flush_and_stop() 71 void tmc_enable_hw(struct tmc_drvdata *drvdata) in tmc_enable_hw() argument 73 writel_relaxed(TMC_CTL_CAPT_EN, drvdata->base + TMC_CTL); in tmc_enable_hw() [all …]
|
D | ultrasoc-smb.c | 24 static bool smb_buffer_not_empty(struct smb_drv_data *drvdata) in smb_buffer_not_empty() argument 26 u32 buf_status = readl(drvdata->base + SMB_LB_INT_STS_REG); in smb_buffer_not_empty() 31 static void smb_update_data_size(struct smb_drv_data *drvdata) in smb_update_data_size() argument 33 struct smb_data_buffer *sdb = &drvdata->sdb; in smb_update_data_size() 36 buf_wrptr = readl(drvdata->base + SMB_LB_WR_ADDR_REG) - in smb_update_data_size() 40 if (buf_wrptr == sdb->buf_rdptr && smb_buffer_not_empty(drvdata)) { in smb_update_data_size() 55 static void smb_update_read_ptr(struct smb_drv_data *drvdata, u32 nbytes) in smb_update_read_ptr() argument 57 struct smb_data_buffer *sdb = &drvdata->sdb; in smb_update_read_ptr() 62 drvdata->base + SMB_LB_RD_ADDR_REG); in smb_update_read_ptr() 67 static void smb_reset_buffer(struct smb_drv_data *drvdata) in smb_reset_buffer() 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 …]
|
/linux-6.12.1/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.12.1/drivers/video/fbdev/ |
D | xilinxfb.c | 166 static void xilinx_fb_out32(struct xilinxfb_drvdata *drvdata, u32 offset, in xilinx_fb_out32() argument 169 if (drvdata->flags & BUS_ACCESS_FLAG) { in xilinx_fb_out32() 170 if (drvdata->flags & LITTLE_ENDIAN_ACCESS) in xilinx_fb_out32() 171 iowrite32(val, drvdata->regs + (offset << 2)); in xilinx_fb_out32() 173 iowrite32be(val, drvdata->regs + (offset << 2)); in xilinx_fb_out32() 177 dcr_write(drvdata->dcr_host, offset, val); in xilinx_fb_out32() 181 static u32 xilinx_fb_in32(struct xilinxfb_drvdata *drvdata, u32 offset) in xilinx_fb_in32() argument 183 if (drvdata->flags & BUS_ACCESS_FLAG) { in xilinx_fb_in32() 184 if (drvdata->flags & LITTLE_ENDIAN_ACCESS) in xilinx_fb_in32() 185 return ioread32(drvdata->regs + (offset << 2)); in xilinx_fb_in32() [all …]
|
/linux-6.12.1/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.12.1/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.12.1/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 | 227 static int hwicap_command_desync(struct hwicap_drvdata *drvdata) in hwicap_command_desync() argument 235 buffer[index++] = hwicap_type_1_write(drvdata->config_regs->CMD) | 1; in hwicap_command_desync() 244 return drvdata->config->set_configuration(drvdata, in hwicap_command_desync() 261 static int hwicap_get_configuration_register(struct hwicap_drvdata *drvdata, in hwicap_get_configuration_register() argument 281 status = drvdata->config->set_configuration(drvdata, in hwicap_get_configuration_register() 287 status = drvdata->config->get_status(drvdata); in hwicap_get_configuration_register() 300 status = drvdata->config->set_configuration(drvdata, in hwicap_get_configuration_register() 308 status = drvdata->config->get_configuration(drvdata, reg_data, 1); in hwicap_get_configuration_register() 315 static int hwicap_initialize_hwicap(struct hwicap_drvdata *drvdata) in hwicap_initialize_hwicap() argument 320 dev_dbg(drvdata->dev, "initializing\n"); in hwicap_initialize_hwicap() [all …]
|