Home
last modified time | relevance | path

Searched refs:target (Results 1 – 25 of 815) sorted by relevance

12345678910>>...33

/linux-2.6.39/drivers/staging/ath6kl/htc2/
Dhtc.c44 static void ResetEndpointStates(struct htc_target *target);
46 void HTCFreeControlBuffer(struct htc_target *target, struct htc_packet *pPacket, struct htc_packet_… in HTCFreeControlBuffer() argument
48 LOCK_HTC(target); in HTCFreeControlBuffer()
50 UNLOCK_HTC(target); in HTCFreeControlBuffer()
53 struct htc_packet *HTCAllocControlBuffer(struct htc_target *target, struct htc_packet_queue *pList) in HTCAllocControlBuffer() argument
57 LOCK_HTC(target); in HTCAllocControlBuffer()
59 UNLOCK_HTC(target); in HTCAllocControlBuffer()
65 static void HTCCleanup(struct htc_target *target) in HTCCleanup() argument
69 DevCleanup(&target->Device); in HTCCleanup()
72 if (target->HTCControlBuffers[i].Buffer) { in HTCCleanup()
[all …]
Dhtc_recv.c86 static INLINE int HTCProcessTrailer(struct htc_target *target, in HTCProcessTrailer() argument
135 HTCProcessCreditRpt(target, in HTCProcessTrailer()
229 static int HTCProcessRecvHeader(struct htc_target *target, in HTCProcessRecvHeader() argument
299 … DebugDumpBytes((u8 *)&target->LastFrameHdr,sizeof(struct htc_frame_hdr),"Last Frame Header"); in HTCProcessRecvHeader()
300 if (target->LastTrailerLength != 0) { in HTCProcessRecvHeader()
301 DebugDumpBytes(target->LastTrailer, in HTCProcessRecvHeader()
302 target->LastTrailerLength, in HTCProcessRecvHeader()
337 status = HTCProcessTrailer(target, in HTCProcessRecvHeader()
349 memcpy(target->LastTrailer, (pBuf + HTC_HDR_LENGTH + payloadLen - temp), temp); in HTCProcessRecvHeader()
350 target->LastTrailerLength = temp; in HTCProcessRecvHeader()
[all …]
Dhtc_send.c80 static INLINE void CompleteSentPacket(struct htc_target *target, struct htc_endpoint *pEndpoint, st… in CompleteSentPacket() argument
89 LOCK_HTC_TX(target); in CompleteSentPacket()
92 DO_DISTRIBUTION(target, in CompleteSentPacket()
95 target->EpCreditDistributionListHead->pNext); in CompleteSentPacket()
96 UNLOCK_HTC_TX(target); in CompleteSentPacket()
106 struct htc_target *target = (struct htc_target *)Context; in HTCSendPktCompletionHandler() local
107 struct htc_endpoint *pEndpoint = &target->EndPoint[pPacket->Endpoint]; in HTCSendPktCompletionHandler()
110 CompleteSentPacket(target,pEndpoint,pPacket); in HTCSendPktCompletionHandler()
116 int HTCIssueSend(struct htc_target *target, struct htc_packet *pPacket) in HTCIssueSend() argument
132 status = DevSendPacket(&target->Device, in HTCIssueSend()
[all …]
Dhtc_services.c60 int HTCSendSetupComplete(struct htc_target *target) in HTCSendSetupComplete() argument
67 pSendPacket = HTC_ALLOC_CONTROL_TX(target); in HTCSendSetupComplete()
74 if (target->HTCTargetVersion >= HTC_VERSION_2P1) { in HTCSendSetupComplete()
81 if (target->MaxMsgPerBundle > 0) { in HTCSendSetupComplete()
84 pSetupCompleteEx->MaxMsgsPerBundledRecv = target->MaxMsgPerBundle; in HTCSendSetupComplete()
112 status = HTCIssueSend(target,pSendPacket); in HTCSendSetupComplete()
117 HTC_FREE_CONTROL_TX(target,pSendPacket); in HTCSendSetupComplete()
128 struct htc_target *target = GET_HTC_TARGET_FROM_HANDLE(HTCHandle); in HTCConnectService() local
139 (unsigned long)target, pConnectReq->ServiceID)); in HTCConnectService()
151 pSendPacket = HTC_ALLOC_CONTROL_TX(target); in HTCConnectService()
[all …]
Dhtc_internal.h82 struct htc_target *target; /* back pointer to target */ member
151 #define HTC_RECYCLE_RX_PKT(target,p,e) \ argument
160 HTCAddReceivePkt((HTC_HANDLE)(target),(p)); \
167 int HTCWaitforControlMessage(struct htc_target *target, struct htc_packet **ppControlPacket);
168 struct htc_packet *HTCAllocControlBuffer(struct htc_target *target, struct htc_packet_queue *pList);
169 void HTCFreeControlBuffer(struct htc_target *target, struct htc_packet *pPacket, struct htc_…
170 int HTCIssueSend(struct htc_target *target, struct htc_packet *pPacket);
173 void HTCProcessCreditRpt(struct htc_target *target, HTC_CREDIT_REPORT *pRpt, int NumEntries,…
174 int HTCSendSetupComplete(struct htc_target *target);
175 void HTCFlushRecvBuffers(struct htc_target *target);
[all …]
/linux-2.6.39/drivers/infiniband/ulp/srp/
Dib_srp.c113 static int srp_target_is_topspin(struct srp_target_port *target) in srp_target_is_topspin() argument
119 (!memcmp(&target->ioc_guid, topspin_oui, sizeof topspin_oui) || in srp_target_is_topspin()
120 !memcmp(&target->ioc_guid, cisco_oui, sizeof cisco_oui)); in srp_target_is_topspin()
171 static int srp_init_qp(struct srp_target_port *target, in srp_init_qp() argument
181 ret = ib_find_pkey(target->srp_host->srp_dev->dev, in srp_init_qp()
182 target->srp_host->port, in srp_init_qp()
183 be16_to_cpu(target->path.pkey), in srp_init_qp()
191 attr->port_num = target->srp_host->port; in srp_init_qp()
204 static int srp_new_cm_id(struct srp_target_port *target) in srp_new_cm_id() argument
208 new_cm_id = ib_create_cm_id(target->srp_host->srp_dev->dev, in srp_new_cm_id()
[all …]
/linux-2.6.39/drivers/net/wireless/ath/ath9k/
Dhtc_hst.c19 static int htc_issue_send(struct htc_target *target, struct sk_buff* skb, in htc_issue_send() argument
24 struct htc_endpoint *endpoint = &target->endpoint[epid]; in htc_issue_send()
33 status = target->hif->send(target->hif_dev, endpoint->ul_pipeid, skb, in htc_issue_send()
86 static void htc_process_target_rdy(struct htc_target *target, in htc_process_target_rdy() argument
92 target->credit_size = be16_to_cpu(htc_ready_msg->credit_size); in htc_process_target_rdy()
94 endpoint = &target->endpoint[ENDPOINT0]; in htc_process_target_rdy()
97 atomic_inc(&target->tgt_ready); in htc_process_target_rdy()
98 complete(&target->target_wait); in htc_process_target_rdy()
101 static void htc_process_conn_rsp(struct htc_target *target, in htc_process_conn_rsp() argument
117 endpoint = &target->endpoint[epid]; in htc_process_conn_rsp()
[all …]
/linux-2.6.39/drivers/staging/tidspbridge/rmgr/
Drmm.c88 static bool alloc_block(struct rmm_target_obj *target, u32 segid, u32 size,
90 static bool free_block(struct rmm_target_obj *target, u32 segid, u32 addr,
96 int rmm_alloc(struct rmm_target_obj *target, u32 segid, u32 size, in rmm_alloc() argument
104 DBC_REQUIRE(target); in rmm_alloc()
107 DBC_REQUIRE(reserve || (target->num_segs > 0)); in rmm_alloc()
111 if (!alloc_block(target, segid, size, align, dsp_address)) { in rmm_alloc()
116 target->seg_tab[segid].number++; in rmm_alloc()
125 list_for_each_entry(sect, &target->ovly_list, list_elem) { in rmm_alloc()
147 if (list_is_last(&sect->list_elem, &target->ovly_list)) in rmm_alloc()
150 &target->ovly_list); in rmm_alloc()
[all …]
/linux-2.6.39/Documentation/target/
Dtcm_mod_builder.txt11 mkdir -p /sys/kernel/config/target/$TCM_NEW_MOD
13 This script will create a new drivers/target/$TCM_NEW_MOD/, and will do the following
15 *) Generate new API callers for drivers/target/target_core_fabric_configs.c logic
23 using drivers/target/target_core_fabric_lib.c logic.
30 target:/mnt/sdb/lio-core-2.6.git/Documentation/target# python tcm_mod_builder.py -p iSCSI -m tcm_na…
31 tcm_dir: /mnt/sdb/lio-core-2.6.git/Documentation/target/../../
34 /mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000
37 /mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000
39 /mnt/sdb/lio-core-2.6.git/Documentation/target/../../drivers/target/tcm_nab5000/tcm_nab5000_base.h
41 /mnt/sdb/lio-core-2.6.git/Documentation/target/../../include/target/target_core_fabric_ops.h
[all …]
/linux-2.6.39/arch/x86/kernel/
Dpci-calgary_64.c521 unsigned long target = ((unsigned long)bar) | offset; in calgary_reg() local
522 return (void __iomem*)target; in calgary_reg()
546 void __iomem *target; in calgary_tce_cache_blast() local
549 target = calgary_reg(bbar, phb_offset(tbl->it_busno) | PHB_AER_OFFSET); in calgary_tce_cache_blast()
550 aer = readl(target); in calgary_tce_cache_blast()
551 writel(0, target); in calgary_tce_cache_blast()
554 target = calgary_reg(bbar, phb_offset(tbl->it_busno) | PHB_PLSSR_OFFSET); in calgary_tce_cache_blast()
555 val = readl(target); in calgary_tce_cache_blast()
558 target = calgary_reg(bbar, split_queue_offset(tbl->it_busno)); in calgary_tce_cache_blast()
560 val = readq(target); in calgary_tce_cache_blast()
[all …]
Di387.c179 int fpregs_active(struct task_struct *target, const struct user_regset *regset) in fpregs_active() argument
181 return tsk_used_math(target) ? regset->n : 0; in fpregs_active()
184 int xfpregs_active(struct task_struct *target, const struct user_regset *regset) in xfpregs_active() argument
186 return (cpu_has_fxsr && tsk_used_math(target)) ? regset->n : 0; in xfpregs_active()
189 int xfpregs_get(struct task_struct *target, const struct user_regset *regset, in xfpregs_get() argument
198 ret = init_fpu(target); in xfpregs_get()
202 sanitize_i387_state(target); in xfpregs_get()
205 &target->thread.fpu.state->fxsave, 0, -1); in xfpregs_get()
208 int xfpregs_set(struct task_struct *target, const struct user_regset *regset, in xfpregs_set() argument
217 ret = init_fpu(target); in xfpregs_set()
[all …]
/linux-2.6.39/drivers/scsi/ibmvscsi/
Dibmvstgt.c72 struct srp_target *target; member
88 static struct vio_port *target_to_port(struct srp_target *target) in target_to_port() argument
90 return (struct vio_port *) target->ldata; in target_to_port()
100 struct srp_target *target = iue->target; in send_iu() local
101 struct vio_port *vport = target_to_port(target); in send_iu()
193 static void handle_cmd_queue(struct srp_target *target) in handle_cmd_queue() argument
195 struct Scsi_Host *shost = target->shost; in handle_cmd_queue()
196 struct srp_rport *rport = target_to_port(target)->rport; in handle_cmd_queue()
203 spin_lock_irqsave(&target->lock, flags); in handle_cmd_queue()
205 list_for_each_entry(iue, &target->cmd_queue, ilist) { in handle_cmd_queue()
[all …]
/linux-2.6.39/drivers/macintosh/
Dwindfarm_pid.c37 s32 target; in wf_pid_run() local
68 target = (s32)((integ * (s64)st->param.gr + deriv * (s64)st->param.gd + in wf_pid_run()
71 target += st->target; in wf_pid_run()
72 target = max(target, st->param.min); in wf_pid_run()
73 target = min(target, st->param.max); in wf_pid_run()
74 st->target = target; in wf_pid_run()
76 return st->target; in wf_pid_run()
92 s32 error, target, sval, adj; in wf_cpu_pid_run() local
138 target = st->target + (s32)((deriv + prop) >> 36); in wf_cpu_pid_run()
139 target = max(target, st->param.min); in wf_cpu_pid_run()
[all …]
/linux-2.6.39/lib/
Dsyscall.c6 static int collect_syscall(struct task_struct *target, long *callno, in collect_syscall() argument
10 struct pt_regs *regs = task_pt_regs(target); in collect_syscall()
17 *callno = syscall_get_nr(target, regs); in collect_syscall()
19 syscall_get_arguments(target, regs, 0, maxargs, args); in collect_syscall()
50 int task_current_syscall(struct task_struct *target, long *callno, in task_current_syscall() argument
60 if (target == current) in task_current_syscall()
61 return collect_syscall(target, callno, args, maxargs, sp, pc); in task_current_syscall()
63 state = target->state; in task_current_syscall()
67 ncsw = wait_task_inactive(target, state); in task_current_syscall()
69 unlikely(collect_syscall(target, callno, args, maxargs, sp, pc)) || in task_current_syscall()
[all …]
/linux-2.6.39/arch/sparc/kernel/
Dptrace_64.c121 static int get_from_target(struct task_struct *target, unsigned long uaddr, in get_from_target() argument
124 if (target == current) { in get_from_target()
128 int len2 = access_process_vm(target, uaddr, kbuf, len, 0); in get_from_target()
135 static int set_to_target(struct task_struct *target, unsigned long uaddr, in set_to_target() argument
138 if (target == current) { in set_to_target()
142 int len2 = access_process_vm(target, uaddr, kbuf, len, 1); in set_to_target()
149 static int regwindow64_get(struct task_struct *target, in regwindow64_get() argument
159 if (get_from_target(target, rw_addr, &win32, sizeof(win32))) in regwindow64_get()
167 if (get_from_target(target, rw_addr, wbuf, sizeof(*wbuf))) in regwindow64_get()
174 static int regwindow64_set(struct task_struct *target, in regwindow64_set() argument
[all …]
/linux-2.6.39/fs/ncpfs/
Dncplib_kernel.c153 ncp_negotiate_buffersize(struct ncp_server *server, int size, int *target) in ncp_negotiate_buffersize() argument
164 *target = min_t(unsigned int, ncp_reply_be16(server, 0), size); in ncp_negotiate_buffersize()
205 int n, struct ncp_volume_info* target) { in ncp_get_volume_info_with_number() argument
215 target->total_blocks = ncp_reply_dword_lh(server, 0); in ncp_get_volume_info_with_number()
216 target->free_blocks = ncp_reply_dword_lh(server, 4); in ncp_get_volume_info_with_number()
217 target->purgeable_blocks = ncp_reply_dword_lh(server, 8); in ncp_get_volume_info_with_number()
218 target->not_yet_purgeable_blocks = ncp_reply_dword_lh(server, 12); in ncp_get_volume_info_with_number()
219 target->total_dir_entries = ncp_reply_dword_lh(server, 16); in ncp_get_volume_info_with_number()
220 target->available_dir_entries = ncp_reply_dword_lh(server, 20); in ncp_get_volume_info_with_number()
221 target->sectors_per_block = ncp_reply_byte(server, 28); in ncp_get_volume_info_with_number()
[all …]
/linux-2.6.39/drivers/scsi/
Dlibsrp.c127 int srp_target_alloc(struct srp_target *target, struct device *dev, in srp_target_alloc() argument
132 spin_lock_init(&target->lock); in srp_target_alloc()
133 INIT_LIST_HEAD(&target->cmd_queue); in srp_target_alloc()
135 target->dev = dev; in srp_target_alloc()
136 dev_set_drvdata(target->dev, target); in srp_target_alloc()
138 target->srp_iu_size = iu_size; in srp_target_alloc()
139 target->rx_ring_size = nr; in srp_target_alloc()
140 target->rx_ring = srp_ring_alloc(target->dev, nr, iu_size); in srp_target_alloc()
141 if (!target->rx_ring) in srp_target_alloc()
143 err = srp_iu_pool_alloc(&target->iu_queue, nr, target->rx_ring); in srp_target_alloc()
[all …]
Dqla1280.c810 qla1280_wait_for_pending_commands(struct scsi_qla_host *ha, int bus, int target) in qla1280_wait_for_pending_commands() argument
830 if (target >= 0 && SCSI_TCN_32(cmd) != target) in qla1280_wait_for_pending_commands()
859 int bus, target, lun; in qla1280_error_action() local
872 target = SCSI_TCN_32(cmd); in qla1280_error_action()
908 target, lun); in qla1280_error_action()
929 "command.\n", ha->host_no, bus, target, lun); in qla1280_error_action()
930 if (qla1280_device_reset(ha, bus, target) == 0) { in qla1280_error_action()
933 wait_for_target = target; in qla1280_error_action()
981 ha->host_no, bus, target, lun); in qla1280_error_action()
1151 qla1280_set_target_parameters(struct scsi_qla_host *ha, int bus, int target) in qla1280_set_target_parameters() argument
[all …]
/linux-2.6.39/fs/ocfs2/dlm/
Ddlmthread.c288 struct dlm_lock *lock, *target; in dlm_shuffle_lists() local
311 target = list_entry(res->converting.next, struct dlm_lock, list); in dlm_shuffle_lists()
312 if (target->ml.convert_type == LKM_IVMODE) { in dlm_shuffle_lists()
320 if (lock==target) in dlm_shuffle_lists()
323 target->ml.convert_type)) { in dlm_shuffle_lists()
331 if (lock->ml.highest_blocked < target->ml.convert_type) in dlm_shuffle_lists()
333 target->ml.convert_type; in dlm_shuffle_lists()
339 if (lock==target) in dlm_shuffle_lists()
342 target->ml.convert_type)) { in dlm_shuffle_lists()
348 if (lock->ml.highest_blocked < target->ml.convert_type) in dlm_shuffle_lists()
[all …]
/linux-2.6.39/net/bridge/netfilter/
Debt_mark.c25 int action = info->target & -16; in ebt_mark_tg()
36 return info->target | ~EBT_VERDICT_BITS; in ebt_mark_tg()
44 tmp = info->target | ~EBT_VERDICT_BITS; in ebt_mark_tg_check()
49 tmp = info->target & ~EBT_VERDICT_BITS; in ebt_mark_tg_check()
58 compat_uint_t target; member
67 kern->target = user->target; in mark_tg_compat_from_user()
76 put_user(kern->target, &user->target)) in mark_tg_compat_to_user()
86 .target = ebt_mark_tg,
/linux-2.6.39/arch/powerpc/kernel/
Dptrace.c228 static int gpr_get(struct task_struct *target, const struct user_regset *regset, in gpr_get() argument
234 if (target->thread.regs == NULL) in gpr_get()
237 if (!FULL_REGS(target->thread.regs)) { in gpr_get()
240 target->thread.regs->gpr[i] = NV_REG_POISON; in gpr_get()
244 target->thread.regs, in gpr_get()
247 unsigned long msr = get_user_msr(target); in gpr_get()
259 &target->thread.regs->orig_gpr3, in gpr_get()
269 static int gpr_set(struct task_struct *target, const struct user_regset *regset, in gpr_set() argument
276 if (target->thread.regs == NULL) in gpr_set()
279 CHECK_FULL_REGS(target->thread.regs); in gpr_set()
[all …]
/linux-2.6.39/fs/cifs/
Dcifs_unicode.c76 cifs_mapchar(char *target, const __u16 src_char, const struct nls_table *cp, in cifs_mapchar() argument
91 *target = ':'; in cifs_mapchar()
94 *target = '*'; in cifs_mapchar()
97 *target = '?'; in cifs_mapchar()
100 *target = '|'; in cifs_mapchar()
103 *target = '>'; in cifs_mapchar()
106 *target = '<'; in cifs_mapchar()
116 len = cp->uni2char(src_char, target, NLS_MAX_CHARSET_SIZE); in cifs_mapchar()
118 *target = '?'; in cifs_mapchar()
267 cifsConvertToUCS(__le16 *target, const char *source, int srclen, in cifsConvertToUCS() argument
[all …]
/linux-2.6.39/net/netfilter/
Dx_tables.c49 struct list_head target; member
73 xt_register_target(struct xt_target *target) in xt_register_target() argument
75 u_int8_t af = target->family; in xt_register_target()
81 list_add(&target->list, &xt[af].target); in xt_register_target()
88 xt_unregister_target(struct xt_target *target) in xt_unregister_target() argument
90 u_int8_t af = target->family; in xt_unregister_target()
93 list_del(&target->list); in xt_unregister_target()
99 xt_register_targets(struct xt_target *target, unsigned int n) in xt_register_targets() argument
105 err = xt_register_target(&target[i]); in xt_register_targets()
113 xt_unregister_targets(target, i); in xt_register_targets()
[all …]
/linux-2.6.39/net/sched/
Dact_ipt.c45 struct xt_target *target; in ipt_init_target() local
48 target = xt_request_find_target(AF_INET, t->u.user.name, in ipt_init_target()
50 if (IS_ERR(target)) in ipt_init_target()
51 return PTR_ERR(target); in ipt_init_target()
53 t->u.kernel.target = target; in ipt_init_target()
56 par.target = target; in ipt_init_target()
63 module_put(t->u.kernel.target->me); in ipt_init_target()
72 .target = t->u.kernel.target, in ipt_destroy_target()
75 if (par.target->destroy != NULL) in ipt_destroy_target()
76 par.target->destroy(&par); in ipt_destroy_target()
[all …]
/linux-2.6.39/arch/parisc/math-emu/
Ddecode_exc.c107 int target, exception_index = 1; in decode_fpu() local
223 target = current_ir & fivebits; in decode_fpu()
236 Sgl_decrement(Fpu_sgl(target)); in decode_fpu()
239 sgl_denormalize(&Fpu_sgl(target),&inexact,Rounding_mode()); in decode_fpu()
248 Dbl_decrement(Fpu_dblp1(target),Fpu_dblp2(target)); in decode_fpu()
251 dbl_denormalize(&Fpu_dblp1(target),&Fpu_dblp2(target), in decode_fpu()
301 target = current_ir & fivebits; in decode_fpu()
304 Sgl_setoverflow(Fpu_sgl(target)); in decode_fpu()
307 Dbl_setoverflow(Fpu_dblp1(target),Fpu_dblp2(target)); in decode_fpu()

12345678910>>...33