Lines Matching defs:div
440 u16 div, u8 config, u8 cb)
475 buffer[0] = (div>>8) & 0x7f;
476 buffer[1] = div & 0xff;
547 u16 div;
585 div = params->frequency + IFPCoff + offset;
588 "Offset=%d.%02d MHz, div=%0d\n",
591 offset / 16, offset % 16 * 100 / 16, div);
596 if (t_params->cb_first_if_lower_freq && div < priv->last_div) {
599 buffer[2] = (div>>8) & 0x7f;
600 buffer[3] = div & 0xff;
602 buffer[0] = (div>>8) & 0x7f;
603 buffer[1] = div & 0xff;
607 priv->last_div = div;
659 simple_post_tune(fe, &buffer[0], div, config, cb);
670 u16 div;
709 div = (freq + 400) / 800;
711 if (t_params->cb_first_if_lower_freq && div < priv->last_div) {
714 buffer[2] = (div>>8) & 0x7f;
715 buffer[3] = div & 0xff;
717 buffer[0] = (div>>8) & 0x7f;
718 buffer[1] = div & 0xff;
723 priv->last_div = div;
836 u32 div;
854 div = ((frequency + t_params->iffreq) * 62500 + offset +
857 buf[0] = div >> 8;
858 buf[1] = div & 0xff;
864 tuner_dbg("%s: div=%d | buf=0x%02x,0x%02x,0x%02x,0x%02x\n",
865 tun->name, div, buf[0], buf[1], buf[2], buf[3]);
868 return (div * tun->stepsize) - t_params->iffreq;