/drivers/regulator/ |
D | tps80031-regulator.c | 103 struct tps80031_regulator *ri = rdev_get_drvdata(rdev); in tps80031_reg_is_enabled() local 108 if (ri->ext_ctrl_flag & TPS80031_EXT_PWR_REQ) in tps80031_reg_is_enabled() 111 ret = tps80031_read(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg, in tps80031_reg_is_enabled() 115 ri->rinfo->state_reg, ret); in tps80031_reg_is_enabled() 123 struct tps80031_regulator *ri = rdev_get_drvdata(rdev); in tps80031_reg_enable() local 127 if (ri->ext_ctrl_flag & TPS80031_EXT_PWR_REQ) in tps80031_reg_enable() 130 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg, in tps80031_reg_enable() 134 ri->rinfo->state_reg, ret); in tps80031_reg_enable() 142 struct tps80031_regulator *ri = rdev_get_drvdata(rdev); in tps80031_reg_disable() local 146 if (ri->ext_ctrl_flag & TPS80031_EXT_PWR_REQ) in tps80031_reg_disable() [all …]
|
D | aat2870-regulator.c | 48 struct aat2870_regulator *ri = rdev_get_drvdata(rdev); in aat2870_ldo_set_voltage_sel() local 49 struct aat2870_data *aat2870 = ri->aat2870; in aat2870_ldo_set_voltage_sel() 51 return aat2870->update(aat2870, ri->voltage_addr, ri->voltage_mask, in aat2870_ldo_set_voltage_sel() 52 selector << ri->voltage_shift); in aat2870_ldo_set_voltage_sel() 57 struct aat2870_regulator *ri = rdev_get_drvdata(rdev); in aat2870_ldo_get_voltage_sel() local 58 struct aat2870_data *aat2870 = ri->aat2870; in aat2870_ldo_get_voltage_sel() 62 ret = aat2870->read(aat2870, ri->voltage_addr, &val); in aat2870_ldo_get_voltage_sel() 66 return (val & ri->voltage_mask) >> ri->voltage_shift; in aat2870_ldo_get_voltage_sel() 71 struct aat2870_regulator *ri = rdev_get_drvdata(rdev); in aat2870_ldo_enable() local 72 struct aat2870_data *aat2870 = ri->aat2870; in aat2870_ldo_enable() [all …]
|
D | tps65090-regulator.c | 74 static int tps65090_reg_set_overcurrent_wait(struct tps65090_regulator *ri, in tps65090_reg_set_overcurrent_wait() argument 81 ri->overcurrent_wait << CTRL_WT_BIT); in tps65090_reg_set_overcurrent_wait() 265 struct tps65090_regulator *ri, bool enable) in tps65090_config_ext_control() argument 268 struct device *parent = ri->dev->parent; in tps65090_config_ext_control() 269 unsigned int reg_en_reg = ri->desc->enable_reg; in tps65090_config_ext_control() 276 dev_err(ri->dev, "Error in updating reg 0x%x\n", reg_en_reg); in tps65090_config_ext_control() 281 struct tps65090_regulator *ri, in tps65090_regulator_disable_ext_control() argument 285 struct device *parent = ri->dev->parent; in tps65090_regulator_disable_ext_control() 286 unsigned int reg_en_reg = ri->desc->enable_reg; in tps65090_regulator_disable_ext_control() 296 dev_err(ri->dev, "Error in set reg 0x%x\n", reg_en_reg); in tps65090_regulator_disable_ext_control() [all …]
|
D | tps6586x-regulator.c | 271 struct tps6586x_regulator *ri) in tps6586x_regulator_preinit() argument 276 if (ri->enable_reg[0] == ri->enable_reg[1] && in tps6586x_regulator_preinit() 277 ri->enable_bit[0] == ri->enable_bit[1]) in tps6586x_regulator_preinit() 280 ret = tps6586x_read(parent, ri->enable_reg[0], &val1); in tps6586x_regulator_preinit() 284 ret = tps6586x_read(parent, ri->enable_reg[1], &val2); in tps6586x_regulator_preinit() 288 if (!(val2 & (1 << ri->enable_bit[1]))) in tps6586x_regulator_preinit() 295 if (!(val1 & (1 << ri->enable_bit[0]))) { in tps6586x_regulator_preinit() 296 ret = tps6586x_set_bits(parent, ri->enable_reg[0], in tps6586x_regulator_preinit() 297 1 << ri->enable_bit[0]); in tps6586x_regulator_preinit() 302 return tps6586x_clr_bits(parent, ri->enable_reg[1], in tps6586x_regulator_preinit() [all …]
|
D | da903x.c | 423 struct da903x_regulator_info *ri; in find_regulator_info() local 427 ri = &da903x_regulator_info[i]; in find_regulator_info() 428 if (ri->desc.id == id) in find_regulator_info() 429 return ri; in find_regulator_info() 436 struct da903x_regulator_info *ri = NULL; in da903x_regulator_probe() local 440 ri = find_regulator_info(pdev->id); in da903x_regulator_probe() 441 if (ri == NULL) { in da903x_regulator_probe() 447 if (ri->desc.id == DA9034_ID_LDO12) { in da903x_regulator_probe() 448 ri->desc.ops = &da9034_regulator_ldo12_ops; in da903x_regulator_probe() 449 ri->desc.n_voltages = 16; in da903x_regulator_probe() [all …]
|
D | rc5t583-regulator.c | 126 struct rc5t583_regulator_info *ri; in rc5t583_regulator_probe() local 143 ri = &rc5t583_reg_info[id]; in rc5t583_regulator_probe() 144 reg->reg_info = ri; in rc5t583_regulator_probe() 146 if (ri->deepsleep_id == RC5T583_DS_NONE) in rc5t583_regulator_probe() 150 ri->deepsleep_id, in rc5t583_regulator_probe() 167 rdev = devm_regulator_register(&pdev->dev, &ri->desc, &config); in rc5t583_regulator_probe() 170 ri->desc.name); in rc5t583_regulator_probe()
|
D | max8925-regulator.c | 281 struct max8925_regulator_info *ri; in max8925_regulator_probe() local 292 ri = &max8925_regulator_info[i]; in max8925_regulator_probe() 293 if (ri->vol_reg == res->start) { in max8925_regulator_probe() 304 ri->i2c = chip->i2c; in max8925_regulator_probe() 307 config.driver_data = ri; in max8925_regulator_probe() 313 rdev = devm_regulator_register(&pdev->dev, &ri->desc, &config); in max8925_regulator_probe() 316 ri->desc.name); in max8925_regulator_probe()
|
D | as3711-regulator.c | 225 struct as3711_regulator_info *ri; in as3711_regulator_probe() local 247 for (id = 0, ri = as3711_reg_info; id < AS3711_REGULATOR_NUM; ++id, ri++) { in as3711_regulator_probe() 249 reg->reg_info = ri; in as3711_regulator_probe() 256 rdev = devm_regulator_register(&pdev->dev, &ri->desc, &config); in as3711_regulator_probe() 259 ri->desc.name); in as3711_regulator_probe()
|
/drivers/net/wireless/brcm80211/brcmfmac/ |
D | common.c | 45 struct brcmf_rev_info *ri; in brcmf_c_preinit_dcmds() local 60 ri = &ifp->drvr->revinfo; in brcmf_c_preinit_dcmds() 64 ri->vendorid = le32_to_cpu(revinfo.vendorid); in brcmf_c_preinit_dcmds() 65 ri->deviceid = le32_to_cpu(revinfo.deviceid); in brcmf_c_preinit_dcmds() 66 ri->radiorev = le32_to_cpu(revinfo.radiorev); in brcmf_c_preinit_dcmds() 67 ri->chiprev = le32_to_cpu(revinfo.chiprev); in brcmf_c_preinit_dcmds() 68 ri->corerev = le32_to_cpu(revinfo.corerev); in brcmf_c_preinit_dcmds() 69 ri->boardid = le32_to_cpu(revinfo.boardid); in brcmf_c_preinit_dcmds() 70 ri->boardvendor = le32_to_cpu(revinfo.boardvendor); in brcmf_c_preinit_dcmds() 71 ri->boardrev = le32_to_cpu(revinfo.boardrev); in brcmf_c_preinit_dcmds() [all …]
|
D | core.c | 1022 struct brcmf_rev_info *ri = &bus_if->drvr->revinfo; in brcmf_revinfo_read() local 1026 seq_printf(s, "vendorid: 0x%04x\n", ri->vendorid); in brcmf_revinfo_read() 1027 seq_printf(s, "deviceid: 0x%04x\n", ri->deviceid); in brcmf_revinfo_read() 1028 seq_printf(s, "radiorev: %s\n", brcmu_dotrev_str(ri->radiorev, drev)); in brcmf_revinfo_read() 1029 seq_printf(s, "chipnum: %u (%x)\n", ri->chipnum, ri->chipnum); in brcmf_revinfo_read() 1030 seq_printf(s, "chiprev: %u\n", ri->chiprev); in brcmf_revinfo_read() 1031 seq_printf(s, "chippkg: %u\n", ri->chippkg); in brcmf_revinfo_read() 1032 seq_printf(s, "corerev: %u\n", ri->corerev); in brcmf_revinfo_read() 1033 seq_printf(s, "boardid: 0x%04x\n", ri->boardid); in brcmf_revinfo_read() 1034 seq_printf(s, "boardvendor: 0x%04x\n", ri->boardvendor); in brcmf_revinfo_read() [all …]
|
/drivers/message/fusion/ |
D | mptfc.c | 434 struct mptfc_rport_info *ri; in mptfc_register_dev() local 448 list_for_each_entry(ri, &ioc->fc_rports, list) { in mptfc_register_dev() 449 pn = (u64)ri->pg0.WWPN.High << 32 | (u64)ri->pg0.WWPN.Low; in mptfc_register_dev() 451 list_move_tail(&ri->list, &ioc->fc_rports); in mptfc_register_dev() 457 ri = kzalloc(sizeof(struct mptfc_rport_info), GFP_KERNEL); in mptfc_register_dev() 458 if (!ri) in mptfc_register_dev() 460 list_add_tail(&ri->list, &ioc->fc_rports); in mptfc_register_dev() 463 ri->pg0 = *pg0; /* add/update pg0 data */ in mptfc_register_dev() 464 ri->flags &= ~MPT_RPORT_INFO_FLAGS_MISSING; in mptfc_register_dev() 467 if (!(ri->flags & MPT_RPORT_INFO_FLAGS_REGISTERED)) { in mptfc_register_dev() [all …]
|
/drivers/clk/mmp/ |
D | clk-mix.c | 137 struct mmp_clk_mix_reg_info *ri = &mix->reg_info; in _set_rate() local 151 mux_div = readl(ri->reg_clk_ctrl); in _set_rate() 153 mux_div = readl(ri->reg_clk_sel); in _set_rate() 156 width = ri->width_div; in _set_rate() 157 shift = ri->shift_div; in _set_rate() 163 width = ri->width_mux; in _set_rate() 164 shift = ri->shift_mux; in _set_rate() 170 writel(mux_div, ri->reg_clk_ctrl); in _set_rate() 172 mux_div |= (1 << ri->bit_fc); in _set_rate() 173 writel(mux_div, ri->reg_clk_ctrl); in _set_rate() [all …]
|
/drivers/isdn/hisax/ |
D | tei.c | 104 put_tei_msg(struct PStack *st, u_char m_id, unsigned int ri, u_char tei) in put_tei_msg() argument 119 bp[1] = ri >> 8; in put_tei_msg() 120 bp[2] = ri & 0xff; in put_tei_msg() 137 st->ma.ri = random_ri(); in tei_id_request() 140 "assign request ri %d", st->ma.ri); in tei_id_request() 141 put_tei_msg(st, ID_REQUEST, st->ma.ri, 127); in tei_id_request() 153 int ri, tei; in tei_id_assign() local 155 ri = ((unsigned int) skb->data[1] << 8) + skb->data[2]; in tei_id_assign() 159 "identity assign ri %d tei %d", ri, tei); in tei_id_assign() 161 if (ri != ost->ma.ri) { in tei_id_assign() [all …]
|
/drivers/uwb/ |
D | allocator.c | 58 struct uwb_rsv_row_info *ri = &ai->ri; in uwb_rsv_fill_row_alloc() local 64 if (ri->avail[mas] == 1) { in uwb_rsv_fill_row_alloc() 66 if (rows > ri->used_rows) { in uwb_rsv_fill_row_alloc() 207 struct uwb_rsv_row_info *ri = &ai->ri; in get_row_descriptors() local 210 ri->free_rows = 16; in get_row_descriptors() 212 ri->avail[mas] = 1; in get_row_descriptors() 215 ri->free_rows--; in get_row_descriptors() 216 ri->avail[mas]=0; in get_row_descriptors() 279 if (n_rows <= ai->ri.free_rows) { in uwb_rsv_find_best_row_alloc() 280 ai->ri.used_rows = n_rows; in uwb_rsv_find_best_row_alloc()
|
/drivers/isdn/mISDN/ |
D | tei.c | 441 put_tei_msg(struct manager *mgr, u_char m_id, unsigned int ri, int tei) in put_tei_msg() argument 452 bp[4] = ri >> 8; in put_tei_msg() 453 bp[5] = ri & 0xff; in put_tei_msg() 475 tm->ri = random_ri(); in tei_id_request() 478 "assign request ri %d", tm->ri); in tei_id_request() 479 put_tei_msg(tm->mgr, ID_REQUEST, tm->ri, GROUP_TEI); in tei_id_request() 491 int ri, tei; in tei_id_assign() local 493 ri = ((unsigned int) *dp++ << 8); in tei_id_assign() 494 ri += *dp++; in tei_id_assign() 499 ri, tei); in tei_id_assign() [all …]
|
/drivers/media/pci/bt8xx/ |
D | bttv-risc.c | 136 u32 ri; in bttv_risc_planar() local 210 ri = BT848_RISC_WRITE123; in bttv_risc_planar() 212 ri = BT848_RISC_WRITE1S23; in bttv_risc_planar() 215 ri |= BT848_RISC_SOL; in bttv_risc_planar() 217 ri |= BT848_RISC_EOL; in bttv_risc_planar() 220 *(rp++)=cpu_to_le32(ri | ylen); in bttv_risc_planar() 254 u32 ri,ra; in bttv_risc_overlay() local 299 ri = BT848_RISC_WRITE; in bttv_risc_overlay() 302 ri = BT848_RISC_WRITE; in bttv_risc_overlay() 305 ri = BT848_RISC_SKIP; in bttv_risc_overlay() [all …]
|
/drivers/net/wireless/ath/wil6210/ |
D | main.c | 389 int ri = wil->bcast_vring, rc; in wil_bcast_init() local 391 if ((ri >= 0) && wil->vring_tx[ri].va) in wil_bcast_init() 394 ri = wil_find_free_vring(wil); in wil_bcast_init() 395 if (ri < 0) in wil_bcast_init() 396 return ri; in wil_bcast_init() 398 wil->bcast_vring = ri; in wil_bcast_init() 399 rc = wil_vring_init_bcast(wil, ri, 1 << bcast_ring_order); in wil_bcast_init() 408 int ri = wil->bcast_vring; in wil_bcast_fini() local 410 if (ri < 0) in wil_bcast_fini() 414 wil_vring_fini_tx(wil, ri); in wil_bcast_fini()
|
/drivers/md/ |
D | md-cluster.c | 201 struct resync_info *ri; in add_resync_info() local 203 ri = (struct resync_info *)lockres->lksb.sb_lvbptr; in add_resync_info() 204 ri->lo = cpu_to_le64(lo); in add_resync_info() 205 ri->hi = cpu_to_le64(hi); in add_resync_info() 210 struct resync_info ri; in read_resync_info() local 215 memcpy(&ri, lockres->lksb.sb_lvbptr, sizeof(struct resync_info)); in read_resync_info() 216 hi = le64_to_cpu(ri.hi); in read_resync_info() 222 s->lo = le64_to_cpu(ri.lo); in read_resync_info()
|
/drivers/mmc/host/ |
D | vub300.c | 617 int ri = 0; in __vub300_irqpoll_response() local 619 add_offloaded_reg(vub300, &vub300->resp.irq.reg[ri]); in __vub300_irqpoll_response() 620 ri += 1; in __vub300_irqpoll_response() 635 int ri = 0; in __vub300_irqpoll_response() local 637 add_offloaded_reg(vub300, &vub300->resp.irq.reg[ri]); in __vub300_irqpoll_response() 638 ri += 1; in __vub300_irqpoll_response() 1652 int ri = 0; in __vub300_command_response() local 1654 add_offloaded_reg(vub300, &vub300->resp.pig.reg[ri]); in __vub300_command_response() 1655 ri += 1; in __vub300_command_response() 1666 int ri = 0; in __vub300_command_response() local [all …]
|
/drivers/gpu/drm/virtio/ |
D | virtgpu_ioctl.c | 347 struct drm_virtgpu_resource_info *ri = data; in virtio_gpu_resource_info_ioctl() local 351 gobj = drm_gem_object_lookup(dev, file_priv, ri->bo_handle); in virtio_gpu_resource_info_ioctl() 357 ri->size = qobj->gem_base.size; in virtio_gpu_resource_info_ioctl() 358 ri->res_handle = qobj->hw_res_handle; in virtio_gpu_resource_info_ioctl()
|
/drivers/net/wireless/ath/carl9170/ |
D | wlan.h | 259 struct ar9170_tx_rate_info ri[CARL9170_TX_MAX_RATES]; member 323 u8 ri[CARL9170_TX_MAX_RATES]; member
|
/drivers/usb/serial/ |
D | keyspan_usa28msg.h | 154 ri, // (not used in all products) member
|
D | keyspan_usa26msg.h | 213 ri, // USA17: reports RI pin member
|
D | keyspan_usa49msg.h | 244 ri, // reports RI pin member
|
D | keyspan_usa90msg.h | 159 ri, // reports RI pin member
|