| /OK3568_Linux_fs/kernel/sound/firewire/ |
| H A D | iso-resources.c | 109 int bandwidth, channel, err; in fw_iso_resources_allocate() local 114 r->bandwidth = packet_bandwidth(max_payload_bytes, speed); in fw_iso_resources_allocate() 128 bandwidth = r->bandwidth + r->bandwidth_overhead; in fw_iso_resources_allocate() 130 &channel, &bandwidth, true); in fw_iso_resources_allocate() 167 int bandwidth, channel; in fw_iso_resources_update() local 181 bandwidth = r->bandwidth + r->bandwidth_overhead; in fw_iso_resources_update() 184 &channel, &bandwidth, true); in fw_iso_resources_update() 214 int bandwidth, channel; in fw_iso_resources_free() local 224 bandwidth = r->bandwidth + r->bandwidth_overhead; in fw_iso_resources_free() 226 &channel, &bandwidth, false); in fw_iso_resources_free()
|
| /OK3568_Linux_fs/kernel/drivers/media/tuners/ |
| H A D | si2157.c | 402 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 …]
|
| H A D | msi001.c | 37 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()
|
| H A D | fc0011.c | 63 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()
|
| /OK3568_Linux_fs/kernel/net/wireless/ |
| H A D | chan.c | 399 u32 bandwidth, in cfg80211_set_chans_dfs_state() argument 405 for (freq = center_freq - bandwidth/2 + 10; in cfg80211_set_chans_dfs_state() 406 freq <= center_freq + bandwidth/2 - 10; in cfg80211_set_chans_dfs_state() 440 u32 bandwidth) in cfg80211_get_start_freq() argument 444 bandwidth = MHZ_TO_KHZ(bandwidth); in cfg80211_get_start_freq() 445 if (bandwidth <= MHZ_TO_KHZ(20)) in cfg80211_get_start_freq() 448 start_freq = center_freq - bandwidth / 2 + MHZ_TO_KHZ(10); in cfg80211_get_start_freq() 454 u32 bandwidth) in cfg80211_get_end_freq() argument 458 bandwidth = MHZ_TO_KHZ(bandwidth); in cfg80211_get_end_freq() 459 if (bandwidth <= MHZ_TO_KHZ(20)) in cfg80211_get_end_freq() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/dvb-frontends/ |
| H A D | tda826x.c | 67 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()
|
| H A D | stb6100.c | 241 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()
|
| H A D | stb6100_cfg.h | 51 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()
|
| H A D | stb6100_proc.h | 64 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()
|
| /OK3568_Linux_fs/kernel/drivers/firewire/ |
| H A D | core-iso.c | 205 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()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822bs/hal/phydm/halrf/rtl8822b/ |
| H A D | halhwimg8822b_rf.c | 12217 u8 bandwidth = array[i + 2]; in odm_read_and_config_mp_8822b_txpwr_lmt() local 12225 u8 *bandwidth = array[i + 2]; in odm_read_and_config_mp_8822b_txpwr_lmt() 12232 odm_config_bb_txpwr_lmt_8822b(dm, regulation, band, bandwidth, in odm_read_and_config_mp_8822b_txpwr_lmt() 12236 regulation, band, bandwidth, rate, rf_path, chnl, val); in odm_read_and_config_mp_8822b_txpwr_lmt() 12869 u8 bandwidth = array[i + 2]; in odm_read_and_config_mp_8822b_txpwr_lmt_type12() local 12877 u8 *bandwidth = array[i + 2]; in odm_read_and_config_mp_8822b_txpwr_lmt_type12() 12884 odm_config_bb_txpwr_lmt_8822b(dm, regulation, band, bandwidth, in odm_read_and_config_mp_8822b_txpwr_lmt_type12() 12888 regulation, band, bandwidth, rate, rf_path, chnl, val); in odm_read_and_config_mp_8822b_txpwr_lmt_type12() 13521 u8 bandwidth = array[i + 2]; in odm_read_and_config_mp_8822b_txpwr_lmt_type15() local 13529 u8 *bandwidth = array[i + 2]; in odm_read_and_config_mp_8822b_txpwr_lmt_type15() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8189es/os_dep/linux/ |
| H A D | ioctl_mp.c | 515 u32 bandwidth = 0, sg = 0; in rtw_mp_bandwidth() local 520 if (sscanf(extra, "40M=%d,shortGI=%d", &bandwidth, &sg) > 0) in rtw_mp_bandwidth() 521 DBG_871X("%s: bw=%d sg=%d\n", __func__, bandwidth , sg); in rtw_mp_bandwidth() 523 if (bandwidth == 1) in rtw_mp_bandwidth() 524 bandwidth = CHANNEL_WIDTH_40; in rtw_mp_bandwidth() 525 else if (bandwidth == 2) in rtw_mp_bandwidth() 526 bandwidth = CHANNEL_WIDTH_80; in rtw_mp_bandwidth() 528 padapter->mppriv.bandwidth = (u8)bandwidth; in rtw_mp_bandwidth() 532 pHalData->CurrentChannelBW = bandwidth; in rtw_mp_bandwidth() 1445 u32 bandwidth = 0, sg = 0, channel = 6, txpower = 40, rate = 108, ant = 0, txmode = 1, count = 0; in rtw_mp_tx() local [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/scheduler/ |
| H A D | sched-bwc.rst | 5 [ This document only discusses CPU bandwidth control for SCHED_NORMAL. 8 CFS bandwidth control is a CONFIG_FAIR_GROUP_SCHED extension which allows the 9 specification of the maximum CPU bandwidth available to a group or hierarchy. 11 The bandwidth allowed for a group is specified using a quota and period. Within 20 cfs_quota units at each period boundary. As threads consume this bandwidth it 38 bandwidth restriction in place, such a group is described as an unconstrained 39 bandwidth group. This represents the traditional work-conserving behavior for 42 Writing any (valid) positive value(s) will enact the specified bandwidth limit. 45 bandwidth limits are used in a hierarchical fashion, these are explained in 48 Writing any negative value to cpu.cfs_quota_us will remove the bandwidth limit [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/devfreq/ |
| H A D | rockchip_dmc.txt | 35 each item consists of bandwidth and frequency like 36 <min-bandwidth max-bandwidth frequency>. 37 min-bandwidth: minimum ddr bandwidth in Mbyte/sec. 38 max-bandwidth: maximum ddr bandwidth in Mbyte/sec.
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723bu/os_dep/linux/ |
| H A D | ioctl_mp.c | 519 u32 bandwidth = 0, sg = 0; in rtw_mp_bandwidth() local 524 if (sscanf(extra, "40M=%d,shortGI=%d", &bandwidth, &sg) > 0) in rtw_mp_bandwidth() 525 DBG_871X("%s: bw=%d sg=%d\n", __func__, bandwidth , sg); in rtw_mp_bandwidth() 527 if (bandwidth == 1) in rtw_mp_bandwidth() 528 bandwidth = CHANNEL_WIDTH_40; in rtw_mp_bandwidth() 529 else if (bandwidth == 2) in rtw_mp_bandwidth() 530 bandwidth = CHANNEL_WIDTH_80; in rtw_mp_bandwidth() 532 padapter->mppriv.bandwidth = (u8)bandwidth; in rtw_mp_bandwidth() 536 pHalData->CurrentChannelBW = bandwidth; in rtw_mp_bandwidth() 1464 u32 bandwidth = 0, sg = 0, channel = 6, txpower = 40, rate = 108, ant = 0, txmode = 1, count = 0; in rtw_mp_tx() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822be/os_dep/linux/ |
| H A D | ioctl_mp.c | 523 u32 bandwidth = 0, sg = 0; in rtw_mp_bandwidth() local 528 if (sscanf(extra, "40M=%d,shortGI=%d", &bandwidth, &sg) > 0) in rtw_mp_bandwidth() 529 RTW_INFO("%s: bw=%d sg=%d\n", __func__, bandwidth , sg); in rtw_mp_bandwidth() 531 if (bandwidth == 1) in rtw_mp_bandwidth() 532 bandwidth = CHANNEL_WIDTH_40; in rtw_mp_bandwidth() 533 else if (bandwidth == 2) in rtw_mp_bandwidth() 534 bandwidth = CHANNEL_WIDTH_80; in rtw_mp_bandwidth() 536 padapter->mppriv.bandwidth = (u8)bandwidth; in rtw_mp_bandwidth() 540 pHalData->CurrentChannelBW = bandwidth; in rtw_mp_bandwidth() 1491 u32 bandwidth = 0, sg = 0, channel = 6, txpower = 40, rate = 108, ant = 0, txmode = 1, count = 0; in rtw_mp_tx() local [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/hal/phydm/rtl8821c/ |
| H A D | phydm_hal_api8821c.c | 191 enum channel_width bandwidth) in phydm_ccapar_by_bw_8821c() argument 203 if (bandwidth == CHANNEL_WIDTH_20) { in phydm_ccapar_by_bw_8821c() 210 } else if (bandwidth == CHANNEL_WIDTH_40) { in phydm_ccapar_by_bw_8821c() 217 } else if (bandwidth == CHANNEL_WIDTH_80) { in phydm_ccapar_by_bw_8821c() 261 enum channel_width bandwidth) in phydm_rxdfirpar_by_bw_8821c() argument 263 if (bandwidth == CHANNEL_WIDTH_40) { in phydm_rxdfirpar_by_bw_8821c() 269 } else if (bandwidth == CHANNEL_WIDTH_80) { in phydm_rxdfirpar_by_bw_8821c() 973 enum channel_width bandwidth) in config_phydm_switch_bandwidth_8821c() argument 989 …if (bandwidth >= CHANNEL_WIDTH_MAX || (bandwidth == CHANNEL_WIDTH_40 && primary_ch_idx > 2) || (ba… in config_phydm_switch_bandwidth_8821c() 992 __func__, bandwidth, primary_ch_idx); in config_phydm_switch_bandwidth_8821c() [all …]
|
| H A D | phydm_regconfig8821c.c | 236 u8 band, u8 bandwidth, u8 rate_section, in odm_config_bb_txpwr_lmt_8821c_ex() argument 241 phy_set_tx_power_limit_ex(dm, regulation, band, bandwidth, rate_section, in odm_config_bb_txpwr_lmt_8821c_ex() 245 PHY_SetTxPowerLimit_ex(dm, regulation, band, bandwidth, rate_section, in odm_config_bb_txpwr_lmt_8821c_ex() 250 u8 *band, u8 *bandwidth, u8 *rate_section, in odm_config_bb_txpwr_lmt_8821c() argument 255 bandwidth, rate_section, rf_path, channel, power_limit); in odm_config_bb_txpwr_lmt_8821c() 258 bandwidth, rate_section, rf_path, channel, power_limit); in odm_config_bb_txpwr_lmt_8821c()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8821cs/hal/phydm/rtl8821c/ |
| H A D | phydm_hal_api8821c.c | 192 enum channel_width bandwidth) in phydm_ccapar_by_bw_8821c() argument 204 if (bandwidth == CHANNEL_WIDTH_20) { in phydm_ccapar_by_bw_8821c() 211 } else if (bandwidth == CHANNEL_WIDTH_40) { in phydm_ccapar_by_bw_8821c() 218 } else if (bandwidth == CHANNEL_WIDTH_80) { in phydm_ccapar_by_bw_8821c() 262 enum channel_width bandwidth) in phydm_rxdfirpar_by_bw_8821c() argument 264 if (bandwidth == CHANNEL_WIDTH_40) { in phydm_rxdfirpar_by_bw_8821c() 270 } else if (bandwidth == CHANNEL_WIDTH_80) { in phydm_rxdfirpar_by_bw_8821c() 974 enum channel_width bandwidth) in config_phydm_switch_bandwidth_8821c() argument 990 …if (bandwidth >= CHANNEL_WIDTH_MAX || (bandwidth == CHANNEL_WIDTH_40 && primary_ch_idx > 2) || (ba… in config_phydm_switch_bandwidth_8821c() 993 __func__, bandwidth, primary_ch_idx); in config_phydm_switch_bandwidth_8821c() [all …]
|
| H A D | phydm_regconfig8821c.c | 237 u8 band, u8 bandwidth, u8 rate_section, in odm_config_bb_txpwr_lmt_8821c_ex() argument 242 phy_set_tx_power_limit_ex(dm, regulation, band, bandwidth, rate_section, in odm_config_bb_txpwr_lmt_8821c_ex() 246 PHY_SetTxPowerLimit_ex(dm, regulation, band, bandwidth, rate_section, in odm_config_bb_txpwr_lmt_8821c_ex() 251 u8 *band, u8 *bandwidth, u8 *rate_section, in odm_config_bb_txpwr_lmt_8821c() argument 256 bandwidth, rate_section, rf_path, channel, power_limit); in odm_config_bb_txpwr_lmt_8821c() 259 bandwidth, rate_section, rf_path, channel, power_limit); in odm_config_bb_txpwr_lmt_8821c()
|
| /OK3568_Linux_fs/kernel/arch/arm/mach-rpc/include/mach/ |
| H A D | acornfb.h | 119 unsigned long bandwidth = acornfb_bandwidth(var); in acornfb_vidc20_find_rates() local 122 if (bandwidth > 33334) /* < 30.0MB/s */ in acornfb_vidc20_find_rates() 124 else if (bandwidth > 26666) /* < 37.5MB/s */ in acornfb_vidc20_find_rates() 126 else if (bandwidth > 22222) /* < 45.0MB/s */ in acornfb_vidc20_find_rates()
|
| /OK3568_Linux_fs/kernel/drivers/staging/pi433/ |
| H A D | rf69.c | 465 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()
|
| /OK3568_Linux_fs/kernel/drivers/media/usb/gspca/ |
| H A D | gspca.c | 531 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723bs/os_dep/linux/ |
| H A D | ioctl_mp.c | 493 u32 bandwidth = 0, sg = 0; in rtw_mp_bandwidth() local 502 if (sscanf(input, "40M=%d,shortGI=%d", &bandwidth, &sg) > 0) in rtw_mp_bandwidth() 503 RTW_INFO("%s: bw=%d sg=%d\n", __func__, bandwidth , sg); in rtw_mp_bandwidth() 505 if (bandwidth == 1) in rtw_mp_bandwidth() 506 bandwidth = CHANNEL_WIDTH_40; in rtw_mp_bandwidth() 507 else if (bandwidth == 2) in rtw_mp_bandwidth() 508 bandwidth = CHANNEL_WIDTH_80; in rtw_mp_bandwidth() 510 padapter->mppriv.bandwidth = (u8)bandwidth; in rtw_mp_bandwidth() 513 sprintf(extra, "Change BW %d to BW %d\n", pHalData->current_channel_bw , bandwidth); in rtw_mp_bandwidth() 516 pHalData->current_channel_bw = bandwidth; in rtw_mp_bandwidth() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/hal/phydm/rtl8822c/ |
| H A D | phydm_regconfig8822c.c | 231 u8 band, u8 bandwidth, u8 rate_section, in odm_config_bb_txpwr_lmt_8822c_ex() argument 235 phy_set_tx_power_limit_ex(dm, regulation, band, bandwidth, rate_section, in odm_config_bb_txpwr_lmt_8822c_ex() 239 PHY_SetTxPowerLimit_ex(dm, regulation, band, bandwidth, rate_section, in odm_config_bb_txpwr_lmt_8822c_ex() 245 u8 *band, u8 *bandwidth, u8 *rate_section, in odm_config_bb_txpwr_lmt_8822c() argument 249 phy_set_tx_power_limit(dm, regulation, band, bandwidth, rate_section, in odm_config_bb_txpwr_lmt_8822c() 252 PHY_SetTxPowerLimit(dm, regulation, band, bandwidth, rate_section, in odm_config_bb_txpwr_lmt_8822c()
|