Home
last modified time | relevance | path

Searched refs:bandwidth (Results 1 – 25 of 208) sorted by relevance

123456789

/drivers/media/tuners/
Dsi2157.c402 u8 bandwidth, delivery_system; in si2157_set_params() local
415 bandwidth = 0x06; in si2157_set_params()
417 bandwidth = 0x07; in si2157_set_params()
419 bandwidth = 0x08; in si2157_set_params()
421 bandwidth = 0x0f; in si2157_set_params()
445 cmd.args[4] = delivery_system | bandwidth; in si2157_set_params()
491 dev->bandwidth = bandwidth; in si2157_set_params()
498 dev->bandwidth = 0; in si2157_set_params()
513 u32 bandwidth = 0; in si2157_set_analog_params() local
559 bandwidth = 8000000; in si2157_set_analog_params()
[all …]
Dmsi001.c37 struct v4l2_ctrl *bandwidth; member
132 unsigned int bandwidth; in msi001_set_tuner() local
175 bandwidth = dev->bandwidth->val; in msi001_set_tuner()
176 bandwidth = clamp(bandwidth, 200000U, 8000000U); in msi001_set_tuner()
179 if (bandwidth <= bandwidth_lut[i].freq) { in msi001_set_tuner()
180 bandwidth = bandwidth_lut[i].val; in msi001_set_tuner()
189 dev->bandwidth->val = bandwidth_lut[i].freq; in msi001_set_tuner()
245 reg |= bandwidth << 14; in msi001_set_tuner()
443 dev->bandwidth = v4l2_ctrl_new_std(&dev->hdl, &msi001_ctrl_ops, in msi001_probe()
Dfc0011.c63 u32 bandwidth; member
170 u32 bandwidth = p->bandwidth_hz / 1000; in fc0011_set_params() local
243 switch (bandwidth) { in fc0011_set_params()
251 bandwidth); in fc0011_set_params()
252 bandwidth = 6000; in fc0011_set_params()
431 (unsigned int)bandwidth); in fc0011_set_params()
434 priv->bandwidth = p->bandwidth_hz; in fc0011_set_params()
455 static int fc0011_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth) in fc0011_get_bandwidth() argument
459 *bandwidth = priv->bandwidth; in fc0011_get_bandwidth()
Dmt2266.c32 u32 bandwidth; member
155 priv->bandwidth = c->bandwidth_hz; in mt2266_set_params()
262 static int mt2266_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth) in mt2266_get_bandwidth() argument
265 *bandwidth = priv->bandwidth; in mt2266_get_bandwidth()
Dtuner-simple.c118 u32 bandwidth; member
791 priv->bandwidth = 0; in simple_set_params()
799 const u32 bandwidth) in simple_set_dvb() argument
806 if (bandwidth == 8000000 && in simple_set_dvb()
816 if (bandwidth == 8000000) in simple_set_dvb()
907 priv->bandwidth = c->bandwidth_hz; in simple_dvb_calc_regs()
928 prev_bw = priv->bandwidth; in simple_dvb_set_params()
937 priv->bandwidth = bw; in simple_dvb_set_params()
956 priv->bandwidth = prev_bw; in simple_dvb_set_params()
1028 static int simple_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth) in simple_get_bandwidth() argument
[all …]
/drivers/media/dvb-frontends/
Dtda826x.c67 u32 bandwidth; in tda826x_set_params() local
78 bandwidth = (878 * ksyms + 6500000) / 1000000 + 1; in tda826x_set_params()
79 if (bandwidth < 5) in tda826x_set_params()
80 bandwidth = 5; in tda826x_set_params()
81 else if (bandwidth > 36) in tda826x_set_params()
82 bandwidth = 36; in tda826x_set_params()
91 buf[5] = ((bandwidth - 5) << 3) | 7; /* baseband cut-off */ in tda826x_set_params()
Dstb6100.c241 static int stb6100_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth) in stb6100_get_bandwidth() argument
255 *bandwidth = state->bandwidth = bw * 1000; in stb6100_get_bandwidth()
256 dprintk(verbose, FE_DEBUG, 1, "bandwidth = %u Hz", state->bandwidth); in stb6100_get_bandwidth()
260 static int stb6100_set_bandwidth(struct dvb_frontend *fe, u32 bandwidth) in stb6100_set_bandwidth() argument
266 dprintk(verbose, FE_DEBUG, 1, "set bandwidth to %u Hz", bandwidth); in stb6100_set_bandwidth()
268 bandwidth /= 2; /* ZIF */ in stb6100_set_bandwidth()
270 if (bandwidth >= 36000000) /* F[4:0] BW/2 max =31+5=36 mhz for F=31 */ in stb6100_set_bandwidth()
272 else if (bandwidth <= 5000000) /* bw/2 min = 5Mhz for F=0 */ in stb6100_set_bandwidth()
275 tmp = (bandwidth + 500000) / 1000000 - 5; in stb6100_set_bandwidth()
495 state->bandwidth = 36000000; /* Hz */ in stb6100_init()
Dstb6100_cfg.h51 static int stb6100_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth) in stb6100_get_bandwidth() argument
58 err = tuner_ops->get_bandwidth(fe, bandwidth); in stb6100_get_bandwidth()
67 static int stb6100_set_bandwidth(struct dvb_frontend *fe, u32 bandwidth) in stb6100_set_bandwidth() argument
75 c->bandwidth_hz = bandwidth; in stb6100_set_bandwidth()
Dstb6100_proc.h64 static int stb6100_get_bandw(struct dvb_frontend *fe, u32 *bandwidth) in stb6100_get_bandw() argument
74 err = tuner_ops->get_bandwidth(fe, bandwidth); in stb6100_get_bandw()
87 static int stb6100_set_bandw(struct dvb_frontend *fe, u32 bandwidth) in stb6100_set_bandw() argument
95 c->bandwidth_hz = bandwidth; in stb6100_set_bandw()
Dstv6110.c165 static int stv6110_set_bandwidth(struct dvb_frontend *fe, u32 bandwidth) in stv6110_set_bandwidth() argument
171 if ((bandwidth / 2) > 36000000) /*BW/2 max=31+5=36 mhz for r8=31*/ in stv6110_set_bandwidth()
173 else if ((bandwidth / 2) < 5000000) /* BW/2 min=5Mhz for F=0 */ in stv6110_set_bandwidth()
176 r8 = (bandwidth / 2) / 1000000 - 5; in stv6110_set_bandwidth()
339 u32 bandwidth = carrier_width(c->symbol_rate, c->rolloff); in stv6110_set_params() local
342 stv6110_set_bandwidth(fe, bandwidth); in stv6110_set_params()
347 static int stv6110_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth) in stv6110_get_bandwidth() argument
356 *bandwidth = (r8 + 5) * 2000000;/* x2 for ZIF tuner BW/2 = F+5 Mhz */ in stv6110_get_bandwidth()
Dstb6000.c71 int bandwidth; in stb6000_set_params() local
83 bandwidth = p->symbol_rate / 1000000; in stb6000_set_params()
85 if (bandwidth > 31) in stb6000_set_params()
86 bandwidth = 31; in stb6000_set_params()
124 buf[6] = (unsigned char)(bandwidth); in stb6000_set_params()
Dcxd2841er.c468 u32 bandwidth);
471 u32 bandwidth);
474 u32 bandwidth);
477 u32 bandwidth);
1186 u32 bandwidth, int *offset) in cxd2841er_get_carrier_offset_i() argument
1207 switch (bandwidth) { in cxd2841er_get_carrier_offset_i()
1219 __func__, bandwidth); in cxd2841er_get_carrier_offset_i()
1224 __func__, bandwidth, *offset); in cxd2841er_get_carrier_offset_i()
1230 u32 bandwidth, int *offset) in cxd2841er_get_carrier_offset_t() argument
1250 *offset *= (bandwidth / 1000000); in cxd2841er_get_carrier_offset_t()
[all …]
Dsi2168.c237 u8 bandwidth, delivery_system; in si2168_set_frontend() local
269 bandwidth = 0x02; in si2168_set_frontend()
271 bandwidth = 0x05; in si2168_set_frontend()
273 bandwidth = 0x06; in si2168_set_frontend()
275 bandwidth = 0x07; in si2168_set_frontend()
277 bandwidth = 0x08; in si2168_set_frontend()
279 bandwidth = 0x09; in si2168_set_frontend()
281 bandwidth = 0x0a; in si2168_set_frontend()
283 bandwidth = 0x0f; in si2168_set_frontend()
346 cmd.args[4] = delivery_system | bandwidth; in si2168_set_frontend()
Das102_fe.c68 tune_args.bandwidth = BW_8_MHZ; in as102_fe_set_frontend()
71 tune_args.bandwidth = BW_7_MHZ; in as102_fe_set_frontend()
74 tune_args.bandwidth = BW_6_MHZ; in as102_fe_set_frontend()
77 tune_args.bandwidth = BW_8_MHZ; in as102_fe_set_frontend()
145 tune_args.bandwidth, in as102_fe_set_frontend()
Dtda8261_cfg.h43 static int tda8261_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth) in tda8261_get_bandwidth() argument
46 *bandwidth = 40000000; in tda8261_get_bandwidth()
Dstv6110x.h38 int (*tuner_set_bandwidth) (struct dvb_frontend *fe, u32 bandwidth);
39 int (*tuner_get_bandwidth) (struct dvb_frontend *fe, u32 *bandwidth);
/drivers/firewire/
Dcore-iso.c205 int bandwidth, bool allocate) in manage_bandwidth() argument
216 new = allocate ? old - bandwidth : old + bandwidth; in manage_bandwidth()
228 return allocate ? -EAGAIN : bandwidth; in manage_bandwidth()
232 return bandwidth; in manage_bandwidth()
339 u64 channels_mask, int *channel, int *bandwidth, in fw_iso_resource_manage() argument
364 *bandwidth = 0; in fw_iso_resource_manage()
366 if (*bandwidth == 0) in fw_iso_resource_manage()
369 ret = manage_bandwidth(card, irm_id, generation, *bandwidth, allocate); in fw_iso_resource_manage()
371 *bandwidth = 0; in fw_iso_resource_manage()
/drivers/staging/pi433/
Drf69.c465 u8 bandwidth; in rf69_set_bandwidth_intern() local
481 bandwidth = rf69_read_reg(spi, reg); in rf69_set_bandwidth_intern()
484 bandwidth = bandwidth & MASK_BW_DCC_FREQ; in rf69_set_bandwidth_intern()
489 bandwidth = bandwidth | BW_MANT_16; in rf69_set_bandwidth_intern()
492 bandwidth = bandwidth | BW_MANT_20; in rf69_set_bandwidth_intern()
495 bandwidth = bandwidth | BW_MANT_24; in rf69_set_bandwidth_intern()
500 bandwidth = bandwidth | exponent; in rf69_set_bandwidth_intern()
503 return rf69_write_reg(spi, reg, bandwidth); in rf69_set_bandwidth_intern()
/drivers/media/usb/gspca/
Dgspca.c531 u32 bandwidth; in which_bandwidth() local
534 bandwidth = gspca_dev->pixfmt.sizeimage; in which_bandwidth()
538 bandwidth < gspca_dev->pixfmt.width * in which_bandwidth()
540 bandwidth = bandwidth * 3 / 8; /* 0.375 */ in which_bandwidth()
547 bandwidth *= parm.parm.capture.timeperframe.denominator; in which_bandwidth()
548 bandwidth /= parm.parm.capture.timeperframe.numerator; in which_bandwidth()
555 bandwidth *= 15; /* 15 fps */ in which_bandwidth()
557 bandwidth *= 30; /* 30 fps */ in which_bandwidth()
560 gspca_dbg(gspca_dev, D_STREAM, "min bandwidth: %d\n", bandwidth); in which_bandwidth()
561 return bandwidth; in which_bandwidth()
[all …]
/drivers/media/dvb-frontends/cxd2880/
Dcxd2880_tnrdmd_dvbt.c47 bandwidth, in x_tune_dvbt_demod_setting()
226 switch (bandwidth) { in x_tune_dvbt_demod_setting()
717 tune_param->bandwidth, 0, 0); in cxd2880_tnrdmd_dvbt_tune1()
722 x_tune_dvbt_demod_setting(tnr_dmd, tune_param->bandwidth, in cxd2880_tnrdmd_dvbt_tune1()
730 tune_param->bandwidth, in cxd2880_tnrdmd_dvbt_tune1()
764 tnr_dmd->bandwidth = tune_param->bandwidth; in cxd2880_tnrdmd_dvbt_tune2()
770 tnr_dmd->diver_sub->bandwidth = tune_param->bandwidth; in cxd2880_tnrdmd_dvbt_tune2()
Dcxd2880_tnrdmd_dvbt2.c26 bandwidth, in x_tune_dvbt2_demod_setting()
347 switch (bandwidth) { in x_tune_dvbt2_demod_setting()
869 tune_param->bandwidth, 0, 0); in cxd2880_tnrdmd_dvbt2_tune1()
874 x_tune_dvbt2_demod_setting(tnr_dmd, tune_param->bandwidth, in cxd2880_tnrdmd_dvbt2_tune1()
882 tune_param->bandwidth, in cxd2880_tnrdmd_dvbt2_tune1()
954 tnr_dmd->bandwidth = tune_param->bandwidth; in cxd2880_tnrdmd_dvbt2_tune2()
960 tnr_dmd->diver_sub->bandwidth = tune_param->bandwidth; in cxd2880_tnrdmd_dvbt2_tune2()
/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
Drf.c13 void rtl92ee_phy_rf6052_set_bandwidth(struct ieee80211_hw *hw, u8 bandwidth) in rtl92ee_phy_rf6052_set_bandwidth() argument
18 switch (bandwidth) { in rtl92ee_phy_rf6052_set_bandwidth()
36 pr_err("unknown bandwidth: %#X\n", bandwidth); in rtl92ee_phy_rf6052_set_bandwidth()
/drivers/media/test-drivers/vidtv/
Dvidtv_tuner.c100 u32 bandwidth; member
310 tuner_dev->hw_state.bandwidth = c->bandwidth_hz; in vidtv_tuner_set_params()
345 u32 *bandwidth) in vidtv_tuner_get_bandwidth() argument
349 *bandwidth = tuner_dev->hw_state.bandwidth; in vidtv_tuner_get_bandwidth()
/drivers/media/usb/dvb-usb-v2/
Dmxl111sf-tuner.c31 u32 bandwidth; member
305 state->bandwidth = c->bandwidth_hz; in mxl111sf_tuner_set_params()
390 static int mxl111sf_tuner_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth) in mxl111sf_tuner_get_bandwidth() argument
393 *bandwidth = state->bandwidth; in mxl111sf_tuner_get_bandwidth()
/drivers/media/usb/dvb-usb/
DcinergyT2.h56 uint8_t bandwidth; member
72 uint8_t bandwidth; member

123456789