Home
last modified time | relevance | path

Searched refs:sf (Results 1 – 25 of 227) sorted by relevance

12345678910

/linux-6.6.21/arch/arm64/net/
Dbpf_jit.h19 #define A64_VARIANT(sf) \ argument
20 ((sf) ? AARCH64_INSN_VARIANT_64BIT : AARCH64_INSN_VARIANT_32BIT)
23 #define A64_COMP_BRANCH(sf, Rt, offset, type) \ argument
24 aarch64_insn_gen_comp_branch_imm(0, offset, Rt, A64_VARIANT(sf), \
26 #define A64_CBZ(sf, Rt, imm19) A64_COMP_BRANCH(sf, Rt, (imm19) << 2, ZERO) argument
27 #define A64_CBNZ(sf, Rt, imm19) A64_COMP_BRANCH(sf, Rt, (imm19) << 2, NONZERO) argument
106 #define A64_SIZE(sf) \ argument
107 ((sf) ? AARCH64_INSN_SIZE_64 : AARCH64_INSN_SIZE_32)
108 #define A64_LSX(sf, Rt, Rn, Rs, type) \ argument
109 aarch64_insn_gen_load_store_ex(Rt, Rn, Rs, A64_SIZE(sf), \
[all …]
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/sf/
Ddevlink.c43 struct mlx5_sf *sf; in mlx5_sf_lookup_by_function_id() local
45 xa_for_each(&table->port_indices, index, sf) { in mlx5_sf_lookup_by_function_id()
46 if (sf->hw_fn_id == fn_id) in mlx5_sf_lookup_by_function_id()
47 return sf; in mlx5_sf_lookup_by_function_id()
52 static int mlx5_sf_id_insert(struct mlx5_sf_table *table, struct mlx5_sf *sf) in mlx5_sf_id_insert() argument
54 return xa_insert(&table->port_indices, sf->port_index, sf, GFP_KERNEL); in mlx5_sf_id_insert()
57 static void mlx5_sf_id_erase(struct mlx5_sf_table *table, struct mlx5_sf *sf) in mlx5_sf_id_erase() argument
59 xa_erase(&table->port_indices, sf->port_index); in mlx5_sf_id_erase()
67 struct mlx5_sf *sf; in mlx5_sf_alloc() local
83 sf = kzalloc(sizeof(*sf), GFP_KERNEL); in mlx5_sf_alloc()
[all …]
/linux-6.6.21/drivers/isdn/hardware/mISDN/
Dspeedfax.c114 struct sfax_hw *sf = dev_id; in IOFUNC_IND() local
118 spin_lock(&sf->lock); in IOFUNC_IND()
119 val = inb(sf->cfg + TIGER_AUX_STATUS); in IOFUNC_IND()
121 spin_unlock(&sf->lock); in IOFUNC_IND()
124 sf->irqcnt++; in IOFUNC_IND()
125 val = ReadISAR_IND(sf, ISAR_IRQBIT); in IOFUNC_IND()
128 mISDNisar_irq(&sf->isar); in IOFUNC_IND()
129 val = ReadISAC_IND(sf, ISAC_ISTA); in IOFUNC_IND()
131 mISDNisac_irq(&sf->isac, val); in IOFUNC_IND()
132 val = ReadISAR_IND(sf, ISAR_IRQBIT); in IOFUNC_IND()
[all …]
/linux-6.6.21/drivers/media/cec/core/
Dcec-pin-error-inj.c240 static void cec_pin_show_cmd(struct seq_file *sf, u32 cmd, u8 mode) in cec_pin_show_cmd() argument
243 seq_puts(sf, "any,"); in cec_pin_show_cmd()
245 seq_printf(sf, "0x%02x,", cmd); in cec_pin_show_cmd()
248 seq_puts(sf, "once "); in cec_pin_show_cmd()
251 seq_puts(sf, "always "); in cec_pin_show_cmd()
254 seq_puts(sf, "toggle "); in cec_pin_show_cmd()
257 seq_puts(sf, "off "); in cec_pin_show_cmd()
262 int cec_pin_error_inj_show(struct cec_adapter *adap, struct seq_file *sf) in cec_pin_error_inj_show() argument
267 seq_puts(sf, "# Clear error injections:\n"); in cec_pin_error_inj_show()
268 seq_puts(sf, "# clear clear all rx and tx error injections\n"); in cec_pin_error_inj_show()
[all …]
/linux-6.6.21/arch/sparc/kernel/
Dsignal_32.c77 struct signal_frame __user *sf; in do_sigreturn() local
88 sf = (struct signal_frame __user *) regs->u_regs[UREG_FP]; in do_sigreturn()
91 if (invalid_frame_pointer(sf, sizeof(*sf))) in do_sigreturn()
94 if (get_user(ufp, &sf->info.si_regs.u_regs[UREG_FP])) in do_sigreturn()
100 err = __get_user(pc, &sf->info.si_regs.pc); in do_sigreturn()
101 err |= __get_user(npc, &sf->info.si_regs.npc); in do_sigreturn()
108 err |= __copy_from_user(regs, &sf->info.si_regs, sizeof(struct pt_regs)); in do_sigreturn()
117 err |= __get_user(fpu_save, &sf->fpu_save); in do_sigreturn()
120 err |= __get_user(rwin_save, &sf->rwin_save); in do_sigreturn()
127 err |= __get_user(set.sig[0], &sf->info.si_mask); in do_sigreturn()
[all …]
Dsignal32.c85 struct signal_frame32 __user *sf; in do_sigreturn32() local
100 sf = (struct signal_frame32 __user *) regs->u_regs[UREG_FP]; in do_sigreturn32()
103 if (invalid_frame_pointer(sf, sizeof(*sf))) in do_sigreturn32()
106 if (get_user(ufp, &sf->info.si_regs.u_regs[UREG_FP])) in do_sigreturn32()
112 if (__get_user(pc, &sf->info.si_regs.pc) || in do_sigreturn32()
113 __get_user(npc, &sf->info.si_regs.npc)) in do_sigreturn32()
127 err = __get_user(regs->y, &sf->info.si_regs.y); in do_sigreturn32()
128 err |= __get_user(psr, &sf->info.si_regs.psr); in do_sigreturn32()
131 err |= __get_user(regs->u_regs[i], &sf->info.si_regs.u_regs[i]); in do_sigreturn32()
133 err |= __get_user(i, &sf->v8plus.g_upper[0]); in do_sigreturn32()
[all …]
Dsignal_64.c258 struct rt_signal_frame __user *sf; in do_rt_sigreturn() local
268 sf = (struct rt_signal_frame __user *) in do_rt_sigreturn()
272 if (invalid_frame_pointer(sf)) in do_rt_sigreturn()
275 if (get_user(ufp, &sf->regs.u_regs[UREG_FP])) in do_rt_sigreturn()
281 err = __get_user(tpc, &sf->regs.tpc); in do_rt_sigreturn()
282 err |= __get_user(tnpc, &sf->regs.tnpc); in do_rt_sigreturn()
290 err |= __get_user(regs->y, &sf->regs.y); in do_rt_sigreturn()
291 err |= __get_user(tstate, &sf->regs.tstate); in do_rt_sigreturn()
292 err |= copy_from_user(regs->u_regs, sf->regs.u_regs, sizeof(regs->u_regs)); in do_rt_sigreturn()
298 err |= __get_user(fpu_save, &sf->fpu_save); in do_rt_sigreturn()
[all …]
/linux-6.6.21/net/mptcp/
Ddiag.c18 struct mptcp_subflow_context *sf; in subflow_get_info() local
33 sf = rcu_dereference(inet_csk(sk)->icsk_ulp_data); in subflow_get_info()
34 if (!sf) { in subflow_get_info()
39 if (sf->mp_capable) in subflow_get_info()
41 if (sf->request_mptcp) in subflow_get_info()
43 if (sf->mp_join) in subflow_get_info()
45 if (sf->request_join) in subflow_get_info()
47 if (sf->backup) in subflow_get_info()
49 if (sf->request_bkup) in subflow_get_info()
51 if (sf->fully_established) in subflow_get_info()
[all …]
/linux-6.6.21/tools/perf/util/
Ds390-cpumsf.c183 struct s390_cpumsf *sf; member
196 static int s390_cpumcf_dumpctr(struct s390_cpumsf *sf, in s390_cpumcf_dumpctr() argument
203 if (!sf->use_logfile || sf->queues.nr_queues <= sample->cpu) in s390_cpumcf_dumpctr()
206 q = &sf->queues.queue_array[sample->cpu]; in s390_cpumcf_dumpctr()
214 rc = (sf->logdir) in s390_cpumcf_dumpctr()
216 sf->logdir, sample->cpu) in s390_cpumcf_dumpctr()
433 static void s390_cpumsf_dump(struct s390_cpumsf *sf, in s390_cpumsf_dump() argument
446 if (!s390_cpumsf_validate(sf->machine_type, buf, len, &bsdes, in s390_cpumsf_dump()
450 len, sf->machine_type, bsdes, dsdes); in s390_cpumsf_dump()
494 static void s390_cpumsf_dump_event(struct s390_cpumsf *sf, unsigned char *buf, in s390_cpumsf_dump_event() argument
[all …]
Dsrccode.c77 static void free_srcfile(struct srcfile *sf) in free_srcfile() argument
79 list_del_init(&sf->nd); in free_srcfile()
80 hlist_del(&sf->hash_nd); in free_srcfile()
81 map_total_sz -= sf->maplen; in free_srcfile()
82 munmap(sf->map, sf->maplen); in free_srcfile()
83 zfree(&sf->lines); in free_srcfile()
84 zfree(&sf->fn); in free_srcfile()
85 free(sf); in free_srcfile()
159 struct srcfile *sf = find_srcfile(fn); in find_sourceline() local
160 if (!sf) in find_sourceline()
[all …]
/linux-6.6.21/sound/synth/emux/
Dsoundfont.c27 static int is_identical_font(struct snd_soundfont *sf, int type, unsigned char *name);
31 struct snd_soundfont *sf, struct snd_sf_zone *zp);
33 struct snd_soundfont *sf);
35 struct snd_soundfont *sf, struct snd_sf_sample *sp);
37 struct snd_soundfont *sf);
39 struct snd_soundfont *sf, struct snd_sf_sample *sp);
42 static int remove_info(struct snd_sf_list *sflist, struct snd_soundfont *sf,
46 static struct snd_sf_sample *set_sample(struct snd_soundfont *sf,
48 static struct snd_sf_sample *find_sample(struct snd_soundfont *sf, int sample_id);
223 struct snd_soundfont *sf; in open_patch() local
[all …]
/linux-6.6.21/drivers/gpu/drm/arm/display/komeda/d71/
Dd71_component.c88 static void dump_block_header(struct seq_file *sf, void __iomem *reg) in dump_block_header() argument
94 seq_printf(sf, "BLOCK_INFO:\t\t0x%X\n", hdr.block_info); in dump_block_header()
95 seq_printf(sf, "PIPELINE_INFO:\t\t0x%X\n", hdr.pipeline_info); in dump_block_header()
101 seq_printf(sf, "VALID_INPUT_ID%u:\t0x%X\n", in dump_block_header()
105 seq_printf(sf, "OUTPUT_ID%u:\t\t0x%X\n", in dump_block_header()
286 static void d71_layer_dump(struct komeda_component *c, struct seq_file *sf) in d71_layer_dump() argument
303 dump_block_header(sf, c->reg); in d71_layer_dump()
305 seq_printf(sf, "%sLAYER_INFO:\t\t0x%X\n", prefix, v[14]); in d71_layer_dump()
308 seq_printf(sf, "%sCONTROL:\t\t0x%X\n", prefix, v[0]); in d71_layer_dump()
311 seq_printf(sf, "LR_RICH_CONTROL:\t0x%X\n", v[0]); in d71_layer_dump()
[all …]
/linux-6.6.21/arch/arm64/kernel/
Dsignal32.c183 struct compat_sigframe __user *sf) in compat_restore_sigframe() argument
190 err = get_sigset_t(&set, &sf->uc.uc_sigmask); in compat_restore_sigframe()
194 __get_user_error(regs->regs[0], &sf->uc.uc_mcontext.arm_r0, err); in compat_restore_sigframe()
195 __get_user_error(regs->regs[1], &sf->uc.uc_mcontext.arm_r1, err); in compat_restore_sigframe()
196 __get_user_error(regs->regs[2], &sf->uc.uc_mcontext.arm_r2, err); in compat_restore_sigframe()
197 __get_user_error(regs->regs[3], &sf->uc.uc_mcontext.arm_r3, err); in compat_restore_sigframe()
198 __get_user_error(regs->regs[4], &sf->uc.uc_mcontext.arm_r4, err); in compat_restore_sigframe()
199 __get_user_error(regs->regs[5], &sf->uc.uc_mcontext.arm_r5, err); in compat_restore_sigframe()
200 __get_user_error(regs->regs[6], &sf->uc.uc_mcontext.arm_r6, err); in compat_restore_sigframe()
201 __get_user_error(regs->regs[7], &sf->uc.uc_mcontext.arm_r7, err); in compat_restore_sigframe()
[all …]
/linux-6.6.21/arch/arc/kernel/
Dsignal.c101 stash_usr_regs(struct rt_sigframe __user *sf, struct pt_regs *regs, in stash_usr_regs() argument
131 err = __copy_to_user(&(sf->uc.uc_mcontext.regs.scratch), &uregs.scratch, in stash_usr_regs()
132 sizeof(sf->uc.uc_mcontext.regs.scratch)); in stash_usr_regs()
135 err |= save_arcv2_regs(&(sf->uc.uc_mcontext), regs); in stash_usr_regs()
137 err |= __copy_to_user(&sf->uc.uc_sigmask, set, sizeof(sigset_t)); in stash_usr_regs()
142 static int restore_usr_regs(struct pt_regs *regs, struct rt_sigframe __user *sf) in restore_usr_regs() argument
148 err = __copy_from_user(&set, &sf->uc.uc_sigmask, sizeof(set)); in restore_usr_regs()
150 &(sf->uc.uc_mcontext.regs.scratch), in restore_usr_regs()
151 sizeof(sf->uc.uc_mcontext.regs.scratch)); in restore_usr_regs()
154 err |= restore_arcv2_regs(&(sf->uc.uc_mcontext), regs); in restore_usr_regs()
[all …]
/linux-6.6.21/drivers/usb/mtu3/
Dmtu3_debugfs.c79 static int mtu3_link_state_show(struct seq_file *sf, void *unused) in mtu3_link_state_show() argument
81 struct mtu3 *mtu = sf->private; in mtu3_link_state_show()
84 seq_printf(sf, "opstate: %#x, ltssm: %#x\n", in mtu3_link_state_show()
91 static int mtu3_ep_used_show(struct seq_file *sf, void *unused) in mtu3_ep_used_show() argument
93 struct mtu3 *mtu = sf->private; in mtu3_ep_used_show()
104 seq_printf(sf, "%s - type: %s\n", mep->name, usb_ep_type_string(mep->type)); in mtu3_ep_used_show()
110 seq_printf(sf, "%s - type: %s\n", mep->name, usb_ep_type_string(mep->type)); in mtu3_ep_used_show()
114 seq_printf(sf, "total used: %d eps\n", used); in mtu3_ep_used_show()
173 static int mtu3_ep_info_show(struct seq_file *sf, void *unused) in mtu3_ep_info_show() argument
175 struct mtu3_ep *mep = sf->private; in mtu3_ep_info_show()
[all …]
/linux-6.6.21/tools/testing/selftests/arm64/signal/testcases/
Dfake_sigreturn_bad_size.c16 struct fake_sigframe sf; variable
24 struct _aarch64_ctx *shead = GET_SF_RESV_HEAD(sf), *head; in fake_sigreturn_bad_size_run()
27 if (!get_current_context(td, &sf.uc, sizeof(sf.uc))) in fake_sigreturn_bad_size_run()
30 resv_sz = GET_SF_RESV_SIZE(sf); in fake_sigreturn_bad_size_run()
49 ASSERT_GOOD_CONTEXT(&sf.uc); in fake_sigreturn_bad_size_run()
65 ASSERT_BAD_CONTEXT(&sf.uc); in fake_sigreturn_bad_size_run()
66 fake_sigreturn(&sf, sizeof(sf), 0); in fake_sigreturn_bad_size_run()
Dfake_sigreturn_bad_size_for_magic0.c16 struct fake_sigframe sf; variable
21 struct _aarch64_ctx *shead = GET_SF_RESV_HEAD(sf), *head; in fake_sigreturn_bad_size_for_magic0_run()
24 if (!get_current_context(td, &sf.uc, sizeof(sf.uc))) in fake_sigreturn_bad_size_for_magic0_run()
28 head = get_starting_head(shead, HDR_SZ, GET_SF_RESV_SIZE(sf), NULL); in fake_sigreturn_bad_size_for_magic0_run()
34 ASSERT_BAD_CONTEXT(&sf.uc); in fake_sigreturn_bad_size_for_magic0_run()
35 fake_sigreturn(&sf, sizeof(sf), 0); in fake_sigreturn_bad_size_for_magic0_run()
Dfake_sigreturn_bad_magic.c16 struct fake_sigframe sf; variable
21 struct _aarch64_ctx *shead = GET_SF_RESV_HEAD(sf), *head; in fake_sigreturn_bad_magic_run()
24 if (!get_current_context(td, &sf.uc, sizeof(sf.uc))) in fake_sigreturn_bad_magic_run()
28 head = get_starting_head(shead, HDR_SZ * 2, GET_SF_RESV_SIZE(sf), NULL); in fake_sigreturn_bad_magic_run()
40 ASSERT_BAD_CONTEXT(&sf.uc); in fake_sigreturn_bad_magic_run()
41 fake_sigreturn(&sf, sizeof(sf), 0); in fake_sigreturn_bad_magic_run()
Dfake_sigreturn_duplicated_fpsimd.c16 struct fake_sigframe sf; variable
21 struct _aarch64_ctx *shead = GET_SF_RESV_HEAD(sf), *head; in fake_sigreturn_duplicated_fpsimd_run()
24 if (!get_current_context(td, &sf.uc, sizeof(sf.uc))) in fake_sigreturn_duplicated_fpsimd_run()
28 GET_SF_RESV_SIZE(sf), NULL); in fake_sigreturn_duplicated_fpsimd_run()
38 ASSERT_BAD_CONTEXT(&sf.uc); in fake_sigreturn_duplicated_fpsimd_run()
39 fake_sigreturn(&sf, sizeof(sf), 0); in fake_sigreturn_duplicated_fpsimd_run()
Dfake_sigreturn_missing_fpsimd.c17 struct fake_sigframe sf; variable
23 struct _aarch64_ctx *head = GET_SF_RESV_HEAD(sf); in fake_sigreturn_missing_fpsimd_run()
26 if (!get_current_context(td, &sf.uc, sizeof(sf.uc))) in fake_sigreturn_missing_fpsimd_run()
29 resv_sz = GET_SF_RESV_SIZE(sf); in fake_sigreturn_missing_fpsimd_run()
37 ASSERT_BAD_CONTEXT(&sf.uc); in fake_sigreturn_missing_fpsimd_run()
38 fake_sigreturn(&sf, sizeof(sf), 0); in fake_sigreturn_missing_fpsimd_run()
/linux-6.6.21/drivers/gpu/host1x/
Dfence.c35 struct host1x_syncpt_fence *sf = to_host1x_fence(f); in host1x_syncpt_fence_enable_signaling() local
37 if (host1x_syncpt_is_expired(sf->sp, sf->threshold)) in host1x_syncpt_fence_enable_signaling()
52 if (sf->timeout) { in host1x_syncpt_fence_enable_signaling()
55 schedule_delayed_work(&sf->timeout_work, msecs_to_jiffies(30000)); in host1x_syncpt_fence_enable_signaling()
58 host1x_intr_add_fence_locked(sf->sp->host, sf); in host1x_syncpt_fence_enable_signaling()
149 struct host1x_syncpt_fence *sf = to_host1x_fence(f); in host1x_fence_cancel() local
151 schedule_delayed_work(&sf->timeout_work, 0); in host1x_fence_cancel()
152 flush_delayed_work(&sf->timeout_work); in host1x_fence_cancel()
/linux-6.6.21/arch/xtensa/kernel/
Dtraps.c585 struct stack_fragment *sf = data; in show_stack_fragment_cb() local
587 while (sf->off < sf->len) { in show_stack_fragment_cb()
589 size_t line_len = sf->len - sf->off > STACK_DUMP_LINE_SIZE ? in show_stack_fragment_cb()
590 STACK_DUMP_LINE_SIZE : sf->len - sf->off; in show_stack_fragment_cb()
591 bool arrow = sf->off == 0; in show_stack_fragment_cb()
593 if (frame && frame->sp == (unsigned long)(sf->sp + sf->off)) in show_stack_fragment_cb()
596 __memcpy(line, sf->sp + sf->off, line_len); in show_stack_fragment_cb()
597 print_hex_dump(sf->loglvl, arrow ? "> " : " ", DUMP_PREFIX_NONE, in show_stack_fragment_cb()
600 sf->off += STACK_DUMP_LINE_SIZE; in show_stack_fragment_cb()
609 struct stack_fragment sf; in show_stack() local
[all …]
/linux-6.6.21/arch/powerpc/perf/
Dcallchain_32.c81 struct signal_frame_32 __user *sf; in sane_signal_32_frame() local
84 sf = (struct signal_frame_32 __user *) (unsigned long) sp; in sane_signal_32_frame()
85 if (read_user_stack_32((unsigned int __user *) &sf->sctx.regs, &regs)) in sane_signal_32_frame()
87 return regs == (unsigned long) &sf->mctx; in sane_signal_32_frame()
92 struct rt_signal_frame_32 __user *sf; in sane_rt_signal_32_frame() local
95 sf = (struct rt_signal_frame_32 __user *) (unsigned long) sp; in sane_rt_signal_32_frame()
96 if (read_user_stack_32((unsigned int __user *) &sf->uc.uc_regs, &regs)) in sane_rt_signal_32_frame()
98 return regs == (unsigned long) &sf->uc.uc_mcontext; in sane_rt_signal_32_frame()
105 struct signal_frame_32 __user *sf; in signal_frame_32_regs() local
117 sf = (struct signal_frame_32 __user *) (unsigned long) sp; in signal_frame_32_regs()
[all …]
/linux-6.6.21/drivers/platform/surface/aggregator/
Dssh_parser.c121 struct ssam_span sf; in sshp_parse_frame() local
141 sf.ptr = source->ptr + sizeof(u16); in sshp_parse_frame()
142 sf.len = sizeof(struct ssh_frame); in sshp_parse_frame()
145 if (unlikely(!sshp_validate_crc(&sf, sf.ptr + sf.len))) { in sshp_parse_frame()
151 sp.len = get_unaligned_le16(&((struct ssh_frame *)sf.ptr)->len); in sshp_parse_frame()
159 sp.ptr = sf.ptr + sf.len + sizeof(u16); in sshp_parse_frame()
173 *frame = (struct ssh_frame *)sf.ptr; in sshp_parse_frame()
/linux-6.6.21/fs/btrfs/
Dcheck-integrity.c865 struct btrfsic_stack_frame *sf; in btrfsic_stack_frame_alloc() local
867 sf = kzalloc(sizeof(*sf), GFP_NOFS); in btrfsic_stack_frame_alloc()
868 if (sf) in btrfsic_stack_frame_alloc()
869 sf->magic = BTRFSIC_BLOCK_STACK_FRAME_MAGIC_NUMBER; in btrfsic_stack_frame_alloc()
870 return sf; in btrfsic_stack_frame_alloc()
873 static void btrfsic_stack_frame_free(struct btrfsic_stack_frame *sf) in btrfsic_stack_frame_free() argument
875 BUG_ON(!(NULL == sf || in btrfsic_stack_frame_free()
876 BTRFSIC_BLOCK_STACK_FRAME_MAGIC_NUMBER == sf->magic)); in btrfsic_stack_frame_free()
877 kfree(sf); in btrfsic_stack_frame_free()
887 struct btrfsic_stack_frame *sf; in btrfsic_process_metablock() local
[all …]

12345678910