/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 …]
|
/drivers/net/phy/ |
D | fixed.c | 47 static int fixed_phy_update_regs(struct fixed_phy *fp) in fixed_phy_update_regs() argument 54 if (fp->status.duplex) { in fixed_phy_update_regs() 57 switch (fp->status.speed) { in fixed_phy_update_regs() 77 switch (fp->status.speed) { in fixed_phy_update_regs() 98 if (fp->status.link) in fixed_phy_update_regs() 101 if (fp->status.pause) in fixed_phy_update_regs() 104 if (fp->status.asym_pause) in fixed_phy_update_regs() 107 fp->regs[MII_PHYSID1] = fp->id >> 16; in fixed_phy_update_regs() 108 fp->regs[MII_PHYSID2] = fp->id; in fixed_phy_update_regs() 110 fp->regs[MII_BMSR] = bmsr; in fixed_phy_update_regs() [all …]
|
/drivers/usb/gadget/ |
D | f_phonet.c | 203 struct f_phonet *fp = ep->driver_data; in pn_tx_complete() local 204 struct net_device *dev = fp->dev; in pn_tx_complete() 227 struct f_phonet *fp; in pn_net_xmit() local 235 fp = port->usb; in pn_net_xmit() 236 if (unlikely(!fp)) /* race with carrier loss */ in pn_net_xmit() 239 req = fp->in_req; in pn_net_xmit() 246 if (unlikely(usb_ep_queue(fp->in_ep, req, GFP_ATOMIC))) in pn_net_xmit() 299 pn_rx_submit(struct f_phonet *fp, struct usb_request *req, gfp_t gfp_flags) in pn_rx_submit() argument 312 err = usb_ep_queue(fp->out_ep, req, gfp_flags); in pn_rx_submit() 320 struct f_phonet *fp = ep->driver_data; in pn_rx_complete() local [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/fddi/skfp/ |
D | fplustm.c | 177 smc->hw.fp.fifo.rbc_ram_start = 0 ; in init_ram() 178 smc->hw.fp.fifo.rbc_ram_end = in init_ram() 179 smc->hw.fp.fifo.rbc_ram_start + RBC_MEM_SIZE ; in init_ram() 181 MARW(smc->hw.fp.fifo.rbc_ram_start) ; in init_ram() 182 for (i = smc->hw.fp.fifo.rbc_ram_start; in init_ram() 183 i < (u_short) (smc->hw.fp.fifo.rbc_ram_end-1); i++) in init_ram() 197 outpw(FM_A(FM_RPR1),smc->hw.fp.fifo.rx1_fifo_start) ; /* RPR1 */ in set_recvptr() 198 outpw(FM_A(FM_SWPR1),smc->hw.fp.fifo.rx1_fifo_start) ; /* SWPR1 */ in set_recvptr() 199 outpw(FM_A(FM_WPR1),smc->hw.fp.fifo.rx1_fifo_start) ; /* WPR1 */ in set_recvptr() 200 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 | 544 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 …]
|
D | fc_exch.c | 271 static void fc_exch_setup_hdr(struct fc_exch *ep, struct fc_frame *fp, in fc_exch_setup_hdr() argument 274 struct fc_frame_header *fh = fc_frame_header_get(fp); in fc_exch_setup_hdr() 277 fr_sof(fp) = ep->class; in fc_exch_setup_hdr() 279 fr_sof(fp) = fc_sof_normal(ep->class); in fc_exch_setup_hdr() 282 fr_eof(fp) = FC_EOF_T; in fc_exch_setup_hdr() 284 fr_eof(fp) = FC_EOF_N; in fc_exch_setup_hdr() 294 fill = fr_len(fp) & 3; in fc_exch_setup_hdr() 298 skb_put(fp_skb(fp), fill); in fc_exch_setup_hdr() 302 WARN_ON(fr_len(fp) % 4 != 0); /* no pad to non last frame */ in fc_exch_setup_hdr() 303 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() 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 …]
|
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_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_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_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/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_cmn.h | 121 int bnx2x_setup_queue(struct bnx2x *bp, struct bnx2x_fastpath *fp, 453 void bnx2x_sp_event(struct bnx2x_fastpath *fp, union eth_rx_cqe *rr_cqe); 521 struct bnx2x_fastpath *fp, in bnx2x_update_rx_prod() argument 543 REG_WR(bp, fp->ustorm_rx_prods_offset + i*4, in bnx2x_update_rx_prod() 550 fp->index, bd_prod, rx_comp_prod, rx_sge_prod); in bnx2x_update_rx_prod() 559 int bnx2x_rx_int(struct bnx2x_fastpath *fp, int budget); 657 static inline void bnx2x_update_fpsb_idx(struct bnx2x_fastpath *fp) in bnx2x_update_fpsb_idx() argument 660 fp->fp_hc_idx = fp->sb_running_index[SM_RX_ID]; in bnx2x_update_fpsb_idx() 794 static inline bool bnx2x_has_tx_work(struct bnx2x_fastpath *fp) in bnx2x_has_tx_work() argument 797 for_each_cos_in_tx_queue(fp, cos) in bnx2x_has_tx_work() [all …]
|
D | bnx2x_cmn.c | 47 struct bnx2x_fastpath *from_fp = &bp->fp[from]; in bnx2x_move_fp() 48 struct bnx2x_fastpath *to_fp = &bp->fp[to]; in bnx2x_move_fp() 131 struct bnx2x_fastpath *fp = &bp->fp[i]; in bnx2x_shrink_eth_fp() local 134 memcpy(&bp->bnx2x_txq[new_idx], fp->txdata_ptr[cos], in bnx2x_shrink_eth_fp() 136 fp->txdata_ptr[cos] = &bp->bnx2x_txq[new_idx]; in bnx2x_shrink_eth_fp() 284 static inline void bnx2x_update_last_max_sge(struct bnx2x_fastpath *fp, in bnx2x_update_last_max_sge() argument 287 u16 last_max = fp->last_max_sge; in bnx2x_update_last_max_sge() 290 fp->last_max_sge = idx; in bnx2x_update_last_max_sge() 293 static inline void bnx2x_update_sge_prod(struct bnx2x_fastpath *fp, in bnx2x_update_sge_prod() argument 297 struct bnx2x *bp = fp->bp; in bnx2x_update_sge_prod() [all …]
|
/drivers/target/tcm_fc/ |
D | tfc_cmd.c | 90 struct fc_frame *fp; in ft_free_cmd() local 95 fp = cmd->req_frame; in ft_free_cmd() 96 lport = fr_dev(fp); in ft_free_cmd() 97 if (fr_seq(fp)) in ft_free_cmd() 98 lport->tt.seq_release(fr_seq(fp)); in ft_free_cmd() 99 fc_frame_free(fp); in ft_free_cmd() 123 struct fc_frame *fp; in ft_queue_status() local 135 fp = fc_frame_alloc(lport, len); in ft_queue_status() 136 if (!fp) { in ft_queue_status() 140 fcp = fc_frame_payload_get(fp, len); in ft_queue_status() [all …]
|
D | tfc_io.c | 63 struct fc_frame *fp = NULL; in ft_queue_data_in() local 128 fp = fc_frame_alloc(lport, use_sg ? 0 : frame_len); in ft_queue_data_in() 129 if (!fp) in ft_queue_data_in() 131 to = fc_frame_payload_get(fp, 0); in ft_queue_data_in() 140 fr_max_payload(fp) = cmd->sess->max_frame; in ft_queue_data_in() 148 skb_fill_page_desc(fp_skb(fp), in ft_queue_data_in() 149 skb_shinfo(fp_skb(fp))->nr_frags, in ft_queue_data_in() 151 fr_len(fp) += tlen; in ft_queue_data_in() 152 fp_skb(fp)->data_len += tlen; in ft_queue_data_in() 153 fp_skb(fp)->truesize += in ft_queue_data_in() [all …]
|
/drivers/video/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 | 115 …uint8_t sub = bios->data[bios->fp.xlated_entry + script] + (bios->fp.link_c_increment && dcbent->o… in call_lvds_manufacturer_script() 118 if (!bios->fp.xlated_entry || !sub || !scriptofs) in call_lvds_manufacturer_script() 121 run_digital_op_script(dev, scriptofs, dcbent, head, bios->fp.dual_link); in call_lvds_manufacturer_script() 125 mdelay(ROM16(bios->data[bios->fp.xlated_entry + 7])); in call_lvds_manufacturer_script() 165 scriptptr = ROM16(bios->data[bios->fp.lvdsmanufacturerpointer + 7 + outputset * 2]); in run_lvds_table() 169 scriptptr = ROM16(bios->data[bios->fp.lvdsmanufacturerpointer + 11 + outputset * 2]); in run_lvds_table() 172 clktable = bios->fp.lvdsmanufacturerpointer + 15; in run_lvds_table() 177 if (bios->fp.dual_link) in run_lvds_table() 179 if (bios->fp.if_is_24bit) in run_lvds_table() 185 if (bios->fp.dual_link) { in run_lvds_table() [all …]
|
/drivers/scsi/bnx2fc/ |
D | bnx2fc_els.c | 17 static void bnx2fc_logo_resp(struct fc_seq *seq, struct fc_frame *fp, 19 static void bnx2fc_flogi_resp(struct fc_seq *seq, struct fc_frame *fp, 173 int bnx2fc_send_adisc(struct bnx2fc_rport *tgt, struct fc_frame *fp) in bnx2fc_send_adisc() argument 182 fh = fc_frame_header_get(fp); in bnx2fc_send_adisc() 192 adisc = fc_frame_payload_get(fp, sizeof(*adisc)); in bnx2fc_send_adisc() 201 int bnx2fc_send_logo(struct bnx2fc_rport *tgt, struct fc_frame *fp) in bnx2fc_send_logo() argument 210 fh = fc_frame_header_get(fp); in bnx2fc_send_logo() 220 logo = fc_frame_payload_get(fp, sizeof(*logo)); in bnx2fc_send_logo() 229 int bnx2fc_send_rls(struct bnx2fc_rport *tgt, struct fc_frame *fp) in bnx2fc_send_rls() argument 238 fh = fc_frame_header_get(fp); in bnx2fc_send_rls() [all …]
|
/drivers/infiniband/hw/qib/ |
D | qib_file_ops.c | 92 static int qib_get_base_info(struct file *fp, void __user *ubase, in qib_get_base_info() argument 95 struct qib_ctxtdata *rcd = ctxt_fp(fp); in qib_get_base_info() 111 master = !subctxt_fp(fp); in qib_get_base_info() 200 unsigned slave = subctxt_fp(fp) - 1; in qib_get_base_info() 209 cvt_kvaddr(&rcd->user_event_mask[subctxt_fp(fp)]); in qib_get_base_info() 237 kinfo->spi_subctxt = subctxt_fp(fp); in qib_get_base_info() 278 static int qib_tid_update(struct qib_ctxtdata *rcd, struct file *fp, in qib_tid_update() argument 290 unsigned subctxt = subctxt_fp(fp); in qib_tid_update() 312 tid = tidcursor_fp(fp); in qib_tid_update() 317 tid = tidcursor_fp(fp); in qib_tid_update() [all …]
|
/drivers/atm/ |
D | firestream.c | 796 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 …]
|
/drivers/infiniband/hw/ipath/ |
D | ipath_file_ops.c | 90 static int ipath_get_base_info(struct file *fp, in ipath_get_base_info() argument 93 struct ipath_portdata *pd = port_fp(fp); in ipath_get_base_info() 108 master = !subport_fp(fp); in ipath_get_base_info() 193 unsigned slave = subport_fp(fp) - 1; in ipath_get_base_info() 208 PAGE_SIZE * subport_fp(fp)); in ipath_get_base_info() 211 pd->port_rcvhdrq_size * subport_fp(fp)); in ipath_get_base_info() 215 subport_fp(fp)); in ipath_get_base_info() 248 kinfo->spi_subport = subport_fp(fp); in ipath_get_base_info() 291 static int ipath_tid_update(struct ipath_portdata *pd, struct file *fp, in ipath_tid_update() argument 303 unsigned subport = subport_fp(fp); in ipath_tid_update() [all …]
|
/drivers/scsi/fnic/ |
D | fnic_fcs.c | 121 struct fc_frame *fp; in fnic_handle_frame() local 131 fp = (struct fc_frame *)skb; in fnic_handle_frame() 145 fc_exch_recv(lp, fp); in fnic_handle_frame() 591 struct fc_frame *fp; in fnic_import_rq_eth_pkt() local 625 fp = (struct fc_frame *)skb; in fnic_import_rq_eth_pkt() 626 fc_frame_init(fp); in fnic_import_rq_eth_pkt() 627 fr_sof(fp) = fcoe_hdr->fcoe_sof; in fnic_import_rq_eth_pkt() 632 fr_eof(fp) = ft->fcoe_eof; in fnic_import_rq_eth_pkt() 692 void fnic_set_port_id(struct fc_lport *lport, u32 port_id, struct fc_frame *fp) in fnic_set_port_id() argument 699 port_id, fp); in fnic_set_port_id() [all …]
|