Searched refs:reqlen (Results 1 - 25 of 25) sorted by relevance

/linux-4.1.27/drivers/scsi/
H A Dqlogicfas408.c96 static int ql_pdma(struct qlogicfas408_priv *priv, int phase, char *request, int reqlen) ql_pdma() argument
105 if (reqlen >= 128 && (inb(qbase + 8) & 2)) { /* full */ ql_pdma()
107 reqlen -= 128; ql_pdma()
110 while (reqlen >= 84 && !(j & 0xc0)) /* 2/3 */ ql_pdma()
114 reqlen -= 84; ql_pdma()
117 if (reqlen >= 44 && (inb(qbase + 8) & 8)) { /* 1/3 */ ql_pdma()
119 reqlen -= 44; ql_pdma()
126 while (reqlen && !((j & 0x10) && (j & 0xc0))) ql_pdma()
130 while (reqlen && !((j = inb(qbase + 8)) & 0x10)) ql_pdma()
133 reqlen--; ql_pdma()
142 if (reqlen >= 128 && inb(qbase + 8) & 0x10) { /* empty */ ql_pdma()
144 reqlen -= 128; ql_pdma()
147 while (reqlen >= 84 && !(j & 0xc0)) /* 1/3 */ ql_pdma()
150 reqlen -= 84; ql_pdma()
153 if (reqlen >= 40 && !(inb(qbase + 8) & 4)) { /* 2/3 */ ql_pdma()
155 reqlen -= 40; ql_pdma()
162 while (reqlen && !((j & 2) && (j & 0xc0))) { ql_pdma()
164 while (reqlen && !((j = inb(qbase + 8)) & 2)) ql_pdma()
167 reqlen--; ql_pdma()
173 /* maybe return reqlen */ ql_pdma()
267 unsigned int reqlen; /* total length of transfer */ ql_pcmd() local
302 reqlen = scsi_bufflen(cmd); ql_pcmd()
304 if (reqlen && !((phase = inb(qbase + 4)) & 6)) { /* data phase */ ql_pcmd()
307 outb(reqlen, qbase); /* low-mid xfer cnt */ ql_pcmd()
308 outb(reqlen >> 8, qbase + 1); /* low-mid xfer cnt */ ql_pcmd()
309 outb(reqlen >> 16, qbase + 0xe); /* high xfer cnt */ ql_pcmd()
H A DNCR53c406a.c346 static __inline__ int NCR53c406a_pio_read(unsigned char *request, unsigned int reqlen) NCR53c406a_pio_read() argument
352 while (reqlen) { NCR53c406a_pio_read()
382 if (len > reqlen) NCR53c406a_pio_read()
383 len = reqlen; NCR53c406a_pio_read()
388 reqlen -= len & 0xfc; NCR53c406a_pio_read()
392 reqlen--; NCR53c406a_pio_read()
400 static __inline__ int NCR53c406a_pio_write(unsigned char *request, unsigned int reqlen) NCR53c406a_pio_write() argument
406 while (reqlen && !(i & 0x40)) { NCR53c406a_pio_write()
432 if (len > reqlen) NCR53c406a_pio_write()
433 len = reqlen; NCR53c406a_pio_write()
438 reqlen -= len & 0xfc; NCR53c406a_pio_write()
442 reqlen--; NCR53c406a_pio_write()
H A Ddpt_i2o.c323 u32 reqlen; adpt_inquiry() local
342 reqlen = 17; // SINGLE SGE, 64 bit adpt_inquiry()
344 reqlen = 14; // SINGLE SGE, 32 bit adpt_inquiry()
346 msg[0] = reqlen<<16 | SGL_OFFSET_12; adpt_inquiry()
389 rcode = adpt_i2o_post_wait(pHba, msg, reqlen<<2, 120); adpt_inquiry()
2227 u32 reqlen; adpt_scsi_to_i2o() local
2288 reqlen = 16; // SINGLE SGE adpt_scsi_to_i2o()
2292 reqlen = 14; // SINGLE SGE adpt_scsi_to_i2o()
2314 reqlen = mptr - msg;
2323 reqlen = 12;
2327 msg[0] = reqlen<<16 | ((reqlen > 12) ? SGL_OFFSET_12 : SGL_OFFSET_0);
2330 rcode = adpt_i2o_post_this(pHba, msg, reqlen<<2);
H A Deata_generic.h277 __u8 reqlen; /* Request Sense Length * member in struct:eata_ccb
H A Ddc395x.c1015 u32 reqlen = scsi_bufflen(cmd); build_srb() local
1023 reqlen, scsi_sglist(cmd), scsi_sg_count(cmd), build_srb()
1039 if (srb->total_xfer_length > reqlen) { build_srb()
1040 sgp->length -= (srb->total_xfer_length - reqlen); build_srb()
1041 srb->total_xfer_length = reqlen; build_srb()
H A Deata_pio.c352 cp->reqlen = 0; eata_pio_queue_lck()
H A Dnsp32.c919 "use_sg: 0x%x reqbuf: 0x%lx reqlen: 0x%x", nsp32_queuecommand_lck()
/linux-4.1.27/net/netfilter/
H A Dnf_conntrack_pptp.c270 unsigned int reqlen, pptp_inbound_pkt()
398 unsigned int reqlen, pptp_outbound_pkt()
521 unsigned int datalen, reqlen, nexthdr_off; conntrack_pptp_help() local
557 reqlen = datalen; conntrack_pptp_help()
559 if (msg > 0 && msg <= PPTP_MSG_MAX && reqlen < pptp_msg_size[msg]) conntrack_pptp_help()
561 if (reqlen > sizeof(*pptpReq)) conntrack_pptp_help()
562 reqlen = sizeof(*pptpReq); conntrack_pptp_help()
564 pptpReq = skb_header_pointer(skb, nexthdr_off, reqlen, &_pptpReq); conntrack_pptp_help()
577 ret = pptp_outbound_pkt(skb, protoff, ctlh, pptpReq, reqlen, ct, conntrack_pptp_help()
581 ret = pptp_inbound_pkt(skb, protoff, ctlh, pptpReq, reqlen, ct, conntrack_pptp_help()
267 pptp_inbound_pkt(struct sk_buff *skb, unsigned int protoff, struct PptpControlHeader *ctlh, union pptp_ctrl_union *pptpReq, unsigned int reqlen, struct nf_conn *ct, enum ip_conntrack_info ctinfo) pptp_inbound_pkt() argument
395 pptp_outbound_pkt(struct sk_buff *skb, unsigned int protoff, struct PptpControlHeader *ctlh, union pptp_ctrl_union *pptpReq, unsigned int reqlen, struct nf_conn *ct, enum ip_conntrack_info ctinfo) pptp_outbound_pkt() argument
/linux-4.1.27/drivers/scsi/pcmcia/
H A Dsym53c500_cs.c245 SYM53C500_pio_read(int fast_pio, int base, unsigned char *request, unsigned int reqlen) SYM53C500_pio_read() argument
251 while (reqlen) { SYM53C500_pio_read()
281 if (len > reqlen) SYM53C500_pio_read()
282 len = reqlen; SYM53C500_pio_read()
287 reqlen -= len & 0xfc; SYM53C500_pio_read()
291 reqlen--; SYM53C500_pio_read()
300 SYM53C500_pio_write(int fast_pio, int base, unsigned char *request, unsigned int reqlen) SYM53C500_pio_write() argument
306 while (reqlen && !(i & 0x40)) { SYM53C500_pio_write()
332 if (len > reqlen) SYM53C500_pio_write()
333 len = reqlen; SYM53C500_pio_write()
338 reqlen -= len & 0xfc; SYM53C500_pio_write()
342 reqlen--; SYM53C500_pio_write()
/linux-4.1.27/drivers/isdn/mISDN/
H A Dhwchannel.c479 bchannel_get_rxbuf(struct bchannel *bch, int reqlen) bchannel_get_rxbuf() argument
485 if (len < reqlen) { bchannel_get_rxbuf()
487 bch->nr, reqlen, len); bchannel_get_rxbuf()
504 if (unlikely(reqlen > bch->maxlen)) bchannel_get_rxbuf()
507 if (reqlen >= bch->minlen) { bchannel_get_rxbuf()
508 len = reqlen; bchannel_get_rxbuf()
/linux-4.1.27/drivers/net/wireless/
H A Dzd1201.c518 int reqlen; zd1201_setconfig() local
537 reqlen = len>12 ? 12 : len; zd1201_setconfig()
546 memcpy(request+8, buf, reqlen-4); zd1201_setconfig()
547 buf += reqlen-4; zd1201_setconfig()
549 memcpy(request+4, buf, reqlen); zd1201_setconfig()
550 buf += reqlen; zd1201_setconfig()
553 len -= reqlen; zd1201_setconfig()
/linux-4.1.27/drivers/infiniband/hw/mlx5/
H A Dmain.c404 size_t reqlen; mlx5_ib_alloc_ucontext() local
411 reqlen = udata->inlen - sizeof(struct ib_uverbs_cmd_hdr); mlx5_ib_alloc_ucontext()
412 if (reqlen == sizeof(struct mlx5_ib_alloc_ucontext_req)) mlx5_ib_alloc_ucontext()
414 else if (reqlen == sizeof(struct mlx5_ib_alloc_ucontext_req_v2)) mlx5_ib_alloc_ucontext()
419 err = ib_copy_from_udata(&req, udata, reqlen); mlx5_ib_alloc_ucontext()
/linux-4.1.27/crypto/
H A Dalgif_skcipher.c519 unsigned int reqlen = sizeof(struct skcipher_async_req) + skcipher_recvmsg_async() local
525 req = kmalloc(reqlen, GFP_KERNEL); skcipher_recvmsg_async()
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/
H A Dsec_null.c186 "req %p: reqlen %d should smaller than buflen %d\n", null_free_reqbuf()
H A Dpack_generic.c218 int reqlen, rc; lustre_pack_request_v2() local
220 reqlen = lustre_msg_size_v2(count, lens); lustre_pack_request_v2()
222 rc = sptlrpc_cli_alloc_reqbuf(req, reqlen); lustre_pack_request_v2()
226 req->rq_reqlen = reqlen; lustre_pack_request_v2()
/linux-4.1.27/drivers/scsi/bfa/
H A Dbfa_fcs.c1452 u16 reqlen; bfa_fcs_fabric_send_flogi_acc() local
1462 reqlen = fc_flogi_acc_build(&fchs, bfa_fcxp_get_reqbuf(fcxp), bfa_fcs_fabric_send_flogi_acc()
1471 reqlen, &fchs, bfa_fcs_fabric_flogiacc_comp, fabric, bfa_fcs_fabric_send_flogi_acc()
H A Dbfa_svc.c114 static void hal_fcxp_tx_plog(struct bfa_s *bfa, u32 reqlen,
772 hal_fcxp_tx_plog(struct bfa_s *bfa, u32 reqlen, struct bfa_fcxp_s *fcxp, hal_fcxp_tx_plog() argument
778 if (reqlen > 0) { hal_fcxp_tx_plog()
785 reqlen + sizeof(struct fchs_s), fchs, hal_fcxp_tx_plog()
790 reqlen + sizeof(struct fchs_s), hal_fcxp_tx_plog()
795 reqlen + sizeof(struct fchs_s), fchs); hal_fcxp_tx_plog()
1042 * @param[in] reqlen request length, does not include FCHS length
1057 u32 reqlen, struct fchs_s *fchs, bfa_cb_fcxp_send_t cbfn, bfa_fcxp_send()
1077 reqi->req_tot_len = reqlen; bfa_fcxp_send()
1055 bfa_fcxp_send(struct bfa_fcxp_s *fcxp, struct bfa_rport_s *rport, u16 vf_id, u8 lp_tag, bfa_boolean_t cts, enum fc_cos cos, u32 reqlen, struct fchs_s *fchs, bfa_cb_fcxp_send_t cbfn, void *cbarg, u32 rsp_maxlen, u8 rsp_timeout) bfa_fcxp_send() argument
H A Dbfa_svc.h637 u32 reqlen, struct fchs_s *fchs,
/linux-4.1.27/drivers/video/fbdev/omap2/dss/
H A Ddsi.c2915 int channel, u8 *reqdata, int reqlen) dsi_vc_generic_send_read_request()
2923 DSSDBG("dsi_vc_generic_send_read_request(ch %d, reqlen %d)\n", dsi_vc_generic_send_read_request()
2924 channel, reqlen); dsi_vc_generic_send_read_request()
2926 if (reqlen == 0) { dsi_vc_generic_send_read_request()
2929 } else if (reqlen == 1) { dsi_vc_generic_send_read_request()
2932 } else if (reqlen == 2) { dsi_vc_generic_send_read_request()
2942 DSSERR("dsi_vc_generic_send_read_request(ch %d, reqlen %d)" dsi_vc_generic_send_read_request()
2943 " failed\n", channel, reqlen); dsi_vc_generic_send_read_request()
3090 u8 *reqdata, int reqlen, u8 *buf, int buflen) dsi_vc_generic_read()
3095 r = dsi_vc_generic_send_read_request(dsidev, channel, reqdata, reqlen); dsi_vc_generic_read()
2914 dsi_vc_generic_send_read_request(struct platform_device *dsidev, int channel, u8 *reqdata, int reqlen) dsi_vc_generic_send_read_request() argument
3089 dsi_vc_generic_read(struct omap_dss_device *dssdev, int channel, u8 *reqdata, int reqlen, u8 *buf, int buflen) dsi_vc_generic_read() argument
/linux-4.1.27/drivers/staging/lustre/lustre/lmv/
H A Dlmv_obd.c1072 unsigned int nr, reqlen; lmv_iocontrol() local
1081 reqlen = offsetof(typeof(*hur), lmv_iocontrol()
1084 OBD_ALLOC_LARGE(req, reqlen); lmv_iocontrol()
1091 reqlen, req, uarg); lmv_iocontrol()
1094 OBD_FREE_LARGE(req, reqlen); lmv_iocontrol()
/linux-4.1.27/drivers/infiniband/hw/ipath/
H A Dipath_file_ops.c1040 dev_info(&dd->pcidev->dev, "FAIL mmap userreg: reqlen " mmap_ureg()
1072 "reqlen %lx > PAGE\n", mmap_piobufs()
1114 "reqlen %lx > actual %lx\n", mmap_rcvegrbufs()
1226 ipath_cdbg(MM, "FAIL: reqlen %lx > %zx\n", len, size); mmap_kvaddr()
/linux-4.1.27/include/video/
H A Domapdss.h681 u8 *reqdata, int reqlen,
/linux-4.1.27/drivers/scsi/lpfc/
H A Dlpfc_sli.c4936 uint32_t alloclen, reqlen; lpfc_sli4_retrieve_pport_name() local
4956 reqlen = sizeof(struct lpfc_mbx_get_cntl_attributes); lpfc_sli4_retrieve_pport_name()
4958 LPFC_MBOX_OPCODE_GET_CNTL_ATTRIBUTES, reqlen, lpfc_sli4_retrieve_pport_name()
4960 if (alloclen < reqlen) { lpfc_sli4_retrieve_pport_name()
4964 "(%d)\n", alloclen, reqlen); lpfc_sli4_retrieve_pport_name()
14409 uint32_t reqlen, alloclen, pg_pairs; lpfc_sli4_post_els_sgl_list() local
14416 reqlen = phba->sli4_hba.els_xri_cnt * sizeof(struct sgl_page_pairs) + lpfc_sli4_post_els_sgl_list()
14418 if (reqlen > SLI4_PAGE_SIZE) { lpfc_sli4_post_els_sgl_list()
14421 "size (%d) great than a page\n", reqlen); lpfc_sli4_post_els_sgl_list()
14430 LPFC_MBOX_OPCODE_FCOE_POST_SGL_PAGES, reqlen, lpfc_sli4_post_els_sgl_list()
14433 if (alloclen < reqlen) { lpfc_sli4_post_els_sgl_list()
14437 "size (%d)\n", alloclen, reqlen); lpfc_sli4_post_els_sgl_list()
14511 uint32_t reqlen, alloclen, pg_pairs; lpfc_sli4_post_scsi_sgl_block() local
14520 reqlen = count * sizeof(struct sgl_page_pairs) + lpfc_sli4_post_scsi_sgl_block()
14522 if (reqlen > SLI4_PAGE_SIZE) { lpfc_sli4_post_scsi_sgl_block()
14525 "size (%d) great than a page\n", reqlen); lpfc_sli4_post_scsi_sgl_block()
14537 LPFC_MBOX_OPCODE_FCOE_POST_SGL_PAGES, reqlen, lpfc_sli4_post_scsi_sgl_block()
14540 if (alloclen < reqlen) { lpfc_sli4_post_scsi_sgl_block()
14544 "size (%d)\n", alloclen, reqlen); lpfc_sli4_post_scsi_sgl_block()
/linux-4.1.27/drivers/infiniband/hw/qib/
H A Dqib_file_ops.c786 "FAIL mmap userreg: reqlen %lx > PAGE\n", mmap_ureg()
818 "FAIL mmap piobufs: reqlen %lx > PAGE\n", mmap_piobufs()
864 "FAIL on egr bufs: reqlen %lx > actual %lx\n", mmap_rcvegrbufs()
/linux-4.1.27/drivers/scsi/arm/
H A Dfas216.c753 "starttransfer: buffer %p length 0x%06x reqlen 0x%06x", fas216_transfer()

Completed in 930 milliseconds