Lines Matching defs:layer

1998 	switch (c->layer[layer_index].modulation) {
2014 switch (c->layer[layer_index].fec) {
2033 time_intlv = fls(c->layer[layer_index].interleaving);
2037 dib8000_write_word(state, 2 + layer_index, (constellation << 10) | ((c->layer[layer_index].segment_count & 0xf) << 6) | (cr << 3) | time_intlv);
2038 if (c->layer[layer_index].segment_count > 0) {
2042 if (c->layer[layer_index].modulation == QAM_16 || c->layer[layer_index].modulation == QAM_64)
2043 max_constellation = c->layer[layer_index].modulation;
2046 if (c->layer[layer_index].modulation == QAM_64)
2047 max_constellation = c->layer[layer_index].modulation;
2226 if (c->layer[0].modulation == DQPSK) /* DQPSK */
2231 if (c->layer[0].modulation == DQPSK) { /* DQPSK on central segment */
2232 if (c->layer[1].modulation == DQPSK) /* DQPSK on external segments */
2237 if (c->layer[1].modulation == DQPSK) /* DQPSK on external segments */
2246 if (c->layer[0].modulation == DQPSK) /* DQPSK */
2251 if (c->layer[0].modulation == DQPSK) { /* DQPSK on central segment */
2252 if (c->layer[1].modulation == DQPSK) /* DQPSK on external segments */
2257 if (c->layer[1].modulation == DQPSK) /* DQPSK on external segments */
2268 if (c->layer[0].modulation == DQPSK) /* DQPSK */
2273 if (c->layer[0].modulation == DQPSK) { /* DQPSK on central segment */
2274 if (c->layer[1].modulation == DQPSK) /* DQPSK on external segments */
2279 if (c->layer[1].modulation == DQPSK) /* DQPSK on external segments */
2391 state->seg_diff_mask = (c->layer[0].modulation == DQPSK) << permu_seg[0];
2393 nbseg_diff += (c->layer[i].modulation == DQPSK) * c->layer[i].segment_count;
2398 nbseg_diff += (c->layer[i].modulation == DQPSK) * c->layer[i].segment_count;
2411 state->layer_b_nb_seg = c->layer[1].segment_count;
2412 state->layer_c_nb_seg = c->layer[2].segment_count;
2474 tmcc_pow += (((c->layer[i].modulation == DQPSK) * 4 + 1) * c->layer[i].segment_count) ;
2565 c->layer[0].modulation = QAM_64;
2566 c->layer[0].fec = FEC_2_3;
2567 c->layer[0].interleaving = 0;
2568 c->layer[0].segment_count = 13;
2601 c->layer[0].modulation = QAM_64;
2602 c->layer[0].fec = FEC_2_3;
2603 c->layer[0].interleaving = 0;
2604 c->layer[0].segment_count = 13;
2606 c->layer[0].segment_count = 13;
2941 * It requires that both per-layer and per-transponder parameters to be
2972 * If no layer is enabled, assume auto mode, as at least one
2973 * layer should be enabled
2976 dprintk("no layer modulation specified\n");
2981 * Check if the per-layer parameters aren't auto and
2982 * disable a layer if segment count is 0 or invalid.
2988 if ((c->layer[i].segment_count > 13) ||
2989 (c->layer[i].segment_count == 0)) {
2994 n_segs += c->layer[i].segment_count;
2996 if ((c->layer[i].modulation == QAM_AUTO) ||
2997 (c->layer[i].fec == FEC_AUTO)) {
2998 dprintk("layer %c has either modulation or FEC auto\n",
3105 state->status = FE_STATUS_FFT_SUCCESS; /* signal to the upper layer, that there was a channel found and the parameters can be read */
3259 /* defines timeout for mpeg lock depending on interleaver length of longest layer */
3261 if (c->layer[i].interleaving >= deeper_interleaver) {
3262 dprintk("layer%i: time interleaver = %d\n", i, c->layer[i].interleaving);
3263 if (c->layer[i].segment_count > 0) { /* valid layer */
3264 deeper_interleaver = c->layer[0].interleaving;
3281 dprintk("Deeper interleaver mode = %d on layer %d : timeout mult factor = %d => will use timeout = %ld\n",
3292 dprintk("ISDB-T layer locks: Layer A %s, Layer B %s, Layer C %s\n",
3293 c->layer[0].segment_count ? (locks >> 7) & 0x1 ? "locked" : "NOT LOCKED" : "not enabled",
3294 c->layer[1].segment_count ? (locks >> 6) & 0x1 ? "locked" : "NOT LOCKED" : "not enabled",
3295 c->layer[2].segment_count ? (locks >> 5) & 0x1 ? "locked" : "NOT LOCKED" : "not enabled");
3299 /* signal to the upper layer, that there was a channel found and the parameters can be read */
3310 } else { /* we are done mpeg of the longest interleaver xas not locking but let's try if an other layer has locked in the same time */
3314 c->layer[0].segment_count ? (locks >> 7) & 0x1 ? "locked" : "NOT LOCKED" : "not enabled",
3315 c->layer[1].segment_count ? (locks >> 6) & 0x1 ? "locked" : "NOT LOCKED" : "not enabled",
3316 c->layer[2].segment_count ? (locks >> 5) & 0x1 ? "locked" : "NOT LOCKED" : "not enabled");
3447 state->fe[sub_index_frontend]->dtv_property_cache.layer[i].segment_count = state->fe[index_frontend]->dtv_property_cache.layer[i].segment_count;
3448 state->fe[sub_index_frontend]->dtv_property_cache.layer[i].interleaving = state->fe[index_frontend]->dtv_property_cache.layer[i].interleaving;
3449 state->fe[sub_index_frontend]->dtv_property_cache.layer[i].fec = state->fe[index_frontend]->dtv_property_cache.layer[i].fec;
3450 state->fe[sub_index_frontend]->dtv_property_cache.layer[i].modulation = state->fe[index_frontend]->dtv_property_cache.layer[i].modulation;
3508 c->layer[i].segment_count = val;
3517 i, c->layer[i].segment_count);
3523 c->layer[i].interleaving = val;
3526 i, c->layer[i].interleaving);
3531 c->layer[i].fec = FEC_1_2;
3536 c->layer[i].fec = FEC_2_3;
3541 c->layer[i].fec = FEC_3_4;
3546 c->layer[i].fec = FEC_5_6;
3551 c->layer[i].fec = FEC_7_8;
3560 c->layer[i].modulation = DQPSK;
3565 c->layer[i].modulation = QPSK;
3570 c->layer[i].modulation = QAM_16;
3576 c->layer[i].modulation = QAM_64;
3591 state->fe[index_frontend]->dtv_property_cache.layer[i].segment_count = c->layer[i].segment_count;
3592 state->fe[index_frontend]->dtv_property_cache.layer[i].interleaving = c->layer[i].interleaving;
3593 state->fe[index_frontend]->dtv_property_cache.layer[i].fec = c->layer[i].fec;
3594 state->fe[index_frontend]->dtv_property_cache.layer[i].modulation = c->layer[i].modulation;
3717 state->fe[l]->dtv_property_cache.layer[i].segment_count = state->fe[index_frontend]->dtv_property_cache.layer[i].segment_count;
3718 state->fe[l]->dtv_property_cache.layer[i].interleaving = state->fe[index_frontend]->dtv_property_cache.layer[i].interleaving;
3719 state->fe[l]->dtv_property_cache.layer[i].fec = state->fe[index_frontend]->dtv_property_cache.layer[i].fec;
3720 state->fe[l]->dtv_property_cache.layer[i].modulation = state->fe[index_frontend]->dtv_property_cache.layer[i].modulation;
4007 static u32 dib8000_get_time_us(struct dvb_frontend *fe, int layer)
4017 if (layer >= 0) {
4018 ini_layer = layer;
4019 end_layer = layer + 1;
4056 nsegs = c->layer[i].segment_count;
4060 switch (c->layer[i].modulation) {
4074 switch (c->layer[i].fec) {
4098 interleaving = c->layer[i].interleaving;
4221 unsigned nsegs = c->layer[i].segment_count;
4232 dprintk("Next layer %c stats will be available in %u us\n",