Home
last modified time | relevance | path

Searched refs:sreg (Results 1 – 25 of 27) 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 …]
Dhi6421v600-regulator.c121 struct hi6421_spmi_reg_info *sreg; in hi6421_spmi_regulator_get_mode() local
124 sreg = container_of(rdev->desc, struct hi6421_spmi_reg_info, desc); in hi6421_spmi_regulator_get_mode()
127 if (reg_val & sreg->eco_mode_mask) in hi6421_spmi_regulator_get_mode()
136 struct hi6421_spmi_reg_info *sreg; in hi6421_spmi_regulator_set_mode() local
139 sreg = container_of(rdev->desc, struct hi6421_spmi_reg_info, desc); in hi6421_spmi_regulator_set_mode()
145 if (!sreg->eco_mode_mask) in hi6421_spmi_regulator_set_mode()
148 val = sreg->eco_mode_mask; in hi6421_spmi_regulator_set_mode()
155 sreg->eco_mode_mask, val); in hi6421_spmi_regulator_set_mode()
163 struct hi6421_spmi_reg_info *sreg; in hi6421_spmi_regulator_get_optimum_mode() local
165 sreg = container_of(rdev->desc, struct hi6421_spmi_reg_info, desc); in hi6421_spmi_regulator_get_optimum_mode()
[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/tty/serial/
Dsunsab.c123 if (stat->sreg.isr0 & SAB82532_ISR0_RPF) { in receive_chars()
128 if (stat->sreg.isr0 & SAB82532_ISR0_TCD) { in receive_chars()
134 if (stat->sreg.isr0 & SAB82532_ISR0_TIME) { in receive_chars()
140 if (stat->sreg.isr0 & SAB82532_ISR0_RFO) in receive_chars()
154 if ((stat->sreg.isr1 & SAB82532_ISR1_BRK) && in receive_chars()
159 if (unlikely(stat->sreg.isr1 & SAB82532_ISR1_BRK)) { in receive_chars()
160 stat->sreg.isr0 &= ~(SAB82532_ISR0_PERR | in receive_chars()
173 if (unlikely(stat->sreg.isr0 & (SAB82532_ISR0_PERR | in receive_chars()
176 unlikely(stat->sreg.isr1 & SAB82532_ISR1_BRK)) { in receive_chars()
180 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,
646 mask, cc->sreg ? " [shadowed]" : ""); in cx8800_s_vid_ctrl()
647 if (cc->sreg) in cx8800_s_vid_ctrl()
648 cx_sandor(cc->sreg, cc->reg, mask, value); in cx8800_s_vid_ctrl()
695 mask, cc->sreg ? " [shadowed]" : ""); in cx8800_s_aud_ctrl()
696 if (cc->sreg) in cx8800_s_aud_ctrl()
697 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()
982 if (esp->sreg & ESP_STAT_SPAM) { in DEF_SCSI_QCMD()
990 "Gross error sreg[%02x]\n", esp->sreg); in DEF_SCSI_QCMD()
1005 esp->sreg &= ~ESP_STAT_INTR; in esp_check_spur_intr()
1009 if (!(esp->sreg & ESP_STAT_INTR)) { in esp_check_spur_intr()
1019 esp->sreg); in esp_check_spur_intr()
1070 esp->sreg = esp_read8(ESP_STATUS); in esp_reconnect_with_tag()
1074 i, esp->ireg, esp->sreg); in esp_reconnect_with_tag()
1082 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.h356 u8 sreg; member
448 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()
1403 of_iounmap(&op->resource[0], qpti->sreg, in qpti_sbus_probe()
1438 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.c307 u32 sreg = sclk->group1 ? SRC_PCKSR1 : SRC_PCKSR0; in src_clk_enable() local
311 while (!(readl(src_base + sreg) & sclk->clkbit)) in src_clk_enable()
320 u32 sreg = sclk->group1 ? SRC_PCKSR1 : SRC_PCKSR0; in src_clk_disable() local
324 while (readl(src_base + sreg) & sclk->clkbit) in src_clk_disable()
331 u32 sreg = sclk->group1 ? SRC_PCKSR1 : SRC_PCKSR0; in src_clk_is_enabled() local
332 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_atomic() local
542 if (sreg->type != SCALAR_VALUE) { in nfp_bpf_check_atomic()
543 pr_vlog(env, "atomic add not of a scalar: %d\n", sreg->type); in nfp_bpf_check_atomic()
548 sreg->var_off.value > 0xffff || sreg->var_off.mask > 0xffff; in nfp_bpf_check_atomic()
550 (sreg->var_off.value & ~sreg->var_off.mask) <= 0xffff; in nfp_bpf_check_atomic()
559 const struct bpf_reg_state *sreg = in nfp_bpf_check_alu() local
564 meta->umin_src = min(meta->umin_src, sreg->umin_value); in nfp_bpf_check_alu()
565 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.c1448 int sreg; /* status register */ member
1486 page, attr->sreg, l->sbit); in pmbus_add_limit_attrs()
1736 .sreg = PMBUS_STATUS_INPUT,
1746 .sreg = PMBUS_VIRT_STATUS_VMON,
1761 .sreg = PMBUS_STATUS_VOUT,
1846 .sreg = PMBUS_STATUS_INPUT,
1857 .sreg = PMBUS_STATUS_IOUT,
1937 .sreg = PMBUS_STATUS_INPUT,
1948 .sreg = PMBUS_STATUS_IOUT,
2076 .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/usb/host/
Dehci-hub.c1152 u32 __iomem *sreg = in ehci_hub_control() local
1155 temp = ehci_readl(ehci, sreg) & ~PORT_RWC_BITS; in ehci_hub_control()
1158 sreg); in ehci_hub_control()
/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/infiniband/hw/hfi1/
Dsdma.c3141 u64 sreg; in sdma_update_lmc() local
3143 sreg = ((mask & SD(CHECK_SLID_MASK_MASK)) << in sdma_update_lmc()
3150 i, (u32)sreg); in sdma_update_lmc()
3152 write_sde_csr(sde, SD(CHECK_SLID), sreg); in sdma_update_lmc()

12