| /linux/fs/f2fs/ |
| H A D | debug.c | 34 struct f2fs_stat_info *si = F2FS_STAT(sbi); in f2fs_update_sit_info() local 55 si->bimodal = div64_u64(bimodal, dist); in f2fs_update_sit_info() 56 if (si->dirty_count) in f2fs_update_sit_info() 57 si->avg_vblocks = div_u64(total_vblocks, ndirty); in f2fs_update_sit_info() 59 si->avg_vblocks = 0; in f2fs_update_sit_info() 65 struct f2fs_stat_info *si = F2FS_STAT(sbi); in update_multidevice_stats() local 66 struct f2fs_dev_stats *dev_stats = si->dev_stats; in update_multidevice_stats() 129 struct f2fs_stat_info *si = F2FS_STAT(sbi); in update_general_status() local 134 si->main_area_segs = le32_to_cpu(raw_super->segment_count_main); in update_general_status() 135 si in update_general_status() 301 struct f2fs_stat_info *si = F2FS_STAT(sbi); update_mem_info() local 441 struct f2fs_stat_info *si; stat_show() local 774 struct f2fs_stat_info *si; f2fs_build_stats() local 836 struct f2fs_stat_info *si = F2FS_STAT(sbi); f2fs_destroy_stats() local [all...] |
| /linux/fs/ocfs2/ |
| H A D | slot_map.c | 44 static int __ocfs2_node_num_to_slot(struct ocfs2_slot_info *si, 50 static void ocfs2_invalidate_slot(struct ocfs2_slot_info *si, in ocfs2_invalidate_slot() 53 BUG_ON((slot_num < 0) || (slot_num >= si->si_num_slots)); 54 si->si_slots[slot_num].sl_valid = 0; in ocfs2_set_slot() argument 57 static void ocfs2_set_slot(struct ocfs2_slot_info *si, in ocfs2_set_slot() 60 BUG_ON((slot_num < 0) || (slot_num >= si->si_num_slots)); in ocfs2_set_slot() 62 si->si_slots[slot_num].sl_valid = 1; 63 si->si_slots[slot_num].sl_node_num = node_num; 67 static void ocfs2_update_slot_info_extended(struct ocfs2_slot_info *si) in ocfs2_update_slot_info_extended() 73 for (b = 0; b < si in ocfs2_update_slot_info_extended() 47 ocfs2_invalidate_slot(struct ocfs2_slot_info * si,int slot_num) ocfs2_invalidate_slot() argument 64 ocfs2_update_slot_info_extended(struct ocfs2_slot_info * si) ocfs2_update_slot_info_extended() argument 89 ocfs2_update_slot_info_old(struct ocfs2_slot_info * si) ocfs2_update_slot_info_old() argument 104 ocfs2_update_slot_info(struct ocfs2_slot_info * si) ocfs2_update_slot_info() argument 119 struct ocfs2_slot_info *si = osb->slot_info; ocfs2_refresh_slot_info() local 147 ocfs2_update_disk_slot_extended(struct ocfs2_slot_info * si,int slot_num,struct buffer_head ** bh) ocfs2_update_disk_slot_extended() argument 165 ocfs2_update_disk_slot_old(struct ocfs2_slot_info * si,int slot_num,struct buffer_head ** bh) ocfs2_update_disk_slot_old() argument 184 ocfs2_update_disk_slot(struct ocfs2_super * osb,struct ocfs2_slot_info * si,int slot_num) ocfs2_update_disk_slot() argument 233 __ocfs2_node_num_to_slot(struct ocfs2_slot_info * si,unsigned int node_num) __ocfs2_node_num_to_slot() argument 249 __ocfs2_find_empty_slot(struct ocfs2_slot_info * si,int preferred) __ocfs2_find_empty_slot() argument 274 struct ocfs2_slot_info *si = osb->slot_info; ocfs2_node_num_to_slot() local 286 struct ocfs2_slot_info *si = osb->slot_info; ocfs2_slot_to_node_num_locked() local 300 __ocfs2_free_slot_info(struct ocfs2_slot_info * si) __ocfs2_free_slot_info() argument 323 struct ocfs2_slot_info *si = osb->slot_info; ocfs2_clear_slot() local 336 ocfs2_map_slot_buffers(struct ocfs2_super * osb,struct ocfs2_slot_info * si) ocfs2_map_slot_buffers() argument 403 struct ocfs2_slot_info *si; ocfs2_init_slot_info() local 440 struct ocfs2_slot_info *si = osb->slot_info; ocfs2_free_slot_info() local 450 struct ocfs2_slot_info *si; ocfs2_find_slot() local 502 struct ocfs2_slot_info *si = osb->slot_info; ocfs2_put_slot() local [all...] |
| /linux/fs/xfs/scrub/ |
| H A D | xfarray.c | 374 # define xfarray_sort_bump_loads(si) do { (si)->loads++; } while (0) argument 375 # define xfarray_sort_bump_stores(si) do { (si)->stores++; } while (0) argument 376 # define xfarray_sort_bump_compares(si) do { (si)->compares++; } while (0) argument 377 # define xfarray_sort_bump_heapsorts(si) do { (si)->heapsorts++; } while (0) argument 379 # define xfarray_sort_bump_loads(si) argument 380 # define xfarray_sort_bump_stores(si) argument 381 xfarray_sort_bump_compares(si) global() argument 382 xfarray_sort_bump_heapsorts(si) global() argument 388 xfarray_sort_load(struct xfarray_sortinfo * si,xfarray_idx_t idx,void * ptr) xfarray_sort_load() argument 399 xfarray_sort_store(struct xfarray_sortinfo * si,xfarray_idx_t idx,void * ptr) xfarray_sort_store() argument 410 xfarray_sort_cmp(struct xfarray_sortinfo * si,const void * a,const void * b) xfarray_sort_cmp() argument 419 xfarray_sortinfo_lo(struct xfarray_sortinfo * si) xfarray_sortinfo_lo() argument 425 xfarray_sortinfo_hi(struct xfarray_sortinfo * si) xfarray_sortinfo_hi() argument 446 struct xfarray_sortinfo *si; xfarray_sortinfo_alloc() local 487 xfarray_sortinfo_lo(si)[0] = 0; xfarray_sortinfo_alloc() local 488 xfarray_sortinfo_hi(si)[0] = array->nr - 1; xfarray_sortinfo_alloc() local 501 xfarray_sort_terminated(struct xfarray_sortinfo * si,int * error) xfarray_sort_terminated() argument 520 xfarray_want_isort(struct xfarray_sortinfo * si,xfarray_idx_t start,xfarray_idx_t end) xfarray_want_isort() argument 532 xfarray_sortinfo_isort_scratch(struct xfarray_sortinfo * si) xfarray_sortinfo_isort_scratch() argument 543 xfarray_isort(struct xfarray_sortinfo * si,xfarray_idx_t lo,xfarray_idx_t hi) xfarray_isort() argument 573 xfarray_foliosort(struct xfarray_sortinfo * si,xfarray_idx_t lo,xfarray_idx_t hi) xfarray_foliosort() argument 605 xfarray_sortinfo_pivot(struct xfarray_sortinfo * si) xfarray_sortinfo_pivot() argument 613 xfarray_sortinfo_pivot_array(struct xfarray_sortinfo * si) xfarray_sortinfo_pivot_array() argument 650 xfarray_qsort_pivot(struct xfarray_sortinfo * si,xfarray_idx_t lo,xfarray_idx_t hi) xfarray_qsort_pivot() argument 757 xfarray_qsort_push(struct xfarray_sortinfo * si,xfarray_idx_t * si_lo,xfarray_idx_t * si_hi,xfarray_idx_t lo,xfarray_idx_t hi) xfarray_qsort_push() argument 791 xfarray_sort_scan_done(struct xfarray_sortinfo * si) xfarray_sort_scan_done() argument 806 xfarray_sort_scan(struct xfarray_sortinfo * si,xfarray_idx_t idx,void ** ptrp) xfarray_sort_scan() argument 909 struct xfarray_sortinfo *si; xfarray_sort() local [all...] |
| /linux/mm/ |
| H A D | swapfile.c | 57 static void swap_range_alloc(struct swap_info_struct *si, 60 static void swap_put_entry_locked(struct swap_info_struct *si, 64 static void move_cluster(struct swap_info_struct *si, 122 struct swap_info_struct *si[SWAP_NR_ORDERS]; member 128 .si = { NULL }, 162 static long swap_usage_in_pages(struct swap_info_struct *si) 164 return atomic_long_read(&si->inuse_pages) & SWAP_USAGE_COUNTER_MASK; 177 static bool swap_only_has_cache(struct swap_info_struct *si, 182 unsigned char *map = si->swap_map + offset; in swap_only_has_cache() argument 202 static int __try_to_reclaim_swap(struct swap_info_struct *si, in swap_is_last_map() 167 swap_usage_in_pages(struct swap_info_struct * si) swap_usage_in_pages() argument 197 swap_is_last_map(struct swap_info_struct * si,unsigned long offset,int nr_pages,bool * has_cache) swap_is_last_map() argument 221 __try_to_reclaim_swap(struct swap_info_struct * si,unsigned long offset,unsigned long flags) __try_to_reclaim_swap() argument 301 discard_swap(struct swap_info_struct * si) discard_swap() argument 371 discard_swap_cluster(struct swap_info_struct * si,pgoff_t start_page,pgoff_t nr_pages) discard_swap_cluster() argument 424 cluster_index(struct swap_info_struct * si,struct swap_cluster_info * ci) cluster_index() argument 430 cluster_offset(struct swap_info_struct * si,struct swap_cluster_info * ci) cluster_offset() argument 489 swap_cluster_alloc_table(struct swap_info_struct * si,struct swap_cluster_info * ci) swap_cluster_alloc_table() argument 552 move_cluster(struct swap_info_struct * si,struct swap_cluster_info * ci,struct list_head * list,enum swap_cluster_flags new_flags) move_cluster() argument 571 swap_cluster_schedule_discard(struct swap_info_struct * si,struct swap_cluster_info * ci) swap_cluster_schedule_discard() argument 579 __free_cluster(struct swap_info_struct * si,struct swap_cluster_info * ci) __free_cluster() argument 596 isolate_lock_cluster(struct swap_info_struct * si,struct list_head * list) isolate_lock_cluster() argument 633 swap_do_scheduled_discard(struct swap_info_struct * si) swap_do_scheduled_discard() argument 670 struct swap_info_struct *si; swap_discard_work() local 679 struct swap_info_struct *si; swap_users_ref_free() local 689 free_cluster(struct swap_info_struct * si,struct swap_cluster_info * ci) free_cluster() argument 713 partial_free_cluster(struct swap_info_struct * si,struct swap_cluster_info * ci) partial_free_cluster() argument 729 relocate_cluster(struct swap_info_struct * si,struct swap_cluster_info * ci) relocate_cluster() argument 780 cluster_reclaim_range(struct swap_info_struct * si,struct swap_cluster_info * ci,unsigned long start,unsigned long end) cluster_reclaim_range() argument 818 cluster_scan_range(struct swap_info_struct * si,struct swap_cluster_info * ci,unsigned long start,unsigned int nr_pages,bool * need_reclaim) cluster_scan_range() argument 866 cluster_alloc_range(struct swap_info_struct * si,struct swap_cluster_info * ci,unsigned int start,unsigned char usage,unsigned int order) cluster_alloc_range() argument 893 alloc_swap_scan_cluster(struct swap_info_struct * si,struct swap_cluster_info * ci,unsigned long offset,unsigned int order,unsigned char usage) alloc_swap_scan_cluster() argument 950 alloc_swap_scan_list(struct swap_info_struct * si,struct list_head * list,unsigned int order,unsigned char usage,bool scan_all) alloc_swap_scan_list() argument 973 swap_reclaim_full_clusters(struct swap_info_struct * si,bool force) swap_reclaim_full_clusters() argument 1015 struct swap_info_struct *si; swap_reclaim_work() local 1026 cluster_alloc_swap_entry(struct swap_info_struct * si,int order,unsigned char usage) cluster_alloc_swap_entry() argument 1130 del_from_avail_list(struct swap_info_struct * si,bool swapoff) del_from_avail_list() argument 1167 add_to_avail_list(struct swap_info_struct * si,bool swapon) add_to_avail_list() argument 1212 swap_usage_add(struct swap_info_struct * si,unsigned int nr_entries) swap_usage_add() argument 1228 swap_usage_sub(struct swap_info_struct * si,unsigned int nr_entries) swap_usage_sub() argument 1240 swap_range_alloc(struct swap_info_struct * si,unsigned int nr_entries) swap_range_alloc() argument 1250 swap_range_free(struct swap_info_struct * si,unsigned long offset,unsigned int nr_entries) swap_range_free() argument 1289 get_swap_device_info(struct swap_info_struct * si) get_swap_device_info() argument 1313 struct swap_info_struct *si; swap_alloc_fast() local 1345 struct swap_info_struct *si, *next; swap_alloc_slow() local 1388 struct swap_info_struct *si, *next; swap_sync_discard() local 1477 struct swap_info_struct *si; _swap_info_get() local 1509 swap_entry_put_locked(struct swap_info_struct * si,struct swap_cluster_info * ci,swp_entry_t entry,unsigned char usage) swap_entry_put_locked() argument 1592 struct swap_info_struct *si; get_swap_device() local 1617 swap_entries_put_cache(struct swap_info_struct * si,swp_entry_t entry,int nr) swap_entries_put_cache() argument 1633 swap_entries_put_map(struct swap_info_struct * si,swp_entry_t entry,int nr) swap_entries_put_map() argument 1678 swap_entries_put_map_nr(struct swap_info_struct * si,swp_entry_t entry,int nr) swap_entries_put_map_nr() argument 1711 swap_entries_free(struct swap_info_struct * si,struct swap_cluster_info * ci,swp_entry_t entry,unsigned int nr_pages) swap_entries_free() argument 1767 struct swap_info_struct *si; put_swap_folio() local 1779 struct swap_info_struct *si = __swap_entry_to_info(entry); __swap_count() local 1790 swap_entry_swapped(struct swap_info_struct * si,swp_entry_t entry) swap_entry_swapped() argument 1809 struct swap_info_struct *si; swp_swapcount() local 1848 swap_page_trans_huge_swapped(struct swap_info_struct * si,swp_entry_t entry,int order) swap_page_trans_huge_swapped() argument 1879 struct swap_info_struct *si = _swap_info_get(entry); folio_swapped() local 1955 struct swap_info_struct *si; free_swap_and_cache_nr() local 2010 struct swap_info_struct *si = swap_type_to_info(type); get_swap_page_of_type() local 2095 struct swap_info_struct *si = swap_type_to_info(type); swapdev_block() local 2254 struct swap_info_struct *si; unuse_pte_range() local 2429 find_next_to_unuse(struct swap_info_struct * si,unsigned int prev) find_next_to_unuse() argument 2461 struct swap_info_struct *si = swap_info[type]; try_to_unuse() local 2703 setup_swap_info(struct swap_info_struct * si,int prio,unsigned char * swap_map,struct swap_cluster_info * cluster_info,unsigned long * zeromap) setup_swap_info() argument 2720 _enable_swap_info(struct swap_info_struct * si) _enable_swap_info() argument 2733 enable_swap_info(struct swap_info_struct * si,int prio,unsigned char * swap_map,struct swap_cluster_info * cluster_info,unsigned long * zeromap) enable_swap_info() argument 2754 reinsert_swap_info(struct swap_info_struct * si) reinsert_swap_info() argument 2768 wait_for_allocation(struct swap_info_struct * si) wait_for_allocation() argument 2807 flush_percpu_swap_cluster(struct swap_info_struct * si) flush_percpu_swap_cluster() argument 2990 struct swap_info_struct *si; swap_start() local 3011 struct swap_info_struct *si = v; swap_next() local 3036 struct swap_info_struct *si = v; swap_show() local 3168 claim_swapfile(struct swap_info_struct * si,struct inode * inode) claim_swapfile() argument 3225 read_swap_header(struct swap_info_struct * si,union swap_header * swap_header,struct inode * inode) read_swap_header() argument 3288 setup_swap_map(struct swap_info_struct * si,union swap_header * swap_header,unsigned char * swap_map,unsigned long maxpages) setup_swap_map() argument 3314 setup_clusters(struct swap_info_struct * si,union swap_header * swap_header,unsigned long maxpages) setup_clusters() argument 3394 struct swap_info_struct *si; SYSCALL_DEFINE2() local 3652 struct swap_info_struct *si = swap_info[type]; si_swapinfo() local 3674 struct swap_info_struct *si; __swap_duplicate() local 3791 swapcache_clear(struct swap_info_struct * si,swp_entry_t entry,int nr) swapcache_clear() argument 3813 struct swap_info_struct *si; add_swap_count_continuation() local 3916 swap_count_continued(struct swap_info_struct * si,pgoff_t offset,unsigned char count) swap_count_continued() argument 4000 free_swap_count_continuations(struct swap_info_struct * si) free_swap_count_continuations() argument 4026 struct swap_info_struct *si; __folio_throttle_swaprate() local [all...] |
| H A D | swap.h | 71 struct swap_info_struct *si; in __swap_type_to_info() local 73 si = READ_ONCE(swap_info[type]); /* rcu_dereference() */ in __swap_type_to_info() 74 VM_WARN_ON_ONCE(percpu_ref_is_zero(&si->users)); /* race with swapoff */ in __swap_type_to_info() 75 return si; in __swap_type_to_info() 84 struct swap_info_struct *si, pgoff_t offset) in __swap_offset_to_cluster() argument 86 VM_WARN_ON_ONCE(percpu_ref_is_zero(&si->users)); /* race with swapoff */ in __swap_offset_to_cluster() 87 VM_WARN_ON_ONCE(offset >= si->max); in __swap_offset_to_cluster() 88 return &si->cluster_info[offset / SWAPFILE_CLUSTER]; in __swap_offset_to_cluster() 98 struct swap_info_struct *si, unsigned long offset, bool irq) in __swap_cluster_lock() argument 100 struct swap_cluster_info *ci = __swap_offset_to_cluster(si, offse in __swap_cluster_lock() 129 swap_cluster_lock(struct swap_info_struct * si,unsigned long offset) swap_cluster_lock() argument 306 struct swap_info_struct *si = __swap_entry_to_info(entry); non_swapcache_batch() local 326 swap_cluster_lock(struct swap_info_struct * si,pgoff_t offset,bool irq) swap_cluster_lock() argument 400 swapcache_clear(struct swap_info_struct * si,swp_entry_t entry,int nr) swapcache_clear() argument [all...] |
| /linux/drivers/net/ethernet/freescale/enetc/ |
| H A D | enetc_pf.c | 15 static void enetc_pf_get_primary_mac_addr(struct enetc_hw *hw, int si, u8 *addr) in enetc_pf_get_primary_mac_addr() argument 17 u32 upper = __raw_readl(hw->port + ENETC_PSIPMAR0(si)); in enetc_pf_get_primary_mac_addr() 18 u16 lower = __raw_readw(hw->port + ENETC_PSIPMAR1(si)); in enetc_pf_get_primary_mac_addr() 24 static void enetc_pf_set_primary_mac_addr(struct enetc_hw *hw, int si, in enetc_pf_set_primary_mac_addr() argument 30 __raw_writel(upper, hw->port + ENETC_PSIPMAR0(si)); in enetc_pf_set_primary_mac_addr() 31 __raw_writew(lower, hw->port + ENETC_PSIPMAR1(si)); in enetc_pf_set_primary_mac_addr() 56 enetc_set_vlan_promisc(&pf->si->hw, pf->vlan_promisc_simap); in enetc_enable_si_vlan_promisc() 62 enetc_set_vlan_promisc(&pf->si->hw, pf->vlan_promisc_simap); in enetc_disable_si_vlan_promisc() 65 static void enetc_set_isol_vlan(struct enetc_hw *hw, int si, u16 vlan, u8 qos) in enetc_set_isol_vlan() argument 72 enetc_port_wr(hw, ENETC_PSIVLANR(si), val); in enetc_set_isol_vlan() [all …]
|
| H A D | enetc4_pf.c | 26 struct enetc_hw *hw = &pf->si->hw; in enetc4_get_port_caps() 44 static void enetc4_get_psi_hw_features(struct enetc_si *si) in enetc4_get_psi_hw_features() argument 46 struct enetc_hw *hw = &si->hw; in enetc4_get_psi_hw_features() 51 si->hw_features |= ENETC_SI_F_PPM; in enetc4_get_psi_hw_features() 54 static void enetc4_pf_set_si_primary_mac(struct enetc_hw *hw, int si, in enetc4_pf_set_si_primary_mac() argument 60 if (si != 0) { in enetc4_pf_set_si_primary_mac() 61 __raw_writel(upper, hw->port + ENETC4_PSIPMAR0(si)); in enetc4_pf_set_si_primary_mac() 62 __raw_writel(lower, hw->port + ENETC4_PSIPMAR1(si)); in enetc4_pf_set_si_primary_mac() 69 static void enetc4_pf_get_si_primary_mac(struct enetc_hw *hw, int si, in enetc4_pf_get_si_primary_mac() argument 75 upper = __raw_readl(hw->port + ENETC4_PSIPMAR0(si)); in enetc4_pf_get_si_primary_mac() [all …]
|
| H A D | enetc_msg.c | 22 struct enetc_si *si = (struct enetc_si *)data; in enetc_msg_psi_msix() local 23 struct enetc_pf *pf = enetc_si_priv(si); in enetc_msg_psi_msix() 25 enetc_msg_disable_mr_int(&si->hw); in enetc_msg_psi_msix() 34 struct enetc_hw *hw = &pf->si->hw; in enetc_msg_task() 64 static int enetc_msg_alloc_mbx(struct enetc_si *si, int idx) in enetc_msg_alloc_mbx() argument 66 struct enetc_pf *pf = enetc_si_priv(si); in enetc_msg_alloc_mbx() 67 struct device *dev = &si->pdev->dev; in enetc_msg_alloc_mbx() 68 struct enetc_hw *hw = &si->hw; in enetc_msg_alloc_mbx() 93 static void enetc_msg_free_mbx(struct enetc_si *si, int idx) in enetc_msg_free_mbx() argument 95 struct enetc_pf *pf = enetc_si_priv(si); in enetc_msg_free_mbx() [all …]
|
| H A D | enetc_cbdr.c | 63 int enetc4_setup_cbdr(struct enetc_si *si) in enetc4_setup_cbdr() argument 65 struct ntmp_user *user = &si->ntmp_user; in enetc4_setup_cbdr() 66 struct device *dev = &si->pdev->dev; in enetc4_setup_cbdr() 67 struct enetc_hw *hw = &si->hw; in enetc4_setup_cbdr() 88 void enetc4_teardown_cbdr(struct enetc_si *si) in enetc4_teardown_cbdr() argument 90 struct ntmp_user *user = &si->ntmp_user; in enetc4_teardown_cbdr() 125 int enetc_send_cmd(struct enetc_si *si, struct enetc_cbd *cbd) in enetc_send_cmd() argument 127 struct enetc_cbdr *ring = &si->cbd_ring; in enetc_send_cmd() 168 int enetc_clear_mac_flt_entry(struct enetc_si *si, int index) in enetc_clear_mac_flt_entry() argument 178 return enetc_send_cmd(si, &cbd); in enetc_clear_mac_flt_entry() [all …]
|
| H A D | enetc.h | 301 int (*get_rss_table)(struct enetc_si *si, u32 *table, int count); 302 int (*set_rss_table)(struct enetc_si *si, const u32 *table, int count); 335 static inline bool is_enetc_rev1(struct enetc_si *si) in is_enetc_rev1() argument 337 return si->pdev->revision == ENETC_REV1; in is_enetc_rev1() 340 static inline void *enetc_si_priv(const struct enetc_si *si) in enetc_si_priv() argument 342 return (char *)si + ALIGN(sizeof(struct enetc_si), ENETC_SI_ALIGN); in enetc_si_priv() 345 static inline bool enetc_si_is_pf(struct enetc_si *si) in enetc_si_is_pf() argument 347 return !!(si->hw.port); in enetc_si_is_pf() 366 static inline bool enetc_is_pseudo_mac(struct enetc_si *si) in enetc_is_pseudo_mac() argument 368 return si->hw_features & ENETC_SI_F_PPM; in enetc_is_pseudo_mac() [all …]
|
| /linux/drivers/clk/ |
| H A D | clk-si521xx.c | 60 struct si521xx *si; member 197 struct si521xx *si = si_clk->si; in si521xx_diff_prepare() local 199 regmap_set_bits(si->regmap, SI521XX_REG_OE(si_clk->reg), si_clk->bit); in si521xx_diff_prepare() 207 struct si521xx *si = si_clk->si; in si521xx_diff_unprepare() local 209 regmap_clear_bits(si->regmap, SI521XX_REG_OE(si_clk->reg), si_clk->bit); in si521xx_diff_unprepare() 220 static int si521xx_get_common_config(struct si521xx *si) in si521xx_get_common_config() argument 222 struct i2c_client *client = si->client; in si521xx_get_common_config() 228 si->pll_amplitude = SI521XX_REG_DA_AMP(SI521XX_REG_DA_AMP_DEFAULT); in si521xx_get_common_config() 239 si->pll_amplitude = SI521XX_REG_DA_AMP(amp); in si521xx_get_common_config() 245 static void si521xx_update_config(struct si521xx *si) in si521xx_update_config() argument [all …]
|
| /linux/drivers/video/fbdev/ |
| H A D | vesafb.c | 247 struct screen_info *si; in vesafb_probe() 265 si = devm_kmemdup(&dev->dev, &dpy->screen, sizeof(*si), GFP_KERNEL); in vesafb_probe() 266 if (!si) in vesafb_probe() 273 if (si->orig_video_isVGA != VIDEO_TYPE_VLFB) in vesafb_probe() 276 vga_compat = !__screen_info_vbe_mode_nonvga(si); in vesafb_probe() 277 vesafb_fix.smem_start = si->lfb_base; in vesafb_probe() 278 vesafb_defined.bits_per_pixel = si->lfb_depth; in vesafb_probe() 281 vesafb_defined.xres = si->lfb_width; in vesafb_probe() 282 vesafb_defined.yres = si in vesafb_probe() 246 struct screen_info *si; vesafb_probe() local [all...] |
| /linux/drivers/firmware/efi/libstub/ |
| H A D | screen_info.c | |
| H A D | gop.c | 371 static void setup_screen_info(struct screen_info *si, const efi_graphics_output_protocol_t *gop) in setup_screen_info() argument 376 si->orig_video_isVGA = VIDEO_TYPE_EFI; in setup_screen_info() 378 si->lfb_width = info->horizontal_resolution; in setup_screen_info() 379 si->lfb_height = info->vertical_resolution; in setup_screen_info() 382 &si->lfb_base, &si->ext_lfb_base); in setup_screen_info() 383 if (si->ext_lfb_base) in setup_screen_info() 384 si->capabilities |= VIDEO_CAPABILITY_64BIT_BASE; in setup_screen_info() 385 si->pages = 1; in setup_screen_info() 388 find_bits(info->pixel_information.red_mask, &si->red_pos, &si->red_size); in setup_screen_info() 389 find_bits(info->pixel_information.green_mask, &si->green_pos, &si->green_size); in setup_screen_info() [all …]
|
| /linux/drivers/firmware/ |
| H A D | sysfb.c | 42 static struct device *sysfb_parent_dev(const struct screen_info *si); 69 struct screen_info *si = &sysfb_primary_display.screen; in sysfb_disable() local 73 parent = sysfb_parent_dev(si); in sysfb_disable() 95 const struct screen_info *si = &sysfb_primary_display.screen; in sysfb_handles_screen_info() local 97 return !!screen_info_video_type(si); in sysfb_handles_screen_info() 124 static struct device *sysfb_parent_dev(const struct screen_info *si) in sysfb_parent_dev() argument 128 pdev = screen_info_pci_dev(si); in sysfb_parent_dev() 145 struct screen_info *si = &dpy->screen; in sysfb_init() 159 sysfb_apply_efi_quirks(si); in sysfb_init() 161 parent = sysfb_parent_dev(si); in sysfb_init() 144 struct screen_info *si = &screen_info; sysfb_init() local [all...] |
| /linux/drivers/video/ |
| H A D | screen_info_pci.c | 14 static bool __screen_info_relocation_is_valid(const struct screen_info *si, struct resource *pr) in __screen_info_relocation_is_valid() 16 u64 size = __screen_info_lfb_size(si, screen_info_video_type(si)); in __screen_info_relocation_is_valid() 30 struct screen_info *si = &sysfb_primary_display.screen; in screen_info_apply_fixups() 36 if (__screen_info_relocation_is_valid(si, pr)) { in screen_info_apply_fixups() 41 __screen_info_set_lfb_base(si, pr->start + screen_info_lfb_offset); in screen_info_apply_fixups() 51 static int __screen_info_lfb_pci_bus_region(const struct screen_info *si, unsigned int type, in __screen_info_lfb_pci_bus_region() 56 base = __screen_info_lfb_base(si); in __screen_info_lfb_pci_bus_region() 60 size = __screen_info_lfb_size(si, type); in __screen_info_lfb_pci_bus_region() 79 const struct screen_info *si in screen_info_fixup_lfb() 13 __screen_info_relocation_is_valid(const struct screen_info * si,struct resource * pr) __screen_info_relocation_is_valid() argument 29 struct screen_info *si = &screen_info; screen_info_apply_fixups() local 50 __screen_info_lfb_pci_bus_region(const struct screen_info * si,unsigned int type,struct pci_bus_region * r) __screen_info_lfb_pci_bus_region() argument 78 const struct screen_info *si = &screen_info; screen_info_fixup_lfb() local 139 screen_info_pci_dev(const struct screen_info * si) screen_info_pci_dev() argument [all...] |
| /linux/drivers/input/touchscreen/ |
| H A D | cyttsp5.c | 280 struct cyttsp5_sysinfo *si = &ts->sysinfo; in cyttsp5_get_touch_record() local 285 si->tch_abs[abs].size, in cyttsp5_get_touch_record() 286 si->tch_abs[abs].max, in cyttsp5_get_touch_record() 287 xy_data + si->tch_abs[abs].ofs, in cyttsp5_get_touch_record() 288 si->tch_abs[abs].bofs); in cyttsp5_get_touch_record() 294 struct cyttsp5_sysinfo *si = &ts->sysinfo; in cyttsp5_get_mt_touches() local 317 tmp = tch->abs[CY_TCH_MAJ] * 100 * si->sensing_conf_data.res_x; in cyttsp5_get_mt_touches() 318 tch->abs[CY_TCH_MAJ] = tmp / si->sensing_conf_data.len_x; in cyttsp5_get_mt_touches() 319 tmp = tch->abs[CY_TCH_MIN] * 100 * si->sensing_conf_data.res_x; in cyttsp5_get_mt_touches() 320 tch->abs[CY_TCH_MIN] = tmp / si->sensing_conf_data.len_x; in cyttsp5_get_mt_touches() [all …]
|
| /linux/drivers/xen/ |
| H A D | manage.c | 59 struct suspend_info *si = data; in xen_suspend() local 74 si->cancelled = HYPERVISOR_suspend(xen_pv_domain() in xen_suspend() 78 xen_arch_post_suspend(si->cancelled); in xen_suspend() 79 xen_manage_runstate_time(si->cancelled ? 1 : 0); in xen_suspend() 82 if (!si->cancelled) { in xen_suspend() 95 struct suspend_info si; in do_suspend() local 129 si.cancelled = 0; in do_suspend() 135 si.cancelled = 1; in do_suspend() 137 err = stop_machine(xen_suspend, &si, cpumask_of(0)); in do_suspend() 140 if (!si.cancelled) in do_suspend() [all …]
|
| /linux/tools/testing/selftests/ptrace/ |
| H A D | set_syscall_info.c | 149 } si[] = { in TEST() local 342 for (i = 0; i < ARRAY_SIZE(si); ++i) { in TEST() 343 rc = syscall(si[i].entry[0].nr, in TEST() 344 si[i].entry[0].args[0], in TEST() 345 si[i].entry[0].args[1], in TEST() 346 si[i].entry[0].args[2], in TEST() 347 si[i].entry[0].args[3], in TEST() 348 si[i].entry[0].args[4], in TEST() 349 si[i].entry[0].args[5]); in TEST() 350 if (si[i].exit[1].is_error) { in TEST() [all …]
|
| /linux/net/core/ |
| H A D | filter.c | 7323 const struct bpf_insn *si, in bpf_tcp_sock_convert_ctx_access() argument 7334 si->dst_reg, si->src_reg, \ in bpf_tcp_sock_convert_ctx_access() 7346 si->dst_reg, si->src_reg, \ in bpf_tcp_sock_convert_ctx_access() 7354 switch (si->off) { in bpf_tcp_sock_convert_ctx_access() 7361 *insn++ = BPF_LDX_MEM(BPF_W, si->dst_reg, si->src_reg, in bpf_tcp_sock_convert_ctx_access() 7517 const struct bpf_insn *si, in bpf_xdp_sock_convert_ctx_access() argument 7528 si in bpf_xdp_sock_convert_ctx_access() 9607 flow_dissector_convert_ctx_access(enum bpf_access_type type,const struct bpf_insn * si,struct bpf_insn * insn_buf,struct bpf_prog * prog,u32 * target_size) flow_dissector_convert_ctx_access() argument 9638 bpf_convert_tstamp_type_read(const struct bpf_insn * si,struct bpf_insn * insn) bpf_convert_tstamp_type_read() argument 9680 bpf_convert_tstamp_read(const struct bpf_prog * prog,const struct bpf_insn * si,struct bpf_insn * insn) bpf_convert_tstamp_read() argument 9715 bpf_convert_tstamp_write(const struct bpf_prog * prog,const struct bpf_insn * si,struct bpf_insn * insn) bpf_convert_tstamp_write() argument 9748 BPF_EMIT_STORE(size,si,off) global() argument 9753 bpf_convert_ctx_access(enum bpf_access_type type,const struct bpf_insn * si,struct bpf_insn * insn_buf,struct bpf_prog * prog,u32 * target_size) bpf_convert_ctx_access() argument 10119 bpf_sock_convert_ctx_access(enum bpf_access_type type,const struct bpf_insn * si,struct bpf_insn * insn_buf,struct bpf_prog * prog,u32 * target_size) bpf_sock_convert_ctx_access() argument 10294 tc_cls_act_convert_ctx_access(enum bpf_access_type type,const struct bpf_insn * si,struct bpf_insn * insn_buf,struct bpf_prog * prog,u32 * target_size) tc_cls_act_convert_ctx_access() argument 10318 xdp_convert_ctx_access(enum bpf_access_type type,const struct bpf_insn * si,struct bpf_insn * insn_buf,struct bpf_prog * prog,u32 * target_size) xdp_convert_ctx_access() argument 10442 sock_addr_convert_ctx_access(enum bpf_access_type type,const struct bpf_insn * si,struct bpf_insn * insn_buf,struct bpf_prog * prog,u32 * target_size) sock_addr_convert_ctx_access() argument 10531 sock_ops_convert_ctx_access(enum bpf_access_type type,const struct bpf_insn * si,struct bpf_insn * insn_buf,struct bpf_prog * prog,u32 * target_size) sock_ops_convert_ctx_access() argument 10976 bpf_convert_data_end_access(const struct bpf_insn * si,struct bpf_insn * insn) bpf_convert_data_end_access() argument 11024 sk_skb_convert_ctx_access(enum bpf_access_type type,const struct bpf_insn * si,struct bpf_insn * insn_buf,struct bpf_prog * prog,u32 * target_size) sk_skb_convert_ctx_access() argument 11064 sk_msg_convert_ctx_access(enum bpf_access_type type,const struct bpf_insn * si,struct bpf_insn * insn_buf,struct bpf_prog * prog,u32 * target_size) sk_msg_convert_ctx_access() argument 11630 sk_reuseport_convert_ctx_access(enum bpf_access_type type,const struct bpf_insn * si,struct bpf_insn * insn_buf,struct bpf_prog * prog,u32 * target_size) sk_reuseport_convert_ctx_access() argument 11790 sk_lookup_convert_ctx_access(enum bpf_access_type type,const struct bpf_insn * si,struct bpf_insn * insn_buf,struct bpf_prog * prog,u32 * target_size) sk_lookup_convert_ctx_access() argument [all...] |
| /linux/arch/loongarch/kernel/ |
| H A D | efi.c | 84 struct screen_info *si; init_screen_info() local
|
| /linux/include/linux/iio/imu/ |
| H A D | adis.h | 460 #define ADIS_VOLTAGE_CHAN(addr, si, chan, name, info_all, bits) { \ argument 469 .scan_index = (si), \ 478 #define ADIS_SUPPLY_CHAN(addr, si, info_all, bits) \ argument 479 ADIS_VOLTAGE_CHAN(addr, si, 0, "supply", info_all, bits) 481 #define ADIS_AUX_ADC_CHAN(addr, si, info_all, bits) \ argument 482 ADIS_VOLTAGE_CHAN(addr, si, 1, NULL, info_all, bits) 484 #define ADIS_TEMP_CHAN(addr, si, info_all, bits) { \ argument 493 .scan_index = (si), \ 502 #define ADIS_MOD_CHAN(_type, mod, addr, si, info_sep, info_all, bits) { \ argument 511 .scan_index = (si), \ [all …]
|
| /linux/arch/mips/sni/ |
| H A D | setup.c | 42 static struct screen_info si; in sni_display_setup() local 48 si.orig_x = di->CursorXPosition; in sni_display_setup() 49 si.orig_y = di->CursorYPosition; in sni_display_setup() 50 si.orig_video_cols = di->CursorMaxXPosition; in sni_display_setup() 51 si.orig_video_lines = di->CursorMaxYPosition; in sni_display_setup() 52 si.orig_video_isVGA = VIDEO_TYPE_VGAC; in sni_display_setup() 53 si.orig_video_points = 16; in sni_display_setup() 55 vgacon_register_screen(&si); in sni_display_setup()
|
| /linux/drivers/firmware/efi/ |
| H A D | efi-init.c | 70 struct screen_info *si; init_screen_info() local
|
| H A D | earlycon.c | 35 const struct screen_info *si = &sysfb_primary_display.screen; in efi_earlycon_remap_fb() 41 efi_fb = memremap(fb_base, si->lfb_size, fb_wb ? MEMREMAP_WB : MEMREMAP_WC); in efi_earlycon_remap_fb() 75 static void efi_earlycon_clear_scanline(unsigned int y, const struct screen_info *si) in efi_earlycon_clear_scanline() 80 len = si->lfb_linelength; in efi_earlycon_clear_scanline() 89 static void efi_earlycon_scroll_up(const struct screen_info *si) in efi_earlycon_scroll_up() 103 len = si->lfb_linelength; in efi_earlycon_scroll_up() 104 height = si->lfb_height; in efi_earlycon_scroll_up() 125 const struct screen_info *si) in efi_earlycon_write_char() 150 const struct screen_info *si = &sysfb_primary_display.screen; in efi_earlycon_write() 156 len = si in efi_earlycon_write() 148 struct screen_info *si; efi_earlycon_write() local 229 struct screen_info *si; efi_earlycon_setup() local [all...] |