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