Home
last modified time | relevance | path

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

12345678910>>...39

/openbmc/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 = from_timer(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 Drecv.c23 static inline bool ath9k_check_auto_sleep(struct ath_softc *sc) in ath9k_check_auto_sleep() argument
25 return sc->ps_enabled && in ath9k_check_auto_sleep()
26 (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_AUTOSLEEP); in ath9k_check_auto_sleep()
37 static void ath_rx_buf_link(struct ath_softc *sc, struct ath_rxbuf *bf, in ath_rx_buf_link() argument
40 struct ath_hw *ah = sc->sc_ah; in ath_rx_buf_link()
63 if (sc->rx.rxlink) in ath_rx_buf_link()
64 *sc->rx.rxlink = bf->bf_daddr; in ath_rx_buf_link()
68 sc->rx.rxlink = &ds->ds_link; in ath_rx_buf_link()
71 static void ath_rx_buf_relink(struct ath_softc *sc, struct ath_rxbuf *bf, in ath_rx_buf_relink() argument
74 if (sc->rx.buf_hold) in ath_rx_buf_relink()
[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 Dbeacon.c22 static void ath9k_reset_beacon_status(struct ath_softc *sc) in ath9k_reset_beacon_status() argument
24 sc->beacon.tx_processed = false; in ath9k_reset_beacon_status()
25 sc->beacon.tx_last = false; in ath9k_reset_beacon_status()
33 static void ath9k_beaconq_config(struct ath_softc *sc) in ath9k_beaconq_config() argument
35 struct ath_hw *ah = sc->sc_ah; in ath9k_beaconq_config()
40 ath9k_hw_get_txq_props(ah, sc->beacon.beaconq, &qi); in ath9k_beaconq_config()
42 if (sc->sc_ah->opmode == NL80211_IFTYPE_AP || in ath9k_beaconq_config()
43 sc->sc_ah->opmode == NL80211_IFTYPE_MESH_POINT) { in ath9k_beaconq_config()
50 txq = sc->tx.txq_map[IEEE80211_AC_BE]; in ath9k_beaconq_config()
60 if (!ath9k_hw_set_txq_props(ah, sc->beacon.beaconq, &qi)) { in ath9k_beaconq_config()
[all …]
H A Dinit.c150 static void ath9k_deinit_softc(struct ath_softc *sc);
177 struct ath_softc *sc = (struct ath_softc *) common->priv; in ath9k_iowrite32() local
181 spin_lock_irqsave(&sc->sc_serial_rw, flags); in ath9k_iowrite32()
182 iowrite32(val, sc->mem + reg_offset); in ath9k_iowrite32()
183 spin_unlock_irqrestore(&sc->sc_serial_rw, flags); in ath9k_iowrite32()
185 iowrite32(val, sc->mem + reg_offset); in ath9k_iowrite32()
192 struct ath_softc *sc = (struct ath_softc *) common->priv; in ath9k_ioread32() local
197 spin_lock_irqsave(&sc->sc_serial_rw, flags); in ath9k_ioread32()
198 val = ioread32(sc->mem + reg_offset); in ath9k_ioread32()
199 spin_unlock_irqrestore(&sc->sc_serial_rw, flags); in ath9k_ioread32()
[all …]
H A Ddebug.c29 void ath9k_debug_sync_cause(struct ath_softc *sc, u32 sync_cause) in ath9k_debug_sync_cause() argument
32 sc->debug.stats.istats.sync_cause_all++; in ath9k_debug_sync_cause()
34 sc->debug.stats.istats.sync_rtc_irq++; in ath9k_debug_sync_cause()
36 sc->debug.stats.istats.sync_mac_irq++; in ath9k_debug_sync_cause()
38 sc->debug.stats.istats.eeprom_illegal_access++; in ath9k_debug_sync_cause()
40 sc->debug.stats.istats.apb_timeout++; in ath9k_debug_sync_cause()
42 sc->debug.stats.istats.pci_mode_conflict++; in ath9k_debug_sync_cause()
44 sc->debug.stats.istats.host1_fatal++; in ath9k_debug_sync_cause()
46 sc->debug.stats.istats.host1_perr++; in ath9k_debug_sync_cause()
48 sc->debug.stats.istats.trcv_fifo_perr++; in ath9k_debug_sync_cause()
[all …]
/openbmc/linux/fs/xfs/scrub/
H A Dagheader.c23 struct xfs_scrub *sc) in xchk_setup_agheader() argument
25 if (xchk_need_intent_drain(sc)) in xchk_setup_agheader()
26 xchk_fsgates_enable(sc, XCHK_FSGATES_DRAIN); in xchk_setup_agheader()
27 return xchk_setup_fs(sc); in xchk_setup_agheader()
35 struct xfs_scrub *sc, in xchk_superblock_xref() argument
38 struct xfs_mount *mp = sc->mp; in xchk_superblock_xref()
39 xfs_agnumber_t agno = sc->sm->sm_agno; in xchk_superblock_xref()
43 if (sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_superblock_xref()
48 error = xchk_ag_init_existing(sc, agno, &sc->sa); in xchk_superblock_xref()
49 if (!xchk_xref_process_error(sc, agno, agbno, &error)) in xchk_superblock_xref()
[all …]
H A Dcommon.h16 struct xfs_scrub *sc, in xchk_should_terminate() argument
34 int xchk_trans_alloc(struct xfs_scrub *sc, uint resblks);
35 void xchk_trans_cancel(struct xfs_scrub *sc);
37 bool xchk_process_error(struct xfs_scrub *sc, xfs_agnumber_t agno,
39 bool xchk_fblock_process_error(struct xfs_scrub *sc, int whichfork,
42 bool xchk_xref_process_error(struct xfs_scrub *sc,
44 bool xchk_fblock_xref_process_error(struct xfs_scrub *sc,
47 void xchk_block_set_preen(struct xfs_scrub *sc,
49 void xchk_ino_set_preen(struct xfs_scrub *sc, xfs_ino_t ino);
51 void xchk_set_corrupt(struct xfs_scrub *sc);
[all …]
H A Dinode.c31 struct xfs_scrub *sc) in xchk_prepare_iscrub() argument
35 xchk_ilock(sc, XFS_IOLOCK_EXCL); in xchk_prepare_iscrub()
37 error = xchk_trans_alloc(sc, 0); in xchk_prepare_iscrub()
41 xchk_ilock(sc, XFS_ILOCK_EXCL); in xchk_prepare_iscrub()
48 struct xfs_scrub *sc, in xchk_install_handle_iscrub() argument
53 error = xchk_install_handle_inode(sc, ip); in xchk_install_handle_iscrub()
57 return xchk_prepare_iscrub(sc); in xchk_install_handle_iscrub()
68 struct xfs_scrub *sc) in xchk_setup_inode() argument
72 struct xfs_mount *mp = sc->mp; in xchk_setup_inode()
73 struct xfs_inode *ip_in = XFS_I(file_inode(sc->file)); in xchk_setup_inode()
[all …]
H A Drmap.c33 struct xfs_scrub *sc) in xchk_setup_ag_rmapbt() argument
35 if (xchk_need_intent_drain(sc)) in xchk_setup_ag_rmapbt()
36 xchk_fsgates_enable(sc, XCHK_FSGATES_DRAIN); in xchk_setup_ag_rmapbt()
38 return xchk_setup_ag_btree(sc, false); in xchk_setup_ag_rmapbt()
71 struct xfs_scrub *sc, in xchk_rmapbt_xref_refc() argument
82 if (!sc->sa.refc_cur || xchk_skip_xref(sc->sm)) in xchk_rmapbt_xref_refc()
91 error = xfs_refcount_find_shared(sc->sa.refc_cur, irec->rm_startblock, in xchk_rmapbt_xref_refc()
93 if (!xchk_should_check_xref(sc, &error, &sc->sa.refc_cur)) in xchk_rmapbt_xref_refc()
96 xchk_btree_xref_set_corrupt(sc, sc->sa.refc_cur, 0); in xchk_rmapbt_xref_refc()
102 struct xfs_scrub *sc, in xchk_rmapbt_xref() argument
[all …]
H A Dcommon.c67 struct xfs_scrub *sc, in __xchk_process_error() argument
81 sc->ip ? sc->ip : XFS_I(file_inode(sc->file)), in __xchk_process_error()
82 sc->sm, *error); in __xchk_process_error()
87 sc->sm->sm_flags |= errflag; in __xchk_process_error()
91 trace_xchk_op_error(sc, agno, bno, *error, in __xchk_process_error()
100 struct xfs_scrub *sc, in xchk_process_error() argument
105 return __xchk_process_error(sc, agno, bno, error, in xchk_process_error()
111 struct xfs_scrub *sc, in xchk_xref_process_error() argument
116 return __xchk_process_error(sc, agno, bno, error, in xchk_xref_process_error()
123 struct xfs_scrub *sc, in __xchk_fblock_process_error() argument
[all …]
H A Ddir.c26 struct xfs_scrub *sc) in xchk_setup_directory() argument
28 return xchk_setup_inode_contents(sc, 0); in xchk_setup_directory()
38 struct xfs_scrub *sc, in xchk_dir_check_ftype() argument
43 struct xfs_mount *mp = sc->mp; in xchk_dir_check_ftype()
47 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_dir_check_ftype()
52 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_dir_check_ftype()
63 struct xfs_scrub *sc, in xchk_dir_actor() argument
79 if (xchk_should_terminate(sc, &error)) in xchk_dir_actor()
84 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_dir_actor()
90 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, offset); in xchk_dir_actor()
[all …]
H A Dalloc.c25 struct xfs_scrub *sc) in xchk_setup_ag_allocbt() argument
27 if (xchk_need_intent_drain(sc)) in xchk_setup_ag_allocbt()
28 xchk_fsgates_enable(sc, XCHK_FSGATES_DRAIN); in xchk_setup_ag_allocbt()
30 return xchk_setup_ag_btree(sc, false); in xchk_setup_ag_allocbt()
46 struct xfs_scrub *sc, in xchk_allocbt_xref_other() argument
56 if (sc->sm->sm_type == XFS_SCRUB_TYPE_BNOBT) in xchk_allocbt_xref_other()
57 pcur = &sc->sa.cnt_cur; in xchk_allocbt_xref_other()
59 pcur = &sc->sa.bno_cur; in xchk_allocbt_xref_other()
60 if (!*pcur || xchk_skip_xref(sc->sm)) in xchk_allocbt_xref_other()
64 if (!xchk_should_check_xref(sc, &error, pcur)) in xchk_allocbt_xref_other()
[all …]
H A Drtbitmap.c24 struct xfs_scrub *sc) in xchk_setup_rtbitmap() argument
28 error = xchk_trans_alloc(sc, 0); in xchk_setup_rtbitmap()
32 error = xchk_install_live_inode(sc, sc->mp->m_rbmip); in xchk_setup_rtbitmap()
36 xchk_ilock(sc, XFS_ILOCK_EXCL | XFS_ILOCK_RTBITMAP); in xchk_setup_rtbitmap()
50 struct xfs_scrub *sc = priv; in xchk_rtbitmap_rec() local
58 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, 0); in xchk_rtbitmap_rec()
65 struct xfs_scrub *sc) in xchk_rtbitmap_check_extents() argument
67 struct xfs_mount *mp = sc->mp; in xchk_rtbitmap_check_extents()
74 if (xchk_should_terminate(sc, &error) || in xchk_rtbitmap_check_extents()
75 (sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT)) in xchk_rtbitmap_check_extents()
[all …]
H A Dquota.c24 struct xfs_scrub *sc) in xchk_quota_to_dqtype() argument
26 switch (sc->sm->sm_type) { in xchk_quota_to_dqtype()
41 struct xfs_scrub *sc) in xchk_setup_quota() argument
46 if (!XFS_IS_QUOTA_ON(sc->mp)) in xchk_setup_quota()
49 dqtype = xchk_quota_to_dqtype(sc); in xchk_setup_quota()
53 if (!xfs_this_quota_on(sc->mp, dqtype)) in xchk_setup_quota()
56 if (xchk_need_intent_drain(sc)) in xchk_setup_quota()
57 xchk_fsgates_enable(sc, XCHK_FSGATES_DRAIN); in xchk_setup_quota()
59 error = xchk_setup_fs(sc); in xchk_setup_quota()
63 error = xchk_install_live_inode(sc, xfs_quota_inode(sc->mp, dqtype)); in xchk_setup_quota()
[all …]
/openbmc/linux/drivers/clk/qcom/
H A Dgdsc.c60 static int gdsc_check_status(struct gdsc *sc, enum gdsc_status status) in gdsc_check_status() argument
66 if (sc->flags & POLL_CFG_GDSCR) in gdsc_check_status()
67 reg = sc->gdscr + CFG_GDSCR_OFFSET; in gdsc_check_status()
68 else if (sc->gds_hw_ctrl) in gdsc_check_status()
69 reg = sc->gds_hw_ctrl; in gdsc_check_status()
71 reg = sc->gdscr; in gdsc_check_status()
73 ret = regmap_read(sc->regmap, reg, &val); in gdsc_check_status()
77 if (sc->flags & POLL_CFG_GDSCR) { in gdsc_check_status()
96 static int gdsc_hwctrl(struct gdsc *sc, bool en) in gdsc_hwctrl() argument
100 return regmap_update_bits(sc->regmap, sc->gdscr, HW_CONTROL_MASK, val); in gdsc_hwctrl()
[all …]
/openbmc/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 …]
/openbmc/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 …]
/openbmc/linux/drivers/usb/atm/
H A Dueagle-atm.c253 #define IS_OPERATIONAL(sc) \ argument
254 ((UEA_CHIP_VERSION(sc) != EAGLE_IV) ? \
255 (GET_STATUS(sc->stats.phy.state) == 2) : \
256 (sc->stats.phy.state == 7))
547 #define uea_wait(sc, cond, timeo) \ argument
549 int _r = wait_event_interruptible_timeout(sc->sync_q, \
558 if (sc->usbatm->atm_dev) \
559 sc->usbatm->atm_dev->type = val; \
564 if (sc->usbatm->atm_dev) \
565 atm_dev_signal_change(sc->usbatm->atm_dev, val); \
[all …]
/openbmc/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(struct_size(sc, stripe, stripes), GFP_KERNEL); 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 …]
/openbmc/qemu/linux-user/hexagon/
H A Dsignal.c77 static void setup_sigcontext(struct target_sigcontext *sc, CPUHexagonState *env) in setup_sigcontext() argument
79 __put_user(env->gpr[HEX_REG_R00], &sc->r0); in setup_sigcontext()
80 __put_user(env->gpr[HEX_REG_R01], &sc->r1); in setup_sigcontext()
81 __put_user(env->gpr[HEX_REG_R02], &sc->r2); in setup_sigcontext()
82 __put_user(env->gpr[HEX_REG_R03], &sc->r3); in setup_sigcontext()
83 __put_user(env->gpr[HEX_REG_R04], &sc->r4); in setup_sigcontext()
84 __put_user(env->gpr[HEX_REG_R05], &sc->r5); in setup_sigcontext()
85 __put_user(env->gpr[HEX_REG_R06], &sc->r6); in setup_sigcontext()
86 __put_user(env->gpr[HEX_REG_R07], &sc->r7); in setup_sigcontext()
87 __put_user(env->gpr[HEX_REG_R08], &sc->r8); in setup_sigcontext()
[all …]
/openbmc/qemu/linux-user/microblaze/
H A Dsignal.c51 static void setup_sigcontext(struct target_sigcontext *sc, CPUMBState *env) in setup_sigcontext() argument
53 __put_user(env->regs[0], &sc->regs.r0); in setup_sigcontext()
54 __put_user(env->regs[1], &sc->regs.r1); in setup_sigcontext()
55 __put_user(env->regs[2], &sc->regs.r2); in setup_sigcontext()
56 __put_user(env->regs[3], &sc->regs.r3); in setup_sigcontext()
57 __put_user(env->regs[4], &sc->regs.r4); in setup_sigcontext()
58 __put_user(env->regs[5], &sc->regs.r5); in setup_sigcontext()
59 __put_user(env->regs[6], &sc->regs.r6); in setup_sigcontext()
60 __put_user(env->regs[7], &sc->regs.r7); in setup_sigcontext()
61 __put_user(env->regs[8], &sc->regs.r8); in setup_sigcontext()
[all …]
/openbmc/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 = from_timer(sc, t, ghl_poke_timer); in ghl_magic_poke() local
[all …]

12345678910>>...39