/kernel/linux/linux-5.10/fs/f2fs/ |
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_general_status() local 70 si->main_area_segs = le32_to_cpu(raw_super->segment_count_main); in update_general_status() 71 si->main_area_sections = le32_to_cpu(raw_super->section_count); in update_general_status() 72 si->main_area_zones = si->main_area_sections / in update_general_status() 76 si->hit_largest = atomic64_read(&sbi->read_hit_largest); in update_general_status() [all …]
|
/kernel/linux/linux-5.10/fs/ocfs2/ |
D | slot_map.c | 46 static int __ocfs2_node_num_to_slot(struct ocfs2_slot_info *si, 49 static void ocfs2_invalidate_slot(struct ocfs2_slot_info *si, in ocfs2_invalidate_slot() argument 52 BUG_ON((slot_num < 0) || (slot_num >= si->si_num_slots)); in ocfs2_invalidate_slot() 53 si->si_slots[slot_num].sl_valid = 0; in ocfs2_invalidate_slot() 56 static void ocfs2_set_slot(struct ocfs2_slot_info *si, in ocfs2_set_slot() argument 59 BUG_ON((slot_num < 0) || (slot_num >= si->si_num_slots)); in ocfs2_set_slot() 61 si->si_slots[slot_num].sl_valid = 1; in ocfs2_set_slot() 62 si->si_slots[slot_num].sl_node_num = node_num; in ocfs2_set_slot() 66 static void ocfs2_update_slot_info_extended(struct ocfs2_slot_info *si) in ocfs2_update_slot_info_extended() argument 72 for (b = 0; b < si->si_blocks; b++) { in ocfs2_update_slot_info_extended() [all …]
|
/kernel/linux/linux-5.10/drivers/input/touchscreen/ |
D | cyttsp4_core.c | 72 struct cyttsp4_sysinfo *si = &cd->sysinfo; in cyttsp4_load_status_regs() local 76 rc = cyttsp4_adap_read(cd, CY_REG_BASE, si->si_ofs.mode_size, in cyttsp4_load_status_regs() 77 si->xy_mode); in cyttsp4_load_status_regs() 82 cyttsp4_pr_buf(dev, cd->pr_buf, si->xy_mode, in cyttsp4_load_status_regs() 83 si->si_ofs.mode_size, "xy_mode"); in cyttsp4_load_status_regs() 152 struct cyttsp4_sysinfo *si = &cd->sysinfo; in cyttsp4_si_data_offsets() local 153 int rc = cyttsp4_adap_read(cd, CY_REG_BASE, sizeof(si->si_data), in cyttsp4_si_data_offsets() 154 &si->si_data); in cyttsp4_si_data_offsets() 162 cyttsp4_pr_buf(cd->dev, cd->pr_buf, (u8 *)&si->si_data, in cyttsp4_si_data_offsets() 163 sizeof(si->si_data), "sysinfo_data_offsets"); in cyttsp4_si_data_offsets() [all …]
|
/kernel/linux/linux-5.10/arch/s390/kernel/ |
D | perf_event.c | 136 struct hws_qsi_info_block si; in print_debug_sf() local 139 memset(&si, 0, sizeof(si)); in print_debug_sf() 140 if (qsi(&si)) in print_debug_sf() 144 cpu, si.as, si.ad, si.min_sampl_rate, si.max_sampl_rate, in print_debug_sf() 145 si.cpu_speed); in print_debug_sf() 147 if (si.as) in print_debug_sf() 150 si.as, si.es, si.cs, si.bsdes, si.tear, si.dear); in print_debug_sf() 151 if (si.ad) in print_debug_sf() 154 si.ad, si.ed, si.cd, si.dsdes, si.tear, si.dear); in print_debug_sf() 184 struct hws_qsi_info_block si; in sl_print_sampling() local [all …]
|
D | lgr.c | 69 struct sysinfo_1_1_1 *si = (void *) lgr_page; in lgr_stsi_1_1_1() local 71 if (stsi(si, 1, 1, 1)) in lgr_stsi_1_1_1() 73 cpascii(lgr_info->manufacturer, si->manufacturer, in lgr_stsi_1_1_1() 74 sizeof(si->manufacturer)); in lgr_stsi_1_1_1() 75 cpascii(lgr_info->type, si->type, sizeof(si->type)); in lgr_stsi_1_1_1() 76 cpascii(lgr_info->model, si->model, sizeof(si->model)); in lgr_stsi_1_1_1() 77 cpascii(lgr_info->sequence, si->sequence, sizeof(si->sequence)); in lgr_stsi_1_1_1() 78 cpascii(lgr_info->plant, si->plant, sizeof(si->plant)); in lgr_stsi_1_1_1() 86 struct sysinfo_2_2_2 *si = (void *) lgr_page; in lgr_stsi_2_2_2() local 88 if (stsi(si, 2, 2, 2)) in lgr_stsi_2_2_2() [all …]
|
/kernel/linux/linux-5.10/mm/ |
D | swapfile.c | 127 static int __try_to_reclaim_swap(struct swap_info_struct *si, in __try_to_reclaim_swap() argument 130 swp_entry_t entry = swp_entry(si->type, offset); in __try_to_reclaim_swap() 171 static int discard_swap(struct swap_info_struct *si) in discard_swap() argument 179 se = first_se(si); in discard_swap() 183 err = blkdev_issue_discard(si->bdev, start_block, in discard_swap() 194 err = blkdev_issue_discard(si->bdev, start_block, in discard_swap() 241 static void discard_swap_cluster(struct swap_info_struct *si, in discard_swap_cluster() argument 244 struct swap_extent *se = offset_to_swap_extent(si, start_page); in discard_swap_cluster() 258 if (blkdev_issue_discard(si->bdev, start_block, in discard_swap_cluster() 351 static inline struct swap_cluster_info *lock_cluster(struct swap_info_struct *si, in lock_cluster() argument [all …]
|
D | frontswap.c | 117 struct swap_info_struct *si; in frontswap_register_ops() local 124 plist_for_each_entry(si, &swap_active_head, list) { in frontswap_register_ops() 125 if (!WARN_ON(!si->frontswap_map)) in frontswap_register_ops() 126 set_bit(si->type, a); in frontswap_register_ops() 146 plist_for_each_entry(si, &swap_active_head, list) { in frontswap_register_ops() 147 if (si->frontswap_map) in frontswap_register_ops() 148 set_bit(si->type, b); in frontswap_register_ops() 374 struct swap_info_struct *si = NULL; in __frontswap_curr_pages() local 377 plist_for_each_entry(si, &swap_active_head, list) in __frontswap_curr_pages() 378 totalpages += atomic_read(&si->frontswap_pages); in __frontswap_curr_pages() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/enetc/ |
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 …]
|
D | enetc_pf.c | 13 static void enetc_pf_get_primary_mac_addr(struct enetc_hw *hw, int si, u8 *addr) in enetc_pf_get_primary_mac_addr() argument 15 u32 upper = __raw_readl(hw->port + ENETC_PSIPMAR0(si)); in enetc_pf_get_primary_mac_addr() 16 u16 lower = __raw_readw(hw->port + ENETC_PSIPMAR1(si)); in enetc_pf_get_primary_mac_addr() 22 static void enetc_pf_set_primary_mac_addr(struct enetc_hw *hw, int si, in enetc_pf_set_primary_mac_addr() argument 28 __raw_writel(upper, hw->port + ENETC_PSIPMAR0(si)); in enetc_pf_set_primary_mac_addr() 29 __raw_writew(lower, hw->port + ENETC_PSIPMAR1(si)); in enetc_pf_set_primary_mac_addr() 41 enetc_pf_set_primary_mac_addr(&priv->si->hw, 0, saddr->sa_data); in enetc_pf_set_mac_addr() 57 enetc_set_vlan_promisc(&pf->si->hw, pf->vlan_promisc_simap); in enetc_enable_si_vlan_promisc() 63 enetc_set_vlan_promisc(&pf->si->hw, pf->vlan_promisc_simap); in enetc_disable_si_vlan_promisc() 66 static void enetc_set_isol_vlan(struct enetc_hw *hw, int si, u16 vlan, u8 qos) in enetc_set_isol_vlan() argument [all …]
|
D | enetc_cbdr.c | 6 static void enetc_clean_cbdr(struct enetc_si *si) in enetc_clean_cbdr() argument 8 struct enetc_cbdr *ring = &si->cbd_ring; in enetc_clean_cbdr() 18 dev_warn(&si->pdev->dev, "CMD err %04x for cmd %04x\n", in enetc_clean_cbdr() 35 int enetc_send_cmd(struct enetc_si *si, struct enetc_cbd *cbd) in enetc_send_cmd() argument 37 struct enetc_cbdr *ring = &si->cbd_ring; in enetc_send_cmd() 46 enetc_clean_cbdr(si); in enetc_send_cmd() 72 enetc_clean_cbdr(si); in enetc_send_cmd() 77 int enetc_clear_mac_flt_entry(struct enetc_si *si, int index) in enetc_clear_mac_flt_entry() argument 87 return enetc_send_cmd(si, &cbd); in enetc_clear_mac_flt_entry() 90 int enetc_set_mac_flt_entry(struct enetc_si *si, int index, in enetc_set_mac_flt_entry() argument [all …]
|
D | enetc_vf.c | 20 static int enetc_msg_vsi_send(struct enetc_si *si, struct enetc_msg_swbd *msg) in enetc_msg_vsi_send() argument 25 enetc_msg_vsi_write_msg(&si->hw, msg); in enetc_msg_vsi_send() 28 vsimsgsr = enetc_rd(&si->hw, ENETC_VSIMSGSR); in enetc_msg_vsi_send() 40 dev_err(&si->pdev->dev, "VSI command execute error: %d\n", in enetc_msg_vsi_send() 70 err = enetc_msg_vsi_send(priv->si, &msg); in enetc_msg_vsi_set_primary_mac_addr() 108 static void enetc_vf_netdev_setup(struct enetc_si *si, struct net_device *ndev, in enetc_vf_netdev_setup() argument 113 SET_NETDEV_DEV(ndev, &si->pdev->dev); in enetc_vf_netdev_setup() 115 priv->si = si; in enetc_vf_netdev_setup() 116 priv->dev = &si->pdev->dev; in enetc_vf_netdev_setup() 117 si->ndev = ndev; in enetc_vf_netdev_setup() [all …]
|
D | enetc.c | 420 enetc_get_tx_tstamp(&priv->si->hw, txbd, in enetc_clean_tx_ring() 546 struct enetc_hw *hw = &priv->si->hw; in enetc_get_rx_tstamp() 589 tpid = htons(enetc_port_rd(&priv->si->hw, in enetc_get_offloads() 593 tpid = htons(enetc_port_rd(&priv->si->hw, in enetc_get_offloads() 803 void enetc_get_si_caps(struct enetc_si *si) in enetc_get_si_caps() argument 805 struct enetc_hw *hw = &si->hw; in enetc_get_si_caps() 810 si->num_rx_rings = (val >> 16) & 0xff; in enetc_get_si_caps() 811 si->num_tx_rings = val & 0xff; in enetc_get_si_caps() 814 si->num_fs_entries = ENETC_SIRFSCAPR_GET_NUM_RFS(val); in enetc_get_si_caps() 815 si->num_fs_entries = min(si->num_fs_entries, ENETC_MAX_RFS_SIZE); in enetc_get_si_caps() [all …]
|
D | enetc_ethtool.c | 37 struct enetc_hw *hw = &priv->si->hw; in enetc_get_reglen() 56 struct enetc_hw *hw = &priv->si->hw; in enetc_get_regs() 213 if (!enetc_si_is_pf(priv->si)) in enetc_get_sset_count() 248 if (!enetc_si_is_pf(priv->si)) in enetc_get_strings() 264 struct enetc_hw *hw = &priv->si->hw; in enetc_get_ethtool_stats() 278 if (!enetc_si_is_pf(priv->si)) in enetc_get_ethtool_stats() 321 static int enetc_set_cls_entry(struct enetc_si *si, in enetc_set_cls_entry() argument 354 netdev_warn(si->ndev, "ToS field is not supported and was ignored\n"); in enetc_set_cls_entry() 367 netdev_warn(si->ndev, "ToS field is not supported and was ignored\n"); in enetc_set_cls_entry() 392 return enetc_set_fs_entry(si, &rfse, fs->location); in enetc_set_cls_entry() [all …]
|
/kernel/linux/linux-5.10/arch/x86/kernel/ |
D | sysfb_simplefb.c | 27 __init bool parse_mode(const struct screen_info *si, in parse_mode() argument 34 type = si->orig_video_isVGA; in parse_mode() 40 if (si->lfb_depth == f->bits_per_pixel && in parse_mode() 41 si->red_size == f->red.length && in parse_mode() 42 si->red_pos == f->red.offset && in parse_mode() 43 si->green_size == f->green.length && in parse_mode() 44 si->green_pos == f->green.offset && in parse_mode() 45 si->blue_size == f->blue.length && in parse_mode() 46 si->blue_pos == f->blue.offset && in parse_mode() 47 si->rsvd_size == f->transp.length && in parse_mode() [all …]
|
D | sysfb.c | 39 struct screen_info *si = &screen_info; in sysfb_init() local 49 compatible = parse_mode(si, &mode); in sysfb_init() 51 ret = create_simplefb(si, &mode); in sysfb_init() 57 if (si->orig_video_isVGA == VIDEO_TYPE_EFI) in sysfb_init() 59 else if (si->orig_video_isVGA == VIDEO_TYPE_VLFB) in sysfb_init() 65 NULL, 0, si, sizeof(*si)); in sysfb_init()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_msg.c | 92 unsigned long eax, ebx, ecx, edx, si = 0, di = 0; in vmw_open_channel() local 95 (protocol | GUESTMSG_FLAG_COOKIE), si, di, in vmw_open_channel() 98 eax, ebx, ecx, edx, si, di); in vmw_open_channel() 104 channel->cookie_high = si; in vmw_open_channel() 121 unsigned long eax, ebx, ecx, edx, si, di; in vmw_close_channel() local 124 si = channel->cookie_high; in vmw_close_channel() 128 0, si, di, in vmw_close_channel() 131 eax, ebx, ecx, edx, si, di); in vmw_close_channel() 151 unsigned long si, di, eax, ebx, ecx, edx; in vmw_port_hb_out() local 158 si = (uintptr_t) msg; in vmw_port_hb_out() [all …]
|
D | vmwgfx_msg.h | 59 eax, ebx, ecx, edx, si, di) \ argument 66 "=S"(si), \ 103 eax, ebx, ecx, edx, si, di) \ argument 113 "=S"(si), \ 128 eax, ebx, ecx, edx, si, di) \ argument 138 "=S"(si), \ 162 eax, ebx, ecx, edx, si, di) \ argument 174 "=S"(si), \ 189 eax, ebx, ecx, edx, si, di) \ argument 201 "=S"(si), \
|
/kernel/linux/linux-5.10/drivers/firmware/efi/libstub/ |
D | gop.c | 430 setup_pixel_info(struct screen_info *si, u32 pixels_per_scan_line, in setup_pixel_info() argument 435 &si->red_pos, &si->red_size); in setup_pixel_info() 437 &si->green_pos, &si->green_size); in setup_pixel_info() 439 &si->blue_pos, &si->blue_size); in setup_pixel_info() 441 &si->rsvd_pos, &si->rsvd_size); in setup_pixel_info() 442 si->lfb_depth = si->red_size + si->green_size + in setup_pixel_info() 443 si->blue_size + si->rsvd_size; in setup_pixel_info() 444 si->lfb_linelength = (pixels_per_scan_line * si->lfb_depth) / 8; in setup_pixel_info() 447 si->red_pos = 0; in setup_pixel_info() 448 si->blue_pos = 16; in setup_pixel_info() [all …]
|
D | arm32-stub.c | 83 struct screen_info *si; in alloc_screen_info() local 93 sizeof(*si), (void **)&si); in alloc_screen_info() 99 &screen_info_guid, si); in alloc_screen_info() 101 return si; in alloc_screen_info() 103 efi_bs_call(free_pool, si); in alloc_screen_info() 107 void free_screen_info(struct screen_info *si) in free_screen_info() argument 109 if (!si) in free_screen_info() 113 efi_bs_call(free_pool, si); in free_screen_info()
|
/kernel/linux/linux-5.10/net/core/ |
D | filter.c | 6283 const struct bpf_insn *si, in bpf_tcp_sock_convert_ctx_access() argument 6294 si->dst_reg, si->src_reg, \ in bpf_tcp_sock_convert_ctx_access() 6306 si->dst_reg, si->src_reg, \ in bpf_tcp_sock_convert_ctx_access() 6315 switch (si->off) { in bpf_tcp_sock_convert_ctx_access() 6322 *insn++ = BPF_LDX_MEM(BPF_W, si->dst_reg, si->src_reg, in bpf_tcp_sock_convert_ctx_access() 6478 const struct bpf_insn *si, in bpf_xdp_sock_convert_ctx_access() argument 6489 si->dst_reg, si->src_reg, \ in bpf_xdp_sock_convert_ctx_access() 6493 switch (si->off) { in bpf_xdp_sock_convert_ctx_access() 8283 const struct bpf_insn *si, in flow_dissector_convert_ctx_access() argument 8291 switch (si->off) { in flow_dissector_convert_ctx_access() [all …]
|
/kernel/linux/linux-5.10/drivers/media/test-drivers/vidtv/ |
D | vidtv_channel.c | 423 m->si.pat = vidtv_psi_pat_table_init(m->transport_stream_id); in vidtv_channel_si_init() 424 if (!m->si.pat) in vidtv_channel_si_init() 427 m->si.sdt = vidtv_psi_sdt_table_init(m->network_id, in vidtv_channel_si_init() 429 if (!m->si.sdt) in vidtv_channel_si_init() 449 m->si.nit = vidtv_psi_nit_table_init(m->network_id, in vidtv_channel_si_init() 453 if (!m->si.nit) in vidtv_channel_si_init() 456 m->si.eit = vidtv_psi_eit_table_init(m->network_id, in vidtv_channel_si_init() 459 if (!m->si.eit) in vidtv_channel_si_init() 463 vidtv_psi_pat_program_assign(m->si.pat, programs); in vidtv_channel_si_init() 466 vidtv_psi_sdt_service_assign(m->si.sdt, services); in vidtv_channel_si_init() [all …]
|
/kernel/linux/linux-5.10/drivers/xen/ |
D | manage.c | 64 struct suspend_info *si = data; in xen_suspend() local 79 si->cancelled = HYPERVISOR_suspend(xen_pv_domain() in xen_suspend() 83 xen_arch_post_suspend(si->cancelled); in xen_suspend() 84 xen_manage_runstate_time(si->cancelled ? 1 : 0); in xen_suspend() 87 if (!si->cancelled) { in xen_suspend() 100 struct suspend_info si; in do_suspend() local 128 si.cancelled = 0; in do_suspend() 134 si.cancelled = 1; in do_suspend() 136 err = stop_machine(xen_suspend, &si, cpumask_of(0)); in do_suspend() 139 if (!si.cancelled) in do_suspend() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/arm64/signal/ |
D | test_signals_utils.c | 86 siginfo_t *si, void *uc) in handle_signal_unsupported() argument 108 siginfo_t *si, void *uc) in handle_signal_trigger() argument 112 td->run(td, si, uc); in handle_signal_trigger() 118 siginfo_t *si, void *uc) in handle_signal_ok() argument 128 si->si_addr, si->si_code, td->token, td->token - si->si_addr); in handle_signal_ok() 146 if (td->sig_ok == SIGSEGV && si->si_code != SEGV_ACCERR) { in handle_signal_ok() 164 siginfo_t *si, void *uc) in handle_signal_copyctx() argument 177 static void default_handler(int signum, siginfo_t *si, void *uc) in default_handler() argument 180 handle_signal_unsupported(current, si, uc)) { in default_handler() 183 handle_signal_trigger(current, si, uc)) { in default_handler() [all …]
|
/kernel/linux/linux-5.10/include/linux/iio/imu/ |
D | adis.h | 449 #define ADIS_VOLTAGE_CHAN(addr, si, chan, name, info_all, bits) { \ argument 458 .scan_index = (si), \ 467 #define ADIS_SUPPLY_CHAN(addr, si, info_all, bits) \ argument 468 ADIS_VOLTAGE_CHAN(addr, si, 0, "supply", info_all, bits) 470 #define ADIS_AUX_ADC_CHAN(addr, si, info_all, bits) \ argument 471 ADIS_VOLTAGE_CHAN(addr, si, 1, NULL, info_all, bits) 473 #define ADIS_TEMP_CHAN(addr, si, info_all, bits) { \ argument 482 .scan_index = (si), \ 491 #define ADIS_MOD_CHAN(_type, mod, addr, si, info_sep, info_all, bits) { \ argument 500 .scan_index = (si), \ [all …]
|
/kernel/linux/linux-5.10/drivers/firmware/efi/ |
D | earlycon.c | 137 struct screen_info *si; in efi_earlycon_write() local 142 si = &screen_info; in efi_earlycon_write() 143 len = si->lfb_linelength; in efi_earlycon_write() 155 linemax = (si->lfb_width - efi_x) / font->width; in efi_earlycon_write() 190 if (efi_x + font->width > si->lfb_width) { in efi_earlycon_write() 195 if (efi_y + font->height > si->lfb_height) { in efi_earlycon_write() 210 struct screen_info *si; in efi_earlycon_setup() local 223 si = &screen_info; in efi_earlycon_setup() 224 xres = si->lfb_width; in efi_earlycon_setup() 225 yres = si->lfb_height; in efi_earlycon_setup() [all …]
|