Searched refs:bias (Results 1 - 25 of 69) sorted by last modified time

123

/linux-master/drivers/gpio/
H A Dgpiolib.c2550 enum pin_config_param bias; local
2557 bias = PIN_CONFIG_BIAS_DISABLE;
2559 bias = PIN_CONFIG_BIAS_PULL_UP;
2561 bias = PIN_CONFIG_BIAS_PULL_DOWN;
2565 switch (bias) {
2576 return gpio_set_config_with_argument_optional(desc, bias, arg);
/linux-master/include/linux/
H A Dskbuff.h1238 int bias; local
1243 bias = skb->nohdr ? (1 << SKB_DATAREF_SHIFT) + 1 : 1;
1245 if (atomic_read(&shinfo->dataref) == bias)
1247 else if (atomic_sub_return(bias, &shinfo->dataref))
/linux-master/drivers/net/phy/
H A Dmediatek-ge-soc.c412 int bias[16] = {}; local
427 memcpy(bias, (const void *)vals_9461, sizeof(bias));
430 memcpy(bias, (const void *)vals_9481, sizeof(bias));
436 if (buf[i >> 2] + bias[i] > 63) {
438 bias[i] = 0;
443 MTK_PHY_DA_TX_I2MPB_A_GBE_MASK, (buf[0] + bias[0]) << 10);
445 MTK_PHY_DA_TX_I2MPB_A_TBT_MASK, buf[0] + bias[1]);
447 MTK_PHY_DA_TX_I2MPB_A_HBT_MASK, (buf[0] + bias[
497 int bias = 0; local
[all...]
/linux-master/drivers/gpu/drm/amd/pm/
H A Damdgpu_pm.c1955 * smartshift(SS2.0) bias level. The value ranges from -100 to 100
1978 int bias = 0; local
1991 r = kstrtoint(buf, 10, &bias);
1995 if (bias > AMDGPU_SMARTSHIFT_MAX_BIAS)
1996 bias = AMDGPU_SMARTSHIFT_MAX_BIAS;
1997 else if (bias < AMDGPU_SMARTSHIFT_MIN_BIAS)
1998 bias = AMDGPU_SMARTSHIFT_MIN_BIAS;
2000 amdgpu_smartshift_bias = bias;
2003 /* TODO: update bias level with SMU message */
/linux-master/drivers/iio/proximity/
H A Disl29501.c715 int *bias)
721 bias);
725 bias);
848 int bias)
854 bias);
858 bias);
713 isl29501_get_calibbias(struct isl29501_private *isl29501, const struct iio_chan_spec *chan, int *bias) argument
846 isl29501_set_calibbias(struct isl29501_private *isl29501, const struct iio_chan_spec *chan, int bias) argument
/linux-master/drivers/iio/imu/
H A Dadis16480.c475 const struct iio_chan_spec *chan, int bias)
483 if (bias < -0x8000 || bias >= 0x8000)
485 return adis_write_reg_16(&st->adis, reg, bias);
488 return adis_write_reg_32(&st->adis, reg, bias);
497 const struct iio_chan_spec *chan, int *bias)
510 *bias = sign_extend32(val16, 15);
516 *bias = sign_extend32(val32, 31);
474 adis16480_set_calibbias(struct iio_dev *indio_dev, const struct iio_chan_spec *chan, int bias) argument
496 adis16480_get_calibbias(struct iio_dev *indio_dev, const struct iio_chan_spec *chan, int *bias) argument
/linux-master/drivers/scsi/mpt3sas/
H A Dmpt3sas_base.c5530 union ATTO_SAS_ADDRESS bias; local
5558 bias.q = sas_addr.q;
5559 bias.b[7] += ATTO_SAS_ADDR_DEVNAME_BIAS;
5565 bios_pg4->Phy[ix].ReassignmentDeviceName = bias.q;
/linux-master/tools/testing/selftests/gpio/
H A Dgpio-mockup.sh130 bias-none)
200 # Setting the mockup pull using the userspace interface bias settings is
234 set_line bias-none
/linux-master/sound/soc/
H A Dsoc-dapm.c682 * snd_soc_dapm_force_bias_level() - Sets the DAPM bias level
686 * Forces the DAPM bias level to a specific state. It will call the bias level
689 * the normal bias level sequencing, meaning any intermediate states between the
692 * Note that the change in bias level is only temporary and the next time
714 * snd_soc_dapm_set_bias_level - set the bias level for the system
718 * Configure the bias (power) levels for the SoC audio device.
1813 "ASoC: Failed to turn on bias: %d\n", ret);
1824 "ASoC: Failed to prepare bias: %d\n", ret);
1836 /* If we just powered the last thing off drop to standby bias */
1961 enum snd_soc_bias_level bias; local
[all...]
/linux-master/drivers/power/supply/
H A Dds2760_battery.c494 char bias; local
506 * Hence, we use the current offset bias register to compensate
513 bias = (signed char) di->current_raw +
516 dev_dbg(di->dev, "%s: bias = %d\n", __func__, bias);
518 w1_ds2760_write(di->dev, &bias, DS2760_CURRENT_OFFSET_BIAS, 1);
524 di->raw[DS2760_CURRENT_OFFSET_BIAS] = bias;
/linux-master/drivers/pinctrl/renesas/
H A Dsh_pfc.h253 unsigned int bias);
771 unsigned int bias);
775 unsigned int bias);
H A Dcore.c953 const struct pinmux_bias_reg *bias)
960 for (i = 0, bits = 0; i < ARRAY_SIZE(bias->pins); i++)
961 if (bias->pins[i] != SH_PFC_PIN_NONE)
964 if (bias->puen)
965 sh_pfc_check_reg(info->name, bias->puen, bits);
966 if (bias->pud)
967 sh_pfc_check_reg(info->name, bias->pud, bits);
968 for (i = 0; i < ARRAY_SIZE(bias->pins); i++) {
969 pin = sh_pfc_find_pin(info, bias->puen, bias
952 sh_pfc_check_bias_reg(const struct sh_pfc_soc_info *info, const struct pinmux_bias_reg *bias) argument
[all...]
H A Dpinctrl-rzv2m.c491 enum pin_config_param bias; local
501 bias = PIN_CONFIG_BIAS_PULL_DOWN;
504 bias = PIN_CONFIG_BIAS_PULL_UP;
507 bias = PIN_CONFIG_BIAS_DISABLE;
510 if (bias != param)
/linux-master/drivers/gpu/drm/amd/display/dc/hwss/dcn10/
H A Ddcn10_hwseq.c2596 // Override rear plane RGB bias to fix MPO brightness
2621 * Fix is to set RGB bias to 0 on rear plane, top plane
2652 //set scale and bias registers
3739 opt_attr.bias = 0;
/linux-master/drivers/gpu/drm/amd/display/dc/dcn10/
H A Ddcn10_dpp.c496 REG_UPDATE(CURSOR0_FP_SCALE_BIAS, CUR0_FP_BIAS, attr->bias);
/linux-master/drivers/gpu/drm/amd/display/dc/
H A Ddc_hw_types.h599 int bias; member in struct:dpp_cursor_attributes
/linux-master/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/
H A Dphy_n.c20654 u16 bias, cascbias; local
20666 bias = 0x40;
20673 bias = 0x25;
20679 bias = 0x2a;
20690 INTPAG_IMAIN_STAT, bias);
20692 INTPAG_IAUX_STAT, bias);
20710 bias = (pi->bw == WL_CHANSPEC_BW_40) ?
20714 INTPAG_IMAIN_STAT, bias);
20716 INTPAG_IAUX_STAT, bias);
/linux-master/drivers/net/wireless/broadcom/b43/
H A Dphy_n.c1129 u16 bias, cbias; local
1182 bias = 0x40;
1188 bias = 0x25;
1191 bias = 0x2a;
1202 bias);
1205 bias);
1222 bias = b43_is_40mhz(dev) ? 0x40 : 0x20;
1225 bias);
1228 bias);
2716 u16 bias, con local
[all...]
/linux-master/tools/perf/util/
H A Ddebuginfo.c59 dbg->dbg = dwfl_module_getdwarf(dbg->mod, &dbg->bias);
152 elf = dwfl_module_getelf(dbg->mod, &dbg->bias);
H A Ddebuginfo.h17 Dwarf_Addr bias; member in struct:debuginfo
/linux-master/drivers/pinctrl/stm32/
H A Dpinctrl-stm32.c188 u32 bias)
191 bank->pin_backup[offset] |= bias << STM32_GPIO_BKP_PUPD_SHIFT;
995 unsigned offset, u32 bias)
1015 val |= bias << (offset * 2);
1021 stm32_gpio_backup_bias(bank, offset, bias);
1191 u32 mode, alt, drive, speed, bias; local
1213 bias = stm32_pconf_get_bias(bank, offset);
1223 biasing[bias]);
1234 biasing[bias],
1249 biasing[bias],
187 stm32_gpio_backup_bias(struct stm32_gpio_bank *bank, u32 offset, u32 bias) argument
994 stm32_pconf_set_bias(struct stm32_gpio_bank *bank, unsigned offset, u32 bias) argument
[all...]
/linux-master/drivers/pinctrl/
H A Dpinctrl-ingenic.c3830 unsigned int bias, reg; local
3847 X1830_GPIO_PEL, &bias);
3850 X1830_GPIO_PEH, &bias);
3852 bias = (bias >> idxh) & (GPIO_PULL_UP | GPIO_PULL_DOWN);
3854 pullup = (bias == GPIO_PULL_UP) && (jzpc->info->pull_ups[offt] & BIT(idx));
3855 pulldown = (bias == GPIO_PULL_DOWN) && (jzpc->info->pull_downs[offt] & BIT(idx));
3919 unsigned int pin, unsigned int bias)
3922 switch (bias) {
3949 REG_SET(X1830_GPIO_PEL), bias << idx
3918 ingenic_set_bias(struct ingenic_pinctrl *jzpc, unsigned int pin, unsigned int bias) argument
[all...]
/linux-master/drivers/iio/imu/inv_icm42600/
H A Dinv_icm42600_gyro.c363 * Calibration bias values, IIO range format int + nano.
378 int32_t bias; local
441 bias = div_s64(val64, 2048 * 180);
442 *val = bias / 1000000000L;
443 *val2 = bias % 1000000000L;
H A Dinv_icm42600_accel.c351 * Calibration bias values, IIO range format int + micro.
366 int32_t bias; local
429 bias = div_s64(val64, 10000L);
430 *val = bias / 1000000L;
431 *val2 = bias % 1000000L;
/linux-master/sound/soc/codecs/
H A Dwm5100.c1984 (mode->bias << WM5100_ACCDET_BIAS_SRC_SHIFT) |

Completed in 702 milliseconds

123