/Linux-v6.1/drivers/md/ |
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 …]
|
D | md-faulty.c | 85 static int check_mode(struct faulty_conf *conf, int mode) in check_mode() argument 87 if (conf->period[mode] == 0 && in check_mode() 88 atomic_read(&conf->counters[mode]) <= 0) in check_mode() 92 if (atomic_dec_and_test(&conf->counters[mode])) { in check_mode() 93 if (conf->period[mode]) in check_mode() 94 atomic_set(&conf->counters[mode], conf->period[mode]); in check_mode() 100 static int check_sector(struct faulty_conf *conf, sector_t start, sector_t end, int dir) in check_sector() argument 104 for (i=0; i<conf->nfaults; i++) in check_sector() 105 if (conf->faults[i] >= start && in check_sector() 106 conf->faults[i] < end) { in check_sector() [all …]
|
D | raid10.c | 67 static void allow_barrier(struct r10conf *conf); 68 static void lower_barrier(struct r10conf *conf); 69 static int _enough(struct r10conf *conf, int previous, int ignore); 70 static int enough(struct r10conf *conf, int ignore); 75 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 …]
|
D | raid5.c | 73 static inline struct hlist_head *stripe_hash(struct r5conf *conf, sector_t sect) in stripe_hash() argument 75 int hash = (sect >> RAID5_STRIPE_SHIFT(conf)) & HASH_MASK; in stripe_hash() 76 return &conf->stripe_hashtbl[hash]; in stripe_hash() 79 static inline int stripe_hash_locks_hash(struct r5conf *conf, sector_t sect) in stripe_hash_locks_hash() argument 81 return (sect >> RAID5_STRIPE_SHIFT(conf)) & STRIPE_HASH_LOCKS_MASK; in stripe_hash_locks_hash() 84 static inline void lock_device_hash_lock(struct r5conf *conf, int hash) in lock_device_hash_lock() argument 85 __acquires(&conf->device_lock) in lock_device_hash_lock() 87 spin_lock_irq(conf->hash_locks + hash); in lock_device_hash_lock() 88 spin_lock(&conf->device_lock); in lock_device_hash_lock() 91 static inline void unlock_device_hash_lock(struct r5conf *conf, int hash) in unlock_device_hash_lock() argument [all …]
|
D | raid1.c | 46 static void allow_barrier(struct r1conf *conf, sector_t sector_nr); 47 static void lower_barrier(struct r1conf *conf, sector_t sector_nr); 241 static void put_all_bios(struct r1conf *conf, struct r1bio *r1_bio) in put_all_bios() argument 245 for (i = 0; i < conf->raid_disks * 2; i++) { in put_all_bios() 255 struct r1conf *conf = r1_bio->mddev->private; in free_r1bio() local 257 put_all_bios(conf, r1_bio); in free_r1bio() 258 mempool_free(r1_bio, &conf->r1bio_pool); in free_r1bio() 263 struct r1conf *conf = r1_bio->mddev->private; in put_buf() local 267 for (i = 0; i < conf->raid_disks * 2; i++) { in put_buf() 270 rdev_dec_pending(conf->mirrors[i].rdev, r1_bio->mddev); in put_buf() [all …]
|
D | md-multipath.c | 26 static int multipath_map (struct mpconf *conf) in multipath_map() argument 28 int i, disks = conf->raid_disks; in multipath_map() 37 struct md_rdev *rdev = rcu_dereference(conf->multipaths[i].rdev); in multipath_map() 55 struct mpconf *conf = mddev->private; in multipath_reschedule_retry() local 57 spin_lock_irqsave(&conf->device_lock, flags); in multipath_reschedule_retry() 58 list_add(&mp_bh->retry_list, &conf->retry_list); in multipath_reschedule_retry() 59 spin_unlock_irqrestore(&conf->device_lock, flags); in multipath_reschedule_retry() 71 struct mpconf *conf = mp_bh->mddev->private; in multipath_end_bh_io() local 75 mempool_free(mp_bh, &conf->pool); in multipath_end_bh_io() 81 struct mpconf *conf = mp_bh->mddev->private; in multipath_end_request() local [all …]
|
D | raid0.c | 40 struct r0conf *conf = mddev->private; in dump_zones() local 41 int raid_disks = conf->strip_zone[0].nb_dev; in dump_zones() 44 conf->nr_strip_zones, conf->nr_strip_zones==1?"":"s"); in dump_zones() 45 for (j = 0; j < conf->nr_strip_zones; j++) { in dump_zones() 49 for (k = 0; k < conf->strip_zone[j].nb_dev; k++) in dump_zones() 51 conf->devlist[j * raid_disks + k]->bdev); in dump_zones() 54 zone_size = conf->strip_zone[j].zone_end - zone_start; in dump_zones() 57 (unsigned long long)conf->strip_zone[j].dev_start>>1, in dump_zones() 59 zone_start = conf->strip_zone[j].zone_end; in dump_zones() 70 struct r0conf *conf = kzalloc(sizeof(*conf), GFP_KERNEL); in create_strip_zones() local [all …]
|
D | md-linear.c | 27 struct linear_conf *conf; in which_dev() local 31 conf = mddev->private; in which_dev() 40 if (sector < conf->disks[mid].end_sector) in which_dev() 46 return conf->disks + lo; in which_dev() 51 struct linear_conf *conf; in linear_size() local 54 conf = mddev->private; in linear_size() 57 array_sectors = conf->array_sectors; in linear_size() 64 struct linear_conf *conf; in linear_conf() local 68 conf = kzalloc(struct_size(conf, disks, raid_disks), GFP_KERNEL); in linear_conf() 69 if (!conf) in linear_conf() [all …]
|
/Linux-v6.1/drivers/fpga/ |
D | altera-cvp.c | 78 void (*write_data)(struct altera_cvp_conf *conf, 88 void (*switch_clk)(struct altera_cvp_conf *conf); 89 int (*clear_state)(struct altera_cvp_conf *conf); 96 static int altera_read_config_byte(struct altera_cvp_conf *conf, in altera_read_config_byte() argument 99 return pci_read_config_byte(conf->pci_dev, conf->vsec_offset + where, in altera_read_config_byte() 103 static int altera_read_config_dword(struct altera_cvp_conf *conf, in altera_read_config_dword() argument 106 return pci_read_config_dword(conf->pci_dev, conf->vsec_offset + where, in altera_read_config_dword() 110 static int altera_write_config_dword(struct altera_cvp_conf *conf, in altera_write_config_dword() argument 113 return pci_write_config_dword(conf->pci_dev, conf->vsec_offset + where, in altera_write_config_dword() 119 struct altera_cvp_conf *conf = mgr->priv; in altera_cvp_state() local [all …]
|
D | altera-ps-spi.c | 90 struct altera_ps_conf *conf = mgr->priv; in altera_ps_state() local 92 if (gpiod_get_value_cansleep(conf->status)) in altera_ps_state() 110 struct altera_ps_conf *conf = mgr->priv; in altera_ps_write_init() local 114 conf->info_flags = info->flags; in altera_ps_write_init() 121 gpiod_set_value_cansleep(conf->config, 1); in altera_ps_write_init() 124 altera_ps_delay(conf->data->t_cfg_us); in altera_ps_write_init() 126 if (!gpiod_get_value_cansleep(conf->status)) { in altera_ps_write_init() 131 gpiod_set_value_cansleep(conf->config, 0); in altera_ps_write_init() 133 min = conf->data->status_wait_min_us; in altera_ps_write_init() 134 max = conf->data->status_wait_max_us; in altera_ps_write_init() [all …]
|
D | xilinx-spi.c | 32 struct xilinx_spi_conf *conf = mgr->priv; in get_done_gpio() local 35 ret = gpiod_get_value(conf->done); in get_done_gpio() 66 struct xilinx_spi_conf *conf = mgr->priv; in wait_for_init_b() local 69 if (conf->init_b) { in wait_for_init_b() 71 int ret = gpiod_get_value(conf->init_b); in wait_for_init_b() 98 struct xilinx_spi_conf *conf = mgr->priv; in xilinx_spi_write_init() local 106 gpiod_set_value(conf->prog_b, 1); in xilinx_spi_write_init() 110 gpiod_set_value(conf->prog_b, 0); in xilinx_spi_write_init() 114 gpiod_set_value(conf->prog_b, 0); in xilinx_spi_write_init() 133 struct xilinx_spi_conf *conf = mgr->priv; in xilinx_spi_write() local [all …]
|
/Linux-v6.1/drivers/net/wireless/ath/ath9k/ |
D | common-beacon.c | 42 struct ath_beacon_config *conf, in ath9k_cmn_beacon_config_sta() argument 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() 72 bs->bs_intval = TU_TO_USEC(conf->intval); in ath9k_cmn_beacon_config_sta() 73 bs->bs_dtimperiod = conf->dtim_period * bs->bs_intval; in ath9k_cmn_beacon_config_sta() 74 bs->bs_nexttbtt = conf->nexttbtt; in ath9k_cmn_beacon_config_sta() 75 bs->bs_nextdtim = conf->nexttbtt; in ath9k_cmn_beacon_config_sta() 76 if (conf->dtim_period > 1) in ath9k_cmn_beacon_config_sta() 85 bs->bs_bmissthreshold = DIV_ROUND_UP(conf->bmiss_timeout, conf->intval); in ath9k_cmn_beacon_config_sta() [all …]
|
/Linux-v6.1/scripts/kconfig/tests/choice/ |
D | __init__.py | 14 def test_oldask0(conf): argument 15 assert conf.oldaskconfig() == 0 16 assert conf.stdout_contains('oldask0_expected_stdout') 19 def test_oldask1(conf): argument 20 assert conf.oldaskconfig('oldask1_config') == 0 21 assert conf.stdout_contains('oldask1_expected_stdout') 24 def test_allyes(conf): argument 25 assert conf.allyesconfig() == 0 26 assert conf.config_contains('allyes_expected_config') 29 def test_allmod(conf): argument [all …]
|
/Linux-v6.1/include/linux/ |
D | textsearch.h | 78 struct ts_config *conf, 89 void (*finish)(struct ts_config *conf, 105 static inline unsigned int textsearch_next(struct ts_config *conf, in textsearch_next() argument 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() 124 static inline unsigned int textsearch_find(struct ts_config *conf, in textsearch_find() argument 128 return textsearch_next(conf, state); in textsearch_find() 135 static inline void *textsearch_get_pattern(struct ts_config *conf) in textsearch_get_pattern() argument 137 return conf->ops->get_pattern(conf); in textsearch_get_pattern() [all …]
|
/Linux-v6.1/drivers/clk/ |
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-v6.1/drivers/mfd/ |
D | atmel-smc.c | 20 void atmel_smc_cs_conf_init(struct atmel_smc_cs_conf *conf) in atmel_smc_cs_conf_init() argument 22 memset(conf, 0, sizeof(*conf)); in atmel_smc_cs_conf_init() 93 int atmel_smc_cs_conf_set_timing(struct atmel_smc_cs_conf *conf, in atmel_smc_cs_conf_set_timing() argument 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() 135 int atmel_smc_cs_conf_set_setup(struct atmel_smc_cs_conf *conf, in atmel_smc_cs_conf_set_setup() argument 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() 174 int atmel_smc_cs_conf_set_pulse(struct atmel_smc_cs_conf *conf, in atmel_smc_cs_conf_set_pulse() argument 191 conf->pulse &= ~GENMASK(shift + 7, shift); in atmel_smc_cs_conf_set_pulse() [all …]
|
/Linux-v6.1/net/sched/ |
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() 63 conf->pattern_len, GFP_KERNEL, flags); in em_text_change() 86 tm->from_offset = conf->from_offset; in em_text_change() 87 tm->to_offset = conf->to_offset; in em_text_change() 88 tm->from_layer = conf->from_layer; in em_text_change() [all …]
|
/Linux-v6.1/drivers/iio/imu/inv_icm42600/ |
D | inv_icm42600_core.c | 49 const struct inv_icm42600_conf *conf; member 73 .conf = &inv_icm42600_default_conf, 78 .conf = &inv_icm42600_default_conf, 83 .conf = &inv_icm42600_default_conf, 88 .conf = &inv_icm42600_default_conf, 142 enum inv_icm42600_sensor_mode oldgyro = st->conf.gyro.mode; in inv_icm42600_set_pwr_mgmt0() 143 enum inv_icm42600_sensor_mode oldaccel = st->conf.accel.mode; in inv_icm42600_set_pwr_mgmt0() 144 bool oldtemp = st->conf.temp_en; in inv_icm42600_set_pwr_mgmt0() 161 st->conf.gyro.mode = gyro; in inv_icm42600_set_pwr_mgmt0() 162 st->conf.accel.mode = accel; in inv_icm42600_set_pwr_mgmt0() [all …]
|
/Linux-v6.1/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_port.c | 96 if (port->conf.portmode == PHY_INTERFACE_MODE_1000BASEX) in sparx5_get_dev2g5_status() 98 else if (port->conf.portmode == PHY_INTERFACE_MODE_2500BASEX) in sparx5_get_dev2g5_status() 109 if (port->conf.portmode == PHY_INTERFACE_MODE_SGMII) { in sparx5_get_dev2g5_status() 124 bool high_speed_dev = sparx5_is_baser(port->conf.portmode); in sparx5_get_sfi_status() 147 if (port->conf.portmode == PHY_INTERFACE_MODE_5GBASER) in sparx5_get_sfi_status() 149 else if (port->conf.portmode == PHY_INTERFACE_MODE_10GBASER) in sparx5_get_sfi_status() 164 status->speed = port->conf.speed; in sparx5_get_port_status() 165 if (port->conf.power_down) { in sparx5_get_port_status() 169 switch (port->conf.portmode) { in sparx5_get_port_status() 189 struct sparx5_port_config *conf, in sparx5_port_error() argument [all …]
|
D | sparx5_phylink.c | 53 struct sparx5_port_config conf; in sparx5_phylink_mac_link_up() local 56 conf = port->conf; in sparx5_phylink_mac_link_up() 57 conf.duplex = duplex; in sparx5_phylink_mac_link_up() 58 conf.pause = 0; in sparx5_phylink_mac_link_up() 59 conf.pause |= tx_pause ? MLO_PAUSE_TX : 0; in sparx5_phylink_mac_link_up() 60 conf.pause |= rx_pause ? MLO_PAUSE_RX : 0; in sparx5_phylink_mac_link_up() 61 conf.speed = speed; in sparx5_phylink_mac_link_up() 63 err = sparx5_port_config(port->sparx5, port, &conf); in sparx5_phylink_mac_link_up() 101 struct sparx5_port_config conf; in sparx5_pcs_config() local 104 conf = port->conf; in sparx5_pcs_config() [all …]
|
/Linux-v6.1/scripts/kconfig/ |
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"}; 233 my $conf = $1; 234 if (defined($selects{$conf})) { 235 $selects{$conf} .= " " . $config; 237 $selects{$conf} = $config; 401 foreach my $conf (@arr) { [all …]
|
/Linux-v6.1/drivers/net/wireless/ralink/rt2x00/ |
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-v6.1/net/netfilter/ |
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-v6.1/drivers/platform/x86/intel/telemetry/ |
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-v6.1/drivers/gpu/drm/i915/display/ |
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 …]
|