| /linux/drivers/md/ |
| H A D | raid5-log.h | 5 int r5l_init_log(struct r5conf *conf, struct md_rdev *rdev); 6 void r5l_exit_log(struct r5conf *conf); 13 bool r5l_log_disk_error(struct r5conf *conf); 15 int r5c_try_caching_write(struct r5conf *conf, struct stripe_head *sh, 17 void r5c_finish_stripe_write_out(struct r5conf *conf, struct stripe_head *sh, 22 void r5c_handle_cached_data_endio(struct r5conf *conf, 26 void r5c_flush_cache(struct r5conf *conf, int num); 27 void r5c_check_stripe_cache_usage(struct r5conf *conf); 28 void r5c_check_cached_full_stripe(struct r5conf *conf); 31 bool r5c_big_stripe_cached(struct r5conf *conf, sector_t sect); [all …]
|
| H A D | raid10.c | 70 static void allow_barrier(struct r10conf *conf); 71 static void lower_barrier(struct r10conf *conf); 72 static int _enough(struct r10conf *conf, int previous, int ignore); 73 static int enough(struct r10conf *conf, int ignore); 78 static void end_reshape(struct r10conf *conf); 83 #define cmd_before(conf, cmd) \ argument 85 write_sequnlock_irq(&(conf)->resync_lock); \ 88 #define cmd_after(conf) write_seqlock_irq(&(conf)->resync_lock) argument 90 #define wait_event_barrier_cmd(conf, cond, cmd) \ argument 91 wait_event_cmd((conf)->wait_barrier, cond, cmd_before(conf, cmd), \ [all …]
|
| H A D | raid1.c | 47 static void allow_barrier(struct r1conf *conf, sector_t sector_nr); 48 static void lower_barrier(struct r1conf *conf, sector_t sector_nr); 153 static void *r1bio_pool_alloc(gfp_t gfp_flags, struct r1conf *conf) in r1bio_pool_alloc() argument 155 int size = offsetof(struct r1bio, bios[conf->raid_disks * 2]); in r1bio_pool_alloc() 170 struct r1conf *conf = data; in r1buf_pool_alloc() local 177 r1_bio = r1bio_pool_alloc(gfp_flags, conf); in r1buf_pool_alloc() 181 rps = kmalloc_objs(struct resync_pages, conf->raid_disks * 2, gfp_flags); in r1buf_pool_alloc() 188 for (j = conf->raid_disks * 2; j-- ; ) { in r1buf_pool_alloc() 201 if (test_bit(MD_RECOVERY_REQUESTED, &conf->mddev->recovery)) in r1buf_pool_alloc() 202 need_pages = conf->raid_disks * 2; in r1buf_pool_alloc() [all …]
|
| H A D | raid5.c | 78 static inline struct hlist_head *stripe_hash(struct r5conf *conf, sector_t sect) in stripe_hash() argument 80 int hash = (sect >> RAID5_STRIPE_SHIFT(conf)) & HASH_MASK; in stripe_hash() 81 return &conf->stripe_hashtbl[hash]; in stripe_hash() 84 static inline int stripe_hash_locks_hash(struct r5conf *conf, sector_t sect) in stripe_hash_locks_hash() argument 86 return (sect >> RAID5_STRIPE_SHIFT(conf)) & STRIPE_HASH_LOCKS_MASK; in stripe_hash_locks_hash() 89 static inline void lock_device_hash_lock(struct r5conf *conf, int hash) in lock_device_hash_lock() argument 90 __acquires(&conf->device_lock) in lock_device_hash_lock() 92 spin_lock_irq(conf->hash_locks + hash); in lock_device_hash_lock() 93 spin_lock(&conf->device_lock); in lock_device_hash_lock() 96 static inline void unlock_device_hash_lock(struct r5conf *conf, int hash) in unlock_device_hash_lock() argument [all …]
|
| H A D | raid0.c | 43 struct r0conf *conf = mddev->private; in dump_zones() local 44 int raid_disks = conf->strip_zone[0].nb_dev; in dump_zones() 47 conf->nr_strip_zones, str_plural(conf->nr_strip_zones)); in dump_zones() 48 for (j = 0; j < conf->nr_strip_zones; j++) { in dump_zones() 52 for (k = 0; k < conf->strip_zone[j].nb_dev; k++) in dump_zones() 54 conf->devlist[j * raid_disks + k]->bdev); in dump_zones() 57 zone_size = conf->strip_zone[j].zone_end - zone_start; in dump_zones() 60 (unsigned long long)conf->strip_zone[j].dev_start>>1, in dump_zones() 62 zone_start = conf->strip_zone[j].zone_end; in dump_zones() 73 struct r0conf *conf = kzalloc_obj(*conf); in create_strip_zones() local [all …]
|
| H A D | md-linear.c | 33 struct linear_conf *conf; in which_dev() local 37 conf = mddev->private; in which_dev() 46 if (sector < conf->disks[mid].end_sector) in which_dev() 52 return conf->disks + lo; in which_dev() 57 struct linear_conf *conf; in linear_size() local 60 conf = mddev->private; in linear_size() 63 array_sectors = conf->array_sectors; in linear_size() 90 struct linear_conf *conf; in linear_conf() local 96 conf = kzalloc_flex(*conf, disks, raid_disks); in linear_conf() 97 if (!conf) in linear_conf() [all …]
|
| /linux/drivers/net/wireless/ath/ath9k/ |
| H A D | common-beacon.c | 43 struct ath_beacon_config *conf, in ath9k_cmn_beacon_config_sta() argument 58 conf->intval = conf->beacon_interval; in ath9k_cmn_beacon_config_sta() 64 dtim_intval = conf->intval * conf->dtim_period; in ath9k_cmn_beacon_config_sta() 71 conf->nexttbtt = ath9k_get_next_tbtt(ah, tsf, conf->intval); in ath9k_cmn_beacon_config_sta() 73 bs->bs_intval = TU_TO_USEC(conf->intval); in ath9k_cmn_beacon_config_sta() 74 bs->bs_dtimperiod = conf->dtim_period * bs->bs_intval; in ath9k_cmn_beacon_config_sta() 75 bs->bs_nexttbtt = conf->nexttbtt; in ath9k_cmn_beacon_config_sta() 76 bs->bs_nextdtim = conf->nexttbtt; in ath9k_cmn_beacon_config_sta() 77 if (conf->dtim_period > 1) in ath9k_cmn_beacon_config_sta() 86 bs->bs_bmissthreshold = DIV_ROUND_UP(conf->bmiss_timeout, conf->intval); in ath9k_cmn_beacon_config_sta() [all …]
|
| /linux/include/linux/ |
| H A D | textsearch.h | 79 struct ts_config *conf, 90 void (*finish)(struct ts_config *conf, 106 static inline unsigned int textsearch_next(struct ts_config *conf, in textsearch_next() argument 109 unsigned int ret = conf->ops->find(conf, state); in textsearch_next() 111 if (conf->finish) in textsearch_next() 112 conf->finish(conf, state); in textsearch_next() 125 static inline unsigned int textsearch_find(struct ts_config *conf, in textsearch_find() argument 129 return textsearch_next(conf, state); in textsearch_find() 136 static inline void *textsearch_get_pattern(struct ts_config *conf) in textsearch_get_pattern() argument 138 return conf->ops->get_pattern(conf); in textsearch_get_pattern() [all …]
|
| /linux/drivers/clk/ |
| H A D | clk-sparx5.c | 59 const struct s5_pll_conf *conf) in s5_calc_freq() argument 61 unsigned long rate = parent_rate / conf->div; in s5_calc_freq() 63 if (conf->rot_ena) { in s5_calc_freq() 64 int sign = conf->rot_dir ? -1 : 1; in s5_calc_freq() 65 int divt = sel_rates[conf->rot_sel] * (1 + conf->pre_div); in s5_calc_freq() 78 struct s5_pll_conf *conf) in s5_search_fractional() argument 84 memset(conf, 0, sizeof(*conf)); in s5_search_fractional() 85 conf->div = div; in s5_search_fractional() 86 conf->rot_ena = 1; /* Fractional rate */ in s5_search_fractional() 89 conf->rot_dir = !!d; in s5_search_fractional() [all …]
|
| /linux/drivers/mfd/ |
| H A D | atmel-smc.c | 26 void atmel_smc_cs_conf_init(struct atmel_smc_cs_conf *conf) in atmel_smc_cs_conf_init() argument 28 memset(conf, 0, sizeof(*conf)); in atmel_smc_cs_conf_init() 99 int atmel_smc_cs_conf_set_timing(struct atmel_smc_cs_conf *conf, in atmel_smc_cs_conf_set_timing() argument 119 conf->timings &= ~GENMASK(shift + 3, shift); in atmel_smc_cs_conf_set_timing() 120 conf->timings |= val << shift; in atmel_smc_cs_conf_set_timing() 141 int atmel_smc_cs_conf_set_setup(struct atmel_smc_cs_conf *conf, in atmel_smc_cs_conf_set_setup() argument 158 conf->setup &= ~GENMASK(shift + 7, shift); in atmel_smc_cs_conf_set_setup() 159 conf->setup |= val << shift; in atmel_smc_cs_conf_set_setup() 180 int atmel_smc_cs_conf_set_pulse(struct atmel_smc_cs_conf *conf, in atmel_smc_cs_conf_set_pulse() argument 197 conf->pulse &= ~GENMASK(shift + 7, shift); in atmel_smc_cs_conf_set_pulse() [all …]
|
| /linux/sound/soc/tegra/ |
| H A D | tegra_cif.h | 50 struct tegra_cif_conf *conf) in tegra_set_cif() argument 54 value = (conf->threshold << TEGRA_ACIF_CTRL_FIFO_TH_SHIFT) | in tegra_set_cif() 55 ((conf->audio_ch - 1) << TEGRA_ACIF_CTRL_AUDIO_CH_SHIFT) | in tegra_set_cif() 56 ((conf->client_ch - 1) << TEGRA_ACIF_CTRL_CLIENT_CH_SHIFT) | in tegra_set_cif() 57 (conf->audio_bits << TEGRA_ACIF_CTRL_AUDIO_BITS_SHIFT) | in tegra_set_cif() 58 (conf->client_bits << TEGRA_ACIF_CTRL_CLIENT_BITS_SHIFT) | in tegra_set_cif() 59 (conf->expand << TEGRA_ACIF_CTRL_EXPAND_SHIFT) | in tegra_set_cif() 60 (conf->stereo_conv << TEGRA_ACIF_CTRL_STEREO_CONV_SHIFT) | in tegra_set_cif() 61 (conf->replicate << TEGRA_ACIF_CTRL_REPLICATE_SHIFT) | in tegra_set_cif() 62 (conf->truncate << TEGRA_ACIF_CTRL_TRUNCATE_SHIFT) | in tegra_set_cif() [all …]
|
| /linux/net/sched/ |
| H A D | em_text.c | 54 struct tcf_em_text *conf = data; in em_text_change() local 58 if (len < sizeof(*conf) || len < (sizeof(*conf) + conf->pattern_len)) in em_text_change() 61 if (conf->from_layer > conf->to_layer) in em_text_change() 64 if (conf->from_layer == conf->to_layer && in em_text_change() 65 conf->from_offset > conf->to_offset) in em_text_change() 69 ts_conf = textsearch_prepare(conf->algo, (u8 *) conf + sizeof(*conf), in em_text_change() 70 conf->pattern_len, GFP_KERNEL, flags); in em_text_change() 93 tm->from_offset = conf->from_offset; in em_text_change() 94 tm->to_offset = conf->to_offset; in em_text_change() 95 tm->from_layer = conf->from_layer; in em_text_change() [all …]
|
| /linux/scripts/kconfig/tests/choice/ |
| H A D | __init__.py | 7 def test_oldask0(conf): argument 8 assert conf.oldaskconfig() == 0 9 assert conf.stdout_contains('oldask0_expected_stdout') 12 def test_allyes(conf): argument 13 assert conf.allyesconfig() == 0 14 assert conf.config_contains('allyes_expected_config') 17 def test_allmod(conf): argument 18 assert conf.allmodconfig() == 0 19 assert conf.config_contains('allmod_expected_config') 22 def test_allno(conf): argument [all …]
|
| /linux/drivers/net/ethernet/microchip/sparx5/ |
| H A D | sparx5_port.c | 98 if (port->conf.portmode == PHY_INTERFACE_MODE_1000BASEX) in sparx5_get_dev2g5_status() 100 else if (port->conf.portmode == PHY_INTERFACE_MODE_2500BASEX) in sparx5_get_dev2g5_status() 111 if (port->conf.portmode == PHY_INTERFACE_MODE_SGMII) { in sparx5_get_dev2g5_status() 126 bool high_speed_dev = sparx5_is_baser(port->conf.portmode); in sparx5_get_sfi_status() 149 if (port->conf.portmode == PHY_INTERFACE_MODE_5GBASER) in sparx5_get_sfi_status() 151 else if (port->conf.portmode == PHY_INTERFACE_MODE_10GBASER) in sparx5_get_sfi_status() 166 status->speed = port->conf.speed; in sparx5_get_port_status() 167 if (port->conf.power_down) { in sparx5_get_port_status() 171 switch (port->conf.portmode) { in sparx5_get_port_status() 191 struct sparx5_port_config *conf, in sparx5_port_error() argument [all …]
|
| /linux/drivers/net/wireless/ralink/rt2x00/ |
| H 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() 53 memcpy(conf.mac, mac, ETH_ALEN); in rt2x00lib_config_intf() 55 memset(conf.bssid, 0, sizeof(conf.bssid)); in rt2x00lib_config_intf() 57 memcpy(conf.bssid, bssid, ETH_ALEN); in rt2x00lib_config_intf() [all …]
|
| /linux/scripts/kconfig/ |
| H A D | streamline_config.pl | 103 foreach my $conf (@searchconfigs) { 104 my $file = $conf->{"file"}; 108 if (defined($conf->{"test"})) { 109 `$conf->{"test"} $conf->{"file"} 2>/dev/null`; 113 my $exec = $conf->{"exec"}; 235 my $conf = $1; 236 if (defined($selects{$conf})) { 237 $selects{$conf} .= " " . $config; 239 $selects{$conf} = $config; 403 foreach my $conf (@arr) { [all …]
|
| /linux/drivers/platform/x86/intel/telemetry/ |
| H A D | debugfs.c | 334 struct telemetry_debugfs_conf *conf = debugfs_conf; in telem_pss_states_show() local 362 if (evtlog[index].telem_evtid == conf->pss_idle_id) { in telem_pss_states_show() 363 pss_idle[conf->pss_idle_evts - 1] = in telem_pss_states_show() 365 conf->pss_idle_data[conf->pss_idle_evts - 1].bit_pos) & in telem_pss_states_show() 369 TELEM_CHECK_AND_PARSE_EVTS(conf->pss_idle_id, in telem_pss_states_show() 370 conf->pss_idle_evts - 1, in telem_pss_states_show() 372 conf->pss_idle_data, TELEM_MASK_BIT); in telem_pss_states_show() 374 TELEM_CHECK_AND_PARSE_EVTS(conf->pcs_idle_blkd_id, 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() [all …]
|
| /linux/net/netfilter/ |
| H 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() 31 return (skb_find_text((struct sk_buff *)skb, conf->from_offset, 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() [all …]
|
| /linux/drivers/gpu/drm/i915/display/ |
| H A D | dvo_ns2501.c | 207 u8 conf; /* configuration register 8 */ member 234 .conf = NS2501_8_VEN | NS2501_8_HEN | NS2501_8_PD, 254 .conf = NS2501_8_VEN | NS2501_8_HEN | NS2501_8_PD, 273 .conf = NS2501_8_VEN | NS2501_8_HEN | NS2501_8_PD, 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() [all …]
|
| /linux/scripts/kconfig/tests/warn_changed_input/ |
| H A D | __init__.py | 10 def test(conf): argument 11 assert conf.olddefconfig('config') == 0 12 assert 'user-provided values changed by Kconfig' not in conf.stderr 14 assert conf._run_conf('--olddefconfig', dot_config='config', 18 assert conf.stderr_contains('expected_stderr') 19 assert conf.config_matches('expected_config') 21 assert conf._run_conf('--olddefconfig', dot_config='config', 25 assert conf.stderr_contains('expected_stderr') 27 assert conf._run_conf('--savedefconfig=defconfig', dot_config='config', 32 assert conf.stderr_contains('expected_stderr') [all …]
|
| /linux/lib/ |
| H A D | textsearch.c | 205 struct ts_config *conf, in get_linear_data() argument 231 unsigned int textsearch_find_continuous(struct ts_config *conf, in textsearch_find_continuous() argument 237 conf->get_next_block = get_linear_data; in textsearch_find_continuous() 241 return textsearch_find(conf, state); in textsearch_find_continuous() 267 struct ts_config *conf; in textsearch_prepare() local 289 conf = ops->init(pattern, len, gfp_mask, flags); in textsearch_prepare() 290 if (IS_ERR(conf)) { in textsearch_prepare() 291 err = PTR_ERR(conf); in textsearch_prepare() 295 conf->ops = ops; in textsearch_prepare() 296 return conf; in textsearch_prepare() [all …]
|
| /linux/drivers/ata/ |
| H A D | pata_piccolo.c | 37 u16 conf; in tosh_set_piomode() local 38 pci_read_config_word(pdev, 0x50, &conf); in tosh_set_piomode() 39 conf &= 0xE088; in tosh_set_piomode() 40 conf |= pio[adev->pio_mode - XFER_PIO_0]; in tosh_set_piomode() 41 pci_write_config_word(pdev, 0x50, conf); in tosh_set_piomode() 47 u32 conf; in tosh_set_dmamode() local 48 pci_read_config_dword(pdev, 0x5C, &conf); in tosh_set_dmamode() 49 conf &= 0x78FFE088; /* Keep the other bits */ in tosh_set_dmamode() 52 conf |= 0x80000000; in tosh_set_dmamode() 53 conf |= (udma + 2) << 28; in tosh_set_dmamode() [all …]
|
| /linux/drivers/net/wireless/mediatek/mt76/mt7925/ |
| H A D | nan.c | 22 struct cfg80211_nan_conf *conf) in mt7925_nan_set_5g_channel() argument 27 chan = conf->band_cfgs[NL80211_BAND_5GHZ].chan; in mt7925_nan_set_5g_channel() 48 struct cfg80211_nan_conf *conf) in mt7925_nan_set_2g_support() argument 50 if (!conf->band_cfgs[NL80211_BAND_2GHZ].chan) in mt7925_nan_set_2g_support() 68 struct cfg80211_nan_conf *conf) in mt7925_nan_set_dw_interval() argument 70 if (conf->band_cfgs[NL80211_BAND_2GHZ].awake_dw_interval > 0) { in mt7925_nan_set_dw_interval() 73 cpu_to_le32(conf->band_cfgs[NL80211_BAND_2GHZ].awake_dw_interval); in mt7925_nan_set_dw_interval() 76 if (conf->band_cfgs[NL80211_BAND_5GHZ].awake_dw_interval > 0) { in mt7925_nan_set_dw_interval() 79 cpu_to_le32(conf->band_cfgs[NL80211_BAND_5GHZ].awake_dw_interval); in mt7925_nan_set_dw_interval() 84 struct cfg80211_nan_conf *conf) in mt7925_nan_set_disc_beacon() argument [all …]
|
| /linux/net/mac80211/ |
| H A D | chan.c | 49 if (nan_channel->chanctx_conf != &ctx->conf) in ieee80211_chanctx_user_iter_next_nan_channel() 82 rcu_access_pointer(link->conf->chanctx_conf) == &ctx->conf) { in ieee80211_chanctx_user_iter_next_link() 86 iter->chanreq = &link->conf->chanreq; in ieee80211_chanctx_user_iter_next_link() 242 if (radio_idx >= 0 && ctx->conf.radio_idx != radio_idx) in ieee80211_num_chanctx() 263 struct ieee80211_chanctx_conf *conf; in ieee80211_link_get_chanctx() local 265 conf = rcu_dereference_protected(link->conf->chanctx_conf, in ieee80211_link_get_chanctx() 267 if (!conf) in ieee80211_link_get_chanctx() 270 return container_of(conf, struct ieee80211_chanctx, conf); in ieee80211_link_get_chanctx() 482 width = ieee80211_sta_current_bw(link_sta, &link->conf->chanreq.oper, in ieee80211_get_sta_bw() 532 return link->conf->chanreq.oper.width; in ieee80211_get_width_of_link() [all …]
|
| /linux/drivers/mtd/nand/ |
| H A D | ecc-sw-bch.c | 30 bch_encode(engine_conf->bch, buf, nand->ecc.ctx.conf.step_size, code); in nand_ecc_sw_bch_calculate() 53 unsigned int step_size = nand->ecc.ctx.conf.step_size; in nand_ecc_sw_bch_correct() 111 unsigned int eccsize = nand->ecc.ctx.conf.step_size; in nand_ecc_sw_bch_init() 172 struct nand_ecc_props *conf = &nand->ecc.ctx.conf; in nand_ecc_sw_bch_init_ctx() local 187 conf->engine_type = NAND_ECC_ENGINE_TYPE_SOFT; in nand_ecc_sw_bch_init_ctx() 188 conf->algo = NAND_ECC_ALGO_BCH; in nand_ecc_sw_bch_init_ctx() 189 conf->step_size = nand->ecc.user_conf.step_size; in nand_ecc_sw_bch_init_ctx() 190 conf->strength = nand->ecc.user_conf.strength; in nand_ecc_sw_bch_init_ctx() 198 if (!conf->step_size) { in nand_ecc_sw_bch_init_ctx() 200 conf->step_size = 512; in nand_ecc_sw_bch_init_ctx() [all …]
|