/linux-4.19.296/drivers/media/radio/si470x/ |
D | radio-si470x-common.c | 188 static int si470x_set_band(struct si470x_device *radio, int band) in si470x_set_band() argument 190 if (radio->band == band) in si470x_set_band() 193 radio->band = band; in si470x_set_band() 195 radio->registers[SYSCONFIG2] |= radio->band << 6; in si470x_set_band() 277 *freq = chan * si470x_get_step(radio) + bands[radio->band].rangelow; in si470x_get_freq() 290 freq = clamp(freq, bands[radio->band].rangelow, in si470x_set_freq() 291 bands[radio->band].rangehigh); in si470x_set_freq() 293 chan = (freq - bands[radio->band].rangelow) / si470x_get_step(radio); in si470x_set_freq() 306 int band, retval; in si470x_set_seek() local 313 for (band = 0; band < ARRAY_SIZE(bands); band++) { in si470x_set_seek() [all …]
|
D | radio-si470x.h | 148 int band; member
|
/linux-4.19.296/drivers/media/tuners/ |
D | mt2266.c | 42 u8 band; member 135 u8 band; in mt2266_set_params() local 145 band = (freq < 300000) ? MT2266_VHF : MT2266_UHF; in mt2266_set_params() 146 if (band == MT2266_VHF) in mt2266_set_params() 166 if (band == MT2266_VHF && priv->band == MT2266_UHF) { in mt2266_set_params() 171 } else if (band == MT2266_UHF && priv->band == MT2266_VHF) { in mt2266_set_params() 216 (band == MT2266_UHF) ? "UHF" : "VHF"); in mt2266_set_params() 220 if (band == MT2266_UHF) { in mt2266_set_params() 222 b[1] = (priv->band == MT2266_VHF) ? 0x52 : 0x62; in mt2266_set_params() 238 if (band == MT2266_UHF && priv->band == MT2266_VHF) in mt2266_set_params() [all …]
|
D | msi001.c | 341 unsigned int band; in msi001_s_frequency() local 347 band = 0; in msi001_s_frequency() 349 band = 1; in msi001_s_frequency() 351 bands[band].rangelow, bands[band].rangehigh); in msi001_s_frequency() 357 struct v4l2_frequency_band *band) in msi001_enum_freq_bands() argument 363 band->tuner, band->type, band->index); in msi001_enum_freq_bands() 365 if (band->index >= ARRAY_SIZE(bands)) in msi001_enum_freq_bands() 368 band->capability = bands[band->index].capability; in msi001_enum_freq_bands() 369 band->rangelow = bands[band->index].rangelow; in msi001_enum_freq_bands() 370 band->rangehigh = bands[band->index].rangehigh; in msi001_enum_freq_bands()
|
D | fc2580.c | 83 synth_config = fc2580_pll_lut[i].band; in fc2580_set_params() 450 struct v4l2_frequency_band *band) in fc2580_enum_freq_bands() argument 456 band->tuner, band->type, band->index); in fc2580_enum_freq_bands() 458 if (band->index >= ARRAY_SIZE(bands)) in fc2580_enum_freq_bands() 461 band->capability = bands[band->index].capability; in fc2580_enum_freq_bands() 462 band->rangelow = bands[band->index].rangelow; in fc2580_enum_freq_bands() 463 band->rangehigh = bands[band->index].rangehigh; in fc2580_enum_freq_bands()
|
D | e4000.c | 357 struct v4l2_frequency_band *band) in e4000_enum_freq_bands() argument 363 band->tuner, band->type, band->index); in e4000_enum_freq_bands() 365 if (band->index >= ARRAY_SIZE(bands)) in e4000_enum_freq_bands() 368 band->capability = bands[band->index].capability; in e4000_enum_freq_bands() 369 band->rangelow = bands[band->index].rangelow; in e4000_enum_freq_bands() 370 band->rangehigh = bands[band->index].rangehigh; in e4000_enum_freq_bands()
|
D | fc2580_priv.h | 57 u8 band; member
|
/linux-4.19.296/drivers/media/radio/ |
D | tea575x.c | 160 switch (tea->band) { in snd_tea575x_val_to_freq() 181 return clamp(freq * 16, bands[tea->band].rangelow, in snd_tea575x_val_to_freq() 182 bands[tea->band].rangehigh); /* from kHz */ in snd_tea575x_val_to_freq() 193 u32 band = 0; in snd_tea575x_set_freq() local 195 switch (tea->band) { in snd_tea575x_set_freq() 197 band = TEA575X_BIT_BAND_FM; in snd_tea575x_set_freq() 205 band = TEA575X_BIT_BAND_FM; in snd_tea575x_set_freq() 213 band = TEA575X_BIT_BAND_MW; in snd_tea575x_set_freq() 220 tea->val |= band; in snd_tea575x_set_freq() 248 struct v4l2_frequency_band *band) in snd_tea575x_enum_freq_bands() argument [all …]
|
D | radio-raremono.c | 112 u32 band; member 122 static int raremono_cmd_main(struct raremono_device *radio, unsigned band, unsigned freq) in raremono_cmd_main() argument 127 switch (band) { in raremono_cmd_main() 153 radio->curfreq = (band == BAND_FM) ? freq * 10 : freq; in raremono_cmd_main() 193 struct v4l2_frequency_band *band) in vidioc_enum_freq_bands() argument 195 if (band->tuner != 0) in vidioc_enum_freq_bands() 198 if (band->index >= ARRAY_SIZE(bands)) in vidioc_enum_freq_bands() 201 *band = bands[band->index]; in vidioc_enum_freq_bands() 246 unsigned band; in vidioc_s_frequency() local 252 band = BAND_FM; in vidioc_s_frequency() [all …]
|
D | radio-tea5777.c | 174 switch (tea->band) { in tea5777_freq_to_v4l2_freq() 188 freq = clamp(tea->freq, bands[tea->band].rangelow, in radio_tea5777_set_freq() 189 bands[tea->band].rangehigh); in radio_tea5777_set_freq() 192 switch (tea->band) { in radio_tea5777_set_freq() 280 struct v4l2_frequency_band *band) in vidioc_enum_freq_bands() argument 284 if (band->tuner != 0 || band->index >= ARRAY_SIZE(bands) || in vidioc_enum_freq_bands() 285 (!tea->has_am && band->index == BAND_AM)) in vidioc_enum_freq_bands() 288 *band = bands[band->index]; in vidioc_enum_freq_bands() 318 if (tea->band == BAND_FM && in vidioc_g_tuner() 347 if (tea->audmode != orig_audmode && tea->band == BAND_FM) in vidioc_s_tuner() [all …]
|
D | radio-si476x.c | 81 static inline bool si476x_radio_freq_is_inside_of_the_band(u32 freq, int band) in si476x_radio_freq_is_inside_of_the_band() argument 83 return freq >= si476x_bands[band].rangelow && in si476x_radio_freq_is_inside_of_the_band() 84 freq <= si476x_bands[band].rangehigh; in si476x_radio_freq_is_inside_of_the_band() 88 int band) in si476x_radio_range_is_inside_of_the_band() argument 90 return low >= si476x_bands[band].rangelow && in si476x_radio_range_is_inside_of_the_band() 91 high <= si476x_bands[band].rangehigh; in si476x_radio_range_is_inside_of_the_band() 365 struct v4l2_frequency_band *band) in si476x_radio_enum_freq_bands() argument 370 if (band->tuner != 0) in si476x_radio_enum_freq_bands() 377 if (band->index < ARRAY_SIZE(si476x_bands)) { in si476x_radio_enum_freq_bands() 378 *band = si476x_bands[band->index]; in si476x_radio_enum_freq_bands() [all …]
|
D | radio-cadet.c | 402 struct v4l2_frequency_band *band) in vidioc_enum_freq_bands() argument 404 if (band->tuner) in vidioc_enum_freq_bands() 406 if (band->index >= ARRAY_SIZE(bands)) in vidioc_enum_freq_bands() 408 *band = bands[band->index]; in vidioc_enum_freq_bands()
|
D | radio-tea5777.h | 67 u32 band; /* current band */ member
|
D | radio-wl1273.c | 62 unsigned int band; member 311 if (radio->band == WL1273_BAND_JAPAN) in wl1273_fm_irq_thread_handler() 428 if (radio->band == WL1273_BAND_JAPAN) in wl1273_fm_set_rx_freq() 474 if (radio->band == WL1273_BAND_JAPAN) in wl1273_fm_get_freq() 2046 radio->band = WL1273_BAND_OTHER; in wl1273_fm_radio_probe()
|
/linux-4.19.296/drivers/media/dvb-frontends/ |
D | s921.c | 269 int band, rc, i; in s921_pll_tune() local 276 for (band = 0; band < ARRAY_SIZE(s921_bandselect); band++) in s921_pll_tune() 277 if (p->frequency < s921_bandselect[band].freq_low) in s921_pll_tune() 279 band--; in s921_pll_tune() 281 if (band < 0) { in s921_pll_tune() 286 f_switch = s921_bandselect[band].band_reg; in s921_pll_tune()
|
D | rtl2832_sdr.c | 1024 struct v4l2_frequency_band *band) in rtl2832_sdr_enum_freq_bands() argument 1031 band->tuner, band->type, band->index); in rtl2832_sdr_enum_freq_bands() 1033 if (band->tuner == 0) { in rtl2832_sdr_enum_freq_bands() 1034 if (band->index >= ARRAY_SIZE(bands_adc)) in rtl2832_sdr_enum_freq_bands() 1037 *band = bands_adc[band->index]; in rtl2832_sdr_enum_freq_bands() 1039 } else if (band->tuner == 1 && in rtl2832_sdr_enum_freq_bands() 1041 ret = v4l2_subdev_call(dev->v4l2_subdev, tuner, enum_freq_bands, band); in rtl2832_sdr_enum_freq_bands() 1042 } else if (band->tuner == 1) { in rtl2832_sdr_enum_freq_bands() 1043 if (band->index >= ARRAY_SIZE(bands_fm)) in rtl2832_sdr_enum_freq_bands() 1046 *band = bands_fm[band->index]; in rtl2832_sdr_enum_freq_bands() [all …]
|
D | cx24123.c | 518 int band = 0; in cx24123_pll_calculate() local 547 band = i; in cx24123_pll_calculate() 550 band = force_band - 1; in cx24123_pll_calculate() 552 state->bandselectarg = cx24123_bandselect_vals[band].progdata; in cx24123_pll_calculate() 553 vco_div = cx24123_bandselect_vals[band].VCOdivider; in cx24123_pll_calculate() 556 if (p->frequency < (cx24123_bandselect_vals[band].freq_low + in cx24123_pll_calculate() 557 cx24123_bandselect_vals[band].freq_high) / 2) in cx24123_pll_calculate()
|
D | dib0070.c | 341 u8 band = (u8)BAND_OF_FREQUENCY(fe->dtv_property_cache.frequency/1000); in dib0070_tune_digital() local 342 …u32 freq = fe->dtv_property_cache.frequency/1000 + (band == BAND_VHF ? state->cfg->freq_offset_khz… in dib0070_tune_digital() 379 dprintk("Tuning for Band: %hd (%d kHz)\n", band, freq); in dib0070_tune_digital() 394 switch (band) { in dib0070_tune_digital() 447 if (band == BAND_SBAND) { in dib0070_tune_digital()
|
D | dib7000m.c | 682 static int dib7000m_set_agc_config(struct dib7000m_state *state, u8 band) in dib7000m_set_agc_config() argument 686 if (state->current_band == band && state->current_agc != NULL) in dib7000m_set_agc_config() 688 state->current_band = band; in dib7000m_set_agc_config() 691 if (state->cfg.agc[i].band_caps & band) { in dib7000m_set_agc_config() 697 dprintk("no valid AGC configuration found for band 0x%02x\n", band); in dib7000m_set_agc_config()
|
/linux-4.19.296/include/media/drv-intf/ |
D | tea575x.h | 59 u32 band; /* 0: FM, 1: FM-Japan, 2: AM */ member 71 struct v4l2_frequency_band *band);
|
/linux-4.19.296/fs/ |
D | fcntl.c | 778 void send_sigio(struct fown_struct *fown, int fd, int band) in send_sigio() argument 796 send_sigio_to_task(p, fown, fd, band, type); in send_sigio() 801 send_sigio_to_task(p, fown, fd, band, type); in send_sigio() 992 static void kill_fasync_rcu(struct fasync_struct *fa, int sig, int band) in kill_fasync_rcu() argument 1010 send_sigio(fown, fa->fa_fd, band); in kill_fasync_rcu() 1017 void kill_fasync(struct fasync_struct **fp, int sig, int band) in kill_fasync() argument 1024 kill_fasync_rcu(rcu_dereference(*fp), sig, band); in kill_fasync()
|
/linux-4.19.296/include/net/ |
D | mac80211.h | 924 u8 band; member 1259 u8 band; member 2425 return &hw->wiphy->bands[c->band]->bitrates[c->control.rates[0].idx]; in ieee80211_get_tx_rate() 2434 return &hw->wiphy->bands[c->band]->bitrates[c->control.rts_cts_rate_idx]; in ieee80211_get_rts_cts_rate() 2443 return &hw->wiphy->bands[c->band]->bitrates[c->control.rates[idx + 1].idx]; in ieee80211_get_alt_retry_rate() 4695 enum nl80211_band band, 5680 enum nl80211_band band, in rate_supported() argument 5683 return (sta == NULL || sta->supp_rates[band] & BIT(index)); in rate_supported() 5716 if (rate_supported(sta, sband->band, i)) in rate_lowest_index() 5733 if (rate_supported(sta, sband->band, i)) in rate_usable_index_exists() [all …]
|
/linux-4.19.296/drivers/clk/ |
D | clk-hsdk-pll.c | 54 u32 band; member 140 val |= cfg->band << CGU_PLL_CTRL_BAND_SHIFT; in hsdk_pll_set_cfg()
|
/linux-4.19.296/include/linux/ |
D | net.h | 229 int sock_wake_async(struct socket_wq *sk_wq, int how, int band);
|
/linux-4.19.296/drivers/misc/mei/ |
D | main.c | 695 static int mei_fasync(int fd, struct file *file, int band) in mei_fasync() argument 703 return fasync_helper(fd, file, band, &cl->ev_async); in mei_fasync()
|