Exemple #1
0
 static components::memory_block_data get(
     naming::id_type const& targetgid)
 {
     // The following get yields control while the action above
     // is executed and the result is returned to the future
     return get_async(targetgid).get();
 }
Exemple #2
0
static uint32_t AGC_calibration(uint32_t loop)
{
	uint32_t wrdata;
	uint32_t ret;

#define AGC_CAL_NF	(AR9170_PHY_AGC_CONTROL_CAL | AR9170_PHY_AGC_CONTROL_NF)

	wrdata = get_async(AR9170_PHY_REG_AGC_CONTROL) | AGC_CAL_NF;
	set(AR9170_PHY_REG_AGC_CONTROL, wrdata);

	ret = get_async(AR9170_PHY_REG_AGC_CONTROL) & AGC_CAL_NF;

	/* sitesurvey : 100 ms / current connected 200 ms */
	while ((ret != 0) && loop--) {
		udelay(100);

		ret = get_async(AR9170_PHY_REG_AGC_CONTROL) & AGC_CAL_NF;
	}

	/* return the AGC/Noise calibration state to the driver */
	return ret;
}
Exemple #3
0
/*
 * Update delta slope coeff man and exp
 */
static void hw_turn_off_dyn(const uint32_t delta_slope_coeff_exp,
			    const uint32_t delta_slope_coeff_man,
			    const uint32_t delta_slope_coeff_exp_shgi,
			    const uint32_t delta_slope_coeff_man_shgi)
{
	uint32_t tmp;

	tmp = get_async(AR9170_PHY_REG_TIMING3) & 0x00001fff;
	tmp |= (delta_slope_coeff_man << AR9170_PHY_TIMING3_DSC_MAN_S) &
		AR9170_PHY_TIMING3_DSC_MAN;
	tmp |= (delta_slope_coeff_exp << AR9170_PHY_TIMING3_DSC_EXP_S) &
		AR9170_PHY_TIMING3_DSC_EXP;

	set(AR9170_PHY_REG_TIMING3, tmp);

	tmp = (delta_slope_coeff_man_shgi << AR9170_PHY_HALFGI_DSC_MAN_S) &
		AR9170_PHY_HALFGI_DSC_MAN;

	tmp |= (delta_slope_coeff_exp_shgi << AR9170_PHY_HALFGI_DSC_EXP_S) &
		AR9170_PHY_HALFGI_DSC_EXP;

	set(AR9170_PHY_REG_HALFGI, tmp);
}
void ogd_provider_get_single_async (OGDProvider *provider, gchar *query,
                                    OGDAsyncCallback callback, gpointer userdata)
{
    get_async (provider, query, TRUE, TRUE, callback, NULL, NULL, userdata);
}
/**
 * ogd_provider_get_list_async:
 * @provider:       the #OGDProvider from which retrieve data
 * @query:          query to ask contents
 * @callback:       async callback to which list of incoming #OGDObjects is passed
 * @userdata:       the user data for the callback
 *
 * Async version of ogd_provider_get()
 */
void ogd_provider_get_list_async (OGDProvider *provider, gchar *query,
                                  OGDAsyncListCallback callback, gpointer userdata)
{
    get_async (provider, query, FALSE, TRUE, NULL, NULL, callback, userdata);
}
void ogd_provider_get_raw_async (OGDProvider *provider, gchar *query, gboolean many,
                                 OGDProviderRawAsyncCallback callback, gpointer userdata)
{
    get_async (provider, query, many == FALSE, FALSE, NULL, callback, NULL, userdata);
}
Exemple #7
0
 static config_data get(hpx::naming::id_type const& gid)
 {
     return get_async(gid).get();
 }