Searched refs:fp (Results 151 - 175 of 766) sorted by relevance

1234567891011>>

/linux-master/security/selinux/ss/
H A Dconditional.h71 int cond_read_bool(struct policydb *p, struct symtab *s, void *fp);
72 int cond_read_list(struct policydb *p, void *fp);
74 int cond_write_list(struct policydb *p, void *fp);
H A Dconditional.c206 int cond_read_bool(struct policydb *p, struct symtab *s, void *fp) argument
218 rc = next_entry(buf, fp, sizeof(buf));
237 rc = next_entry(key, fp, len);
323 static int cond_read_av_list(struct policydb *p, void *fp, argument
332 rc = next_entry(buf, fp, sizeof(u32));
348 rc = avtab_read_item(&p->te_cond_avtab, fp, p, cond_insertf,
375 static int cond_read_node(struct policydb *p, struct cond_node *node, void *fp) argument
381 rc = next_entry(buf, fp, sizeof(u32) * 2);
398 rc = next_entry(buf, fp, sizeof(u32) * 2);
409 rc = cond_read_av_list(p, fp,
415 cond_read_list(struct policydb *p, void *fp) argument
453 void *fp = pd->fp; local
480 cond_write_av_list(struct policydb *p, struct cond_av_list *list, struct policy_file *fp) argument
501 cond_write_node(struct policydb *p, struct cond_node *node, struct policy_file *fp) argument
536 cond_write_list(struct policydb *p, void *fp) argument
[all...]
/linux-master/tools/perf/util/
H A Ddebug.c168 unsigned int val, void *extra, FILE *fp)
177 printed += fprintf(fp, ".");
178 printed += color_fprintf(fp, color, "\n. ... raw event: size %d bytes\n",
182 printed += fprintf(fp, ".");
185 printed += color_fprintf(fp, color, " %04x: ", val);
188 printed += color_fprintf(fp, color, " %02x", val);
191 printed += color_fprintf(fp, color, " ");
194 printed += color_fprintf(fp, color, " ");
197 printed += color_fprintf(fp, color, "%c",
201 printed += color_fprintf(fp, colo
167 trace_event_printer(enum binary_printer_ops op, unsigned int val, void *extra, FILE *fp) argument
[all...]
H A Dvalues.c201 static void perf_read_values__display_pretty(FILE *fp, argument
210 fprintf(fp, "INTERNAL ERROR: Failed to allocate counterwidth array\n");
233 fprintf(fp, "# %*s %*s", pidwidth, "PID", tidwidth, "TID");
235 fprintf(fp, " %*s", counterwidth[j], values->countername[j]);
236 fprintf(fp, "\n");
239 fprintf(fp, " %*d %*d", pidwidth, values->pid[i],
242 fprintf(fp, " %*" PRIu64,
244 fprintf(fp, "\n");
249 static void perf_read_values__display_raw(FILE *fp, argument
285 fprintf(fp, "#
299 perf_read_values_display(FILE *fp, struct perf_read_values *values, int raw) argument
[all...]
/linux-master/drivers/video/logo/
H A Dpnmtologo.c78 static unsigned int get_number(FILE *fp) argument
84 c = fgetc(fp);
90 c = fgetc(fp);
107 c = fgetc(fp);
114 static unsigned int get_number255(FILE *fp, unsigned int maxval) argument
116 unsigned int val = get_number(fp);
123 FILE *fp; local
129 fp = fopen(filename, "r");
130 if (!fp)
134 magic = fgetc(fp);
[all...]
/linux-master/arch/s390/tools/
H A Drelocs.c118 static void read_ehdr(FILE *fp) argument
120 if (fread(&ehdr, sizeof(ehdr), 1, fp) != 1)
165 if (fseek(fp, ehdr.e_shoff, SEEK_SET) < 0)
168 if (fread(&shdr, sizeof(shdr), 1, fp) != 1)
182 static void read_shdrs(FILE *fp) argument
191 if (fseek(fp, ehdr.e_shoff, SEEK_SET) < 0)
197 if (fread(&shdr, sizeof(shdr), 1, fp) != 1) {
219 static void read_relocs(FILE *fp) argument
233 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0)
236 if (fread(sec->reltab, 1, sec->shdr.sh_size, fp) !
348 process(FILE *fp) argument
365 FILE *fp; local
[all...]
/linux-master/drivers/scsi/libfc/
H A Dfc_encode.h46 * @fp: fc frame where payload will be placed.
48 static inline void fc_adisc_fill(struct fc_lport *lport, struct fc_frame *fp) argument
52 adisc = fc_frame_payload_get(fp, sizeof(*adisc));
64 static inline struct fc_ct_req *fc_ct_hdr_fill(const struct fc_frame *fp, argument
73 ct = fc_frame_payload_get(fp, ct_plen);
86 * @fp: frame to contain payload.
92 u32 fc_id, struct fc_frame *fp,
101 ct = fc_ct_hdr_fill(fp, op, sizeof(struct fc_ns_gid_ft),
107 ct = fc_ct_hdr_fill(fp, op, sizeof(struct fc_ns_fid),
114 ct = fc_ct_hdr_fill(fp, o
91 fc_ct_ns_fill(struct fc_lport *lport, u32 fc_id, struct fc_frame *fp, unsigned int op, enum fc_rctl *r_ctl, enum fc_fh_type *fh_type) argument
187 fc_ct_ms_fill(struct fc_lport *lport, u32 fc_id, struct fc_frame *fp, unsigned int op, enum fc_rctl *r_ctl, enum fc_fh_type *fh_type) argument
723 fc_ct_fill(struct fc_lport *lport, u32 fc_id, struct fc_frame *fp, unsigned int op, enum fc_rctl *r_ctl, enum fc_fh_type *fh_type, u32 *did) argument
747 fc_plogi_fill(struct fc_lport *lport, struct fc_frame *fp, unsigned int op) argument
780 fc_flogi_fill(struct fc_lport *lport, struct fc_frame *fp) argument
805 fc_fdisc_fill(struct fc_lport *lport, struct fc_frame *fp) argument
828 fc_logo_fill(struct fc_lport *lport, struct fc_frame *fp) argument
842 fc_rtv_fill(struct fc_lport *lport, struct fc_frame *fp) argument
854 fc_rec_fill(struct fc_lport *lport, struct fc_frame *fp) argument
870 fc_prli_fill(struct fc_lport *lport, struct fc_frame *fp) argument
890 fc_scr_fill(struct fc_lport *lport, struct fc_frame *fp) argument
903 fc_els_fill(struct fc_lport *lport, u32 did, struct fc_frame *fp, unsigned int op, enum fc_rctl *r_ctl, enum fc_fh_type *fh_type) argument
[all...]
/linux-master/net/bridge/netfilter/
H A Debt_vlan.c40 const struct vlan_hdr *fp; local
43 fp = skb_header_pointer(skb, 0, sizeof(_frame), &_frame);
44 if (fp == NULL)
47 TCI = ntohs(fp->h_vlan_TCI);
48 encap = fp->h_vlan_encapsulated_proto;
/linux-master/tools/bpf/bpftool/
H A Dtracelog.c70 FILE *fp; local
76 fp = fopen("/proc/mounts", "r");
77 if (!fp)
83 while (fscanf(fp, format, mnt, type) == 2)
88 fclose(fp);
/linux-master/tools/testing/selftests/resctrl/
H A Dmbm_test.c56 FILE *fp; local
60 fp = fopen(output, "r");
61 if (!fp) {
68 while (fgets(temp, sizeof(temp), fp)) {
84 fclose(fp);
H A Dmba_test.c109 FILE *fp; local
111 fp = fopen(output, "r");
112 if (!fp) {
119 while (fgets(temp, sizeof(temp), fp)) {
135 fclose(fp);
/linux-master/arch/loongarch/kernel/
H A Dunaligned.c251 bool fp = false; local
305 fp = true;
311 fp = true;
317 fp = true;
323 fp = true;
395 fp = true;
401 fp = true;
407 fp = true;
413 fp = true;
430 if (!fp)
[all...]
/linux-master/arch/arm64/kernel/
H A Dstacktrace.c61 state->common.fp = regs->regs[29];
78 state->common.fp = (unsigned long)__builtin_frame_address(1);
98 state->common.fp = thread_saved_fp(task);
111 (void *)state->common.fp);
122 (void *)state->common.fp,
135 * records (e.g. a cycle), determined based on the location and fp value of A
136 * and the location (but not the fp value) of B.
142 unsigned long fp = state->common.fp; local
146 if (fp
284 arch_bpf_stack_walk(bool (consume_entry)void *cookie, u64 ip, u64 sp, u64 fp), void *cookie) argument
[all...]
/linux-master/drivers/tty/vt/
H A Dconmakehash.c49 static void addpair(int fp, int un) argument
57 for ( i = 0 ; i < unicount[fp] ; i++ )
58 if ( unitable[fp][i] == un )
63 if ( unicount[fp] > 254 )
69 unitable[fp][unicount[fp]] = un;
70 unicount[fp]++;
/linux-master/arch/mips/boot/tools/
H A Drelocs.c205 static void read_ehdr(FILE *fp) argument
207 if (fread(&ehdr, sizeof(ehdr), 1, fp) != 1)
260 static void read_shdrs(FILE *fp) argument
269 if (fseek(fp, ehdr.e_shoff, SEEK_SET) < 0)
275 sec->shdr_offset = ftell(fp);
276 if (fread(&shdr, sizeof(shdr), 1, fp) != 1)
294 static void read_strtabs(FILE *fp) argument
309 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0)
313 if (fread(sec->strtab, 1, sec->shdr.sh_size, fp) !=
319 static void read_symtabs(FILE *fp) argument
352 read_relocs(FILE *fp) argument
407 remove_relocs(FILE *fp) argument
665 process(FILE *fp, int as_text, int as_bin, int show_reloc_info, int keep_relocs) argument
[all...]
/linux-master/tools/perf/
H A Dbuiltin-config.c43 FILE *fp; local
48 fp = fopen(file_name, "w");
49 if (!fp)
52 fprintf(fp, "%s\n", first_line);
58 fprintf(fp, "[%s]\n", section->name);
64 fprintf(fp, "\t%s = %s\n",
68 fclose(fp);
/linux-master/net/ipv4/
H A Dinet_fragment.c453 struct sk_buff *fp, *head = skb_rb_first(&q->rb_fragments); local
471 fp = skb_clone(skb, GFP_ATOMIC);
472 if (!fp) {
476 FRAG_CB(fp)->next_frag = FRAG_CB(skb)->next_frag;
478 FRAG_CB(parent)->next_frag = fp;
480 rb_replace_node(&skb->rbnode, &fp->rbnode,
483 q->fragments_tail = fp;
562 struct sk_buff *fp; local
568 fp = FRAG_CB(head)->next_frag;
573 while (rbn || fp) {
[all...]
/linux-master/drivers/gpu/drm/nouveau/
H A Dnouveau_bios.c114 uint8_t sub = bios->data[bios->fp.xlated_entry + script] + (bios->fp.link_c_increment && dcbent->or & DCB_OUTPUT_C ? 1 : 0);
120 if (!bios->fp.xlated_entry || !sub || !scriptofs)
123 run_digital_op_script(dev, scriptofs, dcbent, head, bios->fp.dual_link);
127 mdelay(ROM16(bios->data[bios->fp.xlated_entry + 7]));
167 scriptptr = ROM16(bios->data[bios->fp.lvdsmanufacturerpointer + 7 + outputset * 2]);
171 scriptptr = ROM16(bios->data[bios->fp.lvdsmanufacturerpointer + 11 + outputset * 2]);
174 clktable = bios->fp.lvdsmanufacturerpointer + 15;
179 if (bios->fp.dual_link)
181 if (bios->fp
[all...]
/linux-master/fs/autofs/
H A Ddev-ioctl.c154 static int autofs_dev_ioctl_version(struct file *fp, argument
165 static int autofs_dev_ioctl_protover(struct file *fp, argument
174 static int autofs_dev_ioctl_protosubver(struct file *fp, argument
258 static int autofs_dev_ioctl_openmount(struct file *fp, argument
289 static int autofs_dev_ioctl_closemount(struct file *fp, argument
300 static int autofs_dev_ioctl_ready(struct file *fp, argument
314 static int autofs_dev_ioctl_fail(struct file *fp, argument
338 static int autofs_dev_ioctl_setpipefd(struct file *fp, argument
391 static int autofs_dev_ioctl_catatonic(struct file *fp, argument
400 static int autofs_dev_ioctl_timeout(struct file *fp, argument
420 autofs_dev_ioctl_requester(struct file *fp, struct autofs_sb_info *sbi, struct autofs_dev_ioctl *param) argument
459 autofs_dev_ioctl_expire(struct file *fp, struct autofs_sb_info *sbi, struct autofs_dev_ioctl *param) argument
473 autofs_dev_ioctl_askumount(struct file *fp, struct autofs_sb_info *sbi, struct autofs_dev_ioctl *param) argument
504 autofs_dev_ioctl_ismountpoint(struct file *fp, struct autofs_sb_info *sbi, struct autofs_dev_ioctl *param) argument
597 struct file *fp; local
[all...]
/linux-master/arch/m68k/kernel/
H A Dprocess.c194 : "m" (p->thread.fp[0]),
203 : "m" (p->thread.fp[0]),
224 memcpy(fpu->fpregs, current->thread.fp, 96);
270 unsigned long fp, pc; local
275 fp = ((struct switch_stack *)p->thread.ksp)->a6;
277 if (fp < stack_page+sizeof(struct thread_info) ||
278 fp >= 8184+stack_page)
280 pc = ((unsigned long *)fp)[1];
283 fp = *(unsigned long *) fp;
[all...]
/linux-master/drivers/soc/fsl/
H A Ddpaa2-console.c104 static int dpaa2_generic_console_open(struct inode *node, struct file *fp, argument
155 fp->private_data = cd;
169 static int dpaa2_mc_console_open(struct inode *node, struct file *fp) argument
171 return dpaa2_generic_console_open(node, fp,
176 static int dpaa2_aiop_console_open(struct inode *node, struct file *fp) argument
178 return dpaa2_generic_console_open(node, fp,
183 static int dpaa2_console_close(struct inode *node, struct file *fp) argument
185 struct console_data *cd = fp->private_data;
192 static ssize_t dpaa2_console_read(struct file *fp, char __user *buf, argument
195 struct console_data *cd = fp
[all...]
/linux-master/tools/power/cpupower/utils/helpers/
H A Dcpuid.c48 FILE *fp; local
62 fp = fopen("/proc/cpuinfo", "r");
63 if (!fp)
66 while (!feof(fp)) {
67 if (!fgets(value, 64, fp))
109 fclose(fp);
/linux-master/drivers/net/fddi/skfp/h/
H A Dhwmtm.h242 #define HWM_GET_TX_USED(smc,queue) (int) (smc)->hw.fp.tx_q[queue].tx_used
261 (smc)->hw.fp.tx_q[queue].tx_curr_put
311 #define HWM_GET_RX_USED(smc) ((int)(smc)->hw.fp.rx_q[QUEUE_R1].rx_used)
325 #define HWM_GET_RX_FREE(smc) ((int)(smc)->hw.fp.rx_q[QUEUE_R1].rx_free-1)
341 (smc)->hw.fp.rx_q[QUEUE_R1].rx_curr_put
359 if ((low_water) >= (smc)->hw.fp.rx_q[QUEUE_R1].rx_used) {\
/linux-master/drivers/scsi/bnx2fc/
H A Dbnx2fc_els.c19 static void bnx2fc_logo_resp(struct fc_seq *seq, struct fc_frame *fp,
21 static void bnx2fc_flogi_resp(struct fc_seq *seq, struct fc_frame *fp,
182 int bnx2fc_send_adisc(struct bnx2fc_rport *tgt, struct fc_frame *fp) argument
191 fh = fc_frame_header_get(fp);
201 adisc = fc_frame_payload_get(fp, sizeof(*adisc));
210 int bnx2fc_send_logo(struct bnx2fc_rport *tgt, struct fc_frame *fp) argument
219 fh = fc_frame_header_get(fp);
229 logo = fc_frame_payload_get(fp, sizeof(*logo));
238 int bnx2fc_send_rls(struct bnx2fc_rport *tgt, struct fc_frame *fp) argument
247 fh = fc_frame_header_get(fp);
271 struct fc_frame *fp; local
389 struct fc_frame *fp; local
860 bnx2fc_flogi_resp(struct fc_seq *seq, struct fc_frame *fp, void *arg) argument
912 bnx2fc_logo_resp(struct fc_seq *seq, struct fc_frame *fp, void *arg) argument
925 bnx2fc_elsct_send(struct fc_lport *lport, u32 did, struct fc_frame *fp, unsigned int op, void (*resp)(struct fc_seq *, struct fc_frame *, void *), void *arg, u32 timeout) argument
[all...]
/linux-master/tools/perf/ui/browsers/
H A Dheader.c102 FILE *fp = open_memstream(&ptr, &size); local
105 perf_header__fprintf_info(session, fp, true);
106 fclose(fp);

Completed in 333 milliseconds

1234567891011>>