Home
last modified time | relevance | path

Searched refs:conf (Results 1 – 25 of 368) sorted by relevance

12345678910>>...15

/drivers/md/
Draid5-log.h5 extern int r5l_init_log(struct r5conf *conf, struct md_rdev *rdev);
6 extern void r5l_exit_log(struct r5conf *conf);
13 extern bool r5l_log_disk_error(struct r5conf *conf);
16 r5c_try_caching_write(struct r5conf *conf, struct stripe_head *sh,
19 r5c_finish_stripe_write_out(struct r5conf *conf, struct stripe_head *sh,
24 extern void r5c_handle_cached_data_endio(struct r5conf *conf,
28 extern void r5c_flush_cache(struct r5conf *conf, int num);
29 extern void r5c_check_stripe_cache_usage(struct r5conf *conf);
30 extern void r5c_check_cached_full_stripe(struct r5conf *conf);
34 extern bool r5c_big_stripe_cached(struct r5conf *conf, sector_t sect);
[all …]
Dmd-faulty.c85 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 …]
Draid10.c67 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);
93 struct r10conf *conf = data; in r10bio_pool_alloc() local
94 int size = offsetof(struct r10bio, devs[conf->copies]); in r10bio_pool_alloc()
118 struct r10conf *conf = data; in r10buf_pool_alloc() local
125 r10_bio = r10bio_pool_alloc(gfp_flags, conf); in r10buf_pool_alloc()
129 if (test_bit(MD_RECOVERY_SYNC, &conf->mddev->recovery) || in r10buf_pool_alloc()
[all …]
Draid1.c45 static void allow_barrier(struct r1conf *conf, sector_t sector_nr);
46 static void lower_barrier(struct r1conf *conf, sector_t sector_nr);
220 static void put_all_bios(struct r1conf *conf, struct r1bio *r1_bio) in put_all_bios() argument
224 for (i = 0; i < conf->raid_disks * 2; i++) { in put_all_bios()
234 struct r1conf *conf = r1_bio->mddev->private; in free_r1bio() local
236 put_all_bios(conf, r1_bio); in free_r1bio()
237 mempool_free(r1_bio, &conf->r1bio_pool); in free_r1bio()
242 struct r1conf *conf = r1_bio->mddev->private; in put_buf() local
246 for (i = 0; i < conf->raid_disks * 2; i++) { in put_buf()
249 rdev_dec_pending(conf->mirrors[i].rdev, r1_bio->mddev); in put_buf()
[all …]
Draid5.c70 static inline struct hlist_head *stripe_hash(struct r5conf *conf, sector_t sect) in stripe_hash() argument
73 return &conf->stripe_hashtbl[hash]; in stripe_hash()
81 static inline void lock_device_hash_lock(struct r5conf *conf, int hash) in lock_device_hash_lock() argument
83 spin_lock_irq(conf->hash_locks + hash); in lock_device_hash_lock()
84 spin_lock(&conf->device_lock); in lock_device_hash_lock()
87 static inline void unlock_device_hash_lock(struct r5conf *conf, int hash) in unlock_device_hash_lock() argument
89 spin_unlock(&conf->device_lock); in unlock_device_hash_lock()
90 spin_unlock_irq(conf->hash_locks + hash); in unlock_device_hash_lock()
93 static inline void lock_all_device_hash_locks_irq(struct r5conf *conf) in lock_all_device_hash_locks_irq() argument
96 spin_lock_irq(conf->hash_locks); in lock_all_device_hash_locks_irq()
[all …]
Dmd-multipath.c26 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 …]
Dmd-linear.c27 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()
57 struct linear_conf *conf; in linear_congested() local
61 conf = rcu_dereference(mddev->private); in linear_congested()
63 for (i = 0; i < conf->raid_disks && !ret ; i++) { in linear_congested()
64 struct request_queue *q = bdev_get_queue(conf->disks[i].rdev->bdev); in linear_congested()
74 struct linear_conf *conf; in linear_size() local
77 conf = mddev->private; in linear_size()
[all …]
Draid0.c34 struct r0conf *conf = mddev->private; in raid0_congested() local
35 struct md_rdev **devlist = conf->devlist; in raid0_congested()
36 int raid_disks = conf->strip_zone[0].nb_dev; in raid0_congested()
56 struct r0conf *conf = mddev->private; in dump_zones() local
57 int raid_disks = conf->strip_zone[0].nb_dev; in dump_zones()
60 conf->nr_strip_zones, conf->nr_strip_zones==1?"":"s"); in dump_zones()
61 for (j = 0; j < conf->nr_strip_zones; j++) { in dump_zones()
65 for (k = 0; k < conf->strip_zone[j].nb_dev; k++) in dump_zones()
67 bdevname(conf->devlist[j*raid_disks in dump_zones()
71 zone_size = conf->strip_zone[j].zone_end - zone_start; in dump_zones()
[all …]
Draid5-cache.c39 #define R5C_FULL_STRIPE_FLUSH_BATCH(conf) (conf->max_nr_stripes / 4) argument
195 static inline sector_t r5c_tree_index(struct r5conf *conf, in r5c_tree_index() argument
200 offset = sector_div(sect, conf->chunk_sectors); in r5c_tree_index()
294 r5c_return_dev_pending_writes(struct r5conf *conf, struct r5dev *dev) in r5c_return_dev_pending_writes() argument
303 md_write_end(conf->mddev); in r5c_return_dev_pending_writes()
309 void r5c_handle_cached_data_endio(struct r5conf *conf, in r5c_handle_cached_data_endio() argument
317 r5c_return_dev_pending_writes(conf, &sh->dev[i]); in r5c_handle_cached_data_endio()
318 md_bitmap_endwrite(conf->mddev->bitmap, sh->sector, in r5c_handle_cached_data_endio()
329 void r5c_check_stripe_cache_usage(struct r5conf *conf) in r5c_check_stripe_cache_usage() argument
333 if (!r5c_is_writeback(conf->log)) in r5c_check_stripe_cache_usage()
[all …]
/drivers/fpga/
Daltera-cvp.c78 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 …]
Daltera-ps-spi.c90 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 …]
Dxilinx-spi.c31 struct xilinx_spi_conf *conf = mgr->priv; in xilinx_spi_state() local
33 if (!gpiod_get_value(conf->done)) in xilinx_spi_state()
43 struct xilinx_spi_conf *conf = mgr->priv; in xilinx_spi_write_init() local
52 gpiod_set_value(conf->prog_b, 1); in xilinx_spi_write_init()
56 gpiod_set_value(conf->prog_b, 0); in xilinx_spi_write_init()
58 if (gpiod_get_value(conf->done)) { in xilinx_spi_write_init()
71 struct xilinx_spi_conf *conf = mgr->priv; in xilinx_spi_write() local
82 ret = spi_write(conf->spi, fw_data, stride); in xilinx_spi_write()
94 static int xilinx_spi_apply_cclk_cycles(struct xilinx_spi_conf *conf) in xilinx_spi_apply_cclk_cycles() argument
96 struct spi_device *spi = conf->spi; in xilinx_spi_apply_cclk_cycles()
[all …]
/drivers/net/wireless/ath/ath9k/
Dcommon-beacon.c42 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 …]
Dantenna.c90 static inline bool ath_ant_div_comb_alt_check(struct ath_hw_antcomb_conf *conf, in ath_ant_div_comb_alt_check() argument
99 if (conf->main_lna_conf == ATH_ANT_DIV_COMB_LNA2 && in ath_ant_div_comb_alt_check()
100 conf->alt_lna_conf == ATH_ANT_DIV_COMB_LNA1) in ath_ant_div_comb_alt_check()
103 if (conf->main_lna_conf == ATH_ANT_DIV_COMB_LNA1 && in ath_ant_div_comb_alt_check()
104 conf->alt_lna_conf == ATH_ANT_DIV_COMB_LNA2) in ath_ant_div_comb_alt_check()
107 switch (conf->div_group) { in ath_ant_div_comb_alt_check()
194 struct ath_hw_antcomb_conf *conf) in ath_ant_set_alt_ratio() argument
203 if (conf->main_lna_conf == ATH_ANT_DIV_COMB_LNA2) in ath_ant_set_alt_ratio()
204 conf->alt_lna_conf = ATH_ANT_DIV_COMB_LNA1; in ath_ant_set_alt_ratio()
206 conf->alt_lna_conf = ATH_ANT_DIV_COMB_LNA2; in ath_ant_set_alt_ratio()
[all …]
/drivers/mfd/
Datmel-smc.c20 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 …]
/drivers/net/wireless/realtek/rtw88/
Dps.c66 struct rtw_lps_conf *conf = &rtwdev->lps_conf; in rtw_leave_lps_core() local
68 conf->state = RTW_ALL_ON; in rtw_leave_lps_core()
69 conf->awake_interval = 1; in rtw_leave_lps_core()
70 conf->rlbm = 0; in rtw_leave_lps_core()
71 conf->smart_ps = 0; in rtw_leave_lps_core()
81 struct rtw_lps_conf *conf = &rtwdev->lps_conf; in rtw_enter_lps_core() local
83 conf->state = RTW_RF_OFF; in rtw_enter_lps_core()
84 conf->awake_interval = 1; in rtw_enter_lps_core()
85 conf->rlbm = 1; in rtw_enter_lps_core()
86 conf->smart_ps = 2; in rtw_enter_lps_core()
[all …]
/drivers/net/wireless/ralink/rt2x00/
Drt2x00config.c24 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()
36 conf.sync = TSF_SYNC_AP_NONE; in rt2x00lib_config_intf()
39 conf.sync = TSF_SYNC_INFRA; in rt2x00lib_config_intf()
42 conf.sync = TSF_SYNC_NONE; in rt2x00lib_config_intf()
52 memset(conf.mac, 0, sizeof(conf.mac)); in rt2x00lib_config_intf()
54 memcpy(conf.mac, mac, ETH_ALEN); in rt2x00lib_config_intf()
56 memset(conf.bssid, 0, sizeof(conf.bssid)); in rt2x00lib_config_intf()
58 memcpy(conf.bssid, bssid, ETH_ALEN); in rt2x00lib_config_intf()
[all …]
/drivers/platform/x86/
Dintel_telemetry_debugfs.c335 struct telemetry_debugfs_conf *conf = debugfs_conf; in telem_pss_states_show() local
363 if (evtlog[index].telem_evtid == conf->pss_idle_id) { in telem_pss_states_show()
364 pss_idle[conf->pss_idle_evts - 1] = in telem_pss_states_show()
366 conf->pss_idle_data[conf->pss_idle_evts - 1].bit_pos) & in telem_pss_states_show()
370 TELEM_CHECK_AND_PARSE_EVTS(conf->pss_idle_id, in telem_pss_states_show()
371 conf->pss_idle_evts - 1, in telem_pss_states_show()
373 conf->pss_idle_data, TELEM_MASK_BIT); in telem_pss_states_show()
375 TELEM_CHECK_AND_PARSE_EVTS(conf->pcs_idle_blkd_id, in telem_pss_states_show()
376 conf->pcs_idle_blkd_evts, in telem_pss_states_show()
379 conf->pcs_idle_blkd_data, in telem_pss_states_show()
[all …]
/drivers/gpu/drm/i915/display/
Ddvo_ns2501.c207 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 …]
/drivers/pinctrl/cirrus/
Dpinctrl-madera-core.c517 unsigned int conf[2]; in madera_pin_dbg_show() local
522 ret = regmap_read(priv->madera->regmap, reg, &conf[0]); in madera_pin_dbg_show()
526 ret = regmap_read(priv->madera->regmap, reg + 1, &conf[1]); in madera_pin_dbg_show()
530 seq_printf(s, "%04x:%04x", conf[0], conf[1]); in madera_pin_dbg_show()
532 fn = (conf[0] & MADERA_GP1_FN_MASK) >> MADERA_GP1_FN_SHIFT; in madera_pin_dbg_show()
537 if (conf[1] & MADERA_GP1_DIR_MASK) in madera_pin_dbg_show()
543 if (conf[1] & MADERA_GP1_PU_MASK) in madera_pin_dbg_show()
546 if (conf[1] & MADERA_GP1_PD_MASK) in madera_pin_dbg_show()
549 if (conf[0] & MADERA_GP1_DB_MASK) in madera_pin_dbg_show()
552 if (conf[0] & MADERA_GP1_OP_CFG_MASK) in madera_pin_dbg_show()
[all …]
/drivers/usb/typec/altmodes/
Ddisplayport.c68 u8 state = get_count_order(DP_CONF_GET_PIN_ASSIGN(dp->data.conf)); in dp_altmode_notify()
76 u32 conf = DP_CONF_SIGNALING_DP; /* Only DP signaling supported */ in dp_altmode_configure() local
83 conf |= DP_CONF_UFP_U_AS_DFP_D; in dp_altmode_configure()
89 conf |= DP_CONF_UFP_U_AS_UFP_D; in dp_altmode_configure()
98 if (!DP_CONF_GET_PIN_ASSIGN(dp->data.conf)) { in dp_altmode_configure()
109 conf |= DP_CONF_SET_PIN_ASSIGN(pin_assign); in dp_altmode_configure()
112 dp->data.conf = conf; in dp_altmode_configure()
119 bool configured = !!DP_CONF_GET_PIN_ASSIGN(dp->data.conf); in dp_altmode_status_update()
124 dp->data.conf = 0; in dp_altmode_status_update()
128 } else if (!(con & DP_CONF_CURRENTLY(dp->data.conf))) { in dp_altmode_status_update()
[all …]
/drivers/isdn/mISDN/
Ddsp_cmx.c161 struct dsp_conf *conf; in dsp_cmx_debug() local
170 if (odsp->conf) in dsp_cmx_debug()
171 printk(" (Conf %d)", odsp->conf->id); in dsp_cmx_debug()
177 list_for_each_entry(conf, &conf_ilist, list) { in dsp_cmx_debug()
178 printk(KERN_DEBUG "* Conf %d (%p)\n", conf->id, conf); in dsp_cmx_debug()
179 list_for_each_entry(member, &conf->mlist, list) { in dsp_cmx_debug()
200 struct dsp_conf *conf; in dsp_cmx_search_conf() local
208 list_for_each_entry(conf, &conf_ilist, list) in dsp_cmx_search_conf()
209 if (conf->id == id) in dsp_cmx_search_conf()
210 return conf; in dsp_cmx_search_conf()
[all …]
/drivers/ata/
Dpata_piccolo.c37 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 …]
/drivers/thermal/ti-soc-thermal/
Dti-bandgap.c73 t = bgp->conf->sensors[(id)].registers; \
99 for (i = 0; i < bgp->conf->sensor_count; i++) in ti_bandgap_power()
153 tsr = bgp->conf->sensors[id].registers; in ti_bandgap_read_temp()
202 for (i = 0; i < bgp->conf->sensor_count; i++) { in ti_bandgap_talert_irq_handler()
203 tsr = bgp->conf->sensors[i].registers; in ti_bandgap_talert_irq_handler()
233 __func__, bgp->conf->sensors[i].domain, in ti_bandgap_talert_irq_handler()
237 if (bgp->conf->report_temperature) in ti_bandgap_talert_irq_handler()
238 bgp->conf->report_temperature(bgp, i); in ti_bandgap_talert_irq_handler()
284 const struct ti_bandgap_data *conf = bgp->conf; in ti_bandgap_adc_to_mcelsius() local
287 if (adc_val < conf->adc_start_val || adc_val > conf->adc_end_val) in ti_bandgap_adc_to_mcelsius()
[all …]
/drivers/media/platform/omap3isp/
Disph3a_af.c28 struct omap3isp_h3a_af_config *conf = priv; in h3a_af_setup_regs() local
48 pax1 = ((conf->paxel.width >> 1) - 1) << AF_PAXW_SHIFT; in h3a_af_setup_regs()
50 pax1 |= (conf->paxel.height >> 1) - 1; in h3a_af_setup_regs()
55 pax2 = ((conf->paxel.line_inc >> 1) - 1) << AF_LINE_INCR_SHIFT; in h3a_af_setup_regs()
57 pax2 |= (conf->paxel.v_cnt - 1) << AF_VT_COUNT_SHIFT; in h3a_af_setup_regs()
59 pax2 |= (conf->paxel.h_cnt - 1); in h3a_af_setup_regs()
64 paxstart = conf->paxel.h_start << AF_HZ_START_SHIFT; in h3a_af_setup_regs()
66 paxstart |= conf->paxel.v_start; in h3a_af_setup_regs()
71 isp_reg_writel(af->isp, conf->iir.h_start, in h3a_af_setup_regs()
79 coef |= conf->iir.coeff_set0[index]; in h3a_af_setup_regs()
[all …]

12345678910>>...15