/kernel/linux/linux-5.10/drivers/input/keyboard/ |
H A D | qt2160.c | 71 enum led_brightness value) in qt2160_led_set() 78 if (value != led->brightness) { in qt2160_led_set() 81 if (value != LED_OFF) { in qt2160_led_set() 96 if (value != LED_OFF) in qt2160_led_set() 97 qt2160_write(client, QT2160_CMD_PWM_DUTY, value); in qt2160_led_set() 99 led->brightness = value; in qt2160_led_set() 70 qt2160_led_set(struct led_classdev *cdev, enum led_brightness value) qt2160_led_set() argument
|
/kernel/linux/linux-5.10/drivers/input/touchscreen/ |
H A D | imx6ul_tsc.c | 100 * TSC module need ADC to get the measure value. So 264 u32 value; in tsc_irq_fn() local 280 value = readl(tsc->tsc_regs + REG_TSC_MEASURE_VALUE); in tsc_irq_fn() 281 x = (value >> 16) & 0x0fff; in tsc_irq_fn() 282 y = value & 0x0fff; in tsc_irq_fn() 285 * In detect mode, we can get the xnur gpio value, in tsc_irq_fn() 307 u32 value; in adc_irq_fn() local 311 value = readl(tsc->adc_regs + REG_ADC_R0); in adc_irq_fn() 489 tsc->average_select = 0; /* value unused; initialize anyway */ in imx6ul_tsc_probe()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/dss/ |
H A D | pll.c | 323 static int wait_for_bit_change(void __iomem *reg, int bitnum, int value) in wait_for_bit_change() argument 332 if (FLD_GET(readl_relaxed(reg), bitnum, bitnum) == value) in wait_for_bit_change() 333 return value; in wait_for_bit_change() 339 if (FLD_GET(readl_relaxed(reg), bitnum, bitnum) == value) in wait_for_bit_change() 340 return value; in wait_for_bit_change() 347 return !value; in wait_for_bit_change() 377 * Required value for each bitfield listed below in pll_is_locked()
|
/kernel/linux/linux-5.10/drivers/media/platform/marvell-ccic/ |
H A D | cafe-driver.c | 73 #define GPR_C1 0x00000002 /* Control 1 value */ 78 #define GPR_C0 0x00000001 /* Control 0 value */ 125 #define GGPIO_VAL 0x00008 /* Output pin value */ 171 u16 addr, u8 command, u8 value) in cafe_smbus_write_data() 186 rval = value | ((command << TWSIC1_ADDR_SHIFT) & TWSIC1_ADDR); in cafe_smbus_write_data() 217 command, value); in cafe_smbus_write_data() 222 command, value); in cafe_smbus_write_data() 250 u16 addr, u8 command, u8 *value) in cafe_smbus_read_data() 284 *value = rval & 0xff; in cafe_smbus_read_data() 170 cafe_smbus_write_data(struct cafe_camera *cam, u16 addr, u8 command, u8 value) cafe_smbus_write_data() argument 249 cafe_smbus_read_data(struct cafe_camera *cam, u16 addr, u8 command, u8 *value) cafe_smbus_read_data() argument
|
/kernel/linux/linux-5.10/drivers/misc/ibmasm/ |
H A D | ibmasmfs.c | 58 * write: set value 59 * read: read value 506 unsigned int value; in remote_settings_file_read() local 509 value = readl(address); in remote_settings_file_read() 510 len = snprintf(lbuf, sizeof(lbuf), "%d\n", value); in remote_settings_file_read() 519 unsigned int value; in remote_settings_file_write() local 538 value = simple_strtoul(buff, NULL, 10); in remote_settings_file_write() 539 writel(value, address); in remote_settings_file_write()
|
/kernel/linux/linux-5.10/drivers/iio/chemical/ |
H A D | sgp30.c | 84 __be16 value; member 354 *val2 = be16_to_cpu(words[1].value); in sgp_read_raw() 359 *val2 = be16_to_cpu(words[0].value); in sgp_read_raw() 389 *val = be16_to_cpu(words[1].value); in sgp_read_raw() 394 *val = be16_to_cpu(words[0].value); in sgp_read_raw() 529 data->feature_set = be16_to_cpu(data->buffer.raw_words[0].value); in sgp_probe()
|
/kernel/linux/linux-5.10/drivers/scsi/ |
H A D | atari_scsi.c | 64 #define NCR5380_write(reg, value) atari_scsi_reg_write(reg, value) 482 /* need not restore value of dir, only boolean value is tested */ in atari_scsi_dma_setup() 642 static void atari_scsi_tt_reg_write(unsigned int reg, u8 value) in atari_scsi_tt_reg_write() argument 644 tt_scsi_regp[reg * 2] = value; in atari_scsi_tt_reg_write() 660 static void atari_scsi_falcon_reg_write(unsigned int reg, u8 value) in atari_scsi_falcon_reg_write() argument 667 dma_wd.fdc_acces_seccount = (u_short)value; in atari_scsi_falcon_reg_write()
|
/kernel/linux/linux-5.10/drivers/scsi/ufs/ |
H A D | ufs-hisi.c | 130 * override value = 1(bit4), with mask in ufs_hisi_soc_init() 142 uint32_t value; in ufs_hisi_link_startup_pre_change() local 218 ufshcd_dme_get(hba, UIC_ARG_MIB_SEL(0xD0C1, 0x0), &value); in ufs_hisi_link_startup_pre_change() 219 if (value != 0x1) in ufs_hisi_link_startup_pre_change() 221 "Warring!!! Unipro VS_mphy_disable is 0x%x\n", value); in ufs_hisi_link_startup_pre_change() 241 ufshcd_dme_get(hba, UIC_ARG_MIB_SEL(0xD0AB, 0x0), &value); in ufs_hisi_link_startup_pre_change() 242 if (value != 0) { in ufs_hisi_link_startup_pre_change() 317 * and change sync length to maximum value in ufs_hisi_pwr_change_pre_change()
|
/kernel/linux/linux-5.10/drivers/scsi/qla2xxx/ |
H A D | qla_mr.h | 360 #define QLAFX00_SET_HST_INTR(ha, value) \ 362 value) 364 #define QLAFX00_CLR_HST_INTR(ha, value) \ 366 ~value) 371 #define QLAFX00_CLR_INTR_REG(ha, value) \ 373 ~value) 498 * the value from this bitfiled should be converted 501 * where X is the bit field value 502 * this macro reads the register, extracts the bitfield value,
|
/kernel/linux/linux-5.10/drivers/tee/amdtee/ |
H A D | call.c | 59 if (tee[i].u.value.c) in tee_params_to_amd_params() 60 pr_warn("%s: Discarding value c", __func__); in tee_params_to_amd_params() 62 amd->params[i].val.a = tee[i].u.value.a; in tee_params_to_amd_params() 63 amd->params[i].val.b = tee[i].u.value.b; in tee_params_to_amd_params() 112 tee[i].u.value.a = amd->params[i].val.a; in amd_params_to_tee_params() 113 tee[i].u.value.b = amd->params[i].val.b; in amd_params_to_tee_params() 114 tee[i].u.value.c = 0; in amd_params_to_tee_params()
|
/kernel/linux/linux-5.10/drivers/usb/dwc3/ |
H A D | dwc3-pci.c | 93 u32 value; in dwc3_byt_enable_ulpi_refclock() local 99 value = readl(reg + GP_RWREG1); in dwc3_byt_enable_ulpi_refclock() 100 if (!(value & GP_RWREG1_ULPI_REFCLK_DISABLE)) in dwc3_byt_enable_ulpi_refclock() 103 value &= ~GP_RWREG1_ULPI_REFCLK_DISABLE; in dwc3_byt_enable_ulpi_refclock() 104 writel(value, reg + GP_RWREG1); in dwc3_byt_enable_ulpi_refclock() 396 tmp.integer.value = param; in dwc3_pci_dsm()
|
/kernel/linux/linux-5.10/drivers/video/fbdev/matrox/ |
H A D | matroxfb_base.h | 132 static inline void mga_writeb(vaddr_t va, unsigned int offs, u_int8_t value) { in mga_writeb() argument 133 writeb(value, va.vaddr + offs); in mga_writeb() 136 static inline void mga_writew(vaddr_t va, unsigned int offs, u_int16_t value) { in mga_writew() argument 137 writew(value, va.vaddr + offs); in mga_writew() 144 static inline void mga_writel(vaddr_t va, unsigned int offs, u_int32_t value) { in mga_writel() argument 145 writel(value, va.vaddr + offs); in mga_writel()
|
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/ |
H A D | pxa27x_udc.h | 182 #define udc_ep_writel(ep, reg, value) \ 183 __raw_writel((value), ep->dev->regs + ofs_##reg(ep)) 186 #define udc_ep_writeb(ep, reg, value) \ 187 __raw_writeb((value), ep->dev->regs + ofs_##reg(ep)) 190 #define udc_writel(udc, reg, value) \ 191 __raw_writel((value), (udc)->regs + (reg))
|
/kernel/linux/linux-5.10/drivers/vdpa/ifcvf/ |
H A D | ifcvf_base.c | 27 static inline void ifc_iowrite8(u8 value, u8 __iomem *addr) in ifc_iowrite8() argument 29 iowrite8(value, addr); in ifc_iowrite8() 32 static inline void ifc_iowrite16(u16 value, __le16 __iomem *addr) in ifc_iowrite16() argument 34 iowrite16(value, addr); in ifc_iowrite16() 37 static inline void ifc_iowrite32(u32 value, __le32 __iomem *addr) in ifc_iowrite32() argument 39 iowrite32(value, addr); in ifc_iowrite32()
|
/kernel/linux/linux-5.10/drivers/video/fbdev/omap2/omapfb/dss/ |
H A D | pll.c | 187 static int wait_for_bit_change(void __iomem *reg, int bitnum, int value) in wait_for_bit_change() argument 196 if (FLD_GET(readl_relaxed(reg), bitnum, bitnum) == value) in wait_for_bit_change() 197 return value; in wait_for_bit_change() 203 if (FLD_GET(readl_relaxed(reg), bitnum, bitnum) == value) in wait_for_bit_change() 204 return value; in wait_for_bit_change() 211 return !value; in wait_for_bit_change()
|
/kernel/linux/linux-5.10/drivers/video/fbdev/omap/ |
H A D | sossi.c | 85 static inline void sossi_write_reg(int reg, u32 value) in sossi_write_reg() argument 87 writel(value, sossi.base + reg); in sossi_write_reg() 90 static inline void sossi_write_reg16(int reg, u16 value) in sossi_write_reg16() argument 92 writew(value, sossi.base + reg); in sossi_write_reg16() 95 static inline void sossi_write_reg8(int reg, u8 value) in sossi_write_reg8() argument 97 writeb(value, sossi.base + reg); in sossi_write_reg8()
|
/kernel/linux/linux-5.10/sound/pci/aw2/ |
H A D | aw2-alsa.c | 141 MODULE_PARM_DESC(index, "Index value for Audiowerk2 soundcard."); 687 ucontrol->value.enumerated.item[0] = CTL_ROUTE_DIGITAL; in snd_aw2_control_switch_capture_get() 689 ucontrol->value.enumerated.item[0] = CTL_ROUTE_ANALOG; in snd_aw2_control_switch_capture_get() 702 if (((ucontrol->value.integer.value[0] == CTL_ROUTE_DIGITAL) in snd_aw2_control_switch_capture_put() 704 || ((ucontrol->value.integer.value[0] == CTL_ROUTE_ANALOG) in snd_aw2_control_switch_capture_put()
|
/kernel/linux/linux-5.10/sound/mips/ |
H A D | ad1843.c | 170 /* read the current value of an AD1843 bitfield. */ 182 * write a new value to an AD1843 bitfield and return the old value. 218 int w = 0, mask, *value, reg = -1; in ad1843_read_multi() local 223 value = va_arg(ap, int *); in ad1843_read_multi() 230 *value = w >> fp->lo_bit & mask; in ad1843_read_multi() 251 int value; in ad1843_write_multi() local 261 value = va_arg(ap, int); in ad1843_write_multi() 268 bits |= (value << fp->lo_bit) & m; in ad1843_write_multi() 292 * ad1843_get_gain reads the specified register and extracts the gain value [all...] |
/kernel/linux/linux-5.10/sound/hda/ext/ |
H A D | hdac_ext_stream.c | 438 * snd_hdac_ext_stream_set_spib - sets the spib value of a stream 441 * @value: spib value to set 444 struct hdac_ext_stream *stream, u32 value) in snd_hdac_ext_stream_set_spib() 452 writel(value, stream->spib_addr); in snd_hdac_ext_stream_set_spib() 459 * snd_hdac_ext_stream_get_spbmaxfifo - gets the spib value of a stream 504 * snd_hdac_ext_stream_set_dpibr - sets the dpibr value of a stream 507 * @value: dpib value to set 510 struct hdac_ext_stream *stream, u32 value) in snd_hdac_ext_stream_set_dpibr() 443 snd_hdac_ext_stream_set_spib(struct hdac_bus *bus, struct hdac_ext_stream *stream, u32 value) snd_hdac_ext_stream_set_spib() argument 509 snd_hdac_ext_stream_set_dpibr(struct hdac_bus *bus, struct hdac_ext_stream *stream, u32 value) snd_hdac_ext_stream_set_dpibr() argument 529 snd_hdac_ext_stream_set_lpib(struct hdac_ext_stream *stream, u32 value) snd_hdac_ext_stream_set_lpib() argument [all...] |
/kernel/linux/linux-5.10/sound/isa/gus/ |
H A D | gus_main.c | 41 uinfo->value.integer.min = 0; in snd_gus_joystick_info() 42 uinfo->value.integer.max = 31; in snd_gus_joystick_info() 50 ucontrol->value.integer.value[0] = gus->joystick_dac & 31; in snd_gus_joystick_get() 61 nval = ucontrol->value.integer.value[0] & 31; in snd_gus_joystick_put()
|
/kernel/linux/linux-5.10/sound/pci/ice1712/ |
H A D | juli.c | 244 /* set new value, reset DFS */ in juli_akm_set_rate_val() 297 ucontrol->value.integer.value[0] = (val) ? 0 : 1; in juli_mute_get() 300 ucontrol->value.integer.value[0] = (val) ? 1 : 0; in juli_mute_get() 310 if (ucontrol->value.integer.value[0]) { in juli_mute_put() 336 (unsigned int)ucontrol->value.integer.value[0], old_gpio, in juli_mute_put()
|
/kernel/linux/linux-5.10/scripts/dtc/libfdt/ |
H A D | fdt_overlay.c | 431 const char *value; in overlay_fixup_phandle() local 435 value = fdt_getprop_by_offset(fdto, property, in overlay_fixup_phandle() 437 if (!value) { in overlay_fixup_phandle() 446 const char *fixup_str = value; in overlay_fixup_phandle() 452 fixup_end = memchr(value, '\0', len); in overlay_fixup_phandle() 458 value += fixup_len + 1; in overlay_fixup_phandle()
|
/kernel/linux/linux-5.10/security/selinux/ss/ |
H A D | mls.c | 320 catdatum->value - 1, 1); in mls_context_to_sid() 332 if (catdatum->value >= rngdatum->value) in mls_context_to_sid() 335 for (i = catdatum->value; i < rngdatum->value; i++) { in mls_context_to_sid() 479 catdatum->value - 1, 1); in mls_convert_context()
|
/kernel/linux/linux-5.10/sound/soc/codecs/ |
H A D | wm9712.c | 221 unsigned int val = ucontrol->value.integer.value[0]; in wm9712_hp_mixer_put() 234 if (ucontrol->value.integer.value[0]) in wm9712_hp_mixer_put() 272 ucontrol->value.integer.value[0] = in wm9712_hp_mixer_get()
|
H A D | tas5720.c | 249 /* Store current fault value so we can detect any changes next time */ in tas5720_fault_check_work() 258 * the full sequence no matter the first return value to minimizes in tas5720_fault_check_work() 381 * lists a nominal value however just use-it as-is without in tas5720_dac_event() 497 * (register value <0x7) is effectively a MUTE as per device datasheet. 512 ucontrol->value.integer.value[0] = val << 1; in tas5722_volume_get() 515 ucontrol->value.integer.value[0] |= val & TAS5722_VOL_CONTROL_LSB; in tas5722_volume_get() 524 unsigned int sel = ucontrol->value.integer.value[ in tas5722_volume_set() [all...] |