Searched refs:fp (Results 26 - 50 of 151) sorted by relevance

1234567

/drivers/net/fddi/skfp/h/
H A Dhwmtm.h243 #define HWM_GET_TX_USED(smc,queue) (int) (smc)->hw.fp.tx_q[queue].tx_used
262 (smc)->hw.fp.tx_q[queue].tx_curr_put
312 #define HWM_GET_RX_USED(smc) ((int)(smc)->hw.fp.rx_q[QUEUE_R1].rx_used)
326 #define HWM_GET_RX_FREE(smc) ((int)(smc)->hw.fp.rx_q[QUEUE_R1].rx_free-1)
342 (smc)->hw.fp.rx_q[QUEUE_R1].rx_curr_put
360 if ((low_water) >= (smc)->hw.fp.rx_q[QUEUE_R1].rx_used) {\
/drivers/crypto/qat/qat_common/
H A Dadf_ctl_drv.c65 static long adf_ctl_ioctl(struct file *fp, unsigned int cmd, unsigned long arg);
218 static int adf_ctl_ioctl_dev_config(struct file *fp, unsigned int cmd, argument
290 static int adf_ctl_ioctl_dev_stop(struct file *fp, unsigned int cmd, argument
324 static int adf_ctl_ioctl_dev_start(struct file *fp, unsigned int cmd, argument
359 static int adf_ctl_ioctl_get_num_devices(struct file *fp, unsigned int cmd, argument
371 static int adf_ctl_ioctl_get_status(struct file *fp, unsigned int cmd, argument
411 static long adf_ctl_ioctl(struct file *fp, unsigned int cmd, unsigned long arg) argument
420 ret = adf_ctl_ioctl_dev_config(fp, cmd, arg);
424 ret = adf_ctl_ioctl_dev_stop(fp, cmd, arg);
428 ret = adf_ctl_ioctl_dev_start(fp, cm
[all...]
/drivers/infiniband/hw/qib/
H A Dqib_file_ops.c92 static int qib_get_base_info(struct file *fp, void __user *ubase, argument
95 struct qib_ctxtdata *rcd = ctxt_fp(fp);
111 master = !subctxt_fp(fp);
200 unsigned slave = subctxt_fp(fp) - 1;
209 cvt_kvaddr(&rcd->user_event_mask[subctxt_fp(fp)]);
237 kinfo->spi_subctxt = subctxt_fp(fp);
256 * @fp: the qib device file
278 static int qib_tid_update(struct qib_ctxtdata *rcd, struct file *fp, argument
290 unsigned subctxt = subctxt_fp(fp);
312 tid = tidcursor_fp(fp);
991 qib_mmapf(struct file *fp, struct vm_area_struct *vma) argument
1097 qib_poll_urgent(struct qib_ctxtdata *rcd, struct file *fp, struct poll_table_struct *pt) argument
1119 qib_poll_next(struct qib_ctxtdata *rcd, struct file *fp, struct poll_table_struct *pt) argument
1140 qib_poll(struct file *fp, struct poll_table_struct *pt) argument
1158 assign_ctxt_affinity(struct file *fp, struct qib_devdata *dd) argument
1302 setup_ctxt(struct qib_pportdata *ppd, int ctxt, struct file *fp, const struct qib_user_info *uinfo) argument
1372 choose_port_ctxt(struct file *fp, struct qib_devdata *dd, u32 port, const struct qib_user_info *uinfo) argument
1408 find_free_ctxt(int unit, struct file *fp, const struct qib_user_info *uinfo) argument
1422 get_a_ctxt(struct file *fp, const struct qib_user_info *uinfo, unsigned alg) argument
1489 find_shared_ctxt(struct file *fp, const struct qib_user_info *uinfo) argument
1533 qib_open(struct inode *in, struct file *fp) argument
1575 do_qib_user_sdma_queue_create(struct file *fp) argument
1597 qib_assign_ctxt(struct file *fp, const struct qib_user_info *uinfo) argument
1663 qib_do_user_init(struct file *fp, const struct qib_user_info *uinfo) argument
1804 qib_close(struct inode *in, struct file *fp) argument
1895 qib_ctxt_info(struct file *fp, struct qib_ctxt_info __user *uinfo) argument
2050 qib_write(struct file *fp, const char __user *data, size_t count, loff_t *off) argument
2251 struct qib_filedata *fp = iocb->ki_filp->private_data; local
[all...]
H A 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,
505 static int qib_diag_open(struct inode *in, struct file *fp) argument
529 fp->private_data = dc;
539 * @fp: the diag data device file pointer
544 static ssize_t qib_diagpkt_write(struct file *fp, argument
675 static int qib_diag_release(struct inode *in, struct file *fp) argument
760 qib_diag_read(struct file *fp, char __user *data, size_t count, loff_t *off) argument
836 qib_diag_write(struct file *fp, const char __user *data, size_t count, loff_t *off) argument
[all...]
/drivers/staging/lustre/include/linux/libcfs/
H A Dlibcfs_kernelcomm.h92 int libcfs_kkuc_msg_put(struct file *fp, void *payload);
94 int libcfs_kkuc_group_add(struct file *fp, int uid, int group,
/drivers/infiniband/hw/ipath/
H A 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) argument
302 fp->private_data = dd;
319 * @fp: the diag data device file pointer
324 static ssize_t ipath_diagpkt_write(struct file *fp, argument
479 static int ipath_diag_release(struct inode *in, struct file *fp) argument
488 ipath_diag_read(struct file *fp, char __user *data, size_t count, loff_t *off) argument
520 ipath_diag_write(struct file *fp, const char __user *data, size_t count, loff_t *off) argument
[all...]
H A Dipath_file_ops.c90 static int ipath_get_base_info(struct file *fp, argument
93 struct ipath_portdata *pd = port_fp(fp);
108 master = !subport_fp(fp);
193 unsigned slave = subport_fp(fp) - 1;
208 PAGE_SIZE * subport_fp(fp));
211 pd->port_rcvhdrq_size * subport_fp(fp));
215 subport_fp(fp));
248 kinfo->spi_subport = subport_fp(fp);
268 * @fp: the ipath device file
291 static int ipath_tid_update(struct ipath_portdata *pd, struct file *fp, argument
1246 ipath_mmap(struct file *fp, struct vm_area_struct *vma) argument
1368 ipath_poll_urgent(struct ipath_portdata *pd, struct file *fp, struct poll_table_struct *pt) argument
1397 ipath_poll_next(struct ipath_portdata *pd, struct file *fp, struct poll_table_struct *pt) argument
1443 ipath_poll(struct file *fp, struct poll_table_struct *pt) argument
1573 try_alloc_port(struct ipath_devdata *dd, int port, struct file *fp, const struct ipath_user_info *uinfo) argument
1638 find_free_port(int unit, struct file *fp, const struct ipath_user_info *uinfo) argument
1665 find_best_unit(struct file *fp, const struct ipath_user_info *uinfo) argument
1772 find_shared_port(struct file *fp, const struct ipath_user_info *uinfo) argument
1822 ipath_open(struct inode *in, struct file *fp) argument
1830 ipath_assign_port(struct file *fp, const struct ipath_user_info *uinfo) argument
1899 ipath_do_user_init(struct file *fp, const struct ipath_user_info *uinfo) argument
2043 ipath_close(struct inode *in, struct file *fp) argument
2232 ipath_write(struct file *fp, const char __user *data, size_t count, loff_t *off) argument
2421 struct ipath_filedata *fp = filp->private_data; local
[all...]
/drivers/scsi/fnic/
H A Dfnic_fcs.c152 struct fc_frame *fp; local
162 fp = (struct fc_frame *)skb;
176 fc_exch_recv(lp, fp);
624 struct fc_frame *fp; local
662 fp = (struct fc_frame *)skb;
663 fc_frame_init(fp);
664 fr_sof(fp) = fcoe_hdr->fcoe_sof;
669 fr_eof(fp) = ft->fcoe_eof;
719 * @fp: received frame containing the FLOGI accept or NULL.
727 * If the FC_ID is due to point-to-point, fp ma
729 fnic_set_port_id(struct fc_lport *lport, u32 port_id, struct fc_frame *fp) argument
792 struct fc_frame *fp; local
956 struct fc_frame *fp = buf->os_buf; local
1018 fnic_send_frame(struct fnic *fnic, struct fc_frame *fp) argument
1099 fnic_send(struct fc_lport *lp, struct fc_frame *fp) argument
1137 struct fc_frame *fp; local
1188 struct fc_frame *fp = (struct fc_frame *)skb; local
1231 struct fc_frame *fp = buf->os_buf; local
[all...]
/drivers/atm/
H A Dfirestream.c796 pe->skb, pe->fp);
812 pe->fp->n--;
833 pe->fp->n--;
1437 static int init_fp(struct fs_dev *dev, struct freepool *fp, int queue, argument
1450 fp->offset = queue;
1451 fp->bufsize = bufsize;
1452 fp->nr_buffers = nr_buffers;
1459 static inline int nr_buffers_in_freepool (struct fs_dev *dev, struct freepool *fp) argument
1463 return read_fs (dev, FP_CNT (fp->offset));
1465 return fp
1474 top_off_fp(struct fs_dev *dev, struct freepool *fp, gfp_t gfp_flags) argument
1547 free_freepool(struct fs_dev *dev, struct freepool *fp) argument
1942 struct FS_BPENTRY *fp, *nxt; local
[all...]
/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x.h319 /* fp index inside class of service range */
320 #define FP_COS_TO_TXQ(fp, cos, bp) \
321 ((fp)->index + cos * BNX2X_NUM_NON_CNIC_QUEUES(bp))
466 /* pointer to fp status block e1x */
468 /* pointer to fp status block e2 */
584 u8 index; /* number in fp array */
616 #define bnx2x_fp(bp, nr, var) ((bp)->fp[(nr)].var)
617 #define bnx2x_sp_obj(bp, fp) ((bp)->sp_objs[(fp)->index])
618 #define bnx2x_fp_stats(bp, fp) (
622 bnx2x_fp_init_lock(struct bnx2x_fastpath *fp) argument
629 bnx2x_fp_lock_napi(struct bnx2x_fastpath *fp) argument
647 bnx2x_fp_unlock_napi(struct bnx2x_fastpath *fp) argument
665 bnx2x_fp_lock_poll(struct bnx2x_fastpath *fp) argument
682 bnx2x_fp_unlock_poll(struct bnx2x_fastpath *fp) argument
699 bnx2x_fp_ll_polling(struct bnx2x_fastpath *fp) argument
706 bnx2x_fp_ll_disable(struct bnx2x_fastpath *fp) argument
719 bnx2x_fp_init_lock(struct bnx2x_fastpath *fp) argument
723 bnx2x_fp_lock_napi(struct bnx2x_fastpath *fp) argument
728 bnx2x_fp_unlock_napi(struct bnx2x_fastpath *fp) argument
733 bnx2x_fp_lock_poll(struct bnx2x_fastpath *fp) argument
738 bnx2x_fp_unlock_poll(struct bnx2x_fastpath *fp) argument
743 bnx2x_fp_ll_polling(struct bnx2x_fastpath *fp) argument
747 bnx2x_fp_ll_disable(struct bnx2x_fastpath *fp) argument
1461 struct bnx2x_fastpath *fp; member in struct:bnx2x
[all...]
/drivers/staging/goldfish/
H A Dgoldfish_audio.c114 static ssize_t goldfish_audio_read(struct file *fp, char __user *buf, argument
117 struct goldfish_audio *data = fp->private_data;
144 static ssize_t goldfish_audio_write(struct file *fp, const char __user *buf, argument
147 struct goldfish_audio *data = fp->private_data;
193 static int goldfish_audio_open(struct inode *ip, struct file *fp) argument
199 fp->private_data = audio_data;
210 static int goldfish_audio_release(struct inode *ip, struct file *fp) argument
218 static long goldfish_audio_ioctl(struct file *fp, unsigned int cmd, argument
/drivers/hid/
H A Dhid-roccat-lua.c29 static ssize_t lua_sysfs_read(struct file *fp, struct kobject *kobj, argument
51 static ssize_t lua_sysfs_write(struct file *fp, struct kobject *kobj, 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, \
H A Dhid-roccat-pyra.c87 static ssize_t pyra_sysfs_read(struct file *fp, struct kobject *kobj, argument
113 static ssize_t pyra_sysfs_write(struct file *fp, struct kobject *kobj, argument
137 static ssize_t pyra_sysfs_write_ ## thingy(struct file *fp, \
141 return pyra_sysfs_write(fp, kobj, buf, off, count, \
146 static ssize_t pyra_sysfs_read_ ## thingy(struct file *fp, \
150 return pyra_sysfs_read(fp, kobj, buf, off, count, \
188 static ssize_t pyra_sysfs_read_profilex_settings(struct file *fp, argument
202 return pyra_sysfs_read(fp, kobj, buf, off, count,
207 static ssize_t pyra_sysfs_read_profilex_buttons(struct file *fp, argument
221 return pyra_sysfs_read(fp, kob
245 pyra_sysfs_write_settings(struct file *fp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument
[all...]
/drivers/misc/mei/
H A Ddebugfs.c26 static ssize_t mei_dbgfs_read_meclients(struct file *fp, char __user *ubuf, argument
29 struct mei_device *dev = fp->private_data;
85 static ssize_t mei_dbgfs_read_active(struct file *fp, char __user *ubuf, argument
88 struct mei_device *dev = fp->private_data;
133 static ssize_t mei_dbgfs_read_devstate(struct file *fp, char __user *ubuf, argument
136 struct mei_device *dev = fp->private_data;
/drivers/staging/iio/Documentation/
H A Dgeneric_buffer.c148 int fp; local
282 fp = open(buffer_access, O_RDONLY | O_NONBLOCK);
283 if (fp == -1) { /* If it isn't there make the node */
293 .fd = fp,
305 read_size = read(fp,
331 close(fp);
/drivers/net/ethernet/amd/
H A Ddeclance.c329 const unsigned short *fp; local
339 fp = from;
342 *tp++ = *fp++;
348 rfp = (const unsigned char *)fp;
358 fp = from;
360 *tp++ = *fp++;
361 *tp++ = *fp++;
362 *tp++ = *fp++;
363 *tp++ = *fp++;
364 *tp++ = *fp
388 const unsigned short *fp; local
[all...]
/drivers/scsi/fcoe/
H A Dfcoe.c848 * @fp: The I/O frame
864 static bool fcoe_oem_match(struct fc_frame *fp) argument
866 struct fc_frame_header *fh = fc_frame_header_get(fp);
869 if (fc_fcp_is_read(fr_fsp(fp)) &&
870 (fr_fsp(fp)->data_len > fcoe_ddp_min))
872 else if ((fr_fsp(fp) == NULL) &&
875 fcp = fc_frame_payload_get(fp, sizeof(*fcp));
1581 * @fp: The frame to be transmitted
1585 static int fcoe_xmit(struct fc_lport *lport, struct fc_frame *fp) argument
1603 WARN_ON((fr_len(fp)
1733 fcoe_filter_frames(struct fc_lport *lport, struct fc_frame *fp) argument
1790 struct fc_frame *fp; local
2734 fcoe_flogi_resp(struct fc_seq *seq, struct fc_frame *fp, void *arg) argument
2763 fcoe_logo_resp(struct fc_seq *seq, struct fc_frame *fp, void *arg) argument
2782 fcoe_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
2915 struct fc_frame *fp; local
2957 fcoe_set_port_id(struct fc_lport *lport, u32 port_id, struct fc_frame *fp) argument
[all...]
/drivers/staging/speakup/
H A Dspeakup_soft.c177 static int softsynth_open(struct inode *inode, struct file *fp) argument
180 /*if ((fp->f_flags & O_ACCMODE) != O_RDONLY) */
192 static int softsynth_close(struct inode *inode, struct file *fp) argument
205 static ssize_t softsynth_read(struct file *fp, char __user *buf, size_t count, argument
222 if (fp->f_flags & O_NONBLOCK) {
267 static ssize_t softsynth_write(struct file *fp, const char __user *buf, argument
282 static unsigned int softsynth_poll(struct file *fp, argument
288 poll_wait(fp, &speakup_event, wait);
/drivers/media/tuners/
H A Dfc0011.c187 u8 fa, fp, vco_sel, vco_cal; local
239 fp = xdivr / 8;
240 fa = xdivr - fp * 8;
242 fp -= 1;
245 if (fp > 0x1F) {
246 fp = 0x1F;
249 if (fa >= fp) {
251 "fa %02X >= fp %02X, but trying to continue\n",
252 (unsigned int)(u8)fa, (unsigned int)(u8)fp);
255 regs[FC11_REG_FP] = fp;
[all...]
/drivers/net/ethernet/mellanox/mlx5/core/
H A Dpagealloc.c192 struct fw_page *fp; local
198 fp = list_entry(dev->priv.free_list.next, struct fw_page, list);
199 n = find_first_bit(&fp->bitmask, 8 * sizeof(fp->bitmask));
204 clear_bit(n, &fp->bitmask);
205 fp->free_count--;
206 if (!fp->free_count)
207 list_del(&fp->list);
209 *addr = fp->addr + n * MLX5_ADAPTER_PAGE_SIZE;
/drivers/net/fddi/skfp/
H A Dhwmtm.c311 smc->hw.fp.mdr2init = FM_LSB | FM_BMMODE | FM_ENNPRQ | FM_ENHSRQ | 3 ;
314 smc->hw.fp.mdr2init |= FM_CHKPAR | FM_PARITY ;
316 smc->hw.fp.mdr3init = FM_MENRQAUNLCK | FM_MENRS ;
320 smc->hw.fp.frselreg_init = FM_ENXMTADSWAP | FM_ENRCVADSWAP ;
366 queue = smc->hw.fp.tx[QUEUE_A0] ;
380 queue = smc->hw.fp.tx[QUEUE_S] ;
402 queue = smc->hw.fp.rx[QUEUE_R1] ;
567 phys = repair_txd_ring(smc,smc->hw.fp.tx[QUEUE_A0]) ;
569 if (smc->hw.fp.tx_q[QUEUE_A0].tx_used) {
572 phys = repair_txd_ring(smc,smc->hw.fp
[all...]
/drivers/staging/android/fiq_debugger/
H A Dfiq_debugger_arm.c161 " pc: %p (%pF), lr %p (%pF), sp %p, fp %p\n",
163 frame->sp, frame->fp);
173 struct frame_tail *fp; member in struct:frame_tail
199 if (tail >= buftail[0].fp)
202 return buftail[0].fp-1;
225 frame.fp = regs->ARM_fp;
230 " pc: %p (%pF), lr %p (%pF), sp %p, fp %p\n",
/drivers/gpu/drm/gma500/
H A Dpsb_intel_display.c115 u32 dpll = 0, fp = 0, dspcntr, pipeconf; local
160 fp = clock.n << 16 | clock.m1 << 8 | clock.m2;
223 REG_WRITE(map->fp0, fp);
258 REG_WRITE(map->fp0, fp);
315 u32 fp; local
323 fp = REG_READ(map->fp0);
325 fp = REG_READ(map->fp1);
332 fp = p->fp0;
334 fp = p->fp1;
340 clock.m1 = (fp
[all...]
/drivers/staging/lustre/lustre/mdc/
H A Dlproc_mdc.c135 struct file *fp = fget(fd); local
137 rc = libcfs_kkuc_msg_put(fp, lh);
138 fput(fp);
/drivers/tty/
H A Dn_tty.c1518 * @fp: flag buffer
1533 char *fp, int count)
1555 char *fp, int count)
1561 if (fp)
1562 flag = *fp++;
1572 char *fp, int count)
1577 if (fp)
1578 flag = *fp++;
1588 char *fp, int count)
1594 if (fp)
1532 n_tty_receive_buf_real_raw(struct tty_struct *tty, const unsigned char *cp, char *fp, int count) argument
1554 n_tty_receive_buf_raw(struct tty_struct *tty, const unsigned char *cp, char *fp, int count) argument
1571 n_tty_receive_buf_closing(struct tty_struct *tty, const unsigned char *cp, char *fp, int count) argument
1587 n_tty_receive_buf_standard(struct tty_struct *tty, const unsigned char *cp, char *fp, int count) argument
1621 n_tty_receive_buf_fast(struct tty_struct *tty, const unsigned char *cp, char *fp, int count) argument
1646 __receive_buf(struct tty_struct *tty, const unsigned char *cp, char *fp, int count) argument
1687 n_tty_receive_buf_common(struct tty_struct *tty, const unsigned char *cp, char *fp, int count, int flow) argument
1718 n_tty_receive_buf(struct tty_struct *tty, const unsigned char *cp, char *fp, int count) argument
1724 n_tty_receive_buf2(struct tty_struct *tty, const unsigned char *cp, char *fp, int count) argument
[all...]

Completed in 717 milliseconds

1234567