Home
last modified time | relevance | path

Searched refs:tgt (Results 1 – 25 of 58) sorted by relevance

123

/drivers/scsi/bnx2fc/
Dbnx2fc_tgt.c19 static int bnx2fc_init_tgt(struct bnx2fc_rport *tgt,
23 struct bnx2fc_rport *tgt);
25 struct bnx2fc_rport *tgt);
27 struct bnx2fc_rport *tgt);
33 struct bnx2fc_rport *tgt = from_timer(tgt, t, upld_timer); in bnx2fc_upld_timer() local
35 BNX2FC_TGT_DBG(tgt, "upld_timer - Upload compl not received!!\n"); in bnx2fc_upld_timer()
37 clear_bit(BNX2FC_FLAG_OFFLOADED, &tgt->flags); in bnx2fc_upld_timer()
38 clear_bit(BNX2FC_FLAG_ENABLED, &tgt->flags); in bnx2fc_upld_timer()
39 set_bit(BNX2FC_FLAG_UPLD_REQ_COMPL, &tgt->flags); in bnx2fc_upld_timer()
40 wake_up_interruptible(&tgt->upld_wait); in bnx2fc_upld_timer()
[all …]
Dbnx2fc_hwi.c172 struct bnx2fc_rport *tgt) in bnx2fc_send_session_ofld_req() argument
183 struct fc_rport_priv *rdata = tgt->rdata; in bnx2fc_send_session_ofld_req()
184 struct fc_rport *rport = tgt->rport; in bnx2fc_send_session_ofld_req()
198 conn_id = (u16)tgt->fcoe_conn_id; in bnx2fc_send_session_ofld_req()
202 ofld_req1.sq_addr_lo = (u32) tgt->sq_dma; in bnx2fc_send_session_ofld_req()
203 ofld_req1.sq_addr_hi = (u32)((u64) tgt->sq_dma >> 32); in bnx2fc_send_session_ofld_req()
205 ofld_req1.rq_pbl_addr_lo = (u32) tgt->rq_pbl_dma; in bnx2fc_send_session_ofld_req()
206 ofld_req1.rq_pbl_addr_hi = (u32)((u64) tgt->rq_pbl_dma >> 32); in bnx2fc_send_session_ofld_req()
208 ofld_req1.rq_first_pbe_addr_lo = (u32) tgt->rq_dma; in bnx2fc_send_session_ofld_req()
210 (u32)((u64) tgt->rq_dma >> 32); in bnx2fc_send_session_ofld_req()
[all …]
Dbnx2fc_io.c45 struct bnx2fc_rport *tgt = io_req->tgt; in bnx2fc_cmd_timeout() local
51 spin_lock_bh(&tgt->tgt_lock); in bnx2fc_cmd_timeout()
58 spin_unlock_bh(&tgt->tgt_lock); in bnx2fc_cmd_timeout()
87 spin_unlock_bh(&tgt->tgt_lock); in bnx2fc_cmd_timeout()
108 spin_unlock_bh(&tgt->tgt_lock); in bnx2fc_cmd_timeout()
125 spin_unlock_bh(&tgt->tgt_lock); in bnx2fc_cmd_timeout()
159 spin_unlock_bh(&tgt->tgt_lock); in bnx2fc_cmd_timeout()
394 struct bnx2fc_cmd *bnx2fc_elstm_alloc(struct bnx2fc_rport *tgt, int type) in bnx2fc_elstm_alloc() argument
396 struct fcoe_port *port = tgt->port; in bnx2fc_elstm_alloc()
407 max_sqes = tgt->max_sqes; in bnx2fc_elstm_alloc()
[all …]
Dbnx2fc_els.c23 static int bnx2fc_initiate_els(struct bnx2fc_rport *tgt, unsigned int op,
64 struct bnx2fc_rport *tgt = aborted_io_req->tgt; in bnx2fc_send_rrq() local
72 if (!test_bit(BNX2FC_FLAG_SESSION_READY, &tgt->flags)) in bnx2fc_send_rrq()
75 lport = tgt->rdata->local_port; in bnx2fc_send_rrq()
76 sid = tgt->sid; in bnx2fc_send_rrq()
98 rc = bnx2fc_initiate_els(tgt, ELS_RRQ, &rrq, sizeof(rrq), in bnx2fc_send_rrq()
115 spin_lock_bh(&tgt->tgt_lock); in bnx2fc_send_rrq()
117 spin_unlock_bh(&tgt->tgt_lock); in bnx2fc_send_rrq()
125 struct bnx2fc_rport *tgt; in bnx2fc_l2_els_compl() local
153 tgt = els_req->tgt; in bnx2fc_l2_els_compl()
[all …]
Dbnx2fc_debug.c41 void BNX2FC_TGT_DBG(const struct bnx2fc_rport *tgt, const char *fmt, ...) in BNX2FC_TGT_DBG() argument
54 if (tgt && tgt->port && tgt->port->lport && tgt->port->lport->host && in BNX2FC_TGT_DBG()
55 tgt->rport) in BNX2FC_TGT_DBG()
56 shost_printk(KERN_INFO, tgt->port->lport->host, in BNX2FC_TGT_DBG()
58 tgt->rport->port_id, &vaf); in BNX2FC_TGT_DBG()
Dbnx2fc.h429 struct bnx2fc_rport *tgt; member
483 struct bnx2fc_rport *tgt; member
498 struct bnx2fc_cmd *bnx2fc_cmd_alloc(struct bnx2fc_rport *tgt);
499 struct bnx2fc_cmd *bnx2fc_elstm_alloc(struct bnx2fc_rport *tgt, int type);
505 struct bnx2fc_rport *tgt);
507 struct bnx2fc_rport *tgt);
509 struct bnx2fc_rport *tgt);
511 struct bnx2fc_rport *tgt);
512 int bnx2fc_map_doorbell(struct bnx2fc_rport *tgt);
522 char *bnx2fc_get_next_rqe(struct bnx2fc_rport *tgt, u8 num_items);
[all …]
Dbnx2fc_fcoe.c194 struct bnx2fc_rport *tgt; in bnx2fc_cleanup() local
201 tgt = hba->tgt_ofld_list[i]; in bnx2fc_cleanup()
202 if (tgt) { in bnx2fc_cleanup()
204 if (tgt->port == port) { in bnx2fc_cleanup()
206 BNX2FC_TGT_DBG(tgt, "flush/cleanup\n"); in bnx2fc_cleanup()
207 bnx2fc_flush_active_ios(tgt); in bnx2fc_cleanup()
216 static int bnx2fc_xmit_l2_frame(struct bnx2fc_rport *tgt, in bnx2fc_xmit_l2_frame() argument
219 struct fc_rport_priv *rdata = tgt->rdata; in bnx2fc_xmit_l2_frame()
224 BNX2FC_TGT_DBG(tgt, "Xmit L2 frame rport = 0x%x, oxid = 0x%x, " in bnx2fc_xmit_l2_frame()
232 rc = bnx2fc_send_adisc(tgt, fp); in bnx2fc_xmit_l2_frame()
[all …]
/drivers/scsi/snic/
Dsnic_disc.c166 struct snic_tgt *tgt = container_of(work, struct snic_tgt, scan_work); in snic_scsi_scan_tgt() local
167 struct Scsi_Host *shost = dev_to_shost(&tgt->dev); in snic_scsi_scan_tgt()
170 SNIC_HOST_INFO(shost, "Scanning Target id 0x%x\n", tgt->id); in snic_scsi_scan_tgt()
171 scsi_scan_target(&tgt->dev, in snic_scsi_scan_tgt()
172 tgt->channel, in snic_scsi_scan_tgt()
173 tgt->scsi_tgt_id, in snic_scsi_scan_tgt()
178 tgt->flags &= ~SNIC_TGT_SCAN_PENDING; in snic_scsi_scan_tgt()
189 struct snic_tgt *tgt = NULL; in snic_tgt_lookup() local
192 tgt = list_entry(cur, struct snic_tgt, list); in snic_tgt_lookup()
193 if (tgt->id == le32_to_cpu(tgtid->tgt_id)) in snic_tgt_lookup()
[all …]
Dsnic_scsi.c241 struct snic_tgt *tgt, in snic_issue_scsi_req() argument
273 rqi->tgt_id = tgt->id; in snic_issue_scsi_req()
335 struct snic_tgt *tgt = NULL; in snic_queuecommand() local
339 tgt = starget_to_tgt(scsi_target(sc->device)); in snic_queuecommand()
340 ret = snic_tgt_chkready(tgt); in snic_queuecommand()
342 SNIC_HOST_ERR(shost, "Tgt %p id %d Not Ready.\n", tgt, tgt->id); in snic_queuecommand()
361 ret = snic_issue_scsi_req(snic, tgt, sc); in snic_queuecommand()
1510 struct snic_tgt *tgt = NULL; in snic_send_abort_and_wait() local
1516 tgt = starget_to_tgt(scsi_target(sc->device)); in snic_send_abort_and_wait()
1517 if ((snic_tgt_chkready(tgt) != 0) && (tgt->tdata.typ == SNIC_TGT_SAN)) in snic_send_abort_and_wait()
[all …]
Dsnic_disc.h114 snic_tgt_chkready(struct snic_tgt *tgt) in snic_tgt_chkready() argument
116 if (tgt->state == SNIC_TGT_STAT_ONLINE) in snic_tgt_chkready()
/drivers/firewire/
Dsbp2.c119 struct sbp2_target *tgt; member
169 static struct fw_device *target_parent_device(struct sbp2_target *tgt) in target_parent_device() argument
171 return fw_parent_device(tgt->unit); in target_parent_device()
174 static const struct device *tgt_dev(const struct sbp2_target *tgt) in tgt_dev() argument
176 return &tgt->unit->device; in tgt_dev()
181 return &lu->tgt->unit->device; in lu_dev()
435 spin_lock_irqsave(&lu->tgt->lock, flags); in sbp2_status_write()
445 spin_unlock_irqrestore(&lu->tgt->lock, flags); in sbp2_status_write()
472 spin_lock_irqsave(&orb->lu->tgt->lock, flags); in complete_transaction()
478 spin_unlock_irqrestore(&orb->lu->tgt->lock, flags); in complete_transaction()
[all …]
/drivers/scsi/ibmvscsi/
Dibmvfc.c493 static int ibmvfc_set_tgt_action(struct ibmvfc_target *tgt, in ibmvfc_set_tgt_action() argument
498 switch (tgt->action) { in ibmvfc_set_tgt_action()
502 tgt->action = action; in ibmvfc_set_tgt_action()
509 tgt->action = action; in ibmvfc_set_tgt_action()
515 tgt->action = action; in ibmvfc_set_tgt_action()
521 tgt->action = action; in ibmvfc_set_tgt_action()
527 tgt->action = action; in ibmvfc_set_tgt_action()
534 tgt->action = action; in ibmvfc_set_tgt_action()
540 tgt->add_rport = 0; in ibmvfc_set_tgt_action()
655 static void ibmvfc_del_tgt(struct ibmvfc_target *tgt) in ibmvfc_del_tgt() argument
[all …]
/drivers/scsi/qla2xxx/
Dqla_target.c119 static void qlt_clear_tgt_db(struct qla_tgt *tgt);
217 BUG_ON(ha->tgt.tgt_vp_map == NULL); in qlt_find_host_by_vp_idx()
219 return ha->tgt.tgt_vp_map[vp_idx].vha; in qlt_find_host_by_vp_idx()
228 spin_lock_irqsave(&vha->hw->tgt.q_full_lock, flags); in qlt_incr_num_pend_cmds()
230 vha->hw->tgt.num_pend_cmds++; in qlt_incr_num_pend_cmds()
231 if (vha->hw->tgt.num_pend_cmds > vha->qla_stats.stat_max_pend_cmds) in qlt_incr_num_pend_cmds()
233 vha->hw->tgt.num_pend_cmds; in qlt_incr_num_pend_cmds()
234 spin_unlock_irqrestore(&vha->hw->tgt.q_full_lock, flags); in qlt_incr_num_pend_cmds()
240 spin_lock_irqsave(&vha->hw->tgt.q_full_lock, flags); in qlt_decr_num_pend_cmds()
241 vha->hw->tgt.num_pend_cmds--; in qlt_decr_num_pend_cmds()
[all …]
Dqla_dfs.c155 struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; in qla2x00_dfs_tgt_sess_show() local
158 if (tgt) { in qla2x00_dfs_tgt_sess_show()
161 spin_lock_irqsave(&ha->tgt.sess_lock, flags); in qla2x00_dfs_tgt_sess_show()
167 spin_unlock_irqrestore(&ha->tgt.sess_lock, flags); in qla2x00_dfs_tgt_sess_show()
504 seq_printf(s, "%d\n", ha->tgt.num_act_qpairs); in qla_dfs_naqp_show()
554 if (num_act_qp != ha->tgt.num_act_qpairs) { in qla_dfs_naqp_write()
555 ha->tgt.num_act_qpairs = num_act_qp; in qla_dfs_naqp_write()
606 ha->tgt.dfs_tgt_port_database = debugfs_create_file("tgt_port_database", in qla2x00_dfs_setup()
612 ha->tgt.dfs_tgt_sess = debugfs_create_file("tgt_sess", in qla2x00_dfs_setup()
616 ha->tgt.dfs_naqp = debugfs_create_file("naqp", in qla2x00_dfs_setup()
[all …]
/drivers/firmware/
Discsi_ibft.c176 struct ibft_tgt *tgt; member
354 struct ibft_tgt *tgt = entry->tgt; in ibft_attr_show_target() local
359 if (!tgt) in ibft_attr_show_target()
364 str += sprintf(str, "%d\n", tgt->hdr.index); in ibft_attr_show_target()
367 str += sprintf(str, "%d\n", tgt->hdr.flags); in ibft_attr_show_target()
370 str += sprintf_ipaddr(str, tgt->ip_addr); in ibft_attr_show_target()
373 str += sprintf(str, "%d\n", tgt->port); in ibft_attr_show_target()
377 str += sprintf(str, "%x", (u8)tgt->lun[i]); in ibft_attr_show_target()
381 str += sprintf(str, "%d\n", tgt->nic_assoc); in ibft_attr_show_target()
384 str += sprintf(str, "%d\n", tgt->chap_type); in ibft_attr_show_target()
[all …]
/drivers/scsi/
DBusLogic.c1246 unsigned char *tgt, ch; in blogic_rdconfig() local
1256 tgt = adapter->model; in blogic_rdconfig()
1257 *tgt++ = 'B'; in blogic_rdconfig()
1258 *tgt++ = 'T'; in blogic_rdconfig()
1259 *tgt++ = '-'; in blogic_rdconfig()
1261 *tgt++ = fpinfo->model[i]; in blogic_rdconfig()
1262 *tgt++ = '\0'; in blogic_rdconfig()
1376 tgt = adapter->model; in blogic_rdconfig()
1377 *tgt++ = 'B'; in blogic_rdconfig()
1378 *tgt++ = 'T'; in blogic_rdconfig()
[all …]
Dmesh.c82 #define ALLOW_SYNC(tgt) ((sync_targets >> (tgt)) & 1) argument
83 #define ALLOW_RESEL(tgt) ((resel_targets >> (tgt)) & 1) argument
84 #define ALLOW_DEBUG(tgt) ((debug_targets >> (tgt)) & 1) argument
99 u8 tgt; member
225 tlp->tgt = ms->conn_tgt; in dlog()
278 lp->bs1, lp->bs0, lp->phase, lp->tgt); in dumpslog()
293 static inline void dumplog(struct mesh_state *ms, int tgt) in dumplog() argument
989 int tgt; in handle_reset() local
994 for (tgt = 0; tgt < 8; ++tgt) { in handle_reset()
995 tp = &ms->tgts[tgt]; in handle_reset()
[all …]
Desp_scsi.c495 static void esp_write_tgt_config3(struct esp *esp, int tgt) in esp_write_tgt_config3() argument
498 u8 val = esp->target[tgt].esp_config3; in esp_write_tgt_config3()
507 static void esp_write_tgt_sync(struct esp *esp, int tgt) in esp_write_tgt_sync() argument
509 u8 off = esp->target[tgt].esp_offset; in esp_write_tgt_sync()
510 u8 per = esp->target[tgt].esp_period; in esp_write_tgt_sync()
661 int tgt, lun; in esp_autosense() local
664 tgt = dev->id; in esp_autosense()
670 tgt, lun); in esp_autosense()
691 val = tgt; in esp_autosense()
696 esp_write_tgt_sync(esp, tgt); in esp_autosense()
[all …]
/drivers/media/dvb-frontends/cxd2880/
Dcxd2880_io.c13 enum cxd2880_io_tgt tgt, in cxd2880_io_common_write_one_reg() argument
19 return io->write_regs(io, tgt, sub_address, &data, 1); in cxd2880_io_common_write_one_reg()
23 enum cxd2880_io_tgt tgt, in cxd2880_io_set_reg_bits() argument
37 ret = io->read_regs(io, tgt, sub_address, &rdata, 1); in cxd2880_io_set_reg_bits()
44 return io->write_reg(io, tgt, sub_address, data); in cxd2880_io_set_reg_bits()
48 enum cxd2880_io_tgt tgt, in cxd2880_io_write_multi_regs() argument
59 ret = io->write_reg(io, tgt, reg_value[i].addr, in cxd2880_io_write_multi_regs()
Dcxd2880_io.h27 enum cxd2880_io_tgt tgt, u8 sub_address,
30 enum cxd2880_io_tgt tgt, u8 sub_address,
33 enum cxd2880_io_tgt tgt, u8 sub_address,
43 enum cxd2880_io_tgt tgt,
47 enum cxd2880_io_tgt tgt,
51 enum cxd2880_io_tgt tgt,
Dcxd2880_devio_spi.c15 enum cxd2880_io_tgt tgt, in cxd2880_io_spi_read_reg() argument
32 if (tgt == CXD2880_IO_TGT_SYS) in cxd2880_io_spi_read_reg()
63 enum cxd2880_io_tgt tgt, in cxd2880_io_spi_write_reg() argument
83 if (tgt == CXD2880_IO_TGT_SYS) in cxd2880_io_spi_write_reg()
97 if (tgt == CXD2880_IO_TGT_SYS) { in cxd2880_io_spi_write_reg()
/drivers/md/
Ddm-table.c192 struct dm_target *tgt = t->targets + i; in dm_table_destroy() local
194 if (tgt->type->dtr) in dm_table_destroy()
195 tgt->type->dtr(tgt); in dm_table_destroy()
197 dm_put_target_type(tgt->type); in dm_table_destroy()
646 struct dm_target *tgt; in dm_table_add_target() local
656 tgt = t->targets + t->num_targets; in dm_table_add_target()
657 memset(tgt, 0, sizeof(*tgt)); in dm_table_add_target()
664 tgt->type = dm_get_target_type(type); in dm_table_add_target()
665 if (!tgt->type) { in dm_table_add_target()
670 if (dm_target_needs_singleton(tgt->type)) { in dm_table_add_target()
[all …]
Ddm-zone.c33 struct dm_target *tgt; in dm_blk_do_report_zones() local
35 tgt = dm_table_find_target(t, args.next_sector); in dm_blk_do_report_zones()
36 if (WARN_ON_ONCE(!tgt->type->report_zones)) in dm_blk_do_report_zones()
39 args.tgt = tgt; in dm_blk_do_report_zones()
40 ret = tgt->type->report_zones(tgt, &args, in dm_blk_do_report_zones()
80 sector_t sector_diff = args->tgt->begin - args->start; in dm_report_zones_cb()
85 if (zone->start >= args->start + args->tgt->len) in dm_report_zones_cb()
/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp6000_pcie.c198 int tgt, int act, int tok, u64 offset, size_t size, int width) in compute_bar() argument
203 if (tgt >= NFP_CPP_NUM_TARGETS) in compute_bar()
229 newcfg |= NFP_PCIE_BAR_PCIE2CPP_Target_BaseAddress(tgt); in compute_bar()
244 newcfg |= NFP_PCIE_BAR_PCIE2CPP_Target_BaseAddress(tgt); in compute_bar()
295 int tgt, int act, int tok, u64 offset, size_t size, int width) in reconfigure_bar() argument
302 tgt, act, tok, offset, size, width); in reconfigure_bar()
312 static int matching_bar(struct nfp_bar *bar, u32 tgt, u32 act, u32 tok, in matching_bar() argument
360 if ((bartgt < 0 || bartgt == tgt) && in matching_bar()
373 u32 tgt, u32 act, u32 tok, u64 offset, size_t size, int width) in find_matching_bar() argument
380 if (matching_bar(bar, tgt, act, tok, offset, size, width)) in find_matching_bar()
[all …]
/drivers/edac/
Dskx_base.c229 #define SKX_ILV_REMOTE(tgt) (((tgt) & 8) == 0) argument
230 #define SKX_ILV_TARGET(tgt) ((tgt) & 7) argument
270 int i, idx, tgt, lchan, shift; in skx_sad_decode() local
313 tgt = GET_BITFIELD(ilv, 4 * idx, 4 * idx + 3); in skx_sad_decode()
316 if (SKX_ILV_REMOTE(tgt)) { in skx_sad_decode()
323 if (d->imc[0].src_id == SKX_ILV_TARGET(tgt)) in skx_sad_decode()
326 edac_dbg(0, "Can't find node %d\n", SKX_ILV_TARGET(tgt)); in skx_sad_decode()
331 lchan = SKX_ILV_TARGET(tgt); in skx_sad_decode()
362 lchan = (lchan << 1) | (SKX_ILV_TARGET(tgt) & 1); in skx_sad_decode()

123