Home
last modified time | relevance | path

Searched full:sc (Results 1 – 25 of 635) sorted by relevance

12345678910>>...26

/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->cur_survey->filled &= ~SURVEY_INFO_IN_USE; in ath_set_channel()
61 sc->cur_survey = &sc->survey[pos]; in ath_set_channel()
63 memset(sc->cur_survey, 0, sizeof(struct survey_info)); in ath_set_channel()
[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 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 …]
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 Dinit.c149 static void ath9k_deinit_softc(struct ath_softc *sc);
176 struct ath_softc *sc = common->priv; in ath9k_iowrite32() local
180 spin_lock_irqsave(&sc->sc_serial_rw, flags); in ath9k_iowrite32()
181 iowrite32(val, sc->mem + reg_offset); in ath9k_iowrite32()
182 spin_unlock_irqrestore(&sc->sc_serial_rw, flags); in ath9k_iowrite32()
184 iowrite32(val, sc->mem + reg_offset); in ath9k_iowrite32()
191 struct ath_softc *sc = common->priv; in ath9k_ioread32() local
196 spin_lock_irqsave(&sc->sc_serial_rw, flags); in ath9k_ioread32()
197 val = ioread32(sc->mem + reg_offset); in ath9k_ioread32()
198 spin_unlock_irqrestore(&sc->sc_serial_rw, flags); in ath9k_ioread32()
[all …]
H A Dlink.c23 static bool ath_tx_complete_check(struct ath_softc *sc) in ath_tx_complete_check() argument
28 if (sc->tx99_state) in ath_tx_complete_check()
32 txq = sc->tx.txq_map[i]; in ath_tx_complete_check()
34 ath_txq_lock(sc, txq); in ath_tx_complete_check()
37 ath_txq_unlock(sc, txq); in ath_tx_complete_check()
43 ath_txq_unlock(sc, txq); in ath_tx_complete_check()
49 ath_dbg(ath9k_hw_common(sc->sc_ah), RESET, in ath_tx_complete_check()
51 ath9k_queue_reset(sc, RESET_TYPE_TX_HANG); in ath_tx_complete_check()
57 static bool ath_hw_rx_inactive_check(struct ath_softc *sc) in ath_hw_rx_inactive_check() argument
59 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_hw_rx_inactive_check()
[all …]
/linux/fs/xfs/scrub/
H A Dagheader.c24 struct xfs_scrub *sc) in xchk_setup_agheader() argument
26 if (xchk_need_intent_drain(sc)) in xchk_setup_agheader()
27 xchk_fsgates_enable(sc, XCHK_FSGATES_DRAIN); in xchk_setup_agheader()
28 return xchk_setup_fs(sc); in xchk_setup_agheader()
36 struct xfs_scrub *sc, in xchk_superblock_xref() argument
39 struct xfs_mount *mp = sc->mp; in xchk_superblock_xref()
40 xfs_agnumber_t agno = sc->sm->sm_agno; in xchk_superblock_xref()
44 if (sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_superblock_xref()
49 error = xchk_ag_init_existing(sc, agno, &sc->sa); in xchk_superblock_xref()
50 if (!xchk_xref_process_error(sc, agno, agbno, &error)) in xchk_superblock_xref()
[all …]
H A Dcommon.h9 int xchk_trans_alloc(struct xfs_scrub *sc, uint resblks);
10 int 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_t ino);
[all …]
H A Drepair.h14 static inline int xrep_notsupported(struct xfs_scrub *sc) in xrep_notsupported() argument
31 int xrep_attempt(struct xfs_scrub *sc, struct xchk_stats_run *run);
32 bool xrep_will_attempt(struct xfs_scrub *sc);
34 int xrep_roll_ag_trans(struct xfs_scrub *sc);
35 int xrep_roll_trans(struct xfs_scrub *sc);
36 int xrep_defer_finish(struct xfs_scrub *sc);
39 xfs_extlen_t xrep_calc_ag_resblks(struct xfs_scrub *sc);
43 struct xfs_scrub *sc) in xrep_trans_commit() argument
45 int error = xfs_trans_commit(sc->tp); in xrep_trans_commit()
47 sc->tp = NULL; in xrep_trans_commit()
[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->tempip)->i_opflags &= ~IOP_XATTR; in xrep_tempfile_create()
[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()
[all …]
H A Dcommon.c78 struct xfs_scrub *sc, in __xchk_process_error() argument
92 sc->ip ? sc->ip : XFS_I(file_inode(sc->file)), in __xchk_process_error()
93 sc->sm, *error); in __xchk_process_error()
101 trace_xchk_op_error(sc, agno, bno, *error, ret_ip); in __xchk_process_error()
107 sc->sm->sm_flags |= errflag; in __xchk_process_error()
111 trace_xchk_op_error(sc, agno, bno, *error, ret_ip); in __xchk_process_error()
119 struct xfs_scrub *sc, in xchk_process_error() argument
124 return __xchk_process_error(sc, agno, bno, error, in xchk_process_error()
130 struct xfs_scrub *sc, in xchk_process_rt_error() argument
135 return __xchk_process_error(sc, rgno, rgbno, error, in xchk_process_rt_error()
[all …]
H A Dmetapath.c44 struct xfs_scrub *sc; member
88 struct xfs_scrub *sc, in xchk_setup_metapath_scan() argument
99 error = xchk_install_live_inode(sc, ip); in xchk_setup_metapath_scan()
111 mpath->sc = sc; in xchk_setup_metapath_scan()
112 sc->buf = mpath; in xchk_setup_metapath_scan()
113 sc->buf_cleanup = xchk_metapath_cleanup; in xchk_setup_metapath_scan()
129 struct xfs_scrub *sc) in xchk_setup_metapath_rtdir() argument
131 if (!sc->mp->m_rtdirip) in xchk_setup_metapath_rtdir()
134 return xchk_setup_metapath_scan(sc, sc->mp->m_metadirip, in xchk_setup_metapath_rtdir()
135 kasprintf(GFP_KERNEL, "rtgroups"), sc->mp->m_rtdirip); in xchk_setup_metapath_rtdir()
[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, &sc->sr); in xchk_setup_rtrmapbt()
53 error = xchk_setup_rt(sc); in xchk_setup_rtrmapbt()
57 error = xchk_install_live_inode(sc, rtg_rmap(sc->sr.rtg)); in xchk_setup_rtrmapbt()
61 return xchk_rtgroup_lock(sc, &sc->sr, XCHK_RTGLOCK_ALL); in xchk_setup_rtrmapbt()
83 struct xfs_scrub *sc, in xchk_rtrmapbt_is_shareable() 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(struct_size(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->sm->sm_agno, &sc->sr); in xchk_setup_rtbitmap()
55 if (xchk_could_repair(sc)) { in xchk_setup_rtbitmap()
56 error = xrep_setup_rtbitmap(sc, rtb); in xchk_setup_rtbitmap()
[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->sa); in xrep_attempt()
72 xchk_rtgroup_btcur_free(&sc->sr); 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->sm, error); in xrep_attempt()
87 sc->sm->sm_flags &= ~XFS_SCRUB_FLAGS_OUT; in xrep_attempt()
88 sc->flags |= XREP_ALREADY_FIXED; in xrep_attempt()
92 sc->flags |= XCHK_NEED_DRAIN; in xrep_attempt()
[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 (sc->ip->i_ino == 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 Dinode_repair.c107 struct xfs_scrub *sc; member
149 struct xfs_scrub *sc, in xrep_setup_inode() argument
154 sc->buf = kzalloc(sizeof(struct xrep_inode), XCHK_GFP_FLAGS); in xrep_setup_inode()
155 if (!sc->buf) in xrep_setup_inode()
158 ri = sc->buf; in xrep_setup_inode()
160 ri->sc = sc; in xrep_setup_inode()
170 struct xfs_scrub *sc, in xrep_dinode_buf_core() argument
175 struct xfs_trans *tp = sc->tp; in xrep_dinode_buf_core()
176 struct xfs_mount *mp = sc->mp; in xrep_dinode_buf_core()
213 struct xfs_scrub *sc, in xrep_dinode_buf() 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_EXCL); in xchk_setup_inode_bmap()
[all …]
H A Dquota.c26 struct xfs_scrub *sc) in xchk_quota_to_dqtype() argument
28 switch (sc->sm->sm_type) { in xchk_quota_to_dqtype()
43 struct xfs_scrub *sc) in xchk_setup_quota() argument
48 if (!XFS_IS_QUOTA_ON(sc->mp)) in xchk_setup_quota()
51 dqtype = xchk_quota_to_dqtype(sc); in xchk_setup_quota()
55 if (!xfs_this_quota_on(sc->mp, dqtype)) in xchk_setup_quota()
58 if (xchk_need_intent_drain(sc)) in xchk_setup_quota()
59 xchk_fsgates_enable(sc, XCHK_FSGATES_DRAIN); in xchk_setup_quota()
61 error = xchk_setup_fs(sc); in xchk_setup_quota()
65 error = xchk_install_live_inode(sc, xfs_quota_inode(sc->mp, dqtype)); in xchk_setup_quota()
[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->mp, sc->tp, sc->mp->m_ddev_targp, in xrep_symlink_salvage_remote()
[all …]
H A Drtrefcount.c31 struct xfs_scrub *sc) in xchk_setup_rtrefcountbt() argument
35 if (xchk_need_intent_drain(sc)) in xchk_setup_rtrefcountbt()
36 xchk_fsgates_enable(sc, XCHK_FSGATES_DRAIN); in xchk_setup_rtrefcountbt()
38 if (xchk_could_repair(sc)) { in xchk_setup_rtrefcountbt()
39 error = xrep_setup_rtrefcountbt(sc); in xchk_setup_rtrefcountbt()
44 error = xchk_rtgroup_init(sc, sc->sm->sm_agno, &sc->sr); in xchk_setup_rtrefcountbt()
48 error = xchk_setup_rt(sc); in xchk_setup_rtrefcountbt()
52 error = xchk_install_live_inode(sc, rtg_refcount(sc->sr.rtg)); in xchk_setup_rtrefcountbt()
56 return xchk_rtgroup_lock(sc, &sc->sr, XCHK_RTGLOCK_ALL); in xchk_setup_rtrefcountbt()
103 struct xfs_scrub *sc; member
[all …]
/linux/drivers/scsi/snic/
H A Dsnic_scsi.c22 #define snic_cmd_tag(sc) (scsi_cmd_to_rq(sc)->tag) argument
98 snic_io_lock_hash(struct snic *snic, struct scsi_cmnd *sc) in snic_io_lock_hash() argument
100 u32 hash = snic_cmd_tag(sc) & (SNIC_IO_LOCKS - 1); in snic_io_lock_hash()
115 struct scsi_cmnd *sc) in snic_release_req_buf() argument
120 SNIC_BUG_ON(!((CMD_STATE(sc) == SNIC_IOREQ_COMPLETE) || in snic_release_req_buf()
121 (CMD_STATE(sc) == SNIC_IOREQ_ABTS_COMPLETE) || in snic_release_req_buf()
122 (CMD_FLAGS(sc) & SNIC_DEV_RST_NOTSUP) || in snic_release_req_buf()
123 (CMD_FLAGS(sc) & SNIC_IO_INTERNAL_TERM_ISSUED) || in snic_release_req_buf()
124 (CMD_FLAGS(sc) & SNIC_DEV_RST_TERM_ISSUED) || in snic_release_req_buf()
125 (CMD_FLAGS(sc) & SNIC_SCSI_CLEANUP) || in snic_release_req_buf()
[all …]
/linux/drivers/infiniband/hw/hfi1/
H A Dpio.c11 #define SC(name) SEND_CTXT_##name macro
15 static void sc_wait_for_packet_egress(struct send_context *sc, int pause);
508 * given sc.
519 static void cr_group_addresses(struct send_context *sc, dma_addr_t *dma) in cr_group_addresses() argument
521 u32 gc = group_context(sc->hw_context, sc->group); in cr_group_addresses()
522 u32 index = sc->hw_context & 0x7; in cr_group_addresses()
524 sc->hw_free = &sc->dd->cr_base[sc->node].va[gc].cr[index]; in cr_group_addresses()
526 &((struct credit_return *)sc->dd->cr_base[sc->node].dma)[gc]; in cr_group_addresses()
535 struct send_context *sc; in sc_halted() local
537 sc = container_of(work, struct send_context, halt_work); in sc_halted()
[all …]
/linux/drivers/hid/
H A Dhid-sony.c518 static void sony_set_leds(struct sony_sc *sc);
520 static inline void sony_schedule_work(struct sony_sc *sc, in sony_schedule_work() argument
527 spin_lock_irqsave(&sc->lock, flags); in sony_schedule_work()
528 if (!sc->defer_initialization && sc->state_worker_initialized) in sony_schedule_work()
529 schedule_work(&sc->state_worker); in sony_schedule_work()
530 spin_unlock_irqrestore(&sc->lock, flags); in sony_schedule_work()
537 struct sony_sc *sc = urb->context; in ghl_magic_poke_cb() local
540 hid_err(sc->hdev, "URB transfer failed : %d", urb->status); in ghl_magic_poke_cb()
542 mod_timer(&sc->ghl_poke_timer, jiffies + GHL_GUITAR_POKE_INTERVAL*HZ); in ghl_magic_poke_cb()
548 struct sony_sc *sc = timer_container_of(sc, t, ghl_poke_timer); in ghl_magic_poke() local
[all …]

12345678910>>...26