Home
last modified time | relevance | path

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

123

/Linux-v4.19/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
480 struct bnx2fc_rport *tgt; member
492 struct bnx2fc_cmd *bnx2fc_cmd_alloc(struct bnx2fc_rport *tgt);
493 struct bnx2fc_cmd *bnx2fc_elstm_alloc(struct bnx2fc_rport *tgt, int type);
499 struct bnx2fc_rport *tgt);
501 struct bnx2fc_rport *tgt);
503 struct bnx2fc_rport *tgt);
505 struct bnx2fc_rport *tgt);
506 int bnx2fc_map_doorbell(struct bnx2fc_rport *tgt);
516 char *bnx2fc_get_next_rqe(struct bnx2fc_rport *tgt, u8 num_items);
[all …]
Dbnx2fc_fcoe.c196 struct bnx2fc_rport *tgt; in bnx2fc_cleanup() local
203 tgt = hba->tgt_ofld_list[i]; in bnx2fc_cleanup()
204 if (tgt) { in bnx2fc_cleanup()
206 if (tgt->port == port) { in bnx2fc_cleanup()
208 BNX2FC_TGT_DBG(tgt, "flush/cleanup\n"); in bnx2fc_cleanup()
209 bnx2fc_flush_active_ios(tgt); in bnx2fc_cleanup()
218 static int bnx2fc_xmit_l2_frame(struct bnx2fc_rport *tgt, in bnx2fc_xmit_l2_frame() argument
221 struct fc_rport_priv *rdata = tgt->rdata; in bnx2fc_xmit_l2_frame()
226 BNX2FC_TGT_DBG(tgt, "Xmit L2 frame rport = 0x%x, oxid = 0x%x, " in bnx2fc_xmit_l2_frame()
234 rc = bnx2fc_send_adisc(tgt, fp); in bnx2fc_xmit_l2_frame()
[all …]
/Linux-v4.19/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_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()
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()
362 ret = snic_issue_scsi_req(snic, tgt, sc); in snic_queuecommand()
1515 struct snic_tgt *tgt = NULL; in snic_send_abort_and_wait() local
1521 tgt = starget_to_tgt(scsi_target(sc->device)); in snic_send_abort_and_wait()
1522 if ((snic_tgt_chkready(tgt) != 0) && (tgt->tdata.typ == SNIC_TGT_SAN)) in snic_send_abort_and_wait()
[all …]
/Linux-v4.19/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 …]
/Linux-v4.19/drivers/scsi/ibmvscsi/
Dibmvfc.c430 static void ibmvfc_set_tgt_action(struct ibmvfc_target *tgt, in ibmvfc_set_tgt_action() argument
433 switch (tgt->action) { in ibmvfc_set_tgt_action()
436 tgt->action = action; in ibmvfc_set_tgt_action()
441 tgt->add_rport = 0; in ibmvfc_set_tgt_action()
442 tgt->action = action; in ibmvfc_set_tgt_action()
561 struct ibmvfc_target *tgt; in ibmvfc_link_down() local
565 list_for_each_entry(tgt, &vhost->targets, queue) in ibmvfc_link_down()
566 ibmvfc_set_tgt_action(tgt, IBMVFC_TGT_ACTION_DEL_RPORT); in ibmvfc_link_down()
583 struct ibmvfc_target *tgt; in ibmvfc_init_host() local
598 list_for_each_entry(tgt, &vhost->targets, queue) in ibmvfc_init_host()
[all …]
/Linux-v4.19/drivers/scsi/qla2xxx/
Dqla_target.c130 static void qlt_clear_tgt_db(struct qla_tgt *tgt);
210 host = btree_lookup32(&vha->hw->tgt.host_map, key); in qlt_find_host_by_d_id()
227 BUG_ON(ha->tgt.tgt_vp_map == NULL); in qlt_find_host_by_vp_idx()
229 return ha->tgt.tgt_vp_map[vp_idx].vha; in qlt_find_host_by_vp_idx()
238 spin_lock_irqsave(&vha->hw->tgt.q_full_lock, flags); in qlt_incr_num_pend_cmds()
240 vha->hw->tgt.num_pend_cmds++; in qlt_incr_num_pend_cmds()
241 if (vha->hw->tgt.num_pend_cmds > vha->qla_stats.stat_max_pend_cmds) in qlt_incr_num_pend_cmds()
243 vha->hw->tgt.num_pend_cmds; in qlt_incr_num_pend_cmds()
244 spin_unlock_irqrestore(&vha->hw->tgt.q_full_lock, flags); in qlt_incr_num_pend_cmds()
250 spin_lock_irqsave(&vha->hw->tgt.q_full_lock, flags); in qlt_decr_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()
34 spin_unlock_irqrestore(&ha->tgt.sess_lock, flags); in qla2x00_dfs_tgt_sess_show()
65 struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; in qla2x00_dfs_tgt_port_database_show() local
68 if (tgt) { in qla2x00_dfs_tgt_port_database_show()
364 seq_printf(s, "%d\n", ha->tgt.num_act_qpairs); in qla_dfs_naqp_show()
414 if (num_act_qp != ha->tgt.num_act_qpairs) { in qla_dfs_naqp_write()
415 ha->tgt.num_act_qpairs = num_act_qp; in qla_dfs_naqp_write()
486 ha->tgt.dfs_tgt_port_database = debugfs_create_file("tgt_port_database", in qla2x00_dfs_setup()
[all …]
/Linux-v4.19/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()
/Linux-v4.19/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 …]
/Linux-v4.19/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 …]
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()
638 int tgt, lun; in esp_autosense() local
641 tgt = dev->id; in esp_autosense()
647 tgt, lun); in esp_autosense()
673 val = tgt; in esp_autosense()
678 esp_write_tgt_sync(esp, tgt); in esp_autosense()
[all …]
/Linux-v4.19/drivers/md/
Ddm-table.c247 struct dm_target *tgt = t->targets + i; in dm_table_destroy() local
249 if (tgt->type->dtr) in dm_table_destroy()
250 tgt->type->dtr(tgt); in dm_table_destroy()
252 dm_put_target_type(tgt->type); in dm_table_destroy()
716 struct dm_target *tgt; in dm_table_add_target() local
726 tgt = t->targets + t->num_targets; in dm_table_add_target()
727 memset(tgt, 0, sizeof(*tgt)); in dm_table_add_target()
734 tgt->type = dm_get_target_type(type); in dm_table_add_target()
735 if (!tgt->type) { in dm_table_add_target()
740 if (dm_target_needs_singleton(tgt->type)) { in dm_table_add_target()
[all …]
/Linux-v4.19/net/smc/
Dsmc_cdc.h108 static inline void smc_curs_copy(union smc_host_cursor *tgt, in smc_curs_copy() argument
116 tgt->acurs = src->acurs; in smc_curs_copy()
119 atomic64_set(&tgt->acurs, atomic64_read(&src->acurs)); in smc_curs_copy()
123 static inline void smc_curs_copy_net(union smc_cdc_cursor *tgt, in smc_curs_copy_net() argument
131 tgt->acurs = src->acurs; in smc_curs_copy_net()
134 atomic64_set(&tgt->acurs, atomic64_read(&src->acurs)); in smc_curs_copy_net()
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp6000_pcie.c227 int tgt, int act, int tok, u64 offset, size_t size, int width) in compute_bar() argument
232 if (tgt >= NFP_CPP_NUM_TARGETS) in compute_bar()
258 newcfg |= NFP_PCIE_BAR_PCIE2CPP_Target_BaseAddress(tgt); in compute_bar()
273 newcfg |= NFP_PCIE_BAR_PCIE2CPP_Target_BaseAddress(tgt); in compute_bar()
324 int tgt, int act, int tok, u64 offset, size_t size, int width) in reconfigure_bar() argument
331 tgt, act, tok, offset, size, width); in reconfigure_bar()
341 static int matching_bar(struct nfp_bar *bar, u32 tgt, u32 act, u32 tok, in matching_bar() argument
389 if ((bartgt < 0 || bartgt == tgt) && in matching_bar()
402 u32 tgt, u32 act, u32 tok, u64 offset, size_t size, int width) in find_matching_bar() argument
409 if (matching_bar(bar, tgt, act, tok, offset, size, width)) in find_matching_bar()
[all …]
/Linux-v4.19/drivers/lightnvm/
Dcore.c50 struct nvm_target *tgt; in nvm_find_target() local
52 list_for_each_entry(tgt, &dev->targets, list) in nvm_find_target()
53 if (!strcmp(name, tgt->disk->disk_name)) in nvm_find_target()
54 return tgt; in nvm_find_target()
62 struct nvm_target *tgt; in nvm_target_exists() local
68 list_for_each_entry(tgt, &dev->targets, list) { in nvm_target_exists()
69 if (!strcmp(name, tgt->disk->disk_name)) { in nvm_target_exists()
1010 struct nvm_ioctl_info_tgt *tgt = &info->tgts[tgt_iter]; in nvm_ioctl_info() local
1012 tgt->version[0] = tt->version[0]; in nvm_ioctl_info()
1013 tgt->version[1] = tt->version[1]; in nvm_ioctl_info()
[all …]

123