/drivers/s390/char/ |
D | fs3270.c | 53 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 …]
|
D | hmcdrv_dev.c | 55 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 …]
|
/drivers/sbus/char/ |
D | bbc_envctrl.c | 92 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 …]
|
/drivers/net/phy/ |
D | fixed_phy.c | 51 static void fixed_phy_update(struct fixed_phy *fp) in fixed_phy_update() argument 53 if (gpio_is_valid(fp->link_gpio)) in fixed_phy_update() 54 fp->status.link = !!gpio_get_value_cansleep(fp->link_gpio); in fixed_phy_update() 60 struct fixed_phy *fp; in fixed_mdio_read() local 62 list_for_each_entry(fp, &fmb->phys, node) { in fixed_mdio_read() 63 if (fp->addr == phy_addr) { in fixed_mdio_read() 68 s = read_seqcount_begin(&fp->seqcount); in fixed_mdio_read() 70 if (fp->link_update) { in fixed_mdio_read() 71 fp->link_update(fp->phydev->attached_dev, in fixed_mdio_read() 72 &fp->status); in fixed_mdio_read() [all …]
|
/drivers/usb/gadget/function/ |
D | f_phonet.c | 205 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 …]
|
/drivers/net/fddi/skfp/ |
D | fplustm.c | 178 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 …]
|
/drivers/scsi/libfc/ |
D | fc_rport.c | 560 static void fc_rport_error(struct fc_rport_priv *rdata, struct fc_frame *fp) in fc_rport_error() argument 565 IS_ERR(fp) ? -PTR_ERR(fp) : 0, in fc_rport_error() 607 struct fc_frame *fp) in fc_rport_error_retry() argument 612 if (PTR_ERR(fp) == -FC_EX_CLOSED) in fc_rport_error_retry() 617 PTR_ERR(fp), fc_rport_state(rdata)); in fc_rport_error_retry() 620 if (PTR_ERR(fp) == -FC_EX_TIMEOUT) in fc_rport_error_retry() 627 fc_rport_error(rdata, fp); in fc_rport_error_retry() 641 struct fc_frame *fp) in fc_rport_login_complete() argument 648 flogi = fc_frame_payload_get(fp, sizeof(*flogi)); in fc_rport_login_complete() 654 if (fc_frame_payload_op(fp) == ELS_FLOGI) { in fc_rport_login_complete() [all …]
|
D | fc_exch.c | 272 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 …]
|
D | fc_lport.c | 165 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() 407 static void fc_lport_recv_rlir_req(struct fc_lport *lport, struct fc_frame *fp) in fc_lport_recv_rlir_req() argument 412 lport->tt.seq_els_rsp_send(fp, ELS_LS_ACC, NULL); in fc_lport_recv_rlir_req() 413 fc_frame_free(fp); in fc_lport_recv_rlir_req() 427 struct fc_frame *fp; in fc_lport_recv_echo_req() local 441 fp = fc_frame_alloc(lport, len); in fc_lport_recv_echo_req() 442 if (fp) { in fc_lport_recv_echo_req() 443 dp = fc_frame_payload_get(fp, len); in fc_lport_recv_echo_req() 446 fc_fill_reply_hdr(fp, in_fp, FC_RCTL_ELS_REP, 0); in fc_lport_recv_echo_req() [all …]
|
D | fc_frame.c | 34 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 …]
|
D | fc_disc.c | 85 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 …]
|
D | fc_elsct.c | 44 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 …]
|
D | fc_fcp.c | 423 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 …]
|
D | fc_libfc.c | 166 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 …]
|
/drivers/target/tcm_fc/ |
D | tfc_cmd.c | 85 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() 119 struct fc_frame *fp; in ft_queue_status() local 132 fp = fc_frame_alloc(lport, len); in ft_queue_status() 133 if (!fp) { in ft_queue_status() 138 fcp = fc_frame_payload_get(fp, len); in ft_queue_status() [all …]
|
D | tfc_io.c | 57 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 …]
|
/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_cmn.c | 90 struct bnx2x_fastpath *from_fp = &bp->fp[from]; in bnx2x_move_fp() 91 struct bnx2x_fastpath *to_fp = &bp->fp[to]; in bnx2x_move_fp() 180 struct bnx2x_fastpath *fp = &bp->fp[i]; in bnx2x_shrink_eth_fp() local 183 memcpy(&bp->bnx2x_txq[new_idx], fp->txdata_ptr[cos], in bnx2x_shrink_eth_fp() 185 fp->txdata_ptr[cos] = &bp->bnx2x_txq[new_idx]; in bnx2x_shrink_eth_fp() 343 static inline void bnx2x_update_last_max_sge(struct bnx2x_fastpath *fp, in bnx2x_update_last_max_sge() argument 346 u16 last_max = fp->last_max_sge; in bnx2x_update_last_max_sge() 349 fp->last_max_sge = idx; in bnx2x_update_last_max_sge() 352 static inline void bnx2x_update_sge_prod(struct bnx2x_fastpath *fp, in bnx2x_update_sge_prod() argument 356 struct bnx2x *bp = fp->bp; in bnx2x_update_sge_prod() [all …]
|
D | bnx2x_cmn.h | 128 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); 503 struct bnx2x_fastpath *fp, in bnx2x_update_rx_prod() argument 525 REG_WR(bp, fp->ustorm_rx_prods_offset + i*4, in bnx2x_update_rx_prod() 532 fp->index, bd_prod, rx_comp_prod, rx_sge_prod); in bnx2x_update_rx_prod() 631 static inline void bnx2x_update_fpsb_idx(struct bnx2x_fastpath *fp) in bnx2x_update_fpsb_idx() argument 634 fp->fp_hc_idx = fp->sb_running_index[SM_RX_ID]; in bnx2x_update_fpsb_idx() 768 static inline bool bnx2x_has_tx_work(struct bnx2x_fastpath *fp) in bnx2x_has_tx_work() argument 771 for_each_cos_in_tx_queue(fp, cos) in bnx2x_has_tx_work() 772 if (bnx2x_tx_queue_has_work(fp->txdata_ptr[cos])) in bnx2x_has_tx_work() [all …]
|
/drivers/video/fbdev/geode/ |
D | video_gx.c | 183 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 …]
|
D | suspend_gx.c | 39 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 …]
|
/drivers/gpu/drm/nouveau/ |
D | nouveau_bios.c | 113 …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 …]
|
/drivers/infiniband/hw/qib/ |
D | qib_file_ops.c | 98 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 …]
|
/drivers/scsi/bnx2fc/ |
D | bnx2fc_els.c | 18 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 …]
|
/drivers/infiniband/hw/hfi1/ |
D | file_ops.c | 96 static long hfi1_file_ioctl(struct file *fp, unsigned int cmd, 168 static int hfi1_file_open(struct inode *inode, struct file *fp) in hfi1_file_open() argument 189 fp->private_data = fd; in hfi1_file_open() 191 fp->private_data = NULL; in hfi1_file_open() 202 static long hfi1_file_ioctl(struct file *fp, unsigned int cmd, in hfi1_file_ioctl() argument 205 struct hfi1_filedata *fd = fp->private_data; in hfi1_file_ioctl() 231 ret = assign_ctxt(fp, &uinfo); in hfi1_file_ioctl() 234 ret = setup_ctxt(fp); in hfi1_file_ioctl() 237 ret = user_init(fp); in hfi1_file_ioctl() 240 ret = get_ctxt_info(fp, (void __user *)(unsigned long)arg, in hfi1_file_ioctl() [all …]
|
/drivers/misc/mei/ |
D | amthif.c | 101 static int mei_amthif_read_start(struct mei_cl *cl, const struct file *fp) in mei_amthif_read_start() argument 106 cb = mei_cl_enqueue_ctrl_wr_cb(cl, mei_cl_mtu(cl), MEI_FOP_READ, fp); in mei_amthif_read_start() 113 cl->fp = cb->fp; in mei_amthif_read_start() 139 cl->fp = NULL; in mei_amthif_run_next_cmd() 145 cl->fp = cb->fp; in mei_amthif_run_next_cmd() 152 cb->status = mei_amthif_read_start(cl, cb->fp); in mei_amthif_run_next_cmd() 223 cb->status = mei_amthif_read_start(cl, cb->fp); in mei_amthif_irq_write() 285 cl->fp = NULL; in mei_amthif_complete() 330 if (file == cb->fp) in mei_clear_list() 349 if (cl->fp == file && dev->iamthif_state != MEI_IAMTHIF_IDLE) { in mei_amthif_release()
|