Home
last modified time | relevance | path

Searched full:sc (Results 1 – 25 of 642) 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 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 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_I(orphanage_inode)); in xrep_orphanage_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 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 kstrdup_const("rtgroups", GFP_KERNEL), sc->mp->m_rtdirip); in xchk_setup_metapath_rtdir()
[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 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 (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 Ddir.c35 struct xfs_scrub *sc) in xchk_setup_directory() argument
39 if (xchk_could_repair(sc)) { in xchk_setup_directory()
40 error = xrep_setup_directory(sc); in xchk_setup_directory()
45 return xchk_setup_inode_contents(sc, 0); in xchk_setup_directory()
63 struct xfs_scrub *sc; member
88 struct xfs_scrub *sc, in xchk_dir_check_ftype() argument
93 struct xfs_mount *mp = sc->mp; in xchk_dir_check_ftype()
97 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_dir_check_ftype()
102 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_dir_check_ftype()
109 if (xfs_is_metadir_inode(ip) != xfs_is_metadir_inode(sc->ip)) in xchk_dir_check_ftype()
[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 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 …]
H A Drefcount.c29 struct xfs_scrub *sc) in xchk_setup_ag_refcountbt() argument
31 if (xchk_need_intent_drain(sc)) in xchk_setup_ag_refcountbt()
32 xchk_fsgates_enable(sc, XCHK_FSGATES_DRAIN); in xchk_setup_ag_refcountbt()
34 if (xchk_could_repair(sc)) { in xchk_setup_ag_refcountbt()
37 error = xrep_setup_ag_refcountbt(sc); in xchk_setup_ag_refcountbt()
42 return xchk_setup_ag_btree(sc, false); in xchk_setup_ag_refcountbt()
89 struct xfs_scrub *sc; member
120 if (xchk_should_terminate(refchk->sc, &error)) in xchk_refcountbt_rmap_check()
128 xchk_btree_xref_set_corrupt(refchk->sc, cur, 0); in xchk_refcountbt_rmap_check()
285 struct xfs_scrub *sc, in xchk_refcountbt_xref_rmap() argument
[all …]
H A Dscrub.c145 struct xfs_scrub *sc) in xchk_probe() argument
149 if (xchk_should_terminate(sc, &error)) in xchk_probe()
159 if (xchk_could_repair(sc)) { in xchk_probe()
162 sc->sm->sm_flags |= XFS_SCRUB_OFLAG_CORRUPT; in xchk_probe()
171 struct xfs_scrub *sc) in xchk_fsgates_disable() argument
173 if (!(sc->flags & XCHK_FSGATES_ALL)) in xchk_fsgates_disable()
176 trace_xchk_fsgates_disable(sc, sc->flags & XCHK_FSGATES_ALL); in xchk_fsgates_disable()
178 if (sc->flags & XCHK_FSGATES_DRAIN) in xchk_fsgates_disable()
181 if (sc->flags & XCHK_FSGATES_QUOTA) in xchk_fsgates_disable()
184 if (sc->flags & XCHK_FSGATES_DIRENTS) in xchk_fsgates_disable()
[all …]
/linux/fs/smb/server/
H A Dtransport_rdma.c132 struct smbdirect_socket *sc; in get_smbd_max_read_write_size() local
139 sc = &t->socket; in get_smbd_max_read_write_size()
140 sp = &sc->parameters; in get_smbd_max_read_write_size()
151 static void smb_direct_destroy_pools(struct smbdirect_socket *sc);
153 static int smb_direct_post_send_data(struct smbdirect_socket *sc,
165 smbdirect_recv_io *get_free_recvmsg(struct smbdirect_socket *sc) in get_free_recvmsg() argument
170 spin_lock_irqsave(&sc->recv_io.free.lock, flags); in get_free_recvmsg()
171 if (!list_empty(&sc->recv_io.free.list)) { in get_free_recvmsg()
172 recvmsg = list_first_entry(&sc->recv_io.free.list, in get_free_recvmsg()
177 spin_unlock_irqrestore(&sc->recv_io.free.lock, flags); in get_free_recvmsg()
[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);
507 * given sc.
518 static void cr_group_addresses(struct send_context *sc, dma_addr_t *dma) in cr_group_addresses() argument
520 u32 gc = group_context(sc->hw_context, sc->group); in cr_group_addresses()
521 u32 index = sc->hw_context & 0x7; in cr_group_addresses()
523 sc->hw_free = &sc->dd->cr_base[sc->node].va[gc].cr[index]; in cr_group_addresses()
525 &((struct credit_return *)sc->dd->cr_base[sc->node].dma)[gc]; in cr_group_addresses()
534 struct send_context *sc; in sc_halted() local
536 sc = container_of(work, struct send_context, halt_work); in sc_halted()
[all …]
/linux/drivers/usb/atm/
H A Dueagle-atm.c254 #define IS_OPERATIONAL(sc) \ argument
255 ((UEA_CHIP_VERSION(sc) != EAGLE_IV) ? \
256 (GET_STATUS(sc->stats.phy.state) == 2) : \
257 (sc->stats.phy.state == 7))
548 #define uea_wait(sc, cond, timeo) \ argument
550 int _r = wait_event_freezable_timeout(sc->sync_q, \
559 if (sc->usbatm->atm_dev) \
560 sc->usbatm->atm_dev->type = val; \
565 if (sc->usbatm->atm_dev) \
566 atm_dev_signal_change(sc->usbatm->atm_dev, val); \
[all …]
/linux/fs/smb/client/
H A Dsmbdirect.c19 struct smbdirect_socket *sc = &conn->socket; in smbd_get_parameters() local
21 return &sc->parameters; in smbd_get_parameters()
25 struct smbdirect_socket *sc);
27 struct smbdirect_socket *sc,
29 static int allocate_receive_buffers(struct smbdirect_socket *sc, int num_buf);
30 static void destroy_receive_buffers(struct smbdirect_socket *sc);
33 struct smbdirect_socket *sc,
36 struct smbdirect_socket *sc);
38 static int smbd_post_send(struct smbdirect_socket *sc,
43 struct smbdirect_socket *sc,
[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/fs/ocfs2/cluster/
H A Dtcp.c63 #define SC_NODEF_ARGS(sc) sc->sc_node->nd_name, sc->sc_node->nd_num, \ argument
64 &sc->sc_node->nd_ipv4_address, \
65 ntohs(sc->sc_node->nd_ipv4_port)
82 #define sclog(sc, fmt, args...) do { \ argument
83 typeof(sc) __sc = (sc); \
84 mlog(ML_SOCKET, "[sc %p refs %d sock %p node %u page %p " \
129 static void o2net_sc_postpone_idle(struct o2net_sock_container *sc);
130 static void o2net_sc_reset_idle_timer(struct o2net_sock_container *sc);
159 struct o2net_sock_container *sc) in o2net_set_nst_sock_container() argument
161 nst->st_sc = sc; in o2net_set_nst_sock_container()
[all …]

12345678910>>...26