Lines Matching refs:iq_params
441 uint32_t mb_tmo, struct csio_iq_params *iq_params, in csio_mb_iq_alloc() argument
450 FW_IQ_CMD_PFN_V(iq_params->pfn) | in csio_mb_iq_alloc()
451 FW_IQ_CMD_VFN_V(iq_params->vfn)); in csio_mb_iq_alloc()
457 FW_IQ_CMD_VIID_V(iq_params->viid) | in csio_mb_iq_alloc()
458 FW_IQ_CMD_TYPE_V(iq_params->type) | in csio_mb_iq_alloc()
459 FW_IQ_CMD_IQASYNCH_V(iq_params->iqasynch)); in csio_mb_iq_alloc()
461 cmdp->fl0size = htons(iq_params->fl0size); in csio_mb_iq_alloc()
462 cmdp->fl0size = htons(iq_params->fl1size); in csio_mb_iq_alloc()
487 struct csio_iq_params *iq_params, in csio_mb_iq_write() argument
492 uint32_t iq_start_stop = (iq_params->iq_start) ? in csio_mb_iq_write()
507 FW_IQ_CMD_PFN_V(iq_params->pfn) | in csio_mb_iq_write()
508 FW_IQ_CMD_VFN_V(iq_params->vfn)); in csio_mb_iq_write()
511 cmdp->iqid |= htons(iq_params->iqid); in csio_mb_iq_write()
512 cmdp->fl0id |= htons(iq_params->fl0id); in csio_mb_iq_write()
513 cmdp->fl1id |= htons(iq_params->fl1id); in csio_mb_iq_write()
515 FW_IQ_CMD_IQANDST_V(iq_params->iqandst) | in csio_mb_iq_write()
516 FW_IQ_CMD_IQANUS_V(iq_params->iqanus) | in csio_mb_iq_write()
517 FW_IQ_CMD_IQANUD_V(iq_params->iqanud) | in csio_mb_iq_write()
518 FW_IQ_CMD_IQANDSTINDEX_V(iq_params->iqandstindex)); in csio_mb_iq_write()
520 FW_IQ_CMD_IQPCIECH_V(iq_params->iqpciech) | in csio_mb_iq_write()
521 FW_IQ_CMD_IQDCAEN_V(iq_params->iqdcaen) | in csio_mb_iq_write()
522 FW_IQ_CMD_IQDCACPU_V(iq_params->iqdcacpu) | in csio_mb_iq_write()
523 FW_IQ_CMD_IQINTCNTTHRESH_V(iq_params->iqintcntthresh) | in csio_mb_iq_write()
524 FW_IQ_CMD_IQCPRIO_V(iq_params->iqcprio) | in csio_mb_iq_write()
525 FW_IQ_CMD_IQESIZE_V(iq_params->iqesize)); in csio_mb_iq_write()
527 cmdp->iqsize |= htons(iq_params->iqsize); in csio_mb_iq_write()
528 cmdp->iqaddr |= cpu_to_be64(iq_params->iqaddr); in csio_mb_iq_write()
530 if (iq_params->type == 0) { in csio_mb_iq_write()
532 FW_IQ_CMD_IQFLINTIQHSEN_V(iq_params->iqflintiqhsen)| in csio_mb_iq_write()
533 FW_IQ_CMD_IQFLINTCONGEN_V(iq_params->iqflintcongen)); in csio_mb_iq_write()
536 if (iq_params->fl0size && iq_params->fl0addr && in csio_mb_iq_write()
537 (iq_params->fl0id != 0xFFFF)) { in csio_mb_iq_write()
540 FW_IQ_CMD_FL0HOSTFCMODE_V(iq_params->fl0hostfcmode)| in csio_mb_iq_write()
541 FW_IQ_CMD_FL0CPRIO_V(iq_params->fl0cprio) | in csio_mb_iq_write()
544 FW_IQ_CMD_FL0PADEN_V(iq_params->fl0paden) | in csio_mb_iq_write()
545 FW_IQ_CMD_FL0PACKEN_V(iq_params->fl0packen)); in csio_mb_iq_write()
547 FW_IQ_CMD_FL0DCAEN_V(iq_params->fl0dcaen) | in csio_mb_iq_write()
548 FW_IQ_CMD_FL0DCACPU_V(iq_params->fl0dcacpu) | in csio_mb_iq_write()
549 FW_IQ_CMD_FL0FBMIN_V(iq_params->fl0fbmin) | in csio_mb_iq_write()
550 FW_IQ_CMD_FL0FBMAX_V(iq_params->fl0fbmax) | in csio_mb_iq_write()
551 FW_IQ_CMD_FL0CIDXFTHRESH_V(iq_params->fl0cidxfthresh)); in csio_mb_iq_write()
552 cmdp->fl0size |= htons(iq_params->fl0size); in csio_mb_iq_write()
553 cmdp->fl0addr |= cpu_to_be64(iq_params->fl0addr); in csio_mb_iq_write()
572 uint32_t mb_tmo, struct csio_iq_params *iq_params, in csio_mb_iq_alloc_write() argument
575 csio_mb_iq_alloc(hw, mbp, priv, mb_tmo, iq_params, cbfn); in csio_mb_iq_alloc_write()
576 csio_mb_iq_write(hw, mbp, priv, mb_tmo, true, iq_params, cbfn); in csio_mb_iq_alloc_write()
592 struct csio_iq_params *iq_params) in csio_mb_iq_alloc_write_rsp() argument
598 iq_params->physiqid = ntohs(rsp->physiqid); in csio_mb_iq_alloc_write_rsp()
599 iq_params->iqid = ntohs(rsp->iqid); in csio_mb_iq_alloc_write_rsp()
600 iq_params->fl0id = ntohs(rsp->fl0id); in csio_mb_iq_alloc_write_rsp()
601 iq_params->fl1id = ntohs(rsp->fl1id); in csio_mb_iq_alloc_write_rsp()
603 iq_params->physiqid = iq_params->iqid = in csio_mb_iq_alloc_write_rsp()
604 iq_params->fl0id = iq_params->fl1id = 0; in csio_mb_iq_alloc_write_rsp()
623 uint32_t mb_tmo, struct csio_iq_params *iq_params, in csio_mb_iq_free() argument
632 FW_IQ_CMD_PFN_V(iq_params->pfn) | in csio_mb_iq_free()
633 FW_IQ_CMD_VFN_V(iq_params->vfn)); in csio_mb_iq_free()
636 cmdp->type_to_iqandstindex = htonl(FW_IQ_CMD_TYPE_V(iq_params->type)); in csio_mb_iq_free()
638 cmdp->iqid = htons(iq_params->iqid); in csio_mb_iq_free()
639 cmdp->fl0id = htons(iq_params->fl0id); in csio_mb_iq_free()
640 cmdp->fl1id = htons(iq_params->fl1id); in csio_mb_iq_free()