/drivers/rtc/ |
D | rtc-ds1685.c | 133 (rtc->read(rtc, RTC_CTRL_A) & ~(RTC_CTRL_A_DV0))); in ds1685_rtc_switch_to_bank0() 144 (rtc->read(rtc, RTC_CTRL_A) | RTC_CTRL_A_DV0)); in ds1685_rtc_switch_to_bank1() 165 (rtc->read(rtc, RTC_CTRL_B) | RTC_CTRL_B_SET)); in ds1685_rtc_begin_data_access() 168 while (rtc->read(rtc, RTC_EXT_CTRL_4A) & RTC_CTRL_4A_INCR) in ds1685_rtc_begin_data_access() 191 (rtc->read(rtc, RTC_CTRL_B) & ~(RTC_CTRL_B_SET))); in ds1685_rtc_end_data_access() 247 ssn[0] = rtc->read(rtc, RTC_BANK1_SSN_MODEL); in ds1685_rtc_get_ssn() 248 ssn[1] = rtc->read(rtc, RTC_BANK1_SSN_BYTE_1); in ds1685_rtc_get_ssn() 249 ssn[2] = rtc->read(rtc, RTC_BANK1_SSN_BYTE_2); in ds1685_rtc_get_ssn() 250 ssn[3] = rtc->read(rtc, RTC_BANK1_SSN_BYTE_3); in ds1685_rtc_get_ssn() 251 ssn[4] = rtc->read(rtc, RTC_BANK1_SSN_BYTE_4); in ds1685_rtc_get_ssn() [all …]
|
D | rtc-bq4802.c | 25 u8 (*read)(struct bq4802 *, int); member 59 val = p->read(p, 0x0e); in bq4802_read_time() 62 tm->tm_sec = p->read(p, 0x00); in bq4802_read_time() 63 tm->tm_min = p->read(p, 0x02); in bq4802_read_time() 64 tm->tm_hour = p->read(p, 0x04); in bq4802_read_time() 65 tm->tm_mday = p->read(p, 0x06); in bq4802_read_time() 66 tm->tm_mon = p->read(p, 0x09); in bq4802_read_time() 67 tm->tm_year = p->read(p, 0x0a); in bq4802_read_time() 68 tm->tm_wday = p->read(p, 0x08); in bq4802_read_time() 69 century = p->read(p, 0x0f); in bq4802_read_time() [all …]
|
/drivers/video/fbdev/core/ |
D | fbcvt.c | 217 int cnt = 255, offset = 0, read = 0; in fb_cvt_print_name() local 227 read = snprintf(buf+offset, cnt, "fbcvt: %dx%d@%d: CVT Name - ", in fb_cvt_print_name() 229 offset += read; in fb_cvt_print_name() 230 cnt -= read; in fb_cvt_print_name() 237 read = snprintf(buf+offset, cnt, "%d", pixcount); in fb_cvt_print_name() 238 cnt -= read; in fb_cvt_print_name() 239 offset += read; in fb_cvt_print_name() 242 read = snprintf(buf+offset, cnt, ".%03dM", pixcount_mod); in fb_cvt_print_name() 243 cnt -= read; in fb_cvt_print_name() 244 offset += read; in fb_cvt_print_name() [all …]
|
/drivers/staging/vc04_services/interface/vchiq_arm/ |
D | vchiq_util.c | 47 queue->read = 0; in vchiu_queue_init() 69 return queue->read == queue->write; in vchiu_queue_is_empty() 74 return queue->write == queue->read + queue->size; in vchiu_queue_is_full() 82 while (queue->write == queue->read + queue->size) { in vchiu_queue_push() 108 while (queue->write == queue->read) { in vchiu_queue_peek() 121 return queue->storage[queue->read & (queue->size - 1)]; in vchiu_queue_peek() 128 while (queue->write == queue->read) { in vchiu_queue_pop() 139 header = queue->storage[queue->read & (queue->size - 1)]; in vchiu_queue_pop() 147 queue->read++; in vchiu_queue_pop()
|
/drivers/isdn/hardware/eicon/ |
D | dqueue.c | 29 q->read = q->write = q->count = q->segment_pending = 0; in diva_data_q_init() 52 q->read = q->write = q->count = q->segment_pending = 0; in diva_data_q_finit() 90 return (q->data[q->read]); in diva_data_q_get_segment4read() 97 return (q->length[q->read]); in diva_data_q_get_segment_length() 103 q->length[q->read] = 0; in diva_data_q_ack_segment4read() 105 q->read++; in diva_data_q_ack_segment4read() 106 if (q->read >= q->segments) { in diva_data_q_ack_segment4read() 107 q->read = 0; in diva_data_q_ack_segment4read()
|
/drivers/mtd/tests/ |
D | subpagetest.c | 132 size_t read; in verify_eraseblock() local 138 err = mtd_read(mtd, addr, subpgsize, &read, readbuf); in verify_eraseblock() 139 if (unlikely(err || read != subpgsize)) { in verify_eraseblock() 140 if (mtd_is_bitflip(err) && read == subpgsize) { in verify_eraseblock() 165 err = mtd_read(mtd, addr, subpgsize, &read, readbuf); in verify_eraseblock() 166 if (unlikely(err || read != subpgsize)) { in verify_eraseblock() 167 if (mtd_is_bitflip(err) && read == subpgsize) { in verify_eraseblock() 193 size_t read; in verify_eraseblock2() local 202 err = mtd_read(mtd, addr, subpgsize * k, &read, readbuf); in verify_eraseblock2() 203 if (unlikely(err || read != subpgsize * k)) { in verify_eraseblock2() [all …]
|
D | torturetest.c | 85 static void report_corrupt(unsigned char *read, unsigned char *written); 104 size_t read; in check_eraseblock() local 114 err = mtd_read(mtd, addr, len, &read, check_buf); in check_eraseblock() 120 "read %zd\n", err, ebnum, read); in check_eraseblock() 124 if (read != len) { in check_eraseblock() 127 len, ebnum, read); in check_eraseblock() 378 static void print_bufs(unsigned char *read, unsigned char *written, int start, 385 static void report_corrupt(unsigned char *read, unsigned char *written) in report_corrupt() argument 397 if (countdiffs(written, read, i, pgsize, &bytes, in report_corrupt() 409 first = countdiffs(written, read, i, pgsize, &bytes, in report_corrupt() [all …]
|
/drivers/gpio/ |
D | gpio-lp3943.c | 90 u8 addr, read; in lp3943_get_gpio_in_status() local 105 err = lp3943_read_byte(lp3943_gpio->lp3943, addr, &read); in lp3943_get_gpio_in_status() 109 return !!(read & BIT(offset)); in lp3943_get_gpio_in_status() 117 u8 read; in lp3943_get_gpio_out_status() local 120 err = lp3943_read_byte(lp3943, mux[offset].reg, &read); in lp3943_get_gpio_out_status() 124 read = (read & mux[offset].mask) >> mux[offset].shift; in lp3943_get_gpio_out_status() 126 if (read == LP3943_GPIO_OUT_HIGH) in lp3943_get_gpio_out_status() 128 else if (read == LP3943_GPIO_OUT_LOW) in lp3943_get_gpio_out_status()
|
/drivers/xen/xenbus/ |
D | xenbus_comms.c | 224 unsigned int read; in process_msg() member 233 state.read = 0; in process_msg() 254 if (state.read != sizeof(state.msg)) { in process_msg() 255 err = xb_read((void *)&state.msg + state.read, in process_msg() 256 sizeof(state.msg) - state.read); in process_msg() 259 state.read += err; in process_msg() 260 if (state.read != sizeof(state.msg)) in process_msg() 281 state.read = 0; in process_msg() 284 err = xb_read(state.body + state.read, state.msg.len - state.read); in process_msg() 288 state.read += err; in process_msg() [all …]
|
/drivers/xen/xen-pciback/ |
D | conf_space_capability.c | 28 .u.w.read = xen_pcibk_read_config_word, 82 .u.w.read = xen_pcibk_read_config_word, 88 .u.dw.read = xen_pcibk_read_config_dword, 170 .u.w.read = pm_caps_read, 176 .u.w.read = xen_pcibk_read_config_word, 182 .u.b.read = xen_pcibk_read_config_byte, 187 .u.b.read = xen_pcibk_read_config_byte,
|
D | conf_space_header.c | 312 .u.w.read = xen_pcibk_read_vendor, 317 .u.w.read = xen_pcibk_read_device, 324 .u.w.read = command_read, 330 .u.b.read = interrupt_read, 335 .u.b.read = xen_pcibk_read_config_byte, 341 .u.b.read = xen_pcibk_read_config_byte, 347 .u.b.read = xen_pcibk_read_config_byte, 352 .u.b.read = xen_pcibk_read_config_byte, 365 .u.dw.read = bar_read, \ 376 .u.dw.read = bar_read, \
|
D | conf_space.c | 32 DEFINE_PCI_CONFIG(read, byte, u8 *) in DEFINE_PCI_CONFIG() argument 33 DEFINE_PCI_CONFIG(read, word, u16 *) in DEFINE_PCI_CONFIG() 34 DEFINE_PCI_CONFIG(read, dword, u32 *) in DEFINE_PCI_CONFIG() 51 if (field->u.b.read) in DEFINE_PCI_CONFIG() 52 ret = field->u.b.read(dev, offset, (u8 *) value, in DEFINE_PCI_CONFIG() 56 if (field->u.w.read) in DEFINE_PCI_CONFIG() 57 ret = field->u.w.read(dev, offset, (u16 *) value, in DEFINE_PCI_CONFIG() 61 if (field->u.dw.read) in DEFINE_PCI_CONFIG() 62 ret = field->u.dw.read(dev, offset, value, entry->data); in DEFINE_PCI_CONFIG()
|
/drivers/iio/pressure/ |
D | mpl115.c | 61 ret = data->ops->read(data->dev, MPL115_PADC); in mpl115_comp_pressure() 66 ret = data->ops->read(data->dev, MPL115_TADC); in mpl115_comp_pressure() 94 ret = data->ops->read(data->dev, MPL115_TADC); in mpl115_read_temp() 177 ret = data->ops->read(data->dev, MPL115_A0); in mpl115_probe() 181 ret = data->ops->read(data->dev, MPL115_B1); in mpl115_probe() 185 ret = data->ops->read(data->dev, MPL115_B2); in mpl115_probe() 189 ret = data->ops->read(data->dev, MPL115_C12); in mpl115_probe()
|
/drivers/clocksource/ |
D | acpi_pm.c | 69 .read = acpi_pm_read, 91 clocksource_acpi_pm.read = acpi_pm_read_slow; in acpi_pm_need_workaround() 152 value1 = clocksource_acpi_pm.read(&clocksource_acpi_pm); in verify_pmtmr_rate() 154 value2 = clocksource_acpi_pm.read(&clocksource_acpi_pm); in verify_pmtmr_rate() 187 value1 = clocksource_acpi_pm.read(&clocksource_acpi_pm); in init_acpi_pm_clocksource() 189 value2 = clocksource_acpi_pm.read(&clocksource_acpi_pm); in init_acpi_pm_clocksource()
|
/drivers/crypto/ |
D | exynos-rng.c | 159 unsigned int *read) in exynos_rng_get_random() argument 176 *read = exynos_rng_copy_random(rng, dst, dlen); in exynos_rng_get_random() 187 unsigned int read = 0; in exynos_rng_reseed() local 193 if (exynos_rng_get_random(rng, seed, sizeof(seed), &read)) in exynos_rng_reseed() 196 exynos_rng_set_seed(rng, seed, read); in exynos_rng_reseed() 205 unsigned int read = 0; in exynos_rng_generate() local 213 ret = exynos_rng_get_random(rng, dst, dlen, &read); in exynos_rng_generate() 217 dlen -= read; in exynos_rng_generate() 218 dst += read; in exynos_rng_generate()
|
/drivers/char/ |
D | mem.c | 115 ssize_t read, sz; in read_mem() local 125 read = 0; in read_mem() 136 read += sz; in read_mem() 184 read += sz; in read_mem() 190 *ppos += read; in read_mem() 191 return read; in read_mem() 436 ssize_t low_count, read, sz; in read_kmem() local 440 read = 0; in read_kmem() 454 read += sz; in read_kmem() 475 read += sz; in read_kmem() [all …]
|
/drivers/char/hw_random/ |
D | amd-rng.c | 65 size_t read = 0; in amd_rng_read() local 74 while (read < max) { in amd_rng_read() 80 return read; in amd_rng_read() 87 read += 4; in amd_rng_read() 91 return read; in amd_rng_read() 124 .read = amd_rng_read,
|
/drivers/isdn/gigaset/ |
D | isocdata.c | 26 iwb->read = 0; in gigaset_isowbuf_init() 40 int read, write, freebytes; in isowbuf_freebytes() local 42 read = iwb->read; in isowbuf_freebytes() 44 freebytes = read - write; in isowbuf_freebytes() 48 } else if (read < BAS_OUTBUFPAD) { in isowbuf_freebytes() 136 int read, write, limit, src, dst; in gigaset_isowbuf_getbytes() local 139 read = iwb->nextread; in gigaset_isowbuf_getbytes() 141 if (likely(read == write)) { in gigaset_isowbuf_getbytes() 143 return read < BAS_OUTBUFPAD ? in gigaset_isowbuf_getbytes() 144 BAS_OUTBUFSIZE : read - BAS_OUTBUFPAD; in gigaset_isowbuf_getbytes() [all …]
|
/drivers/net/ethernet/intel/igb/ |
D | e1000_nvm.c | 519 ret_val = hw->nvm.ops.read(hw, NVM_PBA_OFFSET_0, 1, &nvm_data); in igb_read_part_string() 525 ret_val = hw->nvm.ops.read(hw, NVM_PBA_OFFSET_1, 1, &pointer); in igb_read_part_string() 570 ret_val = hw->nvm.ops.read(hw, pointer, 1, &length); in igb_read_part_string() 593 ret_val = hw->nvm.ops.read(hw, pointer + offset, 1, &nvm_data); in igb_read_part_string() 650 ret_val = hw->nvm.ops.read(hw, i, 1, &nvm_data); in igb_validate_nvm_checksum() 683 ret_val = hw->nvm.ops.read(hw, i, 1, &nvm_data); in igb_update_nvm_checksum() 717 hw->nvm.ops.read(hw, NVM_ETRACK_HIWORD, 1, &etrack_test); in igb_get_fw_version() 729 hw->nvm.ops.read(hw, NVM_VERSION, 1, &fw_version); in igb_get_fw_version() 746 hw->nvm.ops.read(hw, NVM_COMB_VER_PTR, 1, &comb_offset); in igb_get_fw_version() 750 hw->nvm.ops.read(hw, (NVM_COMB_VER_OFF + comb_offset in igb_get_fw_version() [all …]
|
/drivers/soc/tegra/fuse/ |
D | fuse-tegra30.c | 98 fuse->read = tegra30_fuse_read; in tegra30_fuse_init() 108 .read = tegra30_fuse_read, 122 .read = tegra30_fuse_read, 136 .read = tegra30_fuse_read, 150 .read = tegra30_fuse_read,
|
/drivers/staging/rtl8723bs/os_dep/ |
D | osdep_service.c | 126 if (!fp->f_op || !fp->f_op->read) in readFile() 130 rlen =fp->f_op->read(fp, (char __force __user *)buf+sum, len-sum, &fp->f_pos); in readFile() 409 return (cbuf->write == cbuf->read-1)? true : false; in rtw_cbuf_full() 420 return (cbuf->write == cbuf->read)? true : false; in rtw_cbuf_empty() 456 DBG_871X("%s on %u\n", __func__, cbuf->read); in rtw_cbuf_pop() 457 buf = cbuf->bufs[cbuf->read]; in rtw_cbuf_pop() 458 cbuf->read = (cbuf->read+1)%cbuf->size; in rtw_cbuf_pop() 476 cbuf->write = cbuf->read = 0; in rtw_cbuf_alloc()
|
/drivers/gpu/drm/i915/selftests/ |
D | i915_gem_coherency.c | 265 const struct igt_coherency_mode *read, *write, *over; in igt_gem_coherency() local 300 for (read = igt_coherency_mode; read->name; read++) { in igt_gem_coherency() 301 if (!read->get) in igt_gem_coherency() 304 if (!read->valid(i915)) in igt_gem_coherency() 339 err = read->get(obj, offsets[n], &found); in igt_gem_coherency() 342 n, count, read->name, err); in igt_gem_coherency() 350 read->name, found, in igt_gem_coherency()
|
/drivers/misc/eeprom/ |
D | Kconfig | 8 Enable this driver to get read/write support to most I2C EEPROMs 20 as read-only won't help recover from this. Also, if your chip 36 Enable this driver to get read/write support to most SPI EEPROMs, 47 If you say yes here you get read-only access to the EEPROM data 58 If you say yes here you get read-only support for the user EEPROM of 72 The driver supports both read as well as write commands. 83 supports both read and write commands and also the command to 98 EEPROM allowing to read/write the configuration data or to 107 Enable this driver to get read/write access to EEPROM / CSRs
|
/drivers/crypto/inside-secure/ |
D | safexcel_ring.c | 28 cdr->read = cdr->base; in safexcel_init_ring_descriptors() 38 rdr->read = rdr->base; in safexcel_init_ring_descriptors() 67 void *ptr = ring->read; in safexcel_ring_next_rptr() 72 ring->read += ring->offset; in safexcel_ring_next_rptr() 73 if (ring->read == ring->base_end) in safexcel_ring_next_rptr() 74 ring->read = ring->base; in safexcel_ring_next_rptr()
|
/drivers/staging/comedi/drivers/ |
D | serial2002.c | 575 struct serial_data read; in serial2002_di_insn_read() local 579 read = serial2002_read(devpriv->tty, 1000); in serial2002_di_insn_read() 580 if (read.kind != is_digital || read.index == chan) in serial2002_di_insn_read() 583 data[n] = read.value; in serial2002_di_insn_read() 620 struct serial_data read; in serial2002_ai_insn_read() local 624 read = serial2002_read(devpriv->tty, 1000); in serial2002_ai_insn_read() 625 if (read.kind != is_channel || read.index == chan) in serial2002_ai_insn_read() 628 data[n] = read.value; in serial2002_ai_insn_read() 681 struct serial_data read; in serial2002_encoder_insn_read() local 685 read = serial2002_read(devpriv->tty, 1000); in serial2002_encoder_insn_read() [all …]
|