/drivers/rtc/ |
D | rtc-ds1685.c | 161 rtc->write(rtc, RTC_CTRL_A, in ds1685_rtc_switch_to_bank0() 172 rtc->write(rtc, RTC_CTRL_A, in ds1685_rtc_switch_to_bank1() 193 rtc->write(rtc, RTC_CTRL_B, in ds1685_rtc_begin_data_access() 219 rtc->write(rtc, RTC_CTRL_B, in ds1685_rtc_end_data_access() 358 rtc->write(rtc, RTC_CTRL_B, ctrlb); in ds1685_rtc_set_time() 359 rtc->write(rtc, RTC_SECS, seconds); in ds1685_rtc_set_time() 360 rtc->write(rtc, RTC_MINS, minutes); in ds1685_rtc_set_time() 361 rtc->write(rtc, RTC_HRS, hours); in ds1685_rtc_set_time() 362 rtc->write(rtc, RTC_WDAY, wday); in ds1685_rtc_set_time() 363 rtc->write(rtc, RTC_MDAY, mday); in ds1685_rtc_set_time() [all …]
|
D | rtc-bq4802.c | 27 void (*write)(struct bq4802 *, int, u8); member 60 p->write(p, 0xe, val | 0x08); in bq4802_read_time() 71 p->write(p, 0x0e, val); in bq4802_read_time() 120 p->write(p, 0x0e, val | 0x08); in bq4802_set_time() 122 p->write(p, 0x00, sec); in bq4802_set_time() 123 p->write(p, 0x02, min); in bq4802_set_time() 124 p->write(p, 0x04, hrs); in bq4802_set_time() 125 p->write(p, 0x06, day); in bq4802_set_time() 126 p->write(p, 0x09, mon); in bq4802_set_time() 127 p->write(p, 0x0a, yrs); in bq4802_set_time() [all …]
|
/drivers/iio/dac/ |
D | ad5446.c | 64 int (*write)(struct ad5446_state *st, unsigned val); member 131 ret = st->chip_info->write(st, val); in ad5446_write_dac_powerdown() 141 .write = ad5446_write_dac_powerdown, 209 ret = st->chip_info->write(st, val); in ad5446_write_raw() 351 .write = ad5446_write, 355 .write = ad5446_write, 359 .write = ad5446_write, 363 .write = ad5446_write, 367 .write = ad5446_write, 371 .write = ad5446_write, [all …]
|
/drivers/crypto/inside-secure/ |
D | safexcel_ring.c | 28 cdr->write = cdr->base; in safexcel_init_ring_descriptors() 65 rdr->write = rdr->base; in safexcel_init_ring_descriptors() 82 void *ptr = ring->write; in safexcel_ring_next_cwptr() 87 if ((ring->write == ring->read - ring->offset) || in safexcel_ring_next_cwptr() 88 (ring->read == ring->base && ring->write == ring->base_end)) in safexcel_ring_next_cwptr() 91 if (ring->write == ring->base_end) { in safexcel_ring_next_cwptr() 92 ring->write = ring->base; in safexcel_ring_next_cwptr() 95 ring->write += ring->offset; in safexcel_ring_next_cwptr() 106 void *ptr = ring->write; in safexcel_ring_next_rwptr() 109 *rtoken = ring->write + ring->shoffset; in safexcel_ring_next_rwptr() [all …]
|
/drivers/net/ethernet/intel/igc/ |
D | igc_diag.c | 36 u32 mask, u32 write) in reg_pattern_test() argument 46 wr32(reg, test_pattern[pat] & write); in reg_pattern_test() 48 if (val != (test_pattern[pat] & write & mask)) { in reg_pattern_test() 51 reg, val, test_pattern[pat] & write & mask); in reg_pattern_test() 62 u32 mask, u32 write) in reg_set_and_check() argument 68 wr32(reg, write & mask); in reg_set_and_check() 70 if ((write & mask) != (val & mask)) { in reg_set_and_check() 73 reg, (val & mask), (write & mask)); in reg_set_and_check() 119 test->write); in igc_reg_test() 125 test->write); in igc_reg_test() [all …]
|
/drivers/comedi/drivers/ni_routing/tools/ |
D | convert_csv_to_c.py | 48 sys.stderr.write('Invalid register format: {}\n'.format(repr(value))) 49 sys.stderr.write( 259 f.write('\n'.join(s_chunks)) 260 f.write('\n') 263 f.write('# This is the segment that should be included in comedi/drivers/Makefile\n') 264 f.write('ni_routing-objs\t\t\t\t+= \\\n') 265 f.write('\n'.join(objs)) 266 f.write('\n') 270 f.write(self.extern_header.format( 285 f.write( self.to_listinit() ) [all …]
|
/drivers/mtd/spi-nor/ |
D | Kconfig | 28 prompt "Software write protection at boot" 34 This option disables the software write protection on any SPI 40 Don't use this if you intent to use the software write protection 47 power-up or a reset the flash is software write protected by 50 This option disables the software write protection for these kind 52 which have non-volatile write protection bits. 54 If the software write protection will be disabled depending on 61 bool "Keep software write protection as is" 63 If you select this option the software write protection of any 64 SPI flashes will not be changed. If your flash is software write [all …]
|
/drivers/ptp/ |
D | ptp_qoriq.c | 47 ptp_qoriq->write(®s->ctrl_regs->tmr_cnt_l, lo); in tmr_cnt_write() 48 ptp_qoriq->write(®s->ctrl_regs->tmr_cnt_h, hi); in tmr_cnt_write() 63 ptp_qoriq->write(®s->alarm_regs->tmr_alarm1_l, lo); in set_alarm() 64 ptp_qoriq->write(®s->alarm_regs->tmr_alarm1_h, hi); in set_alarm() 73 ptp_qoriq->write(®s->fiper_regs->tmr_fiper1, ptp_qoriq->tmr_fiper1); in set_fipers() 74 ptp_qoriq->write(®s->fiper_regs->tmr_fiper2, ptp_qoriq->tmr_fiper2); in set_fipers() 77 ptp_qoriq->write(®s->fiper_regs->tmr_fiper3, in set_fipers() 166 ptp_qoriq->write(®s->ctrl_regs->tmr_tevent, ack); in ptp_qoriq_isr() 202 ptp_qoriq->write(®s->ctrl_regs->tmr_add, tmr_add); in ptp_qoriq_adjfine() 302 ptp_qoriq->write(®s->ctrl_regs->tmr_tevent, bit); in ptp_qoriq_enable() [all …]
|
/drivers/scsi/ |
D | zorro_esp.c | 260 u32 esp_count, u32 dma_count, int write, u8 cmd) in zorro_esp_send_blz1230_dma_cmd() argument 272 dma_count, write, cmd); in zorro_esp_send_blz1230_dma_cmd() 280 if (write) in zorro_esp_send_blz1230_dma_cmd() 290 if (write) in zorro_esp_send_blz1230_dma_cmd() 311 u32 esp_count, u32 dma_count, int write, u8 cmd) in zorro_esp_send_blz1230II_dma_cmd() argument 319 dma_count, write, cmd); in zorro_esp_send_blz1230II_dma_cmd() 326 if (write) in zorro_esp_send_blz1230II_dma_cmd() 336 if (write) in zorro_esp_send_blz1230II_dma_cmd() 356 u32 esp_count, u32 dma_count, int write, u8 cmd) in zorro_esp_send_blz2060_dma_cmd() argument 364 dma_count, write, cmd); in zorro_esp_send_blz2060_dma_cmd() [all …]
|
/drivers/net/can/flexcan/ |
D | flexcan-core.c | 500 priv->write(reg_mcr, ®s->mcr); in flexcan_enable_wakeup_irq() 528 priv->write(reg_mcr, ®s->mcr); in flexcan_enter_stop_mode() 561 priv->write(reg_mcr, ®s->mcr); in flexcan_exit_stop_mode() 571 priv->write(reg_ctrl, ®s->ctrl); in flexcan_error_irq_enable() 579 priv->write(reg_ctrl, ®s->ctrl); in flexcan_error_irq_disable() 630 priv->write(reg, ®s->mcr); in flexcan_chip_enable() 642 priv->write(reg, ®s->mcr); in flexcan_chip_disable() 661 priv->write(reg, ®s->mcr); in flexcan_chip_freeze() 680 priv->write(reg, ®s->mcr); in flexcan_chip_unfreeze() 696 priv->write(FLEXCAN_MCR_SOFTRST, ®s->mcr); in flexcan_chip_softreset() [all …]
|
/drivers/media/radio/ |
D | radio-wl1273.c | 290 r = core->write(core, WL1273_TUNER_MODE_SET, in wl1273_fm_irq_thread_handler() 328 core->write(core, WL1273_INT_MASK_SET, radio->irq_flags); in wl1273_fm_irq_thread_handler() 363 r = core->write(core, WL1273_CHANL_SET, freq / 10); in wl1273_fm_set_tx_freq() 377 r = core->write(core, WL1273_POWER_ENB_SET, 1); in wl1273_fm_set_tx_freq() 418 core->write(core, WL1273_INT_MASK_SET, radio->irq_flags); in wl1273_fm_set_rx_freq() 425 r = core->write(core, WL1273_FREQ_SET, f); in wl1273_fm_set_rx_freq() 431 r = core->write(core, WL1273_TUNER_MODE_SET, TUNER_MODE_PRESET); in wl1273_fm_set_rx_freq() 522 core->write(core, WL1273_RESET, 0); in wl1273_fm_upload_firmware_patch() 535 int r = core->write(core, WL1273_POWER_SET, in wl1273_fm_stop() 541 int r = core->write(core, WL1273_PUPD_SET, in wl1273_fm_stop() [all …]
|
/drivers/xen/xen-pciback/ |
D | conf_space_capability.c | 29 .u.w.write = NULL, 83 .u.w.write = vpd_address_write, 89 .u.dw.write = NULL, 177 .u.w.write = pm_ctrl_write, 225 goto write; in msi_msix_flags_write() 250 goto write; in msi_msix_flags_write() 254 write: in msi_msix_flags_write() 264 .u.w.write = msi_msix_flags_write, 275 .u.w.write = msi_msix_flags_write,
|
/drivers/mmc/core/ |
D | sdio_ops.c | 62 static int mmc_io_rw_direct_host(struct mmc_host *host, int write, unsigned fn, in mmc_io_rw_direct_host() argument 76 cmd.arg = write ? 0x80000000 : 0x00000000; in mmc_io_rw_direct_host() 78 cmd.arg |= (write && out) ? 0x08000000 : 0x00000000; in mmc_io_rw_direct_host() 108 int mmc_io_rw_direct(struct mmc_card *card, int write, unsigned fn, in mmc_io_rw_direct() argument 111 return mmc_io_rw_direct_host(card->host, write, fn, addr, in, out); in mmc_io_rw_direct() 114 int mmc_io_rw_extended(struct mmc_card *card, int write, unsigned fn, in mmc_io_rw_extended() argument 136 cmd.arg = write ? 0x80000000 : 0x00000000; in mmc_io_rw_extended() 149 data.flags = write ? MMC_DATA_WRITE : MMC_DATA_READ; in mmc_io_rw_extended()
|
D | mmc_test.c | 211 unsigned dev_addr, unsigned blocks, unsigned blksz, int write) in mmc_test_prepare_mrq() argument 217 mrq->cmd->opcode = write ? in mmc_test_prepare_mrq() 220 mrq->cmd->opcode = write ? in mmc_test_prepare_mrq() 240 mrq->data->flags = write ? MMC_DATA_WRITE : MMC_DATA_READ; in mmc_test_prepare_mrq() 290 u8 *buffer, unsigned addr, unsigned blksz, int write) in mmc_test_buffer_transfer() argument 305 mmc_test_prepare_mrq(test, &mrq, &sg, 1, addr, 1, blksz, write); in mmc_test_buffer_transfer() 626 static int __mmc_test_prepare(struct mmc_test_card *test, int write, int val) in __mmc_test_prepare() argument 634 if (write) in __mmc_test_prepare() 673 struct mmc_request *mrq, int write) in mmc_test_prepare_broken_mrq() argument 679 mrq->cmd->opcode = write ? in mmc_test_prepare_broken_mrq() [all …]
|
/drivers/gpu/drm/amd/display/modules/hdcp/ |
D | hdcp_ddc.c | 209 static enum mod_hdcp_status write(struct mod_hdcp *hdcp, in write() function 345 return write(hdcp, MOD_HDCP_MESSAGE_ID_WRITE_AKSV, in mod_hdcp_write_aksv() 352 return write(hdcp, MOD_HDCP_MESSAGE_ID_WRITE_AINFO, in mod_hdcp_write_ainfo() 359 return write(hdcp, MOD_HDCP_MESSAGE_ID_WRITE_AN, in mod_hdcp_write_an() 534 status = write(hdcp, MOD_HDCP_MESSAGE_ID_WRITE_AKE_INIT, in mod_hdcp_write_ake_init() 538 status = write(hdcp, MOD_HDCP_MESSAGE_ID_WRITE_AKE_INIT, in mod_hdcp_write_ake_init() 549 status = write(hdcp, MOD_HDCP_MESSAGE_ID_WRITE_AKE_NO_STORED_KM, in mod_hdcp_write_no_stored_km() 553 status = write(hdcp, MOD_HDCP_MESSAGE_ID_WRITE_AKE_NO_STORED_KM, in mod_hdcp_write_no_stored_km() 564 status = write(hdcp, MOD_HDCP_MESSAGE_ID_WRITE_AKE_STORED_KM, in mod_hdcp_write_stored_km() 568 status = write(hdcp, MOD_HDCP_MESSAGE_ID_WRITE_AKE_STORED_KM, in mod_hdcp_write_stored_km() [all …]
|
/drivers/gpu/drm/r128/ |
D | r128_drv.h | 488 int write, _nr; unsigned int tail_mask; volatile u32 *ring; 499 write = dev_priv->ring.tail; \ 513 write, dev_priv->ring.tail); \ 514 if (R128_BROKEN_CCE && write < 32) \ 517 write * sizeof(u32)); \ 518 if (((dev_priv->ring.tail + _nr) & tail_mask) != write) \ 522 write, __LINE__); \ 524 dev_priv->ring.tail = write; \ 539 (unsigned int)(x), write); \ 540 ring[write++] = cpu_to_le32(x); \ [all …]
|
/drivers/parport/ |
D | procfs.c | 36 static int do_active_device(struct ctl_table *table, int write, in do_active_device() argument 44 if (write) /* can't happen anyway */ in do_active_device() 73 static int do_autoprobe(struct ctl_table *table, int write, in do_autoprobe() argument 81 if (write) /* permissions stop this */ in do_autoprobe() 116 static int do_hardware_base_addr(struct ctl_table *table, int write, in do_hardware_base_addr() argument 128 if (write) /* permissions prevent this anyway */ in do_hardware_base_addr() 143 static int do_hardware_irq(struct ctl_table *table, int write, in do_hardware_irq() argument 155 if (write) /* permissions prevent this anyway */ in do_hardware_irq() 170 static int do_hardware_dma(struct ctl_table *table, int write, in do_hardware_dma() argument 182 if (write) /* permissions prevent this anyway */ in do_hardware_dma() [all …]
|
/drivers/misc/sgi-gru/ |
D | grufault.c | 178 unsigned long vaddr, int write, in non_atomic_pte_lookup() argument 188 if (get_user_pages(vaddr, 1, write ? FOLL_WRITE : 0, &page, NULL) <= 0) in non_atomic_pte_lookup() 206 int write, unsigned long *paddr, int *pageshift) in atomic_pte_lookup() argument 237 (write && (!pte_write(pte) || !pte_dirty(pte))))) in atomic_pte_lookup() 253 int write, int atomic, unsigned long *gpa, int *pageshift) in gru_vtop() argument 269 ret = atomic_pte_lookup(vma, vaddr, write, &paddr, &ps); in gru_vtop() 273 if (non_atomic_pte_lookup(vma, vaddr, write, &paddr, &ps)) in gru_vtop() 311 unsigned long fault_vaddr, int asid, int write, in gru_preload_tlb() argument 332 ret = gru_vtop(gts, vaddr, write, atomic, &gpa, &pageshift); in gru_preload_tlb() 333 if (ret || tfh_write_only(tfh, gpa, GAA_RAM, vaddr, asid, write, in gru_preload_tlb() [all …]
|
/drivers/md/ |
D | dm-delay.c | 36 struct delay_class write; member 129 if (dc->write.dev) in delay_dtr() 130 dm_put_device(ti, dc->write.dev); in delay_dtr() 202 ret = delay_class_ctr(ti, &dc->write, argv); in delay_ctr() 211 ret = delay_class_ctr(ti, &dc->write, argv + 3); in delay_ctr() 300 c = &dc->write; in delay_map() 322 DMEMIT("%u %u %u", dc->read.ops, dc->write.ops, dc->flush.ops); in delay_status() 329 DMEMIT_DELAY_CLASS(&dc->write); in delay_status() 352 ret = fn(ti, dc->write.dev, dc->write.start, ti->len, data); in delay_iterate_devices()
|
/drivers/misc/ |
D | dw-xdata-pcie.c | 94 static void dw_xdata_start(struct dw_xdata *dw, bool write) in dw_xdata_start() argument 115 if (write) { in dw_xdata_start() 135 write ? "write" : "read"); in dw_xdata_start() 138 static void dw_xdata_perf_meas(struct dw_xdata *dw, u64 *data, bool write) in dw_xdata_perf_meas() argument 140 if (write) { in dw_xdata_perf_meas() 162 static void dw_xdata_perf(struct dw_xdata *dw, u64 *rate, bool write) in dw_xdata_perf() argument 171 dw_xdata_perf_meas(dw, &data[0], write); in dw_xdata_perf() 183 dw_xdata_perf_meas(dw, &data[1], write); in dw_xdata_perf() 198 diff, write ? "write" : "read", *rate); in dw_xdata_perf() 241 static DEVICE_ATTR_RW(write);
|
/drivers/staging/rtl8723bs/os_dep/ |
D | osdep_service.c | 165 return (cbuf->write == cbuf->read - 1) ? true : false; in rtw_cbuf_full() 176 return (cbuf->write == cbuf->read) ? true : false; in rtw_cbuf_empty() 192 cbuf->bufs[cbuf->write] = buf; in rtw_cbuf_push() 193 cbuf->write = (cbuf->write + 1) % cbuf->size; in rtw_cbuf_push() 230 cbuf->write = cbuf->read = 0; in rtw_cbuf_alloc()
|
/drivers/usb/storage/ |
D | isd200.c | 243 } write; member 511 ata.write.DeviceHeadByte = value; in isd200_action() 520 ata.write.DeviceControlByte = ATA_DC_RESET_CONTROLLER; in isd200_action() 529 ata.write.DeviceControlByte = ATA_DC_REENABLE_CONTROLLER; in isd200_action() 537 ata.write.DeviceHeadByte = info->DeviceHead; in isd200_action() 538 ata.write.CommandByte = ATA_CMD_DEV_RESET; in isd200_action() 545 ata.write.CommandByte = ATA_CMD_ID_ATA; in isd200_action() 1257 ataCdb->write.CommandByte = ATA_COMMAND_GET_MEDIA_STATUS; in isd200_scsi_to_ata() 1275 ataCdb->write.CommandByte = ATA_COMMAND_GET_MEDIA_STATUS; in isd200_scsi_to_ata() 1331 ataCdb->write.SectorCountByte = (unsigned char)blockCount; in isd200_scsi_to_ata() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
D | dr_send.c | 21 struct dr_data_seg write; member 268 &send_info->write, MLX5_OPCODE_RDMA_WRITE, false); in dr_post_send() 347 send_info->write.send_flags |= IB_SEND_SIGNALED; in dr_fill_data_segs() 350 send_info->read.length = send_info->write.length; in dr_fill_data_segs() 352 send_info->read.addr = (uintptr_t)send_info->write.addr; in dr_fill_data_segs() 382 if (send_info->write.length > dmn->info.max_inline_size) { in dr_postsend_icm_data() 388 (void *)(uintptr_t)send_info->write.addr, in dr_postsend_icm_data() 389 send_info->write.length); in dr_postsend_icm_data() 390 send_info->write.addr = (uintptr_t)send_ring->mr->dma_addr + buff_offset; in dr_postsend_icm_data() 391 send_info->write.lkey = send_ring->mr->mkey; in dr_postsend_icm_data() [all …]
|
/drivers/net/hamradio/ |
D | 6pack.c | 150 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in sp_xmit_on_air() 152 actual = sp->tty->ops->write(sp->tty, sp->xbuff, sp->status2); in sp_xmit_on_air() 156 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in sp_xmit_on_air() 217 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in sp_encaps() 219 actual = sp->tty->ops->write(sp->tty, sp->xbuff, count); in sp_encaps() 223 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in sp_encaps() 413 actual = tty->ops->write(tty, sp->xhead, sp->xleft); in sixpack_write_wakeup() 517 sp->tty->ops->write(sp->tty, &sp->led_state, 1); in resync_tnc() 518 sp->tty->ops->write(sp->tty, &resync_cmd, 1); in resync_tnc() 531 sp->tty->ops->write(sp->tty, &inbyte, 1); in tnc_init() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | port.c | 379 #define MLX5E_FEC_OVERRIDE_ADMIN_POLICY(buf, policy, write, link) \ argument 384 if (write) \ 391 static int mlx5e_fec_admin_field(u32 *pplm, u16 *fec_policy, bool write, in mlx5e_fec_admin_field() argument 396 MLX5E_FEC_OVERRIDE_ADMIN_POLICY(pplm, *fec_policy, write, 10g_40g); in mlx5e_fec_admin_field() 399 MLX5E_FEC_OVERRIDE_ADMIN_POLICY(pplm, *fec_policy, write, 25g); in mlx5e_fec_admin_field() 402 MLX5E_FEC_OVERRIDE_ADMIN_POLICY(pplm, *fec_policy, write, 50g); in mlx5e_fec_admin_field() 405 MLX5E_FEC_OVERRIDE_ADMIN_POLICY(pplm, *fec_policy, write, 56g); in mlx5e_fec_admin_field() 408 MLX5E_FEC_OVERRIDE_ADMIN_POLICY(pplm, *fec_policy, write, 100g); in mlx5e_fec_admin_field() 411 MLX5E_FEC_OVERRIDE_ADMIN_POLICY(pplm, *fec_policy, write, 50g_1x); in mlx5e_fec_admin_field() 414 MLX5E_FEC_OVERRIDE_ADMIN_POLICY(pplm, *fec_policy, write, 100g_2x); in mlx5e_fec_admin_field() [all …]
|