/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | rs.c | 453 static s32 get_expected_tpt(struct iwl_scale_tbl_info *tbl, int rs_index) in get_expected_tpt() argument 455 if (tbl->expected_tpt) in get_expected_tpt() 456 return tbl->expected_tpt[rs_index]; in get_expected_tpt() 467 static int rs_collect_tx_data(struct iwl_scale_tbl_info *tbl, in rs_collect_tx_data() argument 478 window = &(tbl->win[scale_index]); in rs_collect_tx_data() 481 tpt = get_expected_tpt(tbl, scale_index); in rs_collect_tx_data() 546 struct iwl_scale_tbl_info *tbl, in rate_n_flags_from_tbl() argument 551 if (is_legacy(tbl->lq_type)) { in rate_n_flags_from_tbl() 556 } else if (is_Ht(tbl->lq_type)) { in rate_n_flags_from_tbl() 563 if (is_siso(tbl->lq_type)) in rate_n_flags_from_tbl() [all …]
|
D | rs.h | 276 #define is_legacy(tbl) (((tbl) == LQ_G) || ((tbl) == LQ_A)) argument 277 #define is_siso(tbl) ((tbl) == LQ_SISO) argument 278 #define is_mimo2(tbl) ((tbl) == LQ_MIMO2) argument 279 #define is_mimo3(tbl) ((tbl) == LQ_MIMO3) argument 280 #define is_mimo(tbl) (is_mimo2(tbl) || is_mimo3(tbl)) argument 281 #define is_Ht(tbl) (is_siso(tbl) || is_mimo(tbl)) argument 282 #define is_a_band(tbl) ((tbl) == LQ_A) argument 283 #define is_g_and(tbl) ((tbl) == LQ_G) argument
|
D | calib.c | 432 __le16 *tbl) in iwl_prepare_legacy_sensitivity_tbl() argument 434 tbl[HD_AUTO_CORR32_X4_TH_ADD_MIN_INDEX] = in iwl_prepare_legacy_sensitivity_tbl() 436 tbl[HD_AUTO_CORR32_X4_TH_ADD_MIN_MRC_INDEX] = in iwl_prepare_legacy_sensitivity_tbl() 438 tbl[HD_AUTO_CORR32_X1_TH_ADD_MIN_INDEX] = in iwl_prepare_legacy_sensitivity_tbl() 440 tbl[HD_AUTO_CORR32_X1_TH_ADD_MIN_MRC_INDEX] = in iwl_prepare_legacy_sensitivity_tbl() 443 tbl[HD_AUTO_CORR40_X4_TH_ADD_MIN_INDEX] = in iwl_prepare_legacy_sensitivity_tbl() 445 tbl[HD_AUTO_CORR40_X4_TH_ADD_MIN_MRC_INDEX] = in iwl_prepare_legacy_sensitivity_tbl() 448 tbl[HD_MIN_ENERGY_CCK_DET_INDEX] = in iwl_prepare_legacy_sensitivity_tbl() 450 tbl[HD_MIN_ENERGY_OFDM_DET_INDEX] = in iwl_prepare_legacy_sensitivity_tbl() 453 tbl[HD_BARKER_CORR_TH_ADD_MIN_INDEX] = in iwl_prepare_legacy_sensitivity_tbl() [all …]
|
/drivers/net/wireless/intel/iwlegacy/ |
D | 4965-rs.c | 404 il4965_get_expected_tpt(struct il_scale_tbl_info *tbl, int rs_idx) in il4965_get_expected_tpt() argument 406 if (tbl->expected_tpt) in il4965_get_expected_tpt() 407 return tbl->expected_tpt[rs_idx]; in il4965_get_expected_tpt() 419 il4965_rs_collect_tx_data(struct il_scale_tbl_info *tbl, int scale_idx, in il4965_rs_collect_tx_data() argument 430 win = &(tbl->win[scale_idx]); in il4965_rs_collect_tx_data() 433 tpt = il4965_get_expected_tpt(tbl, scale_idx); in il4965_rs_collect_tx_data() 497 il4965_rate_n_flags_from_tbl(struct il_priv *il, struct il_scale_tbl_info *tbl, in il4965_rate_n_flags_from_tbl() argument 502 if (is_legacy(tbl->lq_type)) { in il4965_rate_n_flags_from_tbl() 507 } else if (is_Ht(tbl->lq_type)) { in il4965_rate_n_flags_from_tbl() 514 if (is_siso(tbl->lq_type)) in il4965_rate_n_flags_from_tbl() [all …]
|
D | 4965-calib.c | 357 __le16 *tbl) in il4965_prepare_legacy_sensitivity_tbl() argument 359 tbl[HD_AUTO_CORR32_X4_TH_ADD_MIN_IDX] = in il4965_prepare_legacy_sensitivity_tbl() 361 tbl[HD_AUTO_CORR32_X4_TH_ADD_MIN_MRC_IDX] = in il4965_prepare_legacy_sensitivity_tbl() 363 tbl[HD_AUTO_CORR32_X1_TH_ADD_MIN_IDX] = in il4965_prepare_legacy_sensitivity_tbl() 365 tbl[HD_AUTO_CORR32_X1_TH_ADD_MIN_MRC_IDX] = in il4965_prepare_legacy_sensitivity_tbl() 368 tbl[HD_AUTO_CORR40_X4_TH_ADD_MIN_IDX] = in il4965_prepare_legacy_sensitivity_tbl() 370 tbl[HD_AUTO_CORR40_X4_TH_ADD_MIN_MRC_IDX] = in il4965_prepare_legacy_sensitivity_tbl() 373 tbl[HD_MIN_ENERGY_CCK_DET_IDX] = cpu_to_le16((u16) data->nrg_th_cck); in il4965_prepare_legacy_sensitivity_tbl() 374 tbl[HD_MIN_ENERGY_OFDM_DET_IDX] = cpu_to_le16((u16) data->nrg_th_ofdm); in il4965_prepare_legacy_sensitivity_tbl() 376 tbl[HD_BARKER_CORR_TH_ADD_MIN_IDX] = in il4965_prepare_legacy_sensitivity_tbl() [all …]
|
/drivers/net/wireless/marvell/mwifiex/ |
D | 11n_rxreorder.c | 109 struct mwifiex_rx_reorder_tbl *tbl, in mwifiex_11n_dispatch_pkt_until_start_win() argument 116 pkt_to_send = (start_win > tbl->start_win) ? in mwifiex_11n_dispatch_pkt_until_start_win() 117 min((start_win - tbl->start_win), tbl->win_size) : in mwifiex_11n_dispatch_pkt_until_start_win() 118 tbl->win_size; in mwifiex_11n_dispatch_pkt_until_start_win() 123 if (tbl->rx_reorder_ptr[i]) { in mwifiex_11n_dispatch_pkt_until_start_win() 124 rx_tmp_ptr = tbl->rx_reorder_ptr[i]; in mwifiex_11n_dispatch_pkt_until_start_win() 125 tbl->rx_reorder_ptr[i] = NULL; in mwifiex_11n_dispatch_pkt_until_start_win() 137 for (i = 0; i < tbl->win_size - pkt_to_send; ++i) { in mwifiex_11n_dispatch_pkt_until_start_win() 138 tbl->rx_reorder_ptr[i] = tbl->rx_reorder_ptr[pkt_to_send + i]; in mwifiex_11n_dispatch_pkt_until_start_win() 139 tbl->rx_reorder_ptr[pkt_to_send + i] = NULL; in mwifiex_11n_dispatch_pkt_until_start_win() [all …]
|
/drivers/vfio/ |
D | vfio_iommu_spapr_tce.c | 211 static long tce_iommu_userspace_view_alloc(struct iommu_table *tbl, in tce_iommu_userspace_view_alloc() argument 214 unsigned long cb = _ALIGN_UP(sizeof(tbl->it_userspace[0]) * in tce_iommu_userspace_view_alloc() 215 tbl->it_size, PAGE_SIZE); in tce_iommu_userspace_view_alloc() 219 BUG_ON(tbl->it_userspace); in tce_iommu_userspace_view_alloc() 230 tbl->it_userspace = uas; in tce_iommu_userspace_view_alloc() 235 static void tce_iommu_userspace_view_free(struct iommu_table *tbl, in tce_iommu_userspace_view_free() argument 238 unsigned long cb = _ALIGN_UP(sizeof(tbl->it_userspace[0]) * in tce_iommu_userspace_view_free() 239 tbl->it_size, PAGE_SIZE); in tce_iommu_userspace_view_free() 241 if (!tbl->it_userspace) in tce_iommu_userspace_view_free() 244 vfree(tbl->it_userspace); in tce_iommu_userspace_view_free() [all …]
|
/drivers/firmware/efi/ |
D | memattr.c | 26 efi_memory_attributes_table_t *tbl; in efi_memattr_init() local 31 tbl = early_memremap(efi.mem_attr_table, sizeof(*tbl)); in efi_memattr_init() 32 if (!tbl) { in efi_memattr_init() 38 if (tbl->version > 1) { in efi_memattr_init() 40 tbl->version); in efi_memattr_init() 44 tbl_size = sizeof(*tbl) + tbl->num_entries * tbl->desc_size; in efi_memattr_init() 48 early_memunmap(tbl, sizeof(*tbl)); in efi_memattr_init() 137 efi_memory_attributes_table_t *tbl; in efi_memattr_apply_permissions() local 140 if (tbl_size <= sizeof(*tbl)) in efi_memattr_apply_permissions() 152 tbl = memremap(efi.mem_attr_table, tbl_size, MEMREMAP_WB); in efi_memattr_apply_permissions() [all …]
|
D | efi.c | 504 efi_properties_table_t *tbl; in efi_config_parse_tables() local 506 tbl = early_memremap(efi.properties_table, sizeof(*tbl)); in efi_config_parse_tables() 507 if (tbl == NULL) { in efi_config_parse_tables() 512 if (tbl->memory_protection_attribute & in efi_config_parse_tables() 516 early_memunmap(tbl, sizeof(*tbl)); in efi_config_parse_tables()
|
/drivers/hwmon/ |
D | ab8500.c | 60 const struct abx500_res_to_temp *tbl = cfg->temp_tbl; in ab8500_voltage_to_temp() local 66 if (r_ntc > tbl[0].resist || r_ntc < tbl[tbl_sz - 1].resist) in ab8500_voltage_to_temp() 69 while (!(r_ntc <= tbl[i].resist && r_ntc > tbl[i + 1].resist) && in ab8500_voltage_to_temp() 74 *temp = tbl[i].temp * 1000 + ((tbl[i + 1].temp - tbl[i].temp) * 1000 * in ab8500_voltage_to_temp() 75 (r_ntc - tbl[i].resist)) / (tbl[i + 1].resist - tbl[i].resist); in ab8500_voltage_to_temp()
|
/drivers/clk/tegra/ |
D | clk.c | 232 void __init tegra_init_from_table(struct tegra_clk_init_table *tbl, in tegra_init_from_table() argument 237 for (; tbl->clk_id < clk_max; tbl++) { in tegra_init_from_table() 238 clk = clks[tbl->clk_id]; in tegra_init_from_table() 241 __func__, PTR_ERR(clk), tbl->clk_id); in tegra_init_from_table() 247 if (tbl->parent_id < clk_max) { in tegra_init_from_table() 248 struct clk *parent = clks[tbl->parent_id]; in tegra_init_from_table() 257 if (tbl->rate) in tegra_init_from_table() 258 if (clk_set_rate(clk, tbl->rate)) { in tegra_init_from_table() 260 __func__, tbl->rate, in tegra_init_from_table() 265 if (tbl->state) in tegra_init_from_table()
|
/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | rs.c | 606 struct iwl_scale_tbl_info *tbl) in rs_rate_scale_clear_tbl_windows() argument 612 rs_rate_scale_clear_window(&tbl->win[i]); in rs_rate_scale_clear_tbl_windows() 614 for (i = 0; i < ARRAY_SIZE(tbl->tpc_win); i++) in rs_rate_scale_clear_tbl_windows() 615 rs_rate_scale_clear_window(&tbl->tpc_win[i]); in rs_rate_scale_clear_tbl_windows() 667 static s32 get_expected_tpt(struct iwl_scale_tbl_info *tbl, int rs_index) in get_expected_tpt() argument 669 if (tbl->expected_tpt) in get_expected_tpt() 670 return tbl->expected_tpt[rs_index]; in get_expected_tpt() 682 struct iwl_scale_tbl_info *tbl, in _rs_collect_tx_data() argument 690 tpt = get_expected_tpt(tbl, scale_index); in _rs_collect_tx_data() 748 struct iwl_scale_tbl_info *tbl, in rs_collect_tpc_data() argument [all …]
|
/drivers/iio/imu/bmi160/ |
D | bmi160_core.c | 184 const struct bmi160_scale *tbl; member 190 .tbl = bmi160_accel_scale, 194 .tbl = bmi160_gyro_scale, 226 const struct bmi160_odr *tbl; member 232 .tbl = bmi160_accel_odr, 236 .tbl = bmi160_gyro_odr, 291 if (bmi160_scale_table[t].tbl[i].uscale == uscale) in bmi160_set_scale() 298 bmi160_scale_table[t].tbl[i].bits); in bmi160_set_scale() 312 if (bmi160_scale_table[t].tbl[i].bits == val) { in bmi160_get_scale() 313 *uscale = bmi160_scale_table[t].tbl[i].uscale; in bmi160_get_scale() [all …]
|
/drivers/media/usb/gspca/gl860/ |
D | gl860.c | 592 int fetch_validx(struct gspca_dev *gspca_dev, struct validx *tbl, int len) in fetch_validx() argument 597 if (tbl[n].idx != 0xffff) in fetch_validx() 598 ctrl_out(gspca_dev, 0x40, 1, tbl[n].val, in fetch_validx() 599 tbl[n].idx, 0, NULL); in fetch_validx() 600 else if (tbl[n].val == 0xffff) in fetch_validx() 603 msleep(tbl[n].val); in fetch_validx() 608 int keep_on_fetching_validx(struct gspca_dev *gspca_dev, struct validx *tbl, in keep_on_fetching_validx() argument 612 if (tbl[n].idx != 0xffff) in keep_on_fetching_validx() 613 ctrl_out(gspca_dev, 0x40, 1, tbl[n].val, tbl[n].idx, in keep_on_fetching_validx() 615 else if (tbl[n].val == 0xffff) in keep_on_fetching_validx() [all …]
|
D | gl860-ov9655.c | 216 u8 **tbl; in ov9655_init_post_alt() local 220 tbl = (reso == IMAGE_640) ? tbl_640 : tbl_1280; in ov9655_init_post_alt() 223 tbl_length[0], tbl[0]); in ov9655_init_post_alt() 226 tbl_length[i], tbl[i]); in ov9655_init_post_alt() 228 tbl_length[7], tbl[7]); in ov9655_init_post_alt()
|
D | gl860.h | 91 int fetch_validx(struct gspca_dev *gspca_dev, struct validx *tbl, int len); 92 int keep_on_fetching_validx(struct gspca_dev *gspca_dev, struct validx *tbl, 94 void fetch_idxdata(struct gspca_dev *gspca_dev, struct idxdata *tbl, int len);
|
/drivers/watchdog/ |
D | wdat_wdt.c | 312 const struct acpi_table_wdat *tbl; in wdat_wdt_probe() local 320 (struct acpi_table_header **)&tbl); in wdat_wdt_probe() 334 if (tbl->timer_period < 1) in wdat_wdt_probe() 336 if (tbl->min_count > tbl->max_count) in wdat_wdt_probe() 339 wdat->period = tbl->timer_period; in wdat_wdt_probe() 340 wdat->wdd.min_hw_heartbeat_ms = wdat->period * tbl->min_count; in wdat_wdt_probe() 341 wdat->wdd.max_hw_heartbeat_ms = wdat->period * tbl->max_count; in wdat_wdt_probe() 342 wdat->stopped_in_sleep = tbl->flags & ACPI_WDAT_STOPPED; in wdat_wdt_probe() 368 entries = (struct acpi_wdat_entry *)(tbl + 1); in wdat_wdt_probe() 369 for (i = 0; i < tbl->entries; i++) { in wdat_wdt_probe()
|
/drivers/mtd/ubi/ |
D | eba.c | 139 struct ubi_eba_table *tbl; in ubi_eba_create_table() local 143 tbl = kzalloc(sizeof(*tbl), GFP_KERNEL); in ubi_eba_create_table() 144 if (!tbl) in ubi_eba_create_table() 147 tbl->entries = kmalloc_array(nentries, sizeof(*tbl->entries), in ubi_eba_create_table() 149 if (!tbl->entries) in ubi_eba_create_table() 153 tbl->entries[i].pnum = UBI_LEB_UNMAPPED; in ubi_eba_create_table() 155 return tbl; in ubi_eba_create_table() 158 kfree(tbl->entries); in ubi_eba_create_table() 159 kfree(tbl); in ubi_eba_create_table() 170 void ubi_eba_destroy_table(struct ubi_eba_table *tbl) in ubi_eba_destroy_table() argument [all …]
|
/drivers/video/fbdev/riva/ |
D | riva_hw.c | 1344 #define LOAD_FIXED_STATE(tbl,dev) \ 1345 for (i = 0; i < sizeof(tbl##Table##dev)/8; i++) \ 1346 chip->dev[tbl##Table##dev[i][0]] = tbl##Table##dev[i][1] 1347 #define LOAD_FIXED_STATE_8BPP(tbl,dev) \ 1348 for (i = 0; i < sizeof(tbl##Table##dev##_8BPP)/8; i++) \ 1349 chip->dev[tbl##Table##dev##_8BPP[i][0]] = tbl##Table##dev##_8BPP[i][1] 1350 #define LOAD_FIXED_STATE_15BPP(tbl,dev) \ 1351 for (i = 0; i < sizeof(tbl##Table##dev##_15BPP)/8; i++) \ 1352 chip->dev[tbl##Table##dev##_15BPP[i][0]] = tbl##Table##dev##_15BPP[i][1] 1353 #define LOAD_FIXED_STATE_16BPP(tbl,dev) \ [all …]
|
/drivers/power/supply/ |
D | ab8500_btemp.c | 471 const struct abx500_res_to_temp *tbl, int tbl_size, int res) in ab8500_btemp_res_to_temp() argument 480 if (res > tbl[0].resist) in ab8500_btemp_res_to_temp() 482 else if (res <= tbl[tbl_size - 1].resist) in ab8500_btemp_res_to_temp() 486 while (!(res <= tbl[i].resist && in ab8500_btemp_res_to_temp() 487 res > tbl[i + 1].resist)) in ab8500_btemp_res_to_temp() 491 temp = tbl[i].temp + ((tbl[i + 1].temp - tbl[i].temp) * in ab8500_btemp_res_to_temp() 492 (res - tbl[i].resist)) / (tbl[i + 1].resist - tbl[i].resist); in ab8500_btemp_res_to_temp()
|
/drivers/sbus/char/ |
D | envctrl.c | 328 int scale, char *tbl, char *bufdata) in envctrl_i2c_data_translate() argument 342 bufdata[0] = tbl[data]; in envctrl_i2c_data_translate() 347 sprintf(bufdata,"%d ", (tbl[data] * 10) / (scale)); in envctrl_i2c_data_translate() 368 char *tbl, j = -1; in envctrl_read_cpu_info() local 387 tbl = pchild->tables + pchild->tblprop_array[i].offset; in envctrl_read_cpu_info() 391 tbl, bufdata); in envctrl_read_cpu_info() 403 char *tbl = NULL; in envctrl_read_noncpu_info() local 418 tbl = pchild->tables + pchild->tblprop_array[i].offset; in envctrl_read_noncpu_info() 422 tbl, bufdata); in envctrl_read_noncpu_info()
|
/drivers/net/wireless/ath/wil6210/ |
D | debugfs.c | 328 const struct dbg_off * const tbl) in wil6210_debugfs_init_offset() argument 332 for (i = 0; tbl[i].name; i++) { in wil6210_debugfs_init_offset() 335 switch (tbl[i].type) { in wil6210_debugfs_init_offset() 337 f = debugfs_create_u32(tbl[i].name, tbl[i].mode, dbg, in wil6210_debugfs_init_offset() 338 base + tbl[i].off); in wil6210_debugfs_init_offset() 341 f = debugfs_create_x32(tbl[i].name, tbl[i].mode, dbg, in wil6210_debugfs_init_offset() 342 base + tbl[i].off); in wil6210_debugfs_init_offset() 345 f = wil_debugfs_create_ulong(tbl[i].name, tbl[i].mode, in wil6210_debugfs_init_offset() 346 dbg, base + tbl[i].off); in wil6210_debugfs_init_offset() 349 f = wil_debugfs_create_iomem_x32(tbl[i].name, in wil6210_debugfs_init_offset() [all …]
|
/drivers/char/tpm/ |
D | tpm_tis.c | 250 struct acpi_table_tpm2 *tbl; in tpm_tis_acpi_init() local 257 (struct acpi_table_header **) &tbl); in tpm_tis_acpi_init() 258 if (ACPI_FAILURE(st) || tbl->header.length < sizeof(*tbl)) { in tpm_tis_acpi_init() 264 if (tbl->start_method != ACPI_TPM2_MEMORY_MAPPED) in tpm_tis_acpi_init()
|
/drivers/mfd/ |
D | rtsx_pcr.c | 563 static int rtsx_pci_set_pull_ctl(struct rtsx_pcr *pcr, const u32 *tbl) in rtsx_pci_set_pull_ctl() argument 567 while (*tbl & 0xFFFF0000) { in rtsx_pci_set_pull_ctl() 569 (u16)(*tbl >> 16), 0xFF, (u8)(*tbl)); in rtsx_pci_set_pull_ctl() 570 tbl++; in rtsx_pci_set_pull_ctl() 578 const u32 *tbl; in rtsx_pci_card_pull_ctl_enable() local 581 tbl = pcr->sd_pull_ctl_enable_tbl; in rtsx_pci_card_pull_ctl_enable() 583 tbl = pcr->ms_pull_ctl_enable_tbl; in rtsx_pci_card_pull_ctl_enable() 587 return rtsx_pci_set_pull_ctl(pcr, tbl); in rtsx_pci_card_pull_ctl_enable() 593 const u32 *tbl; in rtsx_pci_card_pull_ctl_disable() local 596 tbl = pcr->sd_pull_ctl_disable_tbl; in rtsx_pci_card_pull_ctl_disable() [all …]
|
/drivers/rpmsg/ |
D | qcom_smd.c | 1084 int tbl; in qcom_channel_scan_worker() local 1088 for (tbl = 0; tbl < SMD_ALLOC_TBL_COUNT; tbl++) { in qcom_channel_scan_worker() 1090 smem_items[tbl].alloc_tbl_id, NULL); in qcom_channel_scan_worker() 1097 if (test_bit(i, edge->allocated[tbl])) in qcom_channel_scan_worker() 1113 info_id = smem_items[tbl].info_base_id + cid; in qcom_channel_scan_worker() 1114 fifo_id = smem_items[tbl].fifo_base_id + cid; in qcom_channel_scan_worker() 1125 set_bit(i, edge->allocated[tbl]); in qcom_channel_scan_worker()
|