Home
last modified time | relevance | path

Searched refs:fp (Results 1 – 200 of 633) sorted by relevance

1234

/linux-4.4.14/drivers/s390/char/
Dfs3270.c53 fs3270_working(struct fs3270 *fp) in fs3270_working() argument
59 return fp->active && raw3270_request_final(fp->init); in fs3270_working()
65 struct fs3270 *fp; in fs3270_do_io() local
68 fp = (struct fs3270 *) view; in fs3270_do_io()
70 rq->callback_data = &fp->wait; in fs3270_do_io()
73 if (!fs3270_working(fp)) { in fs3270_do_io()
75 rc = wait_event_interruptible(fp->wait, in fs3270_do_io()
76 fs3270_working(fp)); in fs3270_do_io()
83 wait_event(fp->wait, raw3270_request_final(rq)); in fs3270_do_io()
95 struct fs3270 *fp; in fs3270_reset_callback() local
[all …]
Dhmcdrv_dev.c55 static int hmcdrv_dev_open(struct inode *inode, struct file *fp);
56 static int hmcdrv_dev_release(struct inode *inode, struct file *fp);
57 static loff_t hmcdrv_dev_seek(struct file *fp, loff_t pos, int whence);
58 static ssize_t hmcdrv_dev_read(struct file *fp, char __user *ubuf,
60 static ssize_t hmcdrv_dev_write(struct file *fp, const char __user *ubuf,
113 static int hmcdrv_dev_open(struct inode *inode, struct file *fp) in hmcdrv_dev_open() argument
119 if (fp->f_flags & O_NONBLOCK) in hmcdrv_dev_open()
125 if ((fp->f_flags & O_ACCMODE) == O_RDONLY) in hmcdrv_dev_open()
134 fp->private_data = NULL; /* no command yet */ in hmcdrv_dev_open()
139 pr_debug("open file '/dev/%pD' with return code %d\n", fp, rc); in hmcdrv_dev_open()
[all …]
/linux-4.4.14/include/scsi/
Dfc_frame.h62 #define fp_skb(fp) (&((fp)->skb)) argument
63 #define fr_hdr(fp) ((fp)->skb.data) argument
64 #define fr_len(fp) ((fp)->skb.len) argument
65 #define fr_cb(fp) ((struct fcoe_rcv_info *)&((fp)->skb.cb[0])) argument
66 #define fr_dev(fp) (fr_cb(fp)->fr_dev) argument
67 #define fr_seq(fp) (fr_cb(fp)->fr_seq) argument
68 #define fr_sof(fp) (fr_cb(fp)->fr_sof) argument
69 #define fr_eof(fp) (fr_cb(fp)->fr_eof) argument
70 #define fr_flags(fp) (fr_cb(fp)->fr_flags) argument
71 #define fr_encaps(fp) (fr_cb(fp)->fr_encaps) argument
[all …]
Dfc_encode.h73 static inline void fc_fill_fc_hdr(struct fc_frame *fp, enum fc_rctl r_ctl, in fc_fill_fc_hdr() argument
79 fh = fc_frame_header_get(fp); in fc_fill_fc_hdr()
88 static inline void fc_adisc_fill(struct fc_lport *lport, struct fc_frame *fp) in fc_adisc_fill() argument
92 adisc = fc_frame_payload_get(fp, sizeof(*adisc)); in fc_adisc_fill()
104 static inline struct fc_ct_req *fc_ct_hdr_fill(const struct fc_frame *fp, in fc_ct_hdr_fill() argument
113 ct = fc_frame_payload_get(fp, ct_plen); in fc_ct_hdr_fill()
132 u32 fc_id, struct fc_frame *fp, in fc_ct_ns_fill() argument
141 ct = fc_ct_hdr_fill(fp, op, sizeof(struct fc_ns_gid_ft), in fc_ct_ns_fill()
147 ct = fc_ct_hdr_fill(fp, op, sizeof(struct fc_ns_fid), in fc_ct_ns_fill()
154 ct = fc_ct_hdr_fill(fp, op, sizeof(struct fc_ns_rft), in fc_ct_ns_fill()
[all …]
/linux-4.4.14/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 …]
Dprocess.c182 : "m" (p->thread.fp[0]), in copy_thread()
191 : "m" (p->thread.fp[0]), in copy_thread()
215 memcpy(fpu->fpregs, current->thread.fp, 96); in dump_fpu()
259 unsigned long fp, pc; in get_wchan() local
266 fp = ((struct switch_stack *)p->thread.ksp)->a6; in get_wchan()
268 if (fp < stack_page+sizeof(struct thread_info) || in get_wchan()
269 fp >= 8184+stack_page) in get_wchan()
271 pc = ((unsigned long *)fp)[1]; in get_wchan()
274 fp = *(unsigned long *) fp; in get_wchan()
/linux-4.4.14/sound/usb/
Dformat.c45 struct audioformat *fp, in parse_audio_format_i_type() argument
51 switch (fp->protocol) { in parse_audio_format_i_type()
78 fp->iface, fp->altsetting); in parse_audio_format_i_type()
90 fp->iface, fp->altsetting, in parse_audio_format_i_type()
99 if (snd_usb_is_big_endian_format(chip, fp)) in parse_audio_format_i_type()
105 if (snd_usb_is_big_endian_format(chip, fp)) in parse_audio_format_i_type()
116 fp->iface, fp->altsetting, in parse_audio_format_i_type()
141 fp->iface, fp->altsetting, format); in parse_audio_format_i_type()
144 pcm_formats |= snd_usb_interface_dsd_format_quirks(chip, fp, sample_bytes); in parse_audio_format_i_type()
160 static int parse_audio_format_rates_v1(struct snd_usb_audio *chip, struct audioformat *fp, in parse_audio_format_rates_v1() argument
[all …]
Dstream.c45 struct audioformat *fp, *n; in free_substream() local
49 list_for_each_entry_safe(fp, n, &subs->fmt_list, list) { in free_substream()
50 kfree(fp->rate_table); in free_substream()
51 kfree(fp->chmap); in free_substream()
52 kfree(fp); in free_substream()
84 struct audioformat *fp) in snd_usb_init_substream() argument
101 list_add_tail(&fp->list, &subs->fmt_list); in snd_usb_init_substream()
102 subs->formats |= fp->formats; in snd_usb_init_substream()
104 subs->fmt_type = fp->fmt_type; in snd_usb_init_substream()
105 subs->ep_num = fp->endpoint; in snd_usb_init_substream()
[all …]
Dquirks.c142 struct audioformat *fp; in create_fixed_stream_quirk() local
148 fp = kmemdup(quirk->data, sizeof(*fp), GFP_KERNEL); in create_fixed_stream_quirk()
149 if (!fp) { in create_fixed_stream_quirk()
153 INIT_LIST_HEAD(&fp->list); in create_fixed_stream_quirk()
154 if (fp->nr_rates > MAX_NR_RATES) { in create_fixed_stream_quirk()
155 kfree(fp); in create_fixed_stream_quirk()
158 if (fp->nr_rates > 0) { in create_fixed_stream_quirk()
159 rate_table = kmemdup(fp->rate_table, in create_fixed_stream_quirk()
160 sizeof(int) * fp->nr_rates, GFP_KERNEL); in create_fixed_stream_quirk()
162 kfree(fp); in create_fixed_stream_quirk()
[all …]
Dproc.c76 struct audioformat *fp; in proc_dump_substream_formats() local
81 list_for_each_entry(fp, &subs->fmt_list, list) { in proc_dump_substream_formats()
84 snd_iprintf(buffer, " Interface %d\n", fp->iface); in proc_dump_substream_formats()
85 snd_iprintf(buffer, " Altset %d\n", fp->altsetting); in proc_dump_substream_formats()
88 if (fp->formats & pcm_format_to_bits(fmt)) in proc_dump_substream_formats()
92 snd_iprintf(buffer, " Channels: %d\n", fp->channels); in proc_dump_substream_formats()
94 fp->endpoint & USB_ENDPOINT_NUMBER_MASK, in proc_dump_substream_formats()
95 fp->endpoint & USB_DIR_IN ? "IN" : "OUT", in proc_dump_substream_formats()
96 sync_types[(fp->ep_attr & USB_ENDPOINT_SYNCTYPE) >> 2]); in proc_dump_substream_formats()
97 if (fp->rates & SNDRV_PCM_RATE_CONTINUOUS) { in proc_dump_substream_formats()
[all …]
Dpcm.c98 struct audioformat *fp; in find_format() local
102 list_for_each_entry(fp, &subs->fmt_list, list) { in find_format()
103 if (!(fp->formats & pcm_format_to_bits(subs->pcm_format))) in find_format()
105 if (fp->channels != subs->channels) in find_format()
107 if (subs->cur_rate < fp->rate_min || in find_format()
108 subs->cur_rate > fp->rate_max) in find_format()
110 if (! (fp->rates & SNDRV_PCM_RATE_CONTINUOUS)) { in find_format()
112 for (i = 0; i < fp->nr_rates; i++) in find_format()
113 if (fp->rate_table[i] == subs->cur_rate) in find_format()
115 if (i >= fp->nr_rates) in find_format()
[all …]
/linux-4.4.14/drivers/net/phy/
Dfixed_phy.c50 static int fixed_phy_update_regs(struct fixed_phy *fp) in fixed_phy_update_regs() argument
57 if (gpio_is_valid(fp->link_gpio)) in fixed_phy_update_regs()
58 fp->status.link = !!gpio_get_value_cansleep(fp->link_gpio); in fixed_phy_update_regs()
60 if (fp->status.duplex) { in fixed_phy_update_regs()
61 switch (fp->status.speed) { in fixed_phy_update_regs()
75 switch (fp->status.speed) { in fixed_phy_update_regs()
90 if (fp->status.link) { in fixed_phy_update_regs()
93 if (fp->status.duplex) { in fixed_phy_update_regs()
96 switch (fp->status.speed) { in fixed_phy_update_regs()
113 switch (fp->status.speed) { in fixed_phy_update_regs()
[all …]
/linux-4.4.14/drivers/sbus/char/
Dbbc_envctrl.c92 static void set_fan_speeds(struct bbc_fan_control *fp) in set_fan_speeds() argument
97 if (fp->cpu_fan_speed < FAN_SPEED_MIN) in set_fan_speeds()
98 fp->cpu_fan_speed = FAN_SPEED_MIN; in set_fan_speeds()
99 if (fp->cpu_fan_speed > FAN_SPEED_MAX) in set_fan_speeds()
100 fp->cpu_fan_speed = FAN_SPEED_MAX; in set_fan_speeds()
101 if (fp->system_fan_speed < FAN_SPEED_MIN) in set_fan_speeds()
102 fp->system_fan_speed = FAN_SPEED_MIN; in set_fan_speeds()
103 if (fp->system_fan_speed > FAN_SPEED_MAX) in set_fan_speeds()
104 fp->system_fan_speed = FAN_SPEED_MAX; in set_fan_speeds()
107 fp->index, in set_fan_speeds()
[all …]
/linux-4.4.14/arch/nios2/kernel/
Dprocess.c89 regs->ra, regs->fp, regs->sp, regs->gp); in show_regs()
147 void dump(struct pt_regs *fp) in dump() argument
169 pr_emerg("PC: %08lx\n", fp->ea); in dump()
171 (long) fp->estatus, (long) fp); in dump()
174 fp->r1, fp->r2, fp->r3); in dump()
177 fp->r4, fp->r5, fp->r6, fp->r7); in dump()
179 fp->r8, fp->r9, fp->r10, fp->r11); in dump()
181 fp->r12, fp->r13, fp->r14, fp->r15); in dump()
183 fp->orig_r2, fp->ra, fp->fp, fp->sp); in dump()
185 (unsigned int) fp->sp, (unsigned int) fp); in dump()
[all …]
Dtraps.c118 asmlinkage void breakpoint_c(struct pt_regs *fp) in breakpoint_c() argument
125 fp->ea -= 4; in breakpoint_c()
126 _exception(SIGTRAP, fp, TRAP_BRKPT, fp->ea); in breakpoint_c()
131 asmlinkage void handle_unaligned_c(struct pt_regs *fp, int cause) in handle_unaligned_c() argument
136 fp->ea -= 4; in handle_unaligned_c()
138 if (fixup_exception(fp)) in handle_unaligned_c()
141 if (!user_mode(fp)) { in handle_unaligned_c()
146 pr_alert(" op-code 0x%08lx\n", *(unsigned long *)(fp->ea)); in handle_unaligned_c()
147 show_regs(fp); in handle_unaligned_c()
151 _exception(SIGBUS, fp, BUS_ADRALN, addr); in handle_unaligned_c()
[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-4.4.14/drivers/usb/gadget/function/
Df_phonet.c205 struct f_phonet *fp = ep->driver_data; in pn_tx_complete() local
206 struct net_device *dev = fp->dev; in pn_tx_complete()
229 struct f_phonet *fp; in pn_net_xmit() local
237 fp = port->usb; in pn_net_xmit()
238 if (unlikely(!fp)) /* race with carrier loss */ in pn_net_xmit()
241 req = fp->in_req; in pn_net_xmit()
248 if (unlikely(usb_ep_queue(fp->in_ep, req, GFP_ATOMIC))) in pn_net_xmit()
301 pn_rx_submit(struct f_phonet *fp, struct usb_request *req, gfp_t gfp_flags) in pn_rx_submit() argument
314 err = usb_ep_queue(fp->out_ep, req, gfp_flags); in pn_rx_submit()
322 struct f_phonet *fp = ep->driver_data; in pn_rx_complete() local
[all …]
/linux-4.4.14/tools/perf/ui/stdio/
Dhist.c9 static size_t callchain__fprintf_left_margin(FILE *fp, int left_margin) in callchain__fprintf_left_margin() argument
12 int ret = fprintf(fp, " "); in callchain__fprintf_left_margin()
15 ret += fprintf(fp, " "); in callchain__fprintf_left_margin()
20 static size_t ipchain__fprintf_graph_line(FILE *fp, int depth, int depth_mask, in ipchain__fprintf_graph_line() argument
24 size_t ret = callchain__fprintf_left_margin(fp, left_margin); in ipchain__fprintf_graph_line()
28 ret += fprintf(fp, "| "); in ipchain__fprintf_graph_line()
30 ret += fprintf(fp, " "); in ipchain__fprintf_graph_line()
32 ret += fprintf(fp, "\n"); in ipchain__fprintf_graph_line()
37 static size_t ipchain__fprintf_graph(FILE *fp, struct callchain_list *chain, in ipchain__fprintf_graph() argument
46 ret += callchain__fprintf_left_margin(fp, left_margin); in ipchain__fprintf_graph()
[all …]
/linux-4.4.14/drivers/net/fddi/skfp/
Dfplustm.c178 smc->hw.fp.fifo.rbc_ram_start = 0 ; in init_ram()
179 smc->hw.fp.fifo.rbc_ram_end = in init_ram()
180 smc->hw.fp.fifo.rbc_ram_start + RBC_MEM_SIZE ; in init_ram()
182 MARW(smc->hw.fp.fifo.rbc_ram_start) ; in init_ram()
183 for (i = smc->hw.fp.fifo.rbc_ram_start; in init_ram()
184 i < (u_short) (smc->hw.fp.fifo.rbc_ram_end-1); i++) in init_ram()
198 outpw(FM_A(FM_RPR1),smc->hw.fp.fifo.rx1_fifo_start) ; /* RPR1 */ in set_recvptr()
199 outpw(FM_A(FM_SWPR1),smc->hw.fp.fifo.rx1_fifo_start) ; /* SWPR1 */ in set_recvptr()
200 outpw(FM_A(FM_WPR1),smc->hw.fp.fifo.rx1_fifo_start) ; /* WPR1 */ in set_recvptr()
201 outpw(FM_A(FM_EARV1),smc->hw.fp.fifo.tx_s_start-1) ; /* EARV1 */ in set_recvptr()
[all …]
Dhwmtm.c311 smc->hw.fp.mdr2init = FM_LSB | FM_BMMODE | FM_ENNPRQ | FM_ENHSRQ | 3 ; in init_driver_fplus()
314 smc->hw.fp.mdr2init |= FM_CHKPAR | FM_PARITY ; in init_driver_fplus()
316 smc->hw.fp.mdr3init = FM_MENRQAUNLCK | FM_MENRS ; in init_driver_fplus()
320 smc->hw.fp.frselreg_init = FM_ENXMTADSWAP | FM_ENRCVADSWAP ; in init_driver_fplus()
366 queue = smc->hw.fp.tx[QUEUE_A0] ; in init_txd_ring()
380 queue = smc->hw.fp.tx[QUEUE_S] ; in init_txd_ring()
402 queue = smc->hw.fp.rx[QUEUE_R1] ; in init_rxd_ring()
567 phys = repair_txd_ring(smc,smc->hw.fp.tx[QUEUE_A0]) ; in mac_drv_repair_descr()
569 if (smc->hw.fp.tx_q[QUEUE_A0].tx_used) { in mac_drv_repair_descr()
572 phys = repair_txd_ring(smc,smc->hw.fp.tx[QUEUE_S]) ; in mac_drv_repair_descr()
[all …]
/linux-4.4.14/arch/blackfin/kernel/
Dtraps.c28 kgdb_handle_exception(trapnr, sig, info.si_code, fp); \
69 asmlinkage notrace void trap_c(struct pt_regs *fp) in trap_c() argument
81 unsigned long trapnr = fp->seqstat & SEQSTAT_EXCAUSE; in trap_c()
85 last_seqstat = (u32)fp->seqstat; in trap_c()
96 fp->orig_pc = fp->retx; in trap_c()
118 if (kernel_mode_regs(fp)) in trap_c()
164 if (kernel_mode_regs(fp)) in trap_c()
193 if (kernel_mode_regs(fp)) { in trap_c()
194 switch (report_bug(fp->pc, fp)) { in trap_c()
199 fp->pc += 2; in trap_c()
[all …]
Dtrace.c732 void dump_bfin_process(struct pt_regs *fp) in dump_bfin_process() argument
741 if (context & 0x0020 && (fp->seqstat & SEQSTAT_EXCAUSE) == VEC_HWERR) in dump_bfin_process()
782 void dump_bfin_mem(struct pt_regs *fp) in dump_bfin_mem() argument
787 erraddr = (void *)fp->pc; in dump_bfin_mem()
819 if (unlikely(sti && (fp->seqstat & SEQSTAT_EXCAUSE) == VEC_HWERR && in dump_bfin_mem()
831 if ((!(((fp)->ipend & ~0x30) & (((fp)->ipend & ~0x30) - 1))) && in dump_bfin_mem()
834 if ((fp + 1)->pc >= current->mm->start_code && in dump_bfin_mem()
835 (fp + 1)->pc <= current->mm->end_code) { in dump_bfin_mem()
838 show_regs(fp + 1); in dump_bfin_mem()
846 void show_regs(struct pt_regs *fp) in show_regs() argument
[all …]
Dpseudodbg.c40 static bool fix_up_reg(struct pt_regs *fp, long *value, int grp, int reg) in fix_up_reg() argument
42 long *val = &fp->r0; in fix_up_reg()
54 val = &fp->usp; in fix_up_reg()
56 val = &fp->fp; in fix_up_reg()
58 val = &fp->i0; in fix_up_reg()
61 val = &fp->l0; in fix_up_reg()
64 val = &fp->b0; in fix_up_reg()
67 val = &fp->a0x; in fix_up_reg()
70 val = &fp->astat; in fix_up_reg()
72 val = &fp->rets; in fix_up_reg()
[all …]
Ddumpstack.c38 unsigned int *addr, *endstack, *fp = 0, *frame; in show_stack() local
78 fp = addr - 1; in show_stack()
80 if (fp) { in show_stack()
82 while (fp >= (addr - 1) && fp < endstack in show_stack()
83 && fp && ((unsigned int) fp & 0x3) == 0) in show_stack()
84 fp = (unsigned int *)*fp; in show_stack()
85 if (fp == 0 || fp == endstack) { in show_stack()
86 fp = addr - 1; in show_stack()
89 fp = 0; in show_stack()
92 if (fp) { in show_stack()
[all …]
Dstacktrace.c16 unsigned long fp; member
26 unsigned long fp; in save_stack_trace() local
32 fp = current_frame_pointer; in save_stack_trace()
34 while (fp >= low && fp <= (high - sizeof(*frame))) { in save_stack_trace()
35 frame = (struct stackframe *)fp; in save_stack_trace()
49 low = fp + sizeof(*frame); in save_stack_trace()
50 fp = frame->fp; in save_stack_trace()
Dearly_printk.c203 asmlinkage void __init early_trap_c(struct pt_regs *fp, void *retaddr) in early_trap_c() argument
218 early_shadow_reg(fp->ipend, 16); in early_trap_c()
219 if (fp->seqstat & SEQSTAT_EXCAUSE) { in early_trap_c()
221 early_shadow_reg(fp->seqstat & SEQSTAT_EXCAUSE, 8); in early_trap_c()
223 if (fp->seqstat & SEQSTAT_HWERRCAUSE) { in early_trap_c()
226 (fp->seqstat & SEQSTAT_HWERRCAUSE) >> 14, 8); in early_trap_c()
229 if (fp->ipend & EVT_EVX) in early_trap_c()
230 early_shadow_reg(fp->retx, 32); in early_trap_c()
232 early_shadow_reg(fp->pc, 32); in early_trap_c()
263 show_regs(fp); in early_trap_c()
Dnmi.c228 asmlinkage notrace void do_nmi(struct pt_regs *fp) in do_nmi() argument
265 dump_bfin_process(fp); in do_nmi()
266 dump_bfin_mem(fp); in do_nmi()
267 show_regs(fp); in do_nmi()
269 show_stack(current, (unsigned long *)fp); in do_nmi()
Dprocess.c145 unsigned long fp, pc; in get_wchan() local
152 fp = p->thread.usp; in get_wchan()
154 if (fp < stack_page + sizeof(struct thread_info) || in get_wchan()
155 fp >= 8184 + stack_page) in get_wchan()
157 pc = ((unsigned long *)fp)[1]; in get_wchan()
160 fp = *(unsigned long *)fp; in get_wchan()
/linux-4.4.14/drivers/scsi/libfc/
Dfc_rport.c544 static void fc_rport_error(struct fc_rport_priv *rdata, struct fc_frame *fp) in fc_rport_error() argument
547 IS_ERR(fp) ? -PTR_ERR(fp) : 0, in fc_rport_error()
583 struct fc_frame *fp) in fc_rport_error_retry() argument
588 if (PTR_ERR(fp) == -FC_EX_CLOSED) in fc_rport_error_retry()
593 PTR_ERR(fp), fc_rport_state(rdata)); in fc_rport_error_retry()
596 if (PTR_ERR(fp) == -FC_EX_TIMEOUT) in fc_rport_error_retry()
603 fc_rport_error(rdata, fp); in fc_rport_error_retry()
617 struct fc_frame *fp) in fc_rport_login_complete() argument
624 flogi = fc_frame_payload_get(fp, sizeof(*flogi)); in fc_rport_login_complete()
630 if (fc_frame_payload_op(fp) == ELS_FLOGI) { in fc_rport_login_complete()
[all …]
Dfc_frame.c34 u32 fc_frame_crc_check(struct fc_frame *fp) in fc_frame_crc_check() argument
41 WARN_ON(!fc_frame_is_linear(fp)); in fc_frame_crc_check()
42 fr_flags(fp) &= ~FCPHF_CRC_UNCHECKED; in fc_frame_crc_check()
43 len = (fr_len(fp) + 3) & ~3; /* round up length to include fill */ in fc_frame_crc_check()
44 bp = (const u8 *) fr_hdr(fp); in fc_frame_crc_check()
46 error = crc ^ fr_crc(fp); in fc_frame_crc_check()
57 struct fc_frame *fp; in _fc_frame_alloc() local
67 fp = (struct fc_frame *) skb; in _fc_frame_alloc()
68 fc_frame_init(fp); in _fc_frame_alloc()
70 return fp; in _fc_frame_alloc()
[all …]
Dfc_exch.c272 static void fc_exch_setup_hdr(struct fc_exch *ep, struct fc_frame *fp, in fc_exch_setup_hdr() argument
275 struct fc_frame_header *fh = fc_frame_header_get(fp); in fc_exch_setup_hdr()
278 fr_sof(fp) = ep->class; in fc_exch_setup_hdr()
280 fr_sof(fp) = fc_sof_normal(ep->class); in fc_exch_setup_hdr()
283 fr_eof(fp) = FC_EOF_T; in fc_exch_setup_hdr()
285 fr_eof(fp) = FC_EOF_N; in fc_exch_setup_hdr()
295 fill = fr_len(fp) & 3; in fc_exch_setup_hdr()
299 skb_put(fp_skb(fp), fill); in fc_exch_setup_hdr()
303 WARN_ON(fr_len(fp) % 4 != 0); /* no pad to non last frame */ in fc_exch_setup_hdr()
304 fr_eof(fp) = FC_EOF_N; in fc_exch_setup_hdr()
[all …]
Dfc_lport.c165 static int fc_frame_drop(struct fc_lport *lport, struct fc_frame *fp) in fc_frame_drop() argument
167 fc_frame_free(fp); in fc_frame_drop()
410 static void fc_lport_recv_rlir_req(struct fc_lport *lport, struct fc_frame *fp) in fc_lport_recv_rlir_req() argument
415 lport->tt.seq_els_rsp_send(fp, ELS_LS_ACC, NULL); in fc_lport_recv_rlir_req()
416 fc_frame_free(fp); in fc_lport_recv_rlir_req()
430 struct fc_frame *fp; in fc_lport_recv_echo_req() local
444 fp = fc_frame_alloc(lport, len); in fc_lport_recv_echo_req()
445 if (fp) { in fc_lport_recv_echo_req()
446 dp = fc_frame_payload_get(fp, len); in fc_lport_recv_echo_req()
449 fc_fill_reply_hdr(fp, in_fp, FC_RCTL_ELS_REP, 0); in fc_lport_recv_echo_req()
[all …]
Dfc_elsct.c44 struct fc_frame *fp, unsigned int op, in fc_elsct_send() argument
56 rc = fc_els_fill(lport, did, fp, op, &r_ctl, &fh_type); in fc_elsct_send()
59 rc = fc_ct_fill(lport, did, fp, op, &r_ctl, &fh_type, &did); in fc_elsct_send()
63 fc_frame_free(fp); in fc_elsct_send()
67 fc_fill_fc_hdr(fp, r_ctl, did, lport->port_id, fh_type, in fc_elsct_send()
70 return lport->tt.exch_seq_send(lport, fp, resp, NULL, arg, timer_msec); in fc_elsct_send()
91 const char *fc_els_resp_type(struct fc_frame *fp) in fc_els_resp_type() argument
97 if (IS_ERR(fp)) { in fc_els_resp_type()
98 switch (-PTR_ERR(fp)) { in fc_els_resp_type()
113 fh = fc_frame_header_get(fp); in fc_els_resp_type()
[all …]
Dfc_disc.c85 static void fc_disc_recv_rscn_req(struct fc_disc *disc, struct fc_frame *fp) in fc_disc_recv_rscn_req() argument
103 rp = fc_frame_payload_get(fp, sizeof(*rp)); in fc_disc_recv_rscn_req()
114 rp = fc_frame_payload_get(fp, len); in fc_disc_recv_rscn_req()
153 lport->tt.seq_els_rsp_send(fp, ELS_LS_ACC, NULL); in fc_disc_recv_rscn_req()
175 fc_frame_free(fp); in fc_disc_recv_rscn_req()
181 lport->tt.seq_els_rsp_send(fp, ELS_LS_RJT, &rjt_data); in fc_disc_recv_rscn_req()
182 fc_frame_free(fp); in fc_disc_recv_rscn_req()
194 static void fc_disc_recv_req(struct fc_lport *lport, struct fc_frame *fp) in fc_disc_recv_req() argument
199 op = fc_frame_payload_op(fp); in fc_disc_recv_req()
203 fc_disc_recv_rscn_req(disc, fp); in fc_disc_recv_req()
[all …]
Dfc_fcp.c423 struct fc_frame *fp; in fc_fcp_frame_alloc() local
425 fp = fc_frame_alloc(lport, len); in fc_fcp_frame_alloc()
426 if (likely(fp)) in fc_fcp_frame_alloc()
427 return fp; in fc_fcp_frame_alloc()
441 static void fc_fcp_recv_data(struct fc_fcp_pkt *fsp, struct fc_frame *fp) in fc_fcp_recv_data() argument
457 fh = fc_frame_header_get(fp); in fc_fcp_recv_data()
460 len = fr_len(fp) - sizeof(*fh); in fc_fcp_recv_data()
461 buf = fc_frame_payload_get(fp, 0); in fc_fcp_recv_data()
478 if ((fr_flags(fp) & FCPHF_CRC_UNCHECKED) && in fc_fcp_recv_data()
479 fc_frame_crc_check(fp)) in fc_fcp_recv_data()
[all …]
Dfc_libfc.c166 void fc_fill_hdr(struct fc_frame *fp, const struct fc_frame *in_fp, in fc_fill_hdr() argument
174 fh = __fc_frame_header_get(fp); in fc_fill_hdr()
178 fill = -fr_len(fp) & 3; in fc_fill_hdr()
181 memset(skb_put(fp_skb(fp), fill), 0, fill); in fc_fill_hdr()
184 fr_eof(fp) = FC_EOF_T; in fc_fill_hdr()
186 WARN_ON(fr_len(fp) % 4 != 0); /* no pad to non last frame */ in fc_fill_hdr()
187 fr_eof(fp) = FC_EOF_N; in fc_fill_hdr()
203 fr_seq(fp) = sp; in fc_fill_hdr()
210 fr_sof(fp) = seq_cnt ? FC_SOF_N3 : FC_SOF_I3; in fc_fill_hdr()
211 fr_encaps(fp) = fr_encaps(in_fp); in fc_fill_hdr()
[all …]
/linux-4.4.14/arch/alpha/include/uapi/asm/
Dfpu.h94 unsigned long fp; in ieee_swcr_to_fpcr() local
95 fp = (sw & IEEE_STATUS_MASK) << 35; in ieee_swcr_to_fpcr()
96 fp |= (sw & IEEE_MAP_DMZ) << 36; in ieee_swcr_to_fpcr()
97 fp |= (sw & IEEE_STATUS_MASK ? FPCR_SUM : 0); in ieee_swcr_to_fpcr()
98 fp |= (~sw & (IEEE_TRAP_ENABLE_INV in ieee_swcr_to_fpcr()
101 fp |= (~sw & (IEEE_TRAP_ENABLE_UNF | IEEE_TRAP_ENABLE_INE)) << 57; in ieee_swcr_to_fpcr()
102 fp |= (sw & IEEE_MAP_UMZ ? FPCR_UNDZ | FPCR_UNFD : 0); in ieee_swcr_to_fpcr()
103 fp |= (~sw & IEEE_TRAP_ENABLE_DNO) << 41; in ieee_swcr_to_fpcr()
104 return fp; in ieee_swcr_to_fpcr()
108 ieee_fpcr_to_swcr(unsigned long fp) in ieee_fpcr_to_swcr() argument
[all …]
/linux-4.4.14/arch/x86/tools/
Dinsn_sanity.c69 static void dump_field(FILE *fp, const char *name, const char *indent, in dump_field() argument
72 fprintf(fp, "%s.%s = {\n", indent, name); in dump_field()
73 fprintf(fp, "%s\t.value = %d, bytes[] = {%x, %x, %x, %x},\n", in dump_field()
76 fprintf(fp, "%s\t.got = %d, .nbytes = %d},\n", indent, in dump_field()
80 static void dump_insn(FILE *fp, struct insn *insn) in dump_insn() argument
82 fprintf(fp, "Instruction = {\n"); in dump_insn()
83 dump_field(fp, "prefixes", "\t", &insn->prefixes); in dump_insn()
84 dump_field(fp, "rex_prefix", "\t", &insn->rex_prefix); in dump_insn()
85 dump_field(fp, "vex_prefix", "\t", &insn->vex_prefix); in dump_insn()
86 dump_field(fp, "opcode", "\t", &insn->opcode); in dump_insn()
[all …]
Dtest_get_len.c59 static void dump_field(FILE *fp, const char *name, const char *indent, in dump_field() argument
62 fprintf(fp, "%s.%s = {\n", indent, name); in dump_field()
63 fprintf(fp, "%s\t.value = %d, bytes[] = {%x, %x, %x, %x},\n", in dump_field()
66 fprintf(fp, "%s\t.got = %d, .nbytes = %d},\n", indent, in dump_field()
70 static void dump_insn(FILE *fp, struct insn *insn) in dump_insn() argument
72 fprintf(fp, "Instruction = {\n"); in dump_insn()
73 dump_field(fp, "prefixes", "\t", &insn->prefixes); in dump_insn()
74 dump_field(fp, "rex_prefix", "\t", &insn->rex_prefix); in dump_insn()
75 dump_field(fp, "vex_prefix", "\t", &insn->vex_prefix); in dump_insn()
76 dump_field(fp, "opcode", "\t", &insn->opcode); in dump_insn()
[all …]
Drelocs_common.c23 FILE *fp; in main() local
66 fp = fopen(fname, "r"); in main()
67 if (!fp) { in main()
70 if (fread(&e_ident, 1, EI_NIDENT, fp) != EI_NIDENT) { in main()
73 rewind(fp); in main()
75 process_64(fp, use_real_mode, as_text, in main()
79 process_32(fp, use_real_mode, as_text, in main()
82 fclose(fp); in main()
Drelocs.c333 static void read_ehdr(FILE *fp) in read_ehdr() argument
335 if (fread(&ehdr, sizeof(ehdr), 1, fp) != 1) { in read_ehdr()
389 static void read_shdrs(FILE *fp) in read_shdrs() argument
399 if (fseek(fp, ehdr.e_shoff, SEEK_SET) < 0) { in read_shdrs()
405 if (fread(&shdr, sizeof shdr, 1, fp) != 1) in read_shdrs()
424 static void read_strtabs(FILE *fp) in read_strtabs() argument
437 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) { in read_strtabs()
441 if (fread(sec->strtab, 1, sec->shdr.sh_size, fp) in read_strtabs()
449 static void read_symtabs(FILE *fp) in read_symtabs() argument
462 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) { in read_symtabs()
[all …]
Drelocs.h31 void process_32(FILE *fp, int use_real_mode, int as_text,
34 void process_64(FILE *fp, int use_real_mode, int as_text,
/linux-4.4.14/arch/alpha/kernel/
Dptrace.c90 SW_REG(fp[ 0]), SW_REG(fp[ 1]), SW_REG(fp[ 2]), SW_REG(fp[ 3]),
91 SW_REG(fp[ 4]), SW_REG(fp[ 5]), SW_REG(fp[ 6]), SW_REG(fp[ 7]),
92 SW_REG(fp[ 8]), SW_REG(fp[ 9]), SW_REG(fp[10]), SW_REG(fp[11]),
93 SW_REG(fp[12]), SW_REG(fp[13]), SW_REG(fp[14]), SW_REG(fp[15]),
94 SW_REG(fp[16]), SW_REG(fp[17]), SW_REG(fp[18]), SW_REG(fp[19]),
95 SW_REG(fp[20]), SW_REG(fp[21]), SW_REG(fp[22]), SW_REG(fp[23]),
96 SW_REG(fp[24]), SW_REG(fp[25]), SW_REG(fp[26]), SW_REG(fp[27]),
97 SW_REG(fp[28]), SW_REG(fp[29]), SW_REG(fp[30]), SW_REG(fp[31]),
Dprocess.c349 memcpy(dest, sw->fp, 32 * 8); in dump_elf_task_fp()
372 unsigned long fp, sp = task_thread_info(t)->pcb.ksp; in thread_saved_pc() local
375 fp = ((unsigned long*)sp)[6]; in thread_saved_pc()
376 if (fp > sp && fp < base + 16*1024) in thread_saved_pc()
377 return *(unsigned long *)fp; in thread_saved_pc()
Dsmc37c669.c2346 int __init smcc669_open( struct FILE *fp, char *info, char *next, char *mode )
2353 ip = fp->ip;
2355 if ( fp->mode & ATTR$M_WRITE ) {
2365 *fp->offset = xtoi( info );
2371 int __init smcc669_close( struct FILE *fp )
2375 ip = fp->ip;
2376 if ( fp->mode & ATTR$M_WRITE ) {
2384 int __init smcc669_read( struct FILE *fp, int size, int number, unsigned char *buf )
2394 ip = fp->ip;
2400 if ( !inrange( *fp->offset, 0, ip->len[0] ) )
[all …]
/linux-4.4.14/arch/blackfin/include/asm/
Dftrace.h36 unsigned long *endstack, *fp, *ret_addr; in return_address() local
42 fp = (unsigned long *)__builtin_frame_address(0); in return_address()
45 while (((unsigned long)fp & 0x3) == 0 && fp && in return_address()
46 (fp + 1) < endstack && current_level < level) { in return_address()
47 fp = (unsigned long *)*fp; in return_address()
51 if (((unsigned long)fp & 0x3) == 0 && fp && in return_address()
52 (fp + 1) < endstack) in return_address()
53 ret_addr = (unsigned long *)*(fp + 1); in return_address()
Dcontext.S24 [--sp] = fp;
96 [--sp] = fp;
155 [--sp] = fp;
192 fp = 0(Z); define
272 fp = [sp++]; define
342 fp = [sp++]; define
353 [--sp] = fp;
385 fp = [sp++]; define
Dpseudo_instructions.h15 extern bool execute_pseudodbg_assert(struct pt_regs *fp, unsigned int opcode);
16 extern bool execute_pseudodbg(struct pt_regs *fp, unsigned int opcode);
/linux-4.4.14/arch/microblaze/kernel/
Dunwind.c124 static int lookup_prev_stack_frame(unsigned long fp, unsigned long pc, in lookup_prev_stack_frame() argument
138 *pprev_fp = fp + frame_size; in lookup_prev_stack_frame()
139 *pprev_pc = *(unsigned long *)fp; in lookup_prev_stack_frame()
144 *pprev_fp = fp; in lookup_prev_stack_frame()
154 unsigned long pc, unsigned long fp,
164 unsigned long fp, struct stack_trace *trace) in unwind_trap() argument
170 unsigned long fp, struct stack_trace *trace) in unwind_trap() argument
172 const struct pt_regs *regs = (const struct pt_regs *) fp; in unwind_trap()
188 unsigned long pc, unsigned long fp, in microblaze_unwind_inner() argument
194 pr_debug(" Unwinding with PC=%p, FP=%p\n", (void *)pc, (void *)fp); in microblaze_unwind_inner()
[all …]
Dtraps.c36 u32 fp = (u32) sp; in show_stack() local
38 if (fp == 0) { in show_stack()
40 fp = ((struct thread_info *) in show_stack()
44 fp = (u32)&sp - 8; in show_stack()
48 words_to_show = (THREAD_SIZE - (fp & (THREAD_SIZE - 1))) >> 2; in show_stack()
58 if (fp & 0xF) { in show_stack()
59 unsigned long line1_words = (0x10 - (fp & 0xF)) >> 2; in show_stack()
62 4, (void *)fp, line1_words << 2, 0); in show_stack()
63 fp += line1_words << 2; in show_stack()
67 print_hex_dump(KERN_INFO, "", DUMP_PREFIX_ADDRESS, 32, 4, (void *)fp, in show_stack()
/linux-4.4.14/security/selinux/ss/
Dpolicydb.c993 static int mls_read_range_helper(struct mls_range *r, void *fp) in mls_read_range_helper() argument
999 rc = next_entry(buf, fp, sizeof(u32)); in mls_read_range_helper()
1010 rc = next_entry(buf, fp, sizeof(u32) * items); in mls_read_range_helper()
1022 rc = ebitmap_read(&r->level[0].cat, fp); in mls_read_range_helper()
1028 rc = ebitmap_read(&r->level[1].cat, fp); in mls_read_range_helper()
1054 void *fp) in context_read_and_validate() argument
1059 rc = next_entry(buf, fp, sizeof buf); in context_read_and_validate()
1068 rc = mls_read_range_helper(&c->range, fp); in context_read_and_validate()
1092 static int str_read(char **strp, gfp_t flags, void *fp, u32 len) in str_read() argument
1104 rc = next_entry(str, fp, len); in str_read()
[all …]
Dconditional.c221 int cond_read_bool(struct policydb *p, struct hashtab *h, void *fp) in cond_read_bool() argument
233 rc = next_entry(buf, fp, sizeof buf); in cond_read_bool()
250 rc = next_entry(key, fp, len); in cond_read_bool()
352 static int cond_read_av_list(struct policydb *p, void *fp, struct cond_av_list **ret_list, struct c… in cond_read_av_list() argument
362 rc = next_entry(buf, fp, sizeof(u32)); in cond_read_av_list()
375 rc = avtab_read_item(&p->te_cond_avtab, fp, p, cond_insertf, in cond_read_av_list()
399 static int cond_read_node(struct policydb *p, struct cond_node *node, void *fp) in cond_read_node() argument
406 rc = next_entry(buf, fp, sizeof(u32) * 2); in cond_read_node()
416 rc = next_entry(buf, fp, sizeof(u32) * 2); in cond_read_node()
441 rc = cond_read_av_list(p, fp, &node->true_list, NULL); in cond_read_node()
[all …]
Dpolicydb.h310 extern int policydb_read(struct policydb *p, void *fp);
311 extern int policydb_write(struct policydb *p, void *fp);
334 void *fp; member
337 static inline int next_entry(void *buf, struct policy_file *fp, size_t bytes) in next_entry() argument
339 if (bytes > fp->len) in next_entry()
342 memcpy(buf, fp->data, bytes); in next_entry()
343 fp->data += bytes; in next_entry()
344 fp->len -= bytes; in next_entry()
348 static inline int put_entry(const void *buf, size_t bytes, int num, struct policy_file *fp) in put_entry() argument
352 memcpy(fp->data, buf, len); in put_entry()
[all …]
Davtab.c389 int avtab_read_item(struct avtab *a, void *fp, struct policydb *pol, in avtab_read_item() argument
408 rc = next_entry(buf32, fp, sizeof(u32)); in avtab_read_item()
419 rc = next_entry(buf32, fp, sizeof(u32)*items2); in avtab_read_item()
479 rc = next_entry(buf16, fp, sizeof(u16)*4); in avtab_read_item()
516 rc = next_entry(&xperms.specified, fp, sizeof(u8)); in avtab_read_item()
521 rc = next_entry(&xperms.driver, fp, sizeof(u8)); in avtab_read_item()
526 rc = next_entry(buf32, fp, sizeof(u32)*ARRAY_SIZE(xperms.perms.p)); in avtab_read_item()
535 rc = next_entry(buf32, fp, sizeof(u32)); in avtab_read_item()
556 int avtab_read(struct avtab *a, void *fp, struct policydb *pol) in avtab_read() argument
563 rc = next_entry(buf, fp, sizeof(u32)); in avtab_read()
[all …]
Davtab.h101 int avtab_read_item(struct avtab *a, void *fp, struct policydb *pol,
106 int avtab_read(struct avtab *a, void *fp, struct policydb *pol);
107 int avtab_write_item(struct policydb *p, struct avtab_node *cur, void *fp);
108 int avtab_write(struct policydb *p, struct avtab *a, void *fp);
Debitmap.c343 int ebitmap_read(struct ebitmap *e, void *fp) in ebitmap_read() argument
353 rc = next_entry(buf, fp, sizeof buf); in ebitmap_read()
378 rc = next_entry(&startbit, fp, sizeof(u32)); in ebitmap_read()
421 rc = next_entry(&map, fp, sizeof(u64)); in ebitmap_read()
445 int ebitmap_write(struct ebitmap *e, void *fp) in ebitmap_write() argument
468 rc = put_entry(buf, sizeof(u32), 3, fp); in ebitmap_write()
487 rc = put_entry(buf, sizeof(u32), 1, fp); in ebitmap_write()
492 rc = put_entry(buf64, sizeof(u64), 1, fp); in ebitmap_write()
508 rc = put_entry(buf, sizeof(u32), 1, fp); in ebitmap_write()
513 rc = put_entry(buf64, sizeof(u64), 1, fp); in ebitmap_write()
Dconditional.h71 int cond_read_bool(struct policydb *p, struct hashtab *h, void *fp);
72 int cond_read_list(struct policydb *p, void *fp);
74 int cond_write_list(struct policydb *p, struct cond_node *list, void *fp);
/linux-4.4.14/net/core/
Dfilter.c203 static bool convert_bpf_extensions(struct sock_filter *fp, in convert_bpf_extensions() argument
209 switch (fp->k) { in convert_bpf_extensions()
237 if (fp->k == SKF_AD_OFF + SKF_AD_IFINDEX) in convert_bpf_extensions()
296 switch (fp->k) { in convert_bpf_extensions()
363 struct sock_filter *fp; in bpf_convert_filter() local
382 fp = prog; in bpf_convert_filter()
388 for (i = 0; i < len; fp++, i++) { in bpf_convert_filter()
395 switch (fp->code) { in bpf_convert_filter()
428 if (BPF_CLASS(fp->code) == BPF_LD && in bpf_convert_filter()
429 BPF_MODE(fp->code) == BPF_ABS && in bpf_convert_filter()
[all …]
Dscm.c92 fpp = &fpl->fp[fpl->count]; in scm_fp_copy()
120 struct scm_fp_list *fpl = scm->fp; in __scm_destroy()
124 scm->fp = NULL; in __scm_destroy()
126 fput(fpl->fp[i]); in __scm_destroy()
160 err=scm_fp_copy(cmsg, &p->fp); in __scm_send()
202 if (p->fp && !p->fp->count) in __scm_send()
204 kfree(p->fp); in __scm_send()
205 p->fp = NULL; in __scm_send()
260 int fdnum = scm->fp->count; in scm_detach_fds()
261 struct file **fp = scm->fp->fp; in scm_detach_fds() local
[all …]
/linux-4.4.14/kernel/time/
Dposix-clock.c33 static struct posix_clock *get_posix_clock(struct file *fp) in get_posix_clock() argument
35 struct posix_clock *clk = fp->private_data; in get_posix_clock()
52 static ssize_t posix_clock_read(struct file *fp, char __user *buf, in posix_clock_read() argument
55 struct posix_clock *clk = get_posix_clock(fp); in posix_clock_read()
62 err = clk->ops.read(clk, fp->f_flags, buf, count); in posix_clock_read()
69 static unsigned int posix_clock_poll(struct file *fp, poll_table *wait) in posix_clock_poll() argument
71 struct posix_clock *clk = get_posix_clock(fp); in posix_clock_poll()
78 result = clk->ops.poll(clk, fp, wait); in posix_clock_poll()
85 static int posix_clock_fasync(int fd, struct file *fp, int on) in posix_clock_fasync() argument
87 struct posix_clock *clk = get_posix_clock(fp); in posix_clock_fasync()
[all …]
/linux-4.4.14/drivers/target/tcm_fc/
Dtfc_cmd.c85 struct fc_frame *fp; in ft_free_cmd() local
92 fp = cmd->req_frame; in ft_free_cmd()
93 lport = fr_dev(fp); in ft_free_cmd()
94 if (fr_seq(fp)) in ft_free_cmd()
95 lport->tt.seq_release(fr_seq(fp)); in ft_free_cmd()
96 fc_frame_free(fp); in ft_free_cmd()
120 struct fc_frame *fp; in ft_queue_status() local
133 fp = fc_frame_alloc(lport, len); in ft_queue_status()
134 if (!fp) { in ft_queue_status()
139 fcp = fc_frame_payload_get(fp, len); in ft_queue_status()
[all …]
Dtfc_io.c57 struct fc_frame *fp = NULL; in ft_queue_data_in() local
126 fp = fc_frame_alloc(lport, use_sg ? 0 : frame_len); in ft_queue_data_in()
127 if (!fp) in ft_queue_data_in()
129 to = fc_frame_payload_get(fp, 0); in ft_queue_data_in()
138 fr_max_payload(fp) = cmd->sess->max_frame; in ft_queue_data_in()
146 skb_fill_page_desc(fp_skb(fp), in ft_queue_data_in()
147 skb_shinfo(fp_skb(fp))->nr_frags, in ft_queue_data_in()
149 fr_len(fp) += tlen; in ft_queue_data_in()
150 fp_skb(fp)->data_len += tlen; in ft_queue_data_in()
151 fp_skb(fp)->truesize += in ft_queue_data_in()
[all …]
/linux-4.4.14/arch/sh/kernel/cpu/sh5/
Dunwind.c46 static int lookup_prev_stack_frame(unsigned long fp, unsigned long pc, in lookup_prev_stack_frame() argument
70 if ((fp < (unsigned long) phys_to_virt(__MEMORY_START)) || in lookup_prev_stack_frame()
71 (fp >= (unsigned long)(phys_to_virt(__MEMORY_START)) + 128*1024*1024) || in lookup_prev_stack_frame()
72 ((fp & 7) != 0)) { in lookup_prev_stack_frame()
122 fp_prev = fp - fp_displacement; in lookup_prev_stack_frame()
173 fp_prev = fp - fp_displacement; in lookup_prev_stack_frame()
220 unsigned long pc, unsigned long fp) in unwind_nested() argument
222 if ((fp >= __MEMORY_START) && in unwind_nested()
223 ((fp & 7) == 0)) in unwind_nested()
224 sh64_unwind_inner(ops, data, (struct pt_regs *)fp); in unwind_nested()
[all …]
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c92 struct bnx2x_fastpath *from_fp = &bp->fp[from]; in bnx2x_move_fp()
93 struct bnx2x_fastpath *to_fp = &bp->fp[to]; in bnx2x_move_fp()
182 struct bnx2x_fastpath *fp = &bp->fp[i]; in bnx2x_shrink_eth_fp() local
185 memcpy(&bp->bnx2x_txq[new_idx], fp->txdata_ptr[cos], in bnx2x_shrink_eth_fp()
187 fp->txdata_ptr[cos] = &bp->bnx2x_txq[new_idx]; in bnx2x_shrink_eth_fp()
345 static inline void bnx2x_update_last_max_sge(struct bnx2x_fastpath *fp, in bnx2x_update_last_max_sge() argument
348 u16 last_max = fp->last_max_sge; in bnx2x_update_last_max_sge()
351 fp->last_max_sge = idx; in bnx2x_update_last_max_sge()
354 static inline void bnx2x_update_sge_prod(struct bnx2x_fastpath *fp, in bnx2x_update_sge_prod() argument
358 struct bnx2x *bp = fp->bp; in bnx2x_update_sge_prod()
[all …]
Dbnx2x_cmn.h128 int bnx2x_setup_queue(struct bnx2x *bp, struct bnx2x_fastpath *fp,
434 void bnx2x_sp_event(struct bnx2x_fastpath *fp, union eth_rx_cqe *rr_cqe);
500 struct bnx2x_fastpath *fp, in bnx2x_update_rx_prod() argument
522 REG_WR(bp, fp->ustorm_rx_prods_offset + i*4, in bnx2x_update_rx_prod()
529 fp->index, bd_prod, rx_comp_prod, rx_sge_prod); in bnx2x_update_rx_prod()
635 static inline void bnx2x_update_fpsb_idx(struct bnx2x_fastpath *fp) in bnx2x_update_fpsb_idx() argument
638 fp->fp_hc_idx = fp->sb_running_index[SM_RX_ID]; in bnx2x_update_fpsb_idx()
772 static inline bool bnx2x_has_tx_work(struct bnx2x_fastpath *fp) in bnx2x_has_tx_work() argument
775 for_each_cos_in_tx_queue(fp, cos) in bnx2x_has_tx_work()
776 if (bnx2x_tx_queue_has_work(fp->txdata_ptr[cos])) in bnx2x_has_tx_work()
[all …]
Dbnx2x.h322 #define FP_COS_TO_TXQ(fp, cos, bp) \ argument
323 ((fp)->index + cos * BNX2X_NUM_NON_CNIC_QUEUES(bp))
615 #define bnx2x_fp(bp, nr, var) ((bp)->fp[(nr)].var)
616 #define bnx2x_sp_obj(bp, fp) ((bp)->sp_objs[(fp)->index]) argument
617 #define bnx2x_fp_stats(bp, fp) (&((bp)->fp_stats[(fp)->index])) argument
618 #define bnx2x_fp_qstats(bp, fp) (&((bp)->fp_stats[(fp)->index].eth_q_stats)) argument
634 static inline void bnx2x_fp_busy_poll_init(struct bnx2x_fastpath *fp) in bnx2x_fp_busy_poll_init() argument
636 WRITE_ONCE(fp->busy_poll_state, 0); in bnx2x_fp_busy_poll_init()
640 static inline bool bnx2x_fp_lock_napi(struct bnx2x_fastpath *fp) in bnx2x_fp_lock_napi() argument
642 unsigned long prev, old = READ_ONCE(fp->busy_poll_state); in bnx2x_fp_lock_napi()
[all …]
Dbnx2x_main.c292 static u32 bnx2x_rx_ustorm_prods_offset(struct bnx2x_fastpath *fp);
960 struct bnx2x_fastpath *fp = &bp->fp[i]; in bnx2x_panic_dump() local
976 if (!bp->fp) in bnx2x_panic_dump()
979 if (!fp->rx_cons_sb) in bnx2x_panic_dump()
984 i, fp->rx_bd_prod, fp->rx_bd_cons, in bnx2x_panic_dump()
985 fp->rx_comp_prod, in bnx2x_panic_dump()
986 fp->rx_comp_cons, le16_to_cpu(*fp->rx_cons_sb)); in bnx2x_panic_dump()
988 fp->rx_sge_prod, fp->last_max_sge, in bnx2x_panic_dump()
989 le16_to_cpu(fp->fp_hc_idx)); in bnx2x_panic_dump()
992 for_each_cos_in_tx_queue(fp, cos) in bnx2x_panic_dump()
[all …]
/linux-4.4.14/arch/avr32/kernel/
Dstacktrace.c19 unsigned long fp; member
28 unsigned long fp; in save_stack_trace() local
34 fp = current_frame_pointer; in save_stack_trace()
36 while (fp >= low && fp <= (high - 8)) { in save_stack_trace()
37 frame = (struct stackframe *)fp; in save_stack_trace()
51 low = fp + 8; in save_stack_trace()
52 fp = frame->fp; in save_stack_trace()
Dprocess.c121 unsigned long lr, fp; in show_trace_log_lvl() local
125 fp = regs->r7; in show_trace_log_lvl()
127 asm("mov %0, r7" : "=r"(fp)); in show_trace_log_lvl()
129 fp = tsk->thread.cpu_context.r7; in show_trace_log_lvl()
138 while (valid_stack_ptr(tinfo, fp)) { in show_trace_log_lvl()
141 lr = *(unsigned long *)fp; in show_trace_log_lvl()
149 new_fp = *(unsigned long *)(fp + 4); in show_trace_log_lvl()
150 if (new_fp <= fp) in show_trace_log_lvl()
152 fp = new_fp; in show_trace_log_lvl()
335 unsigned long fp = p->thread.cpu_context.r7; in get_wchan() local
[all …]
/linux-4.4.14/arch/hexagon/kernel/
Dstacktrace.c29 unsigned long fp; member
39 unsigned long fp; in save_stack_trace() local
45 fp = current_frame_pointer; in save_stack_trace()
47 while (fp >= low && fp <= (high - sizeof(*frame))) { in save_stack_trace()
48 frame = (struct stackframe *)fp; in save_stack_trace()
62 low = fp + sizeof(*frame); in save_stack_trace()
63 fp = frame->fp; in save_stack_trace()
Dtraps.c92 static void do_show_stack(struct task_struct *task, unsigned long *fp, in do_show_stack() argument
111 if (fp == NULL) { in do_show_stack()
113 asm("%0 = r30" : "=r" (fp)); in do_show_stack()
115 fp = (unsigned long *) in do_show_stack()
117 task->thread.switch_sp)->fp; in do_show_stack()
121 if ((((unsigned long) fp) & 0x3) || ((unsigned long) fp < 0x1000)) { in do_show_stack()
122 printk(KERN_INFO "-- Corrupt frame pointer %p\n", fp); in do_show_stack()
128 ip = *(fp+1); in do_show_stack()
139 printk(KERN_INFO "[%p] 0x%lx: %s + 0x%lx", fp, ip, name, in do_show_stack()
141 if (((unsigned long) fp < low) || (high < (unsigned long) fp)) in do_show_stack()
[all …]
Dprocess.c160 unsigned long fp, pc; in get_wchan() local
167 fp = ((struct hexagon_switch_stack *)p->thread.switch_sp)->fp; in get_wchan()
169 if (fp < (stack_page + sizeof(struct thread_info)) || in get_wchan()
170 fp >= (THREAD_SIZE - 8 + stack_page)) in get_wchan()
172 pc = ((unsigned long *)fp)[1]; in get_wchan()
175 fp = *(unsigned long *) fp; in get_wchan()
/linux-4.4.14/tools/perf/util/
Dcolor.c71 static int __color_vfprintf(FILE *fp, const char *color, const char *fmt, in __color_vfprintf() argument
80 if (isatty(fileno(fp)) || pager_in_use()) in __color_vfprintf()
87 fprintf(fp, "%s", color); in __color_vfprintf()
88 r += vfprintf(fp, fmt, args); in __color_vfprintf()
90 fprintf(fp, "%s", PERF_COLOR_RESET); in __color_vfprintf()
100 int color_vfprintf(FILE *fp, const char *color, const char *fmt, va_list args) in color_vfprintf() argument
102 return __color_vfprintf(fp, color, fmt, args); in color_vfprintf()
117 int color_fprintf(FILE *fp, const char *color, const char *fmt, ...) in color_fprintf() argument
123 r = color_vfprintf(fp, color, fmt, args); in color_fprintf()
133 int color_fwrite_lines(FILE *fp, const char *color, in color_fwrite_lines() argument
[all …]
Dsymbol-minimal.c84 FILE *fp; in filename__read_build_id() local
92 fp = fopen(filename, "r"); in filename__read_build_id()
93 if (fp == NULL) in filename__read_build_id()
96 if (fread(e_ident, sizeof(e_ident), 1, fp) != 1) in filename__read_build_id()
106 fseek(fp, 0, SEEK_SET); in filename__read_build_id()
112 if (fread(&ehdr, sizeof(ehdr), 1, fp) != 1) in filename__read_build_id()
126 fseek(fp, ehdr.e_phoff, SEEK_SET); in filename__read_build_id()
127 if (fread(buf, buf_size, 1, fp) != 1) in filename__read_build_id()
150 fseek(fp, offset, SEEK_SET); in filename__read_build_id()
151 if (fread(buf, buf_size, 1, fp) != 1) in filename__read_build_id()
[all …]
Dheader.c422 FILE *fp; in build_cpu_topo() local
431 fp = fopen(filename, "r"); in build_cpu_topo()
432 if (!fp) in build_cpu_topo()
435 sret = getline(&buf, &len, fp); in build_cpu_topo()
436 fclose(fp); in build_cpu_topo()
458 fp = fopen(filename, "r"); in build_cpu_topo()
459 if (!fp) in build_cpu_topo()
462 if (getline(&buf, &len, fp) <= 0) in build_cpu_topo()
480 if(fp) in build_cpu_topo()
481 fclose(fp); in build_cpu_topo()
[all …]
Dvalues.c130 static void perf_read_values__display_pretty(FILE *fp, in perf_read_values__display_pretty() argument
160 fprintf(fp, "# %*s %*s", pidwidth, "PID", tidwidth, "TID"); in perf_read_values__display_pretty()
162 fprintf(fp, " %*s", counterwidth[j], values->countername[j]); in perf_read_values__display_pretty()
163 fprintf(fp, "\n"); in perf_read_values__display_pretty()
166 fprintf(fp, " %*d %*d", pidwidth, values->pid[i], in perf_read_values__display_pretty()
169 fprintf(fp, " %*" PRIu64, in perf_read_values__display_pretty()
171 fprintf(fp, "\n"); in perf_read_values__display_pretty()
176 static void perf_read_values__display_raw(FILE *fp, in perf_read_values__display_raw() argument
212 fprintf(fp, "# %*s %*s %*s %*s %*s\n", in perf_read_values__display_raw()
218 fprintf(fp, " %*d %*d %*s %*" PRIx64 " %*" PRIu64, in perf_read_values__display_raw()
[all …]
Devent.c228 FILE *fp; in perf_event__synthesize_mmap_events() local
240 fp = fopen(filename, "r"); in perf_event__synthesize_mmap_events()
241 if (fp == NULL) { in perf_event__synthesize_mmap_events()
261 if (fgets(bf, sizeof(bf), fp) == NULL) in perf_event__synthesize_mmap_events()
348 fclose(fp); in perf_event__synthesize_mmap_events()
702 size_t perf_event__fprintf_comm(union perf_event *event, FILE *fp) in perf_event__fprintf_comm() argument
711 return fprintf(fp, "%s: %s:%d/%d\n", s, event->comm.comm, event->comm.pid, event->comm.tid); in perf_event__fprintf_comm()
762 size_t perf_event__fprintf_mmap(union perf_event *event, FILE *fp) in perf_event__fprintf_mmap() argument
764 return fprintf(fp, " %d/%d: [%#" PRIx64 "(%#" PRIx64 ") @ %#" PRIx64 "]: %c %s\n", in perf_event__fprintf_mmap()
771 size_t perf_event__fprintf_mmap2(union perf_event *event, FILE *fp) in perf_event__fprintf_mmap2() argument
[all …]
Dmap.c379 size_t map__fprintf(struct map *map, FILE *fp) in map__fprintf() argument
381 return fprintf(fp, " %" PRIx64 "-%" PRIx64 " %" PRIx64 " %s\n", in map__fprintf()
385 size_t map__fprintf_dsoname(struct map *map, FILE *fp) in map__fprintf_dsoname() argument
396 return fprintf(fp, "%s", dsoname); in map__fprintf_dsoname()
400 FILE *fp) in map__fprintf_srcline() argument
409 ret = fprintf(fp, "%s%s", prefix, srcline); in map__fprintf_srcline()
610 static size_t maps__fprintf(struct maps *maps, FILE *fp) in maps__fprintf() argument
619 printed += fprintf(fp, "Map:"); in maps__fprintf()
620 printed += map__fprintf(pos, fp); in maps__fprintf()
622 printed += dso__fprintf(pos->dso, pos->type, fp); in maps__fprintf()
[all …]
Dcolor.h35 int color_vfprintf(FILE *fp, const char *color, const char *fmt, va_list args);
36 int color_fprintf(FILE *fp, const char *color, const char *fmt, ...);
38 int color_fwrite_lines(FILE *fp, const char *color, size_t count, const char *buf);
42 int percent_color_fprintf(FILE *fp, const char *fmt, double percent);
Dcgroup.c13 FILE *fp; in cgroupfs_find_mountpoint() local
18 fp = fopen("/proc/mounts", "r"); in cgroupfs_find_mountpoint()
19 if (!fp) in cgroupfs_find_mountpoint()
27 while (fscanf(fp, "%*s %"STR(PATH_MAX)"s %"STR(PATH_MAX)"s %" in cgroupfs_find_mountpoint()
46 fclose(fp); in cgroupfs_find_mountpoint()
Dsession.h94 size_t perf_session__fprintf(struct perf_session *session, FILE *fp);
96 size_t perf_session__fprintf_dsos(struct perf_session *session, FILE *fp);
98 size_t perf_session__fprintf_dsos_buildid(struct perf_session *session, FILE *fp,
101 size_t perf_session__fprintf_nr_events(struct perf_session *session, FILE *fp);
113 void perf_session__fprintf_info(struct perf_session *s, FILE *fp, bool full);
Devent.h495 size_t perf_event__fprintf_comm(union perf_event *event, FILE *fp);
496 size_t perf_event__fprintf_mmap(union perf_event *event, FILE *fp);
497 size_t perf_event__fprintf_mmap2(union perf_event *event, FILE *fp);
498 size_t perf_event__fprintf_task(union perf_event *event, FILE *fp);
499 size_t perf_event__fprintf_aux(union perf_event *event, FILE *fp);
500 size_t perf_event__fprintf_itrace_start(union perf_event *event, FILE *fp);
501 size_t perf_event__fprintf_switch(union perf_event *event, FILE *fp);
502 size_t perf_event__fprintf(union perf_event *event, FILE *fp);
/linux-4.4.14/arch/metag/oprofile/
Dbacktrace.c16 static void user_backtrace_fp(unsigned long __user *fp, unsigned int depth) in user_backtrace_fp() argument
18 while (depth-- && access_ok(VERIFY_READ, fp, 8)) { in user_backtrace_fp()
21 if (__copy_from_user_inatomic(&addr, fp + 1, sizeof(addr))) in user_backtrace_fp()
28 if (__copy_from_user_inatomic(&fpnew, fp + 0, sizeof(fpnew))) in user_backtrace_fp()
30 if (fpnew >= fp) in user_backtrace_fp()
32 fp = fpnew; in user_backtrace_fp()
53 unsigned long *fp = (unsigned long *)regs->ctx.AX[1].U0; in metag_backtrace() local
54 user_backtrace_fp((unsigned long __user __force *)fp, depth); in metag_backtrace()
57 frame.fp = regs->ctx.AX[1].U0; /* A0FrP */ in metag_backtrace()
/linux-4.4.14/arch/m68k/mac/
Dmacints.c320 struct pt_regs *fp = get_irq_regs(); in mac_nmi_handler()
322 printk("PC: %08lx\nSR: %04x SP: %p\n", fp->pc, fp->sr, fp); in mac_nmi_handler()
324 fp->d0, fp->d1, fp->d2, fp->d3); in mac_nmi_handler()
326 fp->d4, fp->d5, fp->a0, fp->a1); in mac_nmi_handler()
333 dump_stack((struct frame *)fp); in mac_nmi_handler()
/linux-4.4.14/arch/arm64/kernel/
Dstacktrace.c41 unsigned long fp = frame->fp; in unwind_frame() local
46 if (fp < low || fp > high - 0x18 || fp & 0xf) in unwind_frame()
49 frame->sp = fp + 0x10; in unwind_frame()
50 frame->fp = *(unsigned long *)(fp); in unwind_frame()
51 frame->pc = *(unsigned long *)(fp + 8); in unwind_frame()
106 frame.fp = thread_saved_fp(tsk); in save_stack_trace_tsk()
111 frame.fp = (unsigned long)__builtin_frame_address(0); in save_stack_trace_tsk()
Dperf_callchain.c24 struct frame_tail __user *fp; member
56 if (tail >= buftail.fp) in user_backtrace()
59 return buftail.fp; in user_backtrace()
72 compat_uptr_t fp; /* a (struct compat_frame_tail *) in compat mode */ member
102 compat_ptr(buftail.fp)) in compat_user_backtrace()
105 return (struct compat_frame_tail __user *)compat_ptr(buftail.fp) - 1; in compat_user_backtrace()
164 frame.fp = regs->regs[29]; in perf_callchain_kernel()
/linux-4.4.14/drivers/video/fbdev/geode/
Dvideo_gx.c183 unsigned long fp; in gx_configure_tft() local
194 fp = read_fp(par, FP_PM); in gx_configure_tft()
195 fp &= ~FP_PM_P; in gx_configure_tft()
196 write_fp(par, FP_PM, fp); in gx_configure_tft()
200 fp = read_fp(par, FP_PT1); in gx_configure_tft()
201 fp &= FP_PT1_VSIZE_MASK; in gx_configure_tft()
202 fp |= info->var.yres << FP_PT1_VSIZE_SHIFT; in gx_configure_tft()
203 write_fp(par, FP_PT1, fp); in gx_configure_tft()
208 fp = 0x0F100000; in gx_configure_tft()
213 fp |= FP_PT2_VSP; in gx_configure_tft()
[all …]
Dsuspend_gx.c39 memcpy(par->fp, par->vid_regs + VP_FP_START, sizeof(par->fp)); in gx_save_regs()
185 for (i = 0; i < ARRAY_SIZE(par->fp); i++) { in gx_restore_regs()
187 write_fp(par, i, par->fp[i]); in gx_restore_regs()
199 write_fp(par, FP_PM, par->fp[FP_PM] & ~FP_PM_P); in gx_disable_graphics()
215 uint32_t fp; in gx_enable_graphics() local
217 fp = read_fp(par, FP_PM); in gx_enable_graphics()
218 if (par->fp[FP_PM] & FP_PM_P) { in gx_enable_graphics()
220 if (!(fp & (FP_PM_PANEL_ON|FP_PM_PANEL_PWR_UP))) in gx_enable_graphics()
221 write_fp(par, FP_PM, par->fp[FP_PM]); in gx_enable_graphics()
224 if (!(fp & (FP_PM_PANEL_OFF|FP_PM_PANEL_PWR_DOWN))) in gx_enable_graphics()
[all …]
/linux-4.4.14/arch/unicore32/kernel/
Dstacktrace.c38 unsigned long fp = frame->fp; in unwind_frame() local
45 if (fp < (low + 12) || fp + 4 >= high) in unwind_frame()
49 frame->fp = *(unsigned long *)(fp - 12); in unwind_frame()
50 frame->sp = *(unsigned long *)(fp - 8); in unwind_frame()
51 frame->pc = *(unsigned long *)(fp - 4); in unwind_frame()
107 frame.fp = thread_saved_fp(tsk); in save_stack_trace_tsk()
115 frame.fp = (unsigned long)__builtin_frame_address(0); in save_stack_trace_tsk()
Dtraps.c140 unsigned int fp, mode; in dump_backtrace() local
149 fp = regs->UCreg_fp; in dump_backtrace()
152 fp = thread_saved_fp(tsk); in dump_backtrace()
155 asm("mov %0, fp" : "=r" (fp) : : "cc"); in dump_backtrace()
159 if (!fp) { in dump_backtrace()
162 } else if (verify_stack(fp)) { in dump_backtrace()
163 printk("invalid frame pointer 0x%08x", fp); in dump_backtrace()
165 } else if (fp < (unsigned long)end_of_stack(tsk)) in dump_backtrace()
170 c_backtrace(fp, mode); in dump_backtrace()
/linux-4.4.14/scripts/
Dpnmtologo.c84 static unsigned int get_number(FILE *fp) in get_number() argument
90 c = fgetc(fp); in get_number()
96 c = fgetc(fp); in get_number()
112 c = fgetc(fp); in get_number()
119 static unsigned int get_number255(FILE *fp, unsigned int maxval) in get_number255() argument
121 unsigned int val = get_number(fp); in get_number255()
127 FILE *fp; in read_image() local
133 fp = fopen(filename, "r"); in read_image()
134 if (!fp) in read_image()
138 magic = fgetc(fp); in read_image()
[all …]
Dconmakehash.c52 static void addpair(int fp, int un) in addpair() argument
60 for ( i = 0 ; i < unicount[fp] ; i++ ) in addpair()
61 if ( unitable[fp][i] == un ) in addpair()
66 if ( unicount[fp] > 254 ) in addpair()
72 unitable[fp][unicount[fp]] = un; in addpair()
73 unicount[fp]++; in addpair()
/linux-4.4.14/tools/net/
Dbpf_asm.c26 extern void bpf_asm_compile(FILE *fp, bool cstyle);
30 FILE *fp = stdin; in main() local
40 fp = fopen(argv[i], "r"); in main()
41 if (!fp) { in main()
42 fp = stdin; in main()
49 bpf_asm_compile(fp, cstyle); in main()
/linux-4.4.14/drivers/staging/rdma/hfi1/
Dfile_ops.c196 static int hfi1_file_open(struct inode *inode, struct file *fp) in hfi1_file_open() argument
199 fp->private_data = kzalloc(sizeof(struct hfi1_filedata), GFP_KERNEL); in hfi1_file_open()
200 if (fp->private_data) /* no cpu affinity by default */ in hfi1_file_open()
201 ((struct hfi1_filedata *)fp->private_data)->rec_cpu_num = -1; in hfi1_file_open()
202 return fp->private_data ? 0 : -ENOMEM; in hfi1_file_open()
205 static ssize_t hfi1_file_write(struct file *fp, const char __user *data, in hfi1_file_write() argument
209 struct hfi1_ctxtdata *uctxt = ctxt_fp(fp); in hfi1_file_write()
220 if (WARN_ON_ONCE(!ib_safe_file_access(fp))) in hfi1_file_write()
303 ret = assign_ctxt(fp, &uinfo); in hfi1_file_write()
306 ret = setup_ctxt(fp); in hfi1_file_write()
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/
Dnouveau_bios.c113 …uint8_t sub = bios->data[bios->fp.xlated_entry + script] + (bios->fp.link_c_increment && dcbent->o… in call_lvds_manufacturer_script()
116 if (!bios->fp.xlated_entry || !sub || !scriptofs) in call_lvds_manufacturer_script()
119 run_digital_op_script(dev, scriptofs, dcbent, head, bios->fp.dual_link); in call_lvds_manufacturer_script()
123 mdelay(ROM16(bios->data[bios->fp.xlated_entry + 7])); in call_lvds_manufacturer_script()
163 scriptptr = ROM16(bios->data[bios->fp.lvdsmanufacturerpointer + 7 + outputset * 2]); in run_lvds_table()
167 scriptptr = ROM16(bios->data[bios->fp.lvdsmanufacturerpointer + 11 + outputset * 2]); in run_lvds_table()
170 clktable = bios->fp.lvdsmanufacturerpointer + 15; in run_lvds_table()
175 if (bios->fp.dual_link) in run_lvds_table()
177 if (bios->fp.if_is_24bit) in run_lvds_table()
183 if (bios->fp.dual_link) { in run_lvds_table()
[all …]
/linux-4.4.14/net/irda/
Diriap.c435 __u8 *fp; in iriap_getvaluebyclass_confirm() local
443 fp = skb->data; in iriap_getvaluebyclass_confirm()
447 len = get_unaligned_be16(fp + n); in iriap_getvaluebyclass_confirm()
453 obj_id = get_unaligned_be16(fp + n); in iriap_getvaluebyclass_confirm()
456 type = fp[n++]; in iriap_getvaluebyclass_confirm()
461 memcpy(&tmp_cpu32, fp+n, 4); n += 4; in iriap_getvaluebyclass_confirm()
469 charset = fp[n++]; in iriap_getvaluebyclass_confirm()
496 value_len = fp[n++]; in iriap_getvaluebyclass_confirm()
501 fp[n + value_len] = 0x00; in iriap_getvaluebyclass_confirm()
502 pr_debug("Got string %s\n", fp+n); in iriap_getvaluebyclass_confirm()
[all …]
Dirlmp_frame.c94 __u8 *fp; in irlmp_link_data_indication() local
100 fp = skb->data; in irlmp_link_data_indication()
106 slsap_sel = fp[0] & LSAP_MASK; in irlmp_link_data_indication()
107 dlsap_sel = fp[1]; in irlmp_link_data_indication()
113 if ((fp[0] & CONTROL_BIT) && (fp[2] == CONNECT_CMD)) { in irlmp_link_data_indication()
136 if (fp[0] & CONTROL_BIT) { in irlmp_link_data_indication()
138 __func__, fp[2]); in irlmp_link_data_indication()
148 if (fp[0] & CONTROL_BIT) { in irlmp_link_data_indication()
149 switch (fp[2]) { in irlmp_link_data_indication()
171 __func__, fp[2]); in irlmp_link_data_indication()
[all …]
/linux-4.4.14/arch/metag/kernel/
Dstacktrace.c41 struct metag_frame *fp = (struct metag_frame *)frame->fp; in unwind_frame() local
45 if (frame->fp & 0x7) in unwind_frame()
48 fpnew = fp->fp; in unwind_frame()
49 lr = fp->lr - 4; in unwind_frame()
70 if (fpnew < (ALIGN_DOWN((unsigned long)fp, THREAD_SIZE) + in unwind_frame()
71 sizeof(struct thread_info)) || fpnew >= (unsigned long)fp) in unwind_frame()
75 frame->fp = fpnew; in unwind_frame()
162 frame.fp = thread_saved_fp(tsk); in save_stack_trace_tsk()
171 frame.fp = (unsigned long)__builtin_frame_address(0); in save_stack_trace_tsk()
/linux-4.4.14/arch/arm/kernel/
Dstacktrace.c28 unsigned long fp = frame->fp; in unwind_frame() local
35 if (fp < low + 12 || fp > high - 4) in unwind_frame()
39 frame->fp = *(unsigned long *)(fp - 12); in unwind_frame()
40 frame->sp = *(unsigned long *)(fp - 8); in unwind_frame()
41 frame->pc = *(unsigned long *)(fp - 4); in unwind_frame()
131 frame.fp = thread_saved_fp(tsk); in __save_stack_trace()
139 frame.fp = (unsigned long)__builtin_frame_address(0); in __save_stack_trace()
159 frame.fp = regs->ARM_fp; in save_stack_trace_regs()
Dentry-ftrace.S115 sub r0, fp, #4 @ &lr of instrumented routine (&parent)
124 mov r2, fp @ frame pointer
139 ldr \reg, [fp, #-4]
143 ldr lr, [fp, #-4]
150 ldr lr, [fp, #-4]
233 mov r0, fp @ frame pointer
Dhead-common.S87 ldrne fp, [r4], #4
88 strne fp, [r5], #4
91 mov fp, #0 @ Clear BSS (and zero fp)
93 strcc fp, [r6],#4
Dperf_callchain.c23 struct frame_tail __user *fp; member
55 if (tail + 1 >= buftail.fp) in user_backtrace()
58 return buftail.fp - 1; in user_backtrace()
/linux-4.4.14/arch/frv/kernel/
Dprocess.c143 p->thread.fp = 0; in copy_thread()
172 unsigned long fp, pc; in get_wchan() local
179 fp = p->thread.fp; in get_wchan()
183 if (fp < stack_limit || fp >= (unsigned long) regs0 || fp & 3) in get_wchan()
186 pc = ((unsigned long *) fp)[2]; in get_wchan()
192 fp = *(unsigned long *) fp; in get_wchan()
202 return ((unsigned long *)tsk->thread.fp)[2]; in thread_saved_pc()
/linux-4.4.14/kernel/bpf/
Dcore.c78 struct bpf_prog *fp; in bpf_prog_alloc() local
81 fp = __vmalloc(size, gfp_flags, PAGE_KERNEL); in bpf_prog_alloc()
82 if (fp == NULL) in bpf_prog_alloc()
85 kmemcheck_annotate_bitfield(fp, meta); in bpf_prog_alloc()
89 vfree(fp); in bpf_prog_alloc()
93 fp->pages = size / PAGE_SIZE; in bpf_prog_alloc()
94 fp->aux = aux; in bpf_prog_alloc()
95 fp->aux->prog = fp; in bpf_prog_alloc()
97 return fp; in bpf_prog_alloc()
106 struct bpf_prog *fp; in bpf_prog_realloc() local
[all …]
/linux-4.4.14/arch/powerpc/perf/
Dcallchain.c56 unsigned long *fp; in perf_callchain_kernel() local
66 fp = (unsigned long *) sp; in perf_callchain_kernel()
67 next_sp = fp[0]; in perf_callchain_kernel()
70 fp[STACK_FRAME_MARKER] == STACK_FRAME_REGS_MARKER) { in perf_callchain_kernel()
85 next_ip = fp[STACK_FRAME_LR_SAVE]; in perf_callchain_kernel()
208 static int is_sigreturn_64_address(unsigned long nip, unsigned long fp) in is_sigreturn_64_address() argument
210 if (nip == fp + offsetof(struct signal_frame_64, tramp)) in is_sigreturn_64_address()
243 unsigned long __user *fp, *uregs; in perf_callchain_user_64() local
251 fp = (unsigned long __user *) sp; in perf_callchain_user_64()
252 if (!valid_user_sp(sp, 1) || read_user_stack_64(fp, &next_sp)) in perf_callchain_user_64()
[all …]
/linux-4.4.14/fs/autofs4/
Ddev-ioctl.c176 static int autofs_dev_ioctl_protover(struct file *fp, in autofs_dev_ioctl_protover() argument
185 static int autofs_dev_ioctl_protosubver(struct file *fp, in autofs_dev_ioctl_protosubver() argument
271 static int autofs_dev_ioctl_openmount(struct file *fp, in autofs_dev_ioctl_openmount() argument
301 static int autofs_dev_ioctl_closemount(struct file *fp, in autofs_dev_ioctl_closemount() argument
312 static int autofs_dev_ioctl_ready(struct file *fp, in autofs_dev_ioctl_ready() argument
326 static int autofs_dev_ioctl_fail(struct file *fp, in autofs_dev_ioctl_fail() argument
350 static int autofs_dev_ioctl_setpipefd(struct file *fp, in autofs_dev_ioctl_setpipefd() argument
403 static int autofs_dev_ioctl_catatonic(struct file *fp, in autofs_dev_ioctl_catatonic() argument
412 static int autofs_dev_ioctl_timeout(struct file *fp, in autofs_dev_ioctl_timeout() argument
432 static int autofs_dev_ioctl_requester(struct file *fp, in autofs_dev_ioctl_requester() argument
[all …]
/linux-4.4.14/arch/sparc/kernel/
Dprocess_32.c149 unsigned long pc, fp; in show_stack() local
161 fp = (unsigned long) _ksp; in show_stack()
164 if (fp < (task_base + sizeof(struct thread_info)) || in show_stack()
165 fp >= (task_base + (PAGE_SIZE << 1))) in show_stack()
167 rw = (struct reg_window32 *) fp; in show_stack()
171 fp = rw->ins[6]; in show_stack()
241 unsigned long size, fp; local
245 if (get_user(tmp, &src->fp))
248 fp = (unsigned long) tmp;
249 size = (fp - ((unsigned long) src));
[all …]
Dstacktrace.c15 unsigned long ksp, fp; in __save_stack_trace() local
28 fp = ksp + STACK_BIAS; in __save_stack_trace()
37 if (!kstack_valid(tp, fp)) in __save_stack_trace()
40 sf = (struct sparc_stackf *) fp; in __save_stack_trace()
47 fp = regs->u_regs[UREG_I6] + STACK_BIAS; in __save_stack_trace()
50 fp = (unsigned long)sf->fp + STACK_BIAS; in __save_stack_trace()
Dunaligned_64.c121 unsigned long value, fp; in fetch_reg() local
126 fp = regs->u_regs[UREG_FP]; in fetch_reg()
130 win = (struct reg_window *)(fp + STACK_BIAS); in fetch_reg()
132 } else if (!test_thread_64bit_stack(fp)) { in fetch_reg()
134 win32 = (struct reg_window32 __user *)((unsigned long)((u32)fp)); in fetch_reg()
138 win = (struct reg_window __user *)(fp + STACK_BIAS); in fetch_reg()
146 unsigned long fp; in fetch_reg_addr() local
151 fp = regs->u_regs[UREG_FP]; in fetch_reg_addr()
155 win = (struct reg_window *)(fp + STACK_BIAS); in fetch_reg_addr()
157 } else if (!test_thread_64bit_stack(fp)) { in fetch_reg_addr()
[all …]
Dprocess_64.c410 unsigned long *fp; in thread_saved_pc() local
411 fp = (unsigned long *)(sp[14] + STACK_BIAS); in thread_saved_pc()
412 if (((unsigned long)fp & (sizeof(long) - 1)) == 0UL) in thread_saved_pc()
413 ret = fp[15]; in thread_saved_pc()
451 unsigned long fp, distance, rval; in clone_stackframe() local
456 __get_user(fp, &(((struct reg_window __user *)psp)->ins[6])); in clone_stackframe()
457 fp += STACK_BIAS; in clone_stackframe()
459 fp &= 0xffffffff; in clone_stackframe()
461 __get_user(fp, &(((struct reg_window32 __user *)psp)->ins[6])); in clone_stackframe()
469 distance = fp - psp; in clone_stackframe()
[all …]
Dsignal_32.c67 static inline bool invalid_frame_pointer(void __user *fp, int fplen) in invalid_frame_pointer() argument
69 if ((((unsigned long) fp) & 15) || !__access_ok((unsigned long)fp, fplen)) in invalid_frame_pointer()
260 __siginfo_fpu_t __user *fp = tail; in setup_frame() local
261 tail += sizeof(*fp); in setup_frame()
262 err |= save_fpu_state(regs, fp); in setup_frame()
263 err |= __put_user(fp, &sf->fpu_save); in setup_frame()
356 __siginfo_fpu_t __user *fp = tail; in setup_rt_frame() local
357 tail += sizeof(*fp); in setup_rt_frame()
358 err |= save_fpu_state(regs, fp); in setup_rt_frame()
359 err |= __put_user(fp, &sf->fpu_save); in setup_rt_frame()
/linux-4.4.14/arch/h8300/kernel/
Dtraps.c53 static void dump(struct pt_regs *fp) in dump() argument
74 show_regs(fp); in dump()
76 tp = ((unsigned char *) fp->pc) - 0x20; in dump()
85 tp = ((unsigned char *) fp) - 0x40; in dump()
98 void die(const char *str, struct pt_regs *fp, unsigned long err) in die() argument
106 report_bug(fp->pc, fp); in die()
108 dump(fp); in die()
Dprocess.c136 unsigned long fp, pc; in get_wchan() local
144 fp = ((struct pt_regs *)p->thread.ksp)->er6; in get_wchan()
146 if (fp < stack_page+sizeof(struct thread_info) || in get_wchan()
147 fp >= 8184+stack_page) in get_wchan()
149 pc = ((unsigned long *)fp)[1]; in get_wchan()
152 fp = *(unsigned long *) fp; in get_wchan()
/linux-4.4.14/drivers/infiniband/hw/qib/
Dqib_file_ops.c98 static int qib_get_base_info(struct file *fp, void __user *ubase, in qib_get_base_info() argument
101 struct qib_ctxtdata *rcd = ctxt_fp(fp); in qib_get_base_info()
117 master = !subctxt_fp(fp); in qib_get_base_info()
206 unsigned slave = subctxt_fp(fp) - 1; in qib_get_base_info()
215 cvt_kvaddr(&rcd->user_event_mask[subctxt_fp(fp)]); in qib_get_base_info()
243 kinfo->spi_subctxt = subctxt_fp(fp); in qib_get_base_info()
284 static int qib_tid_update(struct qib_ctxtdata *rcd, struct file *fp, in qib_tid_update() argument
296 unsigned subctxt = subctxt_fp(fp); in qib_tid_update()
318 tid = tidcursor_fp(fp); in qib_tid_update()
323 tid = tidcursor_fp(fp); in qib_tid_update()
[all …]
Dqib_diag.c131 static int qib_diag_open(struct inode *in, struct file *fp);
132 static int qib_diag_release(struct inode *in, struct file *fp);
133 static ssize_t qib_diag_read(struct file *fp, char __user *data,
135 static ssize_t qib_diag_write(struct file *fp, const char __user *data,
151 static ssize_t qib_diagpkt_write(struct file *fp, const char __user *data,
508 static int qib_diag_open(struct inode *in, struct file *fp) in qib_diag_open() argument
532 fp->private_data = dc; in qib_diag_open()
547 static ssize_t qib_diagpkt_write(struct file *fp, in qib_diagpkt_write() argument
678 static int qib_diag_release(struct inode *in, struct file *fp) in qib_diag_release() argument
681 return_client(fp->private_data); in qib_diag_release()
[all …]
/linux-4.4.14/include/linux/
Dfilter.h405 static inline void bpf_prog_lock_ro(struct bpf_prog *fp) in bpf_prog_lock_ro() argument
407 set_memory_ro((unsigned long)fp, fp->pages); in bpf_prog_lock_ro()
410 static inline void bpf_prog_unlock_ro(struct bpf_prog *fp) in bpf_prog_unlock_ro() argument
412 set_memory_rw((unsigned long)fp, fp->pages); in bpf_prog_unlock_ro()
415 static inline void bpf_prog_lock_ro(struct bpf_prog *fp) in bpf_prog_lock_ro() argument
419 static inline void bpf_prog_unlock_ro(struct bpf_prog *fp) in bpf_prog_unlock_ro() argument
426 int bpf_prog_select_runtime(struct bpf_prog *fp);
427 void bpf_prog_free(struct bpf_prog *fp);
432 void __bpf_prog_free(struct bpf_prog *fp);
434 static inline void bpf_prog_unlock_free(struct bpf_prog *fp) in bpf_prog_unlock_free() argument
[all …]
/linux-4.4.14/arch/mips/fw/lib/
Dcall_o32.S51 REG_S fp,O32_FRAMESZ-2*SZREG(sp)
64 move fp,sp
66 REG_SUBU fp,a1,O32_NFRAMESZ
68 REG_S sp,O32_NFRAMESZ-1*SZREG(fp)
74 sw a6,4*O32_SZREG(fp)
75 sw a7,5*O32_SZREG(fp)
78 PTR_LA t1,6*O32_SZREG(fp)
88 move sp,fp
103 REG_L fp,O32_FRAMESZ-2*SZREG(sp)
/linux-4.4.14/net/decnet/
Ddn_table.c72 #define DN_FIB_SCAN(f, fp) \ argument
73 for( ; ((f) = *(fp)) != NULL; (fp) = &(f)->fn_next)
75 #define DN_FIB_SCAN_KEY(f, fp, key) \ argument
76 for( ; ((f) = *(fp)) != NULL && dn_key_eq((f)->fn_key, (key)); (fp) = &(f)->fn_next)
126 struct dn_fib_node *f, **fp, *next; in dn_rebuild_zone() local
132 for(fp = dn_chain_p(f->fn_key, dz); in dn_rebuild_zone()
133 *fp && dn_key_leq((*fp)->fn_key, f->fn_key); in dn_rebuild_zone()
134 fp = &(*fp)->fn_next) in dn_rebuild_zone()
136 f->fn_next = *fp; in dn_rebuild_zone()
137 *fp = f; in dn_rebuild_zone()
[all …]
/linux-4.4.14/drivers/scsi/bnx2fc/
Dbnx2fc_els.c18 static void bnx2fc_logo_resp(struct fc_seq *seq, struct fc_frame *fp,
20 static void bnx2fc_flogi_resp(struct fc_seq *seq, struct fc_frame *fp,
174 int bnx2fc_send_adisc(struct bnx2fc_rport *tgt, struct fc_frame *fp) in bnx2fc_send_adisc() argument
183 fh = fc_frame_header_get(fp); in bnx2fc_send_adisc()
193 adisc = fc_frame_payload_get(fp, sizeof(*adisc)); in bnx2fc_send_adisc()
202 int bnx2fc_send_logo(struct bnx2fc_rport *tgt, struct fc_frame *fp) in bnx2fc_send_logo() argument
211 fh = fc_frame_header_get(fp); in bnx2fc_send_logo()
221 logo = fc_frame_payload_get(fp, sizeof(*logo)); in bnx2fc_send_logo()
230 int bnx2fc_send_rls(struct bnx2fc_rport *tgt, struct fc_frame *fp) in bnx2fc_send_rls() argument
239 fh = fc_frame_header_get(fp); in bnx2fc_send_rls()
[all …]
/linux-4.4.14/drivers/net/ethernet/qlogic/qede/
Dqede_main.c712 static bool qede_has_tx_work(struct qede_fastpath *fp) in qede_has_tx_work() argument
716 for (tc = 0; tc < fp->edev->num_tc; tc++) in qede_has_tx_work()
717 if (qede_txq_has_work(&fp->txqs[tc])) in qede_has_tx_work()
801 struct qede_fastpath *fp, in qede_skb_receive() argument
809 napi_gro_receive(&fp->napi, skb); in qede_skb_receive()
833 static int qede_rx_int(struct qede_fastpath *fp, int budget) in qede_rx_int() argument
835 struct qede_dev *edev = fp->edev; in qede_rx_int()
836 struct qede_rx_queue *rxq = fp->rxq; in qede_rx_int()
871 edev->cdev, fp->rss_id, in qede_rx_int()
943 skb_record_rx_queue(skb, fp->rss_id); in qede_rx_int()
[all …]
/linux-4.4.14/arch/sh/kernel/cpu/
Dfpu.c26 struct sh_fpu_hard_struct *fp = &tsk->thread.xstate->hardfpu; in init_fpu() local
27 memset(fp, 0, xstate_size); in init_fpu()
28 fp->fpscr = FPSCR_INIT; in init_fpu()
30 struct sh_fpu_soft_struct *fp = &tsk->thread.xstate->softfpu; in init_fpu() local
31 memset(fp, 0, xstate_size); in init_fpu()
32 fp->fpscr = FPSCR_INIT; in init_fpu()
/linux-4.4.14/arch/powerpc/kernel/
Dprom.c174 struct ibm_pa_feature *fp, in scan_features() argument
193 for (i = 0; i < ft_size; ++i, ++fp) { in scan_features()
194 if (fp->pabyte >= ftrs[0]) in scan_features()
196 bit = (ftrs[2 + fp->pabyte] >> (7 - fp->pabit)) & 1; in scan_features()
197 if (bit ^ fp->invert) { in scan_features()
198 cur_cpu_spec->cpu_features |= fp->cpu_features; in scan_features()
199 cur_cpu_spec->cpu_user_features |= fp->cpu_user_ftrs; in scan_features()
200 cur_cpu_spec->cpu_user_features2 |= fp->cpu_user_ftrs2; in scan_features()
201 cur_cpu_spec->mmu_features |= fp->mmu_features; in scan_features()
203 cur_cpu_spec->cpu_features &= ~fp->cpu_features; in scan_features()
[all …]
/linux-4.4.14/arch/x86/kernel/
Dstacktrace.c92 copy_stack_frame(const void __user *fp, struct stack_frame_user *frame) in copy_stack_frame() argument
96 if (!access_ok(VERIFY_READ, fp, sizeof(*frame))) in copy_stack_frame()
101 if (__copy_from_user_inatomic(frame, fp, sizeof(*frame))) in copy_stack_frame()
111 const void __user *fp = (const void __user *)regs->bp; in __save_stack_trace_user() local
121 if (!copy_stack_frame(fp, &frame)) in __save_stack_trace_user()
123 if ((unsigned long)fp < regs->sp) in __save_stack_trace_user()
129 if (fp == frame.next_fp) in __save_stack_trace_user()
131 fp = frame.next_fp; in __save_stack_trace_user()
Dprocess.c520 unsigned long start, bottom, top, sp, fp, ip; in get_wchan() local
556 fp = READ_ONCE_NOCHECK(*(unsigned long *)sp); in get_wchan()
558 if (fp < bottom || fp > top) in get_wchan()
560 ip = READ_ONCE_NOCHECK(*(unsigned long *)(fp + sizeof(unsigned long))); in get_wchan()
563 fp = READ_ONCE_NOCHECK(*(unsigned long *)fp); in get_wchan()
/linux-4.4.14/arch/mn10300/kernel/
Dentry.S55 mov d0,(REG_D0,fp)
60 mov (REG_D0,fp),d0
61 mov (REG_A0,fp),a0
65 mov d0,(REG_D0,fp)
76 mov d0,(REG_ORIG_D0,fp)
85 mov (REG_A0,fp),d0
88 mov d0,(REG_D0,fp)
143 mov fp,d0
151 mov d0,(REG_D0,fp)
152 mov fp,d0
[all …]
/linux-4.4.14/arch/tile/kernel/
Dbacktrace.c554 unsigned long fp, initial_frame_caller_pc; in backtrace_init() local
563 fp = -1; in backtrace_init()
567 fp = r52; in backtrace_init()
571 fp = sp + location.sp_offset; in backtrace_init()
576 fp = -1; in backtrace_init()
583 if (fp % sizeof(bt_int_reg_t) != 0) in backtrace_init()
584 fp = -1; in backtrace_init()
592 fp = -1; in backtrace_init()
598 fp = -1; in backtrace_init()
612 fp = -1; in backtrace_init()
[all …]
/linux-4.4.14/fs/ocfs2/
Dlocks.c42 struct ocfs2_file_private *fp = file->private_data; in ocfs2_do_flock() local
43 struct ocfs2_lock_res *lockres = &fp->fp_flock; in ocfs2_do_flock()
50 mutex_lock(&fp->fp_mutex); in ocfs2_do_flock()
92 mutex_unlock(&fp->fp_mutex); in ocfs2_do_flock()
100 struct ocfs2_file_private *fp = file->private_data; in ocfs2_do_funlock() local
102 mutex_lock(&fp->fp_mutex); in ocfs2_do_funlock()
105 mutex_unlock(&fp->fp_mutex); in ocfs2_do_funlock()
/linux-4.4.14/arch/avr32/oprofile/
Dbacktrace.c24 struct frame_head *fp; member
49 if (bufhead[0].fp <= head) in dump_user_backtrace()
52 return bufhead[0].fp; in dump_user_backtrace()
69 if (head->fp <= head) in avr32_backtrace()
71 head = head->fp; in avr32_backtrace()
/linux-4.4.14/fs/nfsd/
Dnfs4state.c74 static bool check_for_locks(struct nfs4_file *fp, struct nfs4_lockowner *lowner);
272 struct nfs4_file *fp = container_of(rcu, struct nfs4_file, fi_rcu); in nfsd4_free_file_rcu() local
274 kmem_cache_free(file_slab, fp); in nfsd4_free_file_rcu()
401 __nfs4_file_get_access(struct nfs4_file *fp, u32 access) in __nfs4_file_get_access() argument
403 lockdep_assert_held(&fp->fi_lock); in __nfs4_file_get_access()
406 atomic_inc(&fp->fi_access[O_WRONLY]); in __nfs4_file_get_access()
408 atomic_inc(&fp->fi_access[O_RDONLY]); in __nfs4_file_get_access()
412 nfs4_file_get_access(struct nfs4_file *fp, u32 access) in nfs4_file_get_access() argument
414 lockdep_assert_held(&fp->fi_lock); in nfs4_file_get_access()
421 if ((access & fp->fi_share_deny) != 0) in nfs4_file_get_access()
[all …]
Dnfs4layouts.c135 struct nfs4_file *fp = ls->ls_stid.sc_file; in nfsd4_free_layout_stateid() local
143 spin_lock(&fp->fi_lock); in nfsd4_free_layout_stateid()
145 spin_unlock(&fp->fi_lock); in nfsd4_free_layout_stateid()
188 struct nfs4_file *fp = parent->sc_file; in nfsd4_alloc_layout_stateid() local
196 get_nfs4_file(fp); in nfsd4_alloc_layout_stateid()
197 stp->sc_file = fp; in nfsd4_alloc_layout_stateid()
210 ls->ls_file = get_file(fp->fi_deleg_file); in nfsd4_alloc_layout_stateid()
212 ls->ls_file = find_any_file(fp); in nfsd4_alloc_layout_stateid()
217 put_nfs4_file(fp); in nfsd4_alloc_layout_stateid()
227 spin_lock(&fp->fi_lock); in nfsd4_alloc_layout_stateid()
[all …]
/linux-4.4.14/net/sched/
Dcls_route.c325 struct route4_filter __rcu **fp; in route4_delete() local
337 fp = &b->ht[from_hash(h >> 16)]; in route4_delete()
338 for (nf = rtnl_dereference(*fp); nf; in route4_delete()
339 fp = &nf->next, nf = rtnl_dereference(*fp)) { in route4_delete()
342 RCU_INIT_POINTER(*fp, rtnl_dereference(f->next)); in route4_delete()
388 struct route4_filter *fp; in route4_set_parms() local
442 for (fp = rtnl_dereference(b->ht[h2]); in route4_set_parms()
443 fp; in route4_set_parms()
444 fp = rtnl_dereference(fp->next)) in route4_set_parms()
445 if (fp->handle == f->handle) in route4_set_parms()
[all …]
Dact_bpf.c180 struct bpf_prog *fp; in tcf_bpf_init_from_ops() local
201 ret = bpf_prog_create(&fp, &fprog_tmp); in tcf_bpf_init_from_ops()
209 cfg->filter = fp; in tcf_bpf_init_from_ops()
217 struct bpf_prog *fp; in tcf_bpf_init_from_efd() local
223 fp = bpf_prog_get(bpf_fd); in tcf_bpf_init_from_efd()
224 if (IS_ERR(fp)) in tcf_bpf_init_from_efd()
225 return PTR_ERR(fp); in tcf_bpf_init_from_efd()
227 if (fp->type != BPF_PROG_TYPE_SCHED_ACT) { in tcf_bpf_init_from_efd()
228 bpf_prog_put(fp); in tcf_bpf_init_from_efd()
237 bpf_prog_put(fp); in tcf_bpf_init_from_efd()
[all …]
Dcls_fw.c162 struct fw_filter __rcu **fp; in fw_delete() local
168 fp = &head->ht[fw_hash(f->id)]; in fw_delete()
170 for (pfp = rtnl_dereference(*fp); pfp; in fw_delete()
171 fp = &pfp->next, pfp = rtnl_dereference(*fp)) { in fw_delete()
173 RCU_INIT_POINTER(*fp, rtnl_dereference(f->next)); in fw_delete()
257 struct fw_filter __rcu **fp; in fw_change() local
281 fp = &head->ht[fw_hash(fnew->id)]; in fw_change()
282 for (pfp = rtnl_dereference(*fp); pfp; in fw_change()
283 fp = &pfp->next, pfp = rtnl_dereference(*fp)) in fw_change()
288 rcu_assign_pointer(*fp, fnew); in fw_change()
Dcls_tcindex.c67 struct tcindex_filter __rcu **fp; in tcindex_lookup() local
70 fp = &p->h[key % p->hash]; in tcindex_lookup()
71 for (f = rcu_dereference_bh_rtnl(*fp); in tcindex_lookup()
73 fp = &f->next, f = rcu_dereference_bh_rtnl(*fp)) in tcindex_lookup()
399 struct tcindex_filter __rcu **fp; in tcindex_set_parms() local
403 fp = cp->h + (handle % cp->hash); in tcindex_set_parms()
404 for (nfp = rtnl_dereference(*fp); in tcindex_set_parms()
406 fp = &nfp->next, nfp = rtnl_dereference(*fp)) in tcindex_set_parms()
409 rcu_assign_pointer(*fp, f); in tcindex_set_parms()
540 struct tcindex_filter __rcu **fp; in tcindex_dump() local
[all …]
Dcls_bpf.c230 struct bpf_prog *fp; in cls_bpf_prog_from_ops() local
251 ret = bpf_prog_create(&fp, &fprog_tmp); in cls_bpf_prog_from_ops()
260 prog->filter = fp; in cls_bpf_prog_from_ops()
268 struct bpf_prog *fp; in cls_bpf_prog_from_efd() local
274 fp = bpf_prog_get(bpf_fd); in cls_bpf_prog_from_efd()
275 if (IS_ERR(fp)) in cls_bpf_prog_from_efd()
276 return PTR_ERR(fp); in cls_bpf_prog_from_efd()
278 if (fp->type != BPF_PROG_TYPE_SCHED_CLS) { in cls_bpf_prog_from_efd()
279 bpf_prog_put(fp); in cls_bpf_prog_from_efd()
288 bpf_prog_put(fp); in cls_bpf_prog_from_efd()
[all …]
Dcls_rsvp.h346 struct rsvp_filter __rcu **fp; in rsvp_delete() local
352 fp = &s->ht[(h >> 8) & 0xFF]; in rsvp_delete()
353 for (nfp = rtnl_dereference(*fp); nfp; in rsvp_delete()
354 fp = &nfp->next, nfp = rtnl_dereference(*fp)) { in rsvp_delete()
356 RCU_INIT_POINTER(*fp, f->next); in rsvp_delete()
472 struct rsvp_filter __rcu **fp; in rsvp_change() local
581 fp = &s->ht[h2]; in rsvp_change()
589 fp = &s->ht[h2]; in rsvp_change()
590 for (nfp = rtnl_dereference(*fp); nfp; in rsvp_change()
591 fp = &nfp->next, nfp = rtnl_dereference(*fp)) { in rsvp_change()
[all …]
/linux-4.4.14/arch/m68k/q40/
Dq40ints.c36 static void q40_irq_handler(unsigned int, struct pt_regs *fp);
205 static void q40_irq_handler(unsigned int irq, struct pt_regs *fp) in q40_irq_handler() argument
222 do_IRQ(Q40_IRQ_SAMPLE, fp); in q40_irq_handler()
226 do_IRQ(Q40_IRQ_FRAME, fp); in q40_irq_handler()
255 fp->sr = (((fp->sr) & (~0x700))+0x200); in q40_irq_handler()
261 do_IRQ(irq, fp); in q40_irq_handler()
292 do_IRQ(Q40_IRQ_KEYBOARD, fp); in q40_irq_handler()
/linux-4.4.14/arch/powerpc/kvm/
Dbook3s_paired_singles.c524 func(&vcpu->arch.fp.fpscr, &ps0_out, &ps0_in1, &ps0_in2, &ps0_in3); in kvmppc_ps_three_in()
541 func(&vcpu->arch.fp.fpscr, &qpr[reg_out], &ps1_in1, &ps1_in2, &ps1_in3); in kvmppc_ps_three_in()
573 func(&vcpu->arch.fp.fpscr, &ps0_out, &ps0_in1, &ps0_in2); in kvmppc_ps_two_in()
589 func(&vcpu->arch.fp.fpscr, &ps1_out, &ps1_in1, &ps1_in2); in kvmppc_ps_two_in()
615 func(&vcpu->arch.fp.fpscr, &ps0_out, &ps0_in); in kvmppc_ps_one_in()
624 func(&vcpu->arch.fp.fpscr, &qpr[reg_out], &ps1_in); in kvmppc_ps_one_in()
678 for (i = 0; i < ARRAY_SIZE(vcpu->arch.fp.fpr); i++) { in kvmppc_emulate_paired_single()
1110 fpd_fadds(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_a, fpr_b); in kvmppc_emulate_paired_single()
1114 fpd_fsubs(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_a, fpr_b); in kvmppc_emulate_paired_single()
1118 fpd_fdivs(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_a, fpr_b); in kvmppc_emulate_paired_single()
[all …]
/linux-4.4.14/drivers/atm/
Dfirestream.c796 pe->skb, pe->fp); in process_incoming()
812 pe->fp->n--; in process_incoming()
833 pe->fp->n--; in process_incoming()
1437 static int init_fp(struct fs_dev *dev, struct freepool *fp, int queue, in init_fp() argument
1450 fp->offset = queue; in init_fp()
1451 fp->bufsize = bufsize; in init_fp()
1452 fp->nr_buffers = nr_buffers; in init_fp()
1459 static inline int nr_buffers_in_freepool (struct fs_dev *dev, struct freepool *fp) in nr_buffers_in_freepool() argument
1463 return read_fs (dev, FP_CNT (fp->offset)); in nr_buffers_in_freepool()
1465 return fp->n; in nr_buffers_in_freepool()
[all …]
/linux-4.4.14/net/ipv6/
Dexthdrs_core.c88 __be16 _frag_off, *fp; in ipv6_skip_exthdr() local
89 fp = skb_header_pointer(skb, in ipv6_skip_exthdr()
94 if (!fp) in ipv6_skip_exthdr()
97 *frag_offp = *fp; in ipv6_skip_exthdr()
239 __be16 *fp; in ipv6_find_hdr() local
243 fp = skb_header_pointer(skb, in ipv6_find_hdr()
248 if (!fp) in ipv6_find_hdr()
251 _frag_off = ntohs(*fp) & ~0x7; in ipv6_find_hdr()
Dreassembly.c383 struct sk_buff *fp, *head = fq->q.fragments; in ip6_frag_reasm() local
398 fp = skb_clone(head, GFP_ATOMIC); in ip6_frag_reasm()
400 if (!fp) in ip6_frag_reasm()
403 fp->next = head->next; in ip6_frag_reasm()
404 if (!fp->next) in ip6_frag_reasm()
405 fq->q.fragments_tail = fp; in ip6_frag_reasm()
406 prev->next = fp; in ip6_frag_reasm()
466 for (fp = head->next; fp;) { in ip6_frag_reasm()
469 struct sk_buff *next = fp->next; in ip6_frag_reasm()
471 sum_truesize += fp->truesize; in ip6_frag_reasm()
[all …]
/linux-4.4.14/drivers/staging/rdma/ipath/
Dipath_file_ops.c94 static int ipath_get_base_info(struct file *fp, in ipath_get_base_info() argument
97 struct ipath_portdata *pd = port_fp(fp); in ipath_get_base_info()
112 master = !subport_fp(fp); in ipath_get_base_info()
197 unsigned slave = subport_fp(fp) - 1; in ipath_get_base_info()
212 PAGE_SIZE * subport_fp(fp)); in ipath_get_base_info()
215 pd->port_rcvhdrq_size * subport_fp(fp)); in ipath_get_base_info()
219 subport_fp(fp)); in ipath_get_base_info()
252 kinfo->spi_subport = subport_fp(fp); in ipath_get_base_info()
295 static int ipath_tid_update(struct ipath_portdata *pd, struct file *fp, in ipath_tid_update() argument
307 unsigned subport = subport_fp(fp); in ipath_tid_update()
[all …]
Dipath_diag.c57 static int ipath_diag_open(struct inode *in, struct file *fp);
58 static int ipath_diag_release(struct inode *in, struct file *fp);
59 static ssize_t ipath_diag_read(struct file *fp, char __user *data,
61 static ssize_t ipath_diag_write(struct file *fp, const char __user *data,
73 static ssize_t ipath_diagpkt_write(struct file *fp,
281 static int ipath_diag_open(struct inode *in, struct file *fp) in ipath_diag_open() argument
302 fp->private_data = dd; in ipath_diag_open()
324 static ssize_t ipath_diagpkt_write(struct file *fp, in ipath_diagpkt_write() argument
479 static int ipath_diag_release(struct inode *in, struct file *fp) in ipath_diag_release() argument
483 fp->private_data = NULL; in ipath_diag_release()
[all …]
/linux-4.4.14/net/unix/
Dgarbage.c119 void unix_inflight(struct user_struct *user, struct file *fp) in unix_inflight() argument
121 struct sock *s = unix_get_socket(fp); in unix_inflight()
140 void unix_notinflight(struct user_struct *user, struct file *fp) in unix_notinflight() argument
142 struct sock *s = unix_get_socket(fp); in unix_notinflight()
168 if (UNIXCB(skb).fp) { in scan_inflight()
171 int nfd = UNIXCB(skb).fp->count; in scan_inflight()
172 struct file **fp = UNIXCB(skb).fp->fp; in scan_inflight() local
176 struct sock *sk = unix_get_socket(*fp++); in scan_inflight()
/linux-4.4.14/drivers/acpi/acpica/
Dutfileio.c64 acpi_ut_read_table(FILE * fp,
146 acpi_ut_read_table(FILE * fp, in acpi_ut_read_table() argument
158 file_size = cm_get_file_size(fp); in acpi_ut_read_table()
169 fseek(fp, 0, SEEK_SET); in acpi_ut_read_table()
171 count = fread(&table_header, 1, sizeof(struct acpi_table_header), fp); in acpi_ut_read_table()
240 fseek(fp, 0, SEEK_SET); in acpi_ut_read_table()
241 actual = fread(*table, 1, (size_t) file_size, fp); in acpi_ut_read_table()
/linux-4.4.14/net/ipv6/netfilter/
Dnf_conntrack_reasm.c382 struct sk_buff *fp, *op, *head = fq->q.fragments; in nf_ct_frag6_reasm() local
449 for (fp = head->next; fp; fp = fp->next) { in nf_ct_frag6_reasm()
450 head->data_len += fp->len; in nf_ct_frag6_reasm()
451 head->len += fp->len; in nf_ct_frag6_reasm()
452 if (head->ip_summed != fp->ip_summed) in nf_ct_frag6_reasm()
455 head->csum = csum_add(head->csum, fp->csum); in nf_ct_frag6_reasm()
456 head->truesize += fp->truesize; in nf_ct_frag6_reasm()
478 fp = skb_shinfo(head)->frag_list; in nf_ct_frag6_reasm()
479 if (fp && NFCT_FRAG6_CB(fp)->orig == NULL) in nf_ct_frag6_reasm()
481 fp = fp->next; in nf_ct_frag6_reasm()
[all …]
/linux-4.4.14/tools/power/cpupower/utils/helpers/
Dcpuid.c47 FILE *fp; in get_cpu_info() local
61 fp = fopen("/proc/cpuinfo", "r"); in get_cpu_info()
62 if (!fp) in get_cpu_info()
65 while (!feof(fp)) { in get_cpu_info()
66 if (!fgets(value, 64, fp)) in get_cpu_info()
108 fclose(fp); in get_cpu_info()
/linux-4.4.14/arch/mn10300/include/asm/
Dframe.inc25 #define fp a3
39 mov sp,fp # FRAME pointer in A3
45 mov a0,(REG_NEXT,fp)
46 mov fp,(TI_frame,a1)
66 mov (TI_frame,a0),fp
67 mov fp,sp
68 mov (REG_NEXT,fp),d0
72 mov (REG_EPSW,fp),d0
/linux-4.4.14/drivers/hid/
Dhid-roccat-common.h43 ssize_t roccat_common2_sysfs_read(struct file *fp, struct kobject *kobj,
46 ssize_t roccat_common2_sysfs_write(struct file *fp, struct kobject *kobj,
51 static ssize_t roccat_common2_sysfs_write_ ## thingy(struct file *fp, \
55 return roccat_common2_sysfs_write(fp, kobj, buf, off, count, \
60 static ssize_t roccat_common2_sysfs_read_ ## thingy(struct file *fp, \
64 return roccat_common2_sysfs_read(fp, kobj, buf, off, count, \
Dhid-roccat-lua.c29 static ssize_t lua_sysfs_read(struct file *fp, struct kobject *kobj, in lua_sysfs_read() argument
51 static ssize_t lua_sysfs_write(struct file *fp, struct kobject *kobj, in lua_sysfs_write() argument
71 static ssize_t lua_sysfs_write_ ## thingy(struct file *fp, \
75 return lua_sysfs_write(fp, kobj, buf, off, count, \
80 static ssize_t lua_sysfs_read_ ## thingy(struct file *fp, \
84 return lua_sysfs_read(fp, kobj, buf, off, count, \
Dhid-roccat-pyra.c89 static ssize_t pyra_sysfs_read(struct file *fp, struct kobject *kobj, in pyra_sysfs_read() argument
115 static ssize_t pyra_sysfs_write(struct file *fp, struct kobject *kobj, in pyra_sysfs_write() argument
139 static ssize_t pyra_sysfs_write_ ## thingy(struct file *fp, \
143 return pyra_sysfs_write(fp, kobj, buf, off, count, \
148 static ssize_t pyra_sysfs_read_ ## thingy(struct file *fp, \
152 return pyra_sysfs_read(fp, kobj, buf, off, count, \
190 static ssize_t pyra_sysfs_read_profilex_settings(struct file *fp, in pyra_sysfs_read_profilex_settings() argument
204 return pyra_sysfs_read(fp, kobj, buf, off, count, in pyra_sysfs_read_profilex_settings()
209 static ssize_t pyra_sysfs_read_profilex_buttons(struct file *fp, in pyra_sysfs_read_profilex_buttons() argument
223 return pyra_sysfs_read(fp, kobj, buf, off, count, in pyra_sysfs_read_profilex_buttons()
[all …]
Dhid-roccat-koneplus.c86 static ssize_t koneplus_sysfs_read(struct file *fp, struct kobject *kobj, in koneplus_sysfs_read() argument
112 static ssize_t koneplus_sysfs_write(struct file *fp, struct kobject *kobj, in koneplus_sysfs_write() argument
137 static ssize_t koneplus_sysfs_write_ ## thingy(struct file *fp, \
141 return koneplus_sysfs_write(fp, kobj, buf, off, count, \
146 static ssize_t koneplus_sysfs_read_ ## thingy(struct file *fp, \
150 return koneplus_sysfs_read(fp, kobj, buf, off, count, \
192 static ssize_t koneplus_sysfs_read_profilex_settings(struct file *fp, in koneplus_sysfs_read_profilex_settings() argument
206 return koneplus_sysfs_read(fp, kobj, buf, off, count, in koneplus_sysfs_read_profilex_settings()
211 static ssize_t koneplus_sysfs_read_profilex_buttons(struct file *fp, in koneplus_sysfs_read_profilex_buttons() argument
225 return koneplus_sysfs_read(fp, kobj, buf, off, count, in koneplus_sysfs_read_profilex_buttons()
/linux-4.4.14/sound/mips/
Dad1843.c231 const struct ad1843_bitfield *fp; in ad1843_read_multi() local
236 fp = va_arg(ap, const struct ad1843_bitfield *); in ad1843_read_multi()
239 reg = fp->reg; in ad1843_read_multi()
243 mask = (1 << fp->nbits) - 1; in ad1843_read_multi()
244 *value = w >> fp->lo_bit & mask; in ad1843_read_multi()
264 const struct ad1843_bitfield *fp; in ad1843_write_multi() local
274 fp = va_arg(ap, const struct ad1843_bitfield *); in ad1843_write_multi()
277 reg = fp->reg; in ad1843_write_multi()
279 WARN_ON(reg != fp->reg); in ad1843_write_multi()
280 m = ((1 << fp->nbits) - 1) << fp->lo_bit; in ad1843_write_multi()
[all …]
/linux-4.4.14/drivers/crypto/qat/qat_common/
Dadf_ctl_drv.c66 static long adf_ctl_ioctl(struct file *fp, unsigned int cmd, unsigned long arg);
224 static int adf_ctl_ioctl_dev_config(struct file *fp, unsigned int cmd, in adf_ctl_ioctl_dev_config() argument
300 static int adf_ctl_ioctl_dev_stop(struct file *fp, unsigned int cmd, in adf_ctl_ioctl_dev_stop() argument
334 static int adf_ctl_ioctl_dev_start(struct file *fp, unsigned int cmd, in adf_ctl_ioctl_dev_start() argument
375 static int adf_ctl_ioctl_get_num_devices(struct file *fp, unsigned int cmd, in adf_ctl_ioctl_get_num_devices() argument
387 static int adf_ctl_ioctl_get_status(struct file *fp, unsigned int cmd, in adf_ctl_ioctl_get_status() argument
426 static long adf_ctl_ioctl(struct file *fp, unsigned int cmd, unsigned long arg) in adf_ctl_ioctl() argument
435 ret = adf_ctl_ioctl_dev_config(fp, cmd, arg); in adf_ctl_ioctl()
439 ret = adf_ctl_ioctl_dev_stop(fp, cmd, arg); in adf_ctl_ioctl()
443 ret = adf_ctl_ioctl_dev_start(fp, cmd, arg); in adf_ctl_ioctl()
[all …]
/linux-4.4.14/sound/
Dsound_firmware.c10 static int do_mod_firmware_load(const char *fn, char **fp) in do_mod_firmware_load() argument
44 *fp = dp; in do_mod_firmware_load()
65 int mod_firmware_load(const char *fn, char **fp) in mod_firmware_load() argument
71 r = do_mod_firmware_load(fn, fp); in mod_firmware_load()
/linux-4.4.14/scripts/kconfig/
Dconfdata.c486 kconfig_print_symbol(FILE *fp, struct symbol *sym, const char *value, void *arg) in kconfig_print_symbol() argument
496 fprintf(fp, "# %s%s is not set\n", in kconfig_print_symbol()
505 fprintf(fp, "%s%s=%s\n", CONFIG_, sym->name, value); in kconfig_print_symbol()
509 kconfig_print_comment(FILE *fp, const char *value, void *arg) in kconfig_print_comment() argument
516 fprintf(fp, "#"); in kconfig_print_comment()
518 fprintf(fp, " "); in kconfig_print_comment()
519 xfwrite(p, l, 1, fp); in kconfig_print_comment()
522 fprintf(fp, "\n"); in kconfig_print_comment()
540 header_print_symbol(FILE *fp, struct symbol *sym, const char *value, void *arg) in header_print_symbol() argument
555 fprintf(fp, "#define %s%s%s 1\n", in header_print_symbol()
[all …]
/linux-4.4.14/drivers/scsi/fnic/
Dfnic_fcs.c157 struct fc_frame *fp; in fnic_handle_frame() local
167 fp = (struct fc_frame *)skb; in fnic_handle_frame()
181 fc_exch_recv(lp, fp); in fnic_handle_frame()
629 struct fc_frame *fp; in fnic_import_rq_eth_pkt() local
667 fp = (struct fc_frame *)skb; in fnic_import_rq_eth_pkt()
668 fc_frame_init(fp); in fnic_import_rq_eth_pkt()
669 fr_sof(fp) = fcoe_hdr->fcoe_sof; in fnic_import_rq_eth_pkt()
674 fr_eof(fp) = ft->fcoe_eof; in fnic_import_rq_eth_pkt()
734 void fnic_set_port_id(struct fc_lport *lport, u32 port_id, struct fc_frame *fp) in fnic_set_port_id() argument
741 port_id, fp); in fnic_set_port_id()
[all …]
/linux-4.4.14/drivers/scsi/fcoe/
Dfcoe.c864 static bool fcoe_oem_match(struct fc_frame *fp) in fcoe_oem_match() argument
866 struct fc_frame_header *fh = fc_frame_header_get(fp); in fcoe_oem_match()
869 if (fc_fcp_is_read(fr_fsp(fp)) && in fcoe_oem_match()
870 (fr_fsp(fp)->data_len > fcoe_ddp_min)) in fcoe_oem_match()
872 else if ((fr_fsp(fp) == NULL) && in fcoe_oem_match()
875 fcp = fc_frame_payload_get(fp, sizeof(*fcp)); in fcoe_oem_match()
1585 static int fcoe_xmit(struct fc_lport *lport, struct fc_frame *fp) in fcoe_xmit() argument
1603 WARN_ON((fr_len(fp) % sizeof(u32)) != 0); in fcoe_xmit()
1605 fh = fc_frame_header_get(fp); in fcoe_xmit()
1606 skb = fp_skb(fp); in fcoe_xmit()
[all …]
/linux-4.4.14/net/ieee802154/6lowpan/
Dreassembly.c229 struct sk_buff *fp, *head = fq->q.fragments; in lowpan_frag_reasm() local
237 fp = skb_clone(head, GFP_ATOMIC); in lowpan_frag_reasm()
239 if (!fp) in lowpan_frag_reasm()
242 fp->next = head->next; in lowpan_frag_reasm()
243 if (!fp->next) in lowpan_frag_reasm()
244 fq->q.fragments_tail = fp; in lowpan_frag_reasm()
245 prev->next = fp; in lowpan_frag_reasm()
285 for (fp = head->next; fp;) { in lowpan_frag_reasm()
288 struct sk_buff *next = fp->next; in lowpan_frag_reasm()
290 sum_truesize += fp->truesize; in lowpan_frag_reasm()
[all …]
/linux-4.4.14/scripts/dtc/
Dsrcpos.c71 static char *try_open(const char *dirname, const char *fname, FILE **fp) in try_open() argument
80 *fp = fopen(fullname, "rb"); in try_open()
81 if (!*fp) { in try_open()
98 static char *fopen_any_on_path(const char *fname, FILE **fp) in fopen_any_on_path() argument
105 assert(fp); in fopen_any_on_path()
108 fullname = try_open(cur_dir, fname, fp); in fopen_any_on_path()
111 for (node = search_path_head; !*fp && node; node = node->next) in fopen_any_on_path()
112 fullname = try_open(node->dirname, fname, fp); in fopen_any_on_path()
Dutil.c396 FILE *fp = errmsg ? stderr : stdout; in util_usage() local
402 fprintf(fp, in util_usage()
424 fprintf(fp, " "); in util_usage()
426 fprintf(fp, " -%c, ", long_opts[i].val); in util_usage()
430 fprintf(fp, "--%-*s", optlen, long_opts[i].name); in util_usage()
432 fprintf(fp, "--%s %s%*s", long_opts[i].name, a_arg, in util_usage()
436 fprintf(fp, "%s\n", opts_help[i]); in util_usage()
440 fprintf(fp, "\nError: %s\n", errmsg); in util_usage()
/linux-4.4.14/net/bridge/netfilter/
Debt_vlan.c52 const struct vlan_hdr *fp; in ebt_vlan_mt() local
55 fp = skb_header_pointer(skb, 0, sizeof(_frame), &_frame); in ebt_vlan_mt()
56 if (fp == NULL) in ebt_vlan_mt()
59 TCI = ntohs(fp->h_vlan_TCI); in ebt_vlan_mt()
60 encap = fp->h_vlan_encapsulated_proto; in ebt_vlan_mt()
/linux-4.4.14/arch/ia64/kernel/
Dmachine_kexec.c90 u64 fp, gp; in ia64_machine_kexec() local
100 fp = ia64_tpa(init_handler->fp); in ia64_machine_kexec()
102 ia64_sal_set_vectors(SAL_VECTOR_OS_INIT, fp, gp, 0, fp, gp, 0); in ia64_machine_kexec()
/linux-4.4.14/arch/powerpc/net/
Dbpf_jit_comp.c29 static void bpf_jit_build_prologue(struct bpf_prog *fp, u32 *image, in bpf_jit_build_prologue() argument
33 const struct sock_filter *filter = fp->insns; in bpf_jit_build_prologue()
115 static int bpf_jit_build_body(struct bpf_prog *fp, u32 *image, in bpf_jit_build_body() argument
119 const struct sock_filter *filter = fp->insns; in bpf_jit_build_body()
120 int flen = fp->len; in bpf_jit_build_body()
554 void bpf_jit_compile(struct bpf_prog *fp) in bpf_jit_compile() argument
563 int flen = fp->len; in bpf_jit_compile()
626 if (bpf_jit_build_body(fp, 0, &cgctx, addrs)) in bpf_jit_compile()
635 bpf_jit_build_prologue(fp, 0, &cgctx); in bpf_jit_compile()
650 bpf_jit_build_prologue(fp, code_base, &cgctx); in bpf_jit_compile()
[all …]
/linux-4.4.14/drivers/net/ethernet/amd/
Ddeclance.c329 const unsigned short *fp; in cp_to_buf() local
339 fp = from; in cp_to_buf()
342 *tp++ = *fp++; in cp_to_buf()
348 rfp = (const unsigned char *)fp; in cp_to_buf()
358 fp = from; in cp_to_buf()
360 *tp++ = *fp++; in cp_to_buf()
361 *tp++ = *fp++; in cp_to_buf()
362 *tp++ = *fp++; in cp_to_buf()
363 *tp++ = *fp++; in cp_to_buf()
364 *tp++ = *fp++; in cp_to_buf()
[all …]
/linux-4.4.14/net/ipv4/
Dip_fragment.c304 struct sk_buff *fp; in ip_frag_reinit() local
312 fp = qp->q.fragments; in ip_frag_reinit()
314 struct sk_buff *xp = fp->next; in ip_frag_reinit()
316 sum_truesize += fp->truesize; in ip_frag_reinit()
317 kfree_skb(fp); in ip_frag_reinit()
318 fp = xp; in ip_frag_reinit()
319 } while (fp); in ip_frag_reinit()
529 struct sk_buff *fp, *head = qp->q.fragments; in ip_frag_reasm() local
545 fp = skb_clone(head, GFP_ATOMIC); in ip_frag_reasm()
546 if (!fp) in ip_frag_reasm()
[all …]
/linux-4.4.14/drivers/staging/speakup/
Ddevsynth.c16 static ssize_t speakup_file_write(struct file *fp, const char __user *buffer, in speakup_file_write() argument
40 static ssize_t speakup_file_read(struct file *fp, char __user *buf, in speakup_file_read() argument
46 static int speakup_file_open(struct inode *ip, struct file *fp) in speakup_file_open() argument
55 static int speakup_file_release(struct inode *ip, struct file *fp) in speakup_file_release() argument
Dspeakup_soft.c178 static int softsynth_open(struct inode *inode, struct file *fp) in softsynth_open() argument
193 static int softsynth_close(struct inode *inode, struct file *fp) in softsynth_close() argument
206 static ssize_t softsynth_read(struct file *fp, char __user *buf, size_t count, in softsynth_read() argument
223 if (fp->f_flags & O_NONBLOCK) { in softsynth_read()
268 static ssize_t softsynth_write(struct file *fp, const char __user *buf, in softsynth_write() argument
283 static unsigned int softsynth_poll(struct file *fp, in softsynth_poll() argument
289 poll_wait(fp, &speakup_event, wait); in softsynth_poll()
/linux-4.4.14/tools/perf/
Dbuiltin-buildid-list.c20 static int sysfs__fprintf_build_id(FILE *fp) in sysfs__fprintf_build_id() argument
29 return fprintf(fp, "%s\n", sbuild_id); in sysfs__fprintf_build_id()
32 static int filename__fprintf_build_id(const char *name, FILE *fp) in filename__fprintf_build_id() argument
41 return fprintf(fp, "%s\n", sbuild_id); in filename__fprintf_build_id()
/linux-4.4.14/arch/x86/oprofile/
Dbacktrace.c46 struct stack_frame_ia32 *fp; in dump_user_backtrace_32() local
53 fp = (struct stack_frame_ia32 *) compat_ptr(bufhead[0].next_frame); in dump_user_backtrace_32()
59 if (head >= fp) in dump_user_backtrace_32()
62 return fp; in dump_user_backtrace_32()
/linux-4.4.14/tools/power/x86/x86_energy_perf_policy/
Dx86_energy_perf_policy.c270 FILE *fp; in for_every_cpu() local
273 fp = fopen(proc_stat, "r"); in for_every_cpu()
274 if (fp == NULL) { in for_every_cpu()
279 retval = fscanf(fp, "cpu %*d %*d %*d %*d %*d %*d %*d %*d %*d %*d\n"); in for_every_cpu()
288 retval = fscanf(fp, in for_every_cpu()
296 fclose(fp); in for_every_cpu()
/linux-4.4.14/drivers/net/fddi/skfp/h/
Dhwmtm.h234 #define HWM_GET_TX_USED(smc,queue) (int) (smc)->hw.fp.tx_q[queue].tx_used
253 (smc)->hw.fp.tx_q[queue].tx_curr_put
303 #define HWM_GET_RX_USED(smc) ((int)(smc)->hw.fp.rx_q[QUEUE_R1].rx_used)
317 #define HWM_GET_RX_FREE(smc) ((int)(smc)->hw.fp.rx_q[QUEUE_R1].rx_free-1)
333 (smc)->hw.fp.rx_q[QUEUE_R1].rx_curr_put
351 if ((low_water) >= (smc)->hw.fp.rx_q[QUEUE_R1].rx_used) {\
/linux-4.4.14/drivers/staging/goldfish/
Dgoldfish_audio.c114 static ssize_t goldfish_audio_read(struct file *fp, char __user *buf, in goldfish_audio_read() argument
117 struct goldfish_audio *data = fp->private_data; in goldfish_audio_read()
144 static ssize_t goldfish_audio_write(struct file *fp, const char __user *buf, in goldfish_audio_write() argument
147 struct goldfish_audio *data = fp->private_data; in goldfish_audio_write()
193 static int goldfish_audio_open(struct inode *ip, struct file *fp) in goldfish_audio_open() argument
199 fp->private_data = audio_data; in goldfish_audio_open()
210 static int goldfish_audio_release(struct inode *ip, struct file *fp) in goldfish_audio_release() argument
218 static long goldfish_audio_ioctl(struct file *fp, unsigned int cmd, in goldfish_audio_ioctl() argument
/linux-4.4.14/arch/arm/crypto/
Dbsaes-armv7.pl1084 my ($inp,$out,$len,$key, $ivp,$fp,$rounds)=map("r$_",(0..3,8..10));
1114 mov $fp, sp @ save sp
1171 vstmia $fp, {@XMM[15]} @ put aside IV
1175 vldmia $fp, {@XMM[14]} @ reload IV
1212 vstmia $fp, {@XMM[15]} @ put aside IV
1229 vldmia $fp, {@XMM[14]} @ reload IV
1252 vldmia $fp,{@XMM[14]} @ reload IV
1273 vldmia $fp, {@XMM[14]} @ reload IV
1291 vldmia $fp, {@XMM[14]} @ reload IV
1307 vldmia $fp, {@XMM[14]} @ reload IV
[all …]
/linux-4.4.14/arch/m68k/coldfire/
Dvectors.c24 asmlinkage void dbginterrupt_c(struct frame *fp) in dbginterrupt_c() argument
26 extern void dump(struct pt_regs *fp); in dbginterrupt_c()
28 dump((struct pt_regs *) fp); in dbginterrupt_c()
/linux-4.4.14/tools/perf/ui/browsers/
Dscripts.c114 FILE *fp; in script_browse() local
151 fp = popen(cmd, "r"); in script_browse()
152 if (!fp) in script_browse()
155 while ((retlen = getline(&line, &len, fp)) != -1) { in script_browse()
177 pclose(fp); in script_browse()
/linux-4.4.14/include/net/
Dscm.h25 struct file *fp[SCM_MAX_FD]; member
30 struct scm_fp_list *fp; /* Passed files */ member
71 if (scm->fp) in scm_destroy()
114 if (test_bit(SOCK_PASSCRED, &sock->flags) || scm->fp) in scm_recv()
134 if (!scm->fp) in scm_recv()
Daf_unix.h9 void unix_inflight(struct user_struct *user, struct file *fp);
10 void unix_notinflight(struct user_struct *user, struct file *fp);
34 struct scm_fp_list *fp; /* Passed files */ member
/linux-4.4.14/drivers/misc/mei/
Dclient.h87 struct file *fp);
117 const struct file *fp);
118 void mei_cl_read_cb_flush(const struct mei_cl *cl, const struct file *fp);
120 enum mei_cb_file_ops type, struct file *fp);
121 int mei_cl_flush_queues(struct mei_cl *cl, const struct file *fp);
223 int mei_cl_read_start(struct mei_cl *cl, size_t length, struct file *fp);
Ddebugfs.c27 static ssize_t mei_dbgfs_read_meclients(struct file *fp, char __user *ubuf, in mei_dbgfs_read_meclients() argument
30 struct mei_device *dev = fp->private_data; in mei_dbgfs_read_meclients()
88 static ssize_t mei_dbgfs_read_active(struct file *fp, char __user *ubuf, in mei_dbgfs_read_active() argument
91 struct mei_device *dev = fp->private_data; in mei_dbgfs_read_active()
136 static ssize_t mei_dbgfs_read_devstate(struct file *fp, char __user *ubuf, in mei_dbgfs_read_devstate() argument
139 struct mei_device *dev = fp->private_data; in mei_dbgfs_read_devstate()
/linux-4.4.14/drivers/gpu/drm/gma500/
Dpsb_intel_display.c116 u32 dpll = 0, fp = 0, dspcntr, pipeconf; in psb_intel_crtc_mode_set() local
161 fp = clock.n << 16 | clock.m1 << 8 | clock.m2; in psb_intel_crtc_mode_set()
224 REG_WRITE(map->fp0, fp); in psb_intel_crtc_mode_set()
259 REG_WRITE(map->fp0, fp); in psb_intel_crtc_mode_set()
316 u32 fp; in psb_intel_crtc_clock_get() local
324 fp = REG_READ(map->fp0); in psb_intel_crtc_clock_get()
326 fp = REG_READ(map->fp1); in psb_intel_crtc_clock_get()
333 fp = p->fp0; in psb_intel_crtc_clock_get()
335 fp = p->fp1; in psb_intel_crtc_clock_get()
341 clock.m1 = (fp & FP_M1_DIV_MASK) >> FP_M1_DIV_SHIFT; in psb_intel_crtc_clock_get()
[all …]
/linux-4.4.14/drivers/isdn/hisax/
Delsa_ser.c243 int count, len, fp; in write_modem() local
252 fp = cs->hw.elsa.transcnt + cs->hw.elsa.transp; in write_modem()
253 fp &= (MAX_MODEM_BUF - 1); in write_modem()
255 if (count > MAX_MODEM_BUF - fp) { in write_modem()
256 count = MAX_MODEM_BUF - fp; in write_modem()
258 cs->hw.elsa.transbuf + fp, count); in write_modem()
263 fp = 0; in write_modem()
266 cs->hw.elsa.transbuf + fp, count); in write_modem()
448 int count, fp; in modem_write_cmd() local
456 fp = cs->hw.elsa.transcnt + cs->hw.elsa.transp; in modem_write_cmd()
[all …]
/linux-4.4.14/drivers/tty/
Dn_tty.c1510 char *fp, int count) in n_tty_receive_buf_real_raw() argument
1530 char *fp, int count) in n_tty_receive_buf_raw() argument
1536 if (fp) in n_tty_receive_buf_raw()
1537 flag = *fp++; in n_tty_receive_buf_raw()
1547 char *fp, int count) in n_tty_receive_buf_closing() argument
1552 if (fp) in n_tty_receive_buf_closing()
1553 flag = *fp++; in n_tty_receive_buf_closing()
1563 char *fp, int count) in n_tty_receive_buf_standard() argument
1569 if (fp) in n_tty_receive_buf_standard()
1570 flag = *fp++; in n_tty_receive_buf_standard()
[all …]
/linux-4.4.14/fs/ocfs2/dlmfs/
Ddlmfs.c136 struct dlmfs_filp_private *fp = NULL; in dlmfs_file_open() local
153 fp = kmalloc(sizeof(*fp), GFP_NOFS); in dlmfs_file_open()
154 if (!fp) { in dlmfs_file_open()
158 fp->fp_lock_level = level; in dlmfs_file_open()
170 kfree(fp); in dlmfs_file_open()
174 file->private_data = fp; in dlmfs_file_open()
184 struct dlmfs_filp_private *fp = file->private_data; in dlmfs_file_release() local
192 if (fp) { in dlmfs_file_release()
193 level = fp->fp_lock_level; in dlmfs_file_release()
197 kfree(fp); in dlmfs_file_release()
/linux-4.4.14/tools/lib/api/fd/
Darray.c119 int fdarray__fprintf(struct fdarray *fda, FILE *fp) in fdarray__fprintf() argument
121 int fd, printed = fprintf(fp, "%d [ ", fda->nr); in fdarray__fprintf()
124 printed += fprintf(fp, "%s%d", fd ? ", " : "", fda->entries[fd].fd); in fdarray__fprintf()
126 return printed + fprintf(fp, " ]"); in fdarray__fprintf()
/linux-4.4.14/arch/arm/oprofile/
Dcommon.c81 struct frame_tail *fp; member
100 if (tail + 1 >= buftail[0].fp) in user_backtrace()
103 return buftail[0].fp-1; in user_backtrace()
/linux-4.4.14/arch/unicore32/lib/
Dbacktrace.S16 @ fp is 0 or stack frame
24 mov r0, fp
61 1002: ldw sv_fp, [frame+], #-12 @ get saved fp
86 1004: ldw r1, [sv_pc+], #0 @ if stmfd {, fp, ip, lr, pc}
93 cxor.a sv_fp, #0 @ zero saved fp means
160 .Ldsi: .word 0x92eec000 >> 14 @ stm.w sp, (... fp, ip, lr, pc)
/linux-4.4.14/drivers/media/tuners/
Dfc0011.c187 u8 fa, fp, vco_sel, vco_cal; in fc0011_set_params() local
239 fp = xdivr / 8; in fc0011_set_params()
240 fa = xdivr - fp * 8; in fc0011_set_params()
242 fp -= 1; in fc0011_set_params()
245 if (fp > 0x1F) { in fc0011_set_params()
246 fp = 0x1F; in fc0011_set_params()
249 if (fa >= fp) { in fc0011_set_params()
252 (unsigned int)(u8)fa, (unsigned int)(u8)fp); in fc0011_set_params()
255 regs[FC11_REG_FP] = fp; in fc0011_set_params()
/linux-4.4.14/fs/
Dfcntl.c577 struct fasync_struct *fa, **fp; in fasync_remove_entry() local
582 for (fp = fapp; (fa = *fp) != NULL; fp = &fa->fa_next) { in fasync_remove_entry()
590 *fp = fa->fa_next; in fasync_remove_entry()
625 struct fasync_struct *fa, **fp; in fasync_insert_entry() local
629 for (fp = fapp; (fa = *fp) != NULL; fp = &fa->fa_next) { in fasync_insert_entry()
723 void kill_fasync(struct fasync_struct **fp, int sig, int band) in kill_fasync() argument
728 if (*fp) { in kill_fasync()
730 kill_fasync_rcu(rcu_dereference(*fp), sig, band); in kill_fasync()
/linux-4.4.14/arch/s390/net/
Dbpf_jit_comp.c488 static noinline int bpf_jit_insn(struct bpf_jit *jit, struct bpf_prog *fp, int i) in bpf_jit_insn() argument
490 struct bpf_insn *insn = &fp->insnsi[i]; in bpf_jit_insn()
1066 last = (i == fp->len - 1) ? 1 : 0; in bpf_jit_insn()
1241 static int bpf_jit_prog(struct bpf_jit *jit, struct bpf_prog *fp) in bpf_jit_prog() argument
1248 bpf_jit_prologue(jit, bpf_prog_was_classic(fp)); in bpf_jit_prog()
1249 for (i = 0; i < fp->len; i += insn_count) { in bpf_jit_prog()
1250 insn_count = bpf_jit_insn(jit, fp, i); in bpf_jit_prog()
1267 void bpf_jit_compile(struct bpf_prog *fp) in bpf_jit_compile() argument
1274 void bpf_int_jit_compile(struct bpf_prog *fp) in bpf_int_jit_compile() argument
1283 jit.addrs = kcalloc(fp->len + 1, sizeof(*jit.addrs), GFP_KERNEL); in bpf_int_jit_compile()
[all …]
/linux-4.4.14/arch/arc/kernel/
Dstacktrace.c51 unsigned long fp, sp, blink, ret; in seed_unwind_frame_info() local
59 : "=r"(fp), "=r"(sp), "=r"(blink), "=r"(ret) in seed_unwind_frame_info()
62 frame_info->regs.r27 = fp; in seed_unwind_frame_info()
101 frame_info->regs.r27 = regs->fp; in seed_unwind_frame_info()
/linux-4.4.14/tools/lib/api/fs/
Dfs.c115 FILE *fp; in fs__read_mounts() local
117 fp = fopen("/proc/mounts", "r"); in fs__read_mounts()
118 if (fp == NULL) in fs__read_mounts()
122 fscanf(fp, "%*s %" STR(PATH_MAX) "s %99s %*s %*d %*d\n", in fs__read_mounts()
129 fclose(fp); in fs__read_mounts()
/linux-4.4.14/arch/x86/kernel/fpu/
Dcore.c202 static inline void fpstate_init_fstate(struct fregs_state *fp) in fpstate_init_fstate() argument
204 fp->cwd = 0xffff037fu; in fpstate_init_fstate()
205 fp->swd = 0xffff0000u; in fpstate_init_fstate()
206 fp->twd = 0xffffffffu; in fpstate_init_fstate()
207 fp->fos = 0xffff0000u; in fpstate_init_fstate()
Dsignal.c59 struct _fpstate_32 __user *fp = buf; in save_fsave_header() local
64 __put_user(xsave->i387.swd, &fp->status) || in save_fsave_header()
65 __put_user(X86_FXSR_MAGIC, &fp->magic)) in save_fsave_header()
68 struct fregs_state __user *fp = buf; in save_fsave_header() local
70 if (__get_user(swd, &fp->swd) || __put_user(swd, &fp->status)) in save_fsave_header()
/linux-4.4.14/arch/metag/include/asm/
Dstacktrace.h5 unsigned long fp; member
12 unsigned long fp; member
/linux-4.4.14/tools/lib/traceevent/
Dtrace-seq.c234 int trace_seq_do_fprintf(struct trace_seq *s, FILE *fp) in trace_seq_do_fprintf() argument
240 return fprintf(fp, "%.*s", s->len, s->buffer); in trace_seq_do_fprintf()
242 fprintf(fp, "%s\n", "Usage of trace_seq after it was destroyed"); in trace_seq_do_fprintf()
245 fprintf(fp, "%s\n", "Can't allocate trace_seq buffer memory"); in trace_seq_do_fprintf()
/linux-4.4.14/drivers/net/team/
Dteam_mode_loadbalance.c61 struct bpf_prog __rcu *fp; member
177 struct bpf_prog *fp; in lb_get_skb_hash() local
181 fp = rcu_dereference_bh(lb_priv->fp); in lb_get_skb_hash()
182 if (unlikely(!fp)) in lb_get_skb_hash()
184 lhash = BPF_PROG_RUN(fp, skb); in lb_get_skb_hash()
274 struct bpf_prog *fp = NULL; in lb_bpf_func_set() local
284 err = bpf_prog_create(&fp, fprog); in lb_bpf_func_set()
294 orig_fp = rcu_dereference_protected(lb_priv->fp, in lb_bpf_func_set()
298 rcu_assign_pointer(lb_priv->fp, fp); in lb_bpf_func_set()
/linux-4.4.14/arch/arm/lib/
Dbacktrace.S17 @ fp is 0 or stack frame
65 1002: ldr sv_fp, [frame, #-12] @ get saved fp
88 1004: ldr r1, [sv_pc, #0] @ if stmfd sp!, {..., fp, ip, lr, pc}
94 teq sv_fp, #0 @ zero saved fp means
149 .Ldsi: .word 0xe92dd800 >> 11 @ stmfd sp!, {... fp, ip, lr, pc}
/linux-4.4.14/arch/mips/kernel/
Dftrace.c281 old_parent_ra, unsigned long parent_ra_addr, unsigned long fp) in ftrace_get_parent_ra_addr() argument
316 sp = fp + (code & OFFSET_MASK); in ftrace_get_parent_ra_addr()
335 unsigned long fp) in prepare_ftrace_return() argument
372 old_parent_ra, (unsigned long)parent_ra_addr, fp); in prepare_ftrace_return()
385 if (ftrace_push_return_trace(old_parent_ra, self_ra, &trace.depth, fp) in prepare_ftrace_return()
/linux-4.4.14/arch/powerpc/platforms/8xx/
Dm8xx_setup.c64 const unsigned int *fp; in get_freq() local
71 fp = of_get_property(cpu, name, NULL); in get_freq()
72 if (fp) { in get_freq()
74 *val = *fp; in get_freq()

1234