Home
last modified time | relevance | path

Searched refs:bval (Results 1 – 16 of 16) sorted by relevance

/linux-6.6.21/drivers/gpio/
Dgpio-loongson-64bit.c47 u8 bval = input ? 1 : 0; in loongson_commit_direction() local
49 writeb(bval, lgpio->reg_base + lgpio->chip_data->conf_offset + pin); in loongson_commit_direction()
54 u8 bval = high ? 1 : 0; in loongson_commit_level() local
56 writeb(bval, lgpio->reg_base + lgpio->chip_data->out_offset + pin); in loongson_commit_level()
86 u8 bval; in loongson_gpio_get() local
90 bval = readb(lgpio->reg_base + lgpio->chip_data->in_offset + pin); in loongson_gpio_get()
91 val = bval & 1; in loongson_gpio_get()
98 u8 bval; in loongson_gpio_get_direction() local
101 bval = readb(lgpio->reg_base + lgpio->chip_data->conf_offset + pin); in loongson_gpio_get_direction()
102 if (bval & 1) in loongson_gpio_get_direction()
Dgpio-tegra.c164 unsigned int bval = BIT(GPIO_BIT(offset)); in tegra_gpio_get() local
167 if (tegra_gpio_readl(tgi, GPIO_OE(tgi, offset)) & bval) in tegra_gpio_get()
168 return !!(tegra_gpio_readl(tgi, GPIO_OUT(tgi, offset)) & bval); in tegra_gpio_get()
170 return !!(tegra_gpio_readl(tgi, GPIO_IN(tgi, offset)) & bval); in tegra_gpio_get()
/linux-6.6.21/lib/
Dbtree.c153 static void *bval(struct btree_geo *geo, unsigned long *node, int n) in bval() function
217 node = bval(geo, node, 0); in btree_last()
220 return bval(geo, node, 0); in btree_last()
256 node = bval(geo, node, i); in btree_lookup_node()
275 return bval(geo, node, i); in btree_lookup()
331 node = bval(geo, node, i); in btree_get_prev()
342 if (bval(geo, node, i)) { in btree_get_prev()
344 return bval(geo, node, i); in btree_get_prev()
376 if (!bval(geo, node, i)) in getfill()
395 if ((i == geo->no_pairs) || !bval(geo, node, i)) { in find_level()
[all …]
/linux-6.6.21/drivers/scsi/
Dam53c974.c287 u8 carry_flag = 1, j = 0x80, bval; in dc390_eeprom_prepare_read() local
293 bval = 0xc0; in dc390_eeprom_prepare_read()
295 bval = 0x80; in dc390_eeprom_prepare_read()
298 pci_write_config_byte(pdev, 0x80, bval); in dc390_eeprom_prepare_read()
312 u8 bval; in dc390_eeprom_get_data() local
321 pci_read_config_byte(pdev, 0x00, &bval); in dc390_eeprom_get_data()
323 if (bval == 0x22) in dc390_eeprom_get_data()
Ddc395x.c2248 u8 bval; in data_io_transfer() local
2413 bval = (io_dir & DMACMD_DIR) ? SCMD_FIFO_IN : SCMD_FIFO_OUT; in data_io_transfer()
2414 DC395x_write8(acb, TRM_S1040_SCSI_COMMAND, bval); in data_io_transfer()
2563 u8 bval; in msgin_set_sync() local
2582 bval = 0; in msgin_set_sync()
2583 while (bval < 7 && (srb->msgin_buf[3] > clock_period[bval] in msgin_set_sync()
2585 clock_period[bval])) in msgin_set_sync()
2586 bval++; in msgin_set_sync()
2587 if (srb->msgin_buf[3] < clock_period[bval]) in msgin_set_sync()
2590 clock_period[bval] << 2); in msgin_set_sync()
[all …]
Desp_scsi.c1350 u8 bval = esp_read8(ESP_FDATA); in esp_data_bytes_sent() local
1353 ent->sense_ptr[bytes_sent] = bval; in esp_data_bytes_sent()
1361 *(ptr + offset) = bval; in esp_data_bytes_sent()
/linux-6.6.21/tools/perf/scripts/python/
Dcompaction-times.py55 def __init__(self, aval, bval, alabel = None, blabel = None): argument
59 self.bval = bval
63 self.bval += rhs.bval
67 return "%s=%d %s=%d" % (self.alabel, self.aval, self.blabel, self.bval)
/linux-6.6.21/drivers/iio/chemical/
Dscd4x.c293 __be16 bval; in scd4x_wait_meas_poll() local
296 ret = scd4x_read(state, CMD_GET_DATA_READY, &bval, sizeof(bval)); in scd4x_wait_meas_poll()
299 val = be16_to_cpu(bval); in scd4x_wait_meas_poll()
467 __be16 bval; in calibration_auto_enable_show() local
471 ret = scd4x_read(state, CMD_GET_ASC, &bval, sizeof(bval)); in calibration_auto_enable_show()
478 val = (be16_to_cpu(bval) & SCD4X_READY_MASK) ? 1 : 0; in calibration_auto_enable_show()
/linux-6.6.21/sound/pci/ali5451/
Dali5451.c633 u8 bval, R1 = 0, R2; in snd_ali_detect_spdif_rate() local
635 bval = inb(ALI_REG(codec, ALI_SPDIF_CTRL + 1)); in snd_ali_detect_spdif_rate()
636 bval |= 0x1F; in snd_ali_detect_spdif_rate()
637 outb(bval, ALI_REG(codec, ALI_SPDIF_CTRL + 1)); in snd_ali_detect_spdif_rate()
642 bval = inb(ALI_REG(codec, ALI_SPDIF_CTRL + 1)); in snd_ali_detect_spdif_rate()
643 R1 = bval & 0x1F; in snd_ali_detect_spdif_rate()
653 bval = inb(ALI_REG(codec,ALI_SPDIF_CTRL + 1)); in snd_ali_detect_spdif_rate()
654 R2 = bval & 0x1F; in snd_ali_detect_spdif_rate()
672 bval = inb(ALI_REG(codec, ALI_SPDIF_CS + 3)) & 0xf0; in snd_ali_detect_spdif_rate()
673 outb(bval | 0x02, ALI_REG(codec, ALI_SPDIF_CS + 3)); in snd_ali_detect_spdif_rate()
[all …]
/linux-6.6.21/drivers/infiniband/hw/qib/
Dqib_qsfp.c257 u8 bval; in qsfp_cks() local
261 ret = qsfp_read(ppd, first, &bval, 1); in qsfp_cks()
264 cks += bval; in qsfp_cks()
/linux-6.6.21/drivers/media/tuners/
Dxc5000.c276 u8 bval[2] = { 0, 0 }; in xc5000_readreg() local
281 .flags = I2C_M_RD, .buf = &bval[0], .len = 2 }, in xc5000_readreg()
289 *val = (bval[0] << 8) | bval[1]; in xc5000_readreg()
Dxc4000.c532 u8 bval[2] = { 0, 0 }; in xc4000_readreg() local
537 .flags = I2C_M_RD, .buf = &bval[0], .len = 2 }, in xc4000_readreg()
545 *val = (bval[0] << 8) | bval[1]; in xc4000_readreg()
/linux-6.6.21/drivers/gpu/drm/udl/
Dudl_modeset.c430 int bval = (i + block * EDID_LENGTH) << 8; in udl_get_edid_block() local
433 0x02, (0x80 | (0x02 << 5)), bval, in udl_get_edid_block()
/linux-6.6.21/drivers/irqchip/
Dirq-gic.c777 static void rmw_writeb(u8 bval, void __iomem *addr) in rmw_writeb() argument
790 val |= bval << shift; in rmw_writeb()
/linux-6.6.21/drivers/gpu/drm/gma500/
Dpsb_intel_sdvo.c234 u32 bval = val, cval = val; in psb_intel_sdvo_write_sdvox() local
242 bval = REG_READ_WITH_AUX(SDVOB, j); in psb_intel_sdvo_write_sdvox()
250 REG_WRITE_WITH_AUX(SDVOB, bval, j); in psb_intel_sdvo_write_sdvox()
/linux-6.6.21/drivers/gpu/drm/i915/display/
Dintel_sdvo.c219 u32 bval = val, cval = val; in intel_sdvo_write_sdvox() local
239 bval = intel_de_read(dev_priv, GEN3_SDVOB); in intel_sdvo_write_sdvox()
247 intel_de_write(dev_priv, GEN3_SDVOB, bval); in intel_sdvo_write_sdvox()