/drivers/regulator/ |
D | tps80031-regulator.c | 88 struct tps80031_regulator *ri = rdev_get_drvdata(rdev); in tps80031_reg_is_enabled() local 93 if (ri->ext_ctrl_flag & TPS80031_EXT_PWR_REQ) in tps80031_reg_is_enabled() 96 ret = tps80031_read(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg, in tps80031_reg_is_enabled() 100 ri->rinfo->state_reg, ret); in tps80031_reg_is_enabled() 108 struct tps80031_regulator *ri = rdev_get_drvdata(rdev); in tps80031_reg_enable() local 112 if (ri->ext_ctrl_flag & TPS80031_EXT_PWR_REQ) in tps80031_reg_enable() 115 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg, in tps80031_reg_enable() 119 ri->rinfo->state_reg, ret); in tps80031_reg_enable() 127 struct tps80031_regulator *ri = rdev_get_drvdata(rdev); in tps80031_reg_disable() local 131 if (ri->ext_ctrl_flag & TPS80031_EXT_PWR_REQ) in tps80031_reg_disable() [all …]
|
D | aat2870-regulator.c | 35 struct aat2870_regulator *ri = rdev_get_drvdata(rdev); in aat2870_ldo_set_voltage_sel() local 36 struct aat2870_data *aat2870 = ri->aat2870; in aat2870_ldo_set_voltage_sel() 38 return aat2870->update(aat2870, ri->voltage_addr, ri->voltage_mask, in aat2870_ldo_set_voltage_sel() 39 selector << ri->voltage_shift); in aat2870_ldo_set_voltage_sel() 44 struct aat2870_regulator *ri = rdev_get_drvdata(rdev); in aat2870_ldo_get_voltage_sel() local 45 struct aat2870_data *aat2870 = ri->aat2870; in aat2870_ldo_get_voltage_sel() 49 ret = aat2870->read(aat2870, ri->voltage_addr, &val); in aat2870_ldo_get_voltage_sel() 53 return (val & ri->voltage_mask) >> ri->voltage_shift; in aat2870_ldo_get_voltage_sel() 58 struct aat2870_regulator *ri = rdev_get_drvdata(rdev); in aat2870_ldo_enable() local 59 struct aat2870_data *aat2870 = ri->aat2870; in aat2870_ldo_enable() [all …]
|
D | tps65090-regulator.c | 64 static int tps65090_reg_set_overcurrent_wait(struct tps65090_regulator *ri, in tps65090_reg_set_overcurrent_wait() argument 71 ri->overcurrent_wait << CTRL_WT_BIT); in tps65090_reg_set_overcurrent_wait() 255 struct tps65090_regulator *ri, bool enable) in tps65090_config_ext_control() argument 258 struct device *parent = ri->dev->parent; in tps65090_config_ext_control() 259 unsigned int reg_en_reg = ri->desc->enable_reg; in tps65090_config_ext_control() 266 dev_err(ri->dev, "Error in updating reg 0x%x\n", reg_en_reg); in tps65090_config_ext_control() 271 struct tps65090_regulator *ri, in tps65090_regulator_disable_ext_control() argument 275 struct device *parent = ri->dev->parent; in tps65090_regulator_disable_ext_control() 276 unsigned int reg_en_reg = ri->desc->enable_reg; in tps65090_regulator_disable_ext_control() 286 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 | 268 struct tps6586x_regulator *ri) in tps6586x_regulator_preinit() argument 273 if (ri->enable_reg[0] == ri->enable_reg[1] && in tps6586x_regulator_preinit() 274 ri->enable_bit[0] == ri->enable_bit[1]) in tps6586x_regulator_preinit() 277 ret = tps6586x_read(parent, ri->enable_reg[0], &val1); in tps6586x_regulator_preinit() 281 ret = tps6586x_read(parent, ri->enable_reg[1], &val2); in tps6586x_regulator_preinit() 285 if (!(val2 & (1 << ri->enable_bit[1]))) in tps6586x_regulator_preinit() 292 if (!(val1 & (1 << ri->enable_bit[0]))) { in tps6586x_regulator_preinit() 293 ret = tps6586x_set_bits(parent, ri->enable_reg[0], in tps6586x_regulator_preinit() 294 1 << ri->enable_bit[0]); in tps6586x_regulator_preinit() 299 return tps6586x_clr_bits(parent, ri->enable_reg[1], in tps6586x_regulator_preinit() [all …]
|
D | da903x.c | 419 struct da903x_regulator_info *ri; in find_regulator_info() local 423 ri = &da903x_regulator_info[i]; in find_regulator_info() 424 if (ri->desc.id == id) in find_regulator_info() 425 return ri; in find_regulator_info() 432 struct da903x_regulator_info *ri = NULL; in da903x_regulator_probe() local 436 ri = find_regulator_info(pdev->id); in da903x_regulator_probe() 437 if (ri == NULL) { in da903x_regulator_probe() 443 if (ri->desc.id == DA9034_ID_LDO12) { in da903x_regulator_probe() 444 ri->desc.ops = &da9034_regulator_ldo12_ops; in da903x_regulator_probe() 445 ri->desc.n_voltages = 16; in da903x_regulator_probe() [all …]
|
D | rc5t583-regulator.c | 106 struct rc5t583_regulator_info *ri; in rc5t583_regulator_probe() local 116 ri = &rc5t583_reg_info[id]; in rc5t583_regulator_probe() 118 if (ri->deepsleep_id == RC5T583_DS_NONE) in rc5t583_regulator_probe() 122 ri->deepsleep_id, in rc5t583_regulator_probe() 136 config.driver_data = ri; in rc5t583_regulator_probe() 139 rdev = devm_regulator_register(&pdev->dev, &ri->desc, &config); in rc5t583_regulator_probe() 142 ri->desc.name); in rc5t583_regulator_probe()
|
D | max8925-regulator.c | 223 struct max8925_regulator_info *ri; in max8925_regulator_probe() local 234 ri = &max8925_regulator_info[i]; in max8925_regulator_probe() 235 if (ri->vol_reg == res->start) in max8925_regulator_probe() 244 ri->i2c = chip->i2c; in max8925_regulator_probe() 247 config.driver_data = ri; in max8925_regulator_probe() 252 rdev = devm_regulator_register(&pdev->dev, &ri->desc, &config); in max8925_regulator_probe() 255 ri->desc.name); in max8925_regulator_probe()
|
/drivers/message/fusion/ |
D | mptfc.c | 426 struct mptfc_rport_info *ri; in mptfc_register_dev() local 440 list_for_each_entry(ri, &ioc->fc_rports, list) { in mptfc_register_dev() 441 pn = (u64)ri->pg0.WWPN.High << 32 | (u64)ri->pg0.WWPN.Low; in mptfc_register_dev() 443 list_move_tail(&ri->list, &ioc->fc_rports); in mptfc_register_dev() 449 ri = kzalloc(sizeof(struct mptfc_rport_info), GFP_KERNEL); in mptfc_register_dev() 450 if (!ri) in mptfc_register_dev() 452 list_add_tail(&ri->list, &ioc->fc_rports); in mptfc_register_dev() 455 ri->pg0 = *pg0; /* add/update pg0 data */ in mptfc_register_dev() 456 ri->flags &= ~MPT_RPORT_INFO_FLAGS_MISSING; in mptfc_register_dev() 459 if (!(ri->flags & MPT_RPORT_INFO_FLAGS_REGISTERED)) { in mptfc_register_dev() [all …]
|
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | common.c | 200 struct brcmf_rev_info *ri; in brcmf_c_preinit_dcmds() local 216 ri = &ifp->drvr->revinfo; in brcmf_c_preinit_dcmds() 222 strlcpy(ri->chipname, "UNKNOWN", sizeof(ri->chipname)); in brcmf_c_preinit_dcmds() 224 ri->vendorid = le32_to_cpu(revinfo.vendorid); in brcmf_c_preinit_dcmds() 225 ri->deviceid = le32_to_cpu(revinfo.deviceid); in brcmf_c_preinit_dcmds() 226 ri->radiorev = le32_to_cpu(revinfo.radiorev); in brcmf_c_preinit_dcmds() 227 ri->corerev = le32_to_cpu(revinfo.corerev); in brcmf_c_preinit_dcmds() 228 ri->boardid = le32_to_cpu(revinfo.boardid); in brcmf_c_preinit_dcmds() 229 ri->boardvendor = le32_to_cpu(revinfo.boardvendor); in brcmf_c_preinit_dcmds() 230 ri->boardrev = le32_to_cpu(revinfo.boardrev); in brcmf_c_preinit_dcmds() [all …]
|
D | core.c | 1055 struct brcmf_rev_info *ri = &bus_if->drvr->revinfo; in brcmf_revinfo_read() local 1059 seq_printf(s, "vendorid: 0x%04x\n", ri->vendorid); in brcmf_revinfo_read() 1060 seq_printf(s, "deviceid: 0x%04x\n", ri->deviceid); in brcmf_revinfo_read() 1061 seq_printf(s, "radiorev: %s\n", brcmu_dotrev_str(ri->radiorev, drev)); in brcmf_revinfo_read() 1062 seq_printf(s, "chip: %s\n", ri->chipname); in brcmf_revinfo_read() 1063 seq_printf(s, "chippkg: %u\n", ri->chippkg); in brcmf_revinfo_read() 1064 seq_printf(s, "corerev: %u\n", ri->corerev); in brcmf_revinfo_read() 1065 seq_printf(s, "boardid: 0x%04x\n", ri->boardid); in brcmf_revinfo_read() 1066 seq_printf(s, "boardvendor: 0x%04x\n", ri->boardvendor); in brcmf_revinfo_read() 1067 seq_printf(s, "boardrev: %s\n", brcmu_boardrev_str(ri->boardrev, brev)); in brcmf_revinfo_read() [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/staging/uwb/ |
D | allocator.c | 47 struct uwb_rsv_row_info *ri = &ai->ri; in uwb_rsv_fill_row_alloc() local 53 if (ri->avail[mas] == 1) { in uwb_rsv_fill_row_alloc() 55 if (rows > ri->used_rows) { in uwb_rsv_fill_row_alloc() 196 struct uwb_rsv_row_info *ri = &ai->ri; in get_row_descriptors() local 199 ri->free_rows = 16; in get_row_descriptors() 201 ri->avail[mas] = 1; in get_row_descriptors() 204 ri->free_rows--; in get_row_descriptors() 205 ri->avail[mas]=0; in get_row_descriptors() 268 if (n_rows <= ai->ri.free_rows) { in uwb_rsv_find_best_row_alloc() 269 ai->ri.used_rows = n_rows; in uwb_rsv_find_best_row_alloc()
|
/drivers/net/ethernet/mscc/ |
D | ocelot.h | 515 #define ocelot_read_ix(ocelot, reg, gi, ri) __ocelot_read_ix(ocelot, reg, reg##_GSZ * (gi) + reg##_… argument 517 #define ocelot_read_rix(ocelot, reg, ri) __ocelot_read_ix(ocelot, reg, reg##_RSZ * (ri)) argument 521 … ocelot_write_ix(ocelot, val, reg, gi, ri) __ocelot_write_ix(ocelot, val, reg, reg##_GSZ * (gi) + … argument 523 #define ocelot_write_rix(ocelot, val, reg, ri) __ocelot_write_ix(ocelot, val, reg, reg##_RSZ * (ri)) argument 528 …ocelot_rmw_ix(ocelot, val, m, reg, gi, ri) __ocelot_rmw_ix(ocelot, val, m, reg, reg##_GSZ * (gi) +… argument 530 #define ocelot_rmw_rix(ocelot, val, m, reg, ri) __ocelot_rmw_ix(ocelot, val, m, reg, reg##_RSZ * (r… argument
|
/drivers/isdn/mISDN/ |
D | tei.c | 432 put_tei_msg(struct manager *mgr, u_char m_id, unsigned int ri, int tei) in put_tei_msg() argument 443 bp[4] = ri >> 8; in put_tei_msg() 444 bp[5] = ri & 0xff; in put_tei_msg() 466 tm->ri = random_ri(); in tei_id_request() 469 "assign request ri %d", tm->ri); in tei_id_request() 470 put_tei_msg(tm->mgr, ID_REQUEST, tm->ri, GROUP_TEI); in tei_id_request() 482 int ri, tei; in tei_id_assign() local 484 ri = ((unsigned int) *dp++ << 8); in tei_id_assign() 485 ri += *dp++; in tei_id_assign() 490 ri, tei); in tei_id_assign() [all …]
|
/drivers/media/pci/bt8xx/ |
D | bttv-risc.c | 124 u32 ri; in bttv_risc_planar() local 199 ri = BT848_RISC_WRITE123; in bttv_risc_planar() 201 ri = BT848_RISC_WRITE1S23; in bttv_risc_planar() 204 ri |= BT848_RISC_SOL; in bttv_risc_planar() 206 ri |= BT848_RISC_EOL; in bttv_risc_planar() 209 *(rp++)=cpu_to_le32(ri | ylen); in bttv_risc_planar() 243 u32 ri,ra; in bttv_risc_overlay() local 289 ri = BT848_RISC_WRITE; in bttv_risc_overlay() 292 ri = BT848_RISC_WRITE; in bttv_risc_overlay() 295 ri = BT848_RISC_SKIP; in bttv_risc_overlay() [all …]
|
/drivers/net/ethernet/marvell/mvpp2/ |
D | mvpp2_prs.c | 94 unsigned int ri, unsigned int ri_mask) in mvpp2_prs_shadow_ri_set() argument 97 priv->prs_shadow[index].ri = ri; in mvpp2_prs_shadow_ri_set() 448 unsigned int ri; in mvpp2_prs_mac_promisc_set() local 454 ri = MVPP2_PRS_RI_L2_UCAST; in mvpp2_prs_mac_promisc_set() 458 ri = MVPP2_PRS_RI_L2_MCAST; in mvpp2_prs_mac_promisc_set() 473 mvpp2_prs_sram_ri_update(&pe, ri, MVPP2_PRS_RI_L2_CAST_MASK); in mvpp2_prs_mac_promisc_set() 866 unsigned int ri, unsigned int ri_mask) in mvpp2_prs_ip4_proto() argument 894 mvpp2_prs_sram_ri_update(&pe, ri, ri_mask | MVPP2_PRS_RI_IP_FRAG_MASK); in mvpp2_prs_ip4_proto() 920 mvpp2_prs_sram_ri_update(&pe, ri, ri_mask); in mvpp2_prs_ip4_proto() 922 mvpp2_prs_sram_ri_update(&pe, ri | MVPP2_PRS_RI_IP_FRAG_TRUE, in mvpp2_prs_ip4_proto() [all …]
|
D | mvpp2_prs.h | 276 u32 ri; member 291 u32 ri; member 310 int mvpp2_prs_add_flow(struct mvpp2 *priv, int flow, u32 ri, u32 ri_mask);
|
/drivers/md/ |
D | md-cluster.c | 261 struct resync_info *ri; in add_resync_info() local 263 ri = (struct resync_info *)lockres->lksb.sb_lvbptr; in add_resync_info() 264 ri->lo = cpu_to_le64(lo); in add_resync_info() 265 ri->hi = cpu_to_le64(hi); in add_resync_info() 271 struct resync_info ri; in read_resync_info() local 276 memcpy(&ri, lockres->lksb.sb_lvbptr, sizeof(struct resync_info)); in read_resync_info() 277 if (le64_to_cpu(ri.hi) > 0) { in read_resync_info() 278 cinfo->suspend_hi = le64_to_cpu(ri.hi); in read_resync_info() 279 cinfo->suspend_lo = le64_to_cpu(ri.lo); in read_resync_info() 1331 struct resync_info ri; in resync_info_update() local [all …]
|
/drivers/gpu/drm/nouveau/dispnv50/ |
D | headc57d.c | 111 u16 ri = 0, gi = 0, bi = 0, i; in headc57d_olut_load_8() local 114 ri = (drm_color_lut_extract(in-> red, 16) - r) / 4; in headc57d_olut_load_8() 120 writew(r + ri * i, mem + 0); in headc57d_olut_load_8()
|
/drivers/net/wireless/ath/wil6210/ |
D | main.c | 655 int ri = vif->bcast_ring, rc; in wil_bcast_init() local 657 if (ri >= 0 && wil->ring_tx[ri].va) in wil_bcast_init() 660 ri = wil_find_free_ring(wil); in wil_bcast_init() 661 if (ri < 0) in wil_bcast_init() 662 return ri; in wil_bcast_init() 664 vif->bcast_ring = ri; in wil_bcast_init() 665 rc = wil->txrx_ops.ring_init_bcast(vif, ri, 1 << bcast_ring_order); in wil_bcast_init() 675 int ri = vif->bcast_ring; in wil_bcast_fini() local 677 if (ri < 0) in wil_bcast_fini() 681 wil_ring_fini_tx(wil, ri); in wil_bcast_fini()
|
/drivers/mmc/host/ |
D | vub300.c | 614 int ri = 0; in __vub300_irqpoll_response() local 616 add_offloaded_reg(vub300, &vub300->resp.irq.reg[ri]); in __vub300_irqpoll_response() 617 ri += 1; in __vub300_irqpoll_response() 632 int ri = 0; in __vub300_irqpoll_response() local 634 add_offloaded_reg(vub300, &vub300->resp.irq.reg[ri]); in __vub300_irqpoll_response() 635 ri += 1; in __vub300_irqpoll_response() 1646 int ri = 0; in __vub300_command_response() local 1648 add_offloaded_reg(vub300, &vub300->resp.pig.reg[ri]); in __vub300_command_response() 1649 ri += 1; in __vub300_command_response() 1660 int ri = 0; in __vub300_command_response() local [all …]
|
/drivers/gpu/drm/virtio/ |
D | virtgpu_ioctl.c | 340 struct drm_virtgpu_resource_info *ri = data; in virtio_gpu_resource_info_ioctl() local 344 gobj = drm_gem_object_lookup(file_priv, ri->bo_handle); in virtio_gpu_resource_info_ioctl() 350 ri->size = qobj->gem_base.size; in virtio_gpu_resource_info_ioctl() 351 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 | 155 ri, // (not used in all products) member
|
D | keyspan_usa26msg.h | 214 ri, // USA17: reports RI pin member
|