Lines Matching refs:i2bsc_t
65 static void i2bsc_acquire(i2bsc_t *, dev_info_t *dip,
67 static void i2bsc_release(i2bsc_t *);
77 static int i2bsc_setup_regs(i2bsc_t *);
78 static void i2bsc_start_session(i2bsc_t *);
79 static void i2bsc_fail_session(i2bsc_t *);
80 static int i2bsc_end_session(i2bsc_t *);
81 static void i2bsc_free_regs(i2bsc_t *);
84 static void i2bsc_trace(i2bsc_t *, char, const char *,
86 static int i2bsc_notify_max_transfer_size(i2bsc_t *);
87 static int i2bsc_discover_capability(i2bsc_t *);
88 static void i2bsc_put8(i2bsc_t *, uint8_t, uint8_t, uint8_t);
89 static uint8_t i2bsc_get8(i2bsc_t *, uint8_t, uint8_t);
90 static int i2bsc_safe_upload(i2bsc_t *, i2c_transfer_t *);
91 static boolean_t i2bsc_is_firmware_broken(i2bsc_t *);
192 status = ddi_soft_state_init(&i2bsc_state, sizeof (i2bsc_t),
229 i2bsc_t *i2c;
232 i2c = (i2bsc_t *)ddi_get_soft_state(i2bsc_state, instance);
254 i2bsc_t *i2c;
264 i2c = (i2bsc_t *)ddi_get_soft_state(i2bsc_state, instance);
367 i2bsc_t *i2c;
376 i2c = (i2bsc_t *)ddi_get_soft_state(i2bsc_state, instance);
400 i2bsc_t *i2c;
409 i2c = (i2bsc_t *)ddi_get_soft_state(i2bsc_state, instance);
425 i2bsc_t *i2c;
431 i2c = (i2bsc_t *)ddi_get_soft_state(i2bsc_state, getminor(dev));
487 i2bsc_t *i2c;
490 i2c = (i2bsc_t *)ddi_get_soft_state(i2bsc_state, instance);
532 i2bsc_t *i2c;
536 i2c = (i2bsc_t *)ddi_get_soft_state(i2bsc_state, instance);
549 i2bsc_t *i2c;
553 i2c = (i2bsc_t *)ddi_get_soft_state(i2bsc_state, instance);
563 i2bsc_acquire(i2bsc_t *i2c, dev_info_t *dip, i2c_transfer_t *tp)
579 i2bsc_release(i2bsc_t *i2c)
591 i2bsc_t *i2c;
599 i2c = (i2bsc_t *)ddi_get_soft_state(i2bsc_state, ddi_get_instance(dip));
654 i2bsc_t *i2c;
657 i2c = (i2bsc_t *)ddi_get_soft_state(i2bsc_state, ddi_get_instance(dip));
678 i2bsc_setup_regs(i2bsc_t *i2c)
708 i2bsc_free_regs(i2bsc_t *i2c)
749 static int i2bsc_bscbus_state(i2bsc_t *i2c)
761 static void i2bsc_clear_acc_fault(i2bsc_t *i2c)
770 i2bsc_start_session(i2bsc_t *i2c)
777 i2bsc_fail_session(i2bsc_t *i2c)
784 i2bsc_end_session(i2bsc_t *i2c)
797 i2bsc_is_firmware_broken(i2bsc_t *i2c)
834 i2bsc_put8(i2bsc_t *i2c, uint8_t space, uint8_t index, uint8_t value)
868 i2bsc_get8(i2bsc_t *i2c, uint8_t space, uint8_t index)
904 i2bsc_put8_once(i2bsc_t *i2c, uint8_t space, uint8_t index, uint8_t value)
919 i2bsc_get8_once(i2bsc_t *i2c, uint8_t space, uint8_t index)
938 i2bsc_notify_max_transfer_size(i2bsc_t *i2c)
965 i2bsc_discover_capability(i2bsc_t *i2c)
980 i2bsc_upload_preamble(i2bsc_t *i2c, i2c_transfer_t *tp)
1043 i2bsc_upload(i2bsc_t *i2c, i2c_transfer_t *tp)
1140 i2bsc_safe_upload(i2bsc_t *i2c, i2c_transfer_t *tp)
1186 i2bsc_t *i2c;
1188 i2c = (i2bsc_t *)ddi_get_soft_state(i2bsc_state,
1226 i2bsc_trace(i2bsc_t *ssp, char code, const char *caller,
1253 i2bsc_trace(i2bsc_t *ssp, char code, const char *caller,