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