/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-regulator.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 | 1143 struct brcmf_rev_info *ri = &bus_if->drvr->revinfo; in brcmf_revinfo_read() local 1147 seq_printf(s, "vendorid: 0x%04x\n", ri->vendorid); in brcmf_revinfo_read() 1148 seq_printf(s, "deviceid: 0x%04x\n", ri->deviceid); in brcmf_revinfo_read() 1149 seq_printf(s, "radiorev: %s\n", brcmu_dotrev_str(ri->radiorev, drev)); in brcmf_revinfo_read() 1150 seq_printf(s, "chip: %s\n", ri->chipname); in brcmf_revinfo_read() 1151 seq_printf(s, "chippkg: %u\n", ri->chippkg); in brcmf_revinfo_read() 1152 seq_printf(s, "corerev: %u\n", ri->corerev); in brcmf_revinfo_read() 1153 seq_printf(s, "boardid: 0x%04x\n", ri->boardid); in brcmf_revinfo_read() 1154 seq_printf(s, "boardvendor: 0x%04x\n", ri->boardvendor); in brcmf_revinfo_read() 1155 seq_printf(s, "boardrev: %s\n", brcmu_boardrev_str(ri->boardrev, brev)); in brcmf_revinfo_read() [all …]
|
D | pno.c | 161 int err, i, ri; in brcmf_pno_set_random() local 163 for (ri = 0; ri < pi->n_reqs; ri++) in brcmf_pno_set_random() 164 if (pi->reqs[ri]->flags & NL80211_SCAN_FLAG_RANDOM_ADDR) { in brcmf_pno_set_random() 165 mac_addr = pi->reqs[ri]->mac_addr; in brcmf_pno_set_random() 166 mac_mask = pi->reqs[ri]->mac_addr_mask; in brcmf_pno_set_random() 188 pi->reqs[ri]->reqid, pfn_mac.mac); in brcmf_pno_set_random()
|
/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/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() 477 unsigned int ri; in mvpp2_prs_mac_promisc_set() local 483 ri = MVPP2_PRS_RI_L2_UCAST; in mvpp2_prs_mac_promisc_set() 487 ri = MVPP2_PRS_RI_L2_MCAST; in mvpp2_prs_mac_promisc_set() 502 mvpp2_prs_sram_ri_update(&pe, ri, MVPP2_PRS_RI_L2_CAST_MASK); in mvpp2_prs_mac_promisc_set() 895 unsigned int ri, unsigned int ri_mask) in mvpp2_prs_ip4_proto() argument 922 mvpp2_prs_sram_ri_update(&pe, ri, ri_mask | MVPP2_PRS_RI_IP_FRAG_MASK); in mvpp2_prs_ip4_proto() 949 mvpp2_prs_sram_ri_update(&pe, ri, ri_mask); in mvpp2_prs_ip4_proto() 951 mvpp2_prs_sram_ri_update(&pe, ri | MVPP2_PRS_RI_IP_FRAG_TRUE, in mvpp2_prs_ip4_proto() [all …]
|
D | mvpp2_prs.h | 278 u32 ri; member 293 u32 ri; member 312 int mvpp2_prs_add_flow(struct mvpp2 *priv, int flow, u32 ri, u32 ri_mask);
|
/drivers/vdpa/mlx5/net/ |
D | mlx5_vnet.c | 130 struct mlx5_vq_restore_info ri; member 2005 struct mlx5_vq_restore_info *ri = &mvq->ri; in save_channel_info() local 2015 ri->avail_index = attr.available_index; in save_channel_info() 2016 ri->used_index = attr.used_index; in save_channel_info() 2017 ri->ready = mvq->ready; in save_channel_info() 2018 ri->num_ent = mvq->num_ent; in save_channel_info() 2019 ri->desc_addr = mvq->desc_addr; in save_channel_info() 2020 ri->device_addr = mvq->device_addr; in save_channel_info() 2021 ri->driver_addr = mvq->driver_addr; in save_channel_info() 2022 ri->restore = true; in save_channel_info() [all …]
|
/drivers/media/v4l2-core/ |
D | v4l2-jpeg.c | 420 int ri; in jpeg_parse_restart_interval() local 427 ri = jpeg_get_word_be(stream); in jpeg_parse_restart_interval() 428 if (ri < 0) in jpeg_parse_restart_interval() 429 return ri; in jpeg_parse_restart_interval() 431 *restart_interval = ri; in jpeg_parse_restart_interval()
|
/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() 1337 struct resync_info ri; in resync_info_update() local [all …]
|
/drivers/gpu/drm/virtio/ |
D | virtgpu_ioctl.c | 313 struct drm_virtgpu_resource_info *ri = data; in virtio_gpu_resource_info_ioctl() local 317 gobj = drm_gem_object_lookup(file, ri->bo_handle); in virtio_gpu_resource_info_ioctl() 323 ri->size = qobj->base.base.size; in virtio_gpu_resource_info_ioctl() 324 ri->res_handle = qobj->hw_res_handle; in virtio_gpu_resource_info_ioctl() 326 ri->blob_mem = qobj->blob_mem; in virtio_gpu_resource_info_ioctl()
|
/drivers/gpu/drm/nouveau/dispnv50/ |
D | headc57d.c | 129 u16 ri = 0, gi = 0, bi = 0, i; in headc57d_olut_load_8() local 132 ri = (drm_color_lut_extract(in-> red, 16) - r) / 4; in headc57d_olut_load_8() 138 writew(r + ri * i, mem + 0); in headc57d_olut_load_8()
|
/drivers/net/wireless/ath/wil6210/ |
D | main.c | 644 int ri = vif->bcast_ring, rc; in wil_bcast_init() local 646 if (ri >= 0 && wil->ring_tx[ri].va) in wil_bcast_init() 649 ri = wil_find_free_ring(wil); in wil_bcast_init() 650 if (ri < 0) in wil_bcast_init() 651 return ri; in wil_bcast_init() 653 vif->bcast_ring = ri; in wil_bcast_init() 654 rc = wil->txrx_ops.ring_init_bcast(vif, ri, 1 << bcast_ring_order); in wil_bcast_init() 664 int ri = vif->bcast_ring; in wil_bcast_fini() local 666 if (ri < 0) in wil_bcast_fini() 670 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 …]
|
D | sdhci-esdhc-mcf.c | 227 int i, q, ri, rq; in esdhc_mcf_pltfm_set_clock() local 263 ri = i; in esdhc_mcf_pltfm_set_clock() 272 temp = ((sdclkfs[ri] >> 1) << 8) | ((rq - 1) << 4) | in esdhc_mcf_pltfm_set_clock()
|
/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
|