Lines Matching refs:opcode_index
267 uint16_t opcode_index; in spi_setup_opcode() local
274 for (opcode_index = 0; opcode_index < ctlr->menubytes; in spi_setup_opcode()
275 opcode_index++) { in spi_setup_opcode()
276 if (opmenu[opcode_index] == trans->opcode) in spi_setup_opcode()
280 if (opcode_index == ctlr->menubytes) { in spi_setup_opcode()
287 optype = (optypes >> (opcode_index * 2)) & 0x3; in spi_setup_opcode()
299 return opcode_index; in spi_setup_opcode()
375 int16_t opcode_index; in ich_spi_xfer() local
446 opcode_index = spi_setup_opcode(ctlr, trans, lock); in ich_spi_xfer()
447 if (opcode_index < 0) in ich_spi_xfer()
483 control = SPIC_SCGO | ((opcode_index & 0x07) << 4); in ich_spi_xfer()