Home
last modified time | relevance | path

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

12345678910>>...13

/linux-2.4.37.9/kernel/
Dcapability.c26 struct task_struct *target; in sys_capget() local
52 target = find_task_by_pid(pid); /* identify target of query */ in sys_capget()
53 if (!target) in sys_capget()
56 target = current; in sys_capget()
60 data.permitted = cap_t(target->cap_permitted); in sys_capget()
61 data.inheritable = cap_t(target->cap_inheritable); in sys_capget()
62 data.effective = cap_t(target->cap_effective); in sys_capget()
65 if (target != current) in sys_capget()
84 struct task_struct *target; in cap_set_pg() local
88 for_each_task(target) { in cap_set_pg()
[all …]
/linux-2.4.37.9/drivers/scsi/aic7xxx_old/
Daic7xxx_proc.c91 unsigned char target; in aic7xxx_proc_info() local
133 for (target = 0; target < MAX_TARGETS; target++) in aic7xxx_proc_info()
135 if (p->dev_flags[target] & DEVICE_PRESENT) in aic7xxx_proc_info()
292 for (target = 0; target < MAX_TARGETS; target++) in aic7xxx_proc_info()
294 sp = &p->stats[target]; in aic7xxx_proc_info()
295 if ((p->dev_flags[target] & DEVICE_PRESENT) == 0) in aic7xxx_proc_info()
302 p->host_no, (target >> 3), (target & 0x7), 0); in aic7xxx_proc_info()
307 p->host_no, 0, target, 0); in aic7xxx_proc_info()
310 (p->transinfo[target].cur_width == MSG_EXT_WDTR_BUS_16_BIT) ? in aic7xxx_proc_info()
312 (p->transinfo[target].cur_offset != 0) ? in aic7xxx_proc_info()
[all …]
/linux-2.4.37.9/drivers/net/
Datari_pamsnet.c149 static void start (int target);
150 static int stop (int target);
151 static int testpkt (int target);
152 static int sendpkt (int target, unsigned char *buffer, int length);
153 static int receivepkt (int target, unsigned char *buffer);
154 static int inquiry (int target, unsigned char *buffer);
155 static HADDR *read_hw_addr(int target, unsigned char *buffer);
157 static int send_first (int target, unsigned char byte);
325 send_first (target, byte) in send_first() argument
326 int target; in send_first()
[all …]
/linux-2.4.37.9/fs/ncpfs/
Dncplib_kernel.c111 ncp_negotiate_buffersize(struct ncp_server *server, int size, int *target) in ncp_negotiate_buffersize() argument
122 *target = min_t(unsigned int, ntohs(ncp_reply_word(server, 0)), size); in ncp_negotiate_buffersize()
164 struct ncp_volume_info *target) in ncp_get_volume_info_with_number() argument
175 target->total_blocks = ncp_reply_dword(server, 0); in ncp_get_volume_info_with_number()
176 target->free_blocks = ncp_reply_dword(server, 4); in ncp_get_volume_info_with_number()
177 target->purgeable_blocks = ncp_reply_dword(server, 8); in ncp_get_volume_info_with_number()
178 target->not_yet_purgeable_blocks = ncp_reply_dword(server, 12); in ncp_get_volume_info_with_number()
179 target->total_dir_entries = ncp_reply_dword(server, 16); in ncp_get_volume_info_with_number()
180 target->available_dir_entries = ncp_reply_dword(server, 20); in ncp_get_volume_info_with_number()
181 target->sectors_per_block = ncp_reply_byte(server, 28); in ncp_get_volume_info_with_number()
[all …]
/linux-2.4.37.9/drivers/scsi/
Dqla1280.c581 #define SCSI_TCN_32(Cmnd) Cmnd->target
1260 int bus, target, lun; in qla1280_queuecommand() local
1280 target = SCSI_TCN_32(cmd); in qla1280_queuecommand()
1345 int bus, target, lun; in qla1280_error_action() local
1404 target = SCSI_TCN_32(cmd); in qla1280_error_action()
1442 ha->host_no, bus, target, lun); in qla1280_error_action()
1453 "command.\n", ha->host_no, bus, target, lun); in qla1280_error_action()
1454 if (qla1280_abort_device(ha, bus, target, lun) == 0) in qla1280_error_action()
1462 "command.\n", ha->host_no, bus, target, lun); in qla1280_error_action()
1464 if (qla1280_device_reset(ha, bus, target) == 0) in qla1280_error_action()
[all …]
Dsr_ioctl.c78 int sr_do_ioctl(int target, unsigned char *sr_cmd, void *buffer, unsigned buflength, int quiet, int… in sr_do_ioctl() argument
86 SDev = scsi_CDs[target].device; in sr_do_ioctl()
87 SRpnt = scsi_allocate_request(scsi_CDs[target].device); in sr_do_ioctl()
127 scsi_CDs[target].device->changed = 1; in sr_do_ioctl()
129 printk(KERN_INFO "sr%d: disc change detected.\n", target); in sr_do_ioctl()
139 printk(KERN_INFO "sr%d: CDROM not ready yet.\n", target); in sr_do_ioctl()
151 printk(KERN_INFO "sr%d: CDROM not ready. Make sure there is a disc in the drive.\n", target); in sr_do_ioctl()
160 "REQUEST.\n", target); in sr_do_ioctl()
172 printk(KERN_ERR "sr%d: CDROM (ioctl) error, command: ", target); in sr_do_ioctl()
334 int result, target = MINOR(cdi->dev); in sr_audio_ioctl() local
[all …]
Dfcal.c146 int status, target, alpa; in fcal_detect() local
150 target = alpa2target[alpa]; in fcal_detect()
151 status = fc_do_plogi(fc, alpa, fcal->node_wwn + target, in fcal_detect()
152 fcal->nport_wwn + target); in fcal_detect()
160 fcal->map[target] = 1; in fcal_detect()
235 unsigned char target; in fcal_proc_info() local
238 target = alpa2target[alpa]; in fcal_proc_info()
239 u1 = (u32 *)&fcal->nport_wwn[target]; in fcal_proc_info()
240 u2 = (u32 *)&fcal->node_wwn[target]; in fcal_proc_info()
243 } else if (!fcal->map[target]) { in fcal_proc_info()
[all …]
Dnsp32.c541 unsigned char target = SCpnt->device->id; in nsp32_selection_autopara() local
591 param->target_id = BIT(host_id) | BIT(target); in nsp32_selection_autopara()
654 unsigned char target = SCpnt->device->id; in nsp32_selection_autoscsi() local
701 nsp32_write1(base, SCSI_OUT_LATCH_TARGET_ID, BIT(host_id) | BIT(target)); in nsp32_selection_autoscsi()
893 data->cur_target = &(data->target[newid]); in nsp32_reselection()
978 nsp32_target *target; in nsp32_queuecommand() local
1053 target = &data->target[SCpnt->device->id]; in nsp32_queuecommand()
1054 data->cur_target = target; in nsp32_queuecommand()
1056 if (!(target->sync_flag & (SDTR_DONE | SDTR_INITIATOR | SDTR_TARGET))) { in nsp32_queuecommand()
1060 nsp32_set_max_sync(data, target, &period, &offset); in nsp32_queuecommand()
[all …]
Dsim710.c173 hostdata->negotiate |= (1 << cmd->target); \
256 } target[8]; member
616 struct sim710_target *targdata = hostdata->target + cmd->target; in handle_sdtr()
619 if (resa && hostdata->negotiate & (1 << cmd->target)) { in handle_sdtr()
626 hostdata->negotiate &= ~(1 << cmd->target); in handle_sdtr()
684 struct sim710_target *targdata = hostdata->target + cmd->target; in handle_idd()
729 struct sim710_target *targdata = hostdata->target + cmd->target; in handle_phase_mismatch()
767 hostdata->negotiate &= ~(1 << cmd->target); in handle_phase_mismatch()
850 struct sim710_target *targdata = hostdata->target + cmd->target; in handle_script_int()
928 struct sim710_target *targdata = hostdata->target + cmd->target; in run_command()
[all …]
Datari_NCR5380.c323 int target, lun; in init_tags() local
329 for( target = 0; target < 8; ++target ) { in init_tags()
331 ta = &TagAlloc[target][lun]; in init_tags()
355 if (hostdata->busy[cmd->target] & (1 << cmd->lun)) in is_lun_busy()
360 if (TagAlloc[cmd->target][cmd->lun].nr_allocated >= in is_lun_busy()
361 TagAlloc[cmd->target][cmd->lun].queue_size ) { in is_lun_busy()
363 H_NO(cmd), cmd->target, cmd->lun ); in is_lun_busy()
385 hostdata->busy[cmd->target] |= (1 << cmd->lun); in cmd_get_tag()
387 "command\n", H_NO(cmd), cmd->target, cmd->lun ); in cmd_get_tag()
390 TAG_ALLOC *ta = &TagAlloc[cmd->target][cmd->lun]; in cmd_get_tag()
[all …]
Dmac_NCR5380.c346 int target, lun; in init_tags() local
352 for( target = 0; target < 8; ++target ) { in init_tags()
354 ta = &TagAlloc[target][lun]; in init_tags()
378 if (hostdata->busy[cmd->target] & (1 << cmd->lun)) in is_lun_busy()
383 if (TagAlloc[cmd->target][cmd->lun].nr_allocated >= in is_lun_busy()
384 TagAlloc[cmd->target][cmd->lun].queue_size ) { in is_lun_busy()
386 H_NO(cmd), cmd->target, cmd->lun ); in is_lun_busy()
408 hostdata->busy[cmd->target] |= (1 << cmd->lun); in cmd_get_tag()
410 "command\n", H_NO(cmd), cmd->target, cmd->lun ); in cmd_get_tag()
413 TAG_ALLOC *ta = &TagAlloc[cmd->target][cmd->lun]; in cmd_get_tag()
[all …]
Dsun3_NCR5380.c330 int target, lun; in init_tags() local
336 for( target = 0; target < 8; ++target ) { in init_tags()
338 ta = &TagAlloc[target][lun]; in init_tags()
362 if (hostdata->busy[cmd->target] & (1 << cmd->lun)) in is_lun_busy()
367 if (TagAlloc[cmd->target][cmd->lun].nr_allocated >= in is_lun_busy()
368 TagAlloc[cmd->target][cmd->lun].queue_size ) { in is_lun_busy()
370 H_NO(cmd), cmd->target, cmd->lun ); in is_lun_busy()
392 hostdata->busy[cmd->target] |= (1 << cmd->lun); in cmd_get_tag()
394 "command\n", H_NO(cmd), cmd->target, cmd->lun ); in cmd_get_tag()
397 TAG_ALLOC *ta = &TagAlloc[cmd->target][cmd->lun]; in cmd_get_tag()
[all …]
DAM53C974.c367 static int AM53C974_sync_neg(struct Scsi_Host *instance, int target, unsigned char *msg);
368 static __inline__ void AM53C974_set_async(struct Scsi_Host *instance, int target);
369 static __inline__ void AM53C974_set_sync(struct Scsi_Host *instance, int target);
909 cmd->cmnd[0], cmd->target, cmd->lun, cmd->request_bufflen, cmd->use_sg)); in AM53C974_queue_command()
981 if (!(hostdata->busy[tmp->target] & (1 << tmp->lun))) { in AM53C974_main()
1040 static __inline__ void AM53C974_set_async(struct Scsi_Host *instance, int target) in AM53C974_set_async() argument
1046 AM53C974_write_8(STPREG, hostdata->sync_per[target]); in AM53C974_set_async()
1060 static __inline__ void AM53C974_set_sync(struct Scsi_Host *instance, int target) in AM53C974_set_sync() argument
1066 AM53C974_write_8(STPREG, hostdata->sync_per[target]); in AM53C974_set_sync()
1067 AM53C974_write_8(SOFREG, (SOFREG_SO & hostdata->sync_off[target]) | in AM53C974_set_sync()
[all …]
Dsd.c286 int target; in sd_find_queue() local
287 target = DEVICE_NR(dev); in sd_find_queue()
289 dpnt = &rscsi_disks[target]; in sd_find_queue()
447 int target, retval = -ENXIO; in sd_open() local
449 target = DEVICE_NR(inode->i_rdev); in sd_open()
451 SCSI_LOG_HLQUEUE(1, printk("target=%d, max=%d\n", target, sd_template.dev_max)); in sd_open()
453 if (target >= sd_template.dev_max || !rscsi_disks[target].device) in sd_open()
460 if (!scsi_block_when_processing_errors(rscsi_disks[target].device)) { in sd_open()
469 while (rscsi_disks[target].device->busy) { in sd_open()
477 SDev = rscsi_disks[target].device; in sd_open()
[all …]
/linux-2.4.37.9/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()
/linux-2.4.37.9/drivers/block/
Dacsi.c112 unsigned target; /* target number */ member
367 static void acsi_prevent_removal( int target, int flag );
368 static int acsi_change_blk_size( int target, int lun);
369 static int acsi_mode_sense( int target, int lun, SENSE_DATA *sd );
384 extern int attach_slm( int target, int lun );
789 if (!acsi_reqsense( acsi_buffer, acsi_info[dev].target, in read_intr()
820 if (!acsi_reqsense( acsi_buffer, acsi_info[dev].target, in write_intr()
951 { unsigned block, dev, target, lun, nsect; in redo_acsi_request() local
1017 target = acsi_info[DEVICE_NR(dev)].target; in redo_acsi_request()
1067 CMDSET_TARG_LUN( write_cmd, target, lun ); in redo_acsi_request()
[all …]
/linux-2.4.37.9/drivers/acorn/scsi/
Dacornscsi.c122 if (cmd->target == DEBUG_TARGET) { \
515 acornscsi_dumplogline(AS_Host *host, int target, int line) in acornscsi_dumplogline() argument
520 ptr = host->status_ptr[target] - STATUS_BUFFER_TO_PRINT; in acornscsi_dumplogline()
524 printk("%c: %3s:", target == 8 ? 'H' : '0' + target, in acornscsi_dumplogline()
527 prev = host->status[target][ptr].when; in acornscsi_dumplogline()
529 for (; ptr != host->status_ptr[target]; ptr = (ptr + 1) & (STATUS_BUFFER_SIZE - 1)) { in acornscsi_dumplogline()
532 if (!host->status[target][ptr].when) in acornscsi_dumplogline()
537 printk("%c%02X", host->status[target][ptr].irq ? '-' : ' ', in acornscsi_dumplogline()
538 host->status[target][ptr].ph); in acornscsi_dumplogline()
542 printk(" %02X", host->status[target][ptr].ssr); in acornscsi_dumplogline()
[all …]
Dfas216.c250 return '0' + info->SCpnt->target; in fas216_target()
256 fas216_do_log(FAS216_Info *info, char target, char *fmt, va_list ap) in fas216_do_log() argument
261 printk("scsi%d.%c: %s", info->host->host_no, target, buf); in fas216_do_log()
273 fas216_do_log(info, '0' + SCpnt->target, fmt, args); in fas216_log_command()
281 fas216_log_target(FAS216_Info *info, int level, int target, char *fmt, ...) in fas216_log_target() argument
288 if (target < 0) in fas216_log_target()
289 target = 'H'; in fas216_log_target()
291 target += '0'; in fas216_log_target()
294 fas216_do_log(info, target, fmt, args); in fas216_log_target()
435 static void fas216_set_sync(FAS216_Info *info, int target) in fas216_set_sync() argument
[all …]
Dqueue.c173 if (!test_bit(q->SCpnt->target * 8 + q->SCpnt->lun, exclude)) { in queue_remove_exclude()
211 Scsi_Cmnd *queue_remove_tgtluntag (Queue_t *queue, int target, int lun, int tag) in queue_remove_tgtluntag() argument
220 if (q->SCpnt->target == target && q->SCpnt->lun == lun && in queue_remove_tgtluntag()
238 void queue_remove_all_target(Queue_t *queue, int target) in queue_remove_all_target() argument
246 if (q->SCpnt->target == target) in queue_remove_all_target()
261 int queue_probetgtlun (Queue_t *queue, int target, int lun) in queue_probetgtlun() argument
270 if (q->SCpnt->target == target && q->SCpnt->lun == lun) { in queue_probetgtlun()
/linux-2.4.37.9/drivers/scsi/sym53c8xx_2/
Dsym_hipd.c107 static void sym_print_target (hcb_p np, int target) in sym_print_target() argument
109 printf ("%s:%d:", sym_name(np), target); in sym_print_target()
112 static void sym_print_lun(hcb_p np, int target, int lun) in sym_print_lun() argument
114 printf ("%s:%d:%d:", sym_name(np), target, lun); in sym_print_lun()
147 static void sym_print_nego_msg (hcb_p np, int target, char *label, u_char *msg) in sym_print_nego_msg() argument
149 PRINT_TARGET(np, target); in sym_print_nego_msg()
697 if (np->target[i].usrflags & mask) {
1008 tcb_p tp = &np->target[i];
1475 tcb_p tp = &np->target[cp->target];
1532 sym_print_nego_msg(np, cp->target,
[all …]
Dsym_nvram.c105 static void sym_Symbios_setup_target(hcb_p np,int target, Symbios_nvram *nvram);
106 static void sym_Tekram_setup_target(hcb_p np,int target, Tekram_nvram *nvram);
109 void sym_nvram_setup_target (hcb_p np, int target, struct sym_nvram *nvp) in sym_nvram_setup_target() argument
114 sym_Symbios_setup_target (np, target, &nvp->data.Symbios); in sym_nvram_setup_target()
117 sym_Tekram_setup_target (np, target, &nvp->data.Tekram); in sym_nvram_setup_target()
130 sym_Symbios_setup_target(hcb_p np, int target, Symbios_nvram *nvram) in sym_Symbios_setup_target() argument
132 tcb_p tp = &np->target[target]; in sym_Symbios_setup_target()
133 Symbios_target *tn = &nvram->target[target]; in sym_Symbios_setup_target()
152 sym_Tekram_setup_target(hcb_p np, int target, Tekram_nvram *nvram) in sym_Tekram_setup_target() argument
154 tcb_p tp = &np->target[target]; in sym_Tekram_setup_target()
[all …]
/linux-2.4.37.9/net/ipv4/netfilter/
Darpt_mangle.c7 target(struct sk_buff **pskb, unsigned int hooknum, const struct net_device *in, in target() function
59 return mangle->target; in target()
72 if (mangle->target != NF_DROP && mangle->target != NF_ACCEPT && in checkentry()
73 mangle->target != ARPT_CONTINUE) in checkentry()
81 .target = target,
DConfig.in50 dep_tristate ' REJECT target support' CONFIG_IP_NF_TARGET_REJECT $CONFIG_IP_NF_FILTER
52 …dep_tristate ' MIRROR target support (EXPERIMENTAL)' CONFIG_IP_NF_TARGET_MIRROR $CONFIG_IP_NF_F…
60 dep_tristate ' MASQUERADE target support' CONFIG_IP_NF_TARGET_MASQUERADE $CONFIG_IP_NF_NAT
61 dep_tristate ' REDIRECT target support' CONFIG_IP_NF_TARGET_REDIRECT $CONFIG_IP_NF_NAT
100 dep_tristate ' TOS target support' CONFIG_IP_NF_TARGET_TOS $CONFIG_IP_NF_MANGLE
101 dep_tristate ' ECN target support' CONFIG_IP_NF_TARGET_ECN $CONFIG_IP_NF_MANGLE
103 dep_tristate ' DSCP target support' CONFIG_IP_NF_TARGET_DSCP $CONFIG_IP_NF_MANGLE
105 dep_tristate ' MARK target support' CONFIG_IP_NF_TARGET_MARK $CONFIG_IP_NF_MANGLE
106 …dep_tristate ' CLASSIFY target support (EXPERIMENTAL)' CONFIG_IP_NF_TARGET_CLASSIFY $CONFIG_IP_…
108 dep_tristate ' LOG target support' CONFIG_IP_NF_TARGET_LOG $CONFIG_IP_NF_IPTABLES
[all …]
/linux-2.4.37.9/arch/ia64/drivers/
Dsimscsi.c160 stat.fd = desc[sc->target]; in simscsi_readwrite()
182 stat.fd = desc[sc->target]; in simscsi_sg_readwrite()
271 sc->target, sc->cmnd[0], sc->serial_number, sp, done); in simscsi_queuecommand()
276 if (sc->target <= 15 && sc->lun == 0) { in simscsi_queuecommand()
282 sprintf (fname, "%s%c", simscsi_root, 'a' + sc->target); in simscsi_queuecommand()
283 desc[sc->target] = ia64_ssc(__pa(fname), SSC_READ_ACCESS|SSC_WRITE_ACCESS, in simscsi_queuecommand()
285 if (desc[sc->target] < 0) { in simscsi_queuecommand()
307 if (desc[sc->target] < 0 ) in simscsi_queuecommand()
313 if (desc[sc->target] < 0 ) in simscsi_queuecommand()
319 if (desc[sc->target] < 0) in simscsi_queuecommand()
[all …]
/linux-2.4.37.9/drivers/message/i2o/
Di2o_scsi.c304 static int i2o_find_lun(struct i2o_controller *c, struct i2o_device *d, int *target, int *lun) in i2o_find_lun() argument
311 *target=reply[0]; in i2o_find_lun()
318 dprintk(("SCSI (%d,%d)\n", *target, *lun)); in i2o_find_lun()
327 int target; in i2o_scsi_init() local
332 for(target=0;target<16;target++) in i2o_scsi_init()
334 h->task[target][lun] = -1; in i2o_scsi_init()
355 if(i2o_find_lun(c, unit, &target, &lun)==-1) in i2o_scsi_init()
360 dprintk(("Found disk %d %d.\n", target, lun)); in i2o_scsi_init()
361 h->task[target][lun]=unit->lct_data.tid; in i2o_scsi_init()
362 h->tagclock[target][lun]=jiffies; in i2o_scsi_init()
[all …]

12345678910>>...13