• Home
  • Raw
  • Download

Lines Matching refs:cmd_addr

89 		u16 cmd_addr = OP_READ << edev->addrlen;  in eeprom_93xx46_read()  local
94 cmd_addr |= off & 0x7f; in eeprom_93xx46_read()
99 cmd_addr |= (off >> 1) & 0x3f; in eeprom_93xx46_read()
106 cmd_addr, edev->spi->max_speed_hz); in eeprom_93xx46_read()
109 cmd_addr <<= 1; in eeprom_93xx46_read()
115 t[0].tx_buf = (char *)&cmd_addr; in eeprom_93xx46_read()
153 u16 cmd_addr; in eeprom_93xx46_ew() local
155 cmd_addr = OP_START << edev->addrlen; in eeprom_93xx46_ew()
157 cmd_addr |= (is_on ? ADDR_EWEN : ADDR_EWDS) << 1; in eeprom_93xx46_ew()
160 cmd_addr |= (is_on ? ADDR_EWEN : ADDR_EWDS); in eeprom_93xx46_ew()
165 cmd_addr <<= 2; in eeprom_93xx46_ew()
170 is_on ? "en" : "ds", cmd_addr, bits); in eeprom_93xx46_ew()
175 t.tx_buf = &cmd_addr; in eeprom_93xx46_ew()
206 u16 cmd_addr; in eeprom_93xx46_write_word() local
208 cmd_addr = OP_WRITE << edev->addrlen; in eeprom_93xx46_write_word()
211 cmd_addr |= off & 0x7f; in eeprom_93xx46_write_word()
215 cmd_addr |= (off >> 1) & 0x3f; in eeprom_93xx46_write_word()
220 dev_dbg(&edev->spi->dev, "write cmd 0x%x\n", cmd_addr); in eeprom_93xx46_write_word()
225 t[0].tx_buf = (char *)&cmd_addr; in eeprom_93xx46_write_word()
296 u16 cmd_addr; in eeprom_93xx46_eral() local
298 cmd_addr = OP_START << edev->addrlen; in eeprom_93xx46_eral()
300 cmd_addr |= ADDR_ERAL << 1; in eeprom_93xx46_eral()
303 cmd_addr |= ADDR_ERAL; in eeprom_93xx46_eral()
308 cmd_addr <<= 2; in eeprom_93xx46_eral()
312 dev_dbg(&edev->spi->dev, "eral cmd 0x%04x, %d bits\n", cmd_addr, bits); in eeprom_93xx46_eral()
317 t.tx_buf = &cmd_addr; in eeprom_93xx46_eral()