Lines Matching refs:regmap_dm

105 	struct regmap			*regmap_dm;  member
123 ret = regmap_write(db->regmap_dm, reg, val); in dm9051_set_reg()
135 ret = regmap_update_bits(db->regmap_dm, reg, mask, val); in dm9051_update_bits()
155 ret = regmap_read(db->regmap_dm, reg, &rb); in dm9051_dumpblk()
195 ret = regmap_noinc_write(db->regmap_dm, reg, buff, len); in dm9051_write_mem()
207 ret = regmap_noinc_read(db->regmap_dm, reg, buff, len); in dm9051_read_mem()
222 ret = regmap_read_poll_timeout(db->regmap_dm, DM9051_NSR, mval, in dm9051_nsr_poll()
234 ret = regmap_read_poll_timeout(db->regmap_dm, DM9051_EPCR, mval, in dm9051_epcr_poll()
287 ret = regmap_write(db->regmap_dm, DM9051_NCR, NCR_RST); /* NCR reset */ in dm9051_core_reset()
290 ret = regmap_write(db->regmap_dm, DM9051_MBNDRY, MBNDRY_BYTE); /* MemBound */ in dm9051_core_reset()
293 ret = regmap_write(db->regmap_dm, DM9051_PPCR, PPCR_PAUSE_COUNT); /* Pause Count */ in dm9051_core_reset()
296 ret = regmap_write(db->regmap_dm, DM9051_LMCR, db->lcr_all); /* LEDMode1 */ in dm9051_core_reset()
339 ret = regmap_write(db->regmap_dm, DM9051_EPAR, offset); in dm9051_eeprom_read()
343 ret = regmap_write(db->regmap_dm, DM9051_EPCR, EPCR_ERPRR); in dm9051_eeprom_read()
351 ret = regmap_write(db->regmap_dm, DM9051_EPCR, 0); in dm9051_eeprom_read()
362 ret = regmap_write(db->regmap_dm, DM9051_EPAR, offset); in dm9051_eeprom_write()
370 ret = regmap_write(db->regmap_dm, DM9051_EPCR, EPCR_WEP | EPCR_ERPRW); in dm9051_eeprom_write()
378 return regmap_write(db->regmap_dm, DM9051_EPCR, 0); in dm9051_eeprom_write()
386 ret = regmap_write(db->regmap_dm, DM9051_EPAR, DM9051_PHY | reg); in dm9051_phyread()
390 ret = regmap_write(db->regmap_dm, DM9051_EPCR, EPCR_ERPRR | EPCR_EPOS); in dm9051_phyread()
398 ret = regmap_write(db->regmap_dm, DM9051_EPCR, 0); in dm9051_phyread()
414 ret = regmap_write(db->regmap_dm, DM9051_EPAR, DM9051_PHY | reg); in dm9051_phywrite()
422 ret = regmap_write(db->regmap_dm, DM9051_EPCR, EPCR_EPOS | EPCR_ERPRW); in dm9051_phywrite()
430 return regmap_write(db->regmap_dm, DM9051_EPCR, 0); in dm9051_phywrite()
507 db->regmap_dm = devm_regmap_init_spi(db->spidev, &regconfigdm); in dm9051_map_init()
508 if (IS_ERR(db->regmap_dm)) in dm9051_map_init()
509 return PTR_ERR(db->regmap_dm); in dm9051_map_init()