/linux/drivers/md/ |
A D | raid5-log.h | 64 if (conf->log) { in log_stripe() 85 if (conf->log) in log_stripe_write_finished() 93 if (conf->log) in log_write_stripe_run() 101 if (conf->log) in log_flush_stripe_to_raid() 111 if (conf->log) in log_handle_flush_request() 121 if (conf->log) in log_quiesce() 129 if (conf->log) in log_exit() 130 r5l_exit_log(conf); in log_exit() 132 ppl_exit_log(conf); in log_exit() 141 return ppl_init_log(conf); in log_init() [all …]
|
A D | md-faulty.c | 94 atomic_set(&conf->counters[mode], conf->period[mode]); in check_mode() 127 int n = conf->nfaults; in add_sector() 159 conf->modes[n] = mode; in add_sector() 161 conf->nfaults = n+1; in add_sector() 265 conf->nfaults = 0; in faulty_reshape() 303 conf = kmalloc(sizeof(*conf), GFP_KERNEL); in faulty_run() 304 if (!conf) in faulty_run() 309 conf->period[i] = 0; in faulty_run() 311 conf->nfaults = 0; in faulty_run() 314 conf->rdev = rdev; in faulty_run() [all …]
|
A D | raid10.c | 1873 if (conf->geo.near_copies < conf->geo.raid_disks) in raid10_status() 3881 conf->geo.stride = 1 << conf->geo.chunk_shift; in calc_sectors() 3995 conf->prev = conf->geo; in setup_conf() 4007 conf->prev.stride = conf->dev_sectors; in setup_conf() 4009 conf->reshape_safe = conf->reshape_progress; in setup_conf() 4539 memcpy(conf->mirrors_new, conf->mirrors, in raid10_start_reshape() 4543 conf->mirrors_old = conf->mirrors; in raid10_start_reshape() 4544 conf->mirrors = conf->mirrors_new; in raid10_start_reshape() 4561 conf->reshape_safe = conf->reshape_progress; in raid10_start_reshape() 4656 conf->geo = conf->prev; in raid10_start_reshape() [all …]
|
A D | raid5.c | 808 if (raid5_has_log(conf) || raid5_has_ppl(conf)) in stripe_can_batch() 2337 sh = alloc_stripe(conf->slab_cache, gfp, conf->pool_size, conf); in grow_one_stripe() 2367 "raid%d-%p", conf->level, conf->mddev); in grow_stripes() 2590 conf->active_name = 1-conf->active_name; in resize_stripes() 5563 conf->last_hold = conf->hold_list.next; in __get_priority_stripe() 5699 (conf->raid_disks - conf->max_degraded); in make_discard_request() 6426 struct r5conf *conf = group->conf; in raid5_do_work() local 6503 conf->seq_write = conf->seq_flush; in raid5d() 6989 group->conf = conf; in alloc_thread_groups() 7353 conf->prev_algo = conf->algorithm; in setup_conf() [all …]
|
A D | raid1.c | 1666 if (!conf) { in print_conf() 1822 p = conf->mirrors + conf->raid_disks + number; in raid1_remove_disk() 1850 if (conf->mirrors[conf->raid_disks + number].rdev) { in raid1_remove_disk() 1856 conf->mirrors[conf->raid_disks + number].rdev; in raid1_remove_disk() 1871 conf->mirrors[conf->raid_disks + number].rdev = NULL; in raid1_remove_disk() 2955 if (!conf) in setup_conf() 3067 return conf; in setup_conf() 3070 if (conf) { in setup_conf() 3080 kfree(conf); in setup_conf() 3201 kfree(conf); in raid1_free() [all …]
|
A D | md-multipath.c | 195 if (!conf) { in print_multipath_conf() 199 pr_debug(" --- wd:%d rd:%d\n", conf->raid_disks - conf->mddev->degraded, in print_multipath_conf() 200 conf->raid_disks); in print_multipath_conf() 345 struct mpconf *conf; in multipath_run() local 367 mddev->private = conf; in multipath_run() 368 if (!conf) in multipath_run() 374 if (!conf->multipaths) in multipath_run() 394 conf->mddev = mddev; in multipath_run() 430 kfree(conf->multipaths); in multipath_run() 431 kfree(conf); in multipath_run() [all …]
|
A D | raid0.c | 45 conf->nr_strip_zones, conf->nr_strip_zones==1?"":"s"); in dump_zones() 74 struct r0conf *conf = kzalloc(sizeof(*conf), GFP_KERNEL); in create_strip_zones() local 78 if (!conf) in create_strip_zones() 159 conf->strip_zone = kcalloc(conf->nr_strip_zones, in create_strip_zones() 168 if (!conf->devlist) in create_strip_zones() 177 dev = conf->devlist; in create_strip_zones() 283 kfree(conf); in create_strip_zones() 340 return conf->devlist[(zone - conf->strip_zone)*raid_disks in map_sector() 363 struct r0conf *conf; in raid0_run() local 426 kfree(conf); in raid0_free() [all …]
|
A D | md-linear.c | 31 conf = mddev->private; in which_dev() 46 return conf->disks + lo; in which_dev() 54 conf = mddev->private; in linear_size() 69 conf = kzalloc(struct_size(conf, disks, raid_disks), GFP_KERNEL); in linear_conf() 70 if (!conf) in linear_conf() 117 conf->disks[0].end_sector = conf->disks[0].rdev->sectors; in linear_conf() 137 return conf; in linear_conf() 140 kfree(conf); in linear_conf() 153 if (!conf) in linear_run() 160 kfree(conf); in linear_run() [all …]
|
/linux/drivers/fpga/ |
A D | altera-cvp.c | 272 conf->write_data(conf, *data++); in altera_cvp_send_block() 279 conf->write_data(conf, *data & mask); in altera_cvp_send_block() 307 conf->priv->switch_clk(conf); in altera_cvp_teardown() 374 conf->priv->switch_clk(conf); in altera_cvp_write_init() 377 ret = conf->priv->clear_state(conf); in altera_cvp_write_init() 406 conf->priv->switch_clk(conf); in altera_cvp_write_init() 611 conf = devm_kzalloc(&pdev->dev, sizeof(*conf), GFP_KERNEL); in altera_cvp_probe() 612 if (!conf) in altera_cvp_probe() 652 snprintf(conf->mgr_name, sizeof(conf->mgr_name), "%s @%s", in altera_cvp_probe() 671 if (conf->map) in altera_cvp_probe() [all …]
|
A D | altera-ps-spi.c | 213 if (conf->confd) { in altera_ps_write_complete() 262 conf = devm_kzalloc(&spi->dev, sizeof(*conf), GFP_KERNEL); in altera_ps_probe() 263 if (!conf) in altera_ps_probe() 270 conf->data = of_id->data; in altera_ps_probe() 273 if (!conf->data) in altera_ps_probe() 277 conf->spi = spi; in altera_ps_probe() 281 PTR_ERR(conf->config)); in altera_ps_probe() 288 PTR_ERR(conf->status)); in altera_ps_probe() 293 if (IS_ERR(conf->confd)) { in altera_ps_probe() 295 PTR_ERR(conf->confd)); in altera_ps_probe() [all …]
|
A D | xilinx-spi.c | 35 ret = gpiod_get_value(conf->done); in get_done_gpio() 69 if (conf->init_b) { in wait_for_init_b() 198 if (conf->init_b) { in xilinx_spi_write_complete() 225 struct xilinx_spi_conf *conf; in xilinx_spi_probe() local 228 conf = devm_kzalloc(&spi->dev, sizeof(*conf), GFP_KERNEL); in xilinx_spi_probe() 229 if (!conf) in xilinx_spi_probe() 232 conf->spi = spi; in xilinx_spi_probe() 236 if (IS_ERR(conf->prog_b)) in xilinx_spi_probe() 241 if (IS_ERR(conf->init_b)) in xilinx_spi_probe() 246 if (IS_ERR(conf->done)) in xilinx_spi_probe() [all …]
|
/linux/drivers/net/wireless/ath/ath9k/ |
A D | common-beacon.c | 57 conf->intval = conf->beacon_interval; in ath9k_cmn_beacon_config_sta() 63 dtim_intval = conf->intval * conf->dtim_period; in ath9k_cmn_beacon_config_sta() 70 conf->nexttbtt = ath9k_get_next_tbtt(ah, tsf, conf->intval); in ath9k_cmn_beacon_config_sta() 85 bs->bs_bmissthreshold = DIV_ROUND_UP(conf->bmiss_timeout, conf->intval); in ath9k_cmn_beacon_config_sta() 101 conf->intval)); in ath9k_cmn_beacon_config_sta() 119 conf->intval = TU_TO_USEC(conf->beacon_interval); in ath9k_cmn_beacon_config_adhoc() 121 if (conf->ibss_creator) in ath9k_cmn_beacon_config_adhoc() 122 conf->nexttbtt = conf->intval; in ath9k_cmn_beacon_config_adhoc() 135 conf->nexttbtt, conf->intval, conf->beacon_interval); in ath9k_cmn_beacon_config_adhoc() 151 conf->intval = TU_TO_USEC(conf->beacon_interval); in ath9k_cmn_beacon_config_ap() [all …]
|
/linux/drivers/clk/ |
A D | clk-sparx5.c | 65 int divt = sel_rates[conf->rot_sel] * (1 + conf->pre_div); in s5_calc_freq() 84 memset(conf, 0, sizeof(*conf)); in s5_search_fractional() 85 conf->div = div; in s5_search_fractional() 94 conf->freq = s5_calc_freq(parent_rate, conf); in s5_search_fractional() 98 best = *conf; in s5_search_fractional() 105 *conf = best; in s5_search_fractional() 121 *conf = alt1; in s5_calc_params() 131 *conf = alt1; in s5_calc_params() 138 memset(conf, 0, sizeof(*conf)); in s5_calc_params() 208 conf.freq = s5_calc_freq(parent_rate, &conf); in s5_pll_recalc_rate() [all …]
|
/linux/drivers/mfd/ |
A D | atmel-smc.c | 22 memset(conf, 0, sizeof(*conf)); in atmel_smc_cs_conf_init() 113 conf->timings &= ~GENMASK(shift + 3, shift); in atmel_smc_cs_conf_set_timing() 114 conf->timings |= val << shift; in atmel_smc_cs_conf_set_timing() 152 conf->setup &= ~GENMASK(shift + 7, shift); in atmel_smc_cs_conf_set_setup() 153 conf->setup |= val << shift; in atmel_smc_cs_conf_set_setup() 191 conf->pulse &= ~GENMASK(shift + 7, shift); in atmel_smc_cs_conf_set_pulse() 192 conf->pulse |= val << shift; in atmel_smc_cs_conf_set_pulse() 229 conf->cycle &= ~GENMASK(shift + 15, shift); in atmel_smc_cs_conf_set_cycle() 230 conf->cycle |= val << shift; in atmel_smc_cs_conf_set_cycle() 246 const struct atmel_smc_cs_conf *conf) in atmel_smc_cs_conf_apply() argument [all …]
|
/linux/include/linux/ |
A D | textsearch.h | 78 struct ts_config *conf, 108 unsigned int ret = conf->ops->find(conf, state); in textsearch_next() 110 if (conf->finish) in textsearch_next() 111 conf->finish(conf, state); in textsearch_next() 128 return textsearch_next(conf, state); in textsearch_find() 137 return conf->ops->get_pattern(conf); in textsearch_get_pattern() 146 return conf->ops->get_pattern_len(conf); in textsearch_get_pattern_len() 165 struct ts_config *conf; in alloc_ts_config() local 167 conf = kzalloc(TS_PRIV_ALIGN(sizeof(*conf)) + payload, gfp_mask); in alloc_ts_config() 168 if (conf == NULL) in alloc_ts_config() [all …]
|
/linux/drivers/iio/imu/inv_icm42600/ |
A D | inv_icm42600_core.c | 211 if (conf->mode < 0) in inv_icm42600_set_accel_conf() 213 if (conf->fs < 0) in inv_icm42600_set_accel_conf() 215 if (conf->odr < 0) in inv_icm42600_set_accel_conf() 221 if (conf->fs != oldconf->fs || conf->odr != oldconf->odr) { in inv_icm42600_set_accel_conf() 242 return inv_icm42600_set_pwr_mgmt0(st, st->conf.gyro.mode, conf->mode, in inv_icm42600_set_accel_conf() 255 if (conf->mode < 0) in inv_icm42600_set_gyro_conf() 257 if (conf->fs < 0) in inv_icm42600_set_gyro_conf() 259 if (conf->odr < 0) in inv_icm42600_set_gyro_conf() 265 if (conf->fs != oldconf->fs || conf->odr != oldconf->odr) { in inv_icm42600_set_gyro_conf() 327 if (!conf->temp_en) in inv_icm42600_set_conf() [all …]
|
/linux/net/sched/ |
A D | em_text.c | 47 struct tcf_em_text *conf = data; in em_text_change() local 51 if (len < sizeof(*conf) || len < (sizeof(*conf) + conf->pattern_len)) in em_text_change() 54 if (conf->from_layer > conf->to_layer) in em_text_change() 57 if (conf->from_layer == conf->to_layer && in em_text_change() 58 conf->from_offset > conf->to_offset) in em_text_change() 62 ts_conf = textsearch_prepare(conf->algo, (u8 *) conf + sizeof(*conf), in em_text_change() 107 struct tcf_em_text conf; in em_text_dump() local 109 strncpy(conf.algo, tm->config->ops->name, sizeof(conf.algo) - 1); in em_text_dump() 113 conf.to_layer = tm->to_layer; in em_text_dump() 115 conf.pad = 0; in em_text_dump() [all …]
|
/linux/drivers/net/ethernet/microchip/sparx5/ |
A D | sparx5_port.c | 196 conf->speed, phy_modes(conf->portmode)); in sparx5_port_error() 223 switch (conf->portmode) { in sparx5_port_verify_speed() 522 if (port->conf.portmode == conf->portmode) in sparx5_port_mux_set() 525 switch (conf->portmode) { in sparx5_port_mux_set() 707 if (conf->serdes_reset) { in sparx5_serdes_set() 733 if (port->conf.inband) { in sparx5_port_pcs_low_set() 738 conf->autoneg) in sparx5_port_pcs_low_set() 872 int spd = conf->speed; in sparx5_port_config_low_set() 950 if (port->conf.inband) { in sparx5_port_pcs_set() 964 port->conf = *conf; in sparx5_port_pcs_set() [all …]
|
A D | sparx5_phylink.c | 120 conf = port->conf; in sparx5_phylink_mac_link_up() 121 conf.duplex = duplex; in sparx5_phylink_mac_link_up() 122 conf.pause = 0; in sparx5_phylink_mac_link_up() 125 conf.speed = speed; in sparx5_phylink_mac_link_up() 168 conf = port->conf; in sparx5_pcs_config() 169 conf.power_down = false; in sparx5_pcs_config() 170 conf.portmode = interface; in sparx5_pcs_config() 173 conf.pause_adv = 0; in sparx5_pcs_config() 180 conf.media = PHY_MEDIA_SR; in sparx5_pcs_config() 182 conf.media = PHY_MEDIA_DAC; in sparx5_pcs_config() [all …]
|
/linux/scripts/kconfig/tests/choice/ |
A D | __init__.py | 14 def test_oldask0(conf): argument 15 assert conf.oldaskconfig() == 0 19 def test_oldask1(conf): argument 24 def test_allyes(conf): argument 25 assert conf.allyesconfig() == 0 29 def test_allmod(conf): argument 30 assert conf.allmodconfig() == 0 34 def test_allno(conf): argument 35 assert conf.allnoconfig() == 0 39 def test_alldef(conf): argument [all …]
|
/linux/scripts/kconfig/ |
A D | streamline_config.pl | 104 my $file = $conf->{"file"}; 109 `$conf->{"test"} $conf->{"file"} 2>/dev/null`; 113 my $exec = $conf->{"exec"}; 233 my $conf = $1; 401 foreach my $conf (@arr) { 405 my $c=$conf; 458 if (!defined($orig_configs{$conf}) || $orig_configs{$conf} eq "y") { 467 $configs{$conf} = 1; 505 if (defined($orig_configs{$conf}) && $orig_configs{$conf} ne "m") { 517 $next_config = $conf; [all …]
|
/linux/drivers/net/wireless/ralink/rt2x00/ |
A D | rt2x00config.c | 24 struct rt2x00intf_conf conf; in rt2x00lib_config_intf() local 27 conf.type = type; in rt2x00lib_config_intf() 31 conf.sync = TSF_SYNC_ADHOC; in rt2x00lib_config_intf() 35 conf.sync = TSF_SYNC_AP_NONE; in rt2x00lib_config_intf() 38 conf.sync = TSF_SYNC_INFRA; in rt2x00lib_config_intf() 41 conf.sync = TSF_SYNC_NONE; in rt2x00lib_config_intf() 51 memset(conf.mac, 0, sizeof(conf.mac)); in rt2x00lib_config_intf() 55 memset(conf.bssid, 0, sizeof(conf.bssid)); in rt2x00lib_config_intf() 203 libconf.conf = conf; in rt2x00lib_config() 206 if (!conf_is_ht(conf)) in rt2x00lib_config() [all …]
|
/linux/drivers/platform/x86/intel/telemetry/ |
A D | debugfs.c | 365 conf->pss_idle_data[conf->pss_idle_evts - 1].bit_pos) & in telem_pss_states_show() 370 conf->pss_idle_evts - 1, in telem_pss_states_show() 375 conf->pcs_idle_blkd_evts, in telem_pss_states_show() 378 conf->pcs_idle_blkd_data, in telem_pss_states_show() 382 conf->pcs_s0ix_blkd_evts, in telem_pss_states_show() 389 conf->pss_wakeup_evts, in telem_pss_states_show() 519 conf->ioss_d0ix_evts, in telem_soc_states_show() 521 conf->ioss_d0ix_data, in telem_soc_states_show() 524 TELEM_CHECK_AND_PARSE_EVTS(conf->ioss_pg_id, conf->ioss_pg_evts, in telem_soc_states_show() 529 conf->ioss_d0ix_evts, in telem_soc_states_show() [all …]
|
/linux/drivers/gpu/drm/i915/display/ |
A D | dvo_ns2501.c | 207 u8 conf; /* configuration register 8 */ member 382 const struct ns2501_configuration *conf; member 553 const struct ns2501_configuration *conf; in ns2501_mode_set() local 610 conf = ns2501_modes + mode_idx; in ns2501_mode_set() 611 ns->conf = conf; in ns2501_mode_set() 613 ns2501_writeb(dvo, NS2501_REG8, conf->conf); in ns2501_mode_set() 614 ns2501_writeb(dvo, NS2501_REG1B, conf->pll_a); in ns2501_mode_set() 641 ns2501_writeb(dvo, NS2501_REGC0, conf->sync); in ns2501_mode_set() 671 ns->conf->conf | NS2501_8_BPAS); in ns2501_dpms() 672 if (!(ns->conf->conf & NS2501_8_BPAS)) in ns2501_dpms() [all …]
|
/linux/net/netfilter/ |
A D | xt_string.c | 26 const struct xt_string_info *conf = par->matchinfo; in string_mt() local 29 invert = conf->u.v1.flags & XT_STRING_FLAG_INVERT; in string_mt() 32 conf->to_offset, conf->config) in string_mt() 40 struct xt_string_info *conf = par->matchinfo; in string_mt_check() local 45 if (conf->from_offset > conf->to_offset) in string_mt_check() 47 if (conf->algo[XT_STRING_MAX_ALGO_NAME_SIZE - 1] != '\0') in string_mt_check() 49 if (conf->patlen > XT_STRING_MAX_PATTERN_SIZE) in string_mt_check() 51 if (conf->u.v1.flags & in string_mt_check() 54 if (conf->u.v1.flags & XT_STRING_FLAG_IGNORECASE) in string_mt_check() 56 ts_conf = textsearch_prepare(conf->algo, conf->pattern, conf->patlen, in string_mt_check() [all …]
|