Home
last modified time | relevance | path

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

1234567

/drivers/media/dvb-frontends/
Dtda826x.c81 u32 bandwidth; in tda826x_set_params() local
92 bandwidth = (878 * ksyms + 6500000) / 1000000 + 1; in tda826x_set_params()
93 if (bandwidth < 5) in tda826x_set_params()
94 bandwidth = 5; in tda826x_set_params()
95 else if (bandwidth > 36) in tda826x_set_params()
96 bandwidth = 36; in tda826x_set_params()
105 buf[5] = ((bandwidth - 5) << 3) | 7; /* baseband cut-off */ in tda826x_set_params()
Dstb6100.c253 static int stb6100_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth) in stb6100_get_bandwidth() argument
267 *bandwidth = state->bandwidth = bw * 1000; in stb6100_get_bandwidth()
268 dprintk(verbose, FE_DEBUG, 1, "bandwidth = %u Hz", state->bandwidth); in stb6100_get_bandwidth()
272 static int stb6100_set_bandwidth(struct dvb_frontend *fe, u32 bandwidth) in stb6100_set_bandwidth() argument
278 dprintk(verbose, FE_DEBUG, 1, "set bandwidth to %u Hz", bandwidth); in stb6100_set_bandwidth()
280 bandwidth /= 2; /* ZIF */ in stb6100_set_bandwidth()
282 if (bandwidth >= 36000000) /* F[4:0] BW/2 max =31+5=36 mhz for F=31 */ in stb6100_set_bandwidth()
284 else if (bandwidth <= 5000000) /* bw/2 min = 5Mhz for F=0 */ in stb6100_set_bandwidth()
287 tmp = (bandwidth + 500000) / 1000000 - 5; in stb6100_set_bandwidth()
507 state->bandwidth = 36000000; /* Hz */ in stb6100_init()
Dstb6100_cfg.h63 static int stb6100_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth) in stb6100_get_bandwidth() argument
70 err = tuner_ops->get_bandwidth(fe, bandwidth); in stb6100_get_bandwidth()
79 static int stb6100_set_bandwidth(struct dvb_frontend *fe, u32 bandwidth) in stb6100_set_bandwidth() argument
87 c->bandwidth_hz = bandwidth; in stb6100_set_bandwidth()
Dstb6100_proc.h76 static int stb6100_get_bandw(struct dvb_frontend *fe, u32 *bandwidth) in stb6100_get_bandw() argument
86 err = tuner_ops->get_bandwidth(fe, bandwidth); in stb6100_get_bandw()
99 static int stb6100_set_bandw(struct dvb_frontend *fe, u32 bandwidth) in stb6100_set_bandw() argument
107 c->bandwidth_hz = bandwidth; in stb6100_set_bandw()
Dstv6110.c180 static int stv6110_set_bandwidth(struct dvb_frontend *fe, u32 bandwidth) in stv6110_set_bandwidth() argument
186 if ((bandwidth / 2) > 36000000) /*BW/2 max=31+5=36 mhz for r8=31*/ in stv6110_set_bandwidth()
188 else if ((bandwidth / 2) < 5000000) /* BW/2 min=5Mhz for F=0 */ in stv6110_set_bandwidth()
191 r8 = (bandwidth / 2) / 1000000 - 5; in stv6110_set_bandwidth()
363 u32 bandwidth = carrier_width(c->symbol_rate, c->rolloff); in stv6110_set_params() local
366 stv6110_set_bandwidth(fe, bandwidth); in stv6110_set_params()
371 static int stv6110_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth) in stv6110_get_bandwidth() argument
380 *bandwidth = (r8 + 5) * 2000000;/* x2 for ZIF tuner BW/2 = F+5 Mhz */ in stv6110_get_bandwidth()
Dstb6000.c85 int bandwidth; in stb6000_set_params() local
97 bandwidth = p->symbol_rate / 1000000; in stb6000_set_params()
99 if (bandwidth > 31) in stb6000_set_params()
100 bandwidth = 31; in stb6000_set_params()
138 buf[6] = (unsigned char)(bandwidth); in stb6000_set_params()
Dcxd2841er.c445 u32 bandwidth);
448 u32 bandwidth);
451 u32 bandwidth);
454 u32 bandwidth);
1148 u32 bandwidth, int *offset) in cxd2841er_get_carrier_offset_i() argument
1169 switch (bandwidth) { in cxd2841er_get_carrier_offset_i()
1181 __func__, bandwidth); in cxd2841er_get_carrier_offset_i()
1186 __func__, bandwidth, *offset); in cxd2841er_get_carrier_offset_i()
1192 u32 bandwidth, int *offset) in cxd2841er_get_carrier_offset_t() argument
1212 *offset *= (bandwidth / 1000000); in cxd2841er_get_carrier_offset_t()
[all …]
Dsi2168.c162 u8 bandwidth, delivery_system; in si2168_set_frontend() local
194 bandwidth = 0x02; in si2168_set_frontend()
196 bandwidth = 0x05; in si2168_set_frontend()
198 bandwidth = 0x06; in si2168_set_frontend()
200 bandwidth = 0x07; in si2168_set_frontend()
202 bandwidth = 0x08; in si2168_set_frontend()
204 bandwidth = 0x09; in si2168_set_frontend()
206 bandwidth = 0x0a; in si2168_set_frontend()
208 bandwidth = 0x0f; in si2168_set_frontend()
285 cmd.args[4] = delivery_system | bandwidth; in si2168_set_frontend()
Dtda8261_cfg.h55 static int tda8261_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth) in tda8261_get_bandwidth() argument
58 *bandwidth = 40000000; in tda8261_get_bandwidth()
Das102_fe.c77 tune_args.bandwidth = BW_8_MHZ; in as102_fe_set_frontend()
80 tune_args.bandwidth = BW_7_MHZ; in as102_fe_set_frontend()
83 tune_args.bandwidth = BW_6_MHZ; in as102_fe_set_frontend()
86 tune_args.bandwidth = BW_8_MHZ; in as102_fe_set_frontend()
154 tune_args.bandwidth, in as102_fe_set_frontend()
Dstv6110x.h47 int (*tuner_set_bandwidth) (struct dvb_frontend *fe, u32 bandwidth);
48 int (*tuner_get_bandwidth) (struct dvb_frontend *fe, u32 *bandwidth);
Drtl2832_sdr.c160 struct v4l2_ctrl *bandwidth; member
797 struct v4l2_ctrl *bandwidth; in rtl2832_sdr_set_tuner_freq() local
810 bandwidth = v4l2_ctrl_find(&dev->hdl, V4L2_CID_RF_TUNER_BANDWIDTH); in rtl2832_sdr_set_tuner_freq()
813 v4l2_ctrl_s_ctrl(bandwidth, dev->f_adc); in rtl2832_sdr_set_tuner_freq()
815 c->bandwidth_hz = v4l2_ctrl_g_ctrl(bandwidth); in rtl2832_sdr_set_tuner_freq()
1282 s32 val = dev->f_adc + div_u64(dev->bandwidth->step, 2); in rtl2832_sdr_s_ctrl()
1285 val = clamp_t(s32, val, dev->bandwidth->minimum, in rtl2832_sdr_s_ctrl()
1286 dev->bandwidth->maximum); in rtl2832_sdr_s_ctrl()
1287 offset = val - dev->bandwidth->minimum; in rtl2832_sdr_s_ctrl()
1288 offset = dev->bandwidth->step * in rtl2832_sdr_s_ctrl()
[all …]
Ddvb-pll.c41 u32 bandwidth; member
664 priv->bandwidth = c->bandwidth_hz; in dvb_pll_set_params()
689 priv->bandwidth = c->bandwidth_hz; in dvb_pll_calc_regs()
701 static int dvb_pll_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth) in dvb_pll_get_bandwidth() argument
704 *bandwidth = priv->bandwidth; in dvb_pll_get_bandwidth()
/drivers/firewire/
Dcore-iso.c236 int bandwidth, bool allocate) in manage_bandwidth() argument
247 new = allocate ? old - bandwidth : old + bandwidth; in manage_bandwidth()
259 return allocate ? -EAGAIN : bandwidth; in manage_bandwidth()
263 return bandwidth; in manage_bandwidth()
363 u64 channels_mask, int *channel, int *bandwidth, in fw_iso_resource_manage() argument
388 *bandwidth = 0; in fw_iso_resource_manage()
390 if (*bandwidth == 0) in fw_iso_resource_manage()
393 ret = manage_bandwidth(card, irm_id, generation, *bandwidth, allocate); in fw_iso_resource_manage()
395 *bandwidth = 0; in fw_iso_resource_manage()
/drivers/media/tuners/
Dmsi001.c46 struct v4l2_ctrl *bandwidth; member
141 unsigned int bandwidth; in msi001_set_tuner() local
184 bandwidth = dev->bandwidth->val; in msi001_set_tuner()
185 bandwidth = clamp(bandwidth, 200000U, 8000000U); in msi001_set_tuner()
188 if (bandwidth <= bandwidth_lut[i].freq) { in msi001_set_tuner()
189 bandwidth = bandwidth_lut[i].val; in msi001_set_tuner()
198 dev->bandwidth->val = bandwidth_lut[i].freq; in msi001_set_tuner()
254 reg |= bandwidth << 14; in msi001_set_tuner()
465 dev->bandwidth = v4l2_ctrl_new_std(&dev->hdl, &msi001_ctrl_ops, in msi001_probe()
Dfc0011.c76 u32 bandwidth; member
185 u32 bandwidth = p->bandwidth_hz / 1000; in fc0011_set_params() local
258 switch (bandwidth) { in fc0011_set_params()
267 bandwidth); in fc0011_set_params()
268 bandwidth = 6000; in fc0011_set_params()
448 (unsigned int)bandwidth); in fc0011_set_params()
451 priv->bandwidth = p->bandwidth_hz; in fc0011_set_params()
472 static int fc0011_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth) in fc0011_get_bandwidth() argument
476 *bandwidth = priv->bandwidth; in fc0011_get_bandwidth()
Dtuner-simple.c117 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()
908 priv->bandwidth = c->bandwidth_hz; in simple_dvb_calc_regs()
929 prev_bw = priv->bandwidth; in simple_dvb_set_params()
938 priv->bandwidth = bw; in simple_dvb_set_params()
957 priv->bandwidth = prev_bw; in simple_dvb_set_params()
1031 static int simple_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth) in simple_get_bandwidth() argument
[all …]
Dmt2266.c41 u32 bandwidth; member
164 priv->bandwidth = c->bandwidth_hz; in mt2266_set_params()
271 static int mt2266_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth) in mt2266_get_bandwidth() argument
274 *bandwidth = priv->bandwidth; in mt2266_get_bandwidth()
Dsi2157.c268 u8 bandwidth, delivery_system; in si2157_set_params() local
281 bandwidth = 0x06; in si2157_set_params()
283 bandwidth = 0x07; in si2157_set_params()
285 bandwidth = 0x08; in si2157_set_params()
287 bandwidth = 0x0f; in si2157_set_params()
311 cmd.args[4] = delivery_system | bandwidth; in si2157_set_params()
/drivers/media/usb/gspca/
Dgspca.c632 u32 bandwidth; in which_bandwidth() local
635 bandwidth = gspca_dev->pixfmt.sizeimage; in which_bandwidth()
639 bandwidth < gspca_dev->pixfmt.width * in which_bandwidth()
641 bandwidth = bandwidth * 3 / 8; /* 0.375 */ in which_bandwidth()
648 bandwidth *= parm.parm.capture.timeperframe.denominator; in which_bandwidth()
649 bandwidth /= parm.parm.capture.timeperframe.numerator; in which_bandwidth()
656 bandwidth *= 15; /* 15 fps */ in which_bandwidth()
658 bandwidth *= 30; /* 30 fps */ in which_bandwidth()
661 PDEBUG(D_STREAM, "min bandwidth: %d", bandwidth); in which_bandwidth()
662 return bandwidth; in which_bandwidth()
[all …]
/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
Drf.c35 void rtl92ee_phy_rf6052_set_bandwidth(struct ieee80211_hw *hw, u8 bandwidth) in rtl92ee_phy_rf6052_set_bandwidth() argument
40 switch (bandwidth) { in rtl92ee_phy_rf6052_set_bandwidth()
59 "unknown bandwidth: %#X\n", bandwidth); in rtl92ee_phy_rf6052_set_bandwidth()
/drivers/media/usb/uvc/
Duvc_video.c134 u32 bandwidth; in uvc_fixup_video_ctrl() local
146 bandwidth = frame->wWidth * frame->wHeight / 8 * format->bpp; in uvc_fixup_video_ctrl()
147 bandwidth *= 10000000 / interval + 1; in uvc_fixup_video_ctrl()
148 bandwidth /= 1000; in uvc_fixup_video_ctrl()
150 bandwidth /= 8; in uvc_fixup_video_ctrl()
151 bandwidth += 12; in uvc_fixup_video_ctrl()
160 bandwidth = max_t(u32, bandwidth, 1024); in uvc_fixup_video_ctrl()
162 ctrl->dwMaxPayloadTransferSize = bandwidth; in uvc_fixup_video_ctrl()
304 __u16 bandwidth; in uvc_probe_video() local
342 bandwidth = probe->dwMaxPayloadTransferSize; in uvc_probe_video()
[all …]
/drivers/media/usb/dvb-usb-v2/
Dmxl111sf-tuner.c44 u32 bandwidth; member
318 state->bandwidth = c->bandwidth_hz; in mxl111sf_tuner_set_params()
403 static int mxl111sf_tuner_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth) in mxl111sf_tuner_get_bandwidth() argument
406 *bandwidth = state->bandwidth; in mxl111sf_tuner_get_bandwidth()
/drivers/media/usb/dvb-usb/
DcinergyT2.h70 uint8_t bandwidth; member
86 uint8_t bandwidth; member
/drivers/gpu/drm/amd/amdgpu/
Ddce_v6_0.c738 fixed20_12 yclk, dram_channels, bandwidth; in dce_v6_0_dram_bandwidth() local
748 bandwidth.full = dfixed_mul(dram_channels, yclk); in dce_v6_0_dram_bandwidth()
749 bandwidth.full = dfixed_mul(bandwidth, dram_efficiency); in dce_v6_0_dram_bandwidth()
751 return dfixed_trunc(bandwidth); in dce_v6_0_dram_bandwidth()
767 fixed20_12 yclk, dram_channels, bandwidth; in dce_v6_0_dram_bandwidth_for_display() local
777 bandwidth.full = dfixed_mul(dram_channels, yclk); in dce_v6_0_dram_bandwidth_for_display()
778 bandwidth.full = dfixed_mul(bandwidth, disp_dram_allocation); in dce_v6_0_dram_bandwidth_for_display()
780 return dfixed_trunc(bandwidth); in dce_v6_0_dram_bandwidth_for_display()
796 fixed20_12 sclk, bandwidth; in dce_v6_0_data_return_bandwidth() local
806 bandwidth.full = dfixed_mul(a, sclk); in dce_v6_0_data_return_bandwidth()
[all …]

1234567