Home
last modified time | relevance | path

Searched refs:sc (Results 1 – 200 of 309) sorted by relevance

12

/linux-4.1.27/drivers/net/wan/lmc/
Dlmc_media.c157 lmc_dummy_set_1 (lmc_softc_t * const sc, int a) in lmc_dummy_set_1() argument
162 lmc_dummy_set2_1 (lmc_softc_t * const sc, lmc_ctl_t * a) in lmc_dummy_set2_1() argument
171 lmc_hssi_init (lmc_softc_t * const sc) in lmc_hssi_init() argument
173 sc->ictl.cardtype = LMC_CTL_CARDTYPE_LMC5200; in lmc_hssi_init()
175 lmc_gpio_mkoutput (sc, LMC_GEP_HSSI_CLOCK); in lmc_hssi_init()
179 lmc_hssi_default (lmc_softc_t * const sc) in lmc_hssi_default() argument
181 sc->lmc_miireg16 = LMC_MII16_LED_ALL; in lmc_hssi_default()
183 sc->lmc_media->set_link_status (sc, LMC_LINK_DOWN); in lmc_hssi_default()
184 sc->lmc_media->set_clock_source (sc, LMC_CTL_CLOCK_SOURCE_EXT); in lmc_hssi_default()
185 sc->lmc_media->set_crc_length (sc, LMC_CTL_CRC_LENGTH_16); in lmc_hssi_default()
[all …]
Dlmc_main.c98 static void lmc_initcsrs(lmc_softc_t * const sc, lmc_csrptr_t csr_base, size_t csr_size);
103 static void lmc_reset(lmc_softc_t * const sc);
104 static void lmc_dec_reset(lmc_softc_t * const sc);
113 lmc_softc_t *sc = dev_to_sc(dev); in lmc_ioctl() local
132 if (copy_to_user(ifr->ifr_data, &sc->ictl, sizeof(lmc_ctl_t))) in lmc_ioctl()
154 spin_lock_irqsave(&sc->lmc_lock, flags); in lmc_ioctl()
155 sc->lmc_media->set_status (sc, &ctl); in lmc_ioctl()
157 if(ctl.crc_length != sc->ictl.crc_length) { in lmc_ioctl()
158 sc->lmc_media->set_crc_length(sc, ctl.crc_length); in lmc_ioctl()
159 if (sc->ictl.crc_length == LMC_CTL_CRC_LENGTH_16) in lmc_ioctl()
[all …]
Dlmc_proto.c50 void lmc_proto_attach(lmc_softc_t *sc) /*FOLD00*/ in lmc_proto_attach() argument
52 lmc_trace(sc->lmc_device, "lmc_proto_attach in"); in lmc_proto_attach()
53 if (sc->if_type == LMC_NET) { in lmc_proto_attach()
54 struct net_device *dev = sc->lmc_device; in lmc_proto_attach()
62 lmc_trace(sc->lmc_device, "lmc_proto_attach out"); in lmc_proto_attach()
65 int lmc_proto_ioctl(lmc_softc_t *sc, struct ifreq *ifr, int cmd) in lmc_proto_ioctl() argument
67 lmc_trace(sc->lmc_device, "lmc_proto_ioctl"); in lmc_proto_ioctl()
68 if (sc->if_type == LMC_PPP) in lmc_proto_ioctl()
69 return hdlc_ioctl(sc->lmc_device, ifr, cmd); in lmc_proto_ioctl()
73 int lmc_proto_open(lmc_softc_t *sc) in lmc_proto_open() argument
[all …]
Dlmc_proto.h6 void lmc_proto_attach(lmc_softc_t *sc);
7 int lmc_proto_ioctl(lmc_softc_t *sc, struct ifreq *ifr, int cmd);
8 int lmc_proto_open(lmc_softc_t *sc);
9 void lmc_proto_close(lmc_softc_t *sc);
10 __be16 lmc_proto_type(lmc_softc_t *sc, struct sk_buff *skb);
11 void lmc_proto_netif(lmc_softc_t *sc, struct sk_buff *skb);
Dlmc.h10 unsigned lmc_mii_readreg(lmc_softc_t * const sc, unsigned
12 void lmc_mii_writereg(lmc_softc_t * const sc, unsigned devaddr,
18 void lmc_gpio_mkinput(lmc_softc_t * const sc, u32 bits);
19 void lmc_gpio_mkoutput(lmc_softc_t * const sc, u32 bits);
Dlmc_var.h33 #define LMC_PRINTF_ARGS (sc->lmc_device->name)
44 #define LMC_CSR_READ(sc, csr) \ argument
45 inl((sc)->lmc_csrs.csr)
46 #define LMC_CSR_WRITE(sc, reg, val) \ argument
47 outl((val), (sc)->lmc_csrs.reg)
57 #define lmc_delay() inl(sc->lmc_csrs.csr_9)
60 #define LMC_MII_SYNC(sc) do {int n=32; while( n >= 0 ) { \ argument
61 LMC_CSR_WRITE((sc), csr_9, 0x20000); \
63 LMC_CSR_WRITE((sc), csr_9, 0x30000); \
/linux-4.1.27/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()
46 ath_update_survey_stats(sc); in ath_set_channel()
56 if (!sc->cur_chan->offchannel && sc->cur_survey != &sc->survey[pos]) { in ath_set_channel()
57 if (sc->cur_survey) in ath_set_channel()
58 sc->cur_survey->filled &= ~SURVEY_INFO_IN_USE; in ath_set_channel()
60 sc->cur_survey = &sc->survey[pos]; in ath_set_channel()
62 memset(sc->cur_survey, 0, sizeof(struct survey_info)); in ath_set_channel()
[all …]
Dmain.c57 static bool ath9k_has_pending_frames(struct ath_softc *sc, struct ath_txq *txq, in ath9k_has_pending_frames() argument
75 list = &sc->cur_chan->acq[txq->mac80211_qnum]; in ath9k_has_pending_frames()
84 static bool ath9k_setpower(struct ath_softc *sc, enum ath9k_power_mode mode) in ath9k_setpower() argument
89 spin_lock_irqsave(&sc->sc_pm_lock, flags); in ath9k_setpower()
90 ret = ath9k_hw_setpower(sc->sc_ah, mode); in ath9k_setpower()
91 spin_unlock_irqrestore(&sc->sc_pm_lock, flags); in ath9k_setpower()
98 struct ath_softc *sc = (struct ath_softc *) data; in ath_ps_full_sleep() local
99 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_ps_full_sleep()
106 ath9k_hw_setrxabort(sc->sc_ah, 1); in ath_ps_full_sleep()
107 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.c27 struct ath_softc *sc = container_of(led_cdev, struct ath_softc, led_cdev); in ath_led_brightness() local
30 if (sc->sc_ah->config.led_active_high) in ath_led_brightness()
33 ath9k_hw_set_gpio(sc->sc_ah, sc->sc_ah->led_pin, val); in ath_led_brightness()
36 void ath_deinit_leds(struct ath_softc *sc) in ath_deinit_leds() argument
38 if (!sc->led_registered) in ath_deinit_leds()
41 ath_led_brightness(&sc->led_cdev, LED_OFF); in ath_deinit_leds()
42 led_classdev_unregister(&sc->led_cdev); in ath_deinit_leds()
45 void ath_init_leds(struct ath_softc *sc) in ath_init_leds() argument
49 if (AR_SREV_9100(sc->sc_ah)) in ath_init_leds()
53 sc->led_cdev.default_trigger = in ath_init_leds()
[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 …]
Dinit.c93 static void ath9k_deinit_softc(struct ath_softc *sc);
120 struct ath_softc *sc = (struct ath_softc *) common->priv; in ath9k_iowrite32() local
124 spin_lock_irqsave(&sc->sc_serial_rw, flags); in ath9k_iowrite32()
125 iowrite32(val, sc->mem + reg_offset); in ath9k_iowrite32()
126 spin_unlock_irqrestore(&sc->sc_serial_rw, flags); in ath9k_iowrite32()
128 iowrite32(val, sc->mem + reg_offset); in ath9k_iowrite32()
135 struct ath_softc *sc = (struct ath_softc *) common->priv; in ath9k_ioread32() local
140 spin_lock_irqsave(&sc->sc_serial_rw, flags); in ath9k_ioread32()
141 val = ioread32(sc->mem + reg_offset); in ath9k_ioread32()
142 spin_unlock_irqrestore(&sc->sc_serial_rw, flags); in ath9k_ioread32()
[all …]
Dath9k.h74 int ath_descdma_setup(struct ath_softc *sc, struct ath_descdma *dd,
82 #define ATH_TXQ_SETUP(sc, i) ((sc)->tx.txqsetup & (1<<i)) argument
260 struct ath_softc *sc; member
429 for (ctx = &sc->chanctx[0]; \
430 ctx <= &sc->chanctx[ARRAY_SIZE(sc->chanctx) - 1]; \
433 void ath_chanctx_init(struct ath_softc *sc);
434 void ath_chanctx_set_channel(struct ath_softc *sc, struct ath_chanctx *ctx,
448 void ath9k_init_channel_context(struct ath_softc *sc);
449 void ath9k_offchannel_init(struct ath_softc *sc);
450 void ath9k_deinit_channel_context(struct ath_softc *sc);
[all …]
Dlink.c25 struct ath_softc *sc = container_of(work, struct ath_softc, in ath_tx_complete_poll_work() local
32 if (sc->tx99_state) { in ath_tx_complete_poll_work()
33 ath_dbg(ath9k_hw_common(sc->sc_ah), RESET, in ath_tx_complete_poll_work()
39 txq = sc->tx.txq_map[i]; in ath_tx_complete_poll_work()
41 ath_txq_lock(sc, txq); in ath_tx_complete_poll_work()
45 ath_txq_unlock(sc, txq); in ath_tx_complete_poll_work()
51 ath_txq_unlock(sc, txq); in ath_tx_complete_poll_work()
55 ath_dbg(ath9k_hw_common(sc->sc_ah), RESET, in ath_tx_complete_poll_work()
57 ath9k_queue_reset(sc, RESET_TYPE_TX_HANG); in ath_tx_complete_poll_work()
61 ieee80211_queue_delayed_work(sc->hw, &sc->tx_complete_work, in ath_tx_complete_poll_work()
[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 …]
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 …]
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,
54 static void ath_tx_complete_buf(struct ath_softc *sc, struct ath_buf *bf,
57 static void ath_tx_txqaddbuf(struct ath_softc *sc, struct ath_txq *txq,
59 static void ath_tx_rc_status(struct ath_softc *sc, struct ath_buf *bf,
62 static void ath_tx_update_baw(struct ath_softc *sc, struct ath_atx_tid *tid,
64 static struct ath_buf *ath_tx_setup_buffer(struct ath_softc *sc,
80 void ath_txq_lock(struct ath_softc *sc, struct ath_txq *txq) in ath_txq_lock() argument
86 void ath_txq_unlock(struct ath_softc *sc, struct ath_txq *txq) in ath_txq_unlock() argument
92 void ath_txq_unlock_complete(struct ath_softc *sc, struct ath_txq *txq) in ath_txq_unlock_complete() argument
[all …]
Dmci.c119 static void ath_mci_update_scheme(struct ath_softc *sc) in ath_mci_update_scheme() argument
121 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_mci_update_scheme()
122 struct ath_btcoex *btcoex = &sc->btcoex; in ath_mci_update_scheme()
124 struct ath9k_hw_mci *mci_hw = &sc->sc_ah->btcoex_hw.mci; in ath_mci_update_scheme()
160 btcoex->duty_cycle = AR_SREV_9565(sc->sc_ah) ? 40 : 35; in ath_mci_update_scheme()
186 if (IS_CHAN_2GHZ(sc->sc_ah->curchan)) { in ath_mci_update_scheme()
187 if (IS_CHAN_HT(sc->sc_ah->curchan)) in ath_mci_update_scheme()
193 ath9k_btcoex_timer_pause(sc); in ath_mci_update_scheme()
194 ath9k_hw_btcoex_disable(sc->sc_ah); in ath_mci_update_scheme()
196 if (IS_CHAN_5GHZ(sc->sc_ah->curchan)) in ath_mci_update_scheme()
[all …]
Ddfs.c51 ath9k_postprocess_radar_event(struct ath_softc *sc, in ath9k_postprocess_radar_event() argument
68 DFS_STAT_INC(sc, pri_phy_errors); in ath9k_postprocess_radar_event()
78 DFS_STAT_INC(sc, ext_phy_errors); in ath9k_postprocess_radar_event()
97 DFS_STAT_INC(sc, dc_phy_errors); in ath9k_postprocess_radar_event()
107 DFS_STAT_INC(sc, bwinfo_discards); in ath9k_postprocess_radar_event()
112 DFS_STAT_INC(sc, rssi_discards); in ath9k_postprocess_radar_event()
123 pe->width = dur_to_usecs(sc->sc_ah, dur); in ath9k_postprocess_radar_event()
126 DFS_STAT_INC(sc, pulses_detected); in ath9k_postprocess_radar_event()
131 ath9k_dfs_process_radar_pulse(struct ath_softc *sc, struct pulse_event *pe) in ath9k_dfs_process_radar_pulse() argument
133 struct dfs_pattern_detector *pd = sc->dfs_detector; in ath9k_dfs_process_radar_pulse()
[all …]
Ddfs_debug.c29 sc->debug.stats.dfs_stats.p);
37 struct ath_softc *sc = file->private_data; in read_file_dfs() local
38 struct ath9k_hw_version *hw_ver = &sc->sc_ah->hw_version; in read_file_dfs()
50 (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_DFS) ? in read_file_dfs()
53 if (!sc->dfs_detector) { in read_file_dfs()
59 dfs_pool_stats = sc->dfs_detector->get_stats(sc->dfs_detector); in read_file_dfs()
73 sc->dfs_detector->region); in read_file_dfs()
100 struct ath_softc *sc = file->private_data; in write_file_dfs() local
114 memset(&sc->debug.stats.dfs_stats, 0, in write_file_dfs()
115 sizeof(sc->debug.stats.dfs_stats)); in write_file_dfs()
[all …]
Dahb.c61 struct ath_softc *sc = (struct ath_softc *)common->priv; in ath_ahb_eeprom_read() local
62 struct platform_device *pdev = to_platform_device(sc->dev); in ath_ahb_eeprom_read()
86 struct ath_softc *sc; in ath_ahb_probe() local
130 sc = hw->priv; in ath_ahb_probe()
131 sc->hw = hw; in ath_ahb_probe()
132 sc->dev = &pdev->dev; in ath_ahb_probe()
133 sc->mem = mem; in ath_ahb_probe()
134 sc->irq = irq; in ath_ahb_probe()
136 ret = request_irq(irq, ath_isr, IRQF_SHARED, "ath9k", sc); in ath_ahb_probe()
142 ret = ath9k_init_device(id->driver_data, sc, &ath_ahb_bus_ops); in ath_ahb_probe()
[all …]
Ddebug.h28 #define TX_STAT_INC(q, c) sc->debug.stats.txstats[q].c++
29 #define RX_STAT_INC(c) (sc->debug.stats.rxstats.c++)
30 #define RESET_STAT_INC(sc, type) sc->debug.stats.reset[type]++ argument
31 #define ANT_STAT_INC(i, c) sc->debug.stats.ant_stats[i].c++
32 #define ANT_LNA_INC(i, c) sc->debug.stats.ant_stats[i].lna_recv_cnt[c]++;
36 #define RESET_STAT_INC(sc, type) do { } while (0) argument
195 #define PR_QNUM(_n) sc->tx.txq_map[_n]->axq_qnum
196 #define TXSTATS sc->debug.stats.txstats
250 void ath9k_deinit_debug(struct ath_softc *sc);
252 void ath_debug_stat_interrupt(struct ath_softc *sc, enum ath9k_int status);
[all …]
Dpci.c771 struct ath_softc *sc = (struct ath_softc *) common->priv; in ath_pci_read_cachesize() local
774 pci_read_config_byte(to_pci_dev(sc->dev), PCI_CACHE_LINE_SIZE, &u8tmp); in ath_pci_read_cachesize()
789 struct ath_softc *sc = (struct ath_softc *) common->priv; in ath_pci_eeprom_read() local
790 struct ath9k_platform_data *pdata = sc->dev->platform_data; in ath_pci_eeprom_read()
824 struct ath_softc *sc = (struct ath_softc *) common->priv; in ath_pci_aspm_init() local
825 struct ath_hw *ah = sc->sc_ah; in ath_pci_aspm_init()
826 struct pci_dev *pdev = to_pci_dev(sc->dev); in ath_pci_aspm_init()
888 struct ath_softc *sc; in ath_pci_probe() local
959 sc = hw->priv; in ath_pci_probe()
960 sc->hw = hw; in ath_pci_probe()
[all …]
Dmci.h154 int ath_mci_setup(struct ath_softc *sc);
155 void ath_mci_cleanup(struct ath_softc *sc);
156 void ath_mci_intr(struct ath_softc *sc);
157 void ath9k_mci_update_rssi(struct ath_softc *sc);
160 void ath_mci_enable(struct ath_softc *sc);
161 void ath9k_mci_update_wlan_channels(struct ath_softc *sc, bool allow_all);
162 void ath9k_mci_set_txpower(struct ath_softc *sc, bool setchannel,
165 static inline void ath_mci_enable(struct ath_softc *sc) in ath_mci_enable() argument
168 static inline void ath9k_mci_update_wlan_channels(struct ath_softc *sc, in ath9k_mci_update_wlan_channels() argument
172 static inline void ath9k_mci_set_txpower(struct ath_softc *sc, bool setchannel, in ath9k_mci_set_txpower() argument
Ddfs_debug.h58 #define DFS_STAT_INC(sc, c) (sc->debug.stats.dfs_stats.c++) argument
59 void ath9k_dfs_init_debug(struct ath_softc *sc);
65 #define DFS_STAT_INC(sc, c) do { } while (0) argument
66 static inline void ath9k_dfs_init_debug(struct ath_softc *sc) { } in ath9k_dfs_init_debug() argument
Ddebug_sta.c27 struct ath_softc *sc = an->sc; in read_file_node_aggr() local
57 ath_txq_lock(sc, txq); in read_file_node_aggr()
61 ath_txq_unlock(sc, txq); in read_file_node_aggr()
72 ath_txq_lock(sc, txq); in read_file_node_aggr()
85 ath_txq_unlock(sc, txq); in read_file_node_aggr()
105 void ath_debug_rate_stats(struct ath_softc *sc, in ath_debug_rate_stats() argument
110 struct ath_hw *ah = sc->sc_ah; in ath_debug_rate_stats()
121 sta = ieee80211_find_sta_by_ifaddr(sc->hw, hdr->addr2, NULL); in ath_debug_rate_stats()
186 struct ath_softc *sc = an->sc; in read_file_node_recv() local
187 struct ath_hw *ah = sc->sc_ah; in read_file_node_recv()
Ddfs.h37 void ath9k_dfs_process_phyerr(struct ath_softc *sc, void *data,
41 ath9k_dfs_process_phyerr(struct ath_softc *sc, void *data, in ath9k_dfs_process_phyerr() argument
Dantenna.c721 void ath_ant_comb_scan(struct ath_softc *sc, struct ath_rx_status *rs) in ath_ant_comb_scan() argument
724 struct ath_ant_comb *antcomb = &sc->ant_comb; in ath_ant_comb_scan()
781 ath9k_hw_antdiv_comb_conf_get(sc->sc_ah, &div_ant_conf); in ath_ant_comb_scan()
840 ath9k_hw_antdiv_comb_conf_set(sc->sc_ah, &div_ant_conf); in ath_ant_comb_scan()
841 ath9k_debug_stat_ant(sc, &div_ant_conf, main_rssi_avg, alt_rssi_avg); in ath_ant_comb_scan()
/linux-4.1.27/drivers/usb/atm/
Dueagle-atm.c296 #define IS_OPERATIONAL(sc) \ argument
297 ((UEA_CHIP_VERSION(sc) != EAGLE_IV) ? \
298 (GET_STATUS(sc->stats.phy.state) == 2) : \
299 (sc->stats.phy.state == 7))
590 #define uea_wait(sc, cond, timeo) \ argument
592 int _r = wait_event_interruptible_timeout(sc->sync_q, \
601 if (sc->usbatm->atm_dev) \
602 sc->usbatm->atm_dev->type = val; \
607 if (sc->usbatm->atm_dev) \
608 atm_dev_signal_change(sc->usbatm->atm_dev, val); \
[all …]
/linux-4.1.27/drivers/hid/
Dhid-sony.c891 struct sony_sc *sc = hid_get_drvdata(hdev); in sony_report_fixup() local
897 if ((sc->quirks & VAIO_RDESC_CONSTANT) && *rsize >= 56 && in sony_report_fixup()
914 if ((sc->quirks & DUALSHOCK4_CONTROLLER_USB) && *rsize == 467) { in sony_report_fixup()
918 } else if ((sc->quirks & DUALSHOCK4_CONTROLLER_BT) && *rsize == 357) { in sony_report_fixup()
924 if (sc->quirks & SIXAXIS_CONTROLLER) in sony_report_fixup()
927 if (sc->quirks & PS3REMOTE) in sony_report_fixup()
933 static void sixaxis_parse_report(struct sony_sc *sc, __u8 *rd, int size) in sixaxis_parse_report() argument
956 spin_lock_irqsave(&sc->lock, flags); in sixaxis_parse_report()
957 sc->cable_state = cable_state; in sixaxis_parse_report()
958 sc->battery_capacity = battery_capacity; in sixaxis_parse_report()
[all …]
/linux-4.1.27/drivers/md/
Ddm-stripe.c52 struct stripe_c *sc = container_of(work, struct stripe_c, in trigger_event() local
54 dm_table_event(sc->ti->table); in trigger_event()
73 static int get_stripe(struct dm_target *ti, struct stripe_c *sc, in get_stripe() argument
83 &sc->stripe[stripe].dev)) in get_stripe()
86 sc->stripe[stripe].physical_start = start; in get_stripe()
97 struct stripe_c *sc; in stripe_ctr() local
142 sc = alloc_context(stripes); in stripe_ctr()
143 if (!sc) { in stripe_ctr()
149 INIT_WORK(&sc->trigger_event, trigger_event); in stripe_ctr()
152 sc->ti = ti; in stripe_ctr()
[all …]
/linux-4.1.27/drivers/scsi/fnic/
Dfnic_scsi.c107 struct scsi_cmnd *sc) in fnic_io_lock_hash() argument
109 u32 hash = sc->request->tag & (FNIC_IO_LOCKS - 1); in fnic_io_lock_hash()
126 struct scsi_cmnd *sc) in fnic_release_ioreq_buf() argument
132 scsi_dma_unmap(sc); in fnic_release_ioreq_buf()
320 struct scsi_cmnd *sc, in fnic_queue_wq_copy_desc() argument
324 struct fc_rport *rport = starget_to_rport(scsi_target(sc->device)); in fnic_queue_wq_copy_desc()
337 for_each_sg(scsi_sglist(sc), sg, sg_count, i) { in fnic_queue_wq_copy_desc()
352 sc->sense_buffer, in fnic_queue_wq_copy_desc()
356 int_to_scsilun(sc->device->lun, &fc_lun); in fnic_queue_wq_copy_desc()
373 if (sc->sc_data_direction == DMA_FROM_DEVICE) in fnic_queue_wq_copy_desc()
[all …]
/linux-4.1.27/arch/ia64/hp/sim/
Dsimscsi.c68 struct scsi_cmnd *sc; member
101 struct scsi_cmnd *sc; in simscsi_interrupt() local
103 while ((sc = queue[rd].sc) != NULL) { in simscsi_interrupt()
105 queue[rd].sc = NULL; in simscsi_interrupt()
107 printk("simscsi_interrupt: done with %ld\n", sc->serial_number); in simscsi_interrupt()
108 (*sc->scsi_done)(sc); in simscsi_interrupt()
124 simscsi_sg_readwrite (struct scsi_cmnd *sc, int mode, unsigned long offset) in simscsi_sg_readwrite() argument
131 stat.fd = desc[sc->device->id]; in simscsi_sg_readwrite()
133 scsi_for_each_sg(sc, sl, scsi_sg_count(sc), i) { in simscsi_sg_readwrite()
139 scsi_sg_count(sc) - i, sl->length); in simscsi_sg_readwrite()
[all …]
/linux-4.1.27/drivers/dma/sh/
Dsudmac.c54 #define to_sdev(sc) container_of(sc->shdma_chan.dma_chan.device, \ argument
82 static void sudmac_writel(struct sudmac_chan *sc, u32 data, u32 reg) in sudmac_writel() argument
84 iowrite32(data, sc->base + reg); in sudmac_writel()
87 static u32 sudmac_readl(struct sudmac_chan *sc, u32 reg) in sudmac_readl() argument
89 return ioread32(sc->base + reg); in sudmac_readl()
92 static bool sudmac_is_busy(struct sudmac_chan *sc) in sudmac_is_busy() argument
94 u32 den = sudmac_readl(sc, SUDMAC_CH0DEN + sc->offset); in sudmac_is_busy()
102 static void sudmac_set_reg(struct sudmac_chan *sc, struct sudmac_regs *hw, in sudmac_set_reg() argument
105 sudmac_writel(sc, sc->cfg, SUDMAC_CH0CFG + sc->offset); in sudmac_set_reg()
106 sudmac_writel(sc, hw->base_addr, SUDMAC_CH0BA + sc->offset); in sudmac_set_reg()
[all …]
Drcar-hpbdma.c125 #define to_dev(sc) container_of(sc->shdma_chan.dma_chan.device, \ argument
461 const struct hpb_dmae_slave_config *sc = in hpb_dmae_set_slave() local
464 if (!sc) in hpb_dmae_set_slave()
468 chan->cfg = sc; in hpb_dmae_set_slave()
469 chan->slave_addr = slave_addr ? : sc->addr; in hpb_dmae_set_slave()
470 return hpb_dmae_alloc_chan_resources(chan, sc); in hpb_dmae_set_slave()
/linux-4.1.27/fs/ocfs2/cluster/
Dtcp.c77 #define SC_NODEF_ARGS(sc) sc->sc_node->nd_name, sc->sc_node->nd_num, \ argument
78 &sc->sc_node->nd_ipv4_address, \
79 ntohs(sc->sc_node->nd_ipv4_port)
96 #define sclog(sc, fmt, args...) do { \ argument
97 typeof(sc) __sc = (sc); \
143 static void o2net_sc_postpone_idle(struct o2net_sock_container *sc);
144 static void o2net_sc_reset_idle_timer(struct o2net_sock_container *sc);
173 struct o2net_sock_container *sc) in o2net_set_nst_sock_container() argument
175 nst->st_sc = sc; in o2net_set_nst_sock_container()
184 static inline void o2net_set_sock_timer(struct o2net_sock_container *sc) in o2net_set_sock_timer() argument
[all …]
Dnetdebug.c213 void o2net_debug_add_sc(struct o2net_sock_container *sc) in o2net_debug_add_sc() argument
216 list_add(&sc->sc_net_debug_item, &sock_containers); in o2net_debug_add_sc()
220 void o2net_debug_del_sc(struct o2net_sock_container *sc) in o2net_debug_del_sc() argument
223 list_del_init(&sc->sc_net_debug_item); in o2net_debug_del_sc()
235 struct o2net_sock_container *sc, *ret = NULL; in next_sc() local
239 list_for_each_entry(sc, &sc_start->sc_net_debug_item, in next_sc()
242 if (&sc->sc_net_debug_item == &sock_containers) in next_sc()
246 if (sc->sc_page != NULL) { in next_sc()
247 ret = sc; in next_sc()
258 struct o2net_sock_container *sc, *dummy_sc = sd->dbg_sock; in sc_seq_start() local
[all …]
Dtcp.h131 void o2net_debug_add_sc(struct o2net_sock_container *sc);
132 void o2net_debug_del_sc(struct o2net_sock_container *sc);
147 static inline void o2net_debug_add_sc(struct o2net_sock_container *sc) in o2net_debug_add_sc() argument
150 static inline void o2net_debug_del_sc(struct o2net_sock_container *sc) in o2net_debug_del_sc() argument
/linux-4.1.27/arch/alpha/kernel/
Dsignal.c125 struct sigcontext sc; member
147 restore_sigcontext(struct sigcontext __user *sc, struct pt_regs *regs) in restore_sigcontext() argument
151 long i, err = __get_user(regs->pc, &sc->sc_pc); in restore_sigcontext()
157 err |= __get_user(regs->r0, sc->sc_regs+0); in restore_sigcontext()
158 err |= __get_user(regs->r1, sc->sc_regs+1); in restore_sigcontext()
159 err |= __get_user(regs->r2, sc->sc_regs+2); in restore_sigcontext()
160 err |= __get_user(regs->r3, sc->sc_regs+3); in restore_sigcontext()
161 err |= __get_user(regs->r4, sc->sc_regs+4); in restore_sigcontext()
162 err |= __get_user(regs->r5, sc->sc_regs+5); in restore_sigcontext()
163 err |= __get_user(regs->r6, sc->sc_regs+6); in restore_sigcontext()
[all …]
/linux-4.1.27/drivers/net/ethernet/broadcom/
Dsb1250-mac.c286 static int sbdma_add_rcvbuffer(struct sbmac_softc *sc, struct sbmacdma *d,
290 static void sbdma_fillring(struct sbmac_softc *sc, struct sbmacdma *d);
291 static int sbdma_rx_process(struct sbmac_softc *sc, struct sbmacdma *d,
293 static void sbdma_tx_process(struct sbmac_softc *sc, struct sbmacdma *d,
300 static void sbmac_promiscuous_mode(struct sbmac_softc *sc, int onoff);
304 static void sbmac_setmulti(struct sbmac_softc *sc);
437 struct sbmac_softc *sc = (struct sbmac_softc *)bus->priv; in sbmac_mii_read() local
438 void __iomem *sbm_mdio = sc->sbm_mdio; in sbmac_mii_read()
531 struct sbmac_softc *sc = (struct sbmac_softc *)bus->priv; in sbmac_mii_write() local
532 void __iomem *sbm_mdio = sc->sbm_mdio; in sbmac_mii_write()
[all …]
/linux-4.1.27/arch/ia64/kernel/
Dsignal.c43 restore_sigcontext (struct sigcontext __user *sc, struct sigscratch *scr) in restore_sigcontext() argument
52 err = __get_user(flags, &sc->sc_flags); in restore_sigcontext()
53 err |= __get_user(nat, &sc->sc_nat); in restore_sigcontext()
54 err |= __get_user(ip, &sc->sc_ip); /* instruction pointer */ in restore_sigcontext()
55 err |= __get_user(cfm, &sc->sc_cfm); in restore_sigcontext()
56 err |= __get_user(um, &sc->sc_um); /* user mask */ in restore_sigcontext()
57 err |= __get_user(rsc, &sc->sc_ar_rsc); in restore_sigcontext()
58 err |= __get_user(scr->pt.ar_unat, &sc->sc_ar_unat); in restore_sigcontext()
59 err |= __get_user(scr->pt.ar_fpsr, &sc->sc_ar_fpsr); in restore_sigcontext()
60 err |= __get_user(scr->pt.ar_pfs, &sc->sc_ar_pfs); in restore_sigcontext()
[all …]
Dsigframe.h22 struct sigcontext sc; member
/linux-4.1.27/arch/mips/kernel/
Dsignal.c44 static int (*save_fp_context)(struct sigcontext __user *sc);
45 static int (*restore_fp_context)(struct sigcontext __user *sc);
47 extern asmlinkage int _save_fp_context(struct sigcontext __user *sc);
48 extern asmlinkage int _restore_fp_context(struct sigcontext __user *sc);
68 static int copy_fp_to_sigcontext(struct sigcontext __user *sc) in copy_fp_to_sigcontext() argument
76 &sc->sc_fpregs[i]); in copy_fp_to_sigcontext()
78 err |= __put_user(current->thread.fpu.fcr31, &sc->sc_fpc_csr); in copy_fp_to_sigcontext()
83 static int copy_fp_from_sigcontext(struct sigcontext __user *sc) in copy_fp_from_sigcontext() argument
90 err |= __get_user(fpr_val, &sc->sc_fpregs[i]); in copy_fp_from_sigcontext()
93 err |= __get_user(current->thread.fpu.fcr31, &sc->sc_fpc_csr); in copy_fp_from_sigcontext()
[all …]
Dsignal32.c39 static int (*save_fp_context32)(struct sigcontext32 __user *sc);
40 static int (*restore_fp_context32)(struct sigcontext32 __user *sc);
42 extern asmlinkage int _save_fp_context32(struct sigcontext32 __user *sc);
43 extern asmlinkage int _restore_fp_context32(struct sigcontext32 __user *sc);
81 static int copy_fp_to_sigcontext32(struct sigcontext32 __user *sc) in copy_fp_to_sigcontext32() argument
90 &sc->sc_fpregs[i]); in copy_fp_to_sigcontext32()
92 err |= __put_user(current->thread.fpu.fcr31, &sc->sc_fpc_csr); in copy_fp_to_sigcontext32()
97 static int copy_fp_from_sigcontext32(struct sigcontext32 __user *sc) in copy_fp_from_sigcontext32() argument
105 err |= __get_user(fpr_val, &sc->sc_fpregs[i]); in copy_fp_from_sigcontext32()
108 err |= __get_user(current->thread.fpu.fcr31, &sc->sc_fpc_csr); in copy_fp_from_sigcontext32()
[all …]
/linux-4.1.27/drivers/media/pci/cx18/
Dcx18-alsa-main.c89 static void snd_cx18_card_private_free(struct snd_card *sc) in snd_cx18_card_private_free() argument
91 if (sc == NULL) in snd_cx18_card_private_free()
93 snd_cx18_card_free(sc->private_data); in snd_cx18_card_private_free()
94 sc->private_data = NULL; in snd_cx18_card_private_free()
95 sc->private_free = NULL; in snd_cx18_card_private_free()
99 struct snd_card *sc, in snd_cx18_card_create() argument
107 (*cxsc)->sc = sc; in snd_cx18_card_create()
109 sc->private_data = *cxsc; in snd_cx18_card_create()
110 sc->private_free = snd_cx18_card_private_free; in snd_cx18_card_create()
118 struct snd_card *sc = cxsc->sc; in snd_cx18_card_set_names() local
[all …]
Dcx18-alsa-mixer.c164 struct snd_card *sc = cxsc->sc; in snd_cx18_mixer_create() local
167 strlcpy(sc->mixername, "CX23418 Mixer", sizeof(sc->mixername)); in snd_cx18_mixer_create()
169 ret = snd_ctl_add(sc, snd_ctl_new1(snd_cx18_mixer_tv_vol, cxsc)); in snd_cx18_mixer_create()
Dcx18-av-core.c299 int hblank, hactive, burst, vblank, vactive, sc; in cx18_av_std_setup() local
377 sc = 688700; in cx18_av_std_setup()
382 sc = 556422; in cx18_av_std_setup()
388 sc = 672314; in cx18_av_std_setup()
438 sc = 688700; in cx18_av_std_setup()
444 sc = 555421; in cx18_av_std_setup()
449 sc = 556032; in cx18_av_std_setup()
475 tmp = 28636360 * (u64) sc; in cx18_av_std_setup()
488 comb, sc); in cx18_av_std_setup()
518 cx18_av_write(cx, 0x47c, sc); in cx18_av_std_setup()
[all …]
Dcx18-alsa-pcm.c329 struct snd_card *sc = cxsc->sc; in snd_cx18_pcm_create() local
334 ret = snd_pcm_new(sc, "CX23418 PCM", in snd_cx18_pcm_create()
Dcx18-alsa.h26 struct snd_card *sc; member
/linux-4.1.27/drivers/media/pci/ivtv/
Divtv-alsa-main.c89 static void snd_ivtv_card_private_free(struct snd_card *sc) in snd_ivtv_card_private_free() argument
91 if (sc == NULL) in snd_ivtv_card_private_free()
93 snd_ivtv_card_free(sc->private_data); in snd_ivtv_card_private_free()
94 sc->private_data = NULL; in snd_ivtv_card_private_free()
95 sc->private_free = NULL; in snd_ivtv_card_private_free()
99 struct snd_card *sc, in snd_ivtv_card_create() argument
107 (*itvsc)->sc = sc; in snd_ivtv_card_create()
109 sc->private_data = *itvsc; in snd_ivtv_card_create()
110 sc->private_free = snd_ivtv_card_private_free; in snd_ivtv_card_create()
118 struct snd_card *sc = itvsc->sc; in snd_ivtv_card_set_names() local
[all …]
Divtv-alsa-mixer.c164 struct snd_card *sc = itvsc->sc; in snd_ivtv_mixer_create() local
167 strlcpy(sc->mixername, "CX2341[56] Mixer", sizeof(sc->mixername)); in snd_ivtv_mixer_create()
169 ret = snd_ctl_add(sc, snd_ctl_new1(snd_ivtv_mixer_tv_vol, itvsc)); in snd_ivtv_mixer_create()
Divtv-alsa-pcm.c336 struct snd_card *sc = itvsc->sc; in snd_ivtv_pcm_create() local
341 ret = snd_pcm_new(sc, "CX2341[56] PCM", in snd_ivtv_pcm_create()
Divtv-alsa.h27 struct snd_card *sc; member
/linux-4.1.27/mm/
Dvmscan.c153 static bool global_reclaim(struct scan_control *sc) in global_reclaim() argument
155 return !sc->target_mem_cgroup; in global_reclaim()
158 static bool global_reclaim(struct scan_control *sc) in global_reclaim() argument
401 struct shrink_control sc = { in shrink_slab() local
411 sc.nid = 0; in shrink_slab()
413 freed += do_shrink_slab(&sc, shrinker, nr_scanned, nr_eligible); in shrink_slab()
456 struct scan_control *sc) in may_write_to_queue() argument
505 struct scan_control *sc) in pageout() argument
541 if (!may_write_to_queue(inode_to_bdi(mapping->host), sc)) in pageout()
757 struct scan_control *sc) in page_check_references() argument
[all …]
Dswap_cgroup.c67 struct swap_cgroup *sc; in lookup_swap_cgroup() local
74 sc = page_address(mappage); in lookup_swap_cgroup()
75 return sc + offset % SC_PER_PAGE; in lookup_swap_cgroup()
91 struct swap_cgroup *sc; in swap_cgroup_cmpxchg() local
95 sc = lookup_swap_cgroup(ent, &ctrl); in swap_cgroup_cmpxchg()
98 retval = sc->id; in swap_cgroup_cmpxchg()
100 sc->id = new; in swap_cgroup_cmpxchg()
118 struct swap_cgroup *sc; in swap_cgroup_record() local
122 sc = lookup_swap_cgroup(ent, &ctrl); in swap_cgroup_record()
125 old = sc->id; in swap_cgroup_record()
[all …]
Dworkingset.c270 struct shrink_control *sc) in count_shadow_nodes() argument
278 shadow_nodes = list_lru_shrink_count(&workingset_shadow_nodes, sc); in count_shadow_nodes()
281 pages = node_present_pages(sc->nid); in count_shadow_nodes()
374 struct shrink_control *sc) in scan_shadow_nodes() argument
380 ret = list_lru_shrink_walk(&workingset_shadow_nodes, sc, in scan_shadow_nodes()
Dmemory-failure.c811 #define sc (1UL << PG_swapcache) macro
849 { sc|dirty, sc|dirty, MSG_DIRTY_SWAPCACHE, me_swapcache_dirty },
850 { sc|dirty, sc, MSG_CLEAN_SWAPCACHE, me_swapcache_clean },
868 #undef sc
/linux-4.1.27/arch/hexagon/kernel/
Dsignal.c47 static int setup_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc) in setup_sigcontext() argument
52 err |= copy_to_user(&sc->sc_regs.r0, &regs->r00, in setup_sigcontext()
55 err |= __put_user(regs->sa0, &sc->sc_regs.sa0); in setup_sigcontext()
56 err |= __put_user(regs->lc0, &sc->sc_regs.lc0); in setup_sigcontext()
57 err |= __put_user(regs->sa1, &sc->sc_regs.sa1); in setup_sigcontext()
58 err |= __put_user(regs->lc1, &sc->sc_regs.lc1); in setup_sigcontext()
59 err |= __put_user(regs->m0, &sc->sc_regs.m0); in setup_sigcontext()
60 err |= __put_user(regs->m1, &sc->sc_regs.m1); in setup_sigcontext()
61 err |= __put_user(regs->usr, &sc->sc_regs.usr); in setup_sigcontext()
62 err |= __put_user(regs->preds, &sc->sc_regs.p3_0); in setup_sigcontext()
[all …]
/linux-4.1.27/drivers/scsi/
Dvirtio_scsi.c39 struct scsi_cmnd *sc; member
129 static void virtscsi_compute_resid(struct scsi_cmnd *sc, u32 resid) in virtscsi_compute_resid() argument
134 if (!scsi_bidi_cmnd(sc)) { in virtscsi_compute_resid()
135 scsi_set_resid(sc, resid); in virtscsi_compute_resid()
139 scsi_in(sc)->resid = min(resid, scsi_in(sc)->length); in virtscsi_compute_resid()
140 scsi_out(sc)->resid = resid - scsi_in(sc)->resid; in virtscsi_compute_resid()
151 struct scsi_cmnd *sc = cmd->sc; in virtscsi_complete_cmd() local
154 scsi_target(sc->device)->hostdata; in virtscsi_complete_cmd()
156 dev_dbg(&sc->device->sdev_gendev, in virtscsi_complete_cmd()
158 sc, resp->response, resp->status, resp->sense_len); in virtscsi_complete_cmd()
[all …]
Dlibiscsi.c185 struct scsi_cmnd *cmd = task->sc; in iscsi_prep_ecdb_ahs()
222 struct scsi_cmnd *sc = task->sc; in iscsi_prep_bidi_ahs() local
236 rlen_ahdr->read_length = cpu_to_be32(scsi_in(sc)->length); in iscsi_prep_bidi_ahs()
277 if (hdr_lun != task->sc->device->lun) in iscsi_check_tmf_restrictions()
339 struct scsi_cmnd *sc = task->sc; in iscsi_prep_scsi_cmd_pdu() local
369 int_to_scsilun(sc->device->lun, &hdr->lun); in iscsi_prep_scsi_cmd_pdu()
372 cmd_len = sc->cmd_len; in iscsi_prep_scsi_cmd_pdu()
381 memcpy(hdr->cdb, sc->cmnd, cmd_len); in iscsi_prep_scsi_cmd_pdu()
384 if (scsi_bidi_cmnd(sc)) { in iscsi_prep_scsi_cmd_pdu()
391 if (scsi_get_prot_op(sc) != SCSI_PROT_NORMAL) in iscsi_prep_scsi_cmd_pdu()
[all …]
Dxen-scsifront.c96 struct scsi_cmnd *sc; member
209 if (s->sc->sc_data_direction == DMA_NONE) in scsifront_gnttab_done()
227 struct scsi_cmnd *sc; in scsifront_cdb_cmd_done() local
232 sc = info->shadow[id]->sc; in scsifront_cdb_cmd_done()
234 BUG_ON(sc == NULL); in scsifront_cdb_cmd_done()
239 sc->result = ring_rsp->rslt; in scsifront_cdb_cmd_done()
240 scsi_set_resid(sc, ring_rsp->residual_len); in scsifront_cdb_cmd_done()
246 memcpy(sc->sense_buffer, ring_rsp->sense_buffer, sense_len); in scsifront_cdb_cmd_done()
248 sc->scsi_done(sc); in scsifront_cdb_cmd_done()
368 struct scsi_cmnd *sc, in map_data_for_request() argument
[all …]
Dlibiscsi_tcp.c457 if (!task->sc) in iscsi_tcp_cleanup_task()
489 unsigned total_in_length = scsi_in(task->sc)->length; in iscsi_tcp_data_in()
554 if (!task->sc || session->state != ISCSI_STATE_LOGGED_IN) { in iscsi_tcp_r2t_rsp()
574 if (data_offset + data_length > scsi_out(task->sc)->length) { in iscsi_tcp_r2t_rsp()
578 data_offset, scsi_out(task->sc)->length); in iscsi_tcp_r2t_rsp()
690 struct scsi_data_buffer *sdb = scsi_in(task->sc); in iscsi_tcp_hdr_dissect()
737 else if (task->sc->sc_data_direction == DMA_TO_DEVICE) { in iscsi_tcp_hdr_dissect()
961 struct scsi_cmnd *sc = task->sc; in iscsi_tcp_task_init() local
964 if (!sc) { in iscsi_tcp_task_init()
1047 if (!task->sc) { in iscsi_tcp_task_xmit()
[all …]
/linux-4.1.27/drivers/media/platform/ti-vpe/
Dsc.c23 void sc_dump_regs(struct sc_data *sc) in sc_dump_regs() argument
25 struct device *dev = &sc->pdev->dev; in sc_dump_regs()
28 ioread32(sc->base + CFG_##r)) in sc_dump_regs()
60 void sc_set_hs_coeffs(struct sc_data *sc, void *addr, unsigned int src_w, in sc_set_hs_coeffs() argument
87 if (idx == sc->hs_index) in sc_set_hs_coeffs()
104 sc->hs_index = idx; in sc_set_hs_coeffs()
106 sc->load_coeff_h = true; in sc_set_hs_coeffs()
113 void sc_set_vs_coeffs(struct sc_data *sc, void *addr, unsigned int src_h, in sc_set_vs_coeffs() argument
133 if (idx == sc->vs_index) in sc_set_vs_coeffs()
149 sc->vs_index = idx; in sc_set_vs_coeffs()
[all …]
Dsc.h198 void sc_dump_regs(struct sc_data *sc);
199 void sc_set_hs_coeffs(struct sc_data *sc, void *addr, unsigned int src_w,
201 void sc_set_vs_coeffs(struct sc_data *sc, void *addr, unsigned int src_h,
203 void sc_config_scaler(struct sc_data *sc, u32 *sc_reg0, u32 *sc_reg8,
Dvpe.c367 struct sc_data *sc; /* scaler data handle */ member
510 GET_OFFSET_TOP(ctx, ctx->dev->sc, CFG_SC0)); in init_adb_hdrs()
512 GET_OFFSET_TOP(ctx, ctx->dev->sc, CFG_SC8)); in init_adb_hdrs()
514 GET_OFFSET_TOP(ctx, ctx->dev->sc, CFG_SC17)); in init_adb_hdrs()
857 sc_set_hs_coeffs(ctx->dev->sc, ctx->sc_coeff_h.addr, src_w, dst_w); in set_srcdst_params()
858 sc_set_vs_coeffs(ctx->dev->sc, ctx->sc_coeff_v.addr, src_h, dst_h); in set_srcdst_params()
860 sc_config_scaler(ctx->dev->sc, &mmr_adb->sc_regs0[0], in set_srcdst_params()
983 sc_dump_regs(dev->sc); in vpe_dump_regs()
1099 struct sc_data *sc = ctx->dev->sc; in device_run() local
1122 if (sc->loaded_coeff_h != ctx->sc_coeff_h.dma_addr || in device_run()
[all …]
DMakefile3 ti-vpe-y := vpe.o sc.o csc.o vpdma.o
/linux-4.1.27/arch/m68k/kernel/
Dsignal.c199 static inline void save_a5_state(struct sigcontext *sc, struct pt_regs *regs) in save_a5_state() argument
224 static inline void save_a5_state(struct sigcontext *sc, struct pt_regs *regs) in save_a5_state() argument
226 sc->sc_a5 = ((struct switch_stack *)regs - 1)->a5; in save_a5_state()
250 struct sigcontext sc; member
273 static inline int restore_fpu_state(struct sigcontext *sc) in restore_fpu_state() argument
279 memcpy(current->thread.fpcntl, sc->sc_fpcntl, 12); in restore_fpu_state()
280 memcpy(current->thread.fp, sc->sc_fpregs, 24); in restore_fpu_state()
284 if (CPU_IS_060 ? sc->sc_fpstate[2] : sc->sc_fpstate[0]) { in restore_fpu_state()
287 (sc->sc_fpstate[0] != fpu_version)) in restore_fpu_state()
291 !(sc->sc_fpstate[1] == 0x18 || sc->sc_fpstate[1] == 0xb4)) in restore_fpu_state()
[all …]
/linux-4.1.27/arch/parisc/kernel/
Dsignal32.c63 restore_sigcontext32(struct compat_sigcontext __user *sc, struct compat_regfile __user * rf, in restore_sigcontext32() argument
74 DBG(2,"restore_sigcontext32: sc = 0x%p, rf = 0x%p, regs = 0x%p\n", sc, rf, regs); in restore_sigcontext32()
75 DBG(2,"restore_sigcontext32: compat_sigcontext is %#lx bytes\n", sizeof(*sc)); in restore_sigcontext32()
77 err |= __get_user(compat_reg,&sc->sc_gr[regn]); in restore_sigcontext32()
85 DBG(2,"restore_sigcontext32: sc->sc_fr = 0x%p (%#lx)\n",sc->sc_fr, sizeof(sc->sc_fr)); in restore_sigcontext32()
87 err |= __copy_from_user(regs->fr, sc->sc_fr, sizeof(regs->fr)); in restore_sigcontext32()
92 err |= __get_user(compat_reg, &sc->sc_iaoq[0]); in restore_sigcontext32()
98 &sc->sc_iaoq[0], compat_reg); in restore_sigcontext32()
100 err |= __get_user(compat_reg, &sc->sc_iaoq[1]); in restore_sigcontext32()
106 &sc->sc_iaoq[1],compat_reg); in restore_sigcontext32()
[all …]
Dsignal.c71 restore_sigcontext(struct sigcontext __user *sc, struct pt_regs *regs) in restore_sigcontext() argument
75 err |= __copy_from_user(regs->gr, sc->sc_gr, sizeof(regs->gr)); in restore_sigcontext()
76 err |= __copy_from_user(regs->fr, sc->sc_fr, sizeof(regs->fr)); in restore_sigcontext()
77 err |= __copy_from_user(regs->iaoq, sc->sc_iaoq, sizeof(regs->iaoq)); in restore_sigcontext()
78 err |= __copy_from_user(regs->iasq, sc->sc_iasq, sizeof(regs->iasq)); in restore_sigcontext()
79 err |= __get_user(regs->sar, &sc->sc_sar); in restore_sigcontext()
195 setup_sigcontext(struct sigcontext __user *sc, struct pt_regs *regs, int in_syscall) in setup_sigcontext() argument
201 if (on_sig_stack((unsigned long) sc)) in setup_sigcontext()
206 err |= __put_user(regs->gr[31], &sc->sc_iaoq[0]); in setup_sigcontext()
207 err |= __put_user(regs->gr[31]+4, &sc->sc_iaoq[1]); in setup_sigcontext()
[all …]
Dsignal32.h84 long restore_sigcontext32(struct compat_sigcontext __user *sc,
87 long setup_sigcontext32(struct compat_sigcontext __user *sc,
/linux-4.1.27/arch/powerpc/kernel/
Dsignal_64.c80 static long setup_sigcontext(struct sigcontext __user *sc, struct pt_regs *regs, in setup_sigcontext() argument
93 …elf_vrreg_t __user *v_regs = (elf_vrreg_t __user *)(((unsigned long)sc->vmx_reserve + 15) & ~0xful… in setup_sigcontext()
99 err |= __put_user(v_regs, &sc->v_regs); in setup_sigcontext()
119 err |= __put_user(0, &sc->v_regs); in setup_sigcontext()
123 err |= copy_fpr_to_user(&sc->fp_regs, current); in setup_sigcontext()
146 err |= __put_user(&sc->gp_regs, &sc->regs); in setup_sigcontext()
148 err |= __copy_to_user(&sc->gp_regs, regs, GP_REGS_SIZE); in setup_sigcontext()
149 err |= __put_user(msr, &sc->gp_regs[PT_MSR]); in setup_sigcontext()
150 err |= __put_user(signr, &sc->signal); in setup_sigcontext()
151 err |= __put_user(handler, &sc->handler); in setup_sigcontext()
[all …]
Dsignal_32.c1414 struct sigcontext __user *sc; in handle_signal32() local
1425 sc = (struct sigcontext __user *) &frame->sctx; in handle_signal32()
1430 if (__put_user(to_user_ptr(ksig->ka.sa.sa_handler), &sc->handler) in handle_signal32()
1431 || __put_user(oldset->sig[0], &sc->oldmask) in handle_signal32()
1433 || __put_user((oldset->sig[0] >> 32), &sc->_unused[3]) in handle_signal32()
1435 || __put_user(oldset->sig[1], &sc->_unused[3]) in handle_signal32()
1437 || __put_user(to_user_ptr(&frame->mctx), &sc->regs) in handle_signal32()
1438 || __put_user(ksig->sig, &sc->signal)) in handle_signal32()
1474 regs->gpr[4] = (unsigned long) sc; in handle_signal32()
1498 struct sigcontext __user *sc; in sys_sigreturn() local
[all …]
/linux-4.1.27/drivers/target/loopback/
Dtcm_loop.c117 struct scsi_cmnd *sc = tl_cmd->sc; in tcm_loop_submission_work() local
125 tl_hba = *(struct tcm_loop_hba **)shost_priv(sc->device->host); in tcm_loop_submission_work()
126 tl_tpg = &tl_hba->tl_hba_tpgs[sc->device->id]; in tcm_loop_submission_work()
133 set_host_byte(sc, DID_NO_CONNECT); in tcm_loop_submission_work()
137 set_host_byte(sc, DID_TRANSPORT_DISRUPTED); in tcm_loop_submission_work()
142 scmd_printk(KERN_ERR, sc, "TCM_Loop I_T Nexus" in tcm_loop_submission_work()
144 set_host_byte(sc, DID_ERROR); in tcm_loop_submission_work()
147 if (scsi_bidi_cmnd(sc)) { in tcm_loop_submission_work()
148 struct scsi_data_buffer *sdb = scsi_in(sc); in tcm_loop_submission_work()
156 transfer_length = scsi_transfer_length(sc); in tcm_loop_submission_work()
[all …]
Dtcm_loop.h16 struct scsi_cmnd *sc; member
/linux-4.1.27/net/ceph/
Dsnapshot.c61 struct ceph_snap_context *ceph_get_snap_context(struct ceph_snap_context *sc) in ceph_get_snap_context() argument
63 if (sc) in ceph_get_snap_context()
64 atomic_inc(&sc->nref); in ceph_get_snap_context()
65 return sc; in ceph_get_snap_context()
69 void ceph_put_snap_context(struct ceph_snap_context *sc) in ceph_put_snap_context() argument
71 if (!sc) in ceph_put_snap_context()
73 if (atomic_dec_and_test(&sc->nref)) { in ceph_put_snap_context()
75 kfree(sc); in ceph_put_snap_context()
Dceph_fs.c13 __u32 sc = le32_to_cpu(layout->fl_stripe_count); in ceph_file_layout_is_valid() local
25 if (!sc) in ceph_file_layout_is_valid()
/linux-4.1.27/arch/x86/kernel/
Dsignal.c47 get_user_ex(regs->x, &sc->x); \
52 get_user_ex(tmp, &sc->seg); \
64 int restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc) in restore_sigcontext() argument
106 get_user_ex(tmpflags, &sc->flags); in restore_sigcontext()
110 get_user_ex(buf, &sc->fpstate); in restore_sigcontext()
120 int setup_sigcontext(struct sigcontext __user *sc, void __user *fpstate, in setup_sigcontext() argument
128 put_user_ex(get_user_gs(regs), (unsigned int __user *)&sc->gs); in setup_sigcontext()
129 put_user_ex(regs->fs, (unsigned int __user *)&sc->fs); in setup_sigcontext()
130 put_user_ex(regs->es, (unsigned int __user *)&sc->es); in setup_sigcontext()
131 put_user_ex(regs->ds, (unsigned int __user *)&sc->ds); in setup_sigcontext()
[all …]
/linux-4.1.27/arch/x86/ia32/
Dia32_signal.c142 get_user_ex(regs->x, &sc->x); \
147 get_user_ex(tmp, &sc->seg); \
164 struct sigcontext_ia32 __user *sc) in ia32_restore_sigcontext() argument
192 get_user_ex(tmpflags, &sc->flags); in ia32_restore_sigcontext()
197 get_user_ex(tmp, &sc->fpstate); in ia32_restore_sigcontext()
216 if (__get_user(set.sig[0], &frame->sc.oldmask) in sys32_sigreturn()
225 if (ia32_restore_sigcontext(regs, &frame->sc)) in sys32_sigreturn()
266 static int ia32_setup_sigcontext(struct sigcontext_ia32 __user *sc, in ia32_setup_sigcontext() argument
273 put_user_ex(get_user_seg(gs), (unsigned int __user *)&sc->gs); in ia32_setup_sigcontext()
274 put_user_ex(get_user_seg(fs), (unsigned int __user *)&sc->fs); in ia32_setup_sigcontext()
[all …]
/linux-4.1.27/drivers/message/fusion/
Dmptscsih.c89 static void mptscsih_report_queue_full(struct scsi_cmnd *sc, SCSIIOReply_t *pScsiReply, SCSIIOReque…
95 static void mptscsih_copy_sense_data(struct scsi_cmnd *sc, MPT_SCSI_HOST *hd, MPT_FRAME_HDR *mf, SC…
436 mptscsih_info_scsiio(MPT_ADAPTER *ioc, struct scsi_cmnd *sc, SCSIIOReply_t * pScsiReply) in mptscsih_info_scsiio() argument
538 scsi_print_command(sc); in mptscsih_info_scsiio()
540 ioc->name, pScsiReply->Bus, pScsiReply->TargetID, sc->device->lun); in mptscsih_info_scsiio()
542 "resid = %d\n", ioc->name, scsi_bufflen(sc), sc->underflow, in mptscsih_info_scsiio()
543 scsi_get_resid(sc)); in mptscsih_info_scsiio()
546 le32_to_cpu(pScsiReply->TransferCount), sc->result); in mptscsih_info_scsiio()
554 skey = sc->sense_buffer[2] & 0x0F; in mptscsih_info_scsiio()
555 asc = sc->sense_buffer[12]; in mptscsih_info_scsiio()
[all …]
/linux-4.1.27/arch/score/kernel/
Dsignal.c44 static int setup_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc) in setup_sigcontext() argument
49 reg = regs->cp0_epc; err |= __put_user(reg, &sc->sc_pc); in setup_sigcontext()
50 err |= __put_user(regs->cp0_psr, &sc->sc_psr); in setup_sigcontext()
51 err |= __put_user(regs->cp0_condition, &sc->sc_condition); in setup_sigcontext()
56 err |= __put_user(reg, &sc->sc_regs[i]); \ in setup_sigcontext()
70 reg = regs->ceh; err |= __put_user(reg, &sc->sc_mdceh); in setup_sigcontext()
71 reg = regs->cel; err |= __put_user(reg, &sc->sc_mdcel); in setup_sigcontext()
72 err |= __put_user(regs->cp0_ecr, &sc->sc_ecr); in setup_sigcontext()
73 err |= __put_user(regs->cp0_ema, &sc->sc_ema); in setup_sigcontext()
78 static int restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc) in restore_sigcontext() argument
[all …]
/linux-4.1.27/drivers/media/usb/gspca/
Djpeg.h155 int i, sc; in jpeg_set_qual() local
158 sc = 5000; in jpeg_set_qual()
160 sc = 5000 / quality; in jpeg_set_qual()
162 sc = 200 - quality * 2; in jpeg_set_qual()
165 (jpeg_head[JPEG_QT0_OFFSET + i] * sc + 50) / 100; in jpeg_set_qual()
167 (jpeg_head[JPEG_QT1_OFFSET + i] * sc + 50) / 100; in jpeg_set_qual()
/linux-4.1.27/drivers/mmc/host/
Dsdhci-s3c.c451 struct sdhci_s3c *sc; in sdhci_s3c_probe() local
471 sc = sdhci_priv(host); in sdhci_s3c_probe()
485 sc->ext_cd_gpio = -1; /* invalid gpio number */ in sdhci_s3c_probe()
490 sc->host = host; in sdhci_s3c_probe()
491 sc->pdev = pdev; in sdhci_s3c_probe()
492 sc->pdata = pdata; in sdhci_s3c_probe()
493 sc->cur_clk = -1; in sdhci_s3c_probe()
497 sc->clk_io = devm_clk_get(dev, "hsmmc"); in sdhci_s3c_probe()
498 if (IS_ERR(sc->clk_io)) { in sdhci_s3c_probe()
500 ret = PTR_ERR(sc->clk_io); in sdhci_s3c_probe()
[all …]
/linux-4.1.27/drivers/scsi/aic7xxx/
Daic7770.c278 struct seeprom_config *sc; in aha2840_load_seeprom() local
293 sc = ahc->seep_config; in aha2840_load_seeprom()
297 have_seeprom = ahc_read_seeprom(&sd, (uint16_t *)sc, in aha2840_load_seeprom()
298 /*start_addr*/0, sizeof(*sc)/2); in aha2840_load_seeprom()
302 if (ahc_verify_cksum(sc) == 0) { in aha2840_load_seeprom()
329 target_settings = (sc->device_flags[i] & CFXFER) << 4; in aha2840_load_seeprom()
330 if (sc->device_flags[i] & CFSYNCH) in aha2840_load_seeprom()
332 if (sc->device_flags[i] & CFWIDEB) in aha2840_load_seeprom()
334 if (sc->device_flags[i] & CFDISC) in aha2840_load_seeprom()
341 ahc->our_id = sc->brtime_id & CFSCSIID; in aha2840_load_seeprom()
[all …]
Daic7xxx_pci.c612 struct seeprom_config *sc);
1263 struct seeprom_config *sc; in check_extport() local
1271 sc = ahc->seep_config; in check_extport()
1302 have_seeprom = ahc_read_seeprom(&sd, (uint16_t *)sc, in check_extport()
1304 sizeof(*sc)/2); in check_extport()
1307 have_seeprom = ahc_verify_cksum(sc); in check_extport()
1343 sc_data = (uint16_t *)sc; in check_extport()
1351 have_seeprom = ahc_verify_cksum(sc); in check_extport()
1369 sc = NULL; in check_extport()
1371 ahc_parse_pci_eeprom(ahc, sc); in check_extport()
[all …]
Daic79xx_pci.c517 struct seeprom_config *sc; in ahd_check_extport() local
522 sc = ahd->seep_config; in ahd_check_extport()
535 start_addr = ((2 * sizeof(*sc)) in ahd_check_extport()
552 start_addr = (sizeof(*sc) / 2) * (ahd->channel - 'A'); in ahd_check_extport()
554 error = ahd_read_seeprom(ahd, (uint16_t *)sc, in ahd_check_extport()
555 start_addr, sizeof(*sc)/2, in ahd_check_extport()
562 have_seeprom = ahd_verify_cksum(sc); in ahd_check_extport()
603 sc_data = (uint16_t *)sc; in ahd_check_extport()
606 have_seeprom = ahd_verify_cksum(sc); in ahd_check_extport()
619 sc_data = (uint16_t *)sc; in ahd_check_extport()
[all …]
Daic7xxx_93cx6.c305 ahc_verify_cksum(struct seeprom_config *sc) in ahc_verify_cksum() argument
312 maxaddr = (sizeof(*sc)/2) - 1; in ahc_verify_cksum()
314 scarray = (uint16_t *)sc; in ahc_verify_cksum()
319 || (checksum & 0xFFFF) != sc->checksum) { in ahc_verify_cksum()
Daic7xxx_93cx6.h100 int ahc_verify_cksum(struct seeprom_config *sc);
/linux-4.1.27/arch/sh/kernel/
Dsignal_64.c130 struct sigcontext sc; member
145 restore_sigcontext_fpu(struct pt_regs *regs, struct sigcontext __user *sc) in restore_sigcontext_fpu() argument
150 err |= __get_user (fpvalid, &sc->sc_fpvalid); in restore_sigcontext_fpu()
160 err |= __copy_from_user(&current->thread.xstate->hardfpu, &sc->sc_fpregs[0], in restore_sigcontext_fpu()
167 setup_sigcontext_fpu(struct pt_regs *regs, struct sigcontext __user *sc) in setup_sigcontext_fpu() argument
173 err |= __put_user(fpvalid, &sc->sc_fpvalid); in setup_sigcontext_fpu()
185 err |= __copy_to_user(&sc->sc_fpregs[0], &current->thread.xstate->hardfpu, in setup_sigcontext_fpu()
193 restore_sigcontext_fpu(struct pt_regs *regs, struct sigcontext __user *sc) in restore_sigcontext_fpu() argument
198 setup_sigcontext_fpu(struct pt_regs *regs, struct sigcontext __user *sc) in setup_sigcontext_fpu() argument
205 restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc, long long *r2_p) in restore_sigcontext() argument
[all …]
Dsignal_32.c63 struct sigcontext sc; member
76 static inline int restore_sigcontext_fpu(struct sigcontext __user *sc) in restore_sigcontext_fpu() argument
84 return __copy_from_user(&tsk->thread.xstate->hardfpu, &sc->sc_fpregs[0], in restore_sigcontext_fpu()
88 static inline int save_sigcontext_fpu(struct sigcontext __user *sc, in save_sigcontext_fpu() argument
97 return __put_user(0, &sc->sc_ownedfp); in save_sigcontext_fpu()
99 if (__put_user(1, &sc->sc_ownedfp)) in save_sigcontext_fpu()
108 return __copy_to_user(&sc->sc_fpregs[0], &tsk->thread.xstate->hardfpu, in save_sigcontext_fpu()
114 restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc, int *r0_p) in restore_sigcontext() argument
118 #define COPY(x) err |= __get_user(regs->x, &sc->sc_##x) in restore_sigcontext()
140 err |= __get_user (owned_fp, &sc->sc_ownedfp); in restore_sigcontext()
[all …]
/linux-4.1.27/drivers/staging/android/
Dlowmemorykiller.c70 struct shrink_control *sc) in lowmem_count() argument
78 static unsigned long lowmem_scan(struct shrinker *s, struct shrink_control *sc) in lowmem_scan() argument
107 sc->nr_to_scan, sc->gfp_mask, other_free, in lowmem_scan()
112 sc->nr_to_scan, sc->gfp_mask); in lowmem_scan()
174 sc->nr_to_scan, sc->gfp_mask, rem); in lowmem_scan()
Dashmem.c435 ashmem_shrink_scan(struct shrinker *shrink, struct shrink_control *sc) in ashmem_shrink_scan() argument
441 if (!(sc->gfp_mask & __GFP_FS)) in ashmem_shrink_scan()
456 if (--sc->nr_to_scan <= 0) in ashmem_shrink_scan()
464 ashmem_shrink_count(struct shrinker *shrink, struct shrink_control *sc) in ashmem_shrink_count() argument
782 struct shrink_control sc = { in ashmem_ioctl() local
786 ret = ashmem_shrink_count(&ashmem_shrinker, &sc); in ashmem_ioctl()
787 ashmem_shrink_scan(&ashmem_shrinker, &sc); in ashmem_ioctl()
/linux-4.1.27/include/linux/
Dlist_lru.h113 struct shrink_control *sc) in list_lru_shrink_count() argument
115 return list_lru_count_one(lru, sc->nid, sc->memcg); in list_lru_shrink_count()
167 list_lru_shrink_walk(struct list_lru *lru, struct shrink_control *sc, in list_lru_shrink_walk() argument
170 return list_lru_walk_one(lru, sc->nid, sc->memcg, isolate, cb_arg, in list_lru_shrink_walk()
171 &sc->nr_to_scan); in list_lru_shrink_walk()
Dshrinker.h51 struct shrink_control *sc);
53 struct shrink_control *sc);
Dusb.h922 #define USB_DEVICE_INFO(cl, sc, pr) \ argument
925 .bDeviceSubClass = (sc), \
937 #define USB_INTERFACE_INFO(cl, sc, pr) \ argument
940 .bInterfaceSubClass = (sc), \
957 #define USB_DEVICE_AND_INTERFACE_INFO(vend, prod, cl, sc, pr) \ argument
963 .bInterfaceSubClass = (sc), \
979 #define USB_VENDOR_AND_INTERFACE_INFO(vend, cl, sc, pr) \ argument
984 .bInterfaceSubClass = (sc), \
/linux-4.1.27/drivers/gpu/drm/exynos/
Dexynos_drm_gsc.c143 struct gsc_scaler sc; member
608 struct gsc_scaler *sc = &ctx->sc; in gsc_src_set_size() local
644 DRM_DEBUG_KMS("width[%d]range[%d]\n", pos->w, sc->range); in gsc_src_set_size()
647 if (sc->range) in gsc_src_set_size()
652 if (sc->range) in gsc_src_set_size()
901 static int gsc_set_prescaler(struct gsc_context *ctx, struct gsc_scaler *sc, in gsc_set_prescaler() argument
920 ret = gsc_get_ratio_shift(src_w, dst_w, &sc->pre_hratio); in gsc_set_prescaler()
926 ret = gsc_get_ratio_shift(src_h, dst_h, &sc->pre_vratio); in gsc_set_prescaler()
933 sc->pre_hratio, sc->pre_vratio); in gsc_set_prescaler()
935 sc->main_hratio = (src_w << 16) / dst_w; in gsc_set_prescaler()
[all …]
Dexynos_drm_fimc.c165 struct fimc_scaler sc; member
942 static int fimc_set_prescaler(struct fimc_context *ctx, struct fimc_scaler *sc, in fimc_set_prescaler() argument
988 sc->hratio = (src_w << 14) / (dst_w << hfactor); in fimc_set_prescaler()
989 sc->vratio = (src_h << 14) / (dst_h << vfactor); in fimc_set_prescaler()
990 sc->up_h = (dst_w >= src_w) ? true : false; in fimc_set_prescaler()
991 sc->up_v = (dst_h >= src_h) ? true : false; in fimc_set_prescaler()
993 sc->hratio, sc->vratio, sc->up_h, sc->up_v); in fimc_set_prescaler()
1010 static void fimc_set_scaler(struct fimc_context *ctx, struct fimc_scaler *sc) in fimc_set_scaler() argument
1015 sc->range, sc->bypass, sc->up_h, sc->up_v); in fimc_set_scaler()
1017 sc->hratio, sc->vratio); in fimc_set_scaler()
[all …]
/linux-4.1.27/arch/x86/um/
Dsignal.c156 struct sigcontext sc; in copy_sc_from_user() local
162 err = copy_from_user(&sc, from, sizeof(sc)); in copy_sc_from_user()
166 #define GETREG(regno, regname) regs->regs.gp[HOST_##regno] = sc.regname in copy_sc_from_user()
209 &((struct _fpstate __user *)sc.fpstate)->_fxsr_env[0], in copy_sc_from_user()
214 err = convert_fxsr_from_user(&fpx, sc.fpstate); in copy_sc_from_user()
230 err = copy_from_user(&fp, sc.fpstate, in copy_sc_from_user()
250 struct sigcontext sc; in copy_sc_to_user() local
253 memset(&sc, 0, sizeof(struct sigcontext)); in copy_sc_to_user()
255 #define PUTREG(regno, regname) sc.regname = regs->regs.gp[HOST_##regno] in copy_sc_to_user()
282 sc.cr2 = fi->cr2; in copy_sc_to_user()
[all …]
/linux-4.1.27/include/media/
Dmsp3400.h140 #define MSP_INPUT(sc, t, main_aux_src, sc_i2s_src) \ argument
141 (MSP_SCART_TO_DSP(sc) | \
150 #define MSP_OUTPUT(sc) \ argument
151 (MSP_SC_TO_SCART1(sc) | \
152 MSP_SC_TO_SCART2(sc))
/linux-4.1.27/arch/cris/arch-v10/kernel/
Dsignal.c49 struct sigcontext sc; member
64 restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc) in restore_sigcontext() argument
77 if (__copy_from_user(regs, sc, sizeof(struct pt_regs))) in restore_sigcontext()
89 err |= __get_user(old_usp, &sc->usp); in restore_sigcontext()
120 if (__get_user(set.sig[0], &frame->sc.oldmask) in sys_sigreturn()
128 if (restore_sigcontext(regs, &frame->sc)) in sys_sigreturn()
178 static int setup_sigcontext(struct sigcontext __user *sc, in setup_sigcontext() argument
186 err |= __copy_to_user(sc, regs, sizeof(struct pt_regs)); in setup_sigcontext()
195 err |= __put_user(mask, &sc->oldmask); in setup_sigcontext()
197 err |= __put_user(usp, &sc->usp); in setup_sigcontext()
[all …]
Dkgdb.c374 const char *sc; in gdb_cris_strlen() local
376 for (sc = s; *sc != '\0'; sc++) in gdb_cris_strlen()
378 return (sc - s); in gdb_cris_strlen()
/linux-4.1.27/arch/mn10300/kernel/
Dsignal.c38 struct sigcontext __user *sc, long *_d0) in restore_sigcontext() argument
48 #define COPY(x) err |= __get_user(regs->x, &sc->x) in restore_sigcontext()
68 err |= __get_user(tmpflags, &sc->epsw); in restore_sigcontext()
76 err |= __get_user(buf, &sc->fpucontext); in restore_sigcontext()
84 err |= __get_user(*_d0, &sc->d0); in restore_sigcontext()
103 if (__get_user(set.sig[0], &frame->sc.oldmask)) in sys_sigreturn()
113 if (restore_sigcontext(current_frame(), &frame->sc, &d0)) in sys_sigreturn()
156 static int setup_sigcontext(struct sigcontext __user *sc, in setup_sigcontext() argument
163 #define COPY(x) err |= __put_user(regs->x, &sc->x) in setup_sigcontext()
178 err |= __put_user(tmp ? fpuctx : NULL, &sc->fpucontext); in setup_sigcontext()
[all …]
Dsigframe.h17 struct sigcontext sc; member
/linux-4.1.27/tools/perf/
Dbuiltin-trace.c135 ({ struct syscall_tp *sc = evsel->priv;\
136 perf_evsel__init_tp_uint_field(evsel, &sc->name, #name); })
151 ({ struct syscall_tp *sc = evsel->priv;\
152 perf_evsel__init_tp_ptr_field(evsel, &sc->name, #name); })
1443 static int syscall__set_arg_fmts(struct syscall *sc) in syscall__set_arg_fmts() argument
1448 sc->arg_scnprintf = calloc(sc->nr_args, sizeof(void *)); in syscall__set_arg_fmts()
1449 if (sc->arg_scnprintf == NULL) in syscall__set_arg_fmts()
1452 if (sc->fmt) in syscall__set_arg_fmts()
1453 sc->arg_parm = sc->fmt->arg_parm; in syscall__set_arg_fmts()
1455 for (field = sc->args; field; field = field->next) { in syscall__set_arg_fmts()
[all …]
/linux-4.1.27/arch/frv/kernel/
Dsignal.c43 struct sigcontext sc; member
59 static int restore_sigcontext(struct sigcontext __user *sc, int *_gr8) in restore_sigcontext() argument
69 if (copy_from_user(user, &sc->sc_context, sizeof(sc->sc_context))) in restore_sigcontext()
93 if (__get_user(set.sig[0], &frame->sc.sc_oldmask)) in sys_sigreturn()
102 if (restore_sigcontext(&frame->sc, &gr8)) in sys_sigreturn()
140 static int setup_sigcontext(struct sigcontext __user *sc, unsigned long mask) in setup_sigcontext() argument
144 if (copy_to_user(&sc->sc_context, current->thread.user, sizeof(sc->sc_context)) != 0) in setup_sigcontext()
148 if (__put_user(mask, &sc->sc_oldmask) < 0) in setup_sigcontext()
187 if (setup_sigcontext(&frame->sc, set->sig[0])) in setup_frame()
/linux-4.1.27/arch/metag/kernel/
Dsignal.c46 struct sigcontext __user *sc) in restore_sigcontext() argument
54 &sc->regs); in restore_sigcontext()
58 &sc->cb); in restore_sigcontext()
62 &sc->rp); in restore_sigcontext()
102 static int setup_sigcontext(struct sigcontext __user *sc, struct pt_regs *regs, in setup_sigcontext() argument
108 &sc->regs); in setup_sigcontext()
113 &sc->cb); in setup_sigcontext()
117 &sc->rp); in setup_sigcontext()
135 err |= __put_user(mask, &sc->oldmask); in setup_sigcontext()
/linux-4.1.27/arch/openrisc/kernel/
Dsignal.c44 struct sigcontext __user *sc) in restore_sigcontext() argument
56 err |= __copy_from_user(regs, sc->regs.gpr, 32 * sizeof(unsigned long)); in restore_sigcontext()
57 err |= __copy_from_user(&regs->pc, &sc->regs.pc, sizeof(unsigned long)); in restore_sigcontext()
58 err |= __copy_from_user(&regs->sr, &sc->regs.sr, sizeof(unsigned long)); in restore_sigcontext()
110 static int setup_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc) in setup_sigcontext() argument
118 err |= __copy_to_user(sc->regs.gpr, regs, 32 * sizeof(unsigned long)); in setup_sigcontext()
119 err |= __copy_to_user(&sc->regs.pc, &regs->pc, sizeof(unsigned long)); in setup_sigcontext()
120 err |= __copy_to_user(&sc->regs.sr, &regs->sr, sizeof(unsigned long)); in setup_sigcontext()
/linux-4.1.27/fs/gfs2/
Dsuper.c451 void gfs2_statfs_change_in(struct gfs2_statfs_change_host *sc, const void *buf) in gfs2_statfs_change_in() argument
455 sc->sc_total = be64_to_cpu(str->sc_total); in gfs2_statfs_change_in()
456 sc->sc_free = be64_to_cpu(str->sc_free); in gfs2_statfs_change_in()
457 sc->sc_dinodes = be64_to_cpu(str->sc_dinodes); in gfs2_statfs_change_in()
460 static void gfs2_statfs_change_out(const struct gfs2_statfs_change_host *sc, void *buf) in gfs2_statfs_change_out() argument
464 str->sc_total = cpu_to_be64(sc->sc_total); in gfs2_statfs_change_out()
465 str->sc_free = cpu_to_be64(sc->sc_free); in gfs2_statfs_change_out()
466 str->sc_dinodes = cpu_to_be64(sc->sc_dinodes); in gfs2_statfs_change_out()
1050 struct gfs2_statfs_change_host *sc) in statfs_slow_fill() argument
1053 sc->sc_total += rgd->rd_data; in statfs_slow_fill()
[all …]
Dsuper.h43 extern void gfs2_statfs_change_in(struct gfs2_statfs_change_host *sc,
/linux-4.1.27/arch/x86/boot/
Dstring.c130 const char *sc; in strlen() local
132 for (sc = s; *sc != '\0'; ++sc) in strlen()
134 return sc - s; in strlen()
/linux-4.1.27/drivers/infiniband/ulp/iser/
Diser_memory.c574 iser_set_dif_domain(struct scsi_cmnd *sc, struct ib_sig_attrs *sig_attrs, in iser_set_dif_domain() argument
578 domain->sig.dif.pi_interval = scsi_prot_interval(sc); in iser_set_dif_domain()
579 domain->sig.dif.ref_tag = scsi_prot_ref_tag(sc); in iser_set_dif_domain()
587 if (sc->prot_flags & SCSI_PROT_REF_INCREMENT) in iser_set_dif_domain()
592 iser_set_sig_attrs(struct scsi_cmnd *sc, struct ib_sig_attrs *sig_attrs) in iser_set_sig_attrs() argument
594 switch (scsi_get_prot_op(sc)) { in iser_set_sig_attrs()
598 iser_set_dif_domain(sc, sig_attrs, &sig_attrs->wire); in iser_set_sig_attrs()
604 iser_set_dif_domain(sc, sig_attrs, &sig_attrs->mem); in iser_set_sig_attrs()
605 sig_attrs->mem.sig.dif.bg_type = sc->prot_flags & SCSI_PROT_IP_CHECKSUM ? in iser_set_sig_attrs()
610 iser_set_dif_domain(sc, sig_attrs, &sig_attrs->wire); in iser_set_sig_attrs()
[all …]
Diser_initiator.c65 if (scsi_prot_sg_count(iser_task->sc)) { in iser_prepare_read_cmd()
120 if (scsi_prot_sg_count(iser_task->sc)) { in iser_prepare_write_cmd()
385 struct scsi_cmnd *sc = task->sc; in iser_send_command() local
403 if (scsi_sg_count(sc)) { /* using a scatter list */ in iser_send_command()
404 data_buf->sg = scsi_sglist(sc); in iser_send_command()
405 data_buf->size = scsi_sg_count(sc); in iser_send_command()
407 data_buf->data_len = scsi_bufflen(sc); in iser_send_command()
409 if (scsi_prot_sg_count(sc)) { in iser_send_command()
410 prot_buf->sg = scsi_prot_sglist(sc); in iser_send_command()
411 prot_buf->size = scsi_prot_sg_count(sc); in iser_send_command()
[all …]
Discsi_iser.c186 const bool mgmt_task = !task->sc && !in_interrupt(); in iser_initialize_task_headers()
241 if (!task->sc) in iscsi_iser_task_init()
246 iser_task->sc = task->sc; in iscsi_iser_task_init()
323 if (!task->sc) in iscsi_iser_task_xmit()
326 if (task->sc->sc_data_direction == DMA_TO_DEVICE) { in iscsi_iser_task_xmit()
327 BUG_ON(scsi_bufflen(task->sc) == 0); in iscsi_iser_task_xmit()
330 task->itt, scsi_bufflen(task->sc), in iscsi_iser_task_xmit()
379 if (!task->sc) in iscsi_iser_cleanup_task()
/linux-4.1.27/crypto/
Dtwofish_common.c500 ctx->s[2][i] = mds[2][q1[(a) ^ sc] ^ sg]; \
508 ctx->s[2][i] = mds[2][q1[q0[(a) ^ sc] ^ sg] ^ sk]; \
516 ctx->s[2][i] = mds[2][q1[q0[q0[(a) ^ sc] ^ sg] ^ sk] ^ so]; \
593 u8 sa = 0, sb = 0, sc = 0, sd = 0, se = 0, sf = 0, sg = 0, sh = 0; in __twofish_setkey() local
610 CALC_S (sa, sb, sc, sd, 0, 0x00, 0x2D, 0x01, 0x2D); /* 01 A4 02 A4 */ in __twofish_setkey()
611 CALC_S (sa, sb, sc, sd, 1, 0x2D, 0xA4, 0x44, 0x8A); /* A4 56 A1 55 */ in __twofish_setkey()
612 CALC_S (sa, sb, sc, sd, 2, 0x8A, 0xD5, 0xBF, 0xD1); /* 55 82 FC 87 */ in __twofish_setkey()
613 CALC_S (sa, sb, sc, sd, 3, 0xD1, 0x7F, 0x3D, 0x99); /* 87 F3 C1 5A */ in __twofish_setkey()
614 CALC_S (sa, sb, sc, sd, 4, 0x99, 0x46, 0x66, 0x96); /* 5A 1E 47 58 */ in __twofish_setkey()
615 CALC_S (sa, sb, sc, sd, 5, 0x96, 0x3C, 0x5B, 0xED); /* 58 C6 AE DB */ in __twofish_setkey()
[all …]
/linux-4.1.27/arch/cris/arch-v32/kernel/
Dsignal.c38 struct sigcontext sc; member
56 restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc) in restore_sigcontext() argument
69 if (__copy_from_user(regs, sc, sizeof(struct pt_regs))) in restore_sigcontext()
79 err |= __get_user(old_usp, &sc->usp); in restore_sigcontext()
109 if (__get_user(set.sig[0], &frame->sc.oldmask) || in sys_sigreturn()
117 if (restore_sigcontext(regs, &frame->sc)) in sys_sigreturn()
172 setup_sigcontext(struct sigcontext __user *sc, struct pt_regs *regs, in setup_sigcontext() argument
185 err |= __copy_to_user(sc, regs, sizeof(struct pt_regs)); in setup_sigcontext()
187 err |= __put_user(mask, &sc->oldmask); in setup_sigcontext()
188 err |= __put_user(usp, &sc->usp); in setup_sigcontext()
[all …]
Dkgdb.c499 const char *sc; in gdb_cris_strlen() local
501 for (sc = s; *sc != '\0'; sc++) in gdb_cris_strlen()
503 return (sc - s); in gdb_cris_strlen()
/linux-4.1.27/drivers/net/ethernet/freescale/fs_enet/
Dfs_enet-main.c91 u16 pkt_len, sc; in fs_enet_rx_napi() local
106 while (((sc = CBDR_SC(bdp)) & BD_ENET_RX_EMPTY) == 0) { in fs_enet_rx_napi()
113 if ((sc & BD_ENET_RX_LAST) == 0) in fs_enet_rx_napi()
119 if (sc & (BD_ENET_RX_LG | BD_ENET_RX_SH | BD_ENET_RX_CL | in fs_enet_rx_napi()
123 if (sc & (BD_ENET_RX_LG | BD_ENET_RX_SH)) in fs_enet_rx_napi()
126 if (sc & (BD_ENET_RX_NO | BD_ENET_RX_CL)) in fs_enet_rx_napi()
129 if (sc & BD_ENET_RX_CR) in fs_enet_rx_napi()
132 if (sc & BD_ENET_RX_OV) in fs_enet_rx_napi()
192 CBDW_SC(bdp, (sc & ~BD_ENET_RX_STATS) | BD_ENET_RX_EMPTY); in fs_enet_rx_napi()
197 if ((sc & BD_ENET_RX_WRAP) == 0) in fs_enet_rx_napi()
[all …]
/linux-4.1.27/drivers/net/
Deql.c267 static int eql_g_slave_cfg(struct net_device *dev, slave_config_t __user *sc);
268 static int eql_s_slave_cfg(struct net_device *dev, slave_config_t __user *sc);
484 slave_config_t sc; in eql_g_slave_cfg() local
487 if (copy_from_user(&sc, scp, sizeof (slave_config_t))) in eql_g_slave_cfg()
490 slave_dev = __dev_get_by_name(&init_net, sc.slave_name); in eql_g_slave_cfg()
500 sc.priority = slave->priority; in eql_g_slave_cfg()
506 if (!ret && copy_to_user(scp, &sc, sizeof (slave_config_t))) in eql_g_slave_cfg()
517 slave_config_t sc; in eql_s_slave_cfg() local
520 if (copy_from_user(&sc, scp, sizeof (slave_config_t))) in eql_s_slave_cfg()
523 slave_dev = __dev_get_by_name(&init_net, sc.slave_name); in eql_s_slave_cfg()
[all …]
/linux-4.1.27/arch/powerpc/boot/
Dcpm-serial.c65 u16 sc; /* Status and Control */ member
147 rbdf->sc = 0xa000; in cpm_serial_open()
152 tbdf->sc = 0x2000; in cpm_serial_open()
167 while (tbdf->sc & 0x8000) in cpm_serial_putc()
174 tbdf->sc |= 0x8000; in cpm_serial_putc()
180 return !(rbdf->sc & 0x8000); in cpm_serial_tstc()
193 rbdf->sc |= 0x8000; in cpm_serial_getc()
Dstdio.c17 const char *sc; in strnlen() local
19 for (sc = s; count-- && *sc != '\0'; ++sc) in strnlen()
21 return sc - s; in strnlen()
/linux-4.1.27/drivers/media/platform/exynos4-is/
Dfimc-reg.c237 struct fimc_scaler *sc = &ctx->scaler; in fimc_hw_set_prescaler() local
240 shfactor = 10 - (sc->hfactor + sc->vfactor); in fimc_hw_set_prescaler()
243 cfg |= (sc->pre_hratio << 16) | sc->pre_vratio; in fimc_hw_set_prescaler()
246 cfg = (sc->pre_dst_width << 16) | sc->pre_dst_height; in fimc_hw_set_prescaler()
253 struct fimc_scaler *sc = &ctx->scaler; in fimc_hw_set_scaler() local
269 if (!sc->enabled) in fimc_hw_set_scaler()
272 if (sc->scaleup_h) in fimc_hw_set_scaler()
275 if (sc->scaleup_v) in fimc_hw_set_scaler()
278 if (sc->copy_mode) in fimc_hw_set_scaler()
318 struct fimc_scaler *sc = &ctx->scaler; in fimc_hw_set_mainscaler() local
[all …]
Dfimc-core.c253 struct fimc_scaler *sc = &ctx->scaler; in fimc_set_scaler_info() local
277 sc->real_width = sx; in fimc_set_scaler_info()
278 sc->real_height = sy; in fimc_set_scaler_info()
280 ret = fimc_get_scaler_factor(sx, tx, &sc->pre_hratio, &sc->hfactor); in fimc_set_scaler_info()
284 ret = fimc_get_scaler_factor(sy, ty, &sc->pre_vratio, &sc->vfactor); in fimc_set_scaler_info()
288 sc->pre_dst_width = sx / sc->pre_hratio; in fimc_set_scaler_info()
289 sc->pre_dst_height = sy / sc->pre_vratio; in fimc_set_scaler_info()
292 sc->main_hratio = (sx << 14) / (tx << sc->hfactor); in fimc_set_scaler_info()
293 sc->main_vratio = (sy << 14) / (ty << sc->vfactor); in fimc_set_scaler_info()
295 sc->main_hratio = (sx << 8) / (tx << sc->hfactor); in fimc_set_scaler_info()
[all …]
/linux-4.1.27/Documentation/devicetree/bindings/interrupt-controller/
Dallwinner,sun67i-sc-nmi.txt6 - compatible : should be "allwinner,sun7i-a20-sc-nmi" or
7 "allwinner,sun6i-a31-sc-nmi"
20 sc-nmi-intc@01c00030 {
21 compatible = "allwinner,sun7i-a20-sc-nmi";
/linux-4.1.27/arch/mips/mm/
DMakefile27 obj-$(CONFIG_IP22_CPU_SCACHE) += sc-ip22.o
28 obj-$(CONFIG_R5000_CPU_SCACHE) += sc-r5k.o
29 obj-$(CONFIG_RM7000_CPU_SCACHE) += sc-rm7k.o
30 obj-$(CONFIG_MIPS_CPU_SCACHE) += sc-mips.o
/linux-4.1.27/lib/
Dstring.c390 const char *sc; in strlen() local
392 for (sc = s; *sc != '\0'; ++sc) in strlen()
394 return sc - s; in strlen()
407 const char *sc; in strnlen() local
409 for (sc = s; count-- && *sc != '\0'; ++sc) in strnlen()
411 return sc - s; in strnlen()
/linux-4.1.27/arch/arm/boot/compressed/
Dstring.c61 const char *sc = s; in strlen() local
63 while (*sc != '\0') in strlen()
64 sc++; in strlen()
65 return sc - s; in strlen()
/linux-4.1.27/arch/m68k/include/asm/
Dstring.h10 const char *sc = s; in strnlen() local
19 : "+a" (sc), "+d" (count)); in strnlen()
20 return sc - s; in strnlen()
/linux-4.1.27/arch/xtensa/kernel/
Dsignal.c137 struct sigcontext __user *sc = &frame->uc.uc_mcontext; in setup_sigcontext() local
141 #define COPY(x) err |= __put_user(regs->x, &sc->sc_##x) in setup_sigcontext()
151 err |= __copy_to_user (sc->sc_a, regs->areg, 16 * 4); in setup_sigcontext()
152 err |= __put_user(0, &sc->sc_xtregs); in setup_sigcontext()
168 err |= __put_user(err ? NULL : &frame->xtregs, &sc->sc_xtregs); in setup_sigcontext()
176 struct sigcontext __user *sc = &frame->uc.uc_mcontext; in restore_sigcontext() local
181 #define COPY(x) err |= __get_user(regs->x, &sc->sc_##x) in restore_sigcontext()
201 err |= __get_user(ps, &sc->sc_ps); in restore_sigcontext()
210 err |= __copy_from_user(regs->areg, sc->sc_a, 16 * 4); in restore_sigcontext()
/linux-4.1.27/drivers/scsi/libsas/
Dsas_scsi_host.c53 static void sas_end_task(struct scsi_cmnd *sc, struct sas_task *task) in sas_end_task() argument
72 scsi_set_resid(sc, ts->residual); in sas_end_task()
73 if (scsi_bufflen(sc) - scsi_get_resid(sc) < sc->underflow) in sas_end_task()
103 memcpy(sc->sense_buffer, ts->buf, in sas_end_task()
113 sc->result = (hs << 16) | stat; in sas_end_task()
114 ASSIGN_SAS_TASK(sc, NULL); in sas_end_task()
120 struct scsi_cmnd *sc = task->uldd_task; in sas_scsi_task_done() local
129 ASSIGN_SAS_TASK(sc, NULL); in sas_scsi_task_done()
138 if (unlikely(!sc)) { in sas_scsi_task_done()
144 sas_end_task(sc, task); in sas_scsi_task_done()
[all …]
/linux-4.1.27/fs/
Dsuper.c56 struct shrink_control *sc) in super_cache_scan() argument
71 if (!(sc->gfp_mask & __GFP_FS)) in super_cache_scan()
78 fs_objects = sb->s_op->nr_cached_objects(sb, sc); in super_cache_scan()
80 inodes = list_lru_shrink_count(&sb->s_inode_lru, sc); in super_cache_scan()
81 dentries = list_lru_shrink_count(&sb->s_dentry_lru, sc); in super_cache_scan()
87 dentries = mult_frac(sc->nr_to_scan, dentries, total_objects); in super_cache_scan()
88 inodes = mult_frac(sc->nr_to_scan, inodes, total_objects); in super_cache_scan()
89 fs_objects = mult_frac(sc->nr_to_scan, fs_objects, total_objects); in super_cache_scan()
98 sc->nr_to_scan = dentries + 1; in super_cache_scan()
99 freed = prune_dcache_sb(sb, sc); in super_cache_scan()
[all …]
Dinternal.h116 extern long prune_icache_sb(struct super_block *sb, struct shrink_control *sc);
133 extern long prune_dcache_sb(struct super_block *sb, struct shrink_control *sc);
Dmbcache.c248 mb_cache_shrink_scan(struct shrinker *shrink, struct shrink_control *sc) in mb_cache_shrink_scan() argument
252 int nr_to_scan = sc->nr_to_scan; in mb_cache_shrink_scan()
253 gfp_t gfp_mask = sc->gfp_mask; in mb_cache_shrink_scan()
291 mb_cache_shrink_count(struct shrinker *shrink, struct shrink_control *sc) in mb_cache_shrink_count() argument
/linux-4.1.27/tools/testing/selftests/powerpc/switch_endian/
Dswitch_endian_test.S64 sc
77 sc
80 sc
/linux-4.1.27/arch/alpha/boot/
Dstdio.c14 const char *sc; in strnlen() local
16 for (sc = s; count-- && *sc != '\0'; ++sc) in strnlen()
18 return sc - s; in strnlen()
/linux-4.1.27/drivers/isdn/sc/
DMakefile5 obj-$(CONFIG_ISDN_DRV_SC) += sc.o
9 sc-y := shmem.o init.o packet.o command.o event.o \
DKconfig7 To build it, choose M here: the module will be called sc.
8 See <file:Documentation/isdn/README.sc> for more information.
/linux-4.1.27/net/tipc/
Daddr.c79 u32 addr_domain(struct net *net, u32 sc) in addr_domain() argument
83 if (likely(sc == TIPC_NODE_SCOPE)) in addr_domain()
85 if (sc == TIPC_CLUSTER_SCOPE) in addr_domain()
Daddr.h62 u32 addr_domain(struct net *net, u32 sc);
/linux-4.1.27/arch/m32r/kernel/
Dsignal.c45 restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc, in restore_sigcontext() argument
53 #define COPY(x) err |= __get_user(regs->x, &sc->sc_##x) in restore_sigcontext()
83 err |= __get_user(*r0_p, &sc->sc_r0); in restore_sigcontext()
122 setup_sigcontext(struct sigcontext __user *sc, struct pt_regs *regs, in setup_sigcontext() argument
127 #define COPY(x) err |= __put_user(regs->x, &sc->sc_##x) in setup_sigcontext()
156 err |= __put_user(mask, &sc->oldmask); in setup_sigcontext()
/linux-4.1.27/drivers/scsi/lpfc/
Dlpfc_scsi.c87 lpfc_prot_group_type(struct lpfc_hba *phba, struct scsi_cmnd *sc);
147 lpfc_cmd_blksize(struct scsi_cmnd *sc) in lpfc_cmd_blksize() argument
149 return sc->device->sector_size; in lpfc_cmd_blksize()
155 lpfc_cmd_protect(struct scsi_cmnd *sc, int flag) in lpfc_cmd_protect() argument
161 lpfc_cmd_guard_csum(struct scsi_cmnd *sc) in lpfc_cmd_guard_csum() argument
163 if (lpfc_prot_group_type(NULL, sc) == LPFC_PG_TYPE_NO_DIF) in lpfc_cmd_guard_csum()
165 if (scsi_host_get_guard(sc->device->host) == SHOST_DIX_GUARD_IP) in lpfc_cmd_guard_csum()
1292 lpfc_bg_err_inject(struct lpfc_hba *phba, struct scsi_cmnd *sc, in lpfc_bg_err_inject() argument
1301 uint32_t op = scsi_get_prot_op(sc); in lpfc_bg_err_inject()
1311 sgpe = scsi_prot_sglist(sc); in lpfc_bg_err_inject()
[all …]
/linux-4.1.27/drivers/s390/scsi/
Dzfcp_dbf.c402 void zfcp_dbf_scsi(char *tag, struct scsi_cmnd *sc, struct zfcp_fsf_req *fsf) in zfcp_dbf_scsi() argument
405 (struct zfcp_adapter *) sc->device->host->hostdata[0]; in zfcp_dbf_scsi()
417 rec->scsi_result = sc->result; in zfcp_dbf_scsi()
418 rec->scsi_retries = sc->retries; in zfcp_dbf_scsi()
419 rec->scsi_allowed = sc->allowed; in zfcp_dbf_scsi()
420 rec->scsi_id = sc->device->id; in zfcp_dbf_scsi()
422 rec->scsi_lun = (u32)sc->device->lun; in zfcp_dbf_scsi()
423 rec->host_scribble = (unsigned long)sc->host_scribble; in zfcp_dbf_scsi()
425 memcpy(rec->scsi_opcode, sc->cmnd, in zfcp_dbf_scsi()
426 min((int)sc->cmd_len, ZFCP_DBF_SCSI_OPCODE)); in zfcp_dbf_scsi()
[all …]
/linux-4.1.27/tools/testing/selftests/powerpc/tm/
Dtm-syscall-asm.S9 sc
21 sc
/linux-4.1.27/drivers/gpu/drm/i915/
Di915_gem_shrinker.c195 i915_gem_shrinker_count(struct shrinker *shrinker, struct shrink_control *sc) in i915_gem_shrinker_count() argument
225 i915_gem_shrinker_scan(struct shrinker *shrinker, struct shrink_control *sc) in i915_gem_shrinker_scan() argument
237 sc->nr_to_scan, in i915_gem_shrinker_scan()
241 if (freed < sc->nr_to_scan) in i915_gem_shrinker_scan()
243 sc->nr_to_scan - freed, in i915_gem_shrinker_scan()
/linux-4.1.27/kernel/trace/
Dtrace_kprobe.c93 unsigned long update_symbol_cache(struct symbol_cache *sc) in update_symbol_cache() argument
95 sc->addr = (unsigned long)kallsyms_lookup_name(sc->symbol); in update_symbol_cache()
97 if (sc->addr) in update_symbol_cache()
98 sc->addr += sc->offset; in update_symbol_cache()
100 return sc->addr; in update_symbol_cache()
103 void free_symbol_cache(struct symbol_cache *sc) in free_symbol_cache() argument
105 kfree(sc->symbol); in free_symbol_cache()
106 kfree(sc); in free_symbol_cache()
111 struct symbol_cache *sc; in alloc_symbol_cache() local
116 sc = kzalloc(sizeof(struct symbol_cache), GFP_KERNEL); in alloc_symbol_cache()
[all …]
Dtrace_probe.h234 unsigned long update_symbol_cache(struct symbol_cache *sc);
235 void free_symbol_cache(struct symbol_cache *sc);
248 static inline unsigned long __used update_symbol_cache(struct symbol_cache *sc) in update_symbol_cache() argument
253 static inline void __used free_symbol_cache(struct symbol_cache *sc) in free_symbol_cache() argument
/linux-4.1.27/arch/x86/include/asm/
Dsighandling.h16 int restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc);
17 int setup_sigcontext(struct sigcontext __user *sc, void __user *fpstate,
Dsigframe.h26 struct sigcontext_ia32 sc; member
/linux-4.1.27/arch/microblaze/kernel/
Dsignal.c48 struct sigcontext sc; member
60 struct sigcontext __user *sc, int *rval_p) in restore_sigcontext() argument
64 #define COPY(x) {err |= __get_user(regs->x, &sc->regs.x); } in restore_sigcontext()
120 setup_sigcontext(struct sigcontext __user *sc, struct pt_regs *regs, in setup_sigcontext() argument
125 #define COPY(x) {err |= __put_user(regs->x, &sc->regs.x); } in setup_sigcontext()
139 err |= __put_user(mask, &sc->oldmask); in setup_sigcontext()
/linux-4.1.27/arch/blackfin/kernel/
Dsignal.c41 rt_restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc, int *pr0) in rt_restore_sigcontext() argument
49 #define RESTORE(x) err |= __get_user(regs->x, &sc->sc_##x) in rt_restore_sigcontext()
56 err |= __get_user(usp, &sc->sc_usp); in rt_restore_sigcontext()
108 static inline int rt_setup_sigcontext(struct sigcontext *sc, struct pt_regs *regs) in rt_setup_sigcontext() argument
112 #define SETUP(x) err |= __put_user(regs->x, &sc->sc_##x) in rt_setup_sigcontext()
118 err |= __put_user(rdusp(), &sc->sc_usp); in rt_setup_sigcontext()
/linux-4.1.27/include/scsi/
Dlibiscsi.h129 struct scsi_cmnd *sc; /* associated SCSI cmd*/ member
381 extern int iscsi_eh_abort(struct scsi_cmnd *sc);
382 extern int iscsi_eh_recover_target(struct scsi_cmnd *sc);
383 extern int iscsi_eh_session_reset(struct scsi_cmnd *sc);
384 extern int iscsi_eh_device_reset(struct scsi_cmnd *sc);
385 extern int iscsi_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *sc);
/linux-4.1.27/arch/s390/kernel/
Dsignal.c64 struct sigcontext sc; member
243 if (__copy_from_user(&set.sig, &frame->sc.oldmask, _SIGMASK_COPY_SIZE)) in SYSCALL_DEFINE0()
308 struct sigcontext sc; in setup_frame() local
330 memcpy(&sc.oldmask, &set->sig, _SIGMASK_COPY_SIZE); in setup_frame()
331 sc.sregs = (_sigregs __user __force *) &frame->sregs; in setup_frame()
332 if (__copy_to_user(&frame->sc, &sc, sizeof(frame->sc))) in setup_frame()
372 regs->gprs[3] = (unsigned long) &frame->sc; in setup_frame()
Dcompat_signal.c36 struct sigcontext32 sc; member
322 if (__copy_from_user(&cset.sig, &frame->sc.oldmask, _SIGMASK_COPY_SIZE32)) in COMPAT_SYSCALL_DEFINE0()
395 struct sigcontext32 sc; in setup_frame32() local
417 sigset_to_sigset32(set->sig, sc.oldmask); in setup_frame32()
418 sc.sregs = (__u32)(unsigned long __force) &frame->sregs; in setup_frame32()
419 if (__copy_to_user(&frame->sc, &sc, sizeof(frame->sc))) in setup_frame32()
460 regs->gprs[3] = (__force __u64) &frame->sc; in setup_frame32()
/linux-4.1.27/sound/pci/lola/
Dlola_clock.c195 struct lola_sample_clock *sc; in lola_init_clock_widget() local
196 sc = &chip->clock.sample_clock[idx_list]; in lola_init_clock_widget()
197 sc->type = type; in lola_init_clock_widget()
198 sc->format = format; in lola_init_clock_widget()
199 sc->freq = freq; in lola_init_clock_widget()
/linux-4.1.27/drivers/scsi/aic94xx/
Daic94xx_task.c60 struct scatterlist *sc; in asd_map_scatterlist() local
97 for_each_sg(task->scatter, sc, num_sg, i) { in asd_map_scatterlist()
100 sg->bus_addr = cpu_to_le64((u64)sg_dma_address(sc)); in asd_map_scatterlist()
101 sg->size = cpu_to_le32((u32)sg_dma_len(sc)); in asd_map_scatterlist()
106 for_each_sg(task->scatter, sc, 2, i) { in asd_map_scatterlist()
108 cpu_to_le64((u64)sg_dma_address(sc)); in asd_map_scatterlist()
109 sg_arr[i].size = cpu_to_le32((u32)sg_dma_len(sc)); in asd_map_scatterlist()
118 for_each_sg(task->scatter, sc, num_sg, i) { in asd_map_scatterlist()
120 cpu_to_le64((u64)sg_dma_address(sc)); in asd_map_scatterlist()
121 sg_arr[i].size = cpu_to_le32((u32)sg_dma_len(sc)); in asd_map_scatterlist()
/linux-4.1.27/arch/parisc/lib/
Dmemset.c28 memset (void *dstpp, int sc, size_t len) in memset() argument
30 unsigned int c = sc; in memset()
/linux-4.1.27/arch/c6x/kernel/
Dsignal.c38 struct sigcontext __user *sc) in restore_sigcontext() argument
43 #define COPY(x) (err |= __get_user(regs->x, &sc->sc_##x)) in restore_sigcontext()
100 static int setup_sigcontext(struct sigcontext __user *sc, struct pt_regs *regs, in setup_sigcontext() argument
105 err |= __put_user(mask, &sc->sc_mask); in setup_sigcontext()
108 #define COPY(x) (err |= __put_user(regs->x, &sc->sc_##x)) in setup_sigcontext()
/linux-4.1.27/drivers/media/platform/exynos-gsc/
Dgsc-regs.c349 struct gsc_scaler *sc = &ctx->scaler; in gsc_hw_set_prescaler() local
352 cfg = GSC_PRESC_SHFACTOR(sc->pre_shfactor); in gsc_hw_set_prescaler()
353 cfg |= GSC_PRESC_H_RATIO(sc->pre_hratio); in gsc_hw_set_prescaler()
354 cfg |= GSC_PRESC_V_RATIO(sc->pre_vratio); in gsc_hw_set_prescaler()
361 struct gsc_scaler *sc = &ctx->scaler; in gsc_hw_set_mainscaler() local
364 cfg = GSC_MAIN_H_RATIO_VALUE(sc->main_hratio); in gsc_hw_set_mainscaler()
367 cfg = GSC_MAIN_V_RATIO_VALUE(sc->main_vratio); in gsc_hw_set_mainscaler()
Dgsc-core.c637 struct gsc_scaler *sc = &ctx->scaler; in gsc_set_scaler_info() local
668 tx, &sc->pre_hratio); in gsc_set_scaler_info()
675 ty, &sc->pre_vratio); in gsc_set_scaler_info()
681 gsc_check_src_scale_info(variant, s_frame, &sc->pre_hratio, in gsc_set_scaler_info()
682 tx, ty, &sc->pre_vratio); in gsc_set_scaler_info()
684 gsc_get_prescaler_shfactor(sc->pre_hratio, sc->pre_vratio, in gsc_set_scaler_info()
685 &sc->pre_shfactor); in gsc_set_scaler_info()
687 sc->main_hratio = (s_frame->crop.width << 16) / tx; in gsc_set_scaler_info()
688 sc->main_vratio = (s_frame->crop.height << 16) / ty; in gsc_set_scaler_info()
693 sc->pre_shfactor, sc->pre_hratio); in gsc_set_scaler_info()
[all …]
/linux-4.1.27/arch/avr32/kernel/
Dsignal.c32 restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc) in restore_sigcontext() argument
36 #define COPY(x) err |= __get_user(regs->x, &sc->x) in restore_sigcontext()
102 setup_sigcontext(struct sigcontext __user *sc, struct pt_regs *regs) in setup_sigcontext() argument
106 #define COPY(x) err |= __put_user(regs->x, &sc->x) in setup_sigcontext()
/linux-4.1.27/drivers/gpu/drm/qxl/
Dqxl_release.c63 int count = 0, sc = 0; in qxl_fence_wait() local
72 sc++; in qxl_fence_wait()
90 if (have_drawable_releases || sc < 4) { in qxl_fence_wait()
91 if (sc > 2) in qxl_fence_wait()
98 if (have_drawable_releases && sc > 300) { in qxl_fence_wait()
101 fence->context & ~0xf0000000, sc); in qxl_fence_wait()
/linux-4.1.27/fs/ubifs/
Dshrinker.c280 struct shrink_control *sc) in ubifs_shrink_count() argument
292 struct shrink_control *sc) in ubifs_shrink_scan() argument
294 unsigned long nr = sc->nr_to_scan; in ubifs_shrink_scan()
/linux-4.1.27/drivers/staging/android/ion/
Dion_heap.c269 struct shrink_control *sc) in ion_heap_shrink_count() argument
277 total += heap->ops->shrink(heap, sc->gfp_mask, 0); in ion_heap_shrink_count()
282 struct shrink_control *sc) in ion_heap_shrink_scan() argument
287 int to_scan = sc->nr_to_scan; in ion_heap_shrink_scan()
305 freed += heap->ops->shrink(heap, sc->gfp_mask, to_scan); in ion_heap_shrink_scan()
Dion.c1473 struct shrink_control sc; in debug_shrink_set() local
1476 sc.gfp_mask = -1; in debug_shrink_set()
1477 sc.nr_to_scan = 0; in debug_shrink_set()
1482 objs = heap->shrinker.shrink(&heap->shrinker, &sc); in debug_shrink_set()
1483 sc.nr_to_scan = objs; in debug_shrink_set()
1485 heap->shrinker.shrink(&heap->shrinker, &sc); in debug_shrink_set()
1492 struct shrink_control sc; in debug_shrink_get() local
1495 sc.gfp_mask = -1; in debug_shrink_get()
1496 sc.nr_to_scan = 0; in debug_shrink_get()
1498 objs = heap->shrinker.shrink(&heap->shrinker, &sc); in debug_shrink_get()
/linux-4.1.27/drivers/tty/serial/
Dioc3_serial.c267 char sc[4]; /* status/control */ member
276 #define ring_sc u.s.sc
1125 char *sc; in do_read() local
1242 sc = &(entry->ring_sc[byte_num]); in do_read()
1245 if ((*sc & RXSB_MODEM_VALID) in do_read()
1249 && !(*sc & RXSB_DCD)) { in do_read()
1267 *sc &= ~RXSB_MODEM_VALID; in do_read()
1303 if (*sc & RXSB_MODEM_VALID) { in do_read()
1305 if ((*sc & RXSB_OVERRUN) in do_read()
1310 *sc &= ~RXSB_MODEM_VALID; in do_read()
[all …]
Dioc4_serial.c599 char sc[4]; /* status/control */ member
608 #define ring_sc u.s.sc
2074 char *sc; in do_read() local
2190 sc = &(entry->ring_sc[byte_num]); in do_read()
2193 if ((*sc & IOC4_RXSB_MODEM_VALID) in do_read()
2198 && !(*sc & IOC4_RXSB_DCD)) { in do_read()
2217 *sc &= ~IOC4_RXSB_MODEM_VALID; in do_read()
2252 if (*sc & IOC4_RXSB_MODEM_VALID) { in do_read()
2254 if ((*sc & IOC4_RXSB_OVERRUN) in do_read()
2259 *sc &= ~IOC4_RXSB_MODEM_VALID; in do_read()
[all …]
/linux-4.1.27/drivers/usb/storage/
Dusual-tables.c45 #define UNUSUAL_VENDOR_INTF(id_vendor, cl, sc, pr, \ argument
53 .bInterfaceSubClass = (sc), \
/linux-4.1.27/drivers/scsi/bnx2i/
Dbnx2i_iscsi.c145 struct scsi_cmnd *sc = cmd->scsi_cmd; in bnx2i_map_scsi_sg() local
155 BUG_ON(scsi_sg_count(sc) > ISCSI_MAX_BDS_PER_CMD); in bnx2i_map_scsi_sg()
157 sg_count = scsi_dma_map(sc); in bnx2i_map_scsi_sg()
159 scsi_for_each_sg(sc, sg, sg_count, i) { in bnx2i_map_scsi_sg()
176 BUG_ON(byte_count != scsi_bufflen(sc)); in bnx2i_map_scsi_sg()
209 struct scsi_cmnd *sc = cmd->scsi_cmd; in bnx2i_iscsi_unmap_sg_list() local
211 if (cmd->io_tbl.bd_valid && sc) { in bnx2i_iscsi_unmap_sg_list()
212 scsi_dma_unmap(sc); in bnx2i_iscsi_unmap_sg_list()
1131 static void bnx2i_cpy_scsi_cdb(struct scsi_cmnd *sc, struct bnx2i_cmd *cmd) in bnx2i_cpy_scsi_cdb() argument
1139 int_to_scsilun(sc->device->lun, (struct scsi_lun *) scsi_lun); in bnx2i_cpy_scsi_cdb()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/
Dsec_bulk.c223 struct shrink_control *sc) in enc_pools_shrink_count() argument
245 struct shrink_control *sc) in enc_pools_shrink_scan() argument
248 sc->nr_to_scan = min_t(unsigned long, sc->nr_to_scan, in enc_pools_shrink_scan()
250 if (sc->nr_to_scan > 0) { in enc_pools_shrink_scan()
251 enc_pools_release_free_pages(sc->nr_to_scan); in enc_pools_shrink_scan()
253 (long)sc->nr_to_scan, page_pools.epp_free_pages); in enc_pools_shrink_scan()
272 return sc->nr_to_scan; in enc_pools_shrink_scan()
/linux-4.1.27/arch/tile/kernel/
Dsignal.c46 struct sigcontext __user *sc) in restore_sigcontext() argument
59 err = __copy_from_user(regs, sc, sizeof(*regs)); in restore_sigcontext()
108 int setup_sigcontext(struct sigcontext __user *sc, struct pt_regs *regs) in setup_sigcontext() argument
110 return __copy_to_user(sc, regs, sizeof(*regs)); in setup_sigcontext()
/linux-4.1.27/drivers/isdn/hardware/mISDN/
DmISDNinfineon.c120 struct inf_hw *sc[3]; /* slave cards */ member
886 if (card->sc[i]) in release_card()
887 release_card(card->sc[i]); in release_card()
888 card->sc[i] = NULL; in release_card()
1113 struct inf_hw *sc; in inf_probe() local
1116 sc = kzalloc(sizeof(struct inf_hw), GFP_KERNEL); in inf_probe()
1117 if (!sc) { in inf_probe()
1122 sc->irq = card->irq; in inf_probe()
1123 sc->pdev = card->pdev; in inf_probe()
1124 sc->ci = card->ci + i; in inf_probe()
[all …]
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/
Dwmi.c1957 struct wmi_start_scan_cmd *sc; in ath6kl_wmi_startscan_cmd() local
1976 sc = (struct wmi_start_scan_cmd *) skb->data; in ath6kl_wmi_startscan_cmd()
1977 sc->scan_type = scan_type; in ath6kl_wmi_startscan_cmd()
1978 sc->force_fg_scan = cpu_to_le32(force_fgscan); in ath6kl_wmi_startscan_cmd()
1979 sc->is_legacy = cpu_to_le32(is_legacy); in ath6kl_wmi_startscan_cmd()
1980 sc->home_dwell_time = cpu_to_le32(home_dwell_time); in ath6kl_wmi_startscan_cmd()
1981 sc->force_scan_intvl = cpu_to_le32(force_scan_interval); in ath6kl_wmi_startscan_cmd()
1982 sc->num_ch = num_chan; in ath6kl_wmi_startscan_cmd()
1985 sc->ch_list[i] = cpu_to_le16(ch_list[i]); in ath6kl_wmi_startscan_cmd()
2006 struct wmi_begin_scan_cmd *sc; in ath6kl_wmi_beginscan_cmd() local
[all …]
/linux-4.1.27/include/trace/events/
Dvmscan.h183 TP_PROTO(struct shrinker *shr, struct shrink_control *sc,
188 TP_ARGS(shr, sc, nr_objects_to_shrink, pgs_scanned, lru_pgs,
207 __entry->nid = sc->nid;
209 __entry->gfp_flags = sc->gfp_mask;
/linux-4.1.27/drivers/staging/lustre/lustre/ldlm/
Dldlm_pool.c1157 struct shrink_control *sc) in ldlm_pools_srv_count() argument
1159 return ldlm_pools_count(LDLM_NAMESPACE_SERVER, sc->gfp_mask); in ldlm_pools_srv_count()
1163 struct shrink_control *sc) in ldlm_pools_srv_scan() argument
1165 return ldlm_pools_scan(LDLM_NAMESPACE_SERVER, sc->nr_to_scan, in ldlm_pools_srv_scan()
1166 sc->gfp_mask); in ldlm_pools_srv_scan()
1170 struct shrink_control *sc) in ldlm_pools_cli_count() argument
1172 return ldlm_pools_count(LDLM_NAMESPACE_CLIENT, sc->gfp_mask); in ldlm_pools_cli_count()
1176 struct shrink_control *sc) in ldlm_pools_cli_scan() argument
1178 return ldlm_pools_scan(LDLM_NAMESPACE_CLIENT, sc->nr_to_scan, in ldlm_pools_cli_scan()
1179 sc->gfp_mask); in ldlm_pools_cli_scan()
/linux-4.1.27/drivers/net/wireless/hostap/
Dhostap_80211_rx.c255 u16 sc; in prism2_frag_cache_get() local
259 sc = le16_to_cpu(hdr->seq_ctrl); in prism2_frag_cache_get()
260 frag = sc & IEEE80211_SCTL_FRAG; in prism2_frag_cache_get()
261 seq = (sc & IEEE80211_SCTL_SEQ) >> 4; in prism2_frag_cache_get()
306 u16 sc; in prism2_frag_cache_invalidate() local
310 sc = le16_to_cpu(hdr->seq_ctrl); in prism2_frag_cache_invalidate()
311 seq = (sc & IEEE80211_SCTL_SEQ) >> 4; in prism2_frag_cache_invalidate()
724 u16 fc, type, stype, sc; in hostap_80211_rx() local
756 sc = le16_to_cpu(hdr->seq_ctrl); in hostap_80211_rx()
757 frag = sc & IEEE80211_SCTL_FRAG; in hostap_80211_rx()
[all …]
/linux-4.1.27/drivers/media/platform/s3c-camif/
Dcamif-regs.c367 struct camif_scaler *sc = &vp->scaler; in camif_hw_set_prescaler() local
372 shfactor = 10 - (sc->h_shift + sc->v_shift); in camif_hw_set_prescaler()
375 cfg |= (sc->pre_h_ratio << 16) | sc->pre_v_ratio; in camif_hw_set_prescaler()
378 cfg = (sc->pre_dst_width << 16) | sc->pre_dst_height; in camif_hw_set_prescaler()
/linux-4.1.27/arch/blackfin/include/asm/
Dipipe.h174 #define __ipipe_syscall_watched_p(p, sc) \ argument
175 (ipipe_notifier_enabled_p(p) || (unsigned long)sc >= NR_syscalls)
/linux-4.1.27/arch/m68k/atari/
Datakeyb.c107 #define IS_SYNC_CODE(sc) ((sc) >= 0x04 && (sc) <= 0xfb) argument
/linux-4.1.27/arch/arm/mach-omap2/
Dclockdomains3xxx_data.c500 struct clockdomain **sc; in omap3xxx_clockdomains_init() local
517 sc = (rev == OMAP3430_REV_ES1_0) ? in omap3xxx_clockdomains_init()
520 clkdm_register_clkdms(sc); in omap3xxx_clockdomains_init()
/linux-4.1.27/drivers/net/wireless/ipw2x00/
Dlibipw_rx.c93 u16 sc; in libipw_frag_cache_get() local
97 sc = le16_to_cpu(hdr->seq_ctl); in libipw_frag_cache_get()
98 frag = WLAN_GET_SEQ_FRAG(sc); in libipw_frag_cache_get()
99 seq = WLAN_GET_SEQ_SEQ(sc); in libipw_frag_cache_get()
143 u16 sc; in libipw_frag_cache_invalidate() local
147 sc = le16_to_cpu(hdr->seq_ctl); in libipw_frag_cache_invalidate()
148 seq = WLAN_GET_SEQ_SEQ(sc); in libipw_frag_cache_invalidate()
338 u16 fc, type, stype, sc; in libipw_rx() local
365 sc = le16_to_cpu(hdr->seq_ctl); in libipw_rx()
366 frag = WLAN_GET_SEQ_FRAG(sc); in libipw_rx()
[all …]
/linux-4.1.27/Documentation/isdn/
DREADME.sc122 tar xzf sc-n.nn.tar.gz -C /usr/src/spellcaster
132 Make sure you read the scctrl(8) and sc(4) manual pages before continuing
133 any further. Type 'man 8 scctrl' and 'man 4 sc'.
137 To install the driver, type '/sbin/insmod sc' as root. sc(4) details options
145 "sc" into this file.
150 for more on this) and then type '/sbin/rmmod sc'.
158 If you get a message that says 'initialization of sc failed', then the
161 resources available, use the insmod options detailed in sc(4) to override
166 done with 'cat /proc/interrupts' the interrupt count for sc was 0. In the event
/linux-4.1.27/include/linux/ceph/
Dlibceph.h166 struct ceph_snap_context *sc);
167 extern void ceph_put_snap_context(struct ceph_snap_context *sc);
/linux-4.1.27/drivers/scsi/cxgbi/
Dlibcxgbi.c1686 struct scsi_cmnd *sc = task->sc; in task_release_itt() local
1695 if (sc && in task_release_itt()
1696 (scsi_bidi_cmnd(sc) || sc->sc_data_direction == DMA_FROM_DEVICE) && in task_release_itt()
1703 struct scsi_cmnd *sc = task->sc; in task_reserve_itt() local
1714 if (sc && in task_reserve_itt()
1715 (scsi_bidi_cmnd(sc) || sc->sc_data_direction == DMA_FROM_DEVICE)) { in task_reserve_itt()
1717 scsi_in(sc)->length, in task_reserve_itt()
1718 scsi_in(sc)->table.sgl, in task_reserve_itt()
1719 scsi_in(sc)->table.nents, in task_reserve_itt()
1724 cconn->cep->csk, task, scsi_in(sc)->length, in task_reserve_itt()
[all …]
/linux-4.1.27/drivers/scsi/bnx2fc/
Dbnx2fc_io.c1646 struct scsi_cmnd *sc = io_req->sc_cmd; in bnx2fc_map_sg() local
1661 sg_count = dma_map_sg(&hba->pcidev->dev, scsi_sglist(sc), in bnx2fc_map_sg()
1662 scsi_sg_count(sc), sc->sc_data_direction); in bnx2fc_map_sg()
1663 scsi_for_each_sg(sc, sg, sg_count, i) { in bnx2fc_map_sg()
1680 if (byte_count != scsi_bufflen(sc)) in bnx2fc_map_sg()
1682 "task_id = 0x%x\n", byte_count, scsi_bufflen(sc), in bnx2fc_map_sg()
1689 struct scsi_cmnd *sc = io_req->sc_cmd; in bnx2fc_build_bd_list_from_sg() local
1693 if (scsi_sg_count(sc)) { in bnx2fc_build_bd_list_from_sg()
1709 struct scsi_cmnd *sc = io_req->sc_cmd; in bnx2fc_unmap_sg_list() local
1717 if (io_req->bd_tbl->bd_valid && sc && scsi_sg_count(sc)) { in bnx2fc_unmap_sg_list()
[all …]
/linux-4.1.27/drivers/isdn/
DMakefile13 obj-$(CONFIG_ISDN_DRV_SC) += sc/
/linux-4.1.27/Documentation/filesystems/
Dcoda.txt569 DDeessccrriippttiioonn This call is made to Venus during the initialization of
604 DDeessccrriippttiioonn This call is made to determine the ViceFid and filetype of
649 DDeessccrriippttiioonn This call returns the attributes of the file identified by
687 DDeessccrriippttiioonn The structure attr is filled with attributes to be changed
718 DDeessccrriippttiioonn Verify if access to the object identified by VFid for
759 DDeessccrriippttiioonn This upcall is invoked to request creation of a file.
816 DDeessccrriippttiioonn This call is similar to create but creates a directory.
851 DDeessccrriippttiioonn This call creates a link to the sourceFid in the directory
880 DDeessccrriippttiioonn Create a symbolic link. The link is to be placed in the
911 DDeessccrriippttiioonn Remove file named cfs_remove_in.name in directory
[all …]
/linux-4.1.27/drivers/staging/rtl8192e/
Drtllib_rx.c96 u16 sc = le16_to_cpu(hdr->seq_ctl); in rtllib_frag_cache_get() local
97 unsigned int frag = WLAN_GET_SEQ_FRAG(sc); in rtllib_frag_cache_get()
98 unsigned int seq = WLAN_GET_SEQ_SEQ(sc); in rtllib_frag_cache_get()
165 u16 sc = le16_to_cpu(hdr->seq_ctl); in rtllib_frag_cache_invalidate() local
166 unsigned int seq = WLAN_GET_SEQ_SEQ(sc); in rtllib_frag_cache_invalidate()
362 u16 sc = le16_to_cpu(header->seq_ctl); in is_duplicate_packet() local
363 u16 seq = WLAN_GET_SEQ_SEQ(sc); in is_duplicate_packet()
364 u16 frag = WLAN_GET_SEQ_FRAG(sc); in is_duplicate_packet()
886 u16 fc, sc; in rtllib_rx_check_duplicate() local
892 sc = le16_to_cpu(hdr->seq_ctl); in rtllib_rx_check_duplicate()
[all …]
/linux-4.1.27/fs/nfsd/
Dnfscache.c68 struct shrink_control *sc);
70 struct shrink_control *sc);
299 nfsd_reply_cache_count(struct shrinker *shrink, struct shrink_control *sc) in nfsd_reply_cache_count() argument
305 nfsd_reply_cache_scan(struct shrinker *shrink, struct shrink_control *sc) in nfsd_reply_cache_scan() argument
/linux-4.1.27/arch/powerpc/kernel/vdso32/
Dsigtramp.S29 sc
37 sc
Dgettimeofday.S142 sc
177 sc
/linux-4.1.27/net/netfilter/ipvs/
Dip_vs_sync.c784 ip_vs_conn_fill_param_sync(struct net *net, int af, union ip_vs_sync_conn *sc, in ip_vs_conn_fill_param_sync() argument
791 ip_vs_conn_fill_param(net, af, sc->v6.protocol, in ip_vs_conn_fill_param_sync()
792 (const union nf_inet_addr *)&sc->v6.caddr, in ip_vs_conn_fill_param_sync()
793 sc->v6.cport, in ip_vs_conn_fill_param_sync()
794 (const union nf_inet_addr *)&sc->v6.vaddr, in ip_vs_conn_fill_param_sync()
795 sc->v6.vport, p); in ip_vs_conn_fill_param_sync()
798 ip_vs_conn_fill_param(net, af, sc->v4.protocol, in ip_vs_conn_fill_param_sync()
799 (const union nf_inet_addr *)&sc->v4.caddr, in ip_vs_conn_fill_param_sync()
800 sc->v4.cport, in ip_vs_conn_fill_param_sync()
801 (const union nf_inet_addr *)&sc->v4.vaddr, in ip_vs_conn_fill_param_sync()
[all …]
/linux-4.1.27/arch/s390/include/asm/
Dnmi.h33 __u32 sc : 1; /* 17 storage error corrected */ member
/linux-4.1.27/arch/x86/mm/
Dpageattr-test.c113 struct split_state sa, sb, sc; in pageattr_test() local
221 failed += print_split(&sc); in pageattr_test()
/linux-4.1.27/arch/powerpc/kernel/vdso64/
Dgettimeofday.S127 sc
162 sc
/linux-4.1.27/drivers/staging/rtl8192u/ieee80211/
Dieee80211_rx.c101 u16 sc = le16_to_cpu(hdr->seq_ctl); in ieee80211_frag_cache_get() local
102 unsigned int frag = WLAN_GET_SEQ_FRAG(sc); in ieee80211_frag_cache_get()
103 unsigned int seq = WLAN_GET_SEQ_SEQ(sc); in ieee80211_frag_cache_get()
169 u16 sc = le16_to_cpu(hdr->seq_ctl); in ieee80211_frag_cache_invalidate() local
170 unsigned int seq = WLAN_GET_SEQ_SEQ(sc); in ieee80211_frag_cache_invalidate()
422 u16 sc = le16_to_cpu(header->seq_ctl); in is_duplicate_packet() local
423 u16 seq = WLAN_GET_SEQ_SEQ(sc); in is_duplicate_packet()
424 u16 frag = WLAN_GET_SEQ_FRAG(sc); in is_duplicate_packet()
895 u16 fc, type, stype, sc; in ieee80211_rx() local
936 sc = le16_to_cpu(hdr->seq_ctl); in ieee80211_rx()
[all …]
/linux-4.1.27/net/sched/
Dsch_hfsc.c482 sc2isc(struct tc_service_curve *sc, struct internal_sc *isc) in sc2isc() argument
484 isc->sm1 = m2sm(sc->m1); in sc2isc()
485 isc->ism1 = m2ism(sc->m1); in sc2isc()
486 isc->dx = d2dx(sc->d); in sc2isc()
488 isc->sm2 = m2sm(sc->m2); in sc2isc()
489 isc->ism2 = m2ism(sc->m2); in sc2isc()
1304 hfsc_dump_sc(struct sk_buff *skb, int attr, struct internal_sc *sc) in hfsc_dump_sc() argument
1308 tsc.m1 = sm2m(sc->sm1); in hfsc_dump_sc()
1309 tsc.d = dx2d(sc->dx); in hfsc_dump_sc()
1310 tsc.m2 = sm2m(sc->sm2); in hfsc_dump_sc()
/linux-4.1.27/drivers/net/usb/
Dcx82310_eth.c321 #define USB_DEVICE_CLASS(vend, prod, cl, sc, pr) \ argument
327 .bDeviceSubClass = (sc), \
/linux-4.1.27/net/ieee802154/
Dheader_ops.c206 static int ieee802154_hdr_sechdr_len(u8 sc) in ieee802154_hdr_sechdr_len() argument
208 return ieee802154_sechdr_lengths[IEEE802154_SCF_KEY_ID_MODE(sc)]; in ieee802154_hdr_sechdr_len()
/linux-4.1.27/drivers/scsi/be2iscsi/
Dbe_main.c218 static int beiscsi_eh_abort(struct scsi_cmnd *sc) in beiscsi_eh_abort() argument
221 struct iscsi_task *aborted_task = (struct iscsi_task *)sc->SCp.ptr; in beiscsi_eh_abort()
232 cls_session = starget_to_session(scsi_target(sc->device)); in beiscsi_eh_abort()
236 if (!aborted_task || !aborted_task->sc) { in beiscsi_eh_abort()
293 return iscsi_eh_abort(sc); in beiscsi_eh_abort()
296 static int beiscsi_eh_device_reset(struct scsi_cmnd *sc) in beiscsi_eh_device_reset() argument
311 cls_session = starget_to_session(scsi_target(sc->device)); in beiscsi_eh_device_reset()
328 if (!abrt_task->sc || abrt_task->state == ISCSI_TASK_FREE) in beiscsi_eh_device_reset()
331 if (sc->device->lun != abrt_task->sc->device->lun) in beiscsi_eh_device_reset()
373 return iscsi_eh_device_reset(sc); in beiscsi_eh_device_reset()
[all …]
/linux-4.1.27/drivers/uwb/
Dhwa-rc.c313 struct uwb_rc_cmd_scan *sc; in hwarc_filter_cmd_scan_WUSB_0100() local
315 sc = container_of(*header, struct uwb_rc_cmd_scan, rccb); in hwarc_filter_cmd_scan_WUSB_0100()
317 if (sc->bScanState == UWB_SCAN_ONLY_STARTTIME) in hwarc_filter_cmd_scan_WUSB_0100()
318 sc->bScanState = UWB_SCAN_ONLY; in hwarc_filter_cmd_scan_WUSB_0100()
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
Dd3.c1330 static void iwl_mvm_aes_sc_to_seq(struct aes_sc *sc, in iwl_mvm_aes_sc_to_seq() argument
1335 pn = le64_to_cpu(sc->pn); in iwl_mvm_aes_sc_to_seq()
1344 static void iwl_mvm_tkip_sc_to_seq(struct tkip_sc *sc, in iwl_mvm_tkip_sc_to_seq() argument
1347 seq->tkip.iv32 = le32_to_cpu(sc->iv32); in iwl_mvm_tkip_sc_to_seq()
1348 seq->tkip.iv16 = le16_to_cpu(sc->iv16); in iwl_mvm_tkip_sc_to_seq()
1440 union iwl_all_tsc_rsc *sc = &data->status->gtk.rsc.all_tsc_rsc; in iwl_mvm_d3_update_gtks() local
1447 iwl_mvm_aes_sc_to_seq(&sc->aes.tsc, &seq); in iwl_mvm_d3_update_gtks()
1448 iwl_mvm_set_aes_rx_seq(sc->aes.unicast_rsc, key); in iwl_mvm_d3_update_gtks()
1451 iwl_mvm_tkip_sc_to_seq(&sc->tkip.tsc, &seq); in iwl_mvm_d3_update_gtks()
1452 iwl_mvm_set_tkip_rx_seq(sc->tkip.unicast_rsc, key); in iwl_mvm_d3_update_gtks()

12