/kernel/linux/linux-5.10/drivers/net/wan/lmc/ |
D | lmc_media.c | 156 lmc_dummy_set_1 (lmc_softc_t * const sc, int a) in lmc_dummy_set_1() argument 161 lmc_dummy_set2_1 (lmc_softc_t * const sc, lmc_ctl_t * a) in lmc_dummy_set2_1() argument 170 lmc_hssi_init (lmc_softc_t * const sc) in lmc_hssi_init() argument 172 sc->ictl.cardtype = LMC_CTL_CARDTYPE_LMC5200; in lmc_hssi_init() 174 lmc_gpio_mkoutput (sc, LMC_GEP_HSSI_CLOCK); in lmc_hssi_init() 178 lmc_hssi_default (lmc_softc_t * const sc) in lmc_hssi_default() argument 180 sc->lmc_miireg16 = LMC_MII16_LED_ALL; in lmc_hssi_default() 182 sc->lmc_media->set_link_status (sc, LMC_LINK_DOWN); in lmc_hssi_default() 183 sc->lmc_media->set_clock_source (sc, LMC_CTL_CLOCK_SOURCE_EXT); in lmc_hssi_default() 184 sc->lmc_media->set_crc_length (sc, LMC_CTL_CRC_LENGTH_16); in lmc_hssi_default() [all …]
|
D | lmc_main.c | 95 static void lmc_initcsrs(lmc_softc_t * const sc, lmc_csrptr_t csr_base, size_t csr_size); 100 static void lmc_reset(lmc_softc_t * const sc); 101 static void lmc_dec_reset(lmc_softc_t * const sc); 110 lmc_softc_t *sc = dev_to_sc(dev); in lmc_ioctl() local 127 if (copy_to_user(ifr->ifr_data, &sc->ictl, sizeof(lmc_ctl_t))) in lmc_ioctl() 149 spin_lock_irqsave(&sc->lmc_lock, flags); in lmc_ioctl() 150 sc->lmc_media->set_status (sc, &ctl); in lmc_ioctl() 152 if(ctl.crc_length != sc->ictl.crc_length) { in lmc_ioctl() 153 sc->lmc_media->set_crc_length(sc, ctl.crc_length); in lmc_ioctl() 154 if (sc->ictl.crc_length == LMC_CTL_CRC_LENGTH_16) in lmc_ioctl() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/ |
D | channel.c | 23 static int ath_set_channel(struct ath_softc *sc) in ath_set_channel() argument 25 struct ath_hw *ah = sc->sc_ah; in ath_set_channel() 27 struct ieee80211_hw *hw = sc->hw; in ath_set_channel() 29 struct cfg80211_chan_def *chandef = &sc->cur_chan->chandef; in ath_set_channel() 47 ath_update_survey_stats(sc); in ath_set_channel() 57 if (!sc->cur_chan->offchannel && sc->cur_survey != &sc->survey[pos]) { in ath_set_channel() 58 if (sc->cur_survey) in ath_set_channel() 59 sc->cur_survey->filled &= ~SURVEY_INFO_IN_USE; in ath_set_channel() 61 sc->cur_survey = &sc->survey[pos]; in ath_set_channel() 63 memset(sc->cur_survey, 0, sizeof(struct survey_info)); in ath_set_channel() [all …]
|
D | main.c | 60 static bool ath9k_has_pending_frames(struct ath_softc *sc, struct ath_txq *txq, in ath9k_has_pending_frames() argument 78 acq = &sc->cur_chan->acq[txq->mac80211_qnum]; in ath9k_has_pending_frames() 87 static bool ath9k_setpower(struct ath_softc *sc, enum ath9k_power_mode mode) in ath9k_setpower() argument 92 spin_lock_irqsave(&sc->sc_pm_lock, flags); in ath9k_setpower() 93 ret = ath9k_hw_setpower(sc->sc_ah, mode); in ath9k_setpower() 94 spin_unlock_irqrestore(&sc->sc_pm_lock, flags); in ath9k_setpower() 101 struct ath_softc *sc = from_timer(sc, t, sleep_timer); in ath_ps_full_sleep() local 102 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_ps_full_sleep() 110 ath9k_hw_setrxabort(sc->sc_ah, 1); in ath_ps_full_sleep() 111 ath9k_hw_stopdmarecv(sc->sc_ah, &reset); in ath_ps_full_sleep() [all …]
|
D | recv.c | 23 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 …]
|
D | beacon.c | 22 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 …]
|
D | gpio.c | 25 static void ath_fill_led_pin(struct ath_softc *sc) in ath_fill_led_pin() argument 27 struct ath_hw *ah = sc->sc_ah; in ath_fill_led_pin() 54 struct ath_softc *sc = container_of(led_cdev, struct ath_softc, led_cdev); in ath_led_brightness() local 57 if (sc->sc_ah->config.led_active_high) in ath_led_brightness() 60 ath9k_hw_set_gpio(sc->sc_ah, sc->sc_ah->led_pin, val); in ath_led_brightness() 63 void ath_deinit_leds(struct ath_softc *sc) in ath_deinit_leds() argument 65 if (!sc->led_registered) in ath_deinit_leds() 68 ath_led_brightness(&sc->led_cdev, LED_OFF); in ath_deinit_leds() 69 led_classdev_unregister(&sc->led_cdev); in ath_deinit_leds() 71 ath9k_hw_gpio_free(sc->sc_ah, sc->sc_ah->led_pin); in ath_deinit_leds() [all …]
|
D | tx99.c | 19 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 …]
|
/kernel/linux/linux-5.10/fs/xfs/scrub/ |
D | agheader.c | 25 struct xfs_scrub *sc, in xchk_superblock_xref() argument 28 struct xfs_mount *mp = sc->mp; in xchk_superblock_xref() 29 xfs_agnumber_t agno = sc->sm->sm_agno; in xchk_superblock_xref() 33 if (sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) in xchk_superblock_xref() 38 error = xchk_ag_init(sc, agno, &sc->sa); in xchk_superblock_xref() 39 if (!xchk_xref_process_error(sc, agno, agbno, &error)) in xchk_superblock_xref() 42 xchk_xref_is_used_space(sc, agbno, 1); in xchk_superblock_xref() 43 xchk_xref_is_not_inode_chunk(sc, agbno, 1); in xchk_superblock_xref() 44 xchk_xref_is_owned_by(sc, agbno, 1, &XFS_RMAP_OINFO_FS); in xchk_superblock_xref() 45 xchk_xref_is_not_shared(sc, agbno, 1); in xchk_superblock_xref() [all …]
|
D | common.c | 65 struct xfs_scrub *sc, in __xchk_process_error() argument 77 trace_xchk_deadlock_retry(sc->ip, sc->sm, *error); in __xchk_process_error() 82 sc->sm->sm_flags |= errflag; in __xchk_process_error() 86 trace_xchk_op_error(sc, agno, bno, *error, in __xchk_process_error() 95 struct xfs_scrub *sc, in xchk_process_error() argument 100 return __xchk_process_error(sc, agno, bno, error, in xchk_process_error() 106 struct xfs_scrub *sc, in xchk_xref_process_error() argument 111 return __xchk_process_error(sc, agno, bno, error, in xchk_xref_process_error() 118 struct xfs_scrub *sc, in __xchk_fblock_process_error() argument 130 trace_xchk_deadlock_retry(sc->ip, sc->sm, *error); in __xchk_fblock_process_error() [all …]
|
D | inode.c | 31 struct xfs_scrub *sc, in xchk_setup_inode() argument 40 error = xchk_get_inode(sc, ip); in xchk_setup_inode() 46 return xchk_trans_alloc(sc, 0); in xchk_setup_inode() 52 sc->ilock_flags = XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL; in xchk_setup_inode() 53 xfs_ilock(sc->ip, sc->ilock_flags); in xchk_setup_inode() 54 error = xchk_trans_alloc(sc, 0); in xchk_setup_inode() 57 sc->ilock_flags |= XFS_ILOCK_EXCL; in xchk_setup_inode() 58 xfs_ilock(sc->ip, XFS_ILOCK_EXCL); in xchk_setup_inode() 70 struct xfs_scrub *sc, in xchk_inode_extsize() argument 78 fa = xfs_inode_validate_extsize(sc->mp, be32_to_cpu(dip->di_extsize), in xchk_inode_extsize() [all …]
|
D | rtbitmap.c | 23 struct xfs_scrub *sc, in xchk_setup_rt() argument 28 error = xchk_setup_fs(sc, ip); in xchk_setup_rt() 32 sc->ilock_flags = XFS_ILOCK_EXCL | XFS_ILOCK_RTBITMAP; in xchk_setup_rt() 33 sc->ip = sc->mp->m_rbmip; in xchk_setup_rt() 34 xfs_ilock(sc->ip, sc->ilock_flags); in xchk_setup_rt() 48 struct xfs_scrub *sc = priv; in xchk_rtbitmap_rec() local 56 !xfs_verify_rtbno(sc->mp, startblock) || in xchk_rtbitmap_rec() 57 !xfs_verify_rtbno(sc->mp, startblock + blockcount - 1)) in xchk_rtbitmap_rec() 58 xchk_fblock_set_corrupt(sc, XFS_DATA_FORK, 0); in xchk_rtbitmap_rec() 65 struct xfs_scrub *sc) in xchk_rtbitmap_check_extents() argument [all …]
|
D | repair.c | 41 struct xfs_scrub *sc) in xrep_attempt() argument 45 trace_xrep_attempt(ip, sc->sm, error); in xrep_attempt() 47 xchk_ag_btcur_free(&sc->sa); in xrep_attempt() 50 ASSERT(sc->ops->repair); in xrep_attempt() 51 error = sc->ops->repair(sc); in xrep_attempt() 52 trace_xrep_done(ip, sc->sm, error); in xrep_attempt() 59 sc->sm->sm_flags &= ~XFS_SCRUB_FLAGS_OUT; in xrep_attempt() 60 sc->flags |= XREP_ALREADY_FIXED; in xrep_attempt() 65 if (!(sc->flags & XCHK_TRY_HARDER)) { in xrep_attempt() 66 sc->flags |= XCHK_TRY_HARDER; in xrep_attempt() [all …]
|
D | common.h | 16 struct xfs_scrub *sc, in xchk_should_terminate() argument 34 int xchk_trans_alloc(struct xfs_scrub *sc, uint resblks); 35 bool xchk_process_error(struct xfs_scrub *sc, xfs_agnumber_t agno, 37 bool xchk_fblock_process_error(struct xfs_scrub *sc, int whichfork, 40 bool xchk_xref_process_error(struct xfs_scrub *sc, 42 bool xchk_fblock_xref_process_error(struct xfs_scrub *sc, 45 void xchk_block_set_preen(struct xfs_scrub *sc, 47 void xchk_ino_set_preen(struct xfs_scrub *sc, xfs_ino_t ino); 49 void xchk_set_corrupt(struct xfs_scrub *sc); 50 void xchk_block_set_corrupt(struct xfs_scrub *sc, [all …]
|
D | parent.c | 23 struct xfs_scrub *sc, in xchk_setup_parent() argument 26 return xchk_setup_inode_contents(sc, ip, 0); in xchk_setup_parent() 35 struct xfs_scrub *sc; member 63 if (xchk_should_terminate(spc->sc, &error)) in xchk_parent_actor() 72 struct xfs_scrub *sc, in xchk_parent_count_parent_dentries() argument 78 .ino = sc->ip->i_ino, in xchk_parent_count_parent_dentries() 79 .sc = sc, in xchk_parent_count_parent_dentries() 108 error = xfs_readdir(sc->tp, parent, &spc.dc, bufsize); in xchk_parent_count_parent_dentries() 131 struct xfs_scrub *sc, in xchk_parent_validate() argument 135 struct xfs_mount *mp = sc->mp; in xchk_parent_validate() [all …]
|
D | quota.c | 23 struct xfs_scrub *sc) in xchk_quota_to_dqtype() argument 25 switch (sc->sm->sm_type) { in xchk_quota_to_dqtype() 40 struct xfs_scrub *sc, in xchk_setup_quota() argument 46 if (!XFS_IS_QUOTA_RUNNING(sc->mp) || !XFS_IS_QUOTA_ON(sc->mp)) in xchk_setup_quota() 49 dqtype = xchk_quota_to_dqtype(sc); in xchk_setup_quota() 52 sc->flags |= XCHK_HAS_QUOTAOFFLOCK; in xchk_setup_quota() 53 mutex_lock(&sc->mp->m_quotainfo->qi_quotaofflock); in xchk_setup_quota() 54 if (!xfs_this_quota_on(sc->mp, dqtype)) in xchk_setup_quota() 56 error = xchk_setup_fs(sc, ip); in xchk_setup_quota() 59 sc->ip = xfs_quota_inode(sc->mp, dqtype); in xchk_setup_quota() [all …]
|
D | bmap.c | 29 struct xfs_scrub *sc, in xchk_setup_inode_bmap() argument 34 error = xchk_get_inode(sc, ip); in xchk_setup_inode_bmap() 38 sc->ilock_flags = XFS_IOLOCK_EXCL | XFS_MMAPLOCK_EXCL; in xchk_setup_inode_bmap() 39 xfs_ilock(sc->ip, sc->ilock_flags); in xchk_setup_inode_bmap() 46 if (S_ISREG(VFS_I(sc->ip)->i_mode) && in xchk_setup_inode_bmap() 47 sc->sm->sm_type == XFS_SCRUB_TYPE_BMBTD) { in xchk_setup_inode_bmap() 48 struct address_space *mapping = VFS_I(sc->ip)->i_mapping; in xchk_setup_inode_bmap() 50 inode_dio_wait(VFS_I(sc->ip)); in xchk_setup_inode_bmap() 73 error = xchk_trans_alloc(sc, 0); in xchk_setup_inode_bmap() 76 sc->ilock_flags |= XFS_ILOCK_EXCL; in xchk_setup_inode_bmap() [all …]
|
/kernel/linux/linux-5.10/drivers/clk/qcom/ |
D | gdsc.c | 59 static int gdsc_check_status(struct gdsc *sc, enum gdsc_status status) in gdsc_check_status() argument 65 if (sc->flags & POLL_CFG_GDSCR) in gdsc_check_status() 66 reg = sc->gdscr + CFG_GDSCR_OFFSET; in gdsc_check_status() 67 else if (sc->gds_hw_ctrl) in gdsc_check_status() 68 reg = sc->gds_hw_ctrl; in gdsc_check_status() 70 reg = sc->gdscr; in gdsc_check_status() 72 ret = regmap_read(sc->regmap, reg, &val); in gdsc_check_status() 76 if (sc->flags & POLL_CFG_GDSCR) { in gdsc_check_status() 95 static int gdsc_hwctrl(struct gdsc *sc, bool en) in gdsc_hwctrl() argument 99 return regmap_update_bits(sc->regmap, sc->gdscr, HW_CONTROL_MASK, val); in gdsc_hwctrl() [all …]
|
/kernel/linux/linux-5.10/drivers/hid/ |
D | hid-sony.c | 583 static void sony_set_leds(struct sony_sc *sc); 585 static inline void sony_schedule_work(struct sony_sc *sc, in sony_schedule_work() argument 592 spin_lock_irqsave(&sc->lock, flags); in sony_schedule_work() 593 if (!sc->defer_initialization && sc->state_worker_initialized) in sony_schedule_work() 594 schedule_work(&sc->state_worker); in sony_schedule_work() 595 spin_unlock_irqrestore(&sc->lock, flags); in sony_schedule_work() 598 if (sc->hotplug_worker_initialized) in sony_schedule_work() 599 schedule_work(&sc->hotplug_worker); in sony_schedule_work() 609 struct sony_sc *sc = hid_get_drvdata(hdev); in ds4_show_poll_interval() local 611 return snprintf(buf, PAGE_SIZE, "%i\n", sc->ds4_bt_poll_interval); in ds4_show_poll_interval() [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/snic/ |
D | snic_scsi.c | 36 #define snic_cmd_tag(sc) (((struct scsi_cmnd *) sc)->request->tag) argument 112 snic_io_lock_hash(struct snic *snic, struct scsi_cmnd *sc) in snic_io_lock_hash() argument 114 u32 hash = snic_cmd_tag(sc) & (SNIC_IO_LOCKS - 1); in snic_io_lock_hash() 129 struct scsi_cmnd *sc) in snic_release_req_buf() argument 134 SNIC_BUG_ON(!((CMD_STATE(sc) == SNIC_IOREQ_COMPLETE) || in snic_release_req_buf() 135 (CMD_STATE(sc) == SNIC_IOREQ_ABTS_COMPLETE) || in snic_release_req_buf() 136 (CMD_FLAGS(sc) & SNIC_DEV_RST_NOTSUP) || in snic_release_req_buf() 137 (CMD_FLAGS(sc) & SNIC_IO_INTERNAL_TERM_ISSUED) || in snic_release_req_buf() 138 (CMD_FLAGS(sc) & SNIC_DEV_RST_TERM_ISSUED) || in snic_release_req_buf() 139 (CMD_FLAGS(sc) & SNIC_SCSI_CLEANUP) || in snic_release_req_buf() [all …]
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/ |
D | pio.c | 57 static void sc_wait_for_packet_egress(struct send_context *sc, int pause); 561 static void cr_group_addresses(struct send_context *sc, dma_addr_t *dma) in cr_group_addresses() argument 563 u32 gc = group_context(sc->hw_context, sc->group); in cr_group_addresses() 564 u32 index = sc->hw_context & 0x7; in cr_group_addresses() 566 sc->hw_free = &sc->dd->cr_base[sc->node].va[gc].cr[index]; in cr_group_addresses() 568 &((struct credit_return *)sc->dd->cr_base[sc->node].dma)[gc]; in cr_group_addresses() 577 struct send_context *sc; in sc_halted() local 579 sc = container_of(work, struct send_context, halt_work); in sc_halted() 580 sc_restart(sc); in sc_halted() 593 u32 sc_mtu_to_threshold(struct send_context *sc, u32 mtu, u32 hdrqentsize) in sc_mtu_to_threshold() argument [all …]
|
/kernel/linux/linux-5.10/drivers/usb/atm/ |
D | ueagle-atm.c | 253 #define IS_OPERATIONAL(sc) \ argument 254 ((UEA_CHIP_VERSION(sc) != EAGLE_IV) ? \ 255 (GET_STATUS(sc->stats.phy.state) == 2) : \ 256 (sc->stats.phy.state == 7)) 547 #define uea_wait(sc, cond, timeo) \ argument 549 int _r = wait_event_interruptible_timeout(sc->sync_q, \ 558 if (sc->usbatm->atm_dev) \ 559 sc->usbatm->atm_dev->type = val; \ 564 if (sc->usbatm->atm_dev) \ 565 atm_dev_signal_change(sc->usbatm->atm_dev, val); \ [all …]
|
/kernel/linux/linux-5.10/mm/ |
D | memcg_reclaim.c | 16 static inline bool is_swap_not_allowed(struct scan_control *sc, int swappiness) in is_swap_not_allowed() argument 18 return !sc->may_swap || !swappiness || !get_nr_swap_pages(); in is_swap_not_allowed() 32 struct scan_control *sc, unsigned long *nr, in get_scan_count_hyperhold() argument 49 if (cgroup_reclaim(sc) && !swappiness) { in get_scan_count_hyperhold() 59 if (!sc->priority && swappiness) { in get_scan_count_hyperhold() 64 if (!cgroup_reclaim(sc)) { in get_scan_count_hyperhold() 86 sc->reclaim_idx) >> in get_scan_count_hyperhold() 87 (unsigned int)sc->priority)) { in get_scan_count_hyperhold() 106 lruvec_lru_size(lruvec, LRU_INACTIVE_FILE, sc->reclaim_idx) >> sc->priority) { in get_scan_count_hyperhold() 128 total_cost = sc->anon_cost + sc->file_cost; in get_scan_count_hyperhold() [all …]
|
/kernel/linux/linux-5.10/drivers/md/ |
D | dm-stripe.c | 53 struct stripe_c *sc = container_of(work, struct stripe_c, in trigger_event() local 55 dm_table_event(sc->ti->table); in trigger_event() 61 static int get_stripe(struct dm_target *ti, struct stripe_c *sc, in get_stripe() argument 72 &sc->stripe[stripe].dev); in get_stripe() 76 sc->stripe[stripe].physical_start = start; in get_stripe() 87 struct stripe_c *sc; in stripe_ctr() local 132 sc = kmalloc(struct_size(sc, stripe, stripes), GFP_KERNEL); in stripe_ctr() 133 if (!sc) { in stripe_ctr() 139 INIT_WORK(&sc->trigger_event, trigger_event); in stripe_ctr() 142 sc->ti = ti; in stripe_ctr() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/ |
D | hif.h | 12 u32 (*read32)(struct ath11k_base *sc, u32 address); 13 void (*write32)(struct ath11k_base *sc, u32 address, u32 data); 14 void (*irq_enable)(struct ath11k_base *sc); 15 void (*irq_disable)(struct ath11k_base *sc); 16 int (*start)(struct ath11k_base *sc); 17 void (*stop)(struct ath11k_base *sc); 18 int (*power_up)(struct ath11k_base *sc); 19 void (*power_down)(struct ath11k_base *sc); 20 int (*map_service_to_pipe)(struct ath11k_base *sc, u16 service_id, 29 static inline int ath11k_hif_start(struct ath11k_base *sc) in ath11k_hif_start() argument [all …]
|