Home
last modified time | relevance | path

Searched refs:fp (Results 1 – 25 of 696) sorted by relevance

12345678910>>...28

/Linux-v5.15/drivers/s390/char/
Dfs3270.c54 fs3270_working(struct fs3270 *fp) in fs3270_working() argument
60 return fp->active && raw3270_request_final(fp->init); in fs3270_working()
66 struct fs3270 *fp; in fs3270_do_io() local
69 fp = (struct fs3270 *) view; in fs3270_do_io()
71 rq->callback_data = &fp->wait; in fs3270_do_io()
74 if (!fs3270_working(fp)) { in fs3270_do_io()
76 rc = wait_event_interruptible(fp->wait, in fs3270_do_io()
77 fs3270_working(fp)); in fs3270_do_io()
84 wait_event(fp->wait, raw3270_request_final(rq)); in fs3270_do_io()
96 struct fs3270 *fp; in fs3270_reset_callback() local
[all …]
Dhmcdrv_dev.c56 static int hmcdrv_dev_open(struct inode *inode, struct file *fp);
57 static int hmcdrv_dev_release(struct inode *inode, struct file *fp);
58 static loff_t hmcdrv_dev_seek(struct file *fp, loff_t pos, int whence);
59 static ssize_t hmcdrv_dev_read(struct file *fp, char __user *ubuf,
61 static ssize_t hmcdrv_dev_write(struct file *fp, const char __user *ubuf,
114 static int hmcdrv_dev_open(struct inode *inode, struct file *fp) in hmcdrv_dev_open() argument
120 if (fp->f_flags & O_NONBLOCK) in hmcdrv_dev_open()
126 if ((fp->f_flags & O_ACCMODE) == O_RDONLY) in hmcdrv_dev_open()
135 fp->private_data = NULL; /* no command yet */ in hmcdrv_dev_open()
140 pr_debug("open file '/dev/%pD' with return code %d\n", fp, rc); in hmcdrv_dev_open()
[all …]
/Linux-v5.15/arch/m68k/kernel/
Dtraps.c129 asmlinkage void trap_c(struct frame *fp);
132 static inline void access_error060 (struct frame *fp) in access_error060() argument
134 unsigned long fslw = fp->un.fmt4.pc; /* is really FSLW for access error */ in access_error060()
136 pr_debug("fslw=%#lx, fa=%#lx\n", fslw, fp->un.fmt4.effaddr); in access_error060()
151 unsigned long addr = fp->un.fmt4.effaddr; in access_error060()
164 do_page_fault(&fp->ptregs, addr, errorcode); in access_error060()
169 send_fault_sig(&fp->ptregs); in access_error060()
171 send_fault_sig(&fp->ptregs) > 0) { in access_error060()
172 pr_err("pc=%#lx, fa=%#lx\n", fp->ptregs.pc, in access_error060()
173 fp->un.fmt4.effaddr); in access_error060()
[all …]
/Linux-v5.15/drivers/net/fddi/
Ddefza.c212 static inline void fza_regs_dump(struct fza_private *fp) in fza_regs_dump() argument
214 pr_debug("%s: iomem registers:\n", fp->name); in fza_regs_dump()
215 pr_debug(" reset: 0x%04x\n", readw_o(&fp->regs->reset)); in fza_regs_dump()
216 pr_debug(" interrupt event: 0x%04x\n", readw_u(&fp->regs->int_event)); in fza_regs_dump()
217 pr_debug(" status: 0x%04x\n", readw_u(&fp->regs->status)); in fza_regs_dump()
218 pr_debug(" interrupt mask: 0x%04x\n", readw_u(&fp->regs->int_mask)); in fza_regs_dump()
219 pr_debug(" control A: 0x%04x\n", readw_u(&fp->regs->control_a)); in fza_regs_dump()
220 pr_debug(" control B: 0x%04x\n", readw_u(&fp->regs->control_b)); in fza_regs_dump()
223 static inline void fza_do_reset(struct fza_private *fp) in fza_do_reset() argument
226 writew_o(FZA_RESET_INIT, &fp->regs->reset); in fza_do_reset()
[all …]
/Linux-v5.15/sound/usb/
Dformat.c32 struct audioformat *fp, in parse_audio_format_i_type() argument
38 switch (fp->protocol) { in parse_audio_format_i_type()
58 fp->dsd_raw = true; in parse_audio_format_i_type()
78 fp->fmt_bits = sample_width; in parse_audio_format_i_type()
84 fp->iface, fp->altsetting); in parse_audio_format_i_type()
96 fp->iface, fp->altsetting, in parse_audio_format_i_type()
105 if (snd_usb_is_big_endian_format(chip, fp)) in parse_audio_format_i_type()
111 if (snd_usb_is_big_endian_format(chip, fp)) in parse_audio_format_i_type()
122 fp->iface, fp->altsetting, in parse_audio_format_i_type()
147 fp->iface, fp->altsetting, format); in parse_audio_format_i_type()
[all …]
Dstream.c31 static void audioformat_free(struct audioformat *fp) in audioformat_free() argument
33 list_del(&fp->list); /* unlink for avoiding double-free */ in audioformat_free()
34 kfree(fp->rate_table); in audioformat_free()
35 kfree(fp->chmap); in audioformat_free()
36 kfree(fp); in audioformat_free()
44 struct audioformat *fp, *n; in free_substream() local
48 list_for_each_entry_safe(fp, n, &subs->fmt_list, list) in free_substream()
49 audioformat_free(fp); in free_substream()
81 struct audioformat *fp, in snd_usb_init_substream() argument
100 list_add_tail(&fp->list, &subs->fmt_list); in snd_usb_init_substream()
[all …]
Dproc.c94 struct audioformat *fp; in proc_dump_substream_formats() local
99 list_for_each_entry(fp, &subs->fmt_list, list) { in proc_dump_substream_formats()
102 snd_iprintf(buffer, " Interface %d\n", fp->iface); in proc_dump_substream_formats()
103 snd_iprintf(buffer, " Altset %d\n", fp->altsetting); in proc_dump_substream_formats()
106 if (fp->formats & pcm_format_to_bits(fmt)) in proc_dump_substream_formats()
110 snd_iprintf(buffer, " Channels: %d\n", fp->channels); in proc_dump_substream_formats()
112 fp->endpoint, in proc_dump_substream_formats()
113 fp->endpoint & USB_ENDPOINT_NUMBER_MASK, in proc_dump_substream_formats()
114 fp->endpoint & USB_DIR_IN ? "IN" : "OUT", in proc_dump_substream_formats()
115 sync_types[(fp->ep_attr & USB_ENDPOINT_SYNCTYPE) >> 2]); in proc_dump_substream_formats()
[all …]
/Linux-v5.15/include/scsi/
Dfc_frame.h50 #define fp_skb(fp) (&((fp)->skb)) argument
51 #define fr_hdr(fp) ((fp)->skb.data) argument
52 #define fr_len(fp) ((fp)->skb.len) argument
53 #define fr_cb(fp) ((struct fcoe_rcv_info *)&((fp)->skb.cb[0])) argument
54 #define fr_dev(fp) (fr_cb(fp)->fr_dev) argument
55 #define fr_seq(fp) (fr_cb(fp)->fr_seq) argument
56 #define fr_sof(fp) (fr_cb(fp)->fr_sof) argument
57 #define fr_eof(fp) (fr_cb(fp)->fr_eof) argument
58 #define fr_flags(fp) (fr_cb(fp)->fr_flags) argument
59 #define fr_encaps(fp) (fr_cb(fp)->fr_encaps) argument
[all …]
/Linux-v5.15/fs/ksmbd/
Dvfs_cache.c84 static struct ksmbd_inode *ksmbd_inode_lookup(struct ksmbd_file *fp) in ksmbd_inode_lookup() argument
86 return __ksmbd_inode_lookup(file_inode(fp->filp)); in ksmbd_inode_lookup()
116 bool ksmbd_inode_pending_delete(struct ksmbd_file *fp) in ksmbd_inode_pending_delete() argument
118 return (fp->f_ci->m_flags & S_DEL_PENDING); in ksmbd_inode_pending_delete()
121 void ksmbd_set_inode_pending_delete(struct ksmbd_file *fp) in ksmbd_set_inode_pending_delete() argument
123 fp->f_ci->m_flags |= S_DEL_PENDING; in ksmbd_set_inode_pending_delete()
126 void ksmbd_clear_inode_pending_delete(struct ksmbd_file *fp) in ksmbd_clear_inode_pending_delete() argument
128 fp->f_ci->m_flags &= ~S_DEL_PENDING; in ksmbd_clear_inode_pending_delete()
131 void ksmbd_fd_set_delete_on_close(struct ksmbd_file *fp, in ksmbd_fd_set_delete_on_close() argument
134 if (ksmbd_stream_fd(fp)) { in ksmbd_fd_set_delete_on_close()
[all …]
/Linux-v5.15/drivers/sbus/char/
Dbbc_envctrl.c93 static void set_fan_speeds(struct bbc_fan_control *fp) in set_fan_speeds() argument
98 if (fp->cpu_fan_speed < FAN_SPEED_MIN) in set_fan_speeds()
99 fp->cpu_fan_speed = FAN_SPEED_MIN; in set_fan_speeds()
100 if (fp->cpu_fan_speed > FAN_SPEED_MAX) in set_fan_speeds()
101 fp->cpu_fan_speed = FAN_SPEED_MAX; in set_fan_speeds()
102 if (fp->system_fan_speed < FAN_SPEED_MIN) in set_fan_speeds()
103 fp->system_fan_speed = FAN_SPEED_MIN; in set_fan_speeds()
104 if (fp->system_fan_speed > FAN_SPEED_MAX) in set_fan_speeds()
105 fp->system_fan_speed = FAN_SPEED_MAX; in set_fan_speeds()
108 fp->index, in set_fan_speeds()
[all …]
/Linux-v5.15/tools/perf/util/
Devsel_fprintf.c15 static int comma_fprintf(FILE *fp, bool *first, const char *fmt, ...) in comma_fprintf() argument
21 ret += fprintf(fp, ","); in comma_fprintf()
23 ret += fprintf(fp, ":"); in comma_fprintf()
28 ret += vfprintf(fp, fmt, args); in comma_fprintf()
33 static int __print_attr__fprintf(FILE *fp, const char *name, const char *val, void *priv) in __print_attr__fprintf() argument
35 return comma_fprintf(fp, (bool *)priv, " %s: %s", name, val); in __print_attr__fprintf()
38 int evsel__fprintf(struct evsel *evsel, struct perf_attr_details *details, FILE *fp) in evsel__fprintf() argument
50 printed += fprintf(fp, "%s{", evsel->group_name ?: ""); in evsel__fprintf()
52 printed += fprintf(fp, "%s", evsel__name(evsel)); in evsel__fprintf()
54 printed += fprintf(fp, ",%s", evsel__name(pos)); in evsel__fprintf()
[all …]
/Linux-v5.15/tools/perf/ui/stdio/
Dhist.c22 static size_t callchain__fprintf_left_margin(FILE *fp, int left_margin) in callchain__fprintf_left_margin() argument
25 int ret = fprintf(fp, " "); in callchain__fprintf_left_margin()
28 ret += fprintf(fp, " "); in callchain__fprintf_left_margin()
33 static size_t ipchain__fprintf_graph_line(FILE *fp, int depth, int depth_mask, in ipchain__fprintf_graph_line() argument
37 size_t ret = callchain__fprintf_left_margin(fp, left_margin); in ipchain__fprintf_graph_line()
41 ret += fprintf(fp, "| "); in ipchain__fprintf_graph_line()
43 ret += fprintf(fp, " "); in ipchain__fprintf_graph_line()
45 ret += fprintf(fp, "\n"); in ipchain__fprintf_graph_line()
50 static size_t ipchain__fprintf_graph(FILE *fp, struct callchain_node *node, in ipchain__fprintf_graph() argument
61 ret += callchain__fprintf_left_margin(fp, left_margin); in ipchain__fprintf_graph()
[all …]
/Linux-v5.15/arch/nios2/kernel/
Dtraps.c109 asmlinkage void breakpoint_c(struct pt_regs *fp) in breakpoint_c() argument
116 fp->ea -= 4; in breakpoint_c()
117 _exception(SIGTRAP, fp, TRAP_BRKPT, fp->ea); in breakpoint_c()
122 asmlinkage void handle_unaligned_c(struct pt_regs *fp, int cause) in handle_unaligned_c() argument
127 fp->ea -= 4; in handle_unaligned_c()
129 if (fixup_exception(fp)) in handle_unaligned_c()
132 if (!user_mode(fp)) { in handle_unaligned_c()
137 pr_alert(" op-code 0x%08lx\n", *(unsigned long *)(fp->ea)); in handle_unaligned_c()
138 show_regs(fp); in handle_unaligned_c()
142 _exception(SIGBUS, fp, BUS_ADRALN, addr); in handle_unaligned_c()
[all …]
Dprocess.c93 regs->ra, regs->fp, regs->sp, regs->gp); in show_regs()
151 void dump(struct pt_regs *fp) in dump() argument
173 pr_emerg("PC: %08lx\n", fp->ea); in dump()
175 (long) fp->estatus, (long) fp); in dump()
178 fp->r1, fp->r2, fp->r3); in dump()
181 fp->r4, fp->r5, fp->r6, fp->r7); in dump()
183 fp->r8, fp->r9, fp->r10, fp->r11); in dump()
185 fp->r12, fp->r13, fp->r14, fp->r15); in dump()
187 fp->orig_r2, fp->ra, fp->fp, fp->sp); in dump()
189 (unsigned int) fp->sp, (unsigned int) fp); in dump()
[all …]
Dmisaligned.c51 static inline u32 get_reg_val(struct pt_regs *fp, int reg) in get_reg_val() argument
53 u8 *p = ((u8 *)fp) + reg_offsets[reg]; in get_reg_val()
57 static inline void put_reg_val(struct pt_regs *fp, int reg, u32 val) in put_reg_val() argument
59 u8 *p = ((u8 *)fp) + reg_offsets[reg]; in put_reg_val()
66 asmlinkage void handle_unaligned_c(struct pt_regs *fp, int cause) in handle_unaligned_c() argument
75 fp->ea -= 4; in handle_unaligned_c()
77 if (fixup_exception(fp)) { in handle_unaligned_c()
81 in_kernel = !user_mode(fp); in handle_unaligned_c()
83 isn = *(unsigned long *)(fp->ea); in handle_unaligned_c()
93 addr = get_reg_val(fp, a) + imm16; in handle_unaligned_c()
[all …]
/Linux-v5.15/drivers/usb/gadget/function/
Df_phonet.c202 struct f_phonet *fp = ep->driver_data; in pn_tx_complete() local
203 struct net_device *dev = fp->dev; in pn_tx_complete()
227 struct f_phonet *fp; in pn_net_xmit() local
235 fp = port->usb; in pn_net_xmit()
236 if (unlikely(!fp)) /* race with carrier loss */ in pn_net_xmit()
239 req = fp->in_req; in pn_net_xmit()
246 if (unlikely(usb_ep_queue(fp->in_ep, req, GFP_ATOMIC))) in pn_net_xmit()
292 pn_rx_submit(struct f_phonet *fp, struct usb_request *req, gfp_t gfp_flags) in pn_rx_submit() argument
305 err = usb_ep_queue(fp->out_ep, req, gfp_flags); in pn_rx_submit()
313 struct f_phonet *fp = ep->driver_data; in pn_rx_complete() local
[all …]
/Linux-v5.15/drivers/net/fddi/skfp/
Dfplustm.c170 smc->hw.fp.fifo.rbc_ram_start = 0 ; in init_ram()
171 smc->hw.fp.fifo.rbc_ram_end = in init_ram()
172 smc->hw.fp.fifo.rbc_ram_start + RBC_MEM_SIZE ; in init_ram()
174 MARW(smc->hw.fp.fifo.rbc_ram_start) ; in init_ram()
175 for (i = smc->hw.fp.fifo.rbc_ram_start; in init_ram()
176 i < (u_short) (smc->hw.fp.fifo.rbc_ram_end-1); i++) in init_ram()
190 outpw(FM_A(FM_RPR1),smc->hw.fp.fifo.rx1_fifo_start) ; /* RPR1 */ in set_recvptr()
191 outpw(FM_A(FM_SWPR1),smc->hw.fp.fifo.rx1_fifo_start) ; /* SWPR1 */ in set_recvptr()
192 outpw(FM_A(FM_WPR1),smc->hw.fp.fifo.rx1_fifo_start) ; /* WPR1 */ in set_recvptr()
193 outpw(FM_A(FM_EARV1),smc->hw.fp.fifo.tx_s_start-1) ; /* EARV1 */ in set_recvptr()
[all …]
/Linux-v5.15/drivers/net/phy/
Dfixed_phy.c52 struct fixed_phy *fp; in fixed_phy_change_carrier() local
57 list_for_each_entry(fp, &fmb->phys, node) { in fixed_phy_change_carrier()
58 if (fp->addr == phydev->mdio.addr) { in fixed_phy_change_carrier()
59 fp->no_carrier = !new_carrier; in fixed_phy_change_carrier()
67 static void fixed_phy_update(struct fixed_phy *fp) in fixed_phy_update() argument
69 if (!fp->no_carrier && fp->link_gpiod) in fixed_phy_update()
70 fp->status.link = !!gpiod_get_value_cansleep(fp->link_gpiod); in fixed_phy_update()
76 struct fixed_phy *fp; in fixed_mdio_read() local
78 list_for_each_entry(fp, &fmb->phys, node) { in fixed_mdio_read()
79 if (fp->addr == phy_addr) { in fixed_mdio_read()
[all …]
/Linux-v5.15/arch/powerpc/net/
Dbpf_jit_comp.c27 static int bpf_jit_fixup_subprog_calls(struct bpf_prog *fp, u32 *image, in bpf_jit_fixup_subprog_calls() argument
30 const struct bpf_insn *insn = fp->insnsi; in bpf_jit_fixup_subprog_calls()
36 for (i = 0; i < fp->len; i++) { in bpf_jit_fixup_subprog_calls()
48 ret = bpf_jit_get_func_addr(fp, &insn[i], true, in bpf_jit_fixup_subprog_calls()
88 struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *fp) in bpf_int_jit_compile() argument
100 struct bpf_prog *org_fp = fp; in bpf_int_jit_compile()
105 if (!fp->jit_requested) in bpf_int_jit_compile()
114 fp = tmp_fp; in bpf_int_jit_compile()
117 jit_data = fp->aux->jit_data; in bpf_int_jit_compile()
121 fp = org_fp; in bpf_int_jit_compile()
[all …]
/Linux-v5.15/arch/csky/kernel/
Dperf_callchain.c9 unsigned long fp; member
18 if (unlikely(frame->fp < low || frame->fp > high)) in unwind_frame_kernel()
21 if (kstack_end((void *)frame->fp) || frame->fp & 0x3) in unwind_frame_kernel()
24 *frame = *(struct stackframe *)frame->fp; in unwind_frame_kernel()
48 unsigned long fp, unsigned long reg_lr) in user_backtrace() argument
52 unsigned long *user_frame_tail = (unsigned long *)fp; in user_backtrace()
66 fp = buftail.fp; in user_backtrace()
69 return fp; in user_backtrace()
89 unsigned long fp = 0; in perf_callchain_user() local
95 fp = regs->regs[4]; in perf_callchain_user()
[all …]
Dptrace.c466 void show_regs(struct pt_regs *fp) in show_regs() argument
484 pr_info("PC: 0x%08lx (%pS)\n", (long)fp->pc, (void *)fp->pc); in show_regs()
485 pr_info("LR: 0x%08lx (%pS)\n", (long)fp->lr, (void *)fp->lr); in show_regs()
486 pr_info("SP: 0x%08lx\n", (long)fp->usp); in show_regs()
487 pr_info("PSR: 0x%08lx\n", (long)fp->sr); in show_regs()
488 pr_info("orig_a0: 0x%08lx\n", fp->orig_a0); in show_regs()
489 pr_info("PT_REGS: 0x%08lx\n", (long)fp); in show_regs()
492 fp->a0, fp->a1, fp->a2, fp->a3); in show_regs()
495 fp->regs[0], fp->regs[1], fp->regs[2], fp->regs[3]); in show_regs()
497 fp->regs[4], fp->regs[5], fp->regs[6], fp->regs[7]); in show_regs()
[all …]
/Linux-v5.15/drivers/scsi/libfc/
Dfc_rport.c699 struct fc_frame *fp) in fc_rport_login_complete() argument
706 flogi = fc_frame_payload_get(fp, sizeof(*flogi)); in fc_rport_login_complete()
712 if (fc_frame_payload_op(fp) == ELS_FLOGI) { in fc_rport_login_complete()
738 static void fc_rport_flogi_resp(struct fc_seq *sp, struct fc_frame *fp, in fc_rport_flogi_resp() argument
749 IS_ERR(fp) ? "error" : fc_els_resp_type(fp)); in fc_rport_flogi_resp()
751 if (fp == ERR_PTR(-FC_EX_CLOSED)) in fc_rport_flogi_resp()
759 if (IS_ERR(fp)) in fc_rport_flogi_resp()
764 if (IS_ERR(fp)) { in fc_rport_flogi_resp()
765 fc_rport_error(rdata, PTR_ERR(fp)); in fc_rport_flogi_resp()
768 opcode = fc_frame_payload_op(fp); in fc_rport_flogi_resp()
[all …]
Dfc_frame.c22 u32 fc_frame_crc_check(struct fc_frame *fp) in fc_frame_crc_check() argument
29 WARN_ON(!fc_frame_is_linear(fp)); in fc_frame_crc_check()
30 fr_flags(fp) &= ~FCPHF_CRC_UNCHECKED; in fc_frame_crc_check()
31 len = (fr_len(fp) + 3) & ~3; /* round up length to include fill */ in fc_frame_crc_check()
32 bp = (const u8 *) fr_hdr(fp); in fc_frame_crc_check()
34 error = crc ^ fr_crc(fp); in fc_frame_crc_check()
45 struct fc_frame *fp; in _fc_frame_alloc() local
55 fp = (struct fc_frame *) skb; in _fc_frame_alloc()
56 fc_frame_init(fp); in _fc_frame_alloc()
58 return fp; in _fc_frame_alloc()
[all …]
Dfc_lport.c156 static int fc_frame_drop(struct fc_lport *lport, struct fc_frame *fp) in fc_frame_drop() argument
158 fc_frame_free(fp); in fc_frame_drop()
397 static void fc_lport_recv_rlir_req(struct fc_lport *lport, struct fc_frame *fp) in fc_lport_recv_rlir_req() argument
404 fc_seq_els_rsp_send(fp, ELS_LS_ACC, NULL); in fc_lport_recv_rlir_req()
405 fc_frame_free(fp); in fc_lport_recv_rlir_req()
416 struct fc_frame *fp; in fc_lport_recv_echo_req() local
432 fp = fc_frame_alloc(lport, len); in fc_lport_recv_echo_req()
433 if (fp) { in fc_lport_recv_echo_req()
434 dp = fc_frame_payload_get(fp, len); in fc_lport_recv_echo_req()
437 fc_fill_reply_hdr(fp, in_fp, FC_RCTL_ELS_REP, 0); in fc_lport_recv_echo_req()
[all …]
/Linux-v5.15/drivers/comedi/drivers/ni_routing/tools/
Dconvert_c_to_py.c36 void family_write(const struct family_route_values *rv, FILE *fp) in family_write() argument
38 fprintf(fp, in family_write()
54 fprintf(fp, " %u : {\n", dest); in family_write()
75 fprintf(fp, " %u : \"%s(%u)\",\n", in family_write()
78 fprintf(fp, " },\n"); in family_write()
80 fprintf(fp, " },\n\n"); in family_write()
99 void device_write(const struct ni_device_routes *dR, FILE *fp) in device_write() argument
101 fprintf(fp, in device_write()
116 fprintf(fp, " %u : [", dR->routes[i].dest); in device_write()
128 fprintf(fp, "%u,", dR->routes[i].src[j]); in device_write()
[all …]

12345678910>>...28