Lines Matching refs:dpst
2085 struct dib7000p_state *dpst; in dib7000p_i2c_enumeration() local
2089 dpst = kzalloc(sizeof(struct dib7000p_state), GFP_KERNEL); in dib7000p_i2c_enumeration()
2090 if (!dpst) in dib7000p_i2c_enumeration()
2093 dpst->i2c_adap = i2c; in dib7000p_i2c_enumeration()
2094 mutex_init(&dpst->i2c_buffer_lock); in dib7000p_i2c_enumeration()
2097 dpst->cfg = cfg[k]; in dib7000p_i2c_enumeration()
2104 dpst->i2c_addr = new_addr; in dib7000p_i2c_enumeration()
2105 dib7000p_write_word(dpst, 1287, 0x0003); /* sram lead in, rdy */ in dib7000p_i2c_enumeration()
2106 if (dib7000p_identify(dpst) != 0) { in dib7000p_i2c_enumeration()
2107 dpst->i2c_addr = default_addr; in dib7000p_i2c_enumeration()
2108 dib7000p_write_word(dpst, 1287, 0x0003); /* sram lead in, rdy */ in dib7000p_i2c_enumeration()
2109 if (dib7000p_identify(dpst) != 0) { in dib7000p_i2c_enumeration()
2111 kfree(dpst); in dib7000p_i2c_enumeration()
2117 dib7000p_set_output_mode(dpst, OUTMODE_DIVERSITY); in dib7000p_i2c_enumeration()
2120 dib7000p_write_word(dpst, 1285, (new_addr << 2) | 0x2); in dib7000p_i2c_enumeration()
2126 dpst->cfg = cfg[k]; in dib7000p_i2c_enumeration()
2128 dpst->i2c_addr = (cfg[k].default_i2c_addr + k) << 1; in dib7000p_i2c_enumeration()
2130 dpst->i2c_addr = (0x40 + k) << 1; in dib7000p_i2c_enumeration()
2133 dib7000p_write_word(dpst, 1285, dpst->i2c_addr << 2); in dib7000p_i2c_enumeration()
2136 dib7000p_set_output_mode(dpst, OUTMODE_HIGH_Z); in dib7000p_i2c_enumeration()
2139 kfree(dpst); in dib7000p_i2c_enumeration()