Home
last modified time | relevance | path

Searched refs:sc (Results 1 – 25 of 379) sorted by relevance

12345678910>>...16

/linux/drivers/net/wireless/ath/ath9k/
H A Dchannel.c23 static int ath_set_channel(struct ath_softc *sc) in ath_set_channel() argument
25 struct ath_hw *ah = sc->sc_ah; in ath_set_channel()
27 struct ieee80211_hw *hw = sc->hw; in ath_set_channel()
29 struct cfg80211_chan_def *chandef = &sc->cur_chan->chandef; in ath_set_channel()
47 ath_update_survey_stats(sc); in ath_set_channel()
57 if (!sc->cur_chan->offchannel && sc->cur_survey != &sc->survey[pos]) { in ath_set_channel()
58 if (sc->cur_survey) in ath_set_channel()
59 sc in ath_set_channel()
103 ath_chanctx_init(struct ath_softc * sc) ath_chanctx_init() argument
130 ath_chanctx_set_channel(struct ath_softc * sc,struct ath_chanctx * ctx,struct cfg80211_chan_def * chandef) ath_chanctx_set_channel() argument
157 ath_is_go_chanctx_present(struct ath_softc * sc) ath_is_go_chanctx_present() argument
233 chanctx_event_delta(struct ath_softc * sc) chanctx_event_delta() argument
242 ath_chanctx_check_active(struct ath_softc * sc,struct ath_chanctx * ctx) ath_chanctx_check_active() argument
322 ath_chanctx_get_next(struct ath_softc * sc,struct ath_chanctx * ctx) ath_chanctx_get_next() argument
329 ath_chanctx_adjust_tbtt_delta(struct ath_softc * sc) ath_chanctx_adjust_tbtt_delta() argument
368 ath_chanctx_setup_timer(struct ath_softc * sc,u32 tsf_time) ath_chanctx_setup_timer() argument
384 ath_chanctx_handle_bmiss(struct ath_softc * sc,struct ath_chanctx * ctx,struct ath_vif * avp) ath_chanctx_handle_bmiss() argument
409 ath_chanctx_offchannel_noa(struct ath_softc * sc,struct ath_chanctx * ctx,struct ath_vif * avp,u32 tsf_time) ath_chanctx_offchannel_noa() argument
435 ath_chanctx_set_periodic_noa(struct ath_softc * sc,struct ath_vif * avp,struct ath_beacon_config * cur_conf,u32 tsf_time,u32 beacon_int) ath_chanctx_set_periodic_noa() argument
468 ath_chanctx_set_oneshot_noa(struct ath_softc * sc,struct ath_vif * avp,u32 tsf_time,u32 duration) ath_chanctx_set_oneshot_noa() argument
489 ath_chanctx_event(struct ath_softc * sc,struct ieee80211_vif * vif,enum ath_chanctx_event ev) ath_chanctx_event() argument
772 ath_chanctx_beacon_sent_ev(struct ath_softc * sc,enum ath_chanctx_event ev) ath_chanctx_beacon_sent_ev() argument
779 ath_chanctx_beacon_recv_ev(struct ath_softc * sc,enum ath_chanctx_event ev) ath_chanctx_beacon_recv_ev() argument
785 ath_scan_channel_duration(struct ath_softc * sc,struct ieee80211_channel * chan) ath_scan_channel_duration() argument
796 ath_chanctx_switch(struct ath_softc * sc,struct ath_chanctx * ctx,struct cfg80211_chan_def * chandef) ath_chanctx_switch() argument
843 ath_chanctx_offchan_switch(struct ath_softc * sc,struct ieee80211_channel * chan) ath_chanctx_offchan_switch() argument
856 ath_chanctx_get_oper_chan(struct ath_softc * sc,bool active) ath_chanctx_get_oper_chan() argument
875 ath_scan_next_channel(struct ath_softc * sc) ath_scan_next_channel() argument
905 ath_offchannel_next(struct ath_softc * sc) ath_offchannel_next() argument
934 ath_roc_complete(struct ath_softc * sc,enum ath_roc_complete_reason reason) ath_roc_complete() argument
959 ath_scan_complete(struct ath_softc * sc,bool abort) ath_scan_complete() argument
984 ath_scan_send_probe(struct ath_softc * sc,struct cfg80211_ssid * ssid) ath_scan_send_probe() argument
1021 ath_scan_channel_start(struct ath_softc * sc) ath_scan_channel_start() argument
1043 struct ath_softc *sc = timer_container_of(sc, t, sched.timer); ath_chanctx_timer() local
1054 struct ath_softc *sc = timer_container_of(sc, t, offchannel.timer); ath_offchannel_timer() local
1096 ath_chanctx_send_vif_ps_frame(struct ath_softc * sc,struct ath_vif * avp,bool powersave) ath_chanctx_send_vif_ps_frame() argument
1141 ath_chanctx_send_ps_frame(struct ath_softc * sc,bool powersave) ath_chanctx_send_ps_frame() argument
1156 ath_chanctx_defer_switch(struct ath_softc * sc) ath_chanctx_defer_switch() argument
1182 ath_offchannel_channel_change(struct ath_softc * sc) ath_offchannel_channel_change() argument
1222 ath_chanctx_set_next(struct ath_softc * sc,bool force) ath_chanctx_set_next() argument
1319 struct ath_softc *sc = container_of(work, struct ath_softc, ath_chanctx_work() local
1326 ath9k_offchannel_init(struct ath_softc * sc) ath9k_offchannel_init() argument
1354 ath9k_init_channel_context(struct ath_softc * sc) ath9k_init_channel_context() argument
1364 ath9k_deinit_channel_context(struct ath_softc * sc) ath9k_deinit_channel_context() argument
1378 ath9k_chanctx_stop_queues(struct ath_softc * sc,struct ath_chanctx * ctx) ath9k_chanctx_stop_queues() argument
1397 ath9k_chanctx_wake_queues(struct ath_softc * sc,struct ath_chanctx * ctx) ath9k_chanctx_wake_queues() argument
1419 ath9k_update_p2p_ps_timer(struct ath_softc * sc,struct ath_vif * avp) ath9k_update_p2p_ps_timer() argument
1448 ath9k_update_p2p_ps(struct ath_softc * sc,struct ieee80211_vif * vif) ath9k_update_p2p_ps() argument
1469 ath9k_get_ctwin(struct ath_softc * sc,struct ath_vif * avp) ath9k_get_ctwin() argument
1493 ath9k_beacon_add_noa(struct ath_softc * sc,struct ath_vif * avp,struct sk_buff * skb) ath9k_beacon_add_noa() argument
1550 struct ath_softc *sc = priv; ath9k_p2p_ps_timer() local
1597 ath9k_p2p_bss_info_changed(struct ath_softc * sc,struct ieee80211_vif * vif) ath9k_p2p_bss_info_changed() argument
1609 ath9k_p2p_beacon_sync(struct ath_softc * sc) ath9k_p2p_beacon_sync() argument
1615 ath9k_p2p_remove_vif(struct ath_softc * sc,struct ieee80211_vif * vif) ath9k_p2p_remove_vif() argument
1628 ath9k_init_p2p(struct ath_softc * sc) ath9k_init_p2p() argument
1638 ath9k_deinit_p2p(struct ath_softc * sc) ath9k_deinit_p2p() argument
[all...]
H A Dmain.c60 static bool ath9k_has_pending_frames(struct ath_softc *sc, struct ath_txq *txq, in ath9k_has_pending_frames() argument
78 acq = &sc->cur_chan->acq[txq->mac80211_qnum]; in ath9k_has_pending_frames()
87 static bool ath9k_setpower(struct ath_softc *sc, enum ath9k_power_mode mode) in ath9k_setpower() argument
92 spin_lock_irqsave(&sc->sc_pm_lock, flags); in ath9k_setpower()
93 ret = ath9k_hw_setpower(sc->sc_ah, mode); in ath9k_setpower()
94 spin_unlock_irqrestore(&sc->sc_pm_lock, flags); in ath9k_setpower()
101 struct ath_softc *sc = timer_container_of(sc, t, sleep_timer); in ath_ps_full_sleep() local
102 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_ps_full_sleep()
110 ath9k_hw_setrxabort(sc->sc_ah, 1); in ath_ps_full_sleep()
111 ath9k_hw_stopdmarecv(sc->sc_ah, &reset); in ath_ps_full_sleep()
[all …]
H A Dtx99.c19 static void ath9k_tx99_stop(struct ath_softc *sc) in ath9k_tx99_stop() argument
21 struct ath_hw *ah = sc->sc_ah; in ath9k_tx99_stop()
24 ath_drain_all_txq(sc); in ath9k_tx99_stop()
25 ath_startrecv(sc); in ath9k_tx99_stop()
30 ieee80211_wake_queues(sc->hw); in ath9k_tx99_stop()
32 kfree_skb(sc->tx99_skb); in ath9k_tx99_stop()
33 sc->tx99_skb = NULL; in ath9k_tx99_stop()
34 sc->tx99_state = false; in ath9k_tx99_stop()
36 ath9k_hw_tx99_stop(sc->sc_ah); in ath9k_tx99_stop()
40 static struct sk_buff *ath9k_build_tx99_skb(struct ath_softc *sc) in ath9k_build_tx99_skb() argument
[all …]
H A Dgpio.c25 static void ath_fill_led_pin(struct ath_softc *sc) in ath_fill_led_pin() argument
27 struct ath_hw *ah = sc->sc_ah; in ath_fill_led_pin()
54 struct ath_softc *sc = container_of(led_cdev, struct ath_softc, led_cdev); in ath_led_brightness() local
57 if (sc->sc_ah->config.led_active_high) in ath_led_brightness()
60 ath9k_hw_set_gpio(sc->sc_ah, sc->sc_ah->led_pin, val); in ath_led_brightness()
63 void ath_deinit_leds(struct ath_softc *sc) in ath_deinit_leds() argument
65 if (!sc->led_registered) in ath_deinit_leds()
68 ath_led_brightness(&sc->led_cdev, LED_OFF); in ath_deinit_leds()
69 led_classdev_unregister(&sc->led_cdev); in ath_deinit_leds()
71 ath9k_hw_gpio_free(sc->sc_ah, sc->sc_ah->led_pin); in ath_deinit_leds()
[all …]
/linux/fs/xfs/scrub/
H A Dagheader.c26 struct xfs_scrub *sc) in xchk_setup_agheader() argument
28 if (xchk_need_intent_drain(sc)) in xchk_setup_agheader()
29 xchk_fsgates_enable(sc, XCHK_FSGATES_DRAIN); in xchk_setup_agheader()
30 return xchk_setup_fs(sc); in xchk_setup_agheader()
38 struct xfs_scrub *sc) in xchk_superblock_xref() argument
40 struct xfs_mount *mp = sc->mp; in xchk_superblock_xref()
41 xfs_agnumber_t agno = sc->sm->sm_agno; in xchk_superblock_xref()
45 if (sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_superblock_xref()
50 error = xchk_ag_init_existing(sc, agno); in xchk_superblock_xref()
51 if (!xchk_xref_process_error(sc, agn in xchk_superblock_xref()
102 xchk_superblock(struct xfs_scrub * sc) xchk_superblock() argument
457 xchk_agf_xref_freeblks(struct xfs_scrub * sc) xchk_agf_xref_freeblks() argument
477 xchk_agf_xref_cntbt(struct xfs_scrub * sc) xchk_agf_xref_cntbt() argument
509 xchk_agf_xref_btreeblks(struct xfs_scrub * sc) xchk_agf_xref_btreeblks() argument
559 xchk_agf_xref_refcblks(struct xfs_scrub * sc) xchk_agf_xref_refcblks() argument
578 xchk_agf_xref(struct xfs_scrub * sc) xchk_agf_xref() argument
606 xchk_agf(struct xfs_scrub * sc) xchk_agf() argument
709 struct xfs_scrub *sc; global() member
715 xchk_agfl_block_xref(struct xfs_scrub * sc,xfs_agblock_t agbno) xchk_agfl_block_xref() argument
736 struct xfs_scrub *sc = sai->sc; xchk_agfl_block() local
766 xchk_agfl_xref(struct xfs_scrub * sc) xchk_agfl_xref() argument
793 xchk_agfl(struct xfs_scrub * sc) xchk_agfl() argument
871 xchk_agi_xref_icounts(struct xfs_scrub * sc) xchk_agi_xref_icounts() argument
892 xchk_agi_xref_fiblocks(struct xfs_scrub * sc) xchk_agi_xref_fiblocks() argument
921 xchk_agi_xref(struct xfs_scrub * sc) xchk_agi_xref() argument
952 xchk_iunlink_bucket(struct xfs_scrub * sc,unsigned int bucket,xfs_agino_t agino) xchk_iunlink_bucket() argument
1008 xchk_iunlink(struct xfs_scrub * sc,struct xfs_agi * agi) xchk_iunlink() argument
1028 xchk_agi(struct xfs_scrub * sc) xchk_agi() argument
[all...]
H A Dtempfile.c41 struct xfs_scrub *sc, in xrep_tempfile_create() argument
45 .pip = sc->mp->m_rootip, in xrep_tempfile_create()
49 struct xfs_mount *mp = sc->mp; in xrep_tempfile_create()
66 ASSERT(sc->tp == NULL); in xrep_tempfile_create()
67 ASSERT(sc->tempip == NULL); in xrep_tempfile_create()
95 error = xfs_icreate(tp, ino, &args, &sc->tempip); in xrep_tempfile_create()
100 sc->tempip->i_diflags &= ~(XFS_DIFLAG_REALTIME | XFS_DIFLAG_RTINHERIT); in xrep_tempfile_create()
101 xfs_trans_log_inode(tp, sc->tempip, XFS_ILOG_CORE); in xrep_tempfile_create()
108 VFS_I(sc->tempip)->i_flags |= S_PRIVATE; in xrep_tempfile_create()
109 VFS_I(sc in xrep_tempfile_create()
203 xrep_tempfile_adjust_directory_tree(struct xfs_scrub * sc) xrep_tempfile_adjust_directory_tree() argument
252 xrep_tempfile_remove_metadir(struct xfs_scrub * sc) xrep_tempfile_remove_metadir() argument
298 xrep_tempfile_iolock_nowait(struct xfs_scrub * sc) xrep_tempfile_iolock_nowait() argument
315 xrep_tempfile_iolock_polled(struct xfs_scrub * sc) xrep_tempfile_iolock_polled() argument
331 xrep_tempfile_iounlock(struct xfs_scrub * sc) xrep_tempfile_iounlock() argument
340 xrep_tempfile_ilock(struct xfs_scrub * sc) xrep_tempfile_ilock() argument
349 xrep_tempfile_ilock_nowait(struct xfs_scrub * sc) xrep_tempfile_ilock_nowait() argument
362 xrep_tempfile_iunlock(struct xfs_scrub * sc) xrep_tempfile_iunlock() argument
374 xrep_tempfile_ilock_both(struct xfs_scrub * sc) xrep_tempfile_ilock_both() argument
384 xrep_tempfile_iunlock_both(struct xfs_scrub * sc) xrep_tempfile_iunlock_both() argument
393 xrep_tempfile_rele(struct xfs_scrub * sc) xrep_tempfile_rele() argument
415 xrep_tempfile_prealloc(struct xfs_scrub * sc,xfs_fileoff_t off,xfs_filblks_t len) xrep_tempfile_prealloc() argument
482 xrep_tempfile_copyin(struct xfs_scrub * sc,xfs_fileoff_t off,xfs_filblks_t len,xrep_tempfile_copyin_fn prep_fn,void * data) xrep_tempfile_copyin() argument
569 xrep_tempfile_set_isize(struct xfs_scrub * sc,unsigned long long isize) xrep_tempfile_set_isize() argument
588 xrep_tempfile_roll_trans(struct xfs_scrub * sc) xrep_tempfile_roll_trans() argument
608 xrep_tempexch_prep_request(struct xfs_scrub * sc,int whichfork,xfs_fileoff_t off,xfs_filblks_t len,struct xrep_tempexch * tx) xrep_tempexch_prep_request() argument
654 xrep_tempexch_estimate_sf_resblks(struct xfs_scrub * sc,int whichfork) xrep_tempexch_estimate_sf_resblks() argument
672 xrep_tempexch_estimate(struct xfs_scrub * sc,struct xrep_tempexch * tx) xrep_tempexch_estimate() argument
758 xrep_tempexch_reserve_quota(struct xfs_scrub * sc,const struct xrep_tempexch * tx) xrep_tempexch_reserve_quota() argument
816 xrep_tempexch_trans_reserve(struct xfs_scrub * sc,int whichfork,xfs_fileoff_t off,xfs_filblks_t len,struct xrep_tempexch * tx) xrep_tempexch_trans_reserve() argument
856 xrep_tempexch_trans_alloc(struct xfs_scrub * sc,int whichfork,struct xrep_tempexch * tx) xrep_tempexch_trans_alloc() argument
897 xrep_tempexch_contents(struct xfs_scrub * sc,struct xrep_tempexch * tx) xrep_tempexch_contents() argument
932 xrep_tempfile_copyout_local(struct xfs_scrub * sc,int whichfork) xrep_tempfile_copyout_local() argument
[all...]
H A Dinode.c33 struct xfs_scrub *sc) in xchk_prepare_iscrub() argument
37 xchk_ilock(sc, XFS_IOLOCK_EXCL); in xchk_prepare_iscrub()
39 error = xchk_trans_alloc(sc, 0); in xchk_prepare_iscrub()
43 error = xchk_ino_dqattach(sc); in xchk_prepare_iscrub()
47 xchk_ilock(sc, XFS_ILOCK_EXCL); in xchk_prepare_iscrub()
54 struct xfs_scrub *sc, in xchk_install_handle_iscrub() argument
59 error = xchk_install_handle_inode(sc, ip); in xchk_install_handle_iscrub()
74 xchk_irele(sc, ip); in xchk_install_handle_iscrub()
75 sc->ip = NULL; in xchk_install_handle_iscrub()
79 return xchk_prepare_iscrub(sc); in xchk_install_handle_iscrub()
90 xchk_setup_inode(struct xfs_scrub * sc) xchk_setup_inode() argument
235 xchk_inode_extsize(struct xfs_scrub * sc,struct xfs_dinode * dip,xfs_ino_t ino,uint16_t mode,uint16_t flags) xchk_inode_extsize() argument
266 xchk_inode_cowextsize(struct xfs_scrub * sc,struct xfs_dinode * dip,xfs_ino_t ino,uint16_t mode,uint16_t flags,uint64_t flags2) xchk_inode_cowextsize() argument
305 xchk_inode_flags(struct xfs_scrub * sc,struct xfs_dinode * dip,xfs_ino_t ino,uint16_t mode,uint16_t flags) xchk_inode_flags() argument
350 xchk_inode_flags2(struct xfs_scrub * sc,struct xfs_dinode * dip,xfs_ino_t ino,uint16_t mode,uint16_t flags,uint64_t flags2) xchk_inode_flags2() argument
398 xchk_dinode_nsec(struct xfs_scrub * sc,xfs_ino_t ino,struct xfs_dinode * dip,const xfs_timestamp_t ts) xchk_dinode_nsec() argument
413 xchk_dinode(struct xfs_scrub * sc,struct xfs_dinode * dip,xfs_ino_t ino) xchk_dinode() argument
654 xchk_inode_xref_finobt(struct xfs_scrub * sc,xfs_ino_t ino) xchk_inode_xref_finobt() argument
697 xchk_inode_xref_bmap(struct xfs_scrub * sc,struct xfs_dinode * dip) xchk_inode_xref_bmap() argument
729 xchk_inode_xref(struct xfs_scrub * sc,xfs_ino_t ino,struct xfs_dinode * dip) xchk_inode_xref() argument
766 xchk_inode_check_reflink_iflag(struct xfs_scrub * sc,xfs_ino_t ino) xchk_inode_check_reflink_iflag() argument
793 xchk_inode_check_unlinked(struct xfs_scrub * sc) xchk_inode_check_unlinked() argument
807 xchk_inode(struct xfs_scrub * sc) xchk_inode() argument
[all...]
H A Drepair.h14 static inline int xrep_notsupported(struct xfs_scrub *sc) in xrep_notsupported() argument
23 int xrep_attempt(struct xfs_scrub *sc, struct xchk_stats_run *run);
24 bool xrep_will_attempt(struct xfs_scrub *sc);
26 int xrep_roll_ag_trans(struct xfs_scrub *sc);
27 int xrep_roll_trans(struct xfs_scrub *sc);
28 int xrep_defer_finish(struct xfs_scrub *sc);
31 xfs_extlen_t xrep_calc_ag_resblks(struct xfs_scrub *sc);
35 struct xfs_scrub *sc) in xrep_trans_commit() argument
37 int error = xfs_trans_commit(sc->tp); in xrep_trans_commit()
39 sc in xrep_trans_commit()
75 xrep_force_quotacheck(sc,type) global() argument
76 xrep_ino_dqattach(sc) global() argument
114 xrep_rtgroup_init(sc,rtg,sr,lockflags) global() argument
115 xrep_calc_rtgroup_resblks(sc) global() argument
181 xrep_ino_dqattach(sc) global() argument
187 xrep_will_attempt(const struct xfs_scrub * sc) xrep_will_attempt() argument
195 xrep_attempt(struct xfs_scrub * sc,struct xchk_stats_run * run) xrep_attempt() argument
205 xrep_calc_ag_resblks(struct xfs_scrub * sc) xrep_calc_ag_resblks() argument
214 xrep_reset_perag_resv(struct xfs_scrub * sc) xrep_reset_perag_resv() argument
226 xrep_setup_nothing(struct xfs_scrub * sc) xrep_setup_nothing() argument
242 xrep_setup_inode(sc,imap) global() argument
244 xrep_setup_symlink(struct xfs_scrub * sc,unsigned int * x) xrep_setup_symlink() argument
[all...]
H A Dcommon.h9 int xchk_trans_alloc(struct xfs_scrub *sc, uint resblks);
10 void xchk_trans_alloc_empty(struct xfs_scrub *sc);
11 void xchk_trans_cancel(struct xfs_scrub *sc);
13 bool xchk_process_error(struct xfs_scrub *sc, xfs_agnumber_t agno,
15 bool xchk_process_rt_error(struct xfs_scrub *sc, xfs_rgnumber_t rgno,
17 bool xchk_fblock_process_error(struct xfs_scrub *sc, int whichfork,
20 bool xchk_xref_process_error(struct xfs_scrub *sc,
22 bool xchk_fblock_xref_process_error(struct xfs_scrub *sc,
25 void xchk_block_set_preen(struct xfs_scrub *sc,
27 void xchk_ino_set_preen(struct xfs_scrub *sc, xfs_ino_
62 xchk_setup_nothing(struct xfs_scrub * sc) xchk_setup_nothing() argument
102 xchk_ino_dqattach(struct xfs_scrub * sc) xchk_ino_dqattach() argument
124 xchk_ag_init_existing(struct xfs_scrub * sc,xfs_agnumber_t agno,struct xchk_ag * sa) xchk_ag_init_existing() argument
145 xchk_rtgroup_init_existing(struct xfs_scrub * sc,xfs_rgnumber_t rgno,struct xchk_rt * sr) xchk_rtgroup_init_existing() argument
160 xchk_rtgroup_init(sc,rgno,sr) global() argument
161 xchk_rtgroup_init_existing(sc,rgno,sr) global() argument
162 xchk_rtgroup_lock(sc,sr,lockflags) global() argument
165 xchk_rtgroup_free(sc,sr) global() argument
203 xchk_iget_safe(struct xfs_scrub * sc,xfs_ino_t inum,struct xfs_inode ** ipp) xchk_iget_safe() argument
244 xchk_could_repair(const struct xfs_scrub * sc) xchk_could_repair() argument
259 xchk_need_intent_drain(struct xfs_scrub * sc) xchk_need_intent_drain() argument
[all...]
H A Dorphanage.c51 struct xfs_scrub *sc, in xrep_chown_orphanage() argument
55 struct xfs_mount *mp = sc->mp; in xrep_chown_orphanage()
120 /* Create the orphanage directory, and set sc->orphanage to it. */
123 struct xfs_scrub *sc) in xrep_orphanage_create() argument
125 struct xfs_mount *mp = sc->mp; in xrep_orphanage_create()
127 struct inode *root_inode = VFS_I(sc->mp->m_rootip); in xrep_orphanage_create()
134 sc->orphanage = NULL; in xrep_orphanage_create()
138 ASSERT(sc->tp == NULL); in xrep_orphanage_create()
139 ASSERT(sc->orphanage == NULL); in xrep_orphanage_create()
193 error = xrep_chown_orphanage(sc, XFS_ in xrep_orphanage_create()
215 xrep_orphanage_ilock(struct xfs_scrub * sc,unsigned int ilock_flags) xrep_orphanage_ilock() argument
224 xrep_orphanage_ilock_nowait(struct xfs_scrub * sc,unsigned int ilock_flags) xrep_orphanage_ilock_nowait() argument
237 xrep_orphanage_iunlock(struct xfs_scrub * sc,unsigned int ilock_flags) xrep_orphanage_iunlock() argument
247 xrep_orphanage_iolock_two(struct xfs_scrub * sc) xrep_orphanage_iolock_two() argument
274 xrep_orphanage_rele(struct xfs_scrub * sc) xrep_orphanage_rele() argument
291 xrep_orphanage_can_adopt(struct xfs_scrub * sc) xrep_orphanage_can_adopt() argument
316 xrep_adoption_trans_alloc(struct xfs_scrub * sc,struct xrep_adoption * adopt) xrep_adoption_trans_alloc() argument
402 struct xfs_scrub *sc = adopt->sc; xrep_adoption_compute_name() local
440 struct xfs_scrub *sc = adopt->sc; xrep_adoption_check_dcache() local
482 struct xfs_scrub *sc = adopt->sc; xrep_adoption_zap_dcache() local
534 struct xfs_scrub *sc = adopt->sc; xrep_adoption_move() local
622 struct xfs_scrub *sc = adopt->sc; xrep_adoption_trans_roll() local
[all...]
H A Dsymlink_repair.c56 struct xfs_scrub *sc, in xrep_setup_symlink() argument
59 struct xfs_mount *mp = sc->mp; in xrep_setup_symlink()
63 error = xrep_tempfile_create(sc, S_IFLNK); in xrep_setup_symlink()
80 blocks = xfs_symlink_blocks(sc->mp, XFS_SYMLINK_MAXLEN); in xrep_setup_symlink()
95 struct xfs_scrub *sc) in xrep_symlink_salvage_remote() argument
98 struct xfs_inode *ip = sc->ip; in xrep_symlink_salvage_remote()
100 char *target_buf = sc->buf; in xrep_symlink_salvage_remote()
115 fsblocks = xfs_symlink_blocks(sc->mp, len); in xrep_symlink_salvage_remote()
123 d = XFS_FSB_TO_DADDR(sc->mp, mval[n].br_startblock); in xrep_symlink_salvage_remote()
126 error = xfs_trans_read_buf(sc in xrep_symlink_salvage_remote()
165 xrep_symlink_salvage_inline(struct xfs_scrub * sc) xrep_symlink_salvage_inline() argument
203 xrep_symlink_salvage(struct xfs_scrub * sc) xrep_symlink_salvage() argument
254 struct xfs_scrub *sc = priv; xrep_symlink_local_to_remote() local
274 xrep_symlink_swap_prep(struct xfs_scrub * sc,bool temp_local,bool ip_local) xrep_symlink_swap_prep() argument
327 xrep_symlink_swap(struct xfs_scrub * sc) xrep_symlink_swap() argument
362 xrep_symlink_reset_fork(struct xfs_scrub * sc) xrep_symlink_reset_fork() argument
388 xrep_symlink_rebuild(struct xfs_scrub * sc) xrep_symlink_rebuild() argument
487 xrep_symlink(struct xfs_scrub * sc) xrep_symlink() argument
[all...]
H A Drepair.c63 struct xfs_scrub *sc, in xrep_attempt() argument
69 trace_xrep_attempt(XFS_I(file_inode(sc->file)), sc->sm, error); in xrep_attempt()
71 xchk_ag_btcur_free(sc); in xrep_attempt()
72 xchk_rtgroup_btcur_free(sc); in xrep_attempt()
75 ASSERT(sc->ops->repair); in xrep_attempt()
78 error = sc->ops->repair(sc); in xrep_attempt()
79 trace_xrep_done(XFS_I(file_inode(sc->file)), sc in xrep_attempt()
141 xrep_probe(struct xfs_scrub * sc) xrep_probe() argument
157 xrep_roll_ag_trans(struct xfs_scrub * sc) xrep_roll_ag_trans() argument
202 xrep_roll_trans(struct xfs_scrub * sc) xrep_roll_trans() argument
212 xrep_defer_finish(struct xfs_scrub * sc) xrep_defer_finish() argument
282 xrep_calc_ag_resblks(struct xfs_scrub * sc) xrep_calc_ag_resblks() argument
397 xrep_calc_rtgroup_resblks(struct xfs_scrub * sc) xrep_calc_rtgroup_resblks() argument
468 xrep_fix_freelist(struct xfs_scrub * sc,int alloc_flags) xrep_fix_freelist() argument
510 struct xfs_scrub *sc; global() member
722 xrep_find_ag_btree_roots(struct xfs_scrub * sc,struct xfs_buf * agf_bp,struct xrep_find_ag_btree * btree_info,struct xfs_buf * agfl_bp) xrep_find_ag_btree_roots() argument
758 xrep_update_qflags(struct xfs_scrub * sc,unsigned int clear_flags,unsigned int set_flags) xrep_update_qflags() argument
796 xrep_force_quotacheck(struct xfs_scrub * sc,xfs_dqtype_t type) xrep_force_quotacheck() argument
820 xrep_ino_dqattach(struct xfs_scrub * sc) xrep_ino_dqattach() argument
860 xrep_ino_ensure_extent_count(struct xfs_scrub * sc,int whichfork,xfs_extnum_t nextents) xrep_ino_ensure_extent_count() argument
891 xrep_ag_btcur_init(struct xfs_scrub * sc,struct xchk_ag * sa) xrep_ag_btcur_init() argument
935 xrep_reinit_pagf(struct xfs_scrub * sc) xrep_reinit_pagf() argument
964 xrep_reinit_pagi(struct xfs_scrub * sc) xrep_reinit_pagi() argument
992 xrep_ag_init(struct xfs_scrub * sc,struct xfs_perag * pag,struct xchk_ag * sa) xrep_ag_init() argument
1018 xrep_rtgroup_btcur_init(struct xfs_scrub * sc,struct xchk_rt * sr) xrep_rtgroup_btcur_init() argument
1042 xrep_rtgroup_init(struct xfs_scrub * sc,struct xfs_rtgroup * rtg,struct xchk_rt * sr,unsigned int rtglock_flags) xrep_rtgroup_init() argument
1061 xrep_require_rtext_inuse(struct xfs_scrub * sc,xfs_rgblock_t rgbno,xfs_filblks_t len) xrep_require_rtext_inuse() argument
1094 xrep_reset_perag_resv(struct xfs_scrub * sc) xrep_reset_perag_resv() argument
1121 xrep_will_attempt(struct xfs_scrub * sc) xrep_will_attempt() argument
1141 xrep_metadata_inode_subtype(struct xfs_scrub * sc,unsigned int scrub_type) xrep_metadata_inode_subtype() argument
1210 xrep_metadata_inode_forks(struct xfs_scrub * sc) xrep_metadata_inode_forks() argument
1281 xrep_setup_xfbtree(struct xfs_scrub * sc,const char * descr) xrep_setup_xfbtree() argument
1323 xrep_check_ino_btree_mapping(struct xfs_scrub * sc,const struct xfs_rmap_irec * rec) xrep_check_ino_btree_mapping() argument
1359 xrep_inode_set_nblocks(struct xfs_scrub * sc,int64_t new_blocks) xrep_inode_set_nblocks() argument
1376 xrep_reset_metafile_resv(struct xfs_scrub * sc) xrep_reset_metafile_resv() argument
[all...]
H A Dparent.c34 struct xfs_scrub *sc) in xchk_setup_parent() argument
38 if (xchk_could_repair(sc)) { in xchk_setup_parent()
39 error = xrep_setup_parent(sc); in xchk_setup_parent()
44 return xchk_setup_inode_contents(sc, 0); in xchk_setup_parent()
52 struct xfs_scrub *sc; member
59 struct xfs_scrub *sc, in xchk_parent_actor() argument
72 if (!xchk_fblock_xref_process_error(sc, XFS_DATA_FORK, 0, &error)) in xchk_parent_actor()
75 if (I_INO(sc->ip) == ino) in xchk_parent_actor()
78 if (xchk_should_terminate(spc->sc, &error)) in xchk_parent_actor()
114 struct xfs_scrub *sc, in xchk_parent_validate() argument
[all …]
H A Drmap.c35 struct xfs_scrub *sc) in xchk_setup_ag_rmapbt() argument
37 if (xchk_need_intent_drain(sc)) in xchk_setup_ag_rmapbt()
38 xchk_fsgates_enable(sc, XCHK_FSGATES_DRAIN); in xchk_setup_ag_rmapbt()
40 if (xchk_could_repair(sc)) { in xchk_setup_ag_rmapbt()
43 error = xrep_setup_ag_rmapbt(sc); in xchk_setup_ag_rmapbt()
48 return xchk_setup_ag_btree(sc, false); in xchk_setup_ag_rmapbt()
81 struct xfs_scrub *sc, in xchk_rmapbt_xref_refc() argument
92 if (!sc->sa.refc_cur || xchk_skip_xref(sc->sm)) in xchk_rmapbt_xref_refc()
101 error = xfs_refcount_find_shared(sc->sa.refc_cur, irec->rm_startblock, in xchk_rmapbt_xref_refc()
103 if (!xchk_should_check_xref(sc, &error, &sc->sa.refc_cur)) in xchk_rmapbt_xref_refc()
[all …]
H A Drtrmap.c36 struct xfs_scrub *sc) in xchk_setup_rtrmapbt() argument
40 if (xchk_need_intent_drain(sc)) in xchk_setup_rtrmapbt()
41 xchk_fsgates_enable(sc, XCHK_FSGATES_DRAIN); in xchk_setup_rtrmapbt()
43 if (xchk_could_repair(sc)) { in xchk_setup_rtrmapbt()
44 error = xrep_setup_rtrmapbt(sc); in xchk_setup_rtrmapbt()
49 error = xchk_rtgroup_init(sc, sc->sm->sm_agno); in xchk_setup_rtrmapbt()
53 error = xchk_setup_rt(sc); in xchk_setup_rtrmapbt()
57 error = xchk_install_live_inode(sc, rtg_rmap(sc in xchk_setup_rtrmapbt()
83 xchk_rtrmapbt_is_shareable(struct xfs_scrub * sc,const struct xfs_rmap_irec * irec) xchk_rtrmapbt_is_shareable() argument
177 xchk_rtrmapbt_xref_rtrefc(struct xfs_scrub * sc,struct xfs_rmap_irec * irec) xchk_rtrmapbt_xref_rtrefc() argument
208 xchk_rtrmapbt_xref(struct xfs_scrub * sc,struct xfs_rmap_irec * irec) xchk_rtrmapbt_xref() argument
251 xchk_rtrmapbt(struct xfs_scrub * sc) xchk_rtrmapbt() argument
268 xchk_xref_has_no_rt_owner(struct xfs_scrub * sc,xfs_rgblock_t bno,xfs_extlen_t len) xchk_xref_has_no_rt_owner() argument
288 xchk_xref_has_rt_owner(struct xfs_scrub * sc,xfs_rgblock_t bno,xfs_extlen_t len) xchk_xref_has_rt_owner() argument
308 xchk_xref_is_only_rt_owned_by(struct xfs_scrub * sc,xfs_agblock_t bno,xfs_extlen_t len,const struct xfs_owner_info * oinfo) xchk_xref_is_only_rt_owned_by() argument
[all...]
H A Dmetapath.c45 struct xfs_scrub *sc; member
89 struct xfs_scrub *sc, in xchk_setup_metapath_scan() argument
100 error = xchk_install_live_inode(sc, ip); in xchk_setup_metapath_scan()
112 mpath->sc = sc; in xchk_setup_metapath_scan()
113 sc->buf = mpath; in xchk_setup_metapath_scan()
114 sc->buf_cleanup = xchk_metapath_cleanup; in xchk_setup_metapath_scan()
130 struct xfs_scrub *sc) in xchk_setup_metapath_rtdir() argument
132 if (sc->sm->sm_agno) in xchk_setup_metapath_rtdir()
134 if (!sc in xchk_setup_metapath_rtdir()
142 xchk_setup_metapath_rtginode(struct xfs_scrub * sc,enum xfs_rtg_inodes type) xchk_setup_metapath_rtginode() argument
175 xchk_setup_metapath_quotadir(struct xfs_scrub * sc) xchk_setup_metapath_quotadir() argument
189 xchk_setup_metapath_dqinode(struct xfs_scrub * sc,xfs_dqtype_t type) xchk_setup_metapath_dqinode() argument
225 xchk_setup_metapath(struct xfs_scrub * sc) xchk_setup_metapath() argument
270 struct xfs_scrub *sc = mpath->sc; xchk_metapath_ilock_both() local
296 struct xfs_scrub *sc = mpath->sc; xchk_metapath_iunlock() local
306 xchk_metapath(struct xfs_scrub * sc) xchk_metapath() argument
421 struct xfs_scrub *sc = mpath->sc; xrep_metapath_link() local
461 struct xfs_scrub *sc = mpath->sc; xrep_metapath_unlink() local
511 struct xfs_scrub *sc = mpath->sc; xrep_metapath_try_link() local
576 struct xfs_scrub *sc = mpath->sc; xchk_metapath_ilock_parent_and_child() local
609 struct xfs_scrub *sc = mpath->sc; xrep_metapath_try_unlink() local
705 xrep_metapath(struct xfs_scrub * sc) xrep_metapath() argument
[all...]
H A Drtbitmap.c35 struct xfs_scrub *sc) in xchk_setup_rtbitmap() argument
37 struct xfs_mount *mp = sc->mp; in xchk_setup_rtbitmap()
41 if (xchk_need_intent_drain(sc)) in xchk_setup_rtbitmap()
42 xchk_fsgates_enable(sc, XCHK_FSGATES_DRAIN); in xchk_setup_rtbitmap()
44 rtb = kzalloc_flex(*rtb, words, xchk_rtbitmap_wordcnt(sc), in xchk_setup_rtbitmap()
48 sc->buf = rtb; in xchk_setup_rtbitmap()
49 rtb->sc = sc; in xchk_setup_rtbitmap()
51 error = xchk_rtgroup_init(sc, sc in xchk_setup_rtbitmap()
100 struct xfs_scrub *sc = rtb->sc; xchk_rtbitmap_xref() local
127 struct xfs_scrub *sc = rtb->sc; xchk_rtbitmap_rec() local
148 xchk_rtbitmap_check_extents(struct xfs_scrub * sc) xchk_rtbitmap_check_extents() argument
192 xchk_rtbitmap(struct xfs_scrub * sc) xchk_rtbitmap() argument
271 xchk_xref_is_used_rt_space(struct xfs_scrub * sc,xfs_rtblock_t rtbno,xfs_extlen_t len) xchk_xref_is_used_rt_space() argument
[all...]
H A Dinode_repair.c109 struct xfs_scrub *sc;
151 struct xfs_scrub *sc, in xrep_setup_inode()
156 sc->buf = kzalloc_obj(struct xrep_inode, XCHK_GFP_FLAGS); in xrep_setup_inode()
157 if (!sc->buf) in xrep_setup_inode()
160 ri = sc->buf; in xrep_setup_inode()
162 ri->sc = sc; in xrep_setup_inode()
172 struct xfs_scrub *sc, in xrep_dinode_buf_core()
177 struct xfs_trans *tp = sc->tp; in xrep_dinode_buf_core()
178 struct xfs_mount *mp = sc in xrep_dinode_buf_core()
107 struct xfs_scrub *sc; global() member
149 xrep_setup_inode(struct xfs_scrub * sc,const struct xfs_imap * imap) xrep_setup_inode() argument
170 xrep_dinode_buf_core(struct xfs_scrub * sc,struct xfs_buf * bp,unsigned int ioffset) xrep_dinode_buf_core() argument
213 xrep_dinode_buf(struct xfs_scrub * sc,struct xfs_buf * bp) xrep_dinode_buf() argument
228 xrep_dinode_header(struct xfs_scrub * sc,struct xfs_dinode * dip) xrep_dinode_header() argument
247 xrep_dinode_findmode_dirent(struct xfs_scrub * sc,struct xfs_inode * dp,xfs_dir2_dataptr_t dapos,const struct xfs_name * name,xfs_ino_t ino,void * priv) xrep_dinode_findmode_dirent() argument
343 struct xfs_scrub *sc = ri->sc; xrep_dinode_findmode_walk_directory() local
397 struct xfs_scrub *sc = ri->sc; xrep_dinode_find_mode() local
488 struct xfs_scrub *sc = ri->sc; xrep_dinode_mode() local
543 xrep_dinode_flags(struct xfs_scrub * sc,struct xfs_dinode * dip,bool isrt) xrep_dinode_flags() argument
599 struct xfs_scrub *sc = ri->sc; xrep_dinode_zap_symlink() local
622 struct xfs_scrub *sc = ri->sc; xrep_dinode_zap_dir() local
645 struct xfs_scrub *sc = ri->sc; xrep_dinode_size() local
693 xrep_dinode_extsize_hints(struct xfs_scrub * sc,struct xfs_dinode * dip) xrep_dinode_extsize_hints() argument
810 struct xfs_scrub *sc = ri->sc; xrep_dinode_count_rtgroup_rmaps() local
865 xrep_dinode_bad_extents_fork(struct xfs_scrub * sc,struct xfs_dinode * dip,unsigned int dfork_size,int whichfork) xrep_dinode_bad_extents_fork() argument
899 xrep_dinode_bad_bmbt_fork(struct xfs_scrub * sc,struct xfs_dinode * dip,unsigned int dfork_size,int whichfork) xrep_dinode_bad_bmbt_fork() argument
951 xrep_dinode_bad_rtrmapbt_fork(struct xfs_scrub * sc,struct xfs_dinode * dip,unsigned int dfork_size) xrep_dinode_bad_rtrmapbt_fork() argument
979 xrep_dinode_bad_rtrefcountbt_fork(struct xfs_scrub * sc,struct xfs_dinode * dip,unsigned int dfork_size) xrep_dinode_bad_rtrefcountbt_fork() argument
1007 xrep_dinode_bad_metabt_fork(struct xfs_scrub * sc,struct xfs_dinode * dip,unsigned int dfork_size,int whichfork) xrep_dinode_bad_metabt_fork() argument
1033 xrep_dinode_check_dfork(struct xfs_scrub * sc,struct xfs_dinode * dip,uint16_t mode) xrep_dinode_check_dfork() argument
1156 struct xfs_scrub *sc = ri->sc; xrep_dinode_zap_dfork() local
1203 xrep_dinode_check_afork(struct xfs_scrub * sc,struct xfs_dinode * dip) xrep_dinode_check_afork() argument
1262 struct xfs_scrub *sc = ri->sc; xrep_dinode_zap_afork() local
1294 struct xfs_scrub *sc = ri->sc; xrep_dinode_ensure_forkoff() local
1498 struct xfs_scrub *sc = ri->sc; xrep_dinode_zap_forks() local
1549 struct xfs_scrub *sc = ri->sc; xrep_dinode_core() local
1639 struct xfs_scrub *sc = ri->sc; xrep_dinode_problems() local
1666 xrep_inode_blockcounts(struct xfs_scrub * sc) xrep_inode_blockcounts() argument
1723 xrep_inode_ids(struct xfs_scrub * sc) xrep_inode_ids() argument
1790 xrep_inode_flags(struct xfs_scrub * sc) xrep_inode_flags() argument
1849 xrep_inode_blockdir_size(struct xfs_scrub * sc) xrep_inode_blockdir_size() argument
1879 xrep_inode_sfdir_size(struct xfs_scrub * sc) xrep_inode_sfdir_size() argument
1895 xrep_inode_dir_size(struct xfs_scrub * sc) xrep_inode_dir_size() argument
1913 xrep_inode_extsize(struct xfs_scrub * sc) xrep_inode_extsize() argument
1927 xrep_inode_pptr(struct xfs_scrub * sc) xrep_inode_pptr() argument
1958 xrep_inode_cowextsize(struct xfs_scrub * sc) xrep_inode_cowextsize() argument
1972 xrep_inode_problems(struct xfs_scrub * sc) xrep_inode_problems() argument
2005 xrep_inode_unlinked(struct xfs_scrub * sc) xrep_inode_unlinked() argument
2041 xrep_inode(struct xfs_scrub * sc) xrep_inode() argument
[all...]
H A Drtrefcount.c33 struct xfs_scrub *sc) in xchk_setup_rtrefcountbt()
37 if (xchk_need_intent_drain(sc)) in xchk_setup_rtrefcountbt()
38 xchk_fsgates_enable(sc, XCHK_FSGATES_DRAIN); in xchk_setup_rtrefcountbt()
40 if (xchk_could_repair(sc)) { in xchk_setup_rtrefcountbt()
41 error = xrep_setup_rtrefcountbt(sc); in xchk_setup_rtrefcountbt()
46 error = xchk_rtgroup_init(sc, sc->sm->sm_agno); in xchk_setup_rtrefcountbt()
50 error = xchk_setup_rt(sc); in xchk_setup_rtrefcountbt()
54 error = xchk_install_live_inode(sc, rtg_refcount(sc in xchk_setup_rtrefcountbt()
32 xchk_setup_rtrefcountbt(struct xfs_scrub * sc) xchk_setup_rtrefcountbt() argument
104 struct xfs_scrub *sc; global() member
300 xchk_rtrefcountbt_xref_rmap(struct xfs_scrub * sc,const struct xfs_refcount_irec * irec) xchk_rtrefcountbt_xref_rmap() argument
345 xchk_rtrefcountbt_xref(struct xfs_scrub * sc,const struct xfs_refcount_irec * irec) xchk_rtrefcountbt_xref() argument
430 xchk_rtrefcountbt_xref_gaps(struct xfs_scrub * sc,struct xchk_rtrefcbt_records * rrc,xfs_rgblock_t bno) xchk_rtrefcountbt_xref_gaps() argument
511 xchk_rtrefcount_count_agblocks(struct xfs_scrub * sc,xfs_agnumber_t agno,const struct xfs_owner_info * btree_oinfo,xfs_filblks_t * blocks) xchk_rtrefcount_count_agblocks() argument
547 xchk_rtrefcount_xref_rmap(struct xfs_scrub * sc,const struct xfs_owner_info * btree_oinfo,xfs_extlen_t cow_blocks) xchk_rtrefcount_xref_rmap() argument
590 xchk_rtrefcountbt(struct xfs_scrub * sc) xchk_rtrefcountbt() argument
625 xchk_xref_is_rt_cow_staging(struct xfs_scrub * sc,xfs_rgblock_t bno,xfs_extlen_t len) xchk_xref_is_rt_cow_staging() argument
673 xchk_xref_is_not_rt_shared(struct xfs_scrub * sc,xfs_rgblock_t bno,xfs_extlen_t len) xchk_xref_is_not_rt_shared() argument
694 xchk_xref_is_not_rt_cow_staging(struct xfs_scrub * sc,xfs_rgblock_t bno,xfs_extlen_t len) xchk_xref_is_not_rt_cow_staging() argument
[all...]
H A Dbmap.c35 struct xfs_scrub *sc) in xchk_setup_inode_bmap() argument
39 if (xchk_need_intent_drain(sc)) in xchk_setup_inode_bmap()
40 xchk_fsgates_enable(sc, XCHK_FSGATES_DRAIN); in xchk_setup_inode_bmap()
42 error = xchk_iget_for_scrubbing(sc); in xchk_setup_inode_bmap()
46 xchk_ilock(sc, XFS_IOLOCK_EXCL); in xchk_setup_inode_bmap()
53 if (S_ISREG(VFS_I(sc->ip)->i_mode) && in xchk_setup_inode_bmap()
54 sc->sm->sm_type != XFS_SCRUB_TYPE_BMBTA) { in xchk_setup_inode_bmap()
55 struct address_space *mapping = VFS_I(sc->ip)->i_mapping; in xchk_setup_inode_bmap()
56 bool is_repair = xchk_could_repair(sc); in xchk_setup_inode_bmap()
58 xchk_ilock(sc, XFS_MMAPLOCK_EXC in xchk_setup_inode_bmap()
122 struct xfs_scrub *sc; global() member
583 xchk_bmap_btree(struct xfs_scrub * sc,int whichfork,struct xchk_bmap_info * info) xchk_bmap_btree() argument
611 struct xfs_scrub *sc; global() member
627 struct xfs_scrub *sc = sbcri->sc; xchk_bmap_check_rmap() local
692 xchk_bmap_check_ag_rmaps(struct xfs_scrub * sc,int whichfork,struct xfs_perag * pag) xchk_bmap_check_ag_rmaps() argument
721 xchk_bmap_check_rt_rmaps(struct xfs_scrub * sc,struct xfs_rtgroup * rtg) xchk_bmap_check_rt_rmaps() argument
822 struct xfs_scrub *sc = info->sc; xchk_bmap_want_check_rmaps() local
840 xchk_bmap_check_rmaps(struct xfs_scrub * sc,int whichfork) xchk_bmap_check_rmaps() argument
1019 xchk_bmap(struct xfs_scrub * sc,int whichfork) xchk_bmap() argument
1136 xchk_bmap_data(struct xfs_scrub * sc) xchk_bmap_data() argument
1157 xchk_bmap_attr(struct xfs_scrub * sc) xchk_bmap_attr() argument
1190 xchk_bmap_cow(struct xfs_scrub * sc) xchk_bmap_cow() argument
[all...]
H A Dfscounters.c72 struct xfs_scrub *sc) in xchk_fscount_warmup() argument
74 struct xfs_mount *mp = sc->mp; in xchk_fscount_warmup()
81 if (xchk_should_terminate(sc, &error)) in xchk_fscount_warmup()
88 error = xfs_ialloc_read_agi(pag, sc->tp, 0, &agi_bp); in xchk_fscount_warmup()
91 error = xfs_alloc_read_agf(pag, sc->tp, 0, &agf_bp); in xchk_fscount_warmup()
122 struct xfs_scrub *sc) in xchk_fsfreeze() argument
126 error = freeze_super(sc->mp->m_super, FREEZE_HOLDER_KERNEL, NULL); in xchk_fsfreeze()
127 trace_xchk_fsfreeze(sc, error); in xchk_fsfreeze()
133 struct xfs_scrub *sc) in xchk_fsthaw() argument
138 error = thaw_super(sc in xchk_fsthaw()
153 xchk_fscounters_freeze(struct xfs_scrub * sc) xchk_fscounters_freeze() argument
183 struct xfs_scrub *sc = fsc->sc; xchk_fscounters_cleanup() local
198 xchk_setup_fscounters(struct xfs_scrub * sc) xchk_setup_fscounters() argument
261 xchk_fscount_btreeblks(struct xfs_scrub * sc,struct xchk_fscounters * fsc,xfs_agnumber_t agno) xchk_fscount_btreeblks() argument
295 xchk_fscount_aggregate_agcounts(struct xfs_scrub * sc,struct xchk_fscounters * fsc) xchk_fscount_aggregate_agcounts() argument
408 xchk_fscount_count_frextents(struct xfs_scrub * sc,struct xchk_fscounters * fsc) xchk_fscount_count_frextents() argument
444 xchk_fscount_count_frextents(struct xfs_scrub * sc,struct xchk_fscounters * fsc) xchk_fscount_count_frextents() argument
475 xchk_fscount_within_range(struct xfs_scrub * sc,const int64_t old_value,struct percpu_counter * counter,uint64_t expected) xchk_fscount_within_range() argument
512 xchk_fscounters(struct xfs_scrub * sc) xchk_fscounters() argument
[all...]
H A Dreap.c98 struct xfs_scrub *sc; member
132 struct xfs_scrub *sc, in xreap_put_freelist() argument
139 error = xrep_fix_freelist(sc, 0); in xreap_put_freelist()
148 error = xfs_rmap_alloc(sc->tp, sc->sa.agf_bp, sc->sa.pag, agbno, 1, in xreap_put_freelist()
154 error = xfs_alloc_read_agfl(sc->sa.pag, sc->tp, &agfl_bp); in xreap_put_freelist()
158 error = xfs_alloc_put_freelist(sc->sa.pag, sc in xreap_put_freelist()
289 struct xfs_scrub *sc = rs->sc; xreap_agextent_binval() local
355 struct xfs_scrub *sc = rs->sc; xreap_agextent_select() local
415 struct xfs_scrub *sc = rs->sc; xreap_agextent_iter() local
530 struct xfs_scrub *sc = rs->sc; xreap_configure_limits() local
556 struct xfs_scrub *sc = rs->sc; xreap_configure_agextent_limits() local
635 struct xfs_scrub *sc = rs->sc; xreap_configure_agcow_limits() local
714 struct xfs_scrub *sc = rs->sc; xreap_agmeta_extent() local
755 xrep_reap_agblocks(struct xfs_scrub * sc,struct xagb_bitmap * bitmap,const struct xfs_owner_info * oinfo,enum xfs_ag_resv_type type) xrep_reap_agblocks() argument
793 struct xfs_scrub *sc = rs->sc; xreap_fsmeta_extent() local
869 xrep_reap_fsblocks(struct xfs_scrub * sc,struct xfsb_bitmap * bitmap,const struct xfs_owner_info * oinfo) xrep_reap_fsblocks() argument
911 struct xfs_scrub *sc = rs->sc; xreap_rgextent_select() local
965 struct xfs_scrub *sc = rs->sc; xreap_rgextent_iter() local
1026 struct xfs_scrub *sc = rs->sc; xreap_configure_rgcow_limits() local
1095 struct xfs_scrub *sc = rs->sc; xreap_rtmeta_extent() local
1154 xrep_reap_rtblocks(struct xfs_scrub * sc,struct xrtb_bitmap * bitmap,const struct xfs_owner_info * oinfo) xrep_reap_rtblocks() argument
1187 xrep_reap_metadir_fsblocks(struct xfs_scrub * sc,struct xfsb_bitmap * bitmap) xrep_reap_metadir_fsblocks() argument
1238 struct xfs_scrub *sc = rs->sc; xreap_bmapi_select() local
1318 struct xfs_scrub *sc = rs->sc; xreap_bmapi_binval() local
1427 struct xfs_scrub *sc = rs->sc; xrep_reap_bmapi_iter() local
1492 xreap_bmapi_binval_mapcount(struct xfs_scrub * sc) xreap_bmapi_binval_mapcount() argument
1505 xreap_bmapi_binval_blocksize(struct xfs_scrub * sc) xreap_bmapi_binval_blocksize() argument
1531 struct xfs_scrub *sc = rs->sc; xreap_configure_bmapi_limits() local
1597 struct xfs_scrub *sc = rs->sc; xreap_ifork_extent() local
1643 xrep_reap_ifork(struct xfs_scrub * sc,struct xfs_inode * ip,int whichfork) xrep_reap_ifork() argument
[all...]
/linux/drivers/clk/qcom/
H A Dgdsc.c61 static int gdsc_check_status(struct gdsc *sc, enum gdsc_status status) in gdsc_check_status() argument
67 if (sc->flags & POLL_CFG_GDSCR) in gdsc_check_status()
68 reg = sc->gdscr + CFG_GDSCR_OFFSET; in gdsc_check_status()
69 else if (sc->gds_hw_ctrl) in gdsc_check_status()
70 reg = sc->gds_hw_ctrl; in gdsc_check_status()
72 reg = sc->gdscr; in gdsc_check_status()
74 ret = regmap_read(sc->regmap, reg, &val); in gdsc_check_status()
78 if (sc->flags & POLL_CFG_GDSCR) { in gdsc_check_status()
97 static int gdsc_hwctrl(struct gdsc *sc, bool en) in gdsc_hwctrl() argument
101 return regmap_update_bits(sc in gdsc_hwctrl()
104 gdsc_poll_status(struct gdsc * sc,enum gdsc_status status) gdsc_poll_status() argument
127 gdsc_update_collapse_bit(struct gdsc * sc,bool val) gdsc_update_collapse_bit() argument
147 gdsc_toggle_logic(struct gdsc * sc,enum gdsc_status status,bool wait) gdsc_toggle_logic() argument
215 gdsc_deassert_reset(struct gdsc * sc) gdsc_deassert_reset() argument
224 gdsc_assert_reset(struct gdsc * sc) gdsc_assert_reset() argument
233 gdsc_force_mem_on(struct gdsc * sc) gdsc_force_mem_on() argument
245 gdsc_clear_mem_on(struct gdsc * sc) gdsc_clear_mem_on() argument
257 gdsc_deassert_clamp_io(struct gdsc * sc) gdsc_deassert_clamp_io() argument
263 gdsc_assert_clamp_io(struct gdsc * sc) gdsc_assert_clamp_io() argument
269 gdsc_assert_reset_aon(struct gdsc * sc) gdsc_assert_reset_aon() argument
278 gdsc_retain_ff_on(struct gdsc * sc) gdsc_retain_ff_on() argument
287 struct gdsc *sc = domain_to_gdsc(domain); gdsc_enable() local
345 struct gdsc *sc = domain_to_gdsc(domain); gdsc_disable() local
394 struct gdsc *sc = domain_to_gdsc(domain); gdsc_set_hwmode() local
421 struct gdsc *sc = domain_to_gdsc(domain); gdsc_get_hwmode() local
429 gdsc_init(struct gdsc * sc) gdsc_init() argument
716 struct gdsc *sc = domain_to_gdsc(domain); gdsc_gx_do_nothing_enable() local
738 struct gdsc *sc = domain_to_gdsc(domain); gdsc_gx_disable() local
[all...]
/linux/drivers/usb/atm/
H A Dueagle-atm.c248 #define IS_OPERATIONAL(sc) \ argument
249 ((UEA_CHIP_VERSION(sc) != EAGLE_IV) ? \
250 (GET_STATUS(sc->stats.phy.state) == 2) : \
251 (sc->stats.phy.state == 7))
542 #define uea_wait(sc, cond, timeo) \ argument
544 int _r = wait_event_freezable_timeout(sc->sync_q, \
553 if (sc->usbatm->atm_dev) \
554 sc->usbatm->atm_dev->type = val; \
559 if (sc->usbatm->atm_dev) \
560 atm_dev_signal_change(sc->usbatm->atm_dev, val); \
[all …]
/linux/drivers/firmware/arm_scmi/
H A Dscmi_power_control.c123 struct scmi_syspower_conf *sc = reboot_nb_to_sconf(nb); in scmi_reboot_notifier() local
125 mutex_lock(&sc->state_mtx); in scmi_reboot_notifier()
129 if (sc->required_transition == SCMI_SYSTEM_SHUTDOWN) in scmi_reboot_notifier()
130 sc->state = SCMI_SYSPOWER_REBOOTING; in scmi_reboot_notifier()
133 if (sc->required_transition == SCMI_SYSTEM_COLDRESET || in scmi_reboot_notifier()
134 sc->required_transition == SCMI_SYSTEM_WARMRESET) in scmi_reboot_notifier()
135 sc->state = SCMI_SYSPOWER_REBOOTING; in scmi_reboot_notifier()
141 if (sc->state == SCMI_SYSPOWER_REBOOTING) { in scmi_reboot_notifier()
142 dev_dbg(sc->dev, "Reboot in progress...cancel delayed work.\n"); in scmi_reboot_notifier()
143 cancel_delayed_work_sync(&sc in scmi_reboot_notifier()
159 scmi_request_forceful_transition(struct scmi_syspower_conf * sc) scmi_request_forceful_transition() argument
182 struct scmi_syspower_conf *sc; scmi_forceful_work_func() local
214 scmi_request_graceful_transition(struct scmi_syspower_conf * sc,unsigned int timeout_ms) scmi_request_graceful_transition() argument
285 struct scmi_syspower_conf *sc = userspace_nb_to_sconf(nb); scmi_userspace_notifier() local
334 struct scmi_syspower_conf *sc; scmi_syspower_probe() local
365 struct scmi_syspower_conf *sc = dev_get_drvdata(dev); scmi_system_power_resume() local
[all...]

12345678910>>...16