Home
last modified time | relevance | path

Searched refs:ic (Results 1 – 25 of 40) sorted by relevance

12

/drivers/md/
Ddm-integrity.c104 #define journal_entry_tag(ic, je) ((__u8 *)&(je)->last_bytes[(ic)->sectors_per_block]) argument
297 struct dm_integrity_c *ic; member
315 struct dm_integrity_c *ic; member
327 struct dm_integrity_c *ic; member
385 static void dm_integrity_io_error(struct dm_integrity_c *ic, const char *msg, int err) in dm_integrity_io_error() argument
388 atomic64_inc(&ic->number_of_mismatches); in dm_integrity_io_error()
389 if (!cmpxchg(&ic->failed, 0, err)) in dm_integrity_io_error()
393 static int dm_integrity_failed(struct dm_integrity_c *ic) in dm_integrity_failed() argument
395 return READ_ONCE(ic->failed); in dm_integrity_failed()
398 static bool dm_integrity_disable_recalculate(struct dm_integrity_c *ic) in dm_integrity_disable_recalculate() argument
[all …]
/drivers/gpu/ipu-v3/
Dipu-ic.c164 static inline u32 ipu_ic_read(struct ipu_ic *ic, unsigned offset) in ipu_ic_read() argument
166 return readl(ic->priv->base + offset); in ipu_ic_read()
169 static inline void ipu_ic_write(struct ipu_ic *ic, u32 value, unsigned offset) in ipu_ic_write() argument
171 writel(value, ic->priv->base + offset); in ipu_ic_write()
174 static int init_csc(struct ipu_ic *ic, in init_csc() argument
178 struct ipu_ic_priv *priv = ic->priv; in init_csc()
185 (priv->tpmem_base + ic->reg->tpmem_csc[csc_index]); in init_csc()
216 static int calc_resize_coeffs(struct ipu_ic *ic, in calc_resize_coeffs() argument
221 struct ipu_ic_priv *priv = ic->priv; in calc_resize_coeffs()
268 void ipu_ic_task_enable(struct ipu_ic *ic) in ipu_ic_task_enable() argument
[all …]
DMakefile5 ipu-dp.o ipu-dmfc.o ipu-ic.o ipu-ic-csc.o \
/drivers/base/
Dattribute_container.c33 struct internal_container *ic = in internal_container_klist_get() local
35 get_device(&ic->classdev); in internal_container_klist_get()
40 struct internal_container *ic = in internal_container_klist_put() local
42 put_device(&ic->classdev); in internal_container_klist_put()
56 struct internal_container *ic = in attribute_container_classdev_to_container() local
58 return ic->cont; in attribute_container_classdev_to_container()
114 struct internal_container *ic in attribute_container_release() local
118 kfree(ic); in attribute_container_release()
150 struct internal_container *ic; in attribute_container_add_device() local
158 ic = kzalloc(sizeof(*ic), GFP_KERNEL); in attribute_container_add_device()
[all …]
/drivers/gpio/
Dgpio-lpc18xx.c56 static inline void lpc18xx_gpio_pin_ic_isel(struct lpc18xx_gpio_pin_ic *ic, in lpc18xx_gpio_pin_ic_isel() argument
59 u32 val = readl_relaxed(ic->base + LPC18XX_GPIO_PIN_IC_ISEL); in lpc18xx_gpio_pin_ic_isel()
66 writel_relaxed(val, ic->base + LPC18XX_GPIO_PIN_IC_ISEL); in lpc18xx_gpio_pin_ic_isel()
69 static inline void lpc18xx_gpio_pin_ic_set(struct lpc18xx_gpio_pin_ic *ic, in lpc18xx_gpio_pin_ic_set() argument
72 writel_relaxed(BIT(pin), ic->base + reg); in lpc18xx_gpio_pin_ic_set()
77 struct lpc18xx_gpio_pin_ic *ic = d->chip_data; in lpc18xx_gpio_pin_ic_mask() local
80 raw_spin_lock(&ic->lock); in lpc18xx_gpio_pin_ic_mask()
83 lpc18xx_gpio_pin_ic_set(ic, d->hwirq, in lpc18xx_gpio_pin_ic_mask()
87 lpc18xx_gpio_pin_ic_set(ic, d->hwirq, in lpc18xx_gpio_pin_ic_mask()
90 raw_spin_unlock(&ic->lock); in lpc18xx_gpio_pin_ic_mask()
[all …]
Dgpio-ep93xx.c43 struct irq_chip ic; member
323 static void ep93xx_init_irq_chip(struct device *dev, struct irq_chip *ic) in ep93xx_init_irq_chip() argument
325 ic->irq_ack = ep93xx_gpio_irq_ack; in ep93xx_init_irq_chip()
326 ic->irq_mask_ack = ep93xx_gpio_irq_mask_ack; in ep93xx_init_irq_chip()
327 ic->irq_mask = ep93xx_gpio_irq_mask; in ep93xx_init_irq_chip()
328 ic->irq_unmask = ep93xx_gpio_irq_unmask; in ep93xx_init_irq_chip()
329 ic->irq_set_type = ep93xx_gpio_irq_type; in ep93xx_init_irq_chip()
353 struct irq_chip *ic; in ep93xx_gpio_add_bank() local
362 ic = &egc->eic->ic; in ep93xx_gpio_add_bank()
363 ic->name = devm_kasprintf(dev, GFP_KERNEL, "gpio-irq-%s", bank->label); in ep93xx_gpio_add_bank()
[all …]
Dgpio-vf610.c32 struct irq_chip ic; member
251 struct irq_chip *ic; in vf610_gpio_probe() local
318 ic = &port->ic; in vf610_gpio_probe()
319 ic->name = "gpio-vf610"; in vf610_gpio_probe()
320 ic->irq_ack = vf610_gpio_irq_ack; in vf610_gpio_probe()
321 ic->irq_mask = vf610_gpio_irq_mask; in vf610_gpio_probe()
322 ic->irq_unmask = vf610_gpio_irq_unmask; in vf610_gpio_probe()
323 ic->irq_set_type = vf610_gpio_irq_set_type; in vf610_gpio_probe()
324 ic->irq_set_wake = vf610_gpio_irq_set_wake; in vf610_gpio_probe()
334 girq->chip = ic; in vf610_gpio_probe()
Dgpio-siox.c100 struct irq_chip *ic = irq_data_get_irq_chip(d); in gpio_siox_irq_ack() local
102 container_of(ic, struct gpio_siox_ddata, ichip); in gpio_siox_irq_ack()
111 struct irq_chip *ic = irq_data_get_irq_chip(d); in gpio_siox_irq_mask() local
113 container_of(ic, struct gpio_siox_ddata, ichip); in gpio_siox_irq_mask()
122 struct irq_chip *ic = irq_data_get_irq_chip(d); in gpio_siox_irq_unmask() local
124 container_of(ic, struct gpio_siox_ddata, ichip); in gpio_siox_irq_unmask()
133 struct irq_chip *ic = irq_data_get_irq_chip(d); in gpio_siox_irq_set_type() local
135 container_of(ic, struct gpio_siox_ddata, ichip); in gpio_siox_irq_set_type()
Dgpio-tegra.c97 struct irq_chip ic; member
696 tgi->ic.name = "GPIO"; in tegra_gpio_probe()
697 tgi->ic.irq_ack = tegra_gpio_irq_ack; in tegra_gpio_probe()
698 tgi->ic.irq_mask = tegra_gpio_irq_mask; in tegra_gpio_probe()
699 tgi->ic.irq_unmask = tegra_gpio_irq_unmask; in tegra_gpio_probe()
700 tgi->ic.irq_set_type = tegra_gpio_irq_set_type; in tegra_gpio_probe()
701 tgi->ic.irq_shutdown = tegra_gpio_irq_shutdown; in tegra_gpio_probe()
703 tgi->ic.irq_set_wake = tegra_gpio_irq_set_wake; in tegra_gpio_probe()
705 tgi->ic.irq_request_resources = tegra_gpio_irq_request_resources; in tegra_gpio_probe()
706 tgi->ic.irq_release_resources = tegra_gpio_irq_release_resources; in tegra_gpio_probe()
[all …]
Dgpio-rda.c181 struct irq_chip *ic = irq_desc_get_chip(desc); in rda_gpio_irq_handler() local
186 chained_irq_enter(ic, desc); in rda_gpio_irq_handler()
195 chained_irq_exit(ic, desc); in rda_gpio_irq_handler()
Dgpio-sprd.c190 struct irq_chip *ic = irq_desc_get_chip(desc); in sprd_gpio_irq_handler() local
194 chained_irq_enter(ic, desc); in sprd_gpio_irq_handler()
205 chained_irq_exit(ic, desc); in sprd_gpio_irq_handler()
/drivers/irqchip/
Dirq-lpc32xx.c34 static inline u32 lpc32xx_ic_read(struct lpc32xx_irq_chip *ic, u32 reg) in lpc32xx_ic_read() argument
36 return readl_relaxed(ic->base + reg); in lpc32xx_ic_read()
39 static inline void lpc32xx_ic_write(struct lpc32xx_irq_chip *ic, in lpc32xx_ic_write() argument
42 writel_relaxed(val, ic->base + reg); in lpc32xx_ic_write()
47 struct lpc32xx_irq_chip *ic = irq_data_get_irq_chip_data(d); in lpc32xx_irq_mask() local
50 val = lpc32xx_ic_read(ic, LPC32XX_INTC_MASK) & ~mask; in lpc32xx_irq_mask()
51 lpc32xx_ic_write(ic, LPC32XX_INTC_MASK, val); in lpc32xx_irq_mask()
56 struct lpc32xx_irq_chip *ic = irq_data_get_irq_chip_data(d); in lpc32xx_irq_unmask() local
59 val = lpc32xx_ic_read(ic, LPC32XX_INTC_MASK) | mask; in lpc32xx_irq_unmask()
60 lpc32xx_ic_write(ic, LPC32XX_INTC_MASK, val); in lpc32xx_irq_unmask()
[all …]
Dirq-apple-aic.c193 static u32 aic_ic_read(struct aic_irq_chip *ic, u32 reg) in aic_ic_read() argument
195 return readl_relaxed(ic->base + reg); in aic_ic_read()
198 static void aic_ic_write(struct aic_irq_chip *ic, u32 reg, u32 val) in aic_ic_write() argument
200 writel_relaxed(val, ic->base + reg); in aic_ic_write()
209 struct aic_irq_chip *ic = irq_data_get_irq_chip_data(d); in aic_irq_mask() local
211 aic_ic_write(ic, AIC_MASK_SET + MASK_REG(irqd_to_hwirq(d)), in aic_irq_mask()
217 struct aic_irq_chip *ic = irq_data_get_irq_chip_data(d); in aic_irq_unmask() local
219 aic_ic_write(ic, AIC_MASK_CLR + MASK_REG(d->hwirq), in aic_irq_unmask()
235 struct aic_irq_chip *ic = aic_irqc; in aic_handle_irq() local
243 event = readl(ic->base + AIC_EVENT); in aic_handle_irq()
[all …]
/drivers/md/persistent-data/
Ddm-space-map-common.c519 static inline void init_inc_context(struct inc_context *ic) in init_inc_context() argument
521 ic->bitmap_block = NULL; in init_inc_context()
522 ic->bitmap = NULL; in init_inc_context()
523 ic->overflow_leaf = NULL; in init_inc_context()
526 static inline void exit_inc_context(struct ll_disk *ll, struct inc_context *ic) in exit_inc_context() argument
528 if (ic->bitmap_block) in exit_inc_context()
529 dm_tm_unlock(ll->tm, ic->bitmap_block); in exit_inc_context()
530 if (ic->overflow_leaf) in exit_inc_context()
531 dm_tm_unlock(ll->tm, ic->overflow_leaf); in exit_inc_context()
534 static inline void reset_inc_context(struct ll_disk *ll, struct inc_context *ic) in reset_inc_context() argument
[all …]
/drivers/staging/media/atomisp/pci/
Datomisp_csi2.c51 const struct atomisp_in_fmt_conv *ic = atomisp_in_fmt_conv; in csi2_enum_mbus_code() local
54 while (ic->code) { in csi2_enum_mbus_code()
56 code->code = ic->code; in csi2_enum_mbus_code()
59 i++, ic++; in csi2_enum_mbus_code()
98 const struct atomisp_in_fmt_conv *ic; in atomisp_csi2_set_ffmt() local
101 ic = atomisp_find_in_fmt_conv(ffmt->code); in atomisp_csi2_set_ffmt()
102 if (ic) in atomisp_csi2_set_ffmt()
103 actual_ffmt->code = ic->code; in atomisp_csi2_set_ffmt()
/drivers/staging/media/imx/
Dimx-ic-prpencvf.c62 struct ipu_ic *ic; member
133 if (priv->ic) in prp_put_ipu_resources()
134 ipu_ic_put(priv->ic); in prp_put_ipu_resources()
135 priv->ic = NULL; in prp_put_ipu_resources()
153 struct ipu_ic *ic; in prp_get_ipu_resources() local
157 ic = ipu_ic_get(ic_priv->ipu, task); in prp_get_ipu_resources()
158 if (IS_ERR(ic)) { in prp_get_ipu_resources()
160 ret = PTR_ERR(ic); in prp_get_ipu_resources()
163 priv->ic = ic; in prp_get_ipu_resources()
435 ret = ipu_ic_task_idma_init(priv->ic, channel, in prp_setup_channel()
[all …]
DMakefile6 imx-ic-common.o imx-ic-prp.o imx-ic-prpencvf.o imx-media-vdic.o \
/drivers/mmc/core/
Dblock.c401 struct mmc_ioc_cmd ic; member
423 if (copy_from_user(&idata->ic, user, sizeof(idata->ic))) { in mmc_blk_ioctl_copy_from_user()
428 idata->buf_bytes = (u64) idata->ic.blksz * idata->ic.blocks; in mmc_blk_ioctl_copy_from_user()
440 idata->ic.data_ptr, idata->buf_bytes); in mmc_blk_ioctl_copy_from_user()
457 struct mmc_ioc_cmd *ic = &idata->ic; in mmc_blk_ioctl_copy_to_user() local
459 if (copy_to_user(&(ic_ptr->response), ic->response, in mmc_blk_ioctl_copy_to_user()
460 sizeof(ic->response))) in mmc_blk_ioctl_copy_to_user()
463 if (!idata->ic.write_flag) { in mmc_blk_ioctl_copy_to_user()
464 if (copy_to_user((void __user *)(unsigned long)ic->data_ptr, in mmc_blk_ioctl_copy_to_user()
507 cmd.opcode = idata->ic.opcode; in __mmc_blk_ioctl_cmd()
[all …]
/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
Dic.c53 therm->ic = client; in probe_monitoring_device()
103 if (therm->ic) in nvkm_therm_ic_ctor()
115 if (therm->ic) in nvkm_therm_ic_ctor()
/drivers/net/ethernet/freescale/enetc/
Denetc_ethtool.c588 struct ethtool_coalesce *ic, in enetc_get_coalesce() argument
595 ic->tx_coalesce_usecs = enetc_cycles_to_usecs(priv->tx_ictt); in enetc_get_coalesce()
596 ic->rx_coalesce_usecs = enetc_cycles_to_usecs(v->rx_ictt); in enetc_get_coalesce()
598 ic->tx_max_coalesced_frames = ENETC_TXIC_PKTTHR; in enetc_get_coalesce()
599 ic->rx_max_coalesced_frames = ENETC_RXIC_PKTTHR; in enetc_get_coalesce()
601 ic->use_adaptive_rx_coalesce = priv->ic_mode & ENETC_IC_RX_ADAPTIVE; in enetc_get_coalesce()
607 struct ethtool_coalesce *ic, in enetc_set_coalesce() argument
616 tx_ictt = enetc_usecs_to_cycles(ic->tx_coalesce_usecs); in enetc_set_coalesce()
617 rx_ictt = enetc_usecs_to_cycles(ic->rx_coalesce_usecs); in enetc_set_coalesce()
619 if (ic->rx_max_coalesced_frames != ENETC_RXIC_PKTTHR) in enetc_set_coalesce()
[all …]
/drivers/pinctrl/
Dpinctrl-equilibrium.c151 struct irq_chip *ic = irq_desc_get_chip(desc); in eqbr_irq_handler() local
154 chained_irq_enter(ic, desc); in eqbr_irq_handler()
160 chained_irq_exit(ic, desc); in eqbr_irq_handler()
180 gctrl->ic.name = "gpio_irq"; in gpiochip_setup()
181 gctrl->ic.irq_mask = eqbr_gpio_disable_irq; in gpiochip_setup()
182 gctrl->ic.irq_unmask = eqbr_gpio_enable_irq; in gpiochip_setup()
183 gctrl->ic.irq_ack = eqbr_gpio_ack_irq; in gpiochip_setup()
184 gctrl->ic.irq_mask_ack = eqbr_gpio_mask_ack_irq; in gpiochip_setup()
185 gctrl->ic.irq_set_type = eqbr_gpio_set_irq_type; in gpiochip_setup()
188 girq->chip = &gctrl->ic; in gpiochip_setup()
/drivers/net/wireless/realtek/rtw88/
Drtw8822c.c379 u32 ic = 0, qc = 0, temp = 0; in rtw8822c_dac_cal_adc() local
413 rtw8822c_dac_cal_rf_mode(rtwdev, &ic, &qc); in rtw8822c_dac_cal_adc()
415 "[DACK] before: i=0x%x, q=0x%x\n", ic, qc); in rtw8822c_dac_cal_adc()
418 if (ic != 0x0) { in rtw8822c_dac_cal_adc()
419 ic = 0x400 - ic; in rtw8822c_dac_cal_adc()
420 *adc_ic = ic; in rtw8822c_dac_cal_adc()
426 temp = (ic & 0x3ff) | ((qc & 0x3ff) << 10); in rtw8822c_dac_cal_adc()
433 rtw8822c_dac_cal_rf_mode(rtwdev, &ic, &qc); in rtw8822c_dac_cal_adc()
435 "[DACK] after: i=0x%08x, q=0x%08x\n", ic, qc); in rtw8822c_dac_cal_adc()
436 if (ic >= 0x200) in rtw8822c_dac_cal_adc()
[all …]
/drivers/comedi/drivers/
Dadl_pci7x3x.c352 int ic; in adl_pci7x3x_auto_attach() local
462 for (ic = 0; ic < board->irq_nchan; ++ic) { in adl_pci7x3x_auto_attach()
/drivers/usb/serial/
Dsafe_serial.c107 #define MY_USB_DEVICE(vend, prod, dc, ic, isc) \ argument
115 .bInterfaceClass = (ic), \
/drivers/staging/r8188eu/hal/
Dodm_HWConfig.c8 #define READ_AND_CONFIG_MP(ic, txt) (ODM_ReadAndConfig##txt##ic(dm_odm)) argument
9 #define READ_AND_CONFIG_TC(ic, txt) (ODM_ReadAndConfig_TC##txt##ic(dm_odm)) argument

12