Lines Matching defs:sbh
133 sb_gpioout(robo->sbh, robo->ss | robo->sck | robo->mosi, robo->ss, GPIO_DRV_PRIORITY);
134 sb_gpioouten(robo->sbh, robo->ss | robo->sck | robo->mosi,
143 sb_gpioouten(robo->sbh, robo->ss | robo->sck | robo->mosi, 0, GPIO_DRV_PRIORITY);
158 sb_gpioout(robo->sbh, robo->sck, 0, GPIO_DRV_PRIORITY);
163 sb_gpioout(robo->sbh, robo->mosi, robo->mosi, GPIO_DRV_PRIORITY);
165 sb_gpioout(robo->sbh, robo->mosi, 0, GPIO_DRV_PRIORITY);
169 sb_gpioout(robo->sbh, robo->sck, robo->sck, GPIO_DRV_PRIORITY);
189 sb_gpioout(robo->sbh, robo->sck, 0, GPIO_DRV_PRIORITY);
193 if (sb_gpioin(robo->sbh) & robo->miso)
197 sb_gpioout(robo->sbh, robo->sck, robo->sck, GPIO_DRV_PRIORITY);
225 sb_gpioout(robo->sbh, robo->ss, 0, GPIO_DRV_PRIORITY);
228 sb_gpioout(robo->sbh, robo->ss, robo->ss, GPIO_DRV_PRIORITY);
543 bcm_robo_attach(sb_t *sbh, void *h, char *vars, miird_f miird, miiwr_f miiwr)
549 if (!(robo = MALLOC(sb_osh(sbh), sizeof(robo_info_t)))) {
550 ET_ERROR(("robo_attach: out of memory, malloced %d bytes", MALLOCED(sb_osh(sbh))));
556 robo->sbh = sbh;
575 sb_gpioout(robo->sbh, reset, 0, GPIO_DRV_PRIORITY);
576 sb_gpioouten(robo->sbh, reset, reset, GPIO_DRV_PRIORITY);
580 sb_gpioout(robo->sbh, reset, reset, GPIO_DRV_PRIORITY);
584 idx = sb_coreidx(robo->sbh);
586 if (sb_setcore(robo->sbh, SB_ROBO, 0)) {
589 sb_core_reset(robo->sbh, 0, 0);
592 sb_setcoreidx(robo->sbh, idx);
692 MFREE(sb_osh(robo->sbh), robo, sizeof(robo_info_t));