Home
last modified time | relevance | path

Searched refs:sreg (Results 1 – 25 of 28) sorted by relevance

12

/drivers/regulator/
Dscmi-regulator.c55 struct scmi_regulator *sreg = rdev_get_drvdata(rdev); in scmi_reg_enable() local
57 return voltage_ops->config_set(sreg->ph, sreg->id, in scmi_reg_enable()
63 struct scmi_regulator *sreg = rdev_get_drvdata(rdev); in scmi_reg_disable() local
65 return voltage_ops->config_set(sreg->ph, sreg->id, in scmi_reg_disable()
73 struct scmi_regulator *sreg = rdev_get_drvdata(rdev); in scmi_reg_is_enabled() local
75 ret = voltage_ops->config_get(sreg->ph, sreg->id, &config); in scmi_reg_is_enabled()
77 dev_err(&sreg->sdev->dev, in scmi_reg_is_enabled()
79 ret, sreg->desc.name); in scmi_reg_is_enabled()
90 struct scmi_regulator *sreg = rdev_get_drvdata(rdev); in scmi_reg_get_voltage_sel() local
92 ret = voltage_ops->level_get(sreg->ph, sreg->id, &volt_uV); in scmi_reg_get_voltage_sel()
[all …]
Danatop-regulator.c162 struct anatop_regulator *sreg; in anatop_regulator_probe() local
175 sreg = devm_kzalloc(dev, sizeof(*sreg), GFP_KERNEL); in anatop_regulator_probe()
176 if (!sreg) in anatop_regulator_probe()
179 rdesc = &sreg->rdesc; in anatop_regulator_probe()
236 &sreg->delay_reg); in anatop_regulator_probe()
238 &sreg->delay_bit_width); in anatop_regulator_probe()
240 &sreg->delay_bit_shift); in anatop_regulator_probe()
253 config.driver_data = sreg; in anatop_regulator_probe()
258 if (control_reg && sreg->delay_bit_width) { in anatop_regulator_probe()
267 sreg->sel = (val & rdesc->vsel_mask) >> vol_bit_shift; in anatop_regulator_probe()
[all …]
Dhi655x-regulator.c108 sreg, cmask, vtable) { \ argument
125 .status_reg = HI655X_BUS_ADDR(sreg), \
129 sreg, cmask, minv, nvolt, vstep) { \ argument
147 .status_reg = HI655X_BUS_ADDR(sreg), \
Dslg51000-regulator.c49 unsigned int sreg; member
/drivers/staging/hikey9xx/
Dhi6421v600-regulator.c58 struct hi6421v600_regulator *sreg = rdev_get_drvdata(rdev); in hi6421_spmi_regulator_is_enabled() local
59 struct hi6421_spmi_pmic *pmic = sreg->pmic; in hi6421_spmi_regulator_is_enabled()
74 struct hi6421v600_regulator *sreg = rdev_get_drvdata(rdev); in hi6421_spmi_regulator_enable() local
75 struct hi6421_spmi_pmic *pmic = sreg->pmic; in hi6421_spmi_regulator_enable()
99 struct hi6421v600_regulator *sreg = rdev_get_drvdata(rdev); in hi6421_spmi_regulator_disable() local
100 struct hi6421_spmi_pmic *pmic = sreg->pmic; in hi6421_spmi_regulator_disable()
114 struct hi6421v600_regulator *sreg = rdev_get_drvdata(rdev); in hi6421_spmi_regulator_get_voltage_sel() local
115 struct hi6421_spmi_pmic *pmic = sreg->pmic; in hi6421_spmi_regulator_get_voltage_sel()
134 struct hi6421v600_regulator *sreg = rdev_get_drvdata(rdev); in hi6421_spmi_regulator_set_voltage_sel() local
135 struct hi6421_spmi_pmic *pmic = sreg->pmic; in hi6421_spmi_regulator_set_voltage_sel()
[all …]
/drivers/tty/serial/
Dsunsab.c122 if (stat->sreg.isr0 & SAB82532_ISR0_RPF) { in receive_chars()
127 if (stat->sreg.isr0 & SAB82532_ISR0_TCD) { in receive_chars()
133 if (stat->sreg.isr0 & SAB82532_ISR0_TIME) { in receive_chars()
139 if (stat->sreg.isr0 & SAB82532_ISR0_RFO) in receive_chars()
153 if ((stat->sreg.isr1 & SAB82532_ISR1_BRK) && in receive_chars()
158 if (unlikely(stat->sreg.isr1 & SAB82532_ISR1_BRK)) { in receive_chars()
159 stat->sreg.isr0 &= ~(SAB82532_ISR0_PERR | in receive_chars()
172 if (unlikely(stat->sreg.isr0 & (SAB82532_ISR0_PERR | in receive_chars()
175 unlikely(stat->sreg.isr1 & SAB82532_ISR1_BRK)) { in receive_chars()
179 if (stat->sreg.isr1 & SAB82532_ISR1_BRK) { in receive_chars()
[all …]
Dsunsab.h124 } sreg; member
/drivers/media/pci/cx88/
Dcx88.h597 #define cx_sread(sreg) (core->shadow[sreg]) argument
598 #define cx_swrite(sreg, reg, value) \ argument
599 (core->shadow[sreg] = value, \
600 writel(core->shadow[sreg], core->lmmio + ((reg) >> 2)))
601 #define cx_sandor(sreg, reg, mask, value) \ argument
602 (core->shadow[sreg] = (core->shadow[sreg] & ~(mask)) | \
604 writel(core->shadow[sreg], \
Dcx88-video.c148 u32 sreg; member
249 .sreg = SHADOW_AUD_VOL_CTL,
259 .sreg = SHADOW_AUD_VOL_CTL,
269 .sreg = SHADOW_AUD_BAL_CTL,
645 mask, cc->sreg ? " [shadowed]" : ""); in cx8800_s_vid_ctrl()
646 if (cc->sreg) in cx8800_s_vid_ctrl()
647 cx_sandor(cc->sreg, cc->reg, mask, value); in cx8800_s_vid_ctrl()
694 mask, cc->sreg ? " [shadowed]" : ""); in cx8800_s_aud_ctrl()
695 if (cc->sreg) in cx8800_s_aud_ctrl()
696 cx_sandor(cc->sreg, cc->reg, mask, value); in cx8800_s_aud_ctrl()
/drivers/scsi/
Desp_scsi.c122 p->sreg = esp->sreg; in esp_log_fill_regs()
194 p->val, p->sreg, p->seqreg, in esp_dump_cmd_log()
990 if (esp->sreg & ESP_STAT_SPAM) { in DEF_SCSI_QCMD()
998 "Gross error sreg[%02x]\n", esp->sreg); in DEF_SCSI_QCMD()
1013 esp->sreg &= ~ESP_STAT_INTR; in esp_check_spur_intr()
1017 if (!(esp->sreg & ESP_STAT_INTR)) { in esp_check_spur_intr()
1027 esp->sreg); in esp_check_spur_intr()
1078 esp->sreg = esp_read8(ESP_STATUS); in esp_reconnect_with_tag()
1082 i, esp->ireg, esp->sreg); in esp_reconnect_with_tag()
1090 if ((esp->sreg & ESP_STAT_PMASK) != ESP_MIP) { in esp_reconnect_with_tag()
[all …]
Dzorro_esp.c263 u8 phase = esp->sreg & ESP_STAT_PMASK; in zorro_esp_send_blz1230_dma_cmd()
314 u8 phase = esp->sreg & ESP_STAT_PMASK; in zorro_esp_send_blz1230II_dma_cmd()
359 u8 phase = esp->sreg & ESP_STAT_PMASK; in zorro_esp_send_blz2060_dma_cmd()
405 u8 phase = esp->sreg & ESP_STAT_PMASK; in zorro_esp_send_cyber_dma_cmd()
456 u8 phase = esp->sreg & ESP_STAT_PMASK; in zorro_esp_send_cyberII_dma_cmd()
498 u8 phase = esp->sreg & ESP_STAT_PMASK; in zorro_esp_send_fastlane_dma_cmd()
Desp_scsi.h355 u8 sreg; member
447 u8 sreg; member
Dam53c974.c145 if ((esp->sreg & ESP_STAT_PMASK) == ESP_DOP || in pci_esp_dma_drain()
146 (esp->sreg & ESP_STAT_PMASK) == ESP_DIP) in pci_esp_dma_drain()
Dqlogicpti.c653 int curstat = sbus_readb(qpti->sreg); in qlogicpti_verify_tmon()
727 qpti->sreg = of_ioremap(&op->resource[0], (16 * 4096), in qpti_map_regs()
730 if (!qpti->sreg) { in qpti_map_regs()
1404 of_iounmap(&op->resource[0], qpti->sreg, in qpti_sbus_probe()
1439 of_iounmap(&op->resource[0], qpti->sreg, sizeof(unsigned char)); in qpti_sbus_remove()
Dqlogicpti.h373 void __iomem *sreg; member
/drivers/hwmon/
Dds1621.c144 u8 conf, new_conf, sreg, resol; in ds1621_init_client() local
163 sreg = DS1621_COM_START; in ds1621_init_client()
172 sreg = DS1721_COM_START; in ds1621_init_client()
177 sreg = DS1621_COM_START; in ds1621_init_client()
182 i2c_smbus_write_byte(client, sreg); in ds1621_init_client()
/drivers/clk/
Dclk-nomadik.c304 u32 sreg = sclk->group1 ? SRC_PCKSR1 : SRC_PCKSR0; in src_clk_enable() local
308 while (!(readl(src_base + sreg) & sclk->clkbit)) in src_clk_enable()
317 u32 sreg = sclk->group1 ? SRC_PCKSR1 : SRC_PCKSR0; in src_clk_disable() local
321 while (readl(src_base + sreg) & sclk->clkbit) in src_clk_disable()
328 u32 sreg = sclk->group1 ? SRC_PCKSR1 : SRC_PCKSR0; in src_clk_is_enabled() local
329 u32 val = readl(src_base + sreg); in src_clk_is_enabled()
/drivers/net/ethernet/netronome/nfp/bpf/
Dverifier.c529 const struct bpf_reg_state *sreg = cur_regs(env) + meta->insn.src_reg; in nfp_bpf_check_xadd() local
537 if (sreg->type != SCALAR_VALUE) { in nfp_bpf_check_xadd()
538 pr_vlog(env, "atomic add not of a scalar: %d\n", sreg->type); in nfp_bpf_check_xadd()
543 sreg->var_off.value > 0xffff || sreg->var_off.mask > 0xffff; in nfp_bpf_check_xadd()
545 (sreg->var_off.value & ~sreg->var_off.mask) <= 0xffff; in nfp_bpf_check_xadd()
554 const struct bpf_reg_state *sreg = in nfp_bpf_check_alu() local
559 meta->umin_src = min(meta->umin_src, sreg->umin_value); in nfp_bpf_check_alu()
560 meta->umax_src = max(meta->umax_src, sreg->umax_value); in nfp_bpf_check_alu()
/drivers/scsi/csiostor/
Dcsio_wr.c122 int sreg = flq->un.fl.sreg; in csio_wr_fill_fl() local
126 buf->len = sge->sge_fl_buf_size[sreg]; in csio_wr_fill_fl()
134 paddr = buf->paddr | (sreg & 0xF); in csio_wr_fill_fl()
187 uint16_t type, void *owner, uint32_t nflb, int sreg, in csio_wr_alloc_q() argument
269 owner, 0, sreg, NULL); in csio_wr_alloc_q()
293 flq->un.fl.sreg = sreg; in csio_wr_alloc_q()
Dcsio_wr.h373 int sreg; /* Size register */ member
/drivers/hwmon/pmbus/
Dpmbus_core.c1186 int sreg; /* status register */ member
1224 page, attr->sreg, l->sbit); in pmbus_add_limit_attrs()
1474 .sreg = PMBUS_STATUS_INPUT,
1484 .sreg = PMBUS_VIRT_STATUS_VMON,
1499 .sreg = PMBUS_STATUS_VOUT,
1584 .sreg = PMBUS_STATUS_INPUT,
1595 .sreg = PMBUS_STATUS_IOUT,
1675 .sreg = PMBUS_STATUS_INPUT,
1686 .sreg = PMBUS_STATUS_IOUT,
1814 .sreg = PMBUS_STATUS_TEMPERATURE,
[all …]
/drivers/net/wireless/intersil/orinoco/
Dhermes.c368 int sreg = bap ? HERMES_SELECT1 : HERMES_SELECT0; in hermes_bap_seek() local
389 hermes_write_reg(hw, sreg, id); in hermes_bap_seek()
/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dinit.c1418 u32 sreg = nvbios_rd32(bios, init->offset + 1); in init_copy_nv_reg() local
1428 dreg, dmask, sreg, (shift & 0x80) ? "<<" : ">>", in init_copy_nv_reg()
1432 data = init_shift(init_rd32(init, sreg), shift); in init_copy_nv_reg()
2021 u32 sreg = nvbios_rd32(bios, init->offset + 1); in init_copy_zm_reg() local
2024 trace("COPY_ZM_REG\tR[0x%06x] = R[0x%06x]\n", dreg, sreg); in init_copy_zm_reg()
2027 init_wr32(init, dreg, init_rd32(init, sreg)); in init_copy_zm_reg()
/drivers/usb/host/
Dehci-hub.c1282 u32 __iomem *sreg = in ehci_hub_control() local
1285 temp = ehci_readl(ehci, sreg) & ~PORT_RWC_BITS; in ehci_hub_control()
1288 sreg); in ehci_hub_control()
/drivers/block/
Dxsysace.c813 u32 sreg = ace_in32(ace, ACE_STATUS); in ace_interrupt_checkstate() local
817 if ((sreg & (ACE_STATUS_CFGERROR | ACE_STATUS_CFCERROR)) && in ace_interrupt_checkstate()

12