Home
last modified time | relevance | path

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

12345678910

/drivers/net/wireless/ath/ath9k/
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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
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()
58 struct ath_softc *sc = container_of(work, struct ath_softc, in ath_hw_check_work() local
61 if (!ath_hw_check(sc) || in ath_hw_check_work()
[all …]
Dath9k.h75 int ath_descdma_setup(struct ath_softc *sc, struct ath_descdma *dd,
83 #define ATH_TXQ_SETUP(sc, i) ((sc)->tx.txqsetup & (1<<i)) argument
250 void ath_tx_queue_tid(struct ath_softc *sc, struct ath_atx_tid *tid);
253 struct ath_softc *sc; member
446 for (ctx = &sc->chanctx[0]; \
447 ctx <= &sc->chanctx[ARRAY_SIZE(sc->chanctx) - 1]; \
450 void ath_chanctx_init(struct ath_softc *sc);
451 void ath_chanctx_set_channel(struct ath_softc *sc, struct ath_chanctx *ctx,
465 void ath9k_init_channel_context(struct ath_softc *sc);
466 void ath9k_offchannel_init(struct ath_softc *sc);
[all …]
Dwow.c33 static u8 ath9k_wow_map_triggers(struct ath_softc *sc, in ath9k_wow_map_triggers() argument
50 static int ath9k_wow_add_disassoc_deauth_pattern(struct ath_softc *sc) in ath9k_wow_add_disassoc_deauth_pattern() argument
52 struct ath_hw *ah = sc->sc_ah; in ath9k_wow_add_disassoc_deauth_pattern()
138 static int ath9k_wow_add_pattern(struct ath_softc *sc, in ath9k_wow_add_pattern() argument
141 struct ath_hw *ah = sc->sc_ah; in ath9k_wow_add_pattern()
170 struct ath_softc *sc = hw->priv; in ath9k_suspend() local
171 struct ath_hw *ah = sc->sc_ah; in ath9k_suspend()
176 ath9k_deinit_channel_context(sc); in ath9k_suspend()
178 mutex_lock(&sc->mutex); in ath9k_suspend()
192 if (sc->cur_chan->nvifs > 1) { in ath9k_suspend()
[all …]
Dxmit.c50 static void ath_tx_send_normal(struct ath_softc *sc, struct ath_txq *txq,
52 static void ath_tx_complete(struct ath_softc *sc, struct sk_buff *skb,
55 static void ath_tx_complete_buf(struct ath_softc *sc, struct ath_buf *bf,
59 static void ath_tx_txqaddbuf(struct ath_softc *sc, struct ath_txq *txq,
61 static void ath_tx_rc_status(struct ath_softc *sc, struct ath_buf *bf,
64 static void ath_tx_update_baw(struct ath_softc *sc, struct ath_atx_tid *tid,
66 static struct ath_buf *ath_tx_setup_buffer(struct ath_softc *sc,
101 void ath_txq_unlock_complete(struct ath_softc *sc, struct ath_txq *txq) in ath_txq_unlock_complete() argument
104 struct ieee80211_hw *hw = sc->hw; in ath_txq_unlock_complete()
116 void ath_tx_queue_tid(struct ath_softc *sc, struct ath_atx_tid *tid) in ath_tx_queue_tid() argument
[all …]
Drng.c24 static int ath9k_rng_data_read(struct ath_softc *sc, u32 *buf, u32 buf_size) in ath9k_rng_data_read() argument
27 u32 v1, v2, rng_last = sc->rng_last; in ath9k_rng_data_read()
28 struct ath_hw *ah = sc->sc_ah; in ath9k_rng_data_read()
30 ath9k_ps_wakeup(sc); in ath9k_rng_data_read()
48 ath9k_ps_restore(sc); in ath9k_rng_data_read()
50 sc->rng_last = rng_last; in ath9k_rng_data_read()
71 struct ath_softc *sc = container_of(rng, struct ath_softc, rng_ops); in ath9k_rng_read() local
77 bytes_read = ath9k_rng_data_read(sc, buf, max >> 2); in ath9k_rng_read()
78 if ((max & 3UL) && ath9k_rng_data_read(sc, &word, 1)) { in ath9k_rng_read()
95 void ath9k_rng_start(struct ath_softc *sc) in ath9k_rng_start() argument
[all …]
/drivers/clk/qcom/
Dgdsc.c59 static int gdsc_check_status(struct gdsc *sc, enum gdsc_status status) in gdsc_check_status() argument
65 if (sc->flags & POLL_CFG_GDSCR) in gdsc_check_status()
66 reg = sc->gdscr + CFG_GDSCR_OFFSET; in gdsc_check_status()
67 else if (sc->gds_hw_ctrl) in gdsc_check_status()
68 reg = sc->gds_hw_ctrl; in gdsc_check_status()
70 reg = sc->gdscr; in gdsc_check_status()
72 ret = regmap_read(sc->regmap, reg, &val); in gdsc_check_status()
76 if (sc->flags & POLL_CFG_GDSCR) { in gdsc_check_status()
95 static int gdsc_hwctrl(struct gdsc *sc, bool en) in gdsc_hwctrl() argument
99 return regmap_update_bits(sc->regmap, sc->gdscr, HW_CONTROL_MASK, val); in gdsc_hwctrl()
[all …]
/drivers/hid/
Dhid-sony.c615 static void sony_set_leds(struct sony_sc *sc);
617 static inline void sony_schedule_work(struct sony_sc *sc, in sony_schedule_work() argument
624 spin_lock_irqsave(&sc->lock, flags); in sony_schedule_work()
625 if (!sc->defer_initialization && sc->state_worker_initialized) in sony_schedule_work()
626 schedule_work(&sc->state_worker); in sony_schedule_work()
627 spin_unlock_irqrestore(&sc->lock, flags); in sony_schedule_work()
630 if (sc->hotplug_worker_initialized) in sony_schedule_work()
631 schedule_work(&sc->hotplug_worker); in sony_schedule_work()
638 struct sony_sc *sc = urb->context; in ghl_magic_poke_cb() local
641 hid_err(sc->hdev, "URB transfer failed : %d", urb->status); in ghl_magic_poke_cb()
[all …]
/drivers/infiniband/hw/hfi1/
Dpio.c15 static void sc_wait_for_packet_egress(struct send_context *sc, int pause);
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()
538 sc_restart(sc); in sc_halted()
551 u32 sc_mtu_to_threshold(struct send_context *sc, u32 mtu, u32 hdrqentsize) in sc_mtu_to_threshold() argument
[all …]
/drivers/scsi/snic/
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 …]
/drivers/usb/atm/
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 …]
/drivers/firmware/arm_scmi/
Dscmi_power_control.c119 struct scmi_syspower_conf *sc = reboot_nb_to_sconf(nb); in scmi_reboot_notifier() local
121 mutex_lock(&sc->state_mtx); in scmi_reboot_notifier()
125 if (sc->required_transition == SCMI_SYSTEM_SHUTDOWN) in scmi_reboot_notifier()
126 sc->state = SCMI_SYSPOWER_REBOOTING; in scmi_reboot_notifier()
129 if (sc->required_transition == SCMI_SYSTEM_COLDRESET || in scmi_reboot_notifier()
130 sc->required_transition == SCMI_SYSTEM_WARMRESET) in scmi_reboot_notifier()
131 sc->state = SCMI_SYSPOWER_REBOOTING; in scmi_reboot_notifier()
137 if (sc->state == SCMI_SYSPOWER_REBOOTING) { in scmi_reboot_notifier()
138 dev_dbg(sc->dev, "Reboot in progress...cancel delayed work.\n"); in scmi_reboot_notifier()
139 cancel_delayed_work_sync(&sc->forceful_work); in scmi_reboot_notifier()
[all …]
/drivers/md/
Ddm-stripe.c53 struct stripe_c *sc = container_of(work, struct stripe_c, in trigger_event() local
55 dm_table_event(sc->ti->table); in trigger_event()
61 static int get_stripe(struct dm_target *ti, struct stripe_c *sc, in get_stripe() argument
72 &sc->stripe[stripe].dev); in get_stripe()
76 sc->stripe[stripe].physical_start = start; in get_stripe()
87 struct stripe_c *sc; in stripe_ctr() local
129 sc = kmalloc(struct_size(sc, stripe, stripes), GFP_KERNEL); in stripe_ctr()
130 if (!sc) { in stripe_ctr()
135 INIT_WORK(&sc->trigger_event, trigger_event); in stripe_ctr()
138 sc->ti = ti; in stripe_ctr()
[all …]
/drivers/scsi/fnic/
Dfnic_scsi.c96 struct scsi_cmnd *sc) in fnic_io_lock_hash() argument
98 u32 hash = scsi_cmd_to_rq(sc)->tag & (FNIC_IO_LOCKS - 1); in fnic_io_lock_hash()
115 struct scsi_cmnd *sc) in fnic_release_ioreq_buf() argument
121 scsi_dma_unmap(sc); in fnic_release_ioreq_buf()
308 struct scsi_cmnd *sc, in fnic_queue_wq_copy_desc() argument
312 struct fc_rport *rport = starget_to_rport(scsi_target(sc->device)); in fnic_queue_wq_copy_desc()
325 for_each_sg(scsi_sglist(sc), sg, sg_count, i) { in fnic_queue_wq_copy_desc()
343 sc->sense_buffer, in fnic_queue_wq_copy_desc()
354 int_to_scsilun(sc->device->lun, &fc_lun); in fnic_queue_wq_copy_desc()
371 if (sc->sc_data_direction == DMA_FROM_DEVICE) in fnic_queue_wq_copy_desc()
[all …]
/drivers/net/wireless/ath/ath11k/
Dhif.h12 u32 (*read32)(struct ath11k_base *sc, u32 address);
13 void (*write32)(struct ath11k_base *sc, u32 address, u32 data);
15 void (*irq_enable)(struct ath11k_base *sc);
16 void (*irq_disable)(struct ath11k_base *sc);
17 int (*start)(struct ath11k_base *sc);
18 void (*stop)(struct ath11k_base *sc);
19 int (*power_up)(struct ath11k_base *sc);
20 void (*power_down)(struct ath11k_base *sc);
23 int (*map_service_to_pipe)(struct ath11k_base *sc, u16 service_id,
47 static inline int ath11k_hif_start(struct ath11k_base *sc) in ath11k_hif_start() argument
[all …]
/drivers/net/ethernet/cavium/liquidio/
Docteon_nic.c34 struct octeon_soft_command *sc; in octeon_alloc_soft_command_resp() local
40 sc = (struct octeon_soft_command *) in octeon_alloc_soft_command_resp()
43 if (!sc) in octeon_alloc_soft_command_resp()
47 memcpy(&sc->cmd, cmd, sizeof(union octeon_instr_64B)); in octeon_alloc_soft_command_resp()
53 ih3 = (struct octeon_instr_ih3 *)&sc->cmd.cmd3.ih3; in octeon_alloc_soft_command_resp()
54 rdp = (struct octeon_instr_rdp *)&sc->cmd.cmd3.rdp; in octeon_alloc_soft_command_resp()
55 irh = (struct octeon_instr_irh *)&sc->cmd.cmd3.irh; in octeon_alloc_soft_command_resp()
59 ih2 = (struct octeon_instr_ih2 *)&sc->cmd.cmd2.ih2; in octeon_alloc_soft_command_resp()
60 rdp = (struct octeon_instr_rdp *)&sc->cmd.cmd2.rdp; in octeon_alloc_soft_command_resp()
61 irh = (struct octeon_instr_irh *)&sc->cmd.cmd2.irh; in octeon_alloc_soft_command_resp()
[all …]
/drivers/net/ethernet/broadcom/
Dsb1250-mac.c272 static int sbdma_add_rcvbuffer(struct sbmac_softc *sc, struct sbmacdma *d,
276 static void sbdma_fillring(struct sbmac_softc *sc, struct sbmacdma *d);
277 static int sbdma_rx_process(struct sbmac_softc *sc, struct sbmacdma *d,
279 static void sbdma_tx_process(struct sbmac_softc *sc, struct sbmacdma *d,
286 static void sbmac_promiscuous_mode(struct sbmac_softc *sc, int onoff);
290 static void sbmac_setmulti(struct sbmac_softc *sc);
423 struct sbmac_softc *sc = (struct sbmac_softc *)bus->priv; in sbmac_mii_read() local
424 void __iomem *sbm_mdio = sc->sbm_mdio; in sbmac_mii_read()
517 struct sbmac_softc *sc = (struct sbmac_softc *)bus->priv; in sbmac_mii_write() local
518 void __iomem *sbm_mdio = sc->sbm_mdio; in sbmac_mii_write()
[all …]
/drivers/media/pci/cobalt/
Dcobalt-alsa-main.c35 static void snd_cobalt_card_private_free(struct snd_card *sc) in snd_cobalt_card_private_free() argument
37 if (sc == NULL) in snd_cobalt_card_private_free()
39 snd_cobalt_card_free(sc->private_data); in snd_cobalt_card_private_free()
40 sc->private_data = NULL; in snd_cobalt_card_private_free()
41 sc->private_free = NULL; in snd_cobalt_card_private_free()
45 struct snd_card *sc, in snd_cobalt_card_create() argument
53 (*cobsc)->sc = sc; in snd_cobalt_card_create()
55 sc->private_data = *cobsc; in snd_cobalt_card_create()
56 sc->private_free = snd_cobalt_card_private_free; in snd_cobalt_card_create()
65 struct snd_card *sc = cobsc->sc; in snd_cobalt_card_set_names() local
[all …]

12345678910