Lines Matching refs:v

126 static int bcm3510_writeB(struct bcm3510_state *state, u8 reg, bcm3510_register_value v)  in bcm3510_writeB()  argument
128 return bcm3510_writebytes(state,reg,&v.raw,1); in bcm3510_writeB()
131 static int bcm3510_readB(struct bcm3510_state *state, u8 reg, bcm3510_register_value *v) in bcm3510_readB() argument
133 return bcm3510_readbytes(state,reg,&v->raw,1); in bcm3510_readB()
139 bcm3510_register_value v; in bcm3510_hab_get_response() local
142 v.HABADR_a6.HABADR = 0; in bcm3510_hab_get_response()
143 if ((ret = bcm3510_writeB(st,0xa6,v)) < 0) in bcm3510_hab_get_response()
147 if ((ret = bcm3510_readB(st,0xa7,&v)) < 0) in bcm3510_hab_get_response()
149 buf[i] = v.HABDATA_a7; in bcm3510_hab_get_response()
156 bcm3510_register_value v,hab; in bcm3510_hab_send_request() local
162 if ((ret = bcm3510_readB(st,0xa8,&v)) < 0) in bcm3510_hab_send_request()
164 if (v.HABSTAT_a8.HABR) { in bcm3510_hab_send_request()
166 v.HABSTAT_a8.HABR = 0; in bcm3510_hab_send_request()
167 bcm3510_writeB(st,0xa8,v); in bcm3510_hab_send_request()
185 v.raw = 0; v.HABSTAT_a8.HABR = 1; v.HABSTAT_a8.LDHABR = 1; in bcm3510_hab_send_request()
186 if ((ret = bcm3510_writeB(st,0xa8,v)) < 0) in bcm3510_hab_send_request()
194 if ((ret = bcm3510_readB(st,0xa8,&v)) < 0) in bcm3510_hab_send_request()
197 if (!v.HABSTAT_a8.HABR) in bcm3510_hab_send_request()
682 bcm3510_register_value v; in bcm3510_reset() local
684 bcm3510_readB(st,0xa0,&v); v.HCTL1_a0.RESET = 1; in bcm3510_reset()
685 if ((ret = bcm3510_writeB(st,0xa0,v)) < 0) in bcm3510_reset()
691 if ((ret = bcm3510_readB(st,0xa2,&v)) < 0) in bcm3510_reset()
694 if (v.APSTAT1_a2.RESET) in bcm3510_reset()
703 bcm3510_register_value v; in bcm3510_clear_reset() local
707 v.raw = 0; in bcm3510_clear_reset()
708 if ((ret = bcm3510_writeB(st,0xa0,v)) < 0) in bcm3510_clear_reset()
714 if ((ret = bcm3510_readB(st,0xa2,&v)) < 0) in bcm3510_clear_reset()
718 if (!v.APSTAT1_a2.RESET) in bcm3510_clear_reset()
728 bcm3510_register_value v; in bcm3510_init_cold() local
731 if ((ret = bcm3510_readB(st,0xa2,&v)) < 0) in bcm3510_init_cold()
733 if (v.APSTAT1_a2.RUN) { in bcm3510_init_cold()
744 v.TSTCTL_2e.CTL = 0; in bcm3510_init_cold()
745 if ((ret = bcm3510_writeB(st,0x2e,v)) < 0) in bcm3510_init_cold()
798 bcm3510_register_value v; in bcm3510_attach() local
816 if ((ret = bcm3510_readB(state,0xe0,&v)) < 0) in bcm3510_attach()
819 deb_info("Revision: 0x%1x, Layer: 0x%1x.\n",v.REVID_e0.REV,v.REVID_e0.LAYER); in bcm3510_attach()
821 if ((v.REVID_e0.REV != 0x1 && v.REVID_e0.LAYER != 0xb) && /* cold */ in bcm3510_attach()
822 (v.REVID_e0.REV != 0x8 && v.REVID_e0.LAYER != 0x0)) /* warm */ in bcm3510_attach()
825 info("Revision: 0x%1x, Layer: 0x%1x.",v.REVID_e0.REV,v.REVID_e0.LAYER); in bcm3510_attach()