Lines Matching refs:cmd_addr

109 		u16 cmd_addr = OP_READ << edev->addrlen;  in eeprom_93xx46_read()  local
113 cmd_addr |= off; in eeprom_93xx46_read()
117 cmd_addr |= (off >> 1); in eeprom_93xx46_read()
123 cmd_addr, edev->spi->max_speed_hz); in eeprom_93xx46_read()
126 cmd_addr <<= 1; in eeprom_93xx46_read()
132 t[0].tx_buf = (char *)&cmd_addr; in eeprom_93xx46_read()
170 u16 cmd_addr; in eeprom_93xx46_ew() local
175 cmd_addr = OP_START << edev->addrlen; in eeprom_93xx46_ew()
177 cmd_addr |= (is_on ? ADDR_EWEN : ADDR_EWDS) << 1; in eeprom_93xx46_ew()
179 cmd_addr |= (is_on ? ADDR_EWEN : ADDR_EWDS); in eeprom_93xx46_ew()
182 cmd_addr <<= 2; in eeprom_93xx46_ew()
187 is_on ? "en" : "ds", cmd_addr, bits); in eeprom_93xx46_ew()
192 t.tx_buf = &cmd_addr; in eeprom_93xx46_ew()
223 u16 cmd_addr; in eeprom_93xx46_write_word() local
231 cmd_addr = OP_WRITE << edev->addrlen; in eeprom_93xx46_write_word()
234 cmd_addr |= off; in eeprom_93xx46_write_word()
237 cmd_addr |= (off >> 1); in eeprom_93xx46_write_word()
241 dev_dbg(&edev->spi->dev, "write cmd 0x%x\n", cmd_addr); in eeprom_93xx46_write_word()
246 t[0].tx_buf = (char *)&cmd_addr; in eeprom_93xx46_write_word()
317 u16 cmd_addr; in eeprom_93xx46_eral() local
322 cmd_addr = OP_START << edev->addrlen; in eeprom_93xx46_eral()
324 cmd_addr |= ADDR_ERAL << 1; in eeprom_93xx46_eral()
326 cmd_addr |= ADDR_ERAL; in eeprom_93xx46_eral()
329 cmd_addr <<= 2; in eeprom_93xx46_eral()
333 dev_dbg(&edev->spi->dev, "eral cmd 0x%04x, %d bits\n", cmd_addr, bits); in eeprom_93xx46_eral()
338 t.tx_buf = &cmd_addr; in eeprom_93xx46_eral()