Lines Matching defs:statep

232 	static ds1337_state_t	*statep = NULL;
261 statep = ddi_get_soft_state(ds1337_statep, instance);
262 if (statep == NULL) {
269 statep->dip = dip;
271 if (i2c_client_register(dip, &statep->ds1337_i2c_hdl) != I2C_SUCCESS) {
281 (void) i2c_transfer_alloc(statep->ds1337_i2c_hdl,
289 if ((i2c_transfer(statep->ds1337_i2c_hdl, i2c_tp)) != I2C_SUCCESS) {
290 (void) i2c_transfer_free(statep->ds1337_i2c_hdl, i2c_tp);
291 i2c_client_unregister(statep->ds1337_i2c_hdl);
301 (void) i2c_transfer_free(statep->ds1337_i2c_hdl, i2c_tp);
308 (void) i2c_transfer_alloc(statep->ds1337_i2c_hdl, &i2c_tp,
315 if ((i2c_transfer(statep->ds1337_i2c_hdl, i2c_tp))
317 (void) i2c_transfer_free(statep->ds1337_i2c_hdl,
319 i2c_client_unregister(statep->ds1337_i2c_hdl);
327 (void) i2c_transfer_free(statep->ds1337_i2c_hdl, i2c_tp);
332 (void) i2c_transfer_alloc(statep->ds1337_i2c_hdl, &i2c_tp,
338 if ((i2c_transfer(statep->ds1337_i2c_hdl, i2c_tp))
340 (void) i2c_transfer_free(statep->ds1337_i2c_hdl,
342 i2c_client_unregister(statep->ds1337_i2c_hdl);
350 (void) i2c_transfer_free(statep->ds1337_i2c_hdl, i2c_tp);
356 ASSERT(statep->cycid == NULL);
357 statep->cycid = ddi_periodic_add(todds1337_cyclic, &soft_rtc,
359 statep->state = TOD_ATTACHED;
479 ds1337_state_t *statep = NULL;
490 statep = ddi_get_soft_state(ds1337_statep, instance);
491 if (statep == NULL) {
510 (void) i2c_transfer_alloc(statep->ds1337_i2c_hdl,
516 if ((i2c_transfer(statep->ds1337_i2c_hdl, i2c_tp)) != I2C_SUCCESS) {
517 (void) i2c_transfer_free(statep->ds1337_i2c_hdl, i2c_tp);
527 (void) i2c_transfer_free(statep->ds1337_i2c_hdl, i2c_tp);
529 (void) i2c_transfer_alloc(statep->ds1337_i2c_hdl,
536 if ((i2c_transfer(statep->ds1337_i2c_hdl, i2c_tp)) != I2C_SUCCESS) {
537 (void) i2c_transfer_free(statep->ds1337_i2c_hdl, i2c_tp);
545 (void) i2c_transfer_free(statep->ds1337_i2c_hdl, i2c_tp);
552 (void) i2c_transfer_alloc(statep->ds1337_i2c_hdl,
562 if ((i2c_transfer(statep->ds1337_i2c_hdl, i2c_tp)) != I2C_SUCCESS) {
563 (void) i2c_transfer_free(statep->ds1337_i2c_hdl, i2c_tp);
571 (void) i2c_transfer_free(statep->ds1337_i2c_hdl, i2c_tp);
577 (void) i2c_transfer_alloc(statep->ds1337_i2c_hdl,
584 if ((i2c_transfer(statep->ds1337_i2c_hdl, i2c_tp)) != I2C_SUCCESS) {
585 (void) i2c_transfer_free(statep->ds1337_i2c_hdl, i2c_tp);
593 (void) i2c_transfer_free(statep->ds1337_i2c_hdl, i2c_tp);
603 ds1337_state_t *statep = NULL;
614 statep = ddi_get_soft_state(ds1337_statep, instance);
615 if (statep == NULL) {
632 (void) i2c_transfer_alloc(statep->ds1337_i2c_hdl,
638 if ((i2c_transfer(statep->ds1337_i2c_hdl, i2c_tp)) != I2C_SUCCESS) {
639 (void) i2c_transfer_free(statep->ds1337_i2c_hdl, i2c_tp);
649 (void) i2c_transfer_free(statep->ds1337_i2c_hdl, i2c_tp);
651 (void) i2c_transfer_alloc(statep->ds1337_i2c_hdl,
658 if ((i2c_transfer(statep->ds1337_i2c_hdl, i2c_tp)) != I2C_SUCCESS) {
659 (void) i2c_transfer_free(statep->ds1337_i2c_hdl, i2c_tp);
667 (void) i2c_transfer_free(statep->ds1337_i2c_hdl, i2c_tp);
672 (void) i2c_transfer_alloc(statep->ds1337_i2c_hdl,
678 if ((i2c_transfer(statep->ds1337_i2c_hdl, i2c_tp)) != I2C_SUCCESS) {
679 (void) i2c_transfer_free(statep->ds1337_i2c_hdl, i2c_tp);
689 (void) i2c_transfer_free(statep->ds1337_i2c_hdl, i2c_tp);
691 (void) i2c_transfer_alloc(statep->ds1337_i2c_hdl,
698 if ((i2c_transfer(statep->ds1337_i2c_hdl, i2c_tp)) != I2C_SUCCESS) {
699 (void) i2c_transfer_free(statep->ds1337_i2c_hdl, i2c_tp);
707 (void) i2c_transfer_free(statep->ds1337_i2c_hdl, i2c_tp);
735 static ds1337_state_t *statep = NULL;
744 statep = ddi_get_soft_state(ds1337_statep, instance);
745 if (statep == NULL) {
756 if ((i2c_transfer_alloc(statep->ds1337_i2c_hdl, &i2c_tp, 1,
769 if ((i2c_cmd_status = i2c_transfer(statep->ds1337_i2c_hdl,
783 if ((i2c_cmd_status = i2c_transfer(statep->ds1337_i2c_hdl,
815 (void) i2c_transfer_free(statep->ds1337_i2c_hdl, i2c_tp);
825 ds1337_state_t *statep = NULL;
834 statep = ddi_get_soft_state(ds1337_statep, instance);
835 if (statep == NULL) {
839 if ((i2c_cmd_status = i2c_transfer_alloc(statep->ds1337_i2c_hdl,
856 if ((i2c_cmd_status = i2c_transfer(statep->ds1337_i2c_hdl,
858 (void) i2c_transfer_free(statep->ds1337_i2c_hdl, i2c_tp);
864 (void) i2c_transfer_free(statep->ds1337_i2c_hdl, i2c_tp);