Home
last modified time | relevance | path

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

123

/drivers/scsi/bnx2fc/
Dbnx2fc_tgt.c18 static int bnx2fc_init_tgt(struct bnx2fc_rport *tgt,
22 struct bnx2fc_rport *tgt);
24 struct bnx2fc_rport *tgt);
26 struct bnx2fc_rport *tgt);
32 struct bnx2fc_rport *tgt = (struct bnx2fc_rport *)data; in bnx2fc_upld_timer() local
34 BNX2FC_TGT_DBG(tgt, "upld_timer - Upload compl not received!!\n"); in bnx2fc_upld_timer()
36 clear_bit(BNX2FC_FLAG_OFFLOADED, &tgt->flags); in bnx2fc_upld_timer()
37 clear_bit(BNX2FC_FLAG_ENABLED, &tgt->flags); in bnx2fc_upld_timer()
38 set_bit(BNX2FC_FLAG_UPLD_REQ_COMPL, &tgt->flags); in bnx2fc_upld_timer()
39 wake_up_interruptible(&tgt->upld_wait); in bnx2fc_upld_timer()
[all …]
Dbnx2fc_hwi.c171 struct bnx2fc_rport *tgt) in bnx2fc_send_session_ofld_req() argument
182 struct fc_rport_priv *rdata = tgt->rdata; in bnx2fc_send_session_ofld_req()
183 struct fc_rport *rport = tgt->rport; in bnx2fc_send_session_ofld_req()
197 conn_id = (u16)tgt->fcoe_conn_id; in bnx2fc_send_session_ofld_req()
201 ofld_req1.sq_addr_lo = (u32) tgt->sq_dma; in bnx2fc_send_session_ofld_req()
202 ofld_req1.sq_addr_hi = (u32)((u64) tgt->sq_dma >> 32); in bnx2fc_send_session_ofld_req()
204 ofld_req1.rq_pbl_addr_lo = (u32) tgt->rq_pbl_dma; in bnx2fc_send_session_ofld_req()
205 ofld_req1.rq_pbl_addr_hi = (u32)((u64) tgt->rq_pbl_dma >> 32); in bnx2fc_send_session_ofld_req()
207 ofld_req1.rq_first_pbe_addr_lo = (u32) tgt->rq_dma; in bnx2fc_send_session_ofld_req()
209 (u32)((u64) tgt->rq_dma >> 32); in bnx2fc_send_session_ofld_req()
[all …]
Dbnx2fc_io.c44 struct bnx2fc_rport *tgt = io_req->tgt; in bnx2fc_cmd_timeout() local
50 spin_lock_bh(&tgt->tgt_lock); in bnx2fc_cmd_timeout()
57 spin_unlock_bh(&tgt->tgt_lock); in bnx2fc_cmd_timeout()
86 spin_unlock_bh(&tgt->tgt_lock); in bnx2fc_cmd_timeout()
107 spin_unlock_bh(&tgt->tgt_lock); in bnx2fc_cmd_timeout()
124 spin_unlock_bh(&tgt->tgt_lock); in bnx2fc_cmd_timeout()
158 spin_unlock_bh(&tgt->tgt_lock); in bnx2fc_cmd_timeout()
393 struct bnx2fc_cmd *bnx2fc_elstm_alloc(struct bnx2fc_rport *tgt, int type) in bnx2fc_elstm_alloc() argument
395 struct fcoe_port *port = tgt->port; in bnx2fc_elstm_alloc()
406 max_sqes = tgt->max_sqes; in bnx2fc_elstm_alloc()
[all …]
Dbnx2fc_els.c22 static int bnx2fc_initiate_els(struct bnx2fc_rport *tgt, unsigned int op,
63 struct bnx2fc_rport *tgt = aborted_io_req->tgt; in bnx2fc_send_rrq() local
64 struct fc_lport *lport = tgt->rdata->local_port; in bnx2fc_send_rrq()
66 u32 sid = tgt->sid; in bnx2fc_send_rrq()
90 rc = bnx2fc_initiate_els(tgt, ELS_RRQ, &rrq, sizeof(rrq), in bnx2fc_send_rrq()
107 spin_lock_bh(&tgt->tgt_lock); in bnx2fc_send_rrq()
109 spin_unlock_bh(&tgt->tgt_lock); in bnx2fc_send_rrq()
117 struct bnx2fc_rport *tgt; in bnx2fc_l2_els_compl() local
145 tgt = els_req->tgt; in bnx2fc_l2_els_compl()
166 bnx2fc_process_l2_frame_compl(tgt, buf, frame_len, l2_oxid); in bnx2fc_l2_els_compl()
[all …]
Dbnx2fc.h428 struct bnx2fc_rport *tgt; member
479 struct bnx2fc_rport *tgt; member
491 struct bnx2fc_cmd *bnx2fc_cmd_alloc(struct bnx2fc_rport *tgt);
492 struct bnx2fc_cmd *bnx2fc_elstm_alloc(struct bnx2fc_rport *tgt, int type);
498 struct bnx2fc_rport *tgt);
500 struct bnx2fc_rport *tgt);
502 struct bnx2fc_rport *tgt);
504 struct bnx2fc_rport *tgt);
505 int bnx2fc_map_doorbell(struct bnx2fc_rport *tgt);
515 char *bnx2fc_get_next_rqe(struct bnx2fc_rport *tgt, u8 num_items);
[all …]
Dbnx2fc_debug.c40 void BNX2FC_TGT_DBG(const struct bnx2fc_rport *tgt, const char *fmt, ...) in BNX2FC_TGT_DBG() argument
53 if (tgt && tgt->port && tgt->port->lport && tgt->port->lport->host && in BNX2FC_TGT_DBG()
54 tgt->rport) in BNX2FC_TGT_DBG()
55 shost_printk(KERN_INFO, tgt->port->lport->host, in BNX2FC_TGT_DBG()
57 tgt->rport->port_id, &vaf); in BNX2FC_TGT_DBG()
/drivers/scsi/snic/
Dsnic_disc.c165 struct snic_tgt *tgt = container_of(work, struct snic_tgt, scan_work); in snic_scsi_scan_tgt() local
166 struct Scsi_Host *shost = dev_to_shost(&tgt->dev); in snic_scsi_scan_tgt()
169 SNIC_HOST_INFO(shost, "Scanning Target id 0x%x\n", tgt->id); in snic_scsi_scan_tgt()
170 scsi_scan_target(&tgt->dev, in snic_scsi_scan_tgt()
171 tgt->channel, in snic_scsi_scan_tgt()
172 tgt->scsi_tgt_id, in snic_scsi_scan_tgt()
177 tgt->flags &= ~SNIC_TGT_SCAN_PENDING; in snic_scsi_scan_tgt()
188 struct snic_tgt *tgt = NULL; in snic_tgt_lookup() local
191 tgt = list_entry(cur, struct snic_tgt, list); in snic_tgt_lookup()
192 if (tgt->id == le32_to_cpu(tgtid->tgt_id)) in snic_tgt_lookup()
[all …]
Dsnic_scsi.c242 struct snic_tgt *tgt, in snic_issue_scsi_req() argument
274 rqi->tgt_id = tgt->id; in snic_issue_scsi_req()
336 struct snic_tgt *tgt = NULL; in snic_queuecommand() local
340 tgt = starget_to_tgt(scsi_target(sc->device)); in snic_queuecommand()
341 ret = snic_tgt_chkready(tgt); in snic_queuecommand()
343 SNIC_HOST_ERR(shost, "Tgt %p id %d Not Ready.\n", tgt, tgt->id); in snic_queuecommand()
364 ret = snic_issue_scsi_req(snic, tgt, sc); in snic_queuecommand()
1517 struct snic_tgt *tgt = NULL; in snic_send_abort_and_wait() local
1523 tgt = starget_to_tgt(scsi_target(sc->device)); in snic_send_abort_and_wait()
1524 if ((snic_tgt_chkready(tgt) != 0) && (tgt->tdata.typ == SNIC_TGT_SAN)) in snic_send_abort_and_wait()
[all …]
/drivers/staging/lustre/lustre/lmv/
Dlmv_obd.c57 struct lmv_tgt_desc *tgt, in lmv_activate_target() argument
60 if (tgt->ltd_active == activate) in lmv_activate_target()
63 tgt->ltd_active = activate; in lmv_activate_target()
77 struct lmv_tgt_desc *uninitialized_var(tgt); in lmv_set_mdc_active()
87 tgt = lmv->tgts[i]; in lmv_set_mdc_active()
88 if (!tgt || !tgt->ltd_exp) in lmv_set_mdc_active()
92 tgt->ltd_uuid.uuid, tgt->ltd_exp->exp_handle.h_cookie); in lmv_set_mdc_active()
94 if (obd_uuid_equals(uuid, &tgt->ltd_uuid)) in lmv_set_mdc_active()
103 obd = class_exp2obd(tgt->ltd_exp); in lmv_set_mdc_active()
114 if (tgt->ltd_active == activate) { in lmv_set_mdc_active()
[all …]
Dlmv_intent.c62 struct lmv_tgt_desc *tgt; in lmv_intent_remote() local
92 tgt = lmv_find_target(lmv, &body->mbo_fid1); in lmv_intent_remote()
93 if (IS_ERR(tgt)) { in lmv_intent_remote()
94 rc = PTR_ERR(tgt); in lmv_intent_remote()
117 PFID(&body->mbo_fid1), tgt->ltd_idx); in lmv_intent_remote()
119 rc = md_intent_lock(tgt->ltd_exp, op_data, it, &req, cb_blocking, in lmv_intent_remote()
178 struct lmv_tgt_desc *tgt = NULL; in lmv_revalidate_slaves() local
194 tgt = lmv_locate_mds(lmv, op_data, &fid); in lmv_revalidate_slaves()
195 if (IS_ERR(tgt)) { in lmv_revalidate_slaves()
196 rc = PTR_ERR(tgt); in lmv_revalidate_slaves()
[all …]
Dlproc_lmv.c168 struct lmv_tgt_desc *tgt = v; in lmv_tgt_seq_show() local
170 if (!tgt) in lmv_tgt_seq_show()
173 tgt->ltd_idx, tgt->ltd_uuid.uuid, in lmv_tgt_seq_show()
174 tgt->ltd_active ? "" : "IN"); in lmv_tgt_seq_show()
/drivers/firewire/
Dsbp2.c132 struct sbp2_target *tgt; member
182 static struct fw_device *target_parent_device(struct sbp2_target *tgt) in target_parent_device() argument
184 return fw_parent_device(tgt->unit); in target_parent_device()
187 static const struct device *tgt_dev(const struct sbp2_target *tgt) in tgt_dev() argument
189 return &tgt->unit->device; in tgt_dev()
194 return &lu->tgt->unit->device; in lu_dev()
448 spin_lock_irqsave(&lu->tgt->lock, flags); in sbp2_status_write()
457 spin_unlock_irqrestore(&lu->tgt->lock, flags); in sbp2_status_write()
484 spin_lock_irqsave(&orb->lu->tgt->lock, flags); in complete_transaction()
490 spin_unlock_irqrestore(&orb->lu->tgt->lock, flags); in complete_transaction()
[all …]
/drivers/scsi/qla2xxx/
Dqla_target.c116 static void qlt_clear_tgt_db(struct qla_tgt *tgt);
145 struct qla_tgt *tgt, in qlt_find_sess_by_port_name() argument
150 list_for_each_entry(sess, &tgt->sess_list, sess_list_entry) { in qlt_find_sess_by_port_name()
187 BUG_ON(ha->tgt.tgt_vp_map == NULL); in qlt_find_host_by_d_id()
188 vp_idx = ha->tgt.tgt_vp_map[d_id[2]].idx; in qlt_find_host_by_d_id()
190 return ha->tgt.tgt_vp_map[vp_idx].vha; in qlt_find_host_by_d_id()
204 BUG_ON(ha->tgt.tgt_vp_map == NULL); in qlt_find_host_by_vp_idx()
206 return ha->tgt.tgt_vp_map[vp_idx].vha; in qlt_find_host_by_vp_idx()
215 spin_lock_irqsave(&vha->hw->tgt.q_full_lock, flags); in qlt_incr_num_pend_cmds()
217 vha->hw->tgt.num_pend_cmds++; in qlt_incr_num_pend_cmds()
[all …]
Dqla_dfs.c22 struct qla_tgt *tgt= vha->vha_tgt.qla_tgt; in qla2x00_dfs_tgt_sess_show() local
25 if (tgt) { in qla2x00_dfs_tgt_sess_show()
28 spin_lock_irqsave(&ha->tgt.sess_lock, flags); in qla2x00_dfs_tgt_sess_show()
29 list_for_each_entry(sess, &tgt->sess_list, sess_list_entry) { in qla2x00_dfs_tgt_sess_show()
35 spin_unlock_irqrestore(&ha->tgt.sess_lock, flags); in qla2x00_dfs_tgt_sess_show()
293 ha->tgt.dfs_tgt_sess = debugfs_create_file("tgt_sess", in qla2x00_dfs_setup()
295 if (!ha->tgt.dfs_tgt_sess) { in qla2x00_dfs_setup()
310 if (ha->tgt.dfs_tgt_sess) { in qla2x00_dfs_remove()
311 debugfs_remove(ha->tgt.dfs_tgt_sess); in qla2x00_dfs_remove()
312 ha->tgt.dfs_tgt_sess = NULL; in qla2x00_dfs_remove()
/drivers/staging/lustre/lustre/lov/
Dlov_merge.c108 void lov_merge_attrs(struct obdo *tgt, struct obdo *src, u64 valid, in lov_merge_attrs() argument
114 tgt->o_valid &= valid; in lov_merge_attrs()
120 if (lov_size > tgt->o_size) in lov_merge_attrs()
121 tgt->o_size = lov_size; in lov_merge_attrs()
124 tgt->o_blocks += src->o_blocks; in lov_merge_attrs()
126 tgt->o_blksize += src->o_blksize; in lov_merge_attrs()
127 if (valid & OBD_MD_FLCTIME && tgt->o_ctime < src->o_ctime) in lov_merge_attrs()
128 tgt->o_ctime = src->o_ctime; in lov_merge_attrs()
129 if (valid & OBD_MD_FLMTIME && tgt->o_mtime < src->o_mtime) in lov_merge_attrs()
130 tgt->o_mtime = src->o_mtime; in lov_merge_attrs()
[all …]
Dlov_obd.c73 static void __lov_del_obd(struct obd_device *obd, struct lov_tgt_desc *tgt);
84 struct lov_tgt_desc *tgt, *n; in lov_putref() local
89 tgt = lov->lov_tgts[i]; in lov_putref()
91 if (!tgt || !tgt->ltd_reap) in lov_putref()
93 list_add(&tgt->ltd_kill, &kill); in lov_putref()
104 list_for_each_entry_safe(tgt, n, &kill, ltd_kill) { in lov_putref()
105 list_del(&tgt->ltd_kill); in lov_putref()
107 __lov_del_obd(obd, tgt); in lov_putref()
203 struct lov_tgt_desc *tgt; in lov_connect() local
229 tgt = lov->lov_tgts[i]; in lov_connect()
[all …]
Dlov_request.c127 struct lov_tgt_desc *tgt; in lov_check_set() local
130 tgt = lov->lov_tgts[idx]; in lov_check_set()
131 rc = !tgt || tgt->ltd_active || in lov_check_set()
132 (tgt->ltd_exp && in lov_check_set()
133 class_exp2cliimp(tgt->ltd_exp)->imp_connect_tried); in lov_check_set()
147 struct lov_tgt_desc *tgt; in lov_check_and_wait_active() local
152 tgt = lov->lov_tgts[ost_idx]; in lov_check_and_wait_active()
154 if (unlikely(!tgt)) { in lov_check_and_wait_active()
159 if (likely(tgt->ltd_active)) { in lov_check_and_wait_active()
164 if (tgt->ltd_exp && class_exp2cliimp(tgt->ltd_exp)->imp_connect_tried) { in lov_check_and_wait_active()
[all …]
Dlov_dev.c394 struct lov_tgt_desc *tgt; in lov_cl_add_target() local
401 tgt = obd->u.lov.lov_tgts[index]; in lov_cl_add_target()
403 if (!tgt->ltd_obd->obd_set_up) { in lov_cl_add_target()
404 CERROR("Target %s not set up\n", obd_uuid2str(&tgt->ltd_uuid)); in lov_cl_add_target()
413 tgt->ltd_obd->obd_lu_dev); in lov_cl_add_target()
421 obd_uuid2str(&tgt->ltd_uuid)); in lov_cl_add_target()
/drivers/scsi/ibmvscsi/
Dibmvfc.c429 static void ibmvfc_set_tgt_action(struct ibmvfc_target *tgt, in ibmvfc_set_tgt_action() argument
432 switch (tgt->action) { in ibmvfc_set_tgt_action()
435 tgt->action = action; in ibmvfc_set_tgt_action()
440 tgt->add_rport = 0; in ibmvfc_set_tgt_action()
441 tgt->action = action; in ibmvfc_set_tgt_action()
560 struct ibmvfc_target *tgt; in ibmvfc_link_down() local
564 list_for_each_entry(tgt, &vhost->targets, queue) in ibmvfc_link_down()
565 ibmvfc_set_tgt_action(tgt, IBMVFC_TGT_ACTION_DEL_RPORT); in ibmvfc_link_down()
582 struct ibmvfc_target *tgt; in ibmvfc_init_host() local
597 list_for_each_entry(tgt, &vhost->targets, queue) in ibmvfc_init_host()
[all …]
/drivers/firmware/
Discsi_ibft.c182 struct ibft_tgt *tgt; member
360 struct ibft_tgt *tgt = entry->tgt; in ibft_attr_show_target() local
365 if (!tgt) in ibft_attr_show_target()
370 str += sprintf(str, "%d\n", tgt->hdr.index); in ibft_attr_show_target()
373 str += sprintf(str, "%d\n", tgt->hdr.flags); in ibft_attr_show_target()
376 str += sprintf_ipaddr(str, tgt->ip_addr); in ibft_attr_show_target()
379 str += sprintf(str, "%d\n", tgt->port); in ibft_attr_show_target()
383 str += sprintf(str, "%x", (u8)tgt->lun[i]); in ibft_attr_show_target()
387 str += sprintf(str, "%d\n", tgt->nic_assoc); in ibft_attr_show_target()
390 str += sprintf(str, "%d\n", tgt->chap_type); in ibft_attr_show_target()
[all …]
/drivers/scsi/
DBusLogic.c1358 unsigned char *tgt, ch; in blogic_rdconfig() local
1368 tgt = adapter->model; in blogic_rdconfig()
1369 *tgt++ = 'B'; in blogic_rdconfig()
1370 *tgt++ = 'T'; in blogic_rdconfig()
1371 *tgt++ = '-'; in blogic_rdconfig()
1373 *tgt++ = fpinfo->model[i]; in blogic_rdconfig()
1374 *tgt++ = '\0'; in blogic_rdconfig()
1488 tgt = adapter->model; in blogic_rdconfig()
1489 *tgt++ = 'B'; in blogic_rdconfig()
1490 *tgt++ = 'T'; in blogic_rdconfig()
[all …]
Dvirtio_scsi.c155 struct virtio_scsi_target_state *tgt = in virtscsi_complete_cmd() local
214 atomic_dec(&tgt->reqs); in virtscsi_complete_cmd()
584 struct virtio_scsi_target_state *tgt = in virtscsi_queuecommand_single() local
587 atomic_inc(&tgt->reqs); in virtscsi_queuecommand_single()
601 struct virtio_scsi_target_state *tgt) in virtscsi_pick_vq() argument
608 if (atomic_inc_return(&tgt->reqs) > 1) { in virtscsi_pick_vq()
612 seq = read_seqcount_begin(&tgt->tgt_seq); in virtscsi_pick_vq()
613 vq = tgt->req_vq; in virtscsi_pick_vq()
614 } while (read_seqcount_retry(&tgt->tgt_seq, seq)); in virtscsi_pick_vq()
617 write_seqcount_begin(&tgt->tgt_seq); in virtscsi_pick_vq()
[all …]
Dmesh.c81 #define ALLOW_SYNC(tgt) ((sync_targets >> (tgt)) & 1) argument
82 #define ALLOW_RESEL(tgt) ((resel_targets >> (tgt)) & 1) argument
83 #define ALLOW_DEBUG(tgt) ((debug_targets >> (tgt)) & 1) argument
98 u8 tgt; member
224 tlp->tgt = ms->conn_tgt; in dlog()
277 lp->bs1, lp->bs0, lp->phase, lp->tgt); in dumpslog()
292 static inline void dumplog(struct mesh_state *ms, int tgt) in dumplog() argument
987 int tgt; in handle_reset() local
992 for (tgt = 0; tgt < 8; ++tgt) { in handle_reset()
993 tp = &ms->tgts[tgt]; in handle_reset()
[all …]
Desp_scsi.c492 static void esp_write_tgt_config3(struct esp *esp, int tgt) in esp_write_tgt_config3() argument
495 u8 val = esp->target[tgt].esp_config3; in esp_write_tgt_config3()
504 static void esp_write_tgt_sync(struct esp *esp, int tgt) in esp_write_tgt_sync() argument
506 u8 off = esp->target[tgt].esp_offset; in esp_write_tgt_sync()
507 u8 per = esp->target[tgt].esp_period; in esp_write_tgt_sync()
640 int tgt, lun; in esp_autosense() local
643 tgt = dev->id; in esp_autosense()
649 tgt, lun); in esp_autosense()
675 val = tgt; in esp_autosense()
680 esp_write_tgt_sync(esp, tgt); in esp_autosense()
[all …]
/drivers/md/
Ddm-table.c246 struct dm_target *tgt = t->targets + i; in dm_table_destroy() local
248 if (tgt->type->dtr) in dm_table_destroy()
249 tgt->type->dtr(tgt); in dm_table_destroy()
251 dm_put_target_type(tgt->type); in dm_table_destroy()
679 struct dm_target *tgt; in dm_table_add_target() local
689 tgt = t->targets + t->num_targets; in dm_table_add_target()
690 memset(tgt, 0, sizeof(*tgt)); in dm_table_add_target()
697 tgt->type = dm_get_target_type(type); in dm_table_add_target()
698 if (!tgt->type) { in dm_table_add_target()
703 if (dm_target_needs_singleton(tgt->type)) { in dm_table_add_target()
[all …]

123