Home
last modified time | relevance | path

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

/linux-4.1.27/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.c46 struct bnx2fc_rport *tgt = io_req->tgt; in bnx2fc_cmd_timeout() local
53 spin_lock_bh(&tgt->tgt_lock); in bnx2fc_cmd_timeout()
60 spin_unlock_bh(&tgt->tgt_lock); in bnx2fc_cmd_timeout()
85 rdata = io_req->tgt->rdata; in bnx2fc_cmd_timeout()
88 &tgt->flags); in bnx2fc_cmd_timeout()
90 spin_unlock_bh(&tgt->tgt_lock); in bnx2fc_cmd_timeout()
96 tgt->flags); in bnx2fc_cmd_timeout()
124 rdata = io_req->tgt->rdata; in bnx2fc_cmd_timeout()
127 &tgt->flags); in bnx2fc_cmd_timeout()
129 spin_unlock_bh(&tgt->tgt_lock); in bnx2fc_cmd_timeout()
[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_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()
Dbnx2fc.h427 struct bnx2fc_rport *tgt; member
478 struct bnx2fc_rport *tgt; member
490 struct bnx2fc_cmd *bnx2fc_cmd_alloc(struct bnx2fc_rport *tgt);
491 struct bnx2fc_cmd *bnx2fc_elstm_alloc(struct bnx2fc_rport *tgt, int type);
497 struct bnx2fc_rport *tgt);
499 struct bnx2fc_rport *tgt);
501 struct bnx2fc_rport *tgt);
503 struct bnx2fc_rport *tgt);
504 int bnx2fc_map_doorbell(struct bnx2fc_rport *tgt);
514 char *bnx2fc_get_next_rqe(struct bnx2fc_rport *tgt, u8 num_items);
[all …]
Dbnx2fc_fcoe.c173 struct bnx2fc_rport *tgt; in bnx2fc_cleanup() local
180 tgt = hba->tgt_ofld_list[i]; in bnx2fc_cleanup()
181 if (tgt) { in bnx2fc_cleanup()
183 if (tgt->port == port) { in bnx2fc_cleanup()
185 BNX2FC_TGT_DBG(tgt, "flush/cleanup\n"); in bnx2fc_cleanup()
186 bnx2fc_flush_active_ios(tgt); in bnx2fc_cleanup()
195 static int bnx2fc_xmit_l2_frame(struct bnx2fc_rport *tgt, in bnx2fc_xmit_l2_frame() argument
198 struct fc_rport_priv *rdata = tgt->rdata; in bnx2fc_xmit_l2_frame()
203 BNX2FC_TGT_DBG(tgt, "Xmit L2 frame rport = 0x%x, oxid = 0x%x, " in bnx2fc_xmit_l2_frame()
211 rc = bnx2fc_send_adisc(tgt, fp); in bnx2fc_xmit_l2_frame()
[all …]
Dbnx2fc_debug.h42 void BNX2FC_TGT_DBG(const struct bnx2fc_rport *tgt, const char *fmt, ...);
/linux-4.1.27/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-4.1.27/drivers/staging/lustre/lustre/lmv/
Dlmv_obd.c59 struct lmv_tgt_desc *tgt, in lmv_activate_target() argument
62 if (tgt->ltd_active == activate) in lmv_activate_target()
65 tgt->ltd_active = activate; in lmv_activate_target()
79 struct lmv_tgt_desc *uninitialized_var(tgt); in lmv_set_mdc_active()
89 tgt = lmv->tgts[i]; in lmv_set_mdc_active()
90 if (tgt == NULL || tgt->ltd_exp == NULL) in lmv_set_mdc_active()
94 tgt->ltd_uuid.uuid, tgt->ltd_exp->exp_handle.h_cookie); in lmv_set_mdc_active()
96 if (obd_uuid_equals(uuid, &tgt->ltd_uuid)) in lmv_set_mdc_active()
105 obd = class_exp2obd(tgt->ltd_exp); in lmv_set_mdc_active()
116 if (tgt->ltd_active == activate) { in lmv_set_mdc_active()
[all …]
Dlmv_intent.c66 struct lmv_tgt_desc *tgt; in lmv_intent_remote() local
96 tgt = lmv_find_target(lmv, &body->fid1); in lmv_intent_remote()
97 if (IS_ERR(tgt)) { in lmv_intent_remote()
98 rc = PTR_ERR(tgt); in lmv_intent_remote()
123 PFID(&body->fid1), tgt->ltd_idx); in lmv_intent_remote()
125 rc = md_intent_lock(tgt->ltd_exp, op_data, lmm, lmmsize, it, in lmv_intent_remote()
167 struct lmv_tgt_desc *tgt; in lmv_intent_open() local
171 tgt = lmv_locate_mds(lmv, op_data, &op_data->op_fid1); in lmv_intent_open()
172 if (IS_ERR(tgt)) in lmv_intent_open()
173 return PTR_ERR(tgt); in lmv_intent_open()
[all …]
Dlproc_lmv.c175 struct lmv_tgt_desc *tgt = v; in lmv_tgt_seq_show() local
177 if (tgt == NULL) in lmv_tgt_seq_show()
180 tgt->ltd_idx, tgt->ltd_uuid.uuid, in lmv_tgt_seq_show()
181 tgt->ltd_active ? "" : "IN"); in lmv_tgt_seq_show()
/linux-4.1.27/drivers/scsi/qla2xxx/
Dqla_target.c116 static void qlt_clear_tgt_db(struct qla_tgt *tgt);
142 struct qla_tgt *tgt, in qlt_find_sess_by_port_name() argument
147 list_for_each_entry(sess, &tgt->sess_list, sess_list_entry) { in qlt_find_sess_by_port_name()
184 BUG_ON(ha->tgt.tgt_vp_map == NULL); in qlt_find_host_by_d_id()
185 vp_idx = ha->tgt.tgt_vp_map[d_id[2]].idx; in qlt_find_host_by_d_id()
187 return ha->tgt.tgt_vp_map[vp_idx].vha; in qlt_find_host_by_d_id()
201 BUG_ON(ha->tgt.tgt_vp_map == NULL); in qlt_find_host_by_vp_idx()
203 return ha->tgt.tgt_vp_map[vp_idx].vha; in qlt_find_host_by_vp_idx()
212 spin_lock_irqsave(&vha->hw->tgt.q_full_lock, flags); in qlt_incr_num_pend_cmds()
214 vha->hw->tgt.num_pend_cmds++; in qlt_incr_num_pend_cmds()
[all …]
Dtcm_qla2xxx.c1527 struct qla_tgt *tgt = sess->tgt; in tcm_qla2xxx_free_session() local
1528 struct qla_hw_data *ha = tgt->ha; in tcm_qla2xxx_free_session()
1644 struct qla_tgt *tgt = sess->tgt; in tcm_qla2xxx_update_sess() local
1645 struct qla_hw_data *ha = tgt->ha; in tcm_qla2xxx_update_sess()
1769 ha->tgt.tgt_ops = &tcm_qla2xxx_template; in tcm_qla2xxx_lport_register_cb()
Dqla_target.h919 struct qla_tgt *tgt; member
963 struct qla_tgt *tgt; /* to save extra sess dereferences */ member
1031 struct qla_tgt *tgt; member
Dqla_os.c2334 ha->tgt.enable_class_2 = ql2xenableclass2; in qla2x00_probe_one()
2335 INIT_LIST_HEAD(&ha->tgt.q_full_list); in qla2x00_probe_one()
2336 spin_lock_init(&ha->tgt.q_full_lock); in qla2x00_probe_one()
2403 ha->tgt.atio_q_length = ATIO_ENTRY_CNT_24XX; in qla2x00_probe_one()
2419 ha->tgt.atio_q_length = ATIO_ENTRY_CNT_24XX; in qla2x00_probe_one()
2435 ha->tgt.atio_q_length = ATIO_ENTRY_CNT_24XX; in qla2x00_probe_one()
2482 ha->tgt.atio_q_length = ATIO_ENTRY_CNT_24XX; in qla2x00_probe_one()
3746 ha->tgt.atio_ring = NULL; in qla2x00_mem_free()
3747 ha->tgt.atio_dma = 0; in qla2x00_mem_free()
3748 ha->tgt.tgt_vp_map = NULL; in qla2x00_mem_free()
Dqla_def.h683 #define ISP_ATIO_Q_IN(vha) (vha->hw->tgt.atio_q_in)
684 #define ISP_ATIO_Q_OUT(vha) (vha->hw->tgt.atio_q_out)
3166 #define IS_TGT_MODE_CAPABLE(ha) (ha->tgt.atio_q_length)
3474 struct qlt_hw_data tgt; member
Dqla_init.c1569 if (ha->tgt.atio_ring) in qla2x00_alloc_fw_dump()
1570 mq_size += ha->tgt.atio_q_length * sizeof(request_t); in qla2x00_alloc_fw_dump()
2114 icb->atio_q_length = cpu_to_le16(ha->tgt.atio_q_length); in qla24xx_config_rings()
2115 icb->atio_q_address[0] = cpu_to_le32(LSD(ha->tgt.atio_dma)); in qla24xx_config_rings()
2116 icb->atio_q_address[1] = cpu_to_le32(MSD(ha->tgt.atio_dma)); in qla24xx_config_rings()
2225 ha->tgt.atio_ring_ptr = ha->tgt.atio_ring; in qla2x00_init_rings()
2226 ha->tgt.atio_ring_index = 0; in qla2x00_init_rings()
Dqla_dbg.c518 if (!ha->tgt.atio_ring) in qla2xxx_copy_atioqueues()
523 aqp->length = ha->tgt.atio_q_length; in qla2xxx_copy_atioqueues()
524 aqp->ring = ha->tgt.atio_ring; in qla2xxx_copy_atioqueues()
Dqla_attr.c2296 fc_host_supported_classes(vha->host) = ha->tgt.enable_class_2 ? in qla2x00_init_host_attr()
/linux-4.1.27/drivers/scsi/ibmvscsi/
Dibmvfc.c425 static void ibmvfc_set_tgt_action(struct ibmvfc_target *tgt, in ibmvfc_set_tgt_action() argument
428 switch (tgt->action) { in ibmvfc_set_tgt_action()
431 tgt->action = action; in ibmvfc_set_tgt_action()
436 tgt->add_rport = 0; in ibmvfc_set_tgt_action()
437 tgt->action = action; in ibmvfc_set_tgt_action()
556 struct ibmvfc_target *tgt; in ibmvfc_link_down() local
560 list_for_each_entry(tgt, &vhost->targets, queue) in ibmvfc_link_down()
561 ibmvfc_set_tgt_action(tgt, IBMVFC_TGT_ACTION_DEL_RPORT); in ibmvfc_link_down()
578 struct ibmvfc_target *tgt; in ibmvfc_init_host() local
593 list_for_each_entry(tgt, &vhost->targets, queue) in ibmvfc_init_host()
[all …]
Dibmvfc.h636 struct ibmvfc_target *tgt; member
/linux-4.1.27/drivers/staging/lustre/lustre/lov/
Dlov_merge.c149 void lov_merge_attrs(struct obdo *tgt, struct obdo *src, u64 valid, in lov_merge_attrs() argument
160 if (lov_size > tgt->o_size) in lov_merge_attrs()
161 tgt->o_size = lov_size; in lov_merge_attrs()
164 tgt->o_blocks += src->o_blocks; in lov_merge_attrs()
166 tgt->o_blksize += src->o_blksize; in lov_merge_attrs()
167 if (valid & OBD_MD_FLCTIME && tgt->o_ctime < src->o_ctime) in lov_merge_attrs()
168 tgt->o_ctime = src->o_ctime; in lov_merge_attrs()
169 if (valid & OBD_MD_FLMTIME && tgt->o_mtime < src->o_mtime) in lov_merge_attrs()
170 tgt->o_mtime = src->o_mtime; in lov_merge_attrs()
172 tgt->o_data_version += src->o_data_version; in lov_merge_attrs()
[all …]
Dlov_obd.c76 static void __lov_del_obd(struct obd_device *obd, struct lov_tgt_desc *tgt);
87 struct lov_tgt_desc *tgt, *n; in lov_putref() local
91 tgt = lov->lov_tgts[i]; in lov_putref()
93 if (!tgt || !tgt->ltd_reap) in lov_putref()
95 list_add(&tgt->ltd_kill, &kill); in lov_putref()
105 list_for_each_entry_safe(tgt, n, &kill, ltd_kill) { in lov_putref()
106 list_del(&tgt->ltd_kill); in lov_putref()
108 __lov_del_obd(obd, tgt); in lov_putref()
221 struct lov_tgt_desc *tgt; in lov_connect() local
243 tgt = lov->lov_tgts[i]; in lov_connect()
[all …]
Dlov_request.c143 struct lov_tgt_desc *tgt; in lov_check_set() local
146 tgt = lov->lov_tgts[idx]; in lov_check_set()
147 rc = !tgt || tgt->ltd_active || in lov_check_set()
148 (tgt->ltd_exp && in lov_check_set()
149 class_exp2cliimp(tgt->ltd_exp)->imp_connect_tried); in lov_check_set()
163 struct lov_tgt_desc *tgt; in lov_check_and_wait_active() local
168 tgt = lov->lov_tgts[ost_idx]; in lov_check_and_wait_active()
170 if (unlikely(tgt == NULL)) { in lov_check_and_wait_active()
175 if (likely(tgt->ltd_active)) { in lov_check_and_wait_active()
180 if (tgt->ltd_exp && class_exp2cliimp(tgt->ltd_exp)->imp_connect_tried) { in lov_check_and_wait_active()
[all …]
Dlov_dev.c399 struct lov_tgt_desc *tgt; in lov_cl_add_target() local
406 tgt = obd->u.lov.lov_tgts[index]; in lov_cl_add_target()
407 LASSERT(tgt != NULL); in lov_cl_add_target()
408 LASSERT(tgt->ltd_obd != NULL); in lov_cl_add_target()
410 if (!tgt->ltd_obd->obd_set_up) { in lov_cl_add_target()
411 CERROR("Target %s not set up\n", obd_uuid2str(&tgt->ltd_uuid)); in lov_cl_add_target()
420 tgt->ltd_obd->obd_lu_dev); in lov_cl_add_target()
428 obd_uuid2str(&tgt->ltd_uuid)); in lov_cl_add_target()
Dlproc_lov.c236 struct lov_tgt_desc *tgt = v; in lov_tgt_seq_show() local
239 tgt->ltd_index, obd_uuid2str(&tgt->ltd_uuid), in lov_tgt_seq_show()
240 tgt->ltd_active ? "" : "IN"); in lov_tgt_seq_show()
Dlov_ea.c168 static void lov_tgt_maxbytes(struct lov_tgt_desc *tgt, __u64 *stripe_maxbytes) in lov_tgt_maxbytes() argument
170 struct obd_import *imp = tgt->ltd_obd->u.cli.cl_import; in lov_tgt_maxbytes()
172 if (imp == NULL || !tgt->ltd_active) { in lov_tgt_maxbytes()
Dlov_pool.c257 struct lov_tgt_desc *tgt; in pool_proc_show() local
264 tgt = pool_tgt(iter->pool, iter->idx); in pool_proc_show()
266 if (tgt) in pool_proc_show()
267 seq_printf(s, "%s\n", obd_uuid2str(&(tgt->ltd_uuid))); in pool_proc_show()
Dlov_internal.h169 void lov_merge_attrs(struct obdo *tgt, struct obdo *src, u64 valid,
192 int qos_del_tgt(struct obd_device *obd, struct lov_tgt_desc *tgt);
/linux-4.1.27/drivers/firmware/
Discsi_ibft.c182 struct ibft_tgt *tgt; member
357 struct ibft_tgt *tgt = entry->tgt; in ibft_attr_show_target() local
362 if (!tgt) in ibft_attr_show_target()
367 str += sprintf(str, "%d\n", tgt->hdr.index); in ibft_attr_show_target()
370 str += sprintf(str, "%d\n", tgt->hdr.flags); in ibft_attr_show_target()
373 str += sprintf_ipaddr(str, tgt->ip_addr); in ibft_attr_show_target()
376 str += sprintf(str, "%d\n", tgt->port); in ibft_attr_show_target()
380 str += sprintf(str, "%x", (u8)tgt->lun[i]); in ibft_attr_show_target()
384 str += sprintf(str, "%d\n", tgt->nic_assoc); in ibft_attr_show_target()
387 str += sprintf(str, "%d\n", tgt->chap_type); in ibft_attr_show_target()
[all …]
/linux-4.1.27/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.c153 struct virtio_scsi_target_state *tgt = in virtscsi_complete_cmd() local
212 atomic_dec(&tgt->reqs); in virtscsi_complete_cmd()
568 struct virtio_scsi_target_state *tgt = in virtscsi_queuecommand_single() local
571 atomic_inc(&tgt->reqs); in virtscsi_queuecommand_single()
585 struct virtio_scsi_target_state *tgt) in virtscsi_pick_vq() argument
592 if (atomic_inc_return(&tgt->reqs) > 1) { in virtscsi_pick_vq()
596 seq = read_seqcount_begin(&tgt->tgt_seq); in virtscsi_pick_vq()
597 vq = tgt->req_vq; in virtscsi_pick_vq()
598 } while (read_seqcount_retry(&tgt->tgt_seq, seq)); in virtscsi_pick_vq()
601 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 …]
Dqlogicpti.c969 int tgt = sdev->id; in qlogicpti_slave_configure() local
975 qpti->dev_param[tgt].device_flags |= 0x10; in qlogicpti_slave_configure()
977 qpti->dev_param[tgt].synchronous_offset = 0; in qlogicpti_slave_configure()
978 qpti->dev_param[tgt].synchronous_period = 0; in qlogicpti_slave_configure()
982 qpti->dev_param[tgt].device_flags |= 0x20; in qlogicpti_slave_configure()
985 param[1] = (tgt << 8); in qlogicpti_slave_configure()
986 param[2] = (qpti->dev_param[tgt].device_flags << 8); in qlogicpti_slave_configure()
987 if (qpti->dev_param[tgt].device_flags & 0x10) { in qlogicpti_slave_configure()
988 param[3] = (qpti->dev_param[tgt].synchronous_offset << 8) | in qlogicpti_slave_configure()
989 qpti->dev_param[tgt].synchronous_period; in qlogicpti_slave_configure()
Dmegaraid.c460 int tgt; in mega_get_ldrv_num() local
463 tgt = cmd->device->id; in mega_get_ldrv_num()
465 if ( tgt > adapter->this_id ) in mega_get_ldrv_num()
466 tgt--; /* we do not get inquires for initiator id */ in mega_get_ldrv_num()
468 ldrv_num = (channel * 15) + tgt; in mega_get_ldrv_num()
2341 int tgt; in proc_show_pdrv() local
2378 for( tgt = 0; tgt <= MAX_TARGET; tgt++ ) { in proc_show_pdrv()
2380 i = channel*16 + tgt; in proc_show_pdrv()
2386 channel, tgt); in proc_show_pdrv()
2391 channel, tgt); in proc_show_pdrv()
[all …]
Dxen-scsifront.c987 unsigned int hst, chn, tgt, lun; in scsifront_do_lun_hotplug() local
1009 "%u:%u:%u:%u", &hst, &chn, &tgt, &lun); in scsifront_do_lun_hotplug()
1026 if (scsi_add_device(info->host, chn, tgt, lun)) { in scsifront_do_lun_hotplug()
1037 sdev = scsi_device_lookup(info->host, chn, tgt, lun); in scsifront_do_lun_hotplug()
Ddc395x.c170 #define MK_RES(drv,did,msg,tgt) ((int)(drv)<<24 | (int)(did)<<16 | (int)(msg)<<8 | (int)(tgt)) argument
171 #define MK_RES_LNX(drv,did,msg,tgt) ((int)(drv)<<24 | (int)(did)<<16 | (int)(msg)<<8 | (int)(tgt)<<… argument
173 #define SET_RES_TARGET(who,tgt) { who &= ~RES_TARGET; who |= (int)(tgt); } argument
174 #define SET_RES_TARGET_LNX(who,tgt) { who &= ~RES_TARGET_LNX; who |= (int)(tgt) << 1; } argument
/linux-4.1.27/drivers/md/
Ddm-table.c242 struct dm_target *tgt = t->targets + i; in dm_table_destroy() local
244 if (tgt->type->dtr) in dm_table_destroy()
245 tgt->type->dtr(tgt); in dm_table_destroy()
247 dm_put_target_type(tgt->type); in dm_table_destroy()
671 struct dm_target *tgt; in dm_table_add_target() local
681 tgt = t->targets + t->num_targets; in dm_table_add_target()
682 memset(tgt, 0, sizeof(*tgt)); in dm_table_add_target()
689 tgt->type = dm_get_target_type(type); in dm_table_add_target()
690 if (!tgt->type) { in dm_table_add_target()
696 if (dm_target_needs_singleton(tgt->type)) { in dm_table_add_target()
[all …]
Ddm.c562 struct dm_target *tgt; in dm_blk_ioctl() local
575 tgt = dm_table_get_target(map, 0); in dm_blk_ioctl()
576 if (!tgt->type->ioctl) in dm_blk_ioctl()
584 r = tgt->type->ioctl(tgt, cmd, arg); in dm_blk_ioctl()
Draid5.c1243 struct r5dev *tgt; in mark_target_uptodate() local
1248 tgt = &sh->dev[target]; in mark_target_uptodate()
1249 set_bit(R5_UPTODATE, &tgt->flags); in mark_target_uptodate()
1250 BUG_ON(!test_bit(R5_Wantcompute, &tgt->flags)); in mark_target_uptodate()
1251 clear_bit(R5_Wantcompute, &tgt->flags); in mark_target_uptodate()
1297 struct r5dev *tgt = &sh->dev[target]; in ops_run_compute5() local
1298 struct page *xor_dest = tgt->page; in ops_run_compute5()
1308 BUG_ON(!test_bit(R5_Wantcompute, &tgt->flags)); in ops_run_compute5()
1376 struct r5dev *tgt; in ops_run_compute6_1() local
1393 tgt = &sh->dev[target]; in ops_run_compute6_1()
[all …]
/linux-4.1.27/drivers/staging/unisys/uislib/
Duisqueue.c228 uisqueue_interlocked_or(unsigned long long __iomem *tgt, in uisqueue_interlocked_or() argument
234 j = readq(tgt); in uisqueue_interlocked_or()
237 j = cmpxchg((__force unsigned long long *)tgt, i, i | set); in uisqueue_interlocked_or()
246 uisqueue_interlocked_and(unsigned long long __iomem *tgt, in uisqueue_interlocked_and() argument
252 j = readq(tgt); in uisqueue_interlocked_and()
255 j = cmpxchg((__force unsigned long long *)tgt, i, i & set); in uisqueue_interlocked_and()
/linux-4.1.27/drivers/staging/lustre/lustre/include/
Dlustre_capa.h91 struct target_capa tgt; member
212 INIT_HLIST_NODE(&ocapa->u.tgt.c_hash); in alloc_capa()
243 hnode = &ocapa->u.tgt.c_hash; in capa_put()
/linux-4.1.27/Documentation/networking/
Dnetconsole.txt27 netconsole=[src-port]@[src-ip]/[<dev>],[tgt-port]@<tgt-ip>/[tgt-macaddr]
33 tgt-port port for logging agent (6666)
34 tgt-ip IP address for logging agent
35 tgt-macaddr ethernet MAC address for logging agent (broadcast)
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/
Dcapa.c111 hlist_del_init(&ocapa->u.tgt.c_hash); in capa_delete()
127 u.tgt.c_hash) in cleanup_capa_hash()
157 hlist_for_each_entry(ocapa, head, u.tgt.c_hash) { in find_capa()
208 hlist_add_head(&ocapa->u.tgt.c_hash, head); in capa_add()
/linux-4.1.27/drivers/block/rsxx/
Ddma.c115 unsigned int tgt; in rsxx_get_dma_tgt() local
117 tgt = (addr8 >> card->_stripe.target_shift) & card->_stripe.target_mask; in rsxx_get_dma_tgt()
119 return tgt; in rsxx_get_dma_tgt()
696 int tgt; in rsxx_dma_queue_bio() local
712 tgt = rsxx_get_dma_tgt(card, addr8); in rsxx_dma_queue_bio()
715 st = rsxx_queue_discard(card, &dma_list[tgt], laddr, in rsxx_dma_queue_bio()
720 dma_cnt[tgt]++; in rsxx_dma_queue_bio()
731 tgt = rsxx_get_dma_tgt(card, addr8); in rsxx_dma_queue_bio()
737 st = rsxx_queue_dma(card, &dma_list[tgt], in rsxx_dma_queue_bio()
745 dma_cnt[tgt]++; in rsxx_dma_queue_bio()
/linux-4.1.27/drivers/staging/unisys/include/
Duisqueue.h77 unsigned long long uisqueue_interlocked_or(unsigned long long __iomem *tgt,
79 unsigned long long uisqueue_interlocked_and(unsigned long long __iomem *tgt,
/linux-4.1.27/drivers/staging/lustre/lustre/obdecho/
Decho_client.c698 struct obd_device *tgt; in echo_device_alloc() local
723 tgt = class_name2obd(lustre_cfg_string(cfg, 1)); in echo_device_alloc()
724 if (tgt == NULL) { in echo_device_alloc()
731 next = tgt->obd_lu_dev; in echo_device_alloc()
732 if (!strcmp(tgt->obd_type->typ_name, LUSTRE_MDT_NAME)) { in echo_device_alloc()
756 tgt_type_name = tgt->obd_type->typ_name; in echo_device_alloc()
2032 struct obd_device *tgt; in echo_client_setup() local
2042 tgt = class_name2obd(lustre_cfg_string(lcfg, 1)); in echo_client_setup()
2043 if (!tgt || !tgt->obd_attached || !tgt->obd_set_up) { in echo_client_setup()
2071 rc = obd_connect(env, &ec->ec_exp, tgt, &echo_uuid, ocd, NULL); in echo_client_setup()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/
Dsec_config.c477 static void target2fsname(const char *tgt, char *fsname, int buflen) in target2fsname() argument
482 ptr = strrchr(tgt, '-'); in target2fsname()
493 len = strlen(tgt); in target2fsname()
495 len = ptr - tgt; in target2fsname()
498 memcpy(fsname, tgt, len); in target2fsname()
/linux-4.1.27/arch/mips/bcm63xx/
Dirq.c79 unsigned int src, tgt; \
87 for (src = 0, tgt = (width / 32); src < (width / 32); src++) { \
92 pending[--tgt] = val; \
/linux-4.1.27/drivers/xen/
Dxen-scsiback.c80 unsigned int tgt; /* target */ member
649 (entry->v.tgt == v->tgt) && in scsiback_do_translation()
673 vir.tgt = ring_req->id; in prepare_pending_reqs()
680 vir.chn, vir.tgt, vir.lun); in prepare_pending_reqs()
924 (entry->v.tgt == v->tgt) && in scsiback_add_translation_entry()
974 (entry->v.tgt == v->tgt) && in scsiback_del_translation_entry()
1051 &vir.hst, &vir.chn, &vir.tgt, &vir.lun); in scsiback_do_1lun_hotplug()
/linux-4.1.27/include/uapi/linux/netfilter_arp/
Darp_tables.h44 struct in_addr src, tgt; member
/linux-4.1.27/drivers/block/aoe/
Daoe.h184 struct aoetgt **tgt; /* target in use when working */ member
Daoecmd.c262 tt = d->tgt; /* last used target */ in newframe()
278 d->tgt = tt; in newframe()
282 if (tt == d->tgt) { /* we've looped and found nada */ in newframe()
1450 t = *d->tgt; in aoecmd_ata_id()
1496 d->tgt = tt + (d->tgt - d->targets); in grow_targets()
Daoedev.c475 d->tgt = d->targets; in aoedev_by_aoeaddr()
/linux-4.1.27/net/core/
Dskbuff.c2625 int skb_shift(struct sk_buff *tgt, struct sk_buff *skb, int shiftlen) in skb_shift() argument
2635 to = skb_shinfo(tgt)->nr_frags; in skb_shift()
2642 !skb_can_coalesce(tgt, to, skb_frag_page(fragfrom), in skb_shift()
2651 skb_prepare_for_shift(tgt)) in skb_shift()
2656 fragto = &skb_shinfo(tgt)->frags[merge]; in skb_shift()
2673 if (skb_prepare_for_shift(skb) || skb_prepare_for_shift(tgt)) in skb_shift()
2681 fragto = &skb_shinfo(tgt)->frags[to]; in skb_shift()
2705 skb_shinfo(tgt)->nr_frags = to; in skb_shift()
2709 fragto = &skb_shinfo(tgt)->frags[merge]; in skb_shift()
2727 tgt->ip_summed = CHECKSUM_PARTIAL; in skb_shift()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
Dnamei.c761 const char *tgt, int mode, int rdev, in ll_new_node() argument
771 if (unlikely(tgt != NULL)) in ll_new_node()
772 tgt_len = strlen(tgt) + 1; in ll_new_node()
783 err = md_create(sbi->ll_md_exp, op_data, tgt, tgt_len, mode, in ll_new_node()
/linux-4.1.27/drivers/pci/host/
Dpci-mvebu.c847 unsigned int *tgt, in mvebu_get_tgt_attr() argument
854 *tgt = -1; in mvebu_get_tgt_attr()
879 *tgt = DT_CPUADDR_TO_TARGET(cpuaddr); in mvebu_get_tgt_attr()
/linux-4.1.27/arch/arm/net/
Dbpf_jit_32.c388 static inline u32 b_imm(unsigned tgt, struct jit_ctx *ctx) in b_imm() argument
398 imm = ctx->offsets[tgt] + ctx->prologue_bytes - (ctx->idx * 4 + 8); in b_imm()
/linux-4.1.27/Documentation/target/
Dtcmu-design.txt46 use case that other non-kernel target solutions, such as tgt, are able
52 If the target is a userspace process, supporting these is easy. tgt,
/linux-4.1.27/Documentation/scsi/
Dosd.txt34 needs, a user-mode target that is based on the scsi tgt target framework is
DChangeLog.lpfc694 * Merged in some discovery bug fixes and added tgt io counters.
/linux-4.1.27/arch/mips/net/
Dbpf_jit.c489 static inline u32 b_imm(unsigned int tgt, struct jit_ctx *ctx) in b_imm() argument
507 return ctx->offsets[tgt] - in b_imm()
/linux-4.1.27/drivers/scsi/csiostor/
Dcsio_mb.c301 bool wr, bool init, bool tgt, bool cofld, in csio_mb_caps_config() argument
325 if (tgt) in csio_mb_caps_config()
/linux-4.1.27/drivers/crypto/
Dn2_core.c1745 u64 tgt = mdesc_arc_target(mdesc, arc); in spu_mdesc_walk_arcs() local
1746 const char *name = mdesc_node_name(mdesc, tgt); in spu_mdesc_walk_arcs()
1751 id = mdesc_get_property(mdesc, tgt, "id", NULL); in spu_mdesc_walk_arcs()
/linux-4.1.27/net/ipv4/netfilter/
Darp_tables.c166 FWINV(((tgt_ipaddr & arpinfo->tmsk.s_addr) != arpinfo->tgt.s_addr), in arp_packet_match()
178 &arpinfo->tgt.s_addr, in arp_packet_match()
/linux-4.1.27/drivers/staging/lustre/lustre/include/lustre/
Dlustre_idl.h1056 static inline void lustre_handle_copy(struct lustre_handle *tgt, in lustre_handle_copy() argument
1059 tgt->cookie = src->cookie; in lustre_handle_copy()
/linux-4.1.27/kernel/locking/
Dlockdep.c1106 struct held_lock *tgt, in print_circular_lock_scenario() argument
1110 struct lock_class *target = hlock_class(tgt); in print_circular_lock_scenario()
/linux-4.1.27/include/linux/
Dskbuff.h2703 int skb_shift(struct sk_buff *tgt, struct sk_buff *skb, int shiftlen);