Lines Matching refs:dmcst
817 struct dib3000mc_state *dmcst;
823 dmcst = kzalloc(sizeof(struct dib3000mc_state), GFP_KERNEL);
824 if (dmcst == NULL)
827 dmcst->i2c_adap = i2c;
830 dmcst->cfg = &cfg[k];
834 dmcst->i2c_addr = new_addr;
835 if (dib3000mc_identify(dmcst) != 0) {
836 dmcst->i2c_addr = default_addr;
837 if (dib3000mc_identify(dmcst) != 0) {
839 kfree(dmcst);
844 dib3000mc_set_output_mode(dmcst, OUTMODE_MPEG2_PAR_CONT_CLK);
847 dib3000mc_write_word(dmcst, 1024, (new_addr << 3) | 0x1);
848 dmcst->i2c_addr = new_addr;
852 dmcst->cfg = &cfg[k];
853 dmcst->i2c_addr = DIB3000MC_I2C_ADDRESS[k];
855 dib3000mc_write_word(dmcst, 1024, dmcst->i2c_addr << 3);
858 dib3000mc_set_output_mode(dmcst, OUTMODE_HIGH_Z);
861 kfree(dmcst);