Lines Matching refs:softc
207 sb1250_at24c02eeprom_t *softc;
210 softc = (sb1250_at24c02eeprom_t *) KMALLOC(sizeof(sb1250_at24c02eeprom_t),0);
218 softc->smbus_channel = SMBUS_CHANNEL((int)probe_a);
219 softc->smbus_address = (int)probe_b;
220 softc->env_offset = 0;
221 softc->env_size = AT24C02_EEPROM_SIZE;
225 cfe_attach(drv,softc,NULL,descr);
236 * ctx - device context (can obtain our softc here)
245 sb1250_at24c02eeprom_t *softc = ctx->dev_softc;
248 b = smbus_readbyte(softc->smbus_channel,
249 softc->smbus_address,
261 * ctx - device context (can obtain our softc here)
271 sb1250_at24c02eeprom_t *softc = ctx->dev_softc;
285 b = smbus_readbyte(softc->smbus_channel,
286 softc->smbus_address,
305 * ctx - device context (can obtain our softc here)
326 * ctx - device context (can obtain our softc here)
336 sb1250_at24c02eeprom_t *softc = ctx->dev_softc;
352 b = smbus_writebyte(softc->smbus_channel,
353 softc->smbus_address,
371 * ctx - device context (can obtain our softc here)
381 sb1250_at24c02eeprom_t *softc = ctx->dev_softc;
387 info.nvram_offset = softc->env_offset;
388 info.nvram_size = softc->env_size;
404 * ctx - device context (can obtain our softc here)