Lines Matching refs:cmd_addr
46 u16 cmd_addr; in eeprom_93xx46_bin_read() local
58 cmd_addr = OP_READ << edev->addrlen; in eeprom_93xx46_bin_read()
61 cmd_addr |= off & 0x7f; in eeprom_93xx46_bin_read()
64 cmd_addr |= off & 0x3f; in eeprom_93xx46_bin_read()
69 cmd_addr, edev->spi->max_speed_hz); in eeprom_93xx46_bin_read()
74 t[0].tx_buf = (char *)&cmd_addr; in eeprom_93xx46_bin_read()
109 u16 cmd_addr; in eeprom_93xx46_ew() local
111 cmd_addr = OP_START << edev->addrlen; in eeprom_93xx46_ew()
113 cmd_addr |= (is_on ? ADDR_EWEN : ADDR_EWDS) << 1; in eeprom_93xx46_ew()
116 cmd_addr |= (is_on ? ADDR_EWEN : ADDR_EWDS); in eeprom_93xx46_ew()
120 dev_dbg(&edev->spi->dev, "ew cmd 0x%04x\n", cmd_addr); in eeprom_93xx46_ew()
125 t.tx_buf = &cmd_addr; in eeprom_93xx46_ew()
156 u16 cmd_addr; in eeprom_93xx46_write_word() local
158 cmd_addr = OP_WRITE << edev->addrlen; in eeprom_93xx46_write_word()
161 cmd_addr |= off & 0x7f; in eeprom_93xx46_write_word()
165 cmd_addr |= off & 0x3f; in eeprom_93xx46_write_word()
170 dev_dbg(&edev->spi->dev, "write cmd 0x%x\n", cmd_addr); in eeprom_93xx46_write_word()
175 t[0].tx_buf = (char *)&cmd_addr; in eeprom_93xx46_write_word()
251 u16 cmd_addr; in eeprom_93xx46_eral() local
253 cmd_addr = OP_START << edev->addrlen; in eeprom_93xx46_eral()
255 cmd_addr |= ADDR_ERAL << 1; in eeprom_93xx46_eral()
258 cmd_addr |= ADDR_ERAL; in eeprom_93xx46_eral()
265 t.tx_buf = &cmd_addr; in eeprom_93xx46_eral()