Home
last modified time | relevance | path

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

12345678910>>...24

/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 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/smb/smbdirect/
H A Dsocket.c30 struct smbdirect_socket *sc = id->context; in smbdirect_socket_rdma_event_handler() local
43 smbdirect_socket_status_string(sc->status), in smbdirect_socket_rdma_event_handler()
44 SMBDIRECT_DEBUG_ERR_PTR(sc->first_error), in smbdirect_socket_rdma_event_handler()
45 rdma_event_msg(sc->rdma.expected_event), in smbdirect_socket_rdma_event_handler()
50 sc->rdma.cm_id = NULL; in smbdirect_socket_rdma_event_handler()
54 int smbdirect_socket_init_new(struct net *net, struct smbdirect_socket *sc) in smbdirect_socket_init_new() argument
59 smbdirect_socket_init(sc); in smbdirect_socket_init_new()
63 sc, in smbdirect_socket_init_new()
79 sc->rdma.cm_id = id; in smbdirect_socket_init_new()
81 INIT_WORK(&sc->disconnect_work, smbdirect_socket_cleanup_work); in smbdirect_socket_init_new()
[all …]
H A Dconnect.c9 static int smbdirect_connect_setup_connection(struct smbdirect_socket *sc);
10 static int smbdirect_connect_resolve_addr(struct smbdirect_socket *sc,
15 static int smbdirect_connect_negotiate_start(struct smbdirect_socket *sc);
19 int smbdirect_connect(struct smbdirect_socket *sc, const struct sockaddr *dst) in smbdirect_connect() argument
32 if (sc->first_error) in smbdirect_connect()
35 if (sc->status != SMBDIRECT_SOCKET_CREATED) in smbdirect_connect()
38 if (WARN_ON_ONCE(!sc->rdma.cm_id)) in smbdirect_connect()
41 src_addr.ss = sc->rdma.cm_id->route.addr.src_addr; in smbdirect_connect()
45 smbdirect_log_rdma_event(sc, SMBDIRECT_LOG_INFO, in smbdirect_connect()
49 ret = smbdirect_connect_setup_connection(sc); in smbdirect_connect()
[all …]
H A Dconnection.c27 struct smbdirect_socket *sc = context; in smbdirect_connection_qp_event_handler() local
29 smbdirect_log_rdma_event(sc, SMBDIRECT_LOG_ERR, in smbdirect_connection_qp_event_handler()
34 sc, sc->rdma.cm_id, in smbdirect_connection_qp_event_handler()
35 smbdirect_socket_status_string(sc->status), in smbdirect_connection_qp_event_handler()
36 SMBDIRECT_DEBUG_ERR_PTR(sc->first_error)); in smbdirect_connection_qp_event_handler()
41 smbdirect_socket_schedule_cleanup(sc, -ECONNABORTED); in smbdirect_connection_qp_event_handler()
52 struct smbdirect_socket *sc = id->context; in smbdirect_connection_rdma_event_handler() local
69 if (event->event != sc->rdma.expected_event) { in smbdirect_connection_rdma_event_handler()
70 smbdirect_log_rdma_event(sc, SMBDIRECT_LOG_ERR, in smbdirect_connection_rdma_event_handler()
72 smbdirect_socket_status_string(sc->status), in smbdirect_connection_rdma_event_handler()
[all …]
H A Daccept.c14 static int smbdirect_accept_init_params(struct smbdirect_socket *sc);
18 int smbdirect_accept_connect_request(struct smbdirect_socket *sc, in smbdirect_accept_connect_request() argument
21 struct smbdirect_socket_parameters *sp = &sc->parameters; in smbdirect_accept_connect_request()
29 if (SMBDIRECT_CHECK_STATUS_WARN(sc, SMBDIRECT_SOCKET_CREATED)) in smbdirect_accept_connect_request()
36 sc->ib.dev->attrs.max_qp_rd_atom); in smbdirect_accept_connect_request()
40 smbdirect_connection_negotiate_rdma_resources(sc, in smbdirect_accept_connect_request()
45 ret = smbdirect_accept_init_params(sc); in smbdirect_accept_connect_request()
47 smbdirect_log_rdma_event(sc, SMBDIRECT_LOG_ERR, in smbdirect_accept_connect_request()
53 ret = smbdirect_connection_create_qp(sc); in smbdirect_accept_connect_request()
55 smbdirect_log_rdma_event(sc, SMBDIRECT_LOG_ERR, in smbdirect_accept_connect_request()
[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
41 struct xfs_mount *mp = sc->mp; in xchk_superblock_xref()
42 xfs_agnumber_t agno = sc->sm->sm_agno; in xchk_superblock_xref()
46 if (sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_superblock_xref()
51 error = xchk_ag_init_existing(sc, agno, &sc->sa); in xchk_superblock_xref()
52 if (!xchk_xref_process_error(sc, agno, agbno, &error)) in xchk_superblock_xref()
[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->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 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 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->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 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 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 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 Dinode_repair.c107 struct xfs_scrub *sc; member
149 struct xfs_scrub *sc, in xrep_setup_inode() argument
154 sc->buf = kzalloc_obj(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 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 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 …]
H A Dalloc.c28 struct xfs_scrub *sc) in xchk_setup_ag_allocbt() argument
32 if (xchk_need_intent_drain(sc)) in xchk_setup_ag_allocbt()
33 xchk_fsgates_enable(sc, XCHK_FSGATES_DRAIN); in xchk_setup_ag_allocbt()
35 error = xchk_setup_ag_btree(sc, false); in xchk_setup_ag_allocbt()
39 if (xchk_could_repair(sc)) in xchk_setup_ag_allocbt()
40 return xrep_setup_ag_allocbt(sc); in xchk_setup_ag_allocbt()
58 struct xfs_scrub *sc, in xchk_allocbt_xref_other() argument
68 if (sc->sm->sm_type == XFS_SCRUB_TYPE_BNOBT) in xchk_allocbt_xref_other()
69 pcur = &sc->sa.cnt_cur; in xchk_allocbt_xref_other()
71 pcur = &sc->sa.bno_cur; in xchk_allocbt_xref_other()
[all …]
H A Drtsummary.c43 struct xfs_scrub *sc) in xchk_setup_rtsummary() argument
45 struct xfs_mount *mp = sc->mp; in xchk_setup_rtsummary()
49 if (xchk_need_intent_drain(sc)) in xchk_setup_rtsummary()
50 xchk_fsgates_enable(sc, XCHK_FSGATES_DRAIN); in xchk_setup_rtsummary()
55 sc->buf = rts; in xchk_setup_rtsummary()
57 error = xchk_rtgroup_init(sc, sc->sm->sm_agno, &sc->sr); in xchk_setup_rtsummary()
61 if (xchk_could_repair(sc)) { in xchk_setup_rtsummary()
62 error = xrep_setup_rtsummary(sc, rts); in xchk_setup_rtsummary()
72 XFS_FSB_TO_B(mp, mp->m_rsumblocks), &sc->xfile); in xchk_setup_rtsummary()
76 error = xchk_trans_alloc(sc, rts->resblks); in xchk_setup_rtsummary()
[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->regmap, sc->gdscr, HW_CONTROL_MASK, val); in gdsc_hwctrl()
[all …]
/linux/drivers/md/
H A Ddm-stripe.c56 struct stripe_c *sc = container_of(work, struct stripe_c, in trigger_event() local
58 dm_table_event(sc->ti->table); in trigger_event()
64 static int get_stripe(struct dm_target *ti, struct stripe_c *sc, in get_stripe() argument
75 &sc->stripe[stripe].dev); in get_stripe()
79 sc->stripe[stripe].physical_start = start; in get_stripe()
90 struct stripe_c *sc; in stripe_ctr() local
132 sc = kmalloc_flex(*sc, stripe, stripes); in stripe_ctr()
133 if (!sc) { in stripe_ctr()
138 INIT_WORK(&sc->trigger_event, trigger_event); in stripe_ctr()
141 sc->ti = ti; in stripe_ctr()
[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 …]

12345678910>>...24