Home
last modified time | relevance | path

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

12345678910>>...29

/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/sound/usb/
Dformat.c33 struct audioformat *fp, in parse_audio_format_i_type() argument
39 switch (fp->protocol) { in parse_audio_format_i_type()
46 fp->iface, fp->altsetting, format); in parse_audio_format_i_type()
63 fp->dsd_raw = true; in parse_audio_format_i_type()
83 fp->fmt_bits = sample_width; in parse_audio_format_i_type()
89 fp->iface, fp->altsetting); in parse_audio_format_i_type()
101 fp->iface, fp->altsetting, in parse_audio_format_i_type()
110 if (snd_usb_is_big_endian_format(chip, fp)) in parse_audio_format_i_type()
116 if (snd_usb_is_big_endian_format(chip, fp)) in parse_audio_format_i_type()
127 fp->iface, fp->altsetting, 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()
82 struct audioformat *fp, in snd_usb_init_substream() argument
101 list_add_tail(&fp->list, &subs->fmt_list); in snd_usb_init_substream()
[all …]
/kernel/linux/linux-5.10/arch/m68k/kernel/
Dtraps.c130 asmlinkage void trap_c(struct frame *fp);
133 static inline void access_error060 (struct frame *fp) in access_error060() argument
135 unsigned long fslw = fp->un.fmt4.pc; /* is really FSLW for access error */ in access_error060()
137 pr_debug("fslw=%#lx, fa=%#lx\n", fslw, fp->un.fmt4.effaddr); in access_error060()
152 unsigned long addr = fp->un.fmt4.effaddr; in access_error060()
165 do_page_fault(&fp->ptregs, addr, errorcode); in access_error060()
170 send_fault_sig(&fp->ptregs); in access_error060()
172 send_fault_sig(&fp->ptregs) > 0) { in access_error060()
173 pr_err("pc=%#lx, fa=%#lx\n", fp->ptregs.pc, in access_error060()
174 fp->un.fmt4.effaddr); in access_error060()
[all …]
/kernel/liteos_m/testsuites/unittest/posix/src/fs/
Dposix_fs_func_test.c73 FILE *fp = NULL; variable
74 fp = fopen(TEST_FILE_PTAH_RIGHT, "w");
75 ICUNIT_ASSERT_NOT_EQUAL(fp, NULL, 0);
77 ret = fclose(fp);
90 FILE *fp = NULL; variable
91 fp = fopen(TEST_FILE_PTAH_RIGHT, "w+");
92 ICUNIT_ASSERT_NOT_EQUAL(fp, NULL, 0);
94 ret = fclose(fp);
107 FILE *fp = NULL; variable
108 fp = fopen(TEST_FILE_PTAH_RIGHT, "r");
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/arch/nios2/kernel/
Dtraps.c114 asmlinkage void breakpoint_c(struct pt_regs *fp) in breakpoint_c() argument
121 fp->ea -= 4; in breakpoint_c()
122 _exception(SIGTRAP, fp, TRAP_BRKPT, fp->ea); in breakpoint_c()
127 asmlinkage void handle_unaligned_c(struct pt_regs *fp, int cause) in handle_unaligned_c() argument
132 fp->ea -= 4; in handle_unaligned_c()
134 if (fixup_exception(fp)) in handle_unaligned_c()
137 if (!user_mode(fp)) { in handle_unaligned_c()
142 pr_alert(" op-code 0x%08lx\n", *(unsigned long *)(fp->ea)); in handle_unaligned_c()
143 show_regs(fp); in handle_unaligned_c()
147 _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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/arch/csky/kernel/
Dptrace.c347 void show_regs(struct pt_regs *fp) in show_regs() argument
365 pr_info("PC: 0x%08lx (%pS)\n", (long)fp->pc, (void *)fp->pc); in show_regs()
366 pr_info("LR: 0x%08lx (%pS)\n", (long)fp->lr, (void *)fp->lr); in show_regs()
367 pr_info("SP: 0x%08lx\n", (long)fp); in show_regs()
368 pr_info("orig_a0: 0x%08lx\n", fp->orig_a0); in show_regs()
369 pr_info("PSR: 0x%08lx\n", (long)fp->sr); in show_regs()
372 fp->a0, fp->a1, fp->a2, fp->a3); in show_regs()
375 fp->regs[0], fp->regs[1], fp->regs[2], fp->regs[3]); in show_regs()
377 fp->regs[4], fp->regs[5], fp->regs[6], fp->regs[7]); in show_regs()
379 fp->regs[8], fp->regs[9], fp->lr); in show_regs()
[all …]
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 *user_frame_tail = (unsigned long __user *)fp; in user_backtrace()
66 fp = buftail.fp; in user_backtrace()
69 return fp; in user_backtrace()
90 unsigned long fp = 0; in perf_callchain_user() local
96 fp = regs->regs[4]; in perf_callchain_user()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/scsi/libfc/
Dfc_lport.c153 static int fc_frame_drop(struct fc_lport *lport, struct fc_frame *fp) in fc_frame_drop() argument
155 fc_frame_free(fp); in fc_frame_drop()
394 static void fc_lport_recv_rlir_req(struct fc_lport *lport, struct fc_frame *fp) in fc_lport_recv_rlir_req() argument
401 fc_seq_els_rsp_send(fp, ELS_LS_ACC, NULL); in fc_lport_recv_rlir_req()
402 fc_frame_free(fp); in fc_lport_recv_rlir_req()
413 struct fc_frame *fp; in fc_lport_recv_echo_req() local
429 fp = fc_frame_alloc(lport, len); in fc_lport_recv_echo_req()
430 if (fp) { in fc_lport_recv_echo_req()
431 dp = fc_frame_payload_get(fp, len); in fc_lport_recv_echo_req()
434 fc_fill_reply_hdr(fp, in_fp, FC_RCTL_ELS_REP, 0); in fc_lport_recv_echo_req()
[all …]
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 …]
/kernel/linux/linux-5.10/tools/testing/selftests/resctrl/
Dresctrlfs.c112 FILE *fp; in get_resource_id() local
121 fp = fopen(phys_pkg_path, "r"); in get_resource_id()
122 if (!fp) { in get_resource_id()
127 if (fscanf(fp, "%d", resource_id) <= 0) { in get_resource_id()
129 fclose(fp); in get_resource_id()
133 fclose(fp); in get_resource_id()
150 FILE *fp; in get_cache_size() local
163 fp = fopen(cache_path, "r"); in get_cache_size()
164 if (!fp) { in get_cache_size()
169 if (fscanf(fp, "%s", cache_str) <= 0) { in get_cache_size()
[all …]
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/ni_routing/tools/
Dconvert_c_to_py.c37 void family_write(const struct family_route_values *rv, FILE *fp) in family_write() argument
39 fprintf(fp, in family_write()
55 fprintf(fp, " %u : {\n", dest); in family_write()
76 fprintf(fp, " %u : \"%s(%u)\",\n", in family_write()
79 fprintf(fp, " },\n"); in family_write()
81 fprintf(fp, " },\n\n"); in family_write()
100 void device_write(const struct ni_device_routes *dR, FILE *fp) in device_write() argument
102 fprintf(fp, in device_write()
117 fprintf(fp, " %u : [", dR->routes[i].dest); in device_write()
129 fprintf(fp, "%u,", dR->routes[i].src[j]); in device_write()
[all …]
/kernel/linux/linux-5.10/arch/alpha/include/uapi/asm/
Dfpu.h95 unsigned long fp; in ieee_swcr_to_fpcr() local
96 fp = (sw & IEEE_STATUS_MASK) << 35; in ieee_swcr_to_fpcr()
97 fp |= (sw & IEEE_MAP_DMZ) << 36; in ieee_swcr_to_fpcr()
98 fp |= (sw & IEEE_STATUS_MASK ? FPCR_SUM : 0); in ieee_swcr_to_fpcr()
99 fp |= (~sw & (IEEE_TRAP_ENABLE_INV in ieee_swcr_to_fpcr()
102 fp |= (~sw & (IEEE_TRAP_ENABLE_UNF | IEEE_TRAP_ENABLE_INE)) << 57; in ieee_swcr_to_fpcr()
103 fp |= (sw & IEEE_MAP_UMZ ? FPCR_UNDZ | FPCR_UNFD : 0); in ieee_swcr_to_fpcr()
104 fp |= (~sw & IEEE_TRAP_ENABLE_DNO) << 41; in ieee_swcr_to_fpcr()
105 return fp; in ieee_swcr_to_fpcr()
109 ieee_fpcr_to_swcr(unsigned long fp) in ieee_fpcr_to_swcr() argument
[all …]

12345678910>>...29