Lines Matching refs:task
635 struct fcoe_task_ctx_entry *task, *task_page; in bnx2fc_process_unsol_compl() local
715 task = &(task_page[index]); in bnx2fc_process_unsol_compl()
843 task = &(task_page[index]); in bnx2fc_process_unsol_compl()
874 struct fcoe_task_ctx_entry *task; in bnx2fc_process_cq_compl() local
896 task = &(task_page[index]); in bnx2fc_process_cq_compl()
898 num_rq = ((task->rxwr_txrd.var_ctx.rx_flags & in bnx2fc_process_cq_compl()
913 rx_state = ((task->rxwr_txrd.var_ctx.rx_flags & in bnx2fc_process_cq_compl()
921 bnx2fc_process_scsi_cmd_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
927 bnx2fc_process_abts_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
930 bnx2fc_process_cleanup_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
938 bnx2fc_process_tm_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
953 bnx2fc_process_els_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
955 bnx2fc_process_abts_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
958 bnx2fc_process_cleanup_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
972 bnx2fc_process_seq_cleanup_compl(io_req, task, rx_state); in bnx2fc_process_cq_compl()
1460 struct fcoe_task_ctx_entry *task, in bnx2fc_init_seq_cleanup_task() argument
1481 memset(task, 0, sizeof(struct fcoe_task_ctx_entry)); in bnx2fc_init_seq_cleanup_task()
1489 task->txwr_rxrd.const_ctx.tx_flags = in bnx2fc_init_seq_cleanup_task()
1493 task->txwr_rxrd.const_ctx.init_flags = task_type << in bnx2fc_init_seq_cleanup_task()
1495 task->txwr_rxrd.const_ctx.init_flags |= FCOE_TASK_CLASS_TYPE_3 << in bnx2fc_init_seq_cleanup_task()
1497 task->rxwr_txrd.const_ctx.init_flags = context_id << in bnx2fc_init_seq_cleanup_task()
1499 task->rxwr_txrd.const_ctx.init_flags = context_id << in bnx2fc_init_seq_cleanup_task()
1502 task->txwr_rxrd.union_ctx.cleanup.ctx.cleaned_task_id = orig_xid; in bnx2fc_init_seq_cleanup_task()
1504 task->txwr_rxrd.union_ctx.cleanup.ctx.rolled_tx_seq_cnt = 0; in bnx2fc_init_seq_cleanup_task()
1505 task->txwr_rxrd.union_ctx.cleanup.ctx.rolled_tx_data_offset = offset; in bnx2fc_init_seq_cleanup_task()
1518 task->txwr_only.sgl_ctx.sgl.mul_sgl.cur_sge_addr.lo = in bnx2fc_init_seq_cleanup_task()
1520 task->txwr_only.sgl_ctx.sgl.mul_sgl.cur_sge_addr.hi = in bnx2fc_init_seq_cleanup_task()
1522 task->txwr_only.sgl_ctx.sgl.mul_sgl.sgl_size = in bnx2fc_init_seq_cleanup_task()
1524 task->txwr_only.sgl_ctx.sgl.mul_sgl.cur_sge_off = in bnx2fc_init_seq_cleanup_task()
1526 task->txwr_only.sgl_ctx.sgl.mul_sgl.cur_sge_idx = i; in bnx2fc_init_seq_cleanup_task()
1536 sgl = &task->rxwr_only.union_ctx.read_info.sgl_ctx.sgl; in bnx2fc_init_seq_cleanup_task()
1543 memset(&task->rxwr_only.rx_seq_ctx, 0, in bnx2fc_init_seq_cleanup_task()
1545 task->rxwr_only.rx_seq_ctx.low_exp_ro = orig_offset; in bnx2fc_init_seq_cleanup_task()
1546 task->rxwr_only.rx_seq_ctx.high_exp_ro = orig_offset; in bnx2fc_init_seq_cleanup_task()
1550 struct fcoe_task_ctx_entry *task, in bnx2fc_init_cleanup_task() argument
1557 memset(task, 0, sizeof(struct fcoe_task_ctx_entry)); in bnx2fc_init_cleanup_task()
1561 task->txwr_rxrd.const_ctx.init_flags = task_type << in bnx2fc_init_cleanup_task()
1563 task->txwr_rxrd.const_ctx.init_flags |= FCOE_TASK_CLASS_TYPE_3 << in bnx2fc_init_cleanup_task()
1566 task->txwr_rxrd.const_ctx.init_flags |= in bnx2fc_init_cleanup_task()
1570 task->txwr_rxrd.const_ctx.init_flags |= in bnx2fc_init_cleanup_task()
1573 task->txwr_rxrd.union_ctx.cleanup.ctx.cleaned_task_id = orig_xid; in bnx2fc_init_cleanup_task()
1576 task->txwr_rxrd.const_ctx.tx_flags = in bnx2fc_init_cleanup_task()
1581 task->rxwr_txrd.const_ctx.init_flags = context_id << in bnx2fc_init_cleanup_task()
1583 task->rxwr_txrd.var_ctx.rx_flags |= 1 << in bnx2fc_init_cleanup_task()
1588 struct fcoe_task_ctx_entry *task) in bnx2fc_init_mp_task() argument
1608 memset(task, 0, sizeof(struct fcoe_task_ctx_entry)); in bnx2fc_init_mp_task()
1611 io_req->task = task; in bnx2fc_init_mp_task()
1619 task->txwr_only.sgl_ctx.sgl.mul_sgl.cur_sge_addr.lo = in bnx2fc_init_mp_task()
1621 task->txwr_only.sgl_ctx.sgl.mul_sgl.cur_sge_addr.hi = in bnx2fc_init_mp_task()
1623 task->txwr_only.sgl_ctx.sgl.mul_sgl.sgl_size = 1; in bnx2fc_init_mp_task()
1628 task->txwr_rxrd.const_ctx.init_flags = task_type << in bnx2fc_init_mp_task()
1631 task->txwr_rxrd.const_ctx.init_flags |= in bnx2fc_init_mp_task()
1635 task->txwr_rxrd.const_ctx.init_flags |= in bnx2fc_init_mp_task()
1638 task->txwr_rxrd.const_ctx.init_flags |= FCOE_TASK_CLASS_TYPE_3 << in bnx2fc_init_mp_task()
1642 task->txwr_rxrd.const_ctx.tx_flags = FCOE_TASK_TX_STATE_INIT << in bnx2fc_init_mp_task()
1646 task->rxwr_txrd.const_ctx.data_2_trns = io_req->data_xfer_len; in bnx2fc_init_mp_task()
1649 task->rxwr_txrd.var_ctx.rx_flags |= 1 << in bnx2fc_init_mp_task()
1653 task->rxwr_txrd.const_ctx.init_flags = context_id << in bnx2fc_init_mp_task()
1660 task->rxwr_txrd.var_ctx.rx_id = 0xffff; in bnx2fc_init_mp_task()
1666 hdr = (u64 *) &task->txwr_rxrd.union_ctx.tx_frame.fc_hdr; in bnx2fc_init_mp_task()
1674 sgl = &task->rxwr_only.union_ctx.read_info.sgl_ctx.sgl; in bnx2fc_init_mp_task()
1684 struct fcoe_task_ctx_entry *task) in bnx2fc_init_task() argument
1699 memset(task, 0, sizeof(struct fcoe_task_ctx_entry)); in bnx2fc_init_task()
1702 io_req->task = task; in bnx2fc_init_task()
1711 cached_sge = &task->rxwr_only.union_ctx.read_info.sgl_ctx.cached_sge; in bnx2fc_init_task()
1716 task->txwr_only.sgl_ctx.cached_sge.cur_buf_addr.lo = in bnx2fc_init_task()
1719 task->txwr_only.sgl_ctx.cached_sge.cur_buf_addr.hi = in bnx2fc_init_task()
1722 task->txwr_only.sgl_ctx.cached_sge.cur_buf_rem = in bnx2fc_init_task()
1726 task->txwr_rxrd.const_ctx.init_flags |= 1 << in bnx2fc_init_task()
1729 task->txwr_only.sgl_ctx.sgl.mul_sgl.cur_sge_addr.lo = in bnx2fc_init_task()
1731 task->txwr_only.sgl_ctx.sgl.mul_sgl.cur_sge_addr.hi = in bnx2fc_init_task()
1733 task->txwr_only.sgl_ctx.sgl.mul_sgl.sgl_size = in bnx2fc_init_task()
1740 task->txwr_rxrd.const_ctx.init_flags |= task_type << in bnx2fc_init_task()
1743 task->txwr_rxrd.const_ctx.init_flags |= in bnx2fc_init_task()
1749 task->txwr_rxrd.const_ctx.init_flags |= in bnx2fc_init_task()
1752 task->txwr_rxrd.const_ctx.init_flags |= FCOE_TASK_CLASS_TYPE_3 << in bnx2fc_init_task()
1755 task->txwr_rxrd.const_ctx.tx_flags = FCOE_TASK_TX_STATE_NORMAL << in bnx2fc_init_task()
1759 task->txwr_rxrd.union_ctx.tx_seq.ctx.seq_cnt = 1; in bnx2fc_init_task()
1763 task->txwr_rxrd.union_ctx.fcp_cmd.opaque; in bnx2fc_init_task()
1775 task->rxwr_txrd.const_ctx.data_2_trns = io_req->data_xfer_len; in bnx2fc_init_task()
1778 task->rxwr_txrd.const_ctx.init_flags = context_id << in bnx2fc_init_task()
1783 task->rxwr_txrd.var_ctx.rx_flags |= 1 << in bnx2fc_init_task()
1786 task->rxwr_txrd.var_ctx.rx_id = 0xffff; in bnx2fc_init_task()
1792 sgl = &task->rxwr_only.union_ctx.read_info.sgl_ctx.sgl; in bnx2fc_init_task()
1803 task->txwr_rxrd.const_ctx.init_flags |= 1 << in bnx2fc_init_task()
1818 task->txwr_rxrd.const_ctx.init_flags |= 1 << in bnx2fc_init_task()