i                  72 altq/altq_cbq.c 	int	i;
i                  80 altq/altq_cbq.c 	for (i = 0; i < CBQ_MAX_CLASSES; i++)
i                  81 altq/altq_cbq.c 		if (cbqp->cbq_class_tbl[i] == cl)
i                  82 altq/altq_cbq.c 			cbqp->cbq_class_tbl[i] = NULL;
i                  95 altq/altq_cbq.c 	int i;
i                 104 altq/altq_cbq.c 	i = chandle % CBQ_MAX_CLASSES;
i                 105 altq/altq_cbq.c 	if ((cl = cbqp->cbq_class_tbl[i]) != NULL &&
i                 108 altq/altq_cbq.c 	for (i = 0; i < CBQ_MAX_CLASSES; i++)
i                 109 altq/altq_cbq.c 		if ((cl = cbqp->cbq_class_tbl[i]) != NULL &&
i                 118 altq/altq_cbq.c 	int		 again, i;
i                 124 altq/altq_cbq.c 		for (i = 0; i < CBQ_MAX_CLASSES; i++) {
i                 125 altq/altq_cbq.c 			if ((cl = cbqp->cbq_class_tbl[i]) != NULL) {
i                 130 altq/altq_cbq.c 					cbqp->cbq_class_tbl[i] = NULL;
i                 260 altq/altq_cbq.c 	int		i;
i                 272 altq/altq_cbq.c 	i = a->qid % CBQ_MAX_CLASSES;
i                 273 altq/altq_cbq.c 	if (cbqp->cbq_class_tbl[i] != NULL) {
i                 274 altq/altq_cbq.c 		for (i = 0; i < CBQ_MAX_CLASSES; i++)
i                 275 altq/altq_cbq.c 			if (cbqp->cbq_class_tbl[i] == NULL)
i                 277 altq/altq_cbq.c 		if (i == CBQ_MAX_CLASSES)
i                 355 altq/altq_cbq.c 	cbqp->cbq_class_tbl[i] = cl;
i                 368 altq/altq_cbq.c 	int		i;
i                 386 altq/altq_cbq.c 	for (i = 0; i < CBQ_MAX_CLASSES; i++)
i                 387 altq/altq_cbq.c 		if (cbqp->cbq_class_tbl[i] == cl) {
i                 388 altq/altq_cbq.c 			cbqp->cbq_class_tbl[i] = NULL;
i                 525 altq/altq_cbq.c 	int		 i;
i                 527 altq/altq_cbq.c 	for (i = 0; i < CBQ_MAX_CLASSES; i++)
i                 528 altq/altq_cbq.c 		if ((cl = cbqp->cbq_class_tbl[i]) != NULL)
i                 149 altq/altq_classq.h 	int i, n;
i                 159 altq/altq_classq.h 		for (i = 0; i < n; i++) {
i                 338 altq/altq_hfsc.c 	int i, s;
i                 457 altq/altq_hfsc.c 	i = qid % HFSC_MAX_CLASSES;
i                 458 altq/altq_hfsc.c 	if (hif->hif_class_tbl[i] == NULL)
i                 459 altq/altq_hfsc.c 		hif->hif_class_tbl[i] = cl;
i                 461 altq/altq_hfsc.c 		for (i = 0; i < HFSC_MAX_CLASSES; i++)
i                 462 altq/altq_hfsc.c 			if (hif->hif_class_tbl[i] == NULL) {
i                 463 altq/altq_hfsc.c 				hif->hif_class_tbl[i] = cl;
i                 466 altq/altq_hfsc.c 		if (i == HFSC_MAX_CLASSES) {
i                 520 altq/altq_hfsc.c 	int i, s;
i                 549 altq/altq_hfsc.c 	for (i = 0; i < HFSC_MAX_CLASSES; i++)
i                 550 altq/altq_hfsc.c 		if (cl->cl_hif->hif_class_tbl[i] == cl) {
i                 551 altq/altq_hfsc.c 			cl->cl_hif->hif_class_tbl[i] = NULL;
i                1623 altq/altq_hfsc.c 	int i;
i                1632 altq/altq_hfsc.c 	i = chandle % HFSC_MAX_CLASSES;
i                1633 altq/altq_hfsc.c 	if ((cl = hif->hif_class_tbl[i]) != NULL && cl->cl_handle == chandle)
i                1635 altq/altq_hfsc.c 	for (i = 0; i < HFSC_MAX_CLASSES; i++)
i                1636 altq/altq_hfsc.c 		if ((cl = hif->hif_class_tbl[i]) != NULL &&
i                 162 altq/altq_red.c 	int	 w, i;
i                 212 altq/altq_red.c 	for (i = 0; w > 1; i++)
i                 214 altq/altq_red.c 	rp->red_wshift = i;
i                 529 altq/altq_red.c 	int		 i;
i                 548 altq/altq_red.c 	for (i = 1; i < 32; i++) {
i                 549 altq/altq_red.c 		w->w_tab[i] = (w->w_tab[i-1] * w->w_tab[i-1]) >> FP_SHIFT;
i                 550 altq/altq_red.c 		if (w->w_tab[i] == 0 && w->w_param_max == 0)
i                 551 altq/altq_red.c 			w->w_param_max = 1 << i;
i                 580 altq/altq_red.c 	int	i, bit;
i                 591 altq/altq_red.c 	i = 0;
i                 594 altq/altq_red.c 			val = (val * w->w_tab[i]) >> FP_SHIFT;
i                 597 altq/altq_red.c 		i++;
i                 172 altq/altq_rio.c 	int	 w, i;
i                 206 altq/altq_rio.c 	for (i = 0; w > 1; i++)
i                 208 altq/altq_rio.c 	rp->rio_wshift = i;
i                 219 altq/altq_rio.c 	for (i = 0; i < RIO_NDROPPREC; i++) {
i                 220 altq/altq_rio.c 		struct dropprec_state *prec = &rp->rio_precstate[i];
i                 225 altq/altq_rio.c 		if (params == NULL || params[i].inv_pmax == 0)
i                 226 altq/altq_rio.c 			prec->inv_pmax = default_rio_params[i].inv_pmax;
i                 228 altq/altq_rio.c 			prec->inv_pmax = params[i].inv_pmax;
i                 229 altq/altq_rio.c 		if (params == NULL || params[i].th_min == 0)
i                 230 altq/altq_rio.c 			prec->th_min = default_rio_params[i].th_min;
i                 232 altq/altq_rio.c 			prec->th_min = params[i].th_min;
i                 233 altq/altq_rio.c 		if (params == NULL || params[i].th_max == 0)
i                 234 altq/altq_rio.c 			prec->th_max = default_rio_params[i].th_max;
i                 236 altq/altq_rio.c 			prec->th_max = params[i].th_max;
i                 268 altq/altq_rio.c 	int	i;
i                 270 altq/altq_rio.c 	for (i = 0; i < RIO_NDROPPREC; i++) {
i                 271 altq/altq_rio.c 		bcopy(&rp->q_stats[i], sp, sizeof(struct redstats));
i                 272 altq/altq_rio.c 		sp->q_avg = rp->rio_precstate[i].avg >> rp->rio_wshift;
i                 312 altq/altq_rio.c 	int			 dpindex, i, n, t;
i                 324 altq/altq_rio.c 	for (i = dpindex; i < RIO_NDROPPREC; i++) {
i                 325 altq/altq_rio.c 		prec = &rp->rio_precstate[i];
i                 386 altq/altq_rio.c 		for (i = dpindex; i < RIO_NDROPPREC; i++)
i                 387 altq/altq_rio.c 			rp->rio_precstate[i].count = 0;
i                 399 altq/altq_rio.c 	for (i = dpindex; i < RIO_NDROPPREC; i++)
i                 400 altq/altq_rio.c 		rp->rio_precstate[i].qlen++;
i                 423 altq/altq_rio.c 	int		 dpindex, i;
i                 429 altq/altq_rio.c 	for (i = dpindex; i < RIO_NDROPPREC; i++) {
i                 430 altq/altq_rio.c 		if (--rp->rio_precstate[i].qlen == 0) {
i                 431 altq/altq_rio.c 			if (rp->rio_precstate[i].idle == 0) {
i                 432 altq/altq_rio.c 				rp->rio_precstate[i].idle = 1;
i                 433 altq/altq_rio.c 				microtime(&rp->rio_precstate[i].last);
i                 391 altq/altq_rmclass.c 	int		i;
i                 394 altq/altq_rmclass.c 	for (i = 0; i < RM_MAXPRIO; i++) {
i                 399 altq/altq_rmclass.c 		if (ifd->num_[i] == 0)
i                 400 altq/altq_rmclass.c 			ifd->M_[i] = 0;
i                 402 altq/altq_rmclass.c 			ifd->M_[i] = ifd->alloc_[i] /
i                 403 altq/altq_rmclass.c 				(ifd->num_[i] * ifd->maxpkt_);
i                 411 altq/altq_rmclass.c 		if (ifd->active_[i] != NULL) {
i                 412 altq/altq_rmclass.c 			clh = cl = ifd->active_[i];
i                 415 altq/altq_rmclass.c 				if (ifd->M_[i] == 0)
i                 419 altq/altq_rmclass.c 						ifd->M_[i];
i                 649 altq/altq_rmclass.c 	int		i, mtu;
i                 677 altq/altq_rmclass.c 	for (i = 0; i < RM_MAXPRIO; i++) {
i                 678 altq/altq_rmclass.c 		ifd->alloc_[i] = 0;
i                 679 altq/altq_rmclass.c 		ifd->M_[i] = 0;
i                 680 altq/altq_rmclass.c 		ifd->num_[i] = 0;
i                 681 altq/altq_rmclass.c 		ifd->na_[i] = 0;
i                 682 altq/altq_rmclass.c 		ifd->active_[i] = NULL;
i                 690 altq/altq_rmclass.c 	for (i = 0; i < RM_MAXQUEUED; i++) {
i                 691 altq/altq_rmclass.c 		ifd->class_[i] = NULL;
i                 692 altq/altq_rmclass.c 		ifd->curlen_[i] = 0;
i                 693 altq/altq_rmclass.c 		ifd->borrowed_[i] = NULL;
i                 792 altq/altq_rmclass.c 	int		 i;
i                 795 altq/altq_rmclass.c 	for (i = RM_MAXPRIO - 1; i >= 0; i--) {
i                 796 altq/altq_rmclass.c 		if ((bp = ifd->active_[i]) != NULL) {
i                1644 altq/altq_rmclass.c 	int	 i, *p;
i                1650 altq/altq_rmclass.c 	for (i=0; i<20; i++) {
i                1726 altq/altq_rmclass.c 	int		 i, n;
i                1737 altq/altq_rmclass.c 		for (i = 0; i < n; i++) {
i                  83 arch/i386/i386/acpi_machdep.c 	size_t i;
i                  89 arch/i386/i386/acpi_machdep.c 	for (ptr = handle->va, i = 0;
i                  90 arch/i386/i386/acpi_machdep.c 	     i < len;
i                  91 arch/i386/i386/acpi_machdep.c 	     ptr += 16, i += 16)
i                 278 arch/i386/i386/amd64errata.c 	int i, j;
i                 286 arch/i386/i386/amd64errata.c 	for (i = 0; ; i += 2) {
i                 287 arch/i386/i386/amd64errata.c 		if ((rev = cpurevs[i]) == OINK) {
i                 293 arch/i386/i386/amd64errata.c 		if (cpurevs[i + 1] == regs[0]) {
i                 201 arch/i386/i386/bios.c 			int i;
i                 207 arch/i386/i386/bios.c 			for (cksum = 0, i = h->length * 16; i--; cksum += va[i])
i                 230 arch/i386/i386/bios.c 			int i;
i                 234 arch/i386/i386/bios.c 			i = sh->len;
i                 235 arch/i386/i386/bios.c 			for (chksum = 0; i--; chksum += va[i])
i                 243 arch/i386/i386/bios.c 			for (chksum = 0, i = 0xf; i--; chksum += va[i]);
i                 333 arch/i386/i386/bios.c 			int i;
i                 349 arch/i386/i386/bios.c 			for (cksum = 0, i = len; i--; cksum += va[i])
i                 365 arch/i386/i386/bios.c 			if ((i = extent_alloc_region(iomem_ex,
i                 367 arch/i386/i386/bios.c 				printf(":%d", i);
i                 743 arch/i386/i386/bios.c 	int i;
i                 747 arch/i386/i386/bios.c 	for (i = 1; va < end && i < indx && *va; i++)
i                 750 arch/i386/i386/bios.c 	if (i == indx) {
i                 765 arch/i386/i386/bios.c 	int i;
i                 767 arch/i386/i386/bios.c 	for (i= 0; i < sizeof(smbios_uninfo)/sizeof(smbios_uninfo[0]); i++)
i                 768 arch/i386/i386/bios.c 		if ((strncasecmp(s, smbios_uninfo[i], strlen(smbios_uninfo[i])))==0)
i                 797 arch/i386/i386/bios.c 	int i, infolen, uuidf, havebb;
i                 885 arch/i386/i386/bios.c 		for (i = 0; i < sizeof(sys->uuid); i++) {
i                 886 arch/i386/i386/bios.c 			if (sys->uuid[i] != 0xff)
i                 888 arch/i386/i386/bios.c 			if (sys->uuid[i] != 0)
i                 364 arch/i386/i386/cpu.c 	u_long i;
i                 366 arch/i386/i386/cpu.c 	for (i = 0; i < I386_MAXPROCS; i++) {
i                 367 arch/i386/i386/cpu.c 		ci = cpu_info[i];
i                 384 arch/i386/i386/cpu.c 	u_long i;
i                 386 arch/i386/i386/cpu.c 	for (i=0; i < I386_MAXPROCS; i++) {
i                 387 arch/i386/i386/cpu.c 		ci = cpu_info[i];
i                 402 arch/i386/i386/cpu.c 	int i;
i                 422 arch/i386/i386/cpu.c 	for (i = 100000; (!(ci->ci_flags & CPUF_RUNNING)) && i > 0; i--) {
i                 229 arch/i386/i386/db_interface.c 	int i;
i                 231 arch/i386/i386/db_interface.c 	for (i = 0; i < I386_MAXPROCS; i++) {
i                 232 arch/i386/i386/db_interface.c 		if (cpu_info[i] != NULL) {
i                 233 arch/i386/i386/db_interface.c 			db_printf("%c%4d: ", (i == cpu_number()) ? '*' : ' ',
i                 234 arch/i386/i386/db_interface.c 			    cpu_info[i]->ci_dev.dv_unit);
i                 235 arch/i386/i386/db_interface.c 			switch(cpu_info[i]->ci_ddb_paused) {
i                 253 arch/i386/i386/db_interface.c 				    cpu_info[i]->ci_ddb_paused);
i                 352 arch/i386/i386/db_interface.c 	int i;
i                 357 arch/i386/i386/db_interface.c 	for (i = 0; i < I386_MAXPROCS; i++) {
i                 358 arch/i386/i386/db_interface.c 		if (cpu_info[i] != NULL)
i                 359 arch/i386/i386/db_interface.c 			cpu_info[i]->ci_ddb_paused = CI_DDB_RUNNING;
i                  47 arch/i386/i386/db_mp.c 	int i;
i                  57 arch/i386/i386/db_mp.c 		for (i = 0; i < I386_MAXPROCS; i++) {
i                  58 arch/i386/i386/db_mp.c 			if (cpu_info[i] != NULL && i != cpu_number() &&
i                  59 arch/i386/i386/db_mp.c 			    cpu_info[i]->ci_ddb_paused != CI_DDB_STOPPED) {
i                  60 arch/i386/i386/db_mp.c 				cpu_info[i]->ci_ddb_paused = CI_DDB_SHOULDSTOP;
i                  61 arch/i386/i386/db_mp.c 				i386_send_ipi(cpu_info[i], I386_IPI_DDB);
i                  69 arch/i386/i386/db_mp.c 		for (i = 0; i < I386_MAXPROCS; i++) {
i                  70 arch/i386/i386/db_mp.c 			if (cpu_info[i] != NULL) {
i                  71 arch/i386/i386/db_mp.c 				cpu_info[i]->ci_ddb_paused = CI_DDB_RUNNING;
i                 227 arch/i386/i386/esm.c 	int				i;
i                 262 arch/i386/i386/esm.c 	for (i = 0; i <= 0xff; i++) {
i                 263 arch/i386/i386/esm.c 		if (esm_get_devmap(sc, i, &devmap) != 0)
i                 354 arch/i386/i386/esm.c 	int			nsensors, i, step;
i                 381 arch/i386/i386/esm.c 		for (i = 0; i < nsensors; i++)
i                 382 arch/i386/i386/esm.c 			es->es_sensor[i].flags |= SENSOR_FINVALID;
i                 399 arch/i386/i386/esm.c 			for (i = 0; i < nsensors; i++) {
i                 400 arch/i386/i386/esm.c 				es->es_sensor[i].value =
i                 401 arch/i386/i386/esm.c 				    (val->v_reading >> i * 8) & 0xf;
i                 405 arch/i386/i386/esm.c 			for (i = 0; i < nsensors; i++) {
i                 406 arch/i386/i386/esm.c 				es->es_sensor[i].value =
i                 407 arch/i386/i386/esm.c 				    (val->v_reading >> i) & 0x1;
i                 448 arch/i386/i386/esm.c 		for (i = 0; i < nsensors; i++)
i                 481 arch/i386/i386/esm.c 	int			i;
i                 517 arch/i386/i386/esm.c 		for (i = 0; i < ESM2_UUID_LEN; i++) {
i                 518 arch/i386/i386/esm.c 			printf("%02x", resp.devmap[0].uniqueid[i]);
i                 826 arch/i386/i386/esm.c 	int			nsensors, i, j;
i                 839 arch/i386/i386/esm.c 	for (i = 0; i < mapsize; i++) {
i                 840 arch/i386/i386/esm.c 		req.req_val.v_sensor = i;
i                 846 arch/i386/i386/esm.c 		    DEVNAME(sc), devmap->index, i, sensor_map[i].name,
i                 849 arch/i386/i386/esm.c 		switch (sensor_map[i].type) {
i                 866 arch/i386/i386/esm.c 		es->es_id = i;
i                 867 arch/i386/i386/esm.c 		es->es_type = sensor_map[i].type;
i                 886 arch/i386/i386/esm.c 				    sensor_map[i].name, sensor_map[i].arg + j);
i                 905 arch/i386/i386/esm.c 				    sensor_map[i].name, psulabels[j]);
i                 929 arch/i386/i386/esm.c 			strlcpy(s->desc, sensor_map[i].name, sizeof(s->desc));
i                 997 arch/i386/i386/esm.c 	int			i;
i                1009 arch/i386/i386/esm.c 		for (i = 0; i < cmdlen; i++) {
i                1030 arch/i386/i386/esm.c 		for (i = 0; i < resplen; i++) {
i                 957 arch/i386/i386/est.c 	int i, mhz, mv, low, high;
i                1004 arch/i386/i386/est.c 	for (i = 0; i < NELEM(est_cpus); i++) {
i                1005 arch/i386/i386/est.c 		fql = &est_cpus[i];
i                1046 arch/i386/i386/est.c 	for (i = est_fqlist->n - 1; i >= 0; i--) {
i                1047 arch/i386/i386/est.c 		if (cur == est_fqlist->table[i])
i                1050 arch/i386/i386/est.c 	if (i < 0) {
i                1062 arch/i386/i386/est.c 	for (i = 0; i < est_fqlist->n; i++)
i                1063 arch/i386/i386/est.c 		printf("%d%s", MSR2MHZ(est_fqlist->table[i], bus_clock),
i                1064 arch/i386/i386/est.c 		    i < est_fqlist->n - 1 ? ", " : " MHz\n");
i                1073 arch/i386/i386/est.c 	int i;
i                1079 arch/i386/i386/est.c 	i = ((level * est_fqlist->n) + 1) / 101;
i                1080 arch/i386/i386/est.c 	if (i >= est_fqlist->n)
i                1081 arch/i386/i386/est.c 		i = est_fqlist->n - 1;
i                1082 arch/i386/i386/est.c 	i = est_fqlist->n - 1 - i;
i                1086 arch/i386/i386/est.c 	msr |= est_fqlist->table[i];
i                1088 arch/i386/i386/est.c 	cpuspeed = MSR2MHZ(est_fqlist->table[i], bus_clock);
i                 140 arch/i386/i386/i686_mem.c 	int			 i;
i                 142 arch/i386/i386/i686_mem.c 	for (i = 0, cand = sc->mr_desc; i < sc->mr_ndesc; i++, cand++)
i                 159 arch/i386/i386/i686_mem.c 	int			 i, j, msr;
i                 166 arch/i386/i386/i686_mem.c 		for (i = 0; i < (MTRR_N64K / 8); i++, msr++) {
i                 179 arch/i386/i386/i686_mem.c 		for (i = 0; i < (MTRR_N16K / 8); i++, msr++) {
i                 192 arch/i386/i386/i686_mem.c 		for (i = 0; i < (MTRR_N4K / 8); i++, msr++) {
i                 234 arch/i386/i386/i686_mem.c 	int		i;
i                 238 arch/i386/i386/i686_mem.c 	for (i = 0; i < MTRRTOMRTLEN; i++) {
i                 239 arch/i386/i386/i686_mem.c 		if (i686_mtrrtomrt[i] == MDF_UNKNOWN)
i                 241 arch/i386/i386/i686_mem.c 		if (flags == i686_mtrrtomrt[i])
i                 242 arch/i386/i386/i686_mem.c 			return(i);
i                 282 arch/i386/i386/i686_mem.c 	int			 i, j, msr;
i                 297 arch/i386/i386/i686_mem.c 		for (i = 0; i < (MTRR_N64K / 8); i++, msr++) {
i                 309 arch/i386/i386/i686_mem.c 		for (i = 0; i < (MTRR_N16K / 8); i++, msr++) {
i                 321 arch/i386/i386/i686_mem.c 		for (i = 0; i < (MTRR_N4K / 8); i++, msr++) {
i                 368 arch/i386/i386/i686_mem.c 	int			i;
i                 370 arch/i386/i386/i686_mem.c 	for (i = 0, mrd = sc->mr_desc; i < (MTRR_N64K + MTRR_N16K + MTRR_N4K); i++, mrd++)
i                 423 arch/i386/i386/i686_mem.c 	int			 i;
i                 432 arch/i386/i386/i686_mem.c 	i = (sc->mr_cap & MR686_FIXMTRR) ? MTRR_N64K + MTRR_N16K + MTRR_N4K : 0;
i                 433 arch/i386/i386/i686_mem.c 	curr_md = sc->mr_desc + i;
i                 435 arch/i386/i386/i686_mem.c 	for (; i < sc->mr_ndesc; i++, curr_md++) {
i                 536 arch/i386/i386/i686_mem.c 	int			 i;
i                 564 arch/i386/i386/i686_mem.c 		for (i = 0; i < MTRR_N64K; i++, mrd++) {
i                 565 arch/i386/i386/i686_mem.c 			mrd->mr_base = i * 0x10000;
i                 569 arch/i386/i386/i686_mem.c 		for (i = 0; i < MTRR_N16K; i++, mrd++) {
i                 570 arch/i386/i386/i686_mem.c 			mrd->mr_base = i * 0x4000 + 0x80000;
i                 574 arch/i386/i386/i686_mem.c 		for (i = 0; i < MTRR_N4K; i++, mrd++) {
i                 575 arch/i386/i386/i686_mem.c 			mrd->mr_base = i * 0x1000 + 0xc0000;
i                 587 arch/i386/i386/i686_mem.c 	for (i = 0; i < sc->mr_ndesc; i++, mrd++) {
i                 271 arch/i386/i386/ioapic.c 	int i, ioapic_found;
i                 343 arch/i386/i386/ioapic.c 	for (i=0; i<sc->sc_apic_sz; i++) {
i                 344 arch/i386/i386/ioapic.c 		sc->sc_pins[i].ip_handler = NULL;
i                 345 arch/i386/i386/ioapic.c 		sc->sc_pins[i].ip_next = NULL;
i                 346 arch/i386/i386/ioapic.c 		sc->sc_pins[i].ip_map = NULL;
i                 347 arch/i386/i386/ioapic.c 		sc->sc_pins[i].ip_vector = 0;
i                 348 arch/i386/i386/ioapic.c 		sc->sc_pins[i].ip_type = 0;
i                 349 arch/i386/i386/ioapic.c 		sc->sc_pins[i].ip_minlevel = 0xff; /* XXX magic*/
i                 350 arch/i386/i386/ioapic.c 		sc->sc_pins[i].ip_maxlevel = 0;	/* XXX magic */
i                 365 arch/i386/i386/ioapic.c 		for (i=0; i<sc->sc_apic_sz; i++)
i                 366 arch/i386/i386/ioapic.c 			ioapic_print_redir(sc, "boot", i);
i                  86 arch/i386/i386/kvm86.c 	int i;
i                 106 arch/i386/i386/kvm86.c 	for (i = 0; i < sizeof(vmd->iomap) / 4; i++)
i                 107 arch/i386/i386/kvm86.c 		vmd->iomap[i] = 0;
i                 132 arch/i386/i386/lapic.c 	int i;
i                 144 arch/i386/i386/lapic.c 	for (i = 0; i < mp_nintrs; i++) {
i                 145 arch/i386/i386/lapic.c 		mpi = &mp_intrs[i];
i                 272 arch/i386/i386/lapic.c 	int i;
i                 291 arch/i386/i386/lapic.c 	for (i=0; i<hz; i++) {
i                 324 arch/i386/i386/lapic.c 		int             i;
i                 338 arch/i386/i386/lapic.c 		for (i = 0; i < sizeof(tbuf) - suffixlen - 3; i++)
i                 340 arch/i386/i386/lapic.c 		for (i = 0; tmp >= max && i < sizeof(prefixes); i++)
i                 344 arch/i386/i386/lapic.c 		    (unsigned long long)tmp, i == 0 ? "" : " ", prefixes[i],
i                 384 arch/i386/i386/lapic.c 		for (i = 0; i < 26; i++)
i                 385 arch/i386/i386/lapic.c 			lapic_delaytab[i] = (lapic_frac_cycle_per_usec * i) >>
i                 383 arch/i386/i386/machdep.c 	unsigned i;
i                 395 arch/i386/i386/machdep.c 	for (i = 0; i < btoc(MSGBUFSIZE); i++) {
i                1563 arch/i386/i386/machdep.c 	int class = CPUCLASS_386, vendor, i, max;
i                1601 arch/i386/i386/machdep.c 		for (i = 0; i < max; i++) {
i                1603 arch/i386/i386/machdep.c 			    i386_cpuid_cpus[i].cpu_id, 12)) {
i                1604 arch/i386/i386/machdep.c 				cpup = &i386_cpuid_cpus[i];
i                1644 arch/i386/i386/machdep.c 			i = family - CPU_MINFAMILY;
i                1659 arch/i386/i386/machdep.c 				name = cpup->cpu_family[i].cpu_models[model];
i                1661 arch/i386/i386/machdep.c 				name = cpup->cpu_family[i].cpu_models[CPU_DEFMODEL];
i                1665 arch/i386/i386/machdep.c 			class = cpup->cpu_family[i].cpu_class;
i                1666 arch/i386/i386/machdep.c 			ci->cpu_setup = cpup->cpu_family[i].cpu_setup;
i                1755 arch/i386/i386/machdep.c 			for (i = 0; i < max; i++) {
i                1757 arch/i386/i386/machdep.c 				    i386_cpuid_features[i].feature_bit) {
i                1759 arch/i386/i386/machdep.c 					    i386_cpuid_features[i].feature_name);
i                1765 arch/i386/i386/machdep.c 			for (i = 0; i < max; i++) {
i                1767 arch/i386/i386/machdep.c 				    i386_cpuid_ecxfeatures[i].feature_bit) {
i                1769 arch/i386/i386/machdep.c 					    i386_cpuid_ecxfeatures[i].feature_name);
i                2468 arch/i386/i386/machdep.c 	int i;
i                2480 arch/i386/i386/machdep.c 	for (i = 0; i < ndumpmem; i++)
i                2481 arch/i386/i386/machdep.c 		dumpsize = max(dumpsize, dumpmem[i].end);
i                2531 arch/i386/i386/machdep.c 	u_int i, j, npg;
i                2571 arch/i386/i386/machdep.c 	for (i = 0; !error && i < ndumpmem; i++) {
i                2573 arch/i386/i386/machdep.c 		npg = dumpmem[i].end - dumpmem[i].start;
i                2574 arch/i386/i386/machdep.c 		maddr = ctob(dumpmem[i].start);
i                2829 arch/i386/i386/machdep.c 	int i, kb;
i                2896 arch/i386/i386/machdep.c 	for (i = 20; i < NRSVIDT; i++)
i                2897 arch/i386/i386/machdep.c 		setgate(&idt[i], &IDTVEC(rsvd), 0, SDT_SYS386TGT, SEL_KPL, GCODE_SEL);
i                2898 arch/i386/i386/machdep.c 	for (i = NRSVIDT; i < NIDT; i++)
i                2899 arch/i386/i386/machdep.c 		unsetgate(&idt[i]);
i                2971 arch/i386/i386/machdep.c 	for(i = 0, im = bios_memmap; im->type != BIOS_MAP_END; im++)
i                3020 arch/i386/i386/machdep.c 			dumpmem[i].start = atop(a);
i                3021 arch/i386/i386/machdep.c 			dumpmem[i].end = atop(e);
i                3022 arch/i386/i386/machdep.c 			i++;
i                3026 arch/i386/i386/machdep.c 	ndumpmem = i;
i                3050 arch/i386/i386/machdep.c 	for (i = 0; i < ndumpmem; i++) {
i                3054 arch/i386/i386/machdep.c 		a = dumpmem[i].start;
i                3055 arch/i386/i386/machdep.c 		e = dumpmem[i].end;
i                3778 arch/i386/i386/machdep.c 	int seg, i, error, first;
i                3807 arch/i386/i386/machdep.c 	for (i = 0; i < uio->uio_iovcnt && resid != 0 && error == 0; i++) {
i                3812 arch/i386/i386/machdep.c 		minlen = resid < iov[i].iov_len ? resid : iov[i].iov_len;
i                3813 arch/i386/i386/machdep.c 		addr = (caddr_t)iov[i].iov_base;
i                3844 arch/i386/i386/machdep.c 		int i;
i                3846 arch/i386/i386/machdep.c 		for (i = 0; i < nsegs; i++) {
i                3847 arch/i386/i386/machdep.c 			if (segs[i].ds_len > map->_dm_maxsegsz)
i                3849 arch/i386/i386/machdep.c 			if ((segs[i].ds_addr & bmask) !=
i                3850 arch/i386/i386/machdep.c 			    ((segs[i].ds_addr + segs[i].ds_len - 1) & bmask))
i                3978 arch/i386/i386/machdep.c 	int i;
i                3980 arch/i386/i386/machdep.c 	for (i = 0; i < nsegs; i++) {
i                3984 arch/i386/i386/machdep.c 		if (segs[i].ds_addr & PGOFSET)
i                3986 arch/i386/i386/machdep.c 		if (segs[i].ds_len & PGOFSET)
i                3990 arch/i386/i386/machdep.c 		if (off >= segs[i].ds_len) {
i                3991 arch/i386/i386/machdep.c 			off -= segs[i].ds_len;
i                3995 arch/i386/i386/machdep.c 		return (atop(segs[i].ds_addr + off));
i                 414 arch/i386/i386/mpbios.c 	int i, len;
i                 423 arch/i386/i386/mpbios.c 	for (i = 0; i <= end; i += 4) {
i                 424 arch/i386/i386/mpbios.c 		m = (struct mpbios_fps *)&base[i];
i                 431 arch/i386/i386/mpbios.c 			return (mpbios_map(start + i, len, map));
i                 113 arch/i386/i386/p4tcc.c 	int i;
i                 116 arch/i386/i386/p4tcc.c 	for (i = 0; i < TCC_LEVELS; i++) {
i                 117 arch/i386/i386/p4tcc.c 		if (level >= tcc[i].level)
i                 123 arch/i386/i386/p4tcc.c 	if (tcc[i].reg != 0) /* enable it */
i                 124 arch/i386/i386/p4tcc.c 		msreg |= tcc[i].reg << 1 | 1 << 4;
i                 131 arch/i386/i386/p4tcc.c 		p4tcc_level = tcc[i].level;
i                 510 arch/i386/i386/pmapae.c #define	PDE(pm,i)	(((pd_entry_t *)(pm)->pm_pdir)[(i)])
i                 782 arch/i386/i386/pmapae.c 	int i, pn, pe;
i                 857 arch/i386/i386/pmapae.c 		for (i = 0; i < vm_nphysseg; i++)
i                 858 arch/i386/i386/pmapae.c 			if (vm_physmem[i].start > atop(0xfffff000)) {
i                 859 arch/i386/i386/pmapae.c 				vm_physmem[i].avail_end = vm_physmem[i].end;
i                 861 arch/i386/i386/pmapae.c 				for (pn = 0, pe = vm_physmem[i].end -
i                 862 arch/i386/i386/pmapae.c 				    vm_physmem[i].start; pn < pe ; pn++) {
i                 865 arch/i386/i386/pmapae.c 					uvm_pagefree(&vm_physmem[i].pgs[pn]);
i                 154 arch/i386/i386/powernow-k7.c 	unsigned int i;
i                 161 arch/i386/i386/powernow-k7.c 	i = ((level * cstate->n_states) + 1) / 101;
i                 162 arch/i386/i386/powernow-k7.c 	if (i >= cstate->n_states)
i                 163 arch/i386/i386/powernow-k7.c 		i = cstate->n_states - 1;
i                 164 arch/i386/i386/powernow-k7.c 	fid = cstate->state_table[i].fid;
i                 165 arch/i386/i386/powernow-k7.c 	vid = cstate->state_table[i].vid;
i                 206 arch/i386/i386/powernow-k7.c 		cpuspeed = cstate->state_table[i].freq;
i                 216 arch/i386/i386/powernow-k7.c 	int i, j, n;
i                 219 arch/i386/i386/powernow-k7.c 	for (n = 0, i = 0; i < npst; ++i) {
i                 387 arch/i386/i386/powernow-k7.c 	int i;
i                 437 arch/i386/i386/powernow-k7.c 		for (i = cstate->n_states; i > 0; i--) {
i                 438 arch/i386/i386/powernow-k7.c 			state = &cstate->state_table[i-1];
i                 157 arch/i386/i386/powernow-k8.c 	unsigned int i = 100000;
i                 159 arch/i386/i386/powernow-k8.c 	while (i--) {
i                 172 arch/i386/i386/powernow-k8.c 	unsigned int i;
i                 190 arch/i386/i386/powernow-k8.c 	i = ((level * cstate->n_states) + 1) / 101;
i                 191 arch/i386/i386/powernow-k8.c 	if (i >= cstate->n_states)
i                 192 arch/i386/i386/powernow-k8.c 		i = cstate->n_states - 1;
i                 193 arch/i386/i386/powernow-k8.c 	fid = cstate->state_table[i].fid;
i                 194 arch/i386/i386/powernow-k8.c 	vid = cstate->state_table[i].vid;
i                 267 arch/i386/i386/powernow-k8.c 		cpuspeed = cstate->state_table[i].freq;
i                 277 arch/i386/i386/powernow-k8.c 	int i, j, n;
i                 280 arch/i386/i386/powernow-k8.c 	for (n = 0, i = 0; i < cstate->n_states; i++) {
i                 310 arch/i386/i386/powernow-k8.c 	int i;
i                 327 arch/i386/i386/powernow-k8.c 			for (i = 0; i < psb->n_pst; ++i) {
i                 432 arch/i386/i386/powernow-k8.c 	u_int maxfid, maxvid, i;
i                 488 arch/i386/i386/powernow-k8.c 		for (i = cstate->n_states; i > 0; i--) {
i                 489 arch/i386/i386/powernow-k8.c 			state = &cstate->state_table[i-1];
i                  58 arch/i386/i386/powernow.c 	int i;
i                  70 arch/i386/i386/powernow.c 	for (i = 0; i < NUM_K6_ENTRIES; i++)
i                  71 arch/i386/i386/powernow.c 		if (portval == k6_multipliers[i].magic) {
i                  72 arch/i386/i386/powernow.c 			k6_maxindex = i;
i                  75 arch/i386/i386/powernow.c 	if (i == NUM_K6_ENTRIES) {
i                 103 arch/i386/i386/process_machdep.c 	int i;
i                 116 arch/i386/i386/process_machdep.c 	for (i = 0; i < 8; i++) {
i                 117 arch/i386/i386/process_machdep.c 		if (sxmm->sv_env.en_tw & (1U << i))
i                 118 arch/i386/i386/process_machdep.c 			s87->sv_env.en_tw &= ~(3U << (i * 2));
i                 120 arch/i386/i386/process_machdep.c 			s87->sv_env.en_tw |= (3U << (i * 2));
i                 122 arch/i386/i386/process_machdep.c 		if (sxmm->sv_ex_tw & (1U << i))
i                 123 arch/i386/i386/process_machdep.c 			s87->sv_ex_tw &= ~(3U << (i * 2));
i                 125 arch/i386/i386/process_machdep.c 			s87->sv_ex_tw |= (3U << (i * 2));
i                 127 arch/i386/i386/process_machdep.c 		memcpy(&s87->sv_ac[i].fp_bytes, &sxmm->sv_ac[i].fp_bytes,
i                 128 arch/i386/i386/process_machdep.c 		    sizeof(s87->sv_ac[i].fp_bytes));
i                 233 arch/i386/i386/process_machdep.c 	int i;
i                 246 arch/i386/i386/process_machdep.c 	for (i = 0; i < 8; i++) {
i                 247 arch/i386/i386/process_machdep.c 		if (((s87->sv_env.en_tw >> (i * 2)) & 3) == 3)
i                 248 arch/i386/i386/process_machdep.c 			sxmm->sv_env.en_tw &= ~(1U << i);
i                 250 arch/i386/i386/process_machdep.c 			sxmm->sv_env.en_tw |= (1U << i);
i                 252 arch/i386/i386/process_machdep.c 		if (((s87->sv_ex_tw >> (i * 2)) & 3) == 3)
i                 253 arch/i386/i386/process_machdep.c 			sxmm->sv_ex_tw &= ~(1U << i);
i                 255 arch/i386/i386/process_machdep.c 			sxmm->sv_ex_tw |= (1U << i);
i                 257 arch/i386/i386/process_machdep.c 		memcpy(&sxmm->sv_ac[i].fp_bytes, &s87->sv_ac[i].fp_bytes,
i                 258 arch/i386/i386/process_machdep.c 		    sizeof(sxmm->sv_ac[i].fp_bytes));
i                  68 arch/i386/i386/procfs_machdep.c 	int left, l, i;
i                  73 arch/i386/i386/procfs_machdep.c 	for (i = 0; i < 32; i++) {
i                  74 arch/i386/i386/procfs_machdep.c 		if ((cpu_feature & (1 << i)) && i386_features[i]) {
i                  75 arch/i386/i386/procfs_machdep.c 			l = snprintf(p, left, "%s ", i386_features[i]);
i                  82 arch/i386/i386/sys_machdep.c i386_print_ldt(int i, const struct segment_descriptor *d)
i                  86 arch/i386/i386/sys_machdep.c 	    i, d->sd_lolimit, d->sd_lobase, d->sd_type, d->sd_dpl, d->sd_p,
i                 139 arch/i386/i386/sys_machdep.c 		int i;
i                 140 arch/i386/i386/sys_machdep.c 		for (i = 0; i < num; i++)
i                 141 arch/i386/i386/sys_machdep.c 			i386_print_ldt(i, &lp[i].sd);
i                 159 arch/i386/i386/sys_machdep.c 	int error, i, n;
i                 185 arch/i386/i386/sys_machdep.c 	for (i = 0; i < ua.num; i++) {
i                 186 arch/i386/i386/sys_machdep.c 		union descriptor *desc = &descv[i];
i                 312 arch/i386/i386/sys_machdep.c 	for (i = 0, n = ua.start; i < ua.num; i++, n++)
i                 313 arch/i386/i386/sys_machdep.c 		pmap->pm_ldt[n] = descv[i];
i                 139 arch/i386/i386/via.c 	int			 sesn, i, cw0;
i                 206 arch/i386/i386/via.c 			for (i = 0; i < 4 * (AES_MAXROUNDS + 1); i++) {
i                 207 arch/i386/i386/via.c 				ses->ses_ekey[i] = ntohl(ses->ses_ekey[i]);
i                 208 arch/i386/i386/via.c 				ses->ses_dkey[i] = ntohl(ses->ses_dkey[i]);
i                 255 arch/i386/i386/via.c 			for (i = 0; i < c->cri_klen / 8; i++)
i                 256 arch/i386/i386/via.c 				c->cri_key[i] ^= HMAC_IPAD_VAL;
i                 263 arch/i386/i386/via.c 			for (i = 0; i < c->cri_klen / 8; i++)
i                 264 arch/i386/i386/via.c 				c->cri_key[i] ^= (HMAC_IPAD_VAL ^
i                 272 arch/i386/i386/via.c 			for (i = 0; i < c->cri_klen / 8; i++)
i                 273 arch/i386/i386/via.c 				c->cri_key[i] ^= HMAC_OPAD_VAL;
i                 539 arch/i386/i386/via.c 	unsigned int *p, i, rv, creg0, len = VIAC3_RNG_BUFSIZ;
i                 563 arch/i386/i386/via.c 	for (i = 0, p = buffer; i < VIAC3_RNG_BUFSIZ; i++, p++)
i                 138 arch/i386/i386/wscons_machdep.c wscnputc(dev_t dev, int i)
i                 140 arch/i386/i386/wscons_machdep.c 	wsdisplay_cnputc(dev, i);
i                 180 arch/i386/include/apmvar.h #define	APM_EVENT_COMPOSE(t,i)	((((i) & 0x7fff) << 16)|((t) & APM_EVENT_MASK))
i                 150 arch/i386/include/i82489reg.h #define LAPIC_IRQ_MASK(i)	(1 << ((i) + 1))
i                  81 arch/i386/include/ioctl_fd.h # define fd_formb_cylno(i)   format_info.structured.idfields[i].cylno
i                  82 arch/i386/include/ioctl_fd.h # define fd_formb_headno(i)  format_info.structured.idfields[i].headno
i                  83 arch/i386/include/ioctl_fd.h # define fd_formb_secno(i)   format_info.structured.idfields[i].secno
i                  84 arch/i386/include/ioctl_fd.h # define fd_formb_secsize(i) format_info.structured.idfields[i].secsize
i                 180 arch/i386/isa/ahc_isa.c 	int i;
i                 183 arch/i386/isa/ahc_isa.c 	for (i = 0; i < EISA_NVIDREGS; i++) {
i                 185 arch/i386/isa/ahc_isa.c 		    AHC_ISA_PRIMING_VID(i));
i                 186 arch/i386/isa/ahc_isa.c 		vid[i] = bus_space_read_1(iot, ioh, AHC_ISA_VID + i);
i                 207 arch/i386/isa/ahc_isa.c 	for (i = 0; i < EISA_NPIDREGS; i++) {
i                 209 arch/i386/isa/ahc_isa.c 		    AHC_ISA_PRIMING_PID(i));
i                 210 arch/i386/isa/ahc_isa.c 		pid[i] = bus_space_read_1(iot, ioh, AHC_ISA_PID + i);
i                 517 arch/i386/isa/ahc_isa.c 		int i;
i                 521 arch/i386/isa/ahc_isa.c 		for (i = 0; i < maxaddr; i++)
i                 522 arch/i386/isa/ahc_isa.c 			checksum = checksum + scarray[i];
i                 541 arch/i386/isa/ahc_isa.c 		int i;
i                 546 arch/i386/isa/ahc_isa.c 		for (i = 0; i < max_targ; i++){
i                 548 arch/i386/isa/ahc_isa.c 			target_settings = (sc.device_flags[i] & CFXFER) << 4;
i                 549 arch/i386/isa/ahc_isa.c 			if (sc.device_flags[i] & CFSYNCH)
i                 551 arch/i386/isa/ahc_isa.c 			if (sc.device_flags[i] & CFWIDEB)
i                 553 arch/i386/isa/ahc_isa.c 			if (sc.device_flags[i] & CFDISC)
i                 554 arch/i386/isa/ahc_isa.c 				discenable |= (0x01 << i);
i                 555 arch/i386/isa/ahc_isa.c 			ahc_outb(ahc, TARG_SCSIRATE + i, target_settings);
i                 472 arch/i386/isa/clock.c 	int i;
i                 475 arch/i386/isa/clock.c 	for (i = 0x10; i <= 0x2d; i++)
i                 476 arch/i386/isa/clock.c 		cksum += mc146818_read(NULL, i); /* XXX softc */
i                 180 arch/i386/isa/isa_machdep.c 	int i;
i                 183 arch/i386/isa/isa_machdep.c 	for (i = 0; i < ICU_LEN; i++)
i                 184 arch/i386/isa/isa_machdep.c 		setgate(&idt[ICU_OFFSET + i], IDTVEC(intr)[i], 0,
i                 219 arch/i386/isa/isa_machdep.c 	int i;
i                 222 arch/i386/isa/isa_machdep.c 	for (i = 0; i < ICU_LEN; i++)
i                 223 arch/i386/isa/isa_machdep.c 		unsetgate(&idt[ICU_OFFSET + i]);
i                 373 arch/i386/isa/isa_machdep.c 	int i, bestirq, count;
i                 392 arch/i386/isa/isa_machdep.c 	for (i = 0; i < ICU_LEN; i++) {
i                 393 arch/i386/isa/isa_machdep.c 		if (LEGAL_IRQ(i) == 0 || (mask & (1<<i)) == 0)
i                 396 arch/i386/isa/isa_machdep.c 		switch(intrtype[i]) {
i                 401 arch/i386/isa/isa_machdep.c 			*irq = i;
i                 406 arch/i386/isa/isa_machdep.c 			if (type != intrtype[i])
i                 417 arch/i386/isa/isa_machdep.c 			for (p = &intrhand[i], tmp = 0; (q = *p) != NULL;
i                 421 arch/i386/isa/isa_machdep.c 				bestirq = i;
i                  62 arch/i386/isa/joy.c 	int i = JOYPART(dev);
i                  72 arch/i386/isa/joy.c 	if (sc->timeout[i])
i                  75 arch/i386/isa/joy.c 	sc->x_off[i] = sc->y_off[i] = 0;
i                  76 arch/i386/isa/joy.c 	sc->timeout[i] = JOY_TIMEOUT;
i                  84 arch/i386/isa/joy.c 	int i = JOYPART(dev);
i                  87 arch/i386/isa/joy.c 	sc->timeout[i] = 0;
i                  98 arch/i386/isa/joy.c 	int i, t0, t1;
i                 105 arch/i386/isa/joy.c 	i = USEC2TICKS(sc->timeout[JOYPART(dev)]);
i                 106 arch/i386/isa/joy.c 	while (t0 - t1 < i) {
i                 134 arch/i386/isa/joy.c 	int i = JOYPART(dev);
i                 142 arch/i386/isa/joy.c 		sc->timeout[i] = x;
i                 145 arch/i386/isa/joy.c 		*(int *) data = sc->timeout[i];
i                 148 arch/i386/isa/joy.c 		sc->x_off[i] = *(int *) data;
i                 151 arch/i386/isa/joy.c 		sc->y_off[i] = *(int *) data;
i                 154 arch/i386/isa/joy.c 		*(int *) data = sc->x_off[i];
i                 157 arch/i386/isa/joy.c 		*(int *) data = sc->y_off[i];
i                 549 arch/i386/isa/npx.c         int i;
i                 560 arch/i386/isa/npx.c         for (i=0;i < sizeof(x86fp_siginfo_table)/sizeof(int); i++) {
i                 561 arch/i386/isa/npx.c                 if (flags & (1 << i))
i                 562 arch/i386/isa/npx.c                         return (x86fp_siginfo_table[i]);
i                 217 arch/i386/isa/pccom.c 	int i, k;
i                 222 arch/i386/isa/pccom.c 	for (i = 0; i < 32; i++) {
i                 229 arch/i386/isa/pccom.c 	if (i >= 32) 
i                 185 arch/i386/pci/amd756.c 	int i, pciirq;
i                 191 arch/i386/pci/amd756.c 	for (i = 0; i <= 3; i++) {
i                 192 arch/i386/pci/amd756.c 		amd756_get_intr(v, i, &pciirq);
i                 195 arch/i386/pci/amd756.c 			if (reg & (1 << i))
i                 210 arch/i386/pci/amd756.c 	int i, pciirq;
i                 216 arch/i386/pci/amd756.c 	for (i = 0; i <= 3; i++) {
i                 217 arch/i386/pci/amd756.c 		amd756_get_intr(v, i, &pciirq);
i                 221 arch/i386/pci/amd756.c 				reg &= ~(1 << (4*i));
i                 223 arch/i386/pci/amd756.c 				reg |= 1 << (4*i);
i                 309 arch/i386/pci/elan520.c 	int i;
i                 315 arch/i386/pci/elan520.c 		for (i = 0; i < (sizeof(elansc_wdog_periods) /
i                 316 arch/i386/pci/elan520.c 		    sizeof(elansc_wdog_periods[0])) - 1; i++)
i                 317 arch/i386/pci/elan520.c 			if (elansc_wdog_periods[i].period >= period)
i                 319 arch/i386/pci/elan520.c 		period = elansc_wdog_periods[i].period;
i                 321 arch/i386/pci/elan520.c 		    WDTMRCTL_WRST_ENB | elansc_wdog_periods[i].exp);
i                 345 arch/i386/pci/glxsb.c 	int sesn, i;
i                 432 arch/i386/pci/glxsb.c 			for (i = 0; i < c->cri_klen / 8; i++)
i                 433 arch/i386/pci/glxsb.c 				c->cri_key[i] ^= HMAC_IPAD_VAL;
i                 440 arch/i386/pci/glxsb.c 			for (i = 0; i < c->cri_klen / 8; i++)
i                 441 arch/i386/pci/glxsb.c 				c->cri_key[i] ^= (HMAC_IPAD_VAL ^
i                 449 arch/i386/pci/glxsb.c 			for (i = 0; i < c->cri_klen / 8; i++)
i                 450 arch/i386/pci/glxsb.c 				c->cri_key[i] ^= HMAC_OPAD_VAL;
i                 506 arch/i386/pci/glxsb.c 	int i;
i                 558 arch/i386/pci/glxsb.c 	for (i = 0; i < GLXSB_MAX_AES_LEN * 10; i++) {
i                  94 arch/i386/pci/gscpcib.c 	int i;
i                 108 arch/i386/pci/gscpcib.c 	for (i = 0; i < GSCGPIO_NPINS; i++) {
i                 109 arch/i386/pci/gscpcib.c 		sc->sc_gpio_pins[i].pin_num = i;
i                 110 arch/i386/pci/gscpcib.c 		sc->sc_gpio_pins[i].pin_caps = GPIO_PIN_INPUT |
i                 116 arch/i386/pci/gscpcib.c 		sc->sc_gpio_pins[i].pin_state = gscpcib_gpio_pin_read(sc, i) ?
i                 149 arch/i386/pci/gscpm.c 	int i;
i                 158 arch/i386/pci/gscpm.c 		for (i = 0; i < GSCPM_THT_LEVELS; i++)
i                 159 arch/i386/pci/gscpm.c 			if (level >= gscpm_tht[i].level)
i                 162 arch/i386/pci/gscpm.c 		    GSCPM_P_CNT_CLK(gscpm_tht[i].value));
i                 243 arch/i386/pci/opti82c700.c 	int i, val, addrofs, ofs;
i                 255 arch/i386/pci/opti82c700.c 	for (i = 0; i < 8; i++) {
i                 257 arch/i386/pci/opti82c700.c 		    i), &addrofs, &ofs);
i                 271 arch/i386/pci/opti82c700.c 	for (i = 0; i < 4; i++) {
i                 273 arch/i386/pci/opti82c700.c 		    i), &addrofs, &ofs);
i                 289 arch/i386/pci/opti82c700.c 	int i, val, addrofs, ofs;
i                 300 arch/i386/pci/opti82c700.c 	for (i = 0; i < 8; i++) {
i                 302 arch/i386/pci/opti82c700.c 		    i), &addrofs, &ofs);
i                 320 arch/i386/pci/opti82c700.c 	for (i = 0; i < 4; i++) {
i                 322 arch/i386/pci/opti82c700.c 		    i), &addrofs, &ofs);
i                 125 arch/i386/pci/pchb.c 	int i;
i                 188 arch/i386/pci/pchb.c 	int i, r;
i                 214 arch/i386/pci/pchb.c 			for (i = 0; i < AMD64HT_NUM_LDT; i++)
i                 215 arch/i386/pci/pchb.c 				pchb_amd64ht_attach(self, pa, i);
i                 373 arch/i386/pci/pchb.c 			for (i = 1000; i-- &&
i                 386 arch/i386/pci/pchb.c 			for (i = 8 * 1024; i--; ) {
i                 404 arch/i386/pci/pchb.c 			sc->i = 4;
i                 445 arch/i386/pci/pchb.c 		if (!sc->i--) {
i                 446 arch/i386/pci/pchb.c 			sc->i = 4;
i                 455 arch/i386/pci/pchb.c pchb_amd64ht_attach (struct device *self, struct pci_attach_args *pa, int i)
i                 461 arch/i386/pci/pchb.c 	reg = AMD64HT_LDT0_TYPE + i * 0x20;
i                 467 arch/i386/pci/pchb.c 	reg = AMD64HT_LDT0_BUS + i * 0x20;
i                 355 arch/i386/pci/pci_intr_fixup.c 	int i, bit, count = 0, irq = I386_PCI_INTERRUPT_LINE_NO_CONNECTION;
i                 358 arch/i386/pci/pci_intr_fixup.c 		for (i = 0, bit = 1; i < 16; i++, bit <<= 1)
i                 360 arch/i386/pci/pci_intr_fixup.c 				irq = i;
i                 614 arch/i386/pci/pci_intr_fixup.c 	int i, pciirq;
i                 636 arch/i386/pci/pci_intr_fixup.c 	for (i = 0; i < 16; i++)
i                 637 arch/i386/pci/pci_intr_fixup.c 		if (!(pciirq & (1 << i))) {
i                 639 arch/i386/pci/pci_intr_fixup.c 				printf(" %d", i);
i                 641 arch/i386/pci/pci_intr_fixup.c 			    pciintr_icu_handle, i, IST_EDGE);
i                 314 arch/i386/pci/pci_machdep.c 	int i;
i                 351 arch/i386/pci/pci_machdep.c 	for (i = 0; i < sizeof(pcim1_quirk_tbl) / sizeof(pcim1_quirk_tbl[0]);
i                 352 arch/i386/pci/pci_machdep.c 	     i++) {
i                 355 arch/i386/pci/pci_machdep.c 		if (!pcim1_quirk_tbl[i].tag)
i                 357 arch/i386/pci/pci_machdep.c 		t.mode1 = pcim1_quirk_tbl[i].tag;
i                 359 arch/i386/pci/pci_machdep.c 		if (idreg == pcim1_quirk_tbl[i].id) {
i                 249 arch/i386/pci/pcibios.c 		int i;
i                 266 arch/i386/pci/pcibios.c 		for (i = 0; i < pirh->tablesize; i++)
i                 267 arch/i386/pci/pcibios.c 			cksum += p[i];
i                 486 arch/i386/pci/pcibios.c 	int i;
i                 490 arch/i386/pci/pcibios.c 		for (i = 0; i < 16; i++) {
i                 491 arch/i386/pci/pcibios.c 			if (pcibios_pir_header.exclusive_irq & (1 << i))
i                 492 arch/i386/pci/pcibios.c 				printf(" %d", i);
i                 501 arch/i386/pci/pcibios.c 	int i, j;
i                 503 arch/i386/pci/pcibios.c 	for (i = 0; i < pcibios_pir_table_nentries; i++) {
i                 504 arch/i386/pci/pcibios.c 		printf("PIR Entry %d:\n", i);
i                 506 arch/i386/pci/pcibios.c 		    pcibios_pir_table[i].bus,
i                 507 arch/i386/pci/pcibios.c 		    PIR_DEVFUNC_DEVICE(pcibios_pir_table[i].device));
i                 511 arch/i386/pci/pcibios.c 			    pcibios_pir_table[i].linkmap[j].link,
i                 512 arch/i386/pci/pcibios.c 			    pcibios_pir_table[i].linkmap[j].bitmap);
i                 265 arch/i386/pci/piix.c 	int i, irq;
i                 272 arch/i386/pci/piix.c 	for (i = 0; i < 8; i++) {
i                 273 arch/i386/pci/piix.c 		if (i == 4)
i                 277 arch/i386/pci/piix.c 		irq = PIIX_PIRQ(irqs, i);
i                 279 arch/i386/pci/piix.c 			printf("PIIX PIRQ %d: irq none (0x%x)\n", i, irq);
i                 281 arch/i386/pci/piix.c 			printf("PIIX PIRQ %d: irq %d\n", i, irq);
i                 285 arch/i386/pci/piix.c 	for (i = 0; i < 16; i++)
i                 286 arch/i386/pci/piix.c 		printf(" %2d", i);
i                 289 arch/i386/pci/piix.c 	for (i = 0; i < 16; i++)
i                 290 arch/i386/pci/piix.c 		printf("  %c", (elcr[(i & 8) ? 1 : 0] & (1 << (i & 7))) ?
i                 202 arch/i386/pci/via82c586.c 	int i, error, check_consistency, pciirq, pcitrigger = IST_NONE;
i                 209 arch/i386/pci/via82c586.c 	for (i = 0; i <= 3; i++) {
i                 210 arch/i386/pci/via82c586.c 		via82c586_get_intr(v, i, &pciirq);
i                 214 arch/i386/pci/via82c586.c 			if (VP3_TRIGGER(reg, i) == VP3_CFG_TRIGGER_EDGE)
i                 233 arch/i386/pci/via82c586.c 	int i, pciirq, shift, testtrig;
i                 239 arch/i386/pci/via82c586.c 	for (i = 0; i <= 3; i++) {
i                 240 arch/i386/pci/via82c586.c 		via82c586_get_intr(v, i, &pciirq);
i                 244 arch/i386/pci/via82c586.c 			shift = vp3_cfg_trigger_shift[i];
i                 121 arch/i386/stand/libsa/bioscons.c 	register int i, n;
i                 127 arch/i386/stand/libsa/bioscons.c 	for (i = 0; i < n; i++)
i                 128 arch/i386/stand/libsa/bioscons.c 		printf(" com%d", i);
i                 170 arch/i386/stand/libsa/bioscons.c 	int i, newsp;
i                 184 arch/i386/stand/libsa/bioscons.c 	for (i = sp; i != 75 && i != 14400; i >>= 1)
i                 185 arch/i386/stand/libsa/bioscons.c 		if (i & 1)
i                 285 arch/i386/stand/libsa/biosdev.c 			size_t i, n;
i                 289 arch/i386/stand/libsa/biosdev.c 			for (error = i = 0; error == 0 && i < nsect;
i                 290 arch/i386/stand/libsa/biosdev.c 			    i += n, off += n, p += n * DEV_BSIZE) {
i                 295 arch/i386/stand/libsa/biosdev.c 				if ((sect + (nsect - i)) >= bd->bios_sectors)
i                 298 arch/i386/stand/libsa/biosdev.c 					n = nsect - i;
i                 347 arch/i386/stand/libsa/biosdev.c 	int error, i;
i                 365 arch/i386/stand/libsa/biosdev.c 		for (off = 0, i = 0; off == 0 && i < NDOSPART; i++)
i                 366 arch/i386/stand/libsa/biosdev.c 			if (mbr.dmbr_parts[i].dp_typ == DOSPTYP_OPENBSD)
i                 367 arch/i386/stand/libsa/biosdev.c 				off = mbr.dmbr_parts[i].dp_start + LABELSECTOR;
i                 125 arch/i386/stand/libsa/cmd_i386.c 		int i, j;
i                 127 arch/i386/stand/libsa/cmd_i386.c 		for (i = 0, j = DOSPARTOFF; i < 4; i++, j += 16)
i                 128 arch/i386/stand/libsa/cmd_i386.c 			if (part == i)
i                 148 arch/i386/stand/libsa/cmd_i386.c 		int i;
i                 151 arch/i386/stand/libsa/cmd_i386.c 		for (i = 1; i < cmd.argc; i++) {
i                 155 arch/i386/stand/libsa/cmd_i386.c 			p = cmd.argv[i];
i                 166 arch/i386/stand/libsa/cmd_i386.c 				switch (cmd.argv[i][0]) {
i                  59 arch/i386/stand/libsa/debug.c 	register int i;
i                  74 arch/i386/stand/libsa/debug.c 	for (i = 1; i <= nreg; i++)
i                  75 arch/i386/stand/libsa/debug.c 		printf("%s\t%x%c", reg_names[i-1], *reg_values[i-1],
i                  76 arch/i386/stand/libsa/debug.c 		    ((i%4)? ' ': '\n'));
i                  90 arch/i386/stand/libsa/debug.c 	register int i;
i                  93 arch/i386/stand/libsa/debug.c 	for (i = 1; i <= n; i++)
i                  94 arch/i386/stand/libsa/debug.c 		printf("%x%c", *(u_int32_t *)p++, ((i%8)? ' ': '\n'));
i                  54 arch/i386/stand/libsa/dev_i386.c 	register int i, rc = 1;
i                  63 arch/i386/stand/libsa/dev_i386.c 	for (i = 0; i < ndevs && rc != 0; dp++, i++) {
i                 177 arch/i386/stand/libsa/dev_i386.c 	int i, unit = -1;
i                 184 arch/i386/stand/libsa/dev_i386.c 	for (i = 0; i < ncdevs; i++)
i                 185 arch/i386/stand/libsa/dev_i386.c 		if (strncmp(name, cdevs[i], no - name + 1) == 0)
i                 186 arch/i386/stand/libsa/dev_i386.c 			return (makedev(i, unit));
i                  64 arch/i386/stand/libsa/diskprobe.c 	int i;
i                  67 arch/i386/stand/libsa/diskprobe.c 	for (i = 0; i < 4; i++) {
i                  71 arch/i386/stand/libsa/diskprobe.c 		if (bios_getdiskinfo(i, &dip->bios_info)) {
i                  74 arch/i386/stand/libsa/diskprobe.c 				printf(" <!fd%u>", i);
i                  80 arch/i386/stand/libsa/diskprobe.c 		printf(" fd%u", i);
i                  83 arch/i386/stand/libsa/diskprobe.c 		dip->bios_info.bsd_dev = MAKEBOOTDEV(2, 0, 0, i, RAW_PART);
i                 104 arch/i386/stand/libsa/diskprobe.c 	int i;
i                 110 arch/i386/stand/libsa/diskprobe.c 	for (i = 0x80; i < (0x80 + *dc); i++) {
i                 114 arch/i386/stand/libsa/diskprobe.c 		if (bios_getdiskinfo(i, &dip->bios_info)) {
i                 117 arch/i386/stand/libsa/diskprobe.c 				printf(" <!hd%u>", i&0x7f);
i                 123 arch/i386/stand/libsa/diskprobe.c 		printf(" hd%u%s", i&0x7f, (dip->bios_info.bios_edd > 0?"+":""));
i                 170 arch/i386/stand/libsa/diskprobe.c 	int i;
i                 187 arch/i386/stand/libsa/diskprobe.c 	for (i = 0; disksum(i++) && i < MAX_CKSUMLEN; )
i                 189 arch/i386/stand/libsa/diskprobe.c 	bios_cksumlen = i;
i                 192 arch/i386/stand/libsa/diskprobe.c 	for (i = 0, dip = TAILQ_FIRST(&disklist); dip;
i                 194 arch/i386/stand/libsa/diskprobe.c 		i++;
i                 195 arch/i386/stand/libsa/diskprobe.c 	bios_diskinfo = alloc(++i * sizeof(bios_diskinfo_t));
i                 198 arch/i386/stand/libsa/diskprobe.c 	for (i = 0, dip = TAILQ_FIRST(&disklist); dip;
i                 200 arch/i386/stand/libsa/diskprobe.c 		bios_diskinfo[i++] = dip->bios_info;
i                 202 arch/i386/stand/libsa/diskprobe.c 	bios_diskinfo[i++].bios_number = -1;
i                 205 arch/i386/stand/libsa/diskprobe.c 	addbootarg(BOOTARG_DISKINFO, i * sizeof(bios_diskinfo_t),
i                  46 arch/i386/stand/libsa/machdep.c 	int i, j;
i                  52 arch/i386/stand/libsa/machdep.c 	for (i = 0; i < nibprobes; i++) {
i                  53 arch/i386/stand/libsa/machdep.c 		pr = &probe_list[i];
i                 226 arch/i386/stand/libsa/memprobe.c 	register u_int i, ret = 0;
i                 234 arch/i386/stand/libsa/memprobe.c 	for (i = 0; i < NENTS(addrprobe_pat); i++) {
i                 235 arch/i386/stand/libsa/memprobe.c 		*loc = addrprobe_pat[i];
i                 236 arch/i386/stand/libsa/memprobe.c 		if (*loc != addrprobe_pat[i])
i                 243 arch/i386/stand/libsa/memprobe.c 		for (i = 0; i < NENTS(addrprobe_pat); i++) {
i                 244 arch/i386/stand/libsa/memprobe.c 			save[i] = loc[i];
i                 245 arch/i386/stand/libsa/memprobe.c 			loc[i] = addrprobe_pat[i];
i                 249 arch/i386/stand/libsa/memprobe.c 		for (i = 0; i < NENTS(addrprobe_pat); i++) {
i                 250 arch/i386/stand/libsa/memprobe.c 			if (loc[i] != addrprobe_pat[i])
i                 252 arch/i386/stand/libsa/memprobe.c 			loc[i] = save[i];
i                 318 arch/i386/stand/libsa/pxe.c 	int i;
i                 342 arch/i386/stand/libsa/pxe.c 				for (i = 0, ucp = (u_int8_t *)cp, cksum = 0;
i                 343 arch/i386/stand/libsa/pxe.c 				     i < pxenv->Length; i++)
i                 344 arch/i386/stand/libsa/pxe.c 					cksum += ucp[i];
i                 359 arch/i386/stand/libsa/pxe.c 				for (i = 0, ucp = (u_int8_t *)cp, cksum = 0;
i                 360 arch/i386/stand/libsa/pxe.c 				     i < pxe->StructLength; i++)
i                 361 arch/i386/stand/libsa/pxe.c 					cksum += ucp[i];
i                  53 arch/i386/stand/libsa/smpprobe.c 	register int i, sum = 0;
i                  59 arch/i386/stand/libsa/smpprobe.c 	for (i = 0; i < len; i++)
i                  60 arch/i386/stand/libsa/smpprobe.c 		sum += *(ptr + i);
i                  70 arch/i386/stand/libsa/smpprobe.c 	int i;
i                  76 arch/i386/stand/libsa/smpprobe.c 	for (i = 0; i < 1024; i++) {
i                  77 arch/i386/stand/libsa/smpprobe.c 		mp_float_t *tmp = (mp_float_t*)(ptr + i);
i                 137 arch/i386/stand/libsa/time.c sleep(u_int i)
i                 145 arch/i386/stand/libsa/time.c 	for (t = getsecs() + i; getsecs() < t; cnischar());
i                  63 arch/i386/stand/pxeboot/devopen.c 	int i, l;
i                  80 arch/i386/stand/pxeboot/devopen.c 	for (i = 0; i < nfsname; i++) {
i                  81 arch/i386/stand/pxeboot/devopen.c 		if ((fs_name[i] != NULL) &&
i                  82 arch/i386/stand/pxeboot/devopen.c 		    (strncmp(fname, fs_name[i], l) == 0)) {
i                  85 arch/i386/stand/pxeboot/devopen.c 			f->f_ops = &file_system[i];
i                 111 arch/i386/stand/pxeboot/devopen.c 	for (i = 0; i < ndevs && rc != 0; dp++, i++) {
i                 208 arch/i386/stand/pxeboot/devopen.c 	int i, unit = -1;
i                 215 arch/i386/stand/pxeboot/devopen.c 	for (i = 0; i < ncdevs; i++)
i                 216 arch/i386/stand/pxeboot/devopen.c 		if (strncmp(name, cdevs[i], no - name + 1) == 0)
i                 217 arch/i386/stand/pxeboot/devopen.c 			return (makedev(i, unit));
i                  80 arch/i386/stand/pxeboot/open.c 	int fd, i, error;
i                 117 arch/i386/stand/pxeboot/open.c 		for (i = 0; i < nfsys; i++) {
i                 119 arch/i386/stand/pxeboot/open.c 			error = (file_system[i].open)(file, f);
i                 121 arch/i386/stand/pxeboot/open.c 				f->f_ops = &file_system[i];
i                 385 compat/hpux/hpux_compat.c 	int i;
i                 398 compat/hpux/hpux_compat.c 		for (i = 0; i < 8 && hostname[i] != '.'; i++)
i                 399 compat/hpux/hpux_compat.c 			ut.nodename[i] = hostname[i];
i                 400 compat/hpux/hpux_compat.c 		ut.nodename[i] = '\0';
i                 413 compat/hpux/hpux_compat.c 		i = SCARG(uap, dev);
i                 414 compat/hpux/hpux_compat.c 		if (i < 0) {
i                 418 compat/hpux/hpux_compat.c 		if (i > hostnamelen + 1)
i                 419 compat/hpux/hpux_compat.c 			i = hostnamelen + 1;
i                 420 compat/hpux/hpux_compat.c 		error = copyout((caddr_t)hostname, (caddr_t)SCARG(uap, uts), i);
i                 387 compat/hpux/hpux_tty.c 	int i;
i                 395 compat/hpux/hpux_tty.c 	for (i = 0; i <= HPUXVSWTCH; i++)
i                 396 compat/hpux/hpux_tty.c 		tios->c_cc[i] = tio->c_cc[i];
i                 418 compat/hpux/hpux_tty.c 	int i;
i                 425 compat/hpux/hpux_tty.c 	for (i = 0; i <= HPUXVSWTCH; i++)
i                 426 compat/hpux/hpux_tty.c 		tio->c_cc[i] = tios->c_cc[i];
i                 137 compat/hpux/m68k/hpux_net.c 	int *args, i;
i                 145 compat/hpux/m68k/hpux_net.c 	if ((i = hpuxtobsdipc[code].nargs * sizeof (int)) &&
i                 146 compat/hpux/m68k/hpux_net.c 	    (error = copyin((caddr_t)args, (caddr_t)uap, (u_int)i))) {
i                 295 compat/ibcs2/ibcs2_exec.c 	int i, pos, error;
i                 299 compat/ibcs2/ibcs2_exec.c 	for (i = 0; i < fp->f_nscns; i++, pos += sizeof(struct coff_scnhdr)) {
i                 305 compat/ibcs2/ibcs2_exec.c 			DPRINTF(("section hdr %d read error %d\n", i, error));
i                 622 compat/ibcs2/ibcs2_exec.c 	int error, nseg, i;
i                 641 compat/ibcs2/ibcs2_exec.c 	for (nseg = xep->xe_segsize / sizeof(*xs), i = 0; i < nseg; i++) {
i                 642 compat/ibcs2/ibcs2_exec.c 		switch (xs[i].xs_type) {
i                 646 compat/ibcs2/ibcs2_exec.c 				 xs[i].xs_rbase, xs[i].xs_psize,
i                 647 compat/ibcs2/ibcs2_exec.c 				 xs[i].xs_vsize, xs[i].xs_filpos));
i                 649 compat/ibcs2/ibcs2_exec.c 			epp->ep_taddr = xs[i].xs_rbase;	/* XXX - align ??? */
i                 650 compat/ibcs2/ibcs2_exec.c 			epp->ep_tsize = xs[i].xs_vsize;
i                 654 compat/ibcs2/ibcs2_exec.c 				 xs[i].xs_filpos));
i                 657 compat/ibcs2/ibcs2_exec.c 				  epp->ep_vp, xs[i].xs_filpos,
i                 664 compat/ibcs2/ibcs2_exec.c 				 xs[i].xs_rbase, xs[i].xs_psize,
i                 665 compat/ibcs2/ibcs2_exec.c 				 xs[i].xs_vsize, xs[i].xs_filpos));
i                 667 compat/ibcs2/ibcs2_exec.c 			epp->ep_daddr = xs[i].xs_rbase;	/* XXX - align ??? */
i                 668 compat/ibcs2/ibcs2_exec.c 			epp->ep_dsize = xs[i].xs_vsize;
i                 671 compat/ibcs2/ibcs2_exec.c 				 epp->ep_daddr, xs[i].xs_psize,
i                 672 compat/ibcs2/ibcs2_exec.c 				 xs[i].xs_filpos));
i                 674 compat/ibcs2/ibcs2_exec.c 				  xs[i].xs_psize, epp->ep_daddr,
i                 675 compat/ibcs2/ibcs2_exec.c 				  epp->ep_vp, xs[i].xs_filpos,
i                 679 compat/ibcs2/ibcs2_exec.c 			baddr = round_page(epp->ep_daddr + xs[i].xs_psize);
i                 529 compat/ibcs2/ibcs2_misc.c 	int error, i;
i                 545 compat/ibcs2/ibcs2_misc.c 		for (i = 0, gp = SCARG(&sa, gidset); i < retval[0]; i++)
i                 546 compat/ibcs2/ibcs2_misc.c 			iset[i] = (ibcs2_gid_t)*gp++;
i                 565 compat/ibcs2/ibcs2_misc.c 	int error, i;
i                 581 compat/ibcs2/ibcs2_misc.c 	for (i = 0; i < SCARG(&sa, gidsetsize); i++)
i                 582 compat/ibcs2/ibcs2_misc.c 		gp[i]= (gid_t)iset[i];
i                 140 compat/ibcs2/ibcs2_signal.c 	int i, newsig;
i                 143 compat/ibcs2/ibcs2_signal.c 	for (i = 1; i < IBCS2_NSIG; i++) {
i                 144 compat/ibcs2/ibcs2_signal.c 		if (ibcs2_sigismember(iss, i)) {
i                 145 compat/ibcs2/ibcs2_signal.c 			newsig = ibcs2_to_bsd_sig[i];
i                 157 compat/ibcs2/ibcs2_signal.c 	int i, newsig;
i                 160 compat/ibcs2/ibcs2_signal.c 	for (i = 1; i < NSIG; i++) {
i                 161 compat/ibcs2/ibcs2_signal.c 		if (sigismember(bss, i)) {
i                 162 compat/ibcs2/ibcs2_signal.c 			newsig = bsd_to_ibcs2_sig[i];
i                 534 compat/linux/linux_exec.c 	int i, magic, error;
i                 588 compat/linux/linux_exec.c 	for (i = 0; i < vcset.evs_used && !error; i++) {
i                 591 compat/linux/linux_exec.c 		vcp = &vcset.evs_cmds[i];
i                 229 compat/linux/linux_signal.c 	int i, newsig;
i                 232 compat/linux/linux_signal.c 	for (i = 1; i < LINUX__NSIG; i++) {
i                 233 compat/linux/linux_signal.c 		if (linux_sigismember(lss, i)) {
i                 234 compat/linux/linux_signal.c 			newsig = linux_to_bsd_sig[i];
i                 246 compat/linux/linux_signal.c 	int i, newsig;
i                 249 compat/linux/linux_signal.c 	for (i = 1; i < NSIG; i++) {
i                 250 compat/linux/linux_signal.c 		if (sigismember(bss, i)) {
i                 251 compat/linux/linux_signal.c 			newsig = bsd_to_linux_sig[i];
i                 172 compat/linux/linux_termios.c 	int i, mask;
i                 232 compat/linux/linux_termios.c 	for (i = 0; i < sizeof (linux_speeds) / sizeof (speed_t); i++) {
i                 233 compat/linux/linux_termios.c 		if (bts->c_ospeed == linux_speeds[i]) {
i                 234 compat/linux/linux_termios.c 			mask = linux_spmasks[i];
i                 346 compat/linux/linux_termios.c 	int i, mask;
i                 410 compat/linux/linux_termios.c 	for (i = 0; i < sizeof (linux_speeds) / sizeof (speed_t); i++) {
i                 411 compat/linux/linux_termios.c 		if (bts->c_ospeed == linux_speeds[i]) {
i                 412 compat/linux/linux_termios.c 			mask = linux_spmasks[i];
i                 614 compat/osf1/osf1_cvt.c 	int i, newsig;
i                 617 compat/osf1/osf1_cvt.c 	for (i = 1; i < NSIG; i++) {
i                 618 compat/osf1/osf1_cvt.c 		if (sigismember(bss, i)) {
i                 619 compat/osf1/osf1_cvt.c 			newsig = osf1_signal_rxlist[i];
i                 631 compat/osf1/osf1_cvt.c 	int i, newsig;
i                 634 compat/osf1/osf1_cvt.c 	for (i = 1; i < OSF1_NSIG; i++) {
i                 635 compat/osf1/osf1_cvt.c 		if (osf1_sigismember(oss, i)) {
i                 636 compat/osf1/osf1_cvt.c 			newsig = osf1_signal_xlist[i];
i                  92 compat/osf1/osf1_generic.c 	int error, osize, nsize, i;
i                 106 compat/osf1/osf1_generic.c 	for (i = 0; i < SCARG(uap, iovcnt); i++) {
i                 107 compat/osf1/osf1_generic.c 		nio[i].iov_base = oio[i].iov_base;
i                 108 compat/osf1/osf1_generic.c 		nio[i].iov_len = oio[i].iov_len;
i                 182 compat/osf1/osf1_generic.c 	int error, osize, nsize, i;
i                 196 compat/osf1/osf1_generic.c 	for (i = 0; i < SCARG(uap, iovcnt); i++) {
i                 197 compat/osf1/osf1_generic.c 		nio[i].iov_base = oio[i].iov_base;
i                 198 compat/osf1/osf1_generic.c 		nio[i].iov_len = oio[i].iov_len;
i                 101 compat/osf1/osf1_socket.c 	unsigned int i;
i                 136 compat/osf1/osf1_socket.c 	for (i = 0; i < bsd_msghdr.msg_iovlen; i++) {
i                 137 compat/osf1/osf1_socket.c 		if ((error = copyin(&osf_iovec_ptr[i], &osf_iovec,
i                 144 compat/osf1/osf1_socket.c 		if ((error = copyout(&bsd_iovec, &bsd_iovec_ptr[i],
i                 548 compat/ossaudio/ossaudio.c 	int i;
i                 600 compat/ossaudio/ossaudio.c 	for(i = 0; i < OSS_SOUND_MIXER_NRDEVICES; i++)
i                 601 compat/ossaudio/ossaudio.c 		di->devmap[i] = -1;
i                 602 compat/ossaudio/ossaudio.c 	for(i = 0; i < NETBSD_MAXDEVS; i++)
i                 603 compat/ossaudio/ossaudio.c 		di->rdevmap[i] = -1;
i                 604 compat/ossaudio/ossaudio.c 	for(i = 0; i < NETBSD_MAXDEVS; i++) {
i                 605 compat/ossaudio/ossaudio.c 		mi.index = i;
i                 614 compat/ossaudio/ossaudio.c 				di->devmap[dp->code] = i;
i                 615 compat/ossaudio/ossaudio.c 				di->rdevmap[i] = dp->code;
i                 624 compat/ossaudio/ossaudio.c 				di->source = i;
i                 633 compat/ossaudio/ossaudio.c 				di->source = i;
i                 665 compat/ossaudio/ossaudio.c 	int i;
i                 740 compat/ossaudio/ossaudio.c 			for(i = 0; i < OSS_SOUND_MIXER_NRDEVICES; i++)
i                 741 compat/ossaudio/ossaudio.c 				if (idat & (1 << i))
i                 743 compat/ossaudio/ossaudio.c 			if (i >= OSS_SOUND_MIXER_NRDEVICES ||
i                 744 compat/ossaudio/ossaudio.c 			    di->devmap[i] == -1) {
i                 748 compat/ossaudio/ossaudio.c 			mc.un.ord = di->devmap[i];
i                 752 compat/ossaudio/ossaudio.c 			for(i = 0; i < OSS_SOUND_MIXER_NRDEVICES; i++) {
i                 753 compat/ossaudio/ossaudio.c 				if (idat & (1 << i)) {
i                 754 compat/ossaudio/ossaudio.c 					if (di->devmap[i] == -1) {
i                 758 compat/ossaudio/ossaudio.c 					mc.un.mask |= 1 << di->devmap[i];
i                 990 compat/svr4/svr4_misc.c 	svr4_siginfo_t i;
i                 992 compat/svr4/svr4_misc.c 	bzero(&i, sizeof(i));
i                 994 compat/svr4/svr4_misc.c 	i.svr4_si_signo = SVR4_SIGCHLD;
i                 995 compat/svr4/svr4_misc.c 	i.svr4_si_errno = 0;	/* XXX? */
i                 998 compat/svr4/svr4_misc.c 		i.svr4_si_pid = p->p_pid;
i                1000 compat/svr4/svr4_misc.c 			i.svr4_si_stime = p->p_ru->ru_stime.tv_sec;
i                1001 compat/svr4/svr4_misc.c 			i.svr4_si_utime = p->p_ru->ru_utime.tv_sec;
i                1003 compat/svr4/svr4_misc.c 			i.svr4_si_stime = p->p_stats->p_ru.ru_stime.tv_sec;
i                1004 compat/svr4/svr4_misc.c 			i.svr4_si_utime = p->p_stats->p_ru.ru_utime.tv_sec;
i                1009 compat/svr4/svr4_misc.c 		i.svr4_si_status = WEXITSTATUS(st);
i                1010 compat/svr4/svr4_misc.c 		i.svr4_si_code = SVR4_CLD_EXITED;
i                1013 compat/svr4/svr4_misc.c 		i.svr4_si_status = bsd_to_svr4_sig[WSTOPSIG(st)];
i                1015 compat/svr4/svr4_misc.c 		if (i.svr4_si_status == SVR4_SIGCONT)
i                1016 compat/svr4/svr4_misc.c 			i.svr4_si_code = SVR4_CLD_CONTINUED;
i                1018 compat/svr4/svr4_misc.c 			i.svr4_si_code = SVR4_CLD_STOPPED;
i                1020 compat/svr4/svr4_misc.c 		i.svr4_si_status = bsd_to_svr4_sig[WTERMSIG(st)];
i                1023 compat/svr4/svr4_misc.c 			i.svr4_si_code = SVR4_CLD_DUMPED;
i                1025 compat/svr4/svr4_misc.c 			i.svr4_si_code = SVR4_CLD_KILLED;
i                1029 compat/svr4/svr4_misc.c 		 i.svr4_si_pid, i.svr4_si_signo, i.svr4_si_code,
i                1030 compat/svr4/svr4_misc.c 		 i.svr4_si_errno, i.svr4_si_status));
i                1032 compat/svr4/svr4_misc.c 	return copyout(&i, s, sizeof(i));
i                  71 compat/svr4/svr4_signal.c 	int i;
i                  74 compat/svr4/svr4_signal.c 	for (i = 1; i < SVR4_NSIG; i++)
i                  75 compat/svr4/svr4_signal.c 		svr4_sigaddset(s, i);
i                 153 compat/svr4/svr4_signal.c 	int i, newsig;
i                 156 compat/svr4/svr4_signal.c 	for (i = 1; i < SVR4_NSIG; i++) {
i                 157 compat/svr4/svr4_signal.c 		if (svr4_sigismember(sss, i)) {
i                 158 compat/svr4/svr4_signal.c 			newsig = svr4_to_bsd_sig[i];
i                 171 compat/svr4/svr4_signal.c 	int i, newsig;
i                 174 compat/svr4/svr4_signal.c 	for (i = 1; i < NSIG; i++) {
i                 175 compat/svr4/svr4_signal.c 		if (sigismember(bss, i)) {
i                 176 compat/svr4/svr4_signal.c 			newsig = bsd_to_svr4_sig[i];
i                 133 compat/svr4/svr4_stream.c 	size_t i;
i                 136 compat/svr4/svr4_stream.c 	for (i = 0; i < len; i++) {
i                 137 compat/svr4/svr4_stream.c 		uprintf("%x ", buf[i]);
i                 138 compat/svr4/svr4_stream.c 		if (i && (i % 16) == 0) 
i                 154 compat/svr4/svr4_termios.c 	int i;
i                 158 compat/svr4/svr4_termios.c 	for (i = 0; i < SVR4_NCCS; i++)
i                 159 compat/svr4/svr4_termios.c 		uprintf("%o ", st->c_cc[i]);
i                 167 compat/svr4/svr4_termios.c 	int i;
i                 173 compat/svr4/svr4_termios.c 	for (i = 0; i < NCCS; i++)
i                 174 compat/svr4/svr4_termios.c 		uprintf("%o ", bt->c_cc[i]);
i                 488 compat/svr4/svr4_termios.c 	int i;
i                 497 compat/svr4/svr4_termios.c 	for (i = 0; i < SVR4_NCC; i++)
i                 498 compat/svr4/svr4_termios.c 		ts->c_cc[i] = (svr4_cc_t)t->c_cc[i];
i                 506 compat/svr4/svr4_termios.c 	int i;
i                 514 compat/svr4/svr4_termios.c 	for (i = 0; i < SVR4_NCC; i++)
i                 515 compat/svr4/svr4_termios.c 		t->c_cc[i] = (u_char)ts->c_cc[i];
i                  33 crypto/arc4.c  	u_int32_t i;
i                  36 crypto/arc4.c  	for (i = 0; i < RC4STATE; i++)
i                  37 crypto/arc4.c  		ctx->state[i] = i;
i                  38 crypto/arc4.c  	for (i = 0; i < RC4STATE; i++) {
i                  39 crypto/arc4.c  		y = (key[x] + ctx->state[i] + y) % RC4STATE;
i                  40 crypto/arc4.c  		RC4SWAP(i, y);
i                  50 crypto/arc4.c  	u_int32_t i;
i                  52 crypto/arc4.c  	for (i = 0; i < len; i++) {
i                  56 crypto/arc4.c  		dst[i] = src[i] ^ ctx->state[
i                  62 crypto/blf.c   #define BLFRND(s,p,i,j,n) (i ^= F(s,j) ^ (p)[n])
i                 398 crypto/blf.c   	u_int8_t i;
i                 405 crypto/blf.c   	for (i = 0; i < 4; i++, j++) {
i                 418 crypto/blf.c   	u_int16_t i;
i                 425 crypto/blf.c   	for (i = 0; i < BLF_N + 2; i++) {
i                 428 crypto/blf.c   		c->P[i] = c->P[i] ^ temp;
i                 434 crypto/blf.c   	for (i = 0; i < BLF_N + 2; i += 2) {
i                 437 crypto/blf.c   		c->P[i] = data[0];
i                 438 crypto/blf.c   		c->P[i + 1] = data[1];
i                 441 crypto/blf.c   	for (i = 0; i < 4; i++) {
i                 445 crypto/blf.c   			c->S[i][k] = data[0];
i                 446 crypto/blf.c   			c->S[i][k + 1] = data[1];
i                 456 crypto/blf.c   	u_int16_t i;
i                 463 crypto/blf.c   	for (i = 0; i < BLF_N + 2; i++) {
i                 466 crypto/blf.c   		c->P[i] = c->P[i] ^ temp;
i                 472 crypto/blf.c   	for (i = 0; i < BLF_N + 2; i += 2) {
i                 477 crypto/blf.c   		c->P[i] = d[0];
i                 478 crypto/blf.c   		c->P[i + 1] = d[1];
i                 481 crypto/blf.c   	for (i = 0; i < 4; i++) {
i                 487 crypto/blf.c   			c->S[i][k] = d[0];
i                 488 crypto/blf.c   			c->S[i][k + 1] = d[1];
i                 508 crypto/blf.c   	u_int16_t i;
i                 511 crypto/blf.c   	for (i = 0; i < blocks; i++) {
i                 521 crypto/blf.c   	u_int16_t i;
i                 524 crypto/blf.c   	for (i = 0; i < blocks; i++) {
i                 534 crypto/blf.c   	u_int32_t i;
i                 536 crypto/blf.c   	for (i = 0; i < len; i += 8) {
i                 560 crypto/blf.c   	u_int32_t i;
i                 562 crypto/blf.c   	for (i = 0; i < len; i += 8) {
i                 586 crypto/blf.c   	u_int32_t i, j;
i                 588 crypto/blf.c   	for (i = 0; i < len; i += 8) {
i                 616 crypto/blf.c   	u_int32_t i, j;
i                 620 crypto/blf.c   	for (i = len - 8; i >= 8; i -= 8) {
i                  24 crypto/cast.c  #define F1(l, r, i) \
i                  25 crypto/cast.c  	t = ROL(key->xkey[i] + r, key->xkey[i+16]); \
i                  28 crypto/cast.c  #define F2(l, r, i) \
i                  29 crypto/cast.c  	t = ROL(key->xkey[i] ^ r, key->xkey[i+16]); \
i                  32 crypto/cast.c  #define F3(l, r, i) \
i                  33 crypto/cast.c  	t = ROL(key->xkey[i] - r, key->xkey[i+16]); \
i                 136 crypto/cast.c  	int i;
i                 142 crypto/cast.c  	for (i = 0; i < 4; i++) {
i                 143 crypto/cast.c  		x[i] = 0;
i                 144 crypto/cast.c  		if ((i*4+0) < keybytes) x[i] = (u_int32_t)rawkey[i*4+0] << 24;
i                 145 crypto/cast.c  		if ((i*4+1) < keybytes) x[i] |= (u_int32_t)rawkey[i*4+1] << 16;
i                 146 crypto/cast.c  		if ((i*4+2) < keybytes) x[i] |= (u_int32_t)rawkey[i*4+2] << 8;
i                 147 crypto/cast.c  		if ((i*4+3) < keybytes) x[i] |= (u_int32_t)rawkey[i*4+3];
i                 150 crypto/cast.c  	for (i = 0; i < 32; i+=4) {
i                 151 crypto/cast.c  		switch (i & 4) {
i                 197 crypto/cast.c  		switch (i & 12) {
i                 200 crypto/cast.c  			key->xkey[i+0] = cast_sbox5[U_INT8_Ta(t[2])] ^
i                 204 crypto/cast.c  			key->xkey[i+1] = cast_sbox5[U_INT8_Tc(t[2])] ^
i                 208 crypto/cast.c  			key->xkey[i+2] = cast_sbox5[U_INT8_Ta(t[3])] ^
i                 212 crypto/cast.c  			key->xkey[i+3] = cast_sbox5[U_INT8_Tc(t[3])] ^
i                 219 crypto/cast.c  			key->xkey[i+0] = cast_sbox5[U_INT8_Td(t[0])] ^
i                 223 crypto/cast.c  			key->xkey[i+1] = cast_sbox5[U_INT8_Tb(t[0])] ^
i                 227 crypto/cast.c  			key->xkey[i+2] = cast_sbox5[U_INT8_Td(t[1])] ^
i                 231 crypto/cast.c  			key->xkey[i+3] = cast_sbox5[U_INT8_Tb(t[1])] ^
i                 237 crypto/cast.c  		switch (i & 12) {
i                 239 crypto/cast.c  			key->xkey[i+0] ^= cast_sbox5[U_INT8_Tc(z[0])];
i                 240 crypto/cast.c  			key->xkey[i+1] ^= cast_sbox6[U_INT8_Tc(z[1])];
i                 241 crypto/cast.c  			key->xkey[i+2] ^= cast_sbox7[U_INT8_Tb(z[2])];
i                 242 crypto/cast.c  			key->xkey[i+3] ^= cast_sbox8[U_INT8_Ta(z[3])];
i                 245 crypto/cast.c  			key->xkey[i+0] ^= cast_sbox5[U_INT8_Ta(x[2])];
i                 246 crypto/cast.c  			key->xkey[i+1] ^= cast_sbox6[U_INT8_Tb(x[3])];
i                 247 crypto/cast.c  			key->xkey[i+2] ^= cast_sbox7[U_INT8_Td(x[0])];
i                 248 crypto/cast.c  			key->xkey[i+3] ^= cast_sbox8[U_INT8_Td(x[1])];
i                 251 crypto/cast.c  			key->xkey[i+0] ^= cast_sbox5[U_INT8_Tb(z[2])];
i                 252 crypto/cast.c  			key->xkey[i+1] ^= cast_sbox6[U_INT8_Ta(z[3])];
i                 253 crypto/cast.c  			key->xkey[i+2] ^= cast_sbox7[U_INT8_Tc(z[0])];
i                 254 crypto/cast.c  			key->xkey[i+3] ^= cast_sbox8[U_INT8_Tc(z[1])];
i                 257 crypto/cast.c  			key->xkey[i+0] ^= cast_sbox5[U_INT8_Td(x[0])];
i                 258 crypto/cast.c  			key->xkey[i+1] ^= cast_sbox6[U_INT8_Td(x[1])];
i                 259 crypto/cast.c  			key->xkey[i+2] ^= cast_sbox7[U_INT8_Ta(x[2])];
i                 260 crypto/cast.c  			key->xkey[i+3] ^= cast_sbox8[U_INT8_Tb(x[3])];
i                 263 crypto/cast.c  		if (i >= 16) {
i                 264 crypto/cast.c  			key->xkey[i+0] &= 31;
i                 265 crypto/cast.c  			key->xkey[i+1] &= 31;
i                 266 crypto/cast.c  			key->xkey[i+2] &= 31;
i                 267 crypto/cast.c  			key->xkey[i+3] &= 31;
i                 271 crypto/cast.c  	for (i = 0; i < 4; i++) {
i                 272 crypto/cast.c  		t[i] = x[i] = z[i] = 0;
i                 219 crypto/crypto.c 	int i, s;
i                 237 crypto/crypto.c 	for (i = 0; i < crypto_drivers_num; i++) {
i                 238 crypto/crypto.c 		if (crypto_drivers[i].cc_process == NULL &&
i                 239 crypto/crypto.c 		    !(crypto_drivers[i].cc_flags & CRYPTOCAP_F_CLEANUP) &&
i                 240 crypto/crypto.c 		    crypto_drivers[i].cc_sessions == 0) {
i                 241 crypto/crypto.c 			crypto_drivers[i].cc_sessions = 1; /* Mark */
i                 242 crypto/crypto.c 			crypto_drivers[i].cc_flags = flags;
i                 244 crypto/crypto.c 			return i;
i                 249 crypto/crypto.c 	if (i == crypto_drivers_num) {
i                 268 crypto/crypto.c 		newdrv[i].cc_sessions = 1; /* Mark */
i                 269 crypto/crypto.c 		newdrv[i].cc_flags = flags;
i                 275 crypto/crypto.c 		return i;
i                 291 crypto/crypto.c 	int s, i;
i                 299 crypto/crypto.c 	for (i = 0; i < CRK_ALGORITHM_MAX; i++) {
i                 306 crypto/crypto.c 		crypto_drivers[driverid].cc_kalg[i] = kalg[i];
i                 321 crypto/crypto.c 	int s, i;
i                 330 crypto/crypto.c 	for (i = 0; i < CRYPTO_ALGORITHM_ALL; i++) {
i                 337 crypto/crypto.c 		crypto_drivers[driverid].cc_alg[i] = alg[i];
i                 360 crypto/crypto.c 	int i = CRYPTO_ALGORITHM_MAX + 1, s;
i                 378 crypto/crypto.c 		for (i = 1; i <= CRYPTO_ALGORITHM_MAX; i++)
i                 379 crypto/crypto.c 			if (crypto_drivers[driverid].cc_alg[i] != 0)
i                 387 crypto/crypto.c 	if (i == CRYPTO_ALGORITHM_MAX + 1 || alg == CRYPTO_ALGORITHM_ALL) {
i                 308 crypto/cryptodev.c 	int i, s, error;
i                 329 crypto/cryptodev.c 	for (i = 0; i < cse->uio.uio_iovcnt; i++)
i                 498 crypto/cryptodev.c 	int in, out, size, i;
i                 540 crypto/cryptodev.c 	for (i = 0; i < CRK_MAXPARAM; i++) {
i                 541 crypto/cryptodev.c 		krp->krp_param[i].crp_nbits = kop->crk_param[i].crp_nbits;
i                 542 crypto/cryptodev.c 		if (kop->crk_param[i].crp_nbits > 65536) {
i                 547 crypto/cryptodev.c 	for (i = 0; i < krp->krp_iparams + krp->krp_oparams; i++) {
i                 548 crypto/cryptodev.c 		size = (krp->krp_param[i].crp_nbits + 7) / 8;
i                 551 crypto/cryptodev.c 		krp->krp_param[i].crp_p = malloc(size, M_XDATA, M_WAITOK);
i                 552 crypto/cryptodev.c 		if (i >= krp->krp_iparams)
i                 554 crypto/cryptodev.c 		error = copyin(kop->crk_param[i].crp_p, krp->krp_param[i].crp_p, size);
i                 573 crypto/cryptodev.c 	for (i = krp->krp_iparams; i < krp->krp_iparams + krp->krp_oparams; i++) {
i                 574 crypto/cryptodev.c 		size = (krp->krp_param[i].crp_nbits + 7) / 8;
i                 577 crypto/cryptodev.c 		error = copyout(krp->krp_param[i].crp_p, kop->crk_param[i].crp_p, size);
i                 585 crypto/cryptodev.c 		for (i = 0; i < CRK_MAXPARAM; i++) {
i                 586 crypto/cryptodev.c 			if (krp->krp_param[i].crp_p)
i                 587 crypto/cryptodev.c 				free(krp->krp_param[i].crp_p, M_XDATA);
i                  85 crypto/cryptosoft.c 	int i, k, j, blks, ind, count, ivlen;
i                 136 crypto/cryptosoft.c 		i = crd->crd_len;
i                 138 crypto/cryptosoft.c 		while (i > 0) {
i                 192 crypto/cryptosoft.c 				i -= blks;
i                 195 crypto/cryptosoft.c 				if (i == 0)
i                 218 crypto/cryptosoft.c 			while (m->m_len >= k + blks && i > 0) {
i                 252 crypto/cryptosoft.c 				i -= blks;
i                 262 crypto/cryptosoft.c 		i = crd->crd_len;
i                 264 crypto/cryptosoft.c 		while (i > 0) {
i                 321 crypto/cryptosoft.c 				i -= blks;
i                 324 crypto/cryptosoft.c 				if (i == 0)
i                 336 crypto/cryptosoft.c 			    i > 0) {
i                 371 crypto/cryptosoft.c 				i -= blks;
i                 537 crypto/cryptosoft.c 	u_int32_t i;
i                 544 crypto/cryptosoft.c 		for (i = 1; i < swcr_sesnum; i++)
i                 545 crypto/cryptosoft.c 			if (swcr_sessions[i] == NULL)
i                 549 crypto/cryptosoft.c 	if (swcr_sessions == NULL || i == swcr_sesnum) {
i                 551 crypto/cryptosoft.c 			i = 1; /* We leave swcr_sessions[0] empty */
i                 579 crypto/cryptosoft.c 	swd = &swcr_sessions[i];
i                 580 crypto/cryptosoft.c 	*sid = i;
i                 586 crypto/cryptosoft.c 			swcr_freesession(i);
i                 619 crypto/cryptosoft.c 				swcr_freesession(i);
i                 646 crypto/cryptosoft.c 				swcr_freesession(i);
i                 653 crypto/cryptosoft.c 				swcr_freesession(i);
i                 690 crypto/cryptosoft.c 				swcr_freesession(i);
i                 698 crypto/cryptosoft.c 				swcr_freesession(i);
i                 721 crypto/cryptosoft.c 				swcr_freesession(i);
i                 734 crypto/cryptosoft.c 			swcr_freesession(i);
i                  58 crypto/deflate.c 	int error, i = 0, j;
i                  72 crypto/deflate.c 		MALLOC(buf[i].out, u_int8_t *, (u_long) size, M_CRYPTO_DATA, 
i                  74 crypto/deflate.c 		if (buf[i].out == NULL)
i                  76 crypto/deflate.c 		buf[i].size = size;
i                  77 crypto/deflate.c 		buf[i].flag = 1;
i                  78 crypto/deflate.c 		i++;
i                  87 crypto/deflate.c 		MALLOC(buf[i].out, u_int8_t *, (u_long) (size * 4), 
i                  89 crypto/deflate.c 		if (buf[i].out == NULL)
i                  91 crypto/deflate.c 		buf[i].size = size * 4;
i                  92 crypto/deflate.c 		buf[i].flag = 1;
i                  93 crypto/deflate.c 		i++;
i                 112 crypto/deflate.c 		else if (zbuf.avail_out == 0 && i < (ZBUF - 1)) {
i                 114 crypto/deflate.c 			MALLOC(buf[i].out, u_int8_t *, (u_long) size,
i                 116 crypto/deflate.c 			if (buf[i].out == NULL)
i                 118 crypto/deflate.c 			zbuf.next_out = buf[i].out;
i                 119 crypto/deflate.c 			buf[i].size = size;
i                 120 crypto/deflate.c 			buf[i].flag = 1;
i                 121 crypto/deflate.c 			zbuf.avail_out = buf[i].size;
i                 122 crypto/deflate.c 			i++;
i                  80 crypto/des.h   #define des_ecb2_encrypt(i,o,k1,k2,e) \
i                  81 crypto/des.h   	des_ecb3_encrypt((i),(o),(k1),(k2),(k1),(e))
i                  83 crypto/des.h   #define des_ede2_cbc_encrypt(i,o,l,k1,k2,iv,e) \
i                  84 crypto/des.h   	des_ede3_cbc_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(e))
i                  86 crypto/des.h   #define des_ede2_cfb64_encrypt(i,o,l,k1,k2,iv,n,e) \
i                  87 crypto/des.h   	des_ede3_cfb64_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(n),(e))
i                  89 crypto/des.h   #define des_ede2_ofb64_encrypt(i,o,l,k1,k2,iv,n) \
i                  90 crypto/des.h   	des_ede3_ofb64_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(n))
i                  84 crypto/ecb_enc.c 	register int i;
i                 109 crypto/ecb_enc.c 		for (i=0; i<32; i+=4)
i                 111 crypto/ecb_enc.c 			D_ENCRYPT(l,r,i+0); /*  1 */
i                 112 crypto/ecb_enc.c 			D_ENCRYPT(r,l,i+2); /*  2 */
i                 117 crypto/ecb_enc.c 		for (i=30; i>0; i-=4)
i                 119 crypto/ecb_enc.c 			D_ENCRYPT(l,r,i-0); /* 16 */
i                 120 crypto/ecb_enc.c 			D_ENCRYPT(r,l,i-2); /* 15 */
i                 144 crypto/ecb_enc.c 	register int i;
i                 168 crypto/ecb_enc.c 		for (i=0; i<32; i+=4)
i                 170 crypto/ecb_enc.c 			D_ENCRYPT(l,r,i+0); /*  1 */
i                 171 crypto/ecb_enc.c 			D_ENCRYPT(r,l,i+2); /*  2 */
i                 176 crypto/ecb_enc.c 		for (i=30; i>0; i-=4)
i                 178 crypto/ecb_enc.c 			D_ENCRYPT(l,r,i-0); /* 16 */
i                 179 crypto/ecb_enc.c 			D_ENCRYPT(r,l,i-2); /* 15 */
i                 107 crypto/md5.c   	int i;
i                 121 crypto/md5.c   		for (i = 0; i < 4; i++)
i                 122 crypto/md5.c   			PUT_32BIT_LE(digest + i * 4, ctx->state[i]);
i                  55 crypto/michael.c 	int i;
i                  57 crypto/michael.c 	for (i = 0; i < len; i++) {
i                  58 crypto/michael.c 		ctx->michael_state |= data[i] << (ctx->michael_count << 3);
i                 727 crypto/rijndael.c    	int i = 0;
i                 742 crypto/rijndael.c 				rcon[i];
i                 746 crypto/rijndael.c 			if (++i == 10) {
i                 762 crypto/rijndael.c 				rcon[i];
i                 766 crypto/rijndael.c 			if (++i == 8) {
i                 784 crypto/rijndael.c 				rcon[i];
i                 788 crypto/rijndael.c 			if (++i == 7) {
i                 814 crypto/rijndael.c 	int Nr, i, j;
i                 821 crypto/rijndael.c 	for (i = 0, j = 4*Nr; i < j; i += 4, j -= 4) {
i                 822 crypto/rijndael.c 		temp = rk[i    ]; rk[i    ] = rk[j    ]; rk[j    ] = temp;
i                 823 crypto/rijndael.c 		temp = rk[i + 1]; rk[i + 1] = rk[j + 1]; rk[j + 1] = temp;
i                 824 crypto/rijndael.c 		temp = rk[i + 2]; rk[i + 2] = rk[j + 2]; rk[j + 2] = temp;
i                 825 crypto/rijndael.c 		temp = rk[i + 3]; rk[i + 3] = rk[j + 3]; rk[j + 3] = temp;
i                 828 crypto/rijndael.c 	for (i = 1; i < Nr; i++) {
i                  84 crypto/rmd160.c #define X(i)	x[i]
i                 133 crypto/rmd160.c 	int i;
i                 150 crypto/rmd160.c 		for (i = 0; i < 5; i++)
i                 151 crypto/rmd160.c 			PUT_32BIT_LE(digest + i*4, ctx->state[i]);
i                 164 crypto/rmd160.c 	int i;
i                 166 crypto/rmd160.c 	for (i = 0; i < 16; i++)
i                 167 crypto/rmd160.c 		x[i] = (u_int32_t)(
i                 168 crypto/rmd160.c 		    (u_int32_t)(block[i*4 + 0]) |
i                 169 crypto/rmd160.c 		    (u_int32_t)(block[i*4 + 1]) <<  8 |
i                 170 crypto/rmd160.c 		    (u_int32_t)(block[i*4 + 2]) << 16 |
i                 171 crypto/rmd160.c 		    (u_int32_t)(block[i*4 + 3]) << 24);
i                  72 crypto/set_key.c 	int i;
i                  74 crypto/set_key.c 	for (i=0; i<DES_KEY_SZ; i++)
i                  75 crypto/set_key.c 		(*key)[i]=odd_parity[(*key)[i]];
i                  81 crypto/set_key.c 	int i;
i                  83 crypto/set_key.c 	for (i=0; i<DES_KEY_SZ; i++)
i                  85 crypto/set_key.c 		if ((*key)[i] != odd_parity[(*key)[i]])
i                 124 crypto/set_key.c 	int i;
i                 126 crypto/set_key.c 	for (i=0; i<NUM_WEAK_KEY; i++)
i                 131 crypto/set_key.c 		if (bcmp(weak_keys[i],key,sizeof(des_cblock)) == 0) return(1);
i                 158 crypto/set_key.c 	register int i;
i                 201 crypto/set_key.c 	for (i=0; i<ITERATIONS; i++)
i                 203 crypto/set_key.c 		if (shifts2[i])
i                  32 crypto/sha1.c  #define blk0(i) (block->l[i] = (rol(block->l[i],24)&0xFF00FF00) \
i                  33 crypto/sha1.c      |(rol(block->l[i],8)&0x00FF00FF))
i                  35 crypto/sha1.c  #define blk0(i) block->l[i]
i                  37 crypto/sha1.c  #define blk(i) (block->l[i&15] = rol(block->l[(i+13)&15]^block->l[(i+8)&15] \
i                  38 crypto/sha1.c      ^block->l[(i+2)&15]^block->l[i&15],1))
i                  41 crypto/sha1.c  #define R0(v,w,x,y,z,i) z+=((w&(x^y))^y)+blk0(i)+0x5A827999+rol(v,5);w=rol(w,30);
i                  42 crypto/sha1.c  #define R1(v,w,x,y,z,i) z+=((w&(x^y))^y)+blk(i)+0x5A827999+rol(v,5);w=rol(w,30);
i                  43 crypto/sha1.c  #define R2(v,w,x,y,z,i) z+=(w^x^y)+blk(i)+0x6ED9EBA1+rol(v,5);w=rol(w,30);
i                  44 crypto/sha1.c  #define R3(v,w,x,y,z,i) z+=(((w|x)&y)|(w&x))+blk(i)+0x8F1BBCDC+rol(v,5);w=rol(w,30);
i                  45 crypto/sha1.c  #define R4(v,w,x,y,z,i) z+=(w^x^y)+blk(i)+0xCA62C1D6+rol(v,5);w=rol(w,30);
i                 126 crypto/sha1.c      unsigned int i;
i                 132 crypto/sha1.c          bcopy(data, &context->buffer[j], (i = 64 - j));
i                 134 crypto/sha1.c          for ( ; i + 63 < len; i += 64) {
i                 135 crypto/sha1.c              SHA1Transform(context->state, &data[i]);
i                 139 crypto/sha1.c      else i = 0;
i                 140 crypto/sha1.c      bcopy(&data[i], &context->buffer[j], len - i);
i                 149 crypto/sha1.c      unsigned int i;
i                 152 crypto/sha1.c      for (i = 0; i < 8; i++) {
i                 153 crypto/sha1.c          finalcount[i] = (unsigned char)((context->count >>
i                 154 crypto/sha1.c              ((7 - (i & 7)) * 8)) & 255);  /* Endian independent */
i                 163 crypto/sha1.c          for (i = 0; i < SHA1_DIGEST_LENGTH; i++) {
i                 164 crypto/sha1.c              digest[i] = (unsigned char)((context->state[i >> 2] >>
i                 165 crypto/sha1.c                  ((3 - (i & 3)) * 8)) & 255);
i                 169 crypto/sha1.c      i = 0;
i                  67 crypto/skipjack.c 	int i, k;
i                  74 crypto/skipjack.c 		for (i = 0; i < 0x100; i++)
i                  75 crypto/skipjack.c 			table [i] = ftable [i ^ key_byte];
i                 539 crypto/xform.c 	int i;
i                 543 crypto/xform.c 	for (i = AESCTR_BLOCKSIZE - 1;
i                 544 crypto/xform.c 	     i >= AESCTR_NONCESIZE + AESCTR_IVSIZE; i--)
i                 545 crypto/xform.c 		if (++ctx->ac_block[i])   /* continue on overflow */
i                 548 crypto/xform.c 	for (i = 0; i < AESCTR_BLOCKSIZE; i++)
i                 549 crypto/xform.c 		data[i] ^= keystream[i];
i                  52 ddb/db_access.c 	int i;
i                  64 ddb/db_access.c 	for (i = size - 1; i >= 0; i--)
i                  66 ddb/db_access.c 	for (i = 0; i < size; i++)
i                  68 ddb/db_access.c 		value = (value << 8) + (data[i] & 0xFF);
i                  79 ddb/db_access.c 	int i;
i                  87 ddb/db_access.c 	for (i = 0; i < size; i++)
i                  89 ddb/db_access.c 	for (i = size - 1; i >= 0; i--)
i                  92 ddb/db_access.c 		data[i] = value & 0xff;
i                 656 ddb/db_command.c 	int i, off;
i                 664 ddb/db_command.c 	for (i = 0, p = msgbufp->msg_bufc + off;
i                 665 ddb/db_command.c 	    i < msgbufp->msg_bufs; i++, p++) {
i                 109 ddb/db_elf.c   	int i;
i                 159 ddb/db_elf.c   	for (i = 0; i < elf->e_shnum; i++) {
i                 160 ddb/db_elf.c   		if (shp[i].sh_type == SHT_SYMTAB) {
i                 163 ddb/db_elf.c   			if (shp[i].sh_offset == 0)
i                 166 ddb/db_elf.c   			    shp[i].sh_offset);
i                 168 ddb/db_elf.c   			    shp[i].sh_offset + shp[i].sh_size);
i                 169 ddb/db_elf.c   			j = shp[i].sh_link;
i                 182 ddb/db_elf.c   		if (strcmp(".strtab", shstrtab+shp[i].sh_name) == 0) {
i                 183 ddb/db_elf.c   			strtab_start = (char *)symtab + shp[i].sh_offset;
i                 184 ddb/db_elf.c   			strtab_end = (char *)symtab + shp[i].sh_offset +
i                 185 ddb/db_elf.c   			    shp[i].sh_size;
i                 186 ddb/db_elf.c   		} else if (strcmp(".symtab", shstrtab+shp[i].sh_name) == 0) {
i                 188 ddb/db_elf.c   			    shp[i].sh_offset);
i                 190 ddb/db_elf.c   			    shp[i].sh_offset + shp[i].sh_size);
i                 237 ddb/db_elf.c   	int i;
i                 240 ddb/db_elf.c   	for (i = 0; i < elf->e_shnum; i++) {
i                 241 ddb/db_elf.c   		if (shp[i].sh_type == SHT_SYMTAB)
i                 242 ddb/db_elf.c   			return ((char *)elf + shp[shp[i].sh_link].sh_offset);
i                 243 ddb/db_elf.c   		if (strcmp(".strtab", shstrtab+shp[i].sh_name) == 0)
i                 244 ddb/db_elf.c   			return ((char *)elf + shp[i].sh_offset);
i                 144 ddb/db_hangman.c 	int i;
i                 166 ddb/db_hangman.c 	for (i = 'a'; i <= 'z'; ++i, m >>= 1)
i                 168 ddb/db_hangman.c 			cnputc(i);
i                 170 ddb/db_hangman.c 	for (i = 'a'; i <= 'z'; ++i)
i                 171 ddb/db_hangman.c 		if (ABC_ISWRONG(i))
i                 172 ddb/db_hangman.c 			cnputc(i);
i                  59 ddb/db_lex.c   	int	i;
i                  61 ddb/db_lex.c   	i = db_readline(db_line, sizeof(db_line));
i                  62 ddb/db_lex.c   	if (i == 0)
i                  65 ddb/db_lex.c   	db_endlp = db_lp + i;
i                  66 ddb/db_lex.c   	return (i);
i                  77 ddb/db_output.c #define	NEXT_TAB(i) \
i                  78 ddb/db_output.c 	((((i) + db_tab_stop_width) / db_tab_stop_width) * db_tab_stop_width)
i                 155 ddb/db_run.c   			int i;
i                 158 ddb/db_run.c   			for (i = db_call_depth; --i > 0; )
i                 270 ddb/db_sym.c   	int i;
i                 281 ddb/db_sym.c   			for (i = 0; i < MAXNOSYMTABS; i++) {
i                 282 ddb/db_sym.c   				if (db_symtabs[i].name &&
i                 283 ddb/db_sym.c   				    ! strcmp(symstr, db_symtabs[i].name)) {
i                 284 ddb/db_sym.c   					symtab_start = i;
i                 285 ddb/db_sym.c   					symtab_end = i + 1;
i                 290 ddb/db_sym.c   			if (i == MAXNOSYMTABS) {
i                 302 ddb/db_sym.c   	for (i = symtab_start; i < symtab_end; i++) {
i                 303 ddb/db_sym.c   		if (db_symtabs[i].name && 
i                 304 ddb/db_sym.c   		    (sp = X_db_lookup(&db_symtabs[i], symstr))) {
i                 305 ddb/db_sym.c   			db_last_symtab = &db_symtabs[i];
i                 367 ddb/db_sym.c   	int i;
i                 378 ddb/db_sym.c   			for (i = 0; i < MAXNOSYMTABS; i++) {
i                 379 ddb/db_sym.c   				if (db_symtabs[i].name &&
i                 380 ddb/db_sym.c   				    ! strcmp(symstr, db_symtabs[i].name)) {
i                 381 ddb/db_sym.c   					symtab_start = i;
i                 382 ddb/db_sym.c   					symtab_end = i + 1;
i                 387 ddb/db_sym.c   			if (i == MAXNOSYMTABS) {
i                 402 ddb/db_sym.c   	for (i = symtab_start; i < symtab_end; i++)
i                 403 ddb/db_sym.c   		if (db_symtabs[i].name) {
i                 404 ddb/db_sym.c   			db_printf("Sifting table %s:\n", db_symtabs[i].name);
i                 405 ddb/db_sym.c   			X_db_forall(&db_symtabs[i], db_sift, &dsa);
i                 422 ddb/db_sym.c   	int	i;
i                 429 ddb/db_sym.c   	for (i = 0; i < MAXNOSYMTABS; i++) {
i                 430 ddb/db_sym.c   		if (db_symtabs[i].name &&
i                 431 ddb/db_sym.c   		    X_db_lookup(&db_symtabs[i], sym_name)) {
i                 449 ddb/db_sym.c   	int		i;
i                 454 ddb/db_sym.c   	for (i = 0; i < MAXNOSYMTABS; i++) {
i                 455 ddb/db_sym.c   	    if (!db_symtabs[i].name)
i                 457 ddb/db_sym.c   	    sym = X_db_search_symbol(&db_symtabs[i], val, strategy, &newdiff);
i                 459 ddb/db_sym.c   		db_last_symtab = &db_symtabs[i];
i                 651 dev/acpi/acpi.c 	int i, ntables;
i                 673 dev/acpi/acpi.c 		for (i = 0; i < ntables; i++) {
i                 674 dev/acpi/acpi.c 			acpi_map(xsdt->table_offsets[i], sizeof(*hdr), &handle);
i                 676 dev/acpi/acpi.c 			acpi_load_table(xsdt->table_offsets[i], hdr->length,
i                 700 dev/acpi/acpi.c 		for (i = 0; i < ntables; i++) {
i                 701 dev/acpi/acpi.c 			acpi_map(rsdt->table_offsets[i], sizeof(*hdr), &handle);
i                 703 dev/acpi/acpi.c 			acpi_load_table(rsdt->table_offsets[i], hdr->length,
i                1094 dev/acpi/acpi.c 	int i;
i                1096 dev/acpi/acpi.c 	for (i = ACPI_STATE_S0; i <= ACPI_STATE_S5; i++) {
i                1097 dev/acpi/acpi.c 		snprintf(name, sizeof(name), "_S%d_", i);
i                1098 dev/acpi/acpi.c 		sc->sc_sleeptype[i].slp_typa = -1;
i                1099 dev/acpi/acpi.c 		sc->sc_sleeptype[i].slp_typb = -1;
i                1102 dev/acpi/acpi.c 				sc->sc_sleeptype[i].slp_typa = aml_val2int(res.v_package[0]);
i                1103 dev/acpi/acpi.c 				sc->sc_sleeptype[i].slp_typb = aml_val2int(res.v_package[1]);
i                 168 dev/acpi/acpibat.c 	int			i;
i                 174 dev/acpi/acpibat.c 		for (i = 0; i < 8; i++) {
i                 175 dev/acpi/acpibat.c 			sc->sc_sens[i].value = 0;
i                 176 dev/acpi/acpibat.c 			sc->sc_sens[i].status = SENSOR_S_UNSPEC;
i                 177 dev/acpi/acpibat.c 			sc->sc_sens[i].flags = SENSOR_FINVALID;
i                 239 dev/acpi/acpicpu.c 	int			i;
i                 297 dev/acpi/acpicpu.c 		for (i = 0; i < sc->sc_pss_len; i++) {
i                 299 dev/acpi/acpicpu.c 			    sc->sc_pss[i].pss_core_freq,
i                 300 dev/acpi/acpicpu.c 			    sc->sc_pss[i].pss_power,
i                 301 dev/acpi/acpicpu.c 			    sc->sc_pss[i].pss_trans_latency,
i                 302 dev/acpi/acpicpu.c 			    sc->sc_pss[i].pss_bus_latency,
i                 303 dev/acpi/acpicpu.c 			    sc->sc_pss[i].pss_ctrl,
i                 304 dev/acpi/acpicpu.c 			    sc->sc_pss[i].pss_status);
i                 333 dev/acpi/acpicpu.c 	i = 0;
i                 335 dev/acpi/acpicpu.c 		if (i)
i                 351 dev/acpi/acpicpu.c 		i++;
i                 354 dev/acpi/acpicpu.c 		if (i)
i                 358 dev/acpi/acpicpu.c 		if (i)
i                 371 dev/acpi/acpicpu.c 		for (i = 0; i < sc->sc_pss_len; i++)
i                 372 dev/acpi/acpicpu.c 			printf("%d%s", sc->sc_pss[i].pss_core_freq,
i                 373 dev/acpi/acpicpu.c 			    i < sc->sc_pss_len - 1 ? ", " : " MHz\n");
i                 447 dev/acpi/acpicpu.c 	int			i;
i                 462 dev/acpi/acpicpu.c 	for (i = 0; i < res.length; i++) {
i                 463 dev/acpi/acpicpu.c 		sc->sc_pss[i].pss_core_freq = aml_val2int(
i                 464 dev/acpi/acpicpu.c 		    res.v_package[i]->v_package[0]);
i                 465 dev/acpi/acpicpu.c 		sc->sc_pss[i].pss_power = aml_val2int(
i                 466 dev/acpi/acpicpu.c 		    res.v_package[i]->v_package[1]);
i                 467 dev/acpi/acpicpu.c 		sc->sc_pss[i].pss_trans_latency = aml_val2int(
i                 468 dev/acpi/acpicpu.c 		    res.v_package[i]->v_package[2]);
i                 469 dev/acpi/acpicpu.c 		sc->sc_pss[i].pss_bus_latency = aml_val2int(
i                 470 dev/acpi/acpicpu.c 		    res.v_package[i]->v_package[3]);
i                 471 dev/acpi/acpicpu.c 		sc->sc_pss[i].pss_ctrl = aml_val2int(
i                 472 dev/acpi/acpicpu.c 		    res.v_package[i]->v_package[4]);
i                 473 dev/acpi/acpicpu.c 		sc->sc_pss[i].pss_status = aml_val2int(
i                 474 dev/acpi/acpicpu.c 		    res.v_package[i]->v_package[5]);
i                  90 dev/acpi/acpiprt.c 	int i;
i                 114 dev/acpi/acpiprt.c 	for (i = 0; i < res.length; i++)
i                 115 dev/acpi/acpiprt.c 		acpiprt_prt_add(sc, res.v_package[i]);
i                  99 dev/acpi/acpitz.c 	int			i;
i                 118 dev/acpi/acpitz.c 	for (i = 0; i < ACPITZ_MAX_AC; i++) {
i                 119 dev/acpi/acpitz.c 		snprintf(name, sizeof name, "_AC%d", i);
i                 120 dev/acpi/acpitz.c 		sc->sc_ac[i] = acpitz_getreading(sc, name);
i                 171 dev/acpi/acpitz.c acpitz_setfan(struct acpitz_softc *sc, int i, char *method)
i                 177 dev/acpi/acpitz.c 	dnprintf(20, "%s: acpitz_setfan(%d, %s)\n", DEVNAME(sc), i, method);
i                 179 dev/acpi/acpitz.c 	snprintf(name, sizeof name, "_AL%d", i);
i                 228 dev/acpi/acpitz.c 				sc->sc_ac_stat[i] = aml_val2int(&res2);
i                 244 dev/acpi/acpitz.c 	int			i, trend;
i                 278 dev/acpi/acpitz.c 	for (i = 0; i < ACPITZ_MAX_AC; i++) {
i                 279 dev/acpi/acpitz.c 		if (sc->sc_ac[i] != -1 && sc->sc_ac[i] <= sc->sc_tmp) {
i                 281 dev/acpi/acpitz.c 			if (sc->sc_ac_stat[i] <= 0)
i                 282 dev/acpi/acpitz.c 				acpitz_setfan(sc, i, "_ON_");
i                 283 dev/acpi/acpitz.c 		} else if (sc->sc_ac[i] != -1) {
i                 285 dev/acpi/acpitz.c 			if (sc->sc_ac_stat[i] > 0)
i                 286 dev/acpi/acpitz.c 				acpitz_setfan(sc, i, "_OFF");
i                  32 dev/acpi/acpiutil.c 	int i;
i                  34 dev/acpi/acpiutil.c 	for (i = 0; i < len; i++)
i                  35 dev/acpi/acpiutil.c 		s += p[i];
i                 217 dev/acpi/acpivar.h #define	ACPI_EVENT_COMPOSE(t,i)	(((i) & 0x7fff) << 16 | ((t) & ACPI_EVENT_MASK))
i                 310 dev/acpi/amltypes.h #define aml_pkgval(v,i)		(&(v)->v_package[(i)])
i                 329 dev/acpi/dsdt.c 	int i;
i                 333 dev/acpi/dsdt.c 	for (i = 0; i < sizeof(aml_table) / sizeof(aml_table[0]); i++)
i                 334 dev/acpi/dsdt.c 		aml_ophash[HASH_KEY(aml_table[i].opcode)] = &aml_table[i];
i                3497 dev/acpi/dsdt.c 	int i;
i                3510 dev/acpi/dsdt.c 		for (i = 0; i < val->length; i++)
i                3511 dev/acpi/dsdt.c 			aml_fixup_node(node, val->v_package[i]);
i                 268 dev/adb/akbd.c 	int i;
i                 284 dev/adb/akbd.c 		for (i = 1; i <= buffer[0]; i++)
i                 285 dev/adb/akbd.c 			printf(" %x", buffer[i]);
i                 396 dev/adb/ams.c  	int i;
i                 428 dev/adb/ams.c  		for (i = 1; i <= buffer[0]; i++)
i                 429 dev/adb/ams.c  			printf(" %x", buffer[i]);
i                 444 dev/adb/ams.c  	int i, button_bit, max_byte, mask;
i                 473 dev/adb/ams.c  		for (i = 0; i < 2; i++, button_bit <<= 1)
i                 475 dev/adb/ams.c  			if (!(event->bytes[i] & 0x80))
i                 481 dev/adb/ams.c  			for (mask = 0x80; i < max_byte;
i                 482 dev/adb/ams.c  			     i += (mask == 0x80), button_bit <<= 1) {
i                 484 dev/adb/ams.c  				if (!(event->bytes[i] & mask))
i                  69 dev/ata/ata.c  	int i;
i                 138 dev/ata/ata.c  		for (i = 0; i < sizeof(prms->atap_model); i += 2) {
i                 139 dev/ata/ata.c  			p = (u_short *)(prms->atap_model + i);
i                 142 dev/ata/ata.c  		for (i = 0; i < sizeof(prms->atap_serial); i += 2) {
i                 143 dev/ata/ata.c  			p = (u_short *)(prms->atap_serial + i);
i                 146 dev/ata/ata.c  		for (i = 0; i < sizeof(prms->atap_revision); i += 2) {
i                 147 dev/ata/ata.c  			p = (u_short *)(prms->atap_revision + i);
i                 219 dev/ata/ata.c  	int i;
i                 232 dev/ata/ata.c  	for (i = 0; i < 8; i++) {
i                 233 dev/ata/ata.c  		if (errno & (1 << i)) {
i                 235 dev/ata/ata.c  			    errstr[i]);
i                 100 dev/ata/atascsi.c 	int				i;
i                 130 dev/ata/atascsi.c 	for (i = 0; i < as->as_link.adapter_buswidth; i++)
i                 131 dev/ata/atascsi.c 		atascsi_probe(as, i);
i                 245 dev/ata/atascsi.c 	int			i;
i                 251 dev/ata/atascsi.c 	for (i = 0; i < sizeof(id->serial) / sizeof(u_int16_t); i++)
i                 252 dev/ata/atascsi.c 		swap[i] = swap16(swap[i]);
i                 255 dev/ata/atascsi.c 	for (i = 0; i < sizeof(id->firmware) / sizeof(u_int16_t); i++)
i                 256 dev/ata/atascsi.c 		swap[i] = swap16(swap[i]);
i                 259 dev/ata/atascsi.c 	for (i = 0; i < sizeof(id->model) / sizeof(u_int16_t); i++)
i                 260 dev/ata/atascsi.c 		swap[i] = swap16(swap[i]);
i                 619 dev/ata/atascsi.c 	int			i;
i                 628 dev/ata/atascsi.c 			for (i = 3; i >= 0; --i) {
i                 630 dev/ata/atascsi.c 				capacity += letoh16(id.addrsecxt[i]);
i                 227 dev/ata/wd.c   	int i, blank;
i                 249 dev/ata/wd.c   	for (blank = 0, p = wd->sc_params.atap_model, q = buf, i = 0;
i                 250 dev/ata/wd.c   	    i < sizeof(wd->sc_params.atap_model); i++) {
i                 862 dev/atapiscsi/atapiscsi.c 	int i;
i                 893 dev/atapiscsi/atapiscsi.c 	for (i = 0; i < 12; i++)
i                 894 dev/atapiscsi/atapiscsi.c 		WDCDEBUG_PRINT(("%02x ", cmd[i]), DEBUG_INTR);
i                 411 dev/audio.c    	int i, j;
i                 423 dev/audio.c    	    for(i = 0; tbl[i].name; i++) {
i                 426 dev/audio.c    			    tbl[i].name) == 0) {
i                 427 dev/audio.c    			ports->aumask[ports->nports] = tbl[i].mask;
i                 431 dev/audio.c    			ports->allports |= tbl[i].mask;
i                 438 dev/audio.c    	    for(i = 0; tbl[i].name; i++) {
i                 441 dev/audio.c    			    tbl[i].name) == 0) {
i                 442 dev/audio.c    			ports->aumask[ports->nports] = tbl[i].mask;
i                 446 dev/audio.c    			ports->allports |= tbl[i].mask;
i                2240 dev/audio.c    	int i, error;
i                2271 dev/audio.c    			for(i = 0; i < ports->nports; i++) {
i                2272 dev/audio.c    				if (ports->misel[i] == ct.un.ord) {
i                2273 dev/audio.c    					ct.dev = ports->miport[i];
i                2288 dev/audio.c    			for(i = 0; i < ports->nports; i++) {
i                2289 dev/audio.c    				if (ports->misel[i] & mask) {
i                2290 dev/audio.c    				    ct.dev = ports->miport[i];
i                2329 dev/audio.c    	int i, l, r, n;
i                2347 dev/audio.c    			for(i = 0; i < ports->nports; i++) {
i                2348 dev/audio.c    				if (ports->misel[i] == ct.un.ord) {
i                2349 dev/audio.c    					ct.dev = ports->miport[i];
i                2364 dev/audio.c    			for(i = 0; i < ports->nports; i++) {
i                2365 dev/audio.c    				if (ports->misel[i] & ct.un.mask) {
i                2366 dev/audio.c    					ct.dev = ports->miport[i];
i                2401 dev/audio.c    	int i, error;
i                2414 dev/audio.c    		for(i = 0; i < ports->nports; i++)
i                2415 dev/audio.c    			if (ports->aumask[i] == port) {
i                2416 dev/audio.c    				ct.un.ord = ports->misel[i];
i                2423 dev/audio.c    		for(i = 0; i < ports->nports; i++)
i                2424 dev/audio.c    			if (ports->aumask[i] & port)
i                2425 dev/audio.c    				ct.un.mask |= ports->misel[i];
i                2440 dev/audio.c    	int i, aumask;
i                2450 dev/audio.c    		for(i = 0; i < ports->nports; i++)
i                2451 dev/audio.c    			if (ct.un.ord == ports->misel[i])
i                2452 dev/audio.c    				aumask = ports->aumask[i];
i                2454 dev/audio.c    		for(i = 0; i < ports->nports; i++)
i                2455 dev/audio.c    			if (ct.un.mask & ports->misel[i])
i                2456 dev/audio.c    				aumask |= ports->aumask[i];
i                 421 dev/bluetooth/btkbd.c 	int nkeys, i, j;
i                 430 dev/bluetooth/btkbd.c 	for (i = 0 ; i < sc->sc_nmod ; i++)
i                 431 dev/bluetooth/btkbd.c 		if (hid_get_data(data, &sc->sc_modloc[i]))
i                 432 dev/bluetooth/btkbd.c 			ud->modifiers |= sc->sc_mods[i].mask;
i                 445 dev/bluetooth/btkbd.c 		for (i = 0 ; i < sc->sc_nmod ; i++)
i                 446 dev/bluetooth/btkbd.c 			if ((mod & sc->sc_mods[i].mask) !=
i                 447 dev/bluetooth/btkbd.c 			    (omod & sc->sc_mods[i].mask))
i                 448 dev/bluetooth/btkbd.c 				ADDKEY(sc->sc_mods[i].key |
i                 449 dev/bluetooth/btkbd.c 				    (mod & sc->sc_mods[i].mask
i                 454 dev/bluetooth/btkbd.c 		for (i = 0 ; i < sc->sc_nkeycode ; i++) {
i                 455 dev/bluetooth/btkbd.c 			key = sc->sc_odata.keycode[i];
i                 470 dev/bluetooth/btkbd.c 		for (i = 0 ; i < sc->sc_nkeycode ; i++) {
i                 471 dev/bluetooth/btkbd.c 			key = ud->keycode[i];
i                 495 dev/bluetooth/btkbd.c 		for (npress = i = j = 0 ; i < nkeys ; i++) {
i                 496 dev/bluetooth/btkbd.c 			key = ibuf[i];
i                 537 dev/bluetooth/btkbd.c 	for (i = 0 ; i < nkeys ; i++) {
i                 538 dev/bluetooth/btkbd.c 		key = ibuf[i];
i                 134 dev/bluetooth/btms.c 	int i, hl;
i                 210 dev/bluetooth/btms.c 	for (i = 1 ; i <= MAX_BUTTONS ; i++) {
i                 212 dev/bluetooth/btms.c 		    HID_USAGE2(HUP_BUTTON, i), ba->ba_id, hid_input,
i                 213 dev/bluetooth/btms.c 		    &sc->sc_loc_button[i - 1], NULL);
i                 218 dev/bluetooth/btms.c 	sc->sc_num_buttons = i - 1;
i                 290 dev/bluetooth/btms.c 	int i, s;
i                 304 dev/bluetooth/btms.c 	for (i = 0 ; i < sc->sc_num_buttons ; i++)
i                 305 dev/bluetooth/btms.c 		if (hid_get_data(data, &sc->sc_loc_button[i]))
i                 306 dev/bluetooth/btms.c 			buttons |= BUTTON(i);
i                 149 dev/cardbus/cardbus.c 	int i, j;
i                 166 dev/cardbus/cardbus.c 		for (i = cis_ptr, j = 0; i < 0xff; i += 4) {
i                 167 dev/cardbus/cardbus.c 			u_int32_t e = (cf->cardbus_conf_read)(cc, tag, i);
i                 284 dev/cardbus/cardbus.c 	int i;
i                 299 dev/cardbus/cardbus.c 		i = 0;
i                 301 dev/cardbus/cardbus.c 		while (i <
i                 305 dev/cardbus/cardbus.c 			cis->cis1_info[i++] = p;
i                 386 dev/cardbus/cardbus.c 	int i;
i                 408 dev/cardbus/cardbus.c 	for (i = 0; i < 5; ++i) {
i                 421 dev/cardbus/cardbus.c 	if (i == 5)
i                 580 dev/cardbus/cardbus.c 	int i;
i                 585 dev/cardbus/cardbus.c 		for (i = 0; i < 4; i++) {
i                 586 dev/cardbus/cardbus.c 			if (ca->ca_cis.cis1_info[i] == NULL)
i                 588 dev/cardbus/cardbus.c 			if (i)
i                 590 dev/cardbus/cardbus.c 			printf("%s", ca->ca_cis.cis1_info[i]);
i                 592 dev/cardbus/cardbus.c 		if (i)
i                 604 dev/cardbus/cardbus.c 		for (i = 0; i < 3 && ca->ca_cis.cis1_info[i]; i++)
i                 605 dev/cardbus/cardbus.c 			printf("%s%s", i ? ", " : " \"",
i                 606 dev/cardbus/cardbus.c 			    ca->ca_cis.cis1_info[i]);
i                 811 dev/cardbus/cardbus.c 	int i;
i                 813 dev/cardbus/cardbus.c 	for (i = 0, cm = ids; i < nent; i++, cm++)
i                 914 dev/cardbus/cardbus.c 	int i;
i                 918 dev/cardbus/cardbus.c 	for (i = 0; i < len; ++i) {
i                 919 dev/cardbus/cardbus.c 		if (i % 16 == 0)
i                 920 dev/cardbus/cardbus.c 			printf("  0x%02x:", i);
i                 921 dev/cardbus/cardbus.c 		printf(" %x",tuple[i]);
i                 922 dev/cardbus/cardbus.c 		if (i % 16 == 15)
i                 925 dev/cardbus/cardbus.c 	if (i % 16 != 0)
i                 182 dev/cardbus/com_cardbus.c 	int i, index = -1;
i                 200 dev/cardbus/com_cardbus.c 	for (i = 0; i < 7; i++) {
i                 202 dev/cardbus/com_cardbus.c 		if (ca->ca_cis.bar[i].size == 0)
i                 206 dev/cardbus/com_cardbus.c 		    CARDBUS_CIS_ASI_BAR(ca->ca_cis.bar[i].flags))
i                 210 dev/cardbus/com_cardbus.c 		index = i;
i                 231 dev/cardbus/com_cardbus.c 	for (i = 0; i < 7; i++) {
i                 233 dev/cardbus/com_cardbus.c 		if (ca->ca_cis.bar[i].size == 0)
i                 237 dev/cardbus/com_cardbus.c 		    CARDBUS_CIS_ASI_BAR(ca->ca_cis.bar[i].flags))
i                 240 dev/cardbus/com_cardbus.c 		    DEVNAME(csc), CARDBUS_CIS_ASI_BAR(ca->ca_cis.bar[i].flags),
i                 241 dev/cardbus/com_cardbus.c 		    (ca->ca_cis.bar[i].flags & 0x10) ? "i/o" : "mem",
i                 242 dev/cardbus/com_cardbus.c 		    ca->ca_cis.bar[i].size);
i                  92 dev/cardbus/puc_cardbus.c 	int i;
i                 105 dev/cardbus/puc_cardbus.c 	for (i = 0; i < PUC_NBARS; i++) {
i                 109 dev/cardbus/puc_cardbus.c 		sc->sc_bar_mappings[i].mapped = 0;
i                 110 dev/cardbus/puc_cardbus.c 		bar = PCI_MAPREG_START + 4 * i;
i                 114 dev/cardbus/puc_cardbus.c 		if (!(sc->sc_bar_mappings[i].mapped = !Cardbus_mapreg_map(ct,
i                 116 dev/cardbus/puc_cardbus.c 		    &sc->sc_bar_mappings[i].t, &sc->sc_bar_mappings[i].h,
i                 117 dev/cardbus/puc_cardbus.c 		    &sc->sc_bar_mappings[i].a, &sc->sc_bar_mappings[i].s)))
i                 120 dev/cardbus/puc_cardbus.c 		sc->sc_bar_mappings[i].type = type;
i                 173 dev/cardbus/puc_cardbus.c 	int i, rv;
i                 175 dev/cardbus/puc_cardbus.c 	for (i = PUC_MAX_PORTS; i--; )
i                 176 dev/cardbus/puc_cardbus.c 		if (sc->sc_ports[i].dev)
i                 177 dev/cardbus/puc_cardbus.c 			if ((rv = config_detach(sc->sc_ports[i].dev, flags)))
i                 180 dev/cardbus/puc_cardbus.c 	for (i = PUC_NBARS; i--; )
i                 181 dev/cardbus/puc_cardbus.c 		if (sc->sc_bar_mappings[i].mapped)
i                 182 dev/cardbus/puc_cardbus.c 			Cardbus_mapreg_unmap(ct, sc->sc_bar_mappings[i].type,
i                 183 dev/cardbus/puc_cardbus.c 			    sc->sc_bar_mappings[i].t, sc->sc_bar_mappings[i].h,
i                 184 dev/cardbus/puc_cardbus.c 			    sc->sc_bar_mappings[i].s);
i                 232 dev/ccd.c      	int i;
i                 253 dev/ccd.c      	for (i = 0; i < num; i++) {
i                 254 dev/ccd.c      		rw_init(&ccd_softc[i].sc_rwlock, "ccdlock");
i                1025 dev/ccd.c      	int i, j, lookedup = 0, error = 0;
i                1087 dev/ccd.c      		for (i = 0; i < ccio->ccio_ndisks; ++i) {
i                1090 dev/ccd.c      				i, cpp[i], lookedup));
i                1091 dev/ccd.c      			if ((error = ccdlookup(cpp[i], p, &vpp[i])) != 0) {
i                1164 dev/ccd.c      		for (i = 0; i < cs->sc_nccdisks; ++i) {
i                1172 dev/ccd.c      			    cs->sc_cinfo[i].ci_vp));
i                1175 dev/ccd.c      			(void)vn_close(cs->sc_cinfo[i].ci_vp, FREAD|FWRITE,
i                1177 dev/ccd.c      			free(cs->sc_cinfo[i].ci_path, M_DEVBUF);
i                1181 dev/ccd.c      		for (i = 0; cs->sc_itable[i].ii_ndisk; ++i)
i                1182 dev/ccd.c      			free(cs->sc_itable[i].ii_index, M_DEVBUF);
i                1397 dev/ccd.c      	int ix, i;
i                1402 dev/ccd.c      		for (i = 0; i < ii->ii_ndisk; i++)
i                1403 dev/ccd.c      			printf(" %d", ii->ii_index[i]);
i                  74 dev/dec/if_le_dec.c 	int i;
i                  87 dev/dec/if_le_dec.c 	for (i = 0; i < sizeof(sc->sc_arpcom.ac_enaddr); i++) {
i                  88 dev/dec/if_le_dec.c 		sc->sc_arpcom.ac_enaddr[i] = *eap;
i                 123 dev/dec/if_le_dec.c 	int i = 0;
i                 128 dev/dec/if_le_dec.c 		if (++i > 10000) {
i                 834 dev/eisa/aha1742.c 	int i, irq, busid;
i                 861 dev/eisa/aha1742.c 	i = bus_space_read_1(iot, ioh, MBOXIN0);
i                 862 dev/eisa/aha1742.c 	if (i) {
i                 863 dev/eisa/aha1742.c 		printf("self test failed, val = 0x%x\n", i);
i                1211 dev/eisa/aha1742.c 	int i = 0;
i                1213 dev/eisa/aha1742.c 	while (i++ < ECB_HASH_SIZE) {
i                1214 dev/eisa/aha1742.c 		ecb = sc->ecb_hash_list[i];
i                 134 dev/eisa/cac_eisa.c 	int i;
i                 138 dev/eisa/cac_eisa.c 	for (i = 0; i < sizeof(cac_eisa_type) / sizeof(cac_eisa_type[0]); i++)
i                 139 dev/eisa/cac_eisa.c 		if (strcmp(ea->ea_idstring, cac_eisa_type[i].ct_prodstr) == 0)
i                 158 dev/eisa/cac_eisa.c 	int irq, i;
i                 214 dev/eisa/cac_eisa.c 	for (i = 0; i < sizeof(cac_eisa_type) / sizeof(cac_eisa_type[0]); i++)
i                 215 dev/eisa/cac_eisa.c 		if (strcmp(ea->ea_idstring, cac_eisa_type[i].ct_prodstr) == 0)
i                 218 dev/eisa/cac_eisa.c 	printf(" %s: Compaq %s\n", intrstr, cac_eisa_type[i].ct_typestr);
i                 219 dev/eisa/cac_eisa.c 	sc->sc_cl = cac_eisa_type[i].ct_linkage;
i                 135 dev/eisa/dpt_eisa.c 	int i;
i                 139 dev/eisa/dpt_eisa.c 	for (i = 0; dpt_eisa_boards[i] != NULL; i++)
i                 140 dev/eisa/dpt_eisa.c 		if (strcmp(ea->ea_idstring, dpt_eisa_boards[i]) == 0)
i                 143 dev/eisa/dpt_eisa.c 	return (dpt_eisa_boards[i] != NULL);
i                 141 dev/eisa/eisa.c 		int i;
i                 162 dev/eisa/eisa.c 		for (i = 0; i < EISA_NVIDREGS; i++) {
i                 165 dev/eisa/eisa.c 			    EISA_SLOTOFF_PRIMING, EISA_PRIMING_VID(i));
i                 167 dev/eisa/eisa.c 			ea.ea_vid[i] = bus_space_read_1(iot, slotioh,
i                 168 dev/eisa/eisa.c 			    EISA_SLOTOFF_VID + i);
i                 192 dev/eisa/eisa.c 		for (i = 0; i < EISA_NPIDREGS; i++) {
i                 195 dev/eisa/eisa.c 			    EISA_SLOTOFF_PRIMING, EISA_PRIMING_PID(i));
i                 197 dev/eisa/eisa.c 			ea.ea_pid[i] = bus_space_read_1(iot, slotioh,
i                 198 dev/eisa/eisa.c 			    EISA_SLOTOFF_PID + i);
i                 106 dev/flash.c    	int i;
i                 127 dev/flash.c    	for (i = 0; i < FLASH_NVENDORS; i++) {
i                 128 dev/flash.c    		if (flashvendors[i].vendor == vendor) {
i                 129 dev/flash.c    			printf(": %s", flashvendors[i].name);
i                 133 dev/flash.c    	if (i == FLASH_NVENDORS)
i                 135 dev/flash.c    	for (i = 0; i < FLASH_NDEVS; i++) {
i                 136 dev/flash.c    		if (flashdevs[i].id == id) {
i                 137 dev/flash.c    			printf(" %s\n", flashdevs[i].longname);
i                 141 dev/flash.c    	if (i == FLASH_NDEVS) {
i                 147 dev/flash.c    	sc->sc_flashdev = &flashdevs[i];
i                 200 dev/flash.c    	int i;
i                 202 dev/flash.c    	for (i = 0; i < sc->sc_flashdev->pagesize; i++)
i                 203 dev/flash.c    		data[i] = flash_reg8_read(sc, FLASH_REG_DATA);
i                 206 dev/flash.c    		for (i = 0; i < sc->sc_flashdev->oobsize; i++)
i                 207 dev/flash.c    			oob[i] = flash_reg8_read(sc, FLASH_REG_DATA);
i                 219 dev/flash.c    	int i;
i                 221 dev/flash.c    	for (i = 0; i < sc->sc_flashdev->pagesize; i++)
i                 222 dev/flash.c    		flash_reg8_write(sc, FLASH_REG_DATA, data[i]);
i                 225 dev/flash.c    		for (i = 0; i < sc->sc_flashdev->oobsize; i++)
i                 226 dev/flash.c    			flash_reg8_write(sc, FLASH_REG_DATA, oob[i]);
i                 455 dev/flash.c    	int i;
i                 507 dev/flash.c    	for (i = 0; i < sc->sc_flashdev->oobsize; i++)
i                 508 dev/flash.c    		p[i] = flash_reg8_read(sc, FLASH_REG_DATA);
i                1074 dev/flash.c    	int i;
i                1075 dev/flash.c    	for (i = 0; i < 512; i++) {
i                1076 dev/flash.c    		if ((i % 16) == 0)
i                1077 dev/flash.c    			printf("%04x: ", i);
i                1078 dev/flash.c    		if ((i % 16) == 8)
i                1080 dev/flash.c    		printf(" %02x", buf[i]);
i                1081 dev/flash.c    		if ((i % 16) == 15)
i                1084 dev/flash.c    	if ((i % 16) != 0)
i                 129 dev/gpio/gpio.c 	int i;
i                 132 dev/gpio/gpio.c 	for (i = 0; i < 32; i++)
i                 133 dev/gpio/gpio.c 		if (ga->ga_mask & (1 << i))
i                 134 dev/gpio/gpio.c 			printf(" %d", ga->ga_offset + i);
i                 154 dev/gpio/gpio.c 	int npins, pin, i;
i                 160 dev/gpio/gpio.c 	for (npins = 0, i = 0; i < 32; i++)
i                 161 dev/gpio/gpio.c 		if (mask & (1 << i)) {
i                 162 dev/gpio/gpio.c 			pin = offset + i;
i                 179 dev/gpio/gpio.c 	int pin, i;
i                 181 dev/gpio/gpio.c 	for (i = 0; i < map->pm_size; i++) {
i                 182 dev/gpio/gpio.c 		pin = map->pm_map[i];
i                 222 dev/gpio/gpio.c 	int npins, i;
i                 224 dev/gpio/gpio.c 	for (npins = 0, i = 0; i < 32; i++)
i                 225 dev/gpio/gpio.c 		if (mask & (1 << i))
i                  76 dev/hil/hilid.c 	u_int i, len;
i                  92 dev/hil/hilid.c 		for (i = 0; i < sizeof(sc->sc_id); i++)
i                  93 dev/hil/hilid.c 			printf(" %02x", sc->sc_id[i]);
i                 389 dev/hil/hilkbd.c 	int i, s;
i                 413 dev/hil/hilkbd.c 		for (i = 1, buf++; i < buflen; i++) {
i                 446 dev/hil/hilkbd.c 		for (i = 1, buf++; i < buflen; i++) {
i                  85 dev/i2c/ad741x.c 	int nsens = 0, i;
i                 151 dev/i2c/ad741x.c 		for (i = 2; i < nsens; i++)
i                 152 dev/i2c/ad741x.c 			sensor_attach(&sc->sc_sensordev, &sc->sc_sensor[i]);
i                 163 dev/i2c/ad741x.c 	int i;
i                 197 dev/i2c/ad741x.c 	for (i = 0; i < 4; i++) {
i                 198 dev/i2c/ad741x.c 		reg = (reg & AD741X_CONFMASK) | (i << 5);
i                 207 dev/i2c/ad741x.c 		sc->sc_sensor[ADC_ADC0 + i].value =
i                  88 dev/i2c/adm1021.c 	int xeon = 0, i;
i                 159 dev/i2c/adm1021.c 	for (i = 0; i < (sc->sc_noexternal ? 1 : ADMTEMP_NUM_SENSORS); i++)
i                 160 dev/i2c/adm1021.c 		sensor_attach(&sc->sc_sensordev, &sc->sc_sensor[i]);
i                  98 dev/i2c/adm1024.c 	int i;
i                 179 dev/i2c/adm1024.c 	for (i = 0; i < ADMLC_NUM_SENSORS; i++)
i                 180 dev/i2c/adm1024.c 		sensor_attach(&sc->sc_sensordev, &sc->sc_sensor[i]);
i                 100 dev/i2c/adm1025.c 	int i;
i                 187 dev/i2c/adm1025.c 	for (i = 0; i < sc->sc_nsensors; i++)
i                 188 dev/i2c/adm1025.c 		sensor_attach(&sc->sc_sensordev, &sc->sc_sensor[i]);
i                 114 dev/i2c/adm1026.c 	int i;
i                 221 dev/i2c/adm1026.c 	for (i = 0; i < ADMCTS_NUM_SENSORS; i++)
i                 222 dev/i2c/adm1026.c 		sensor_attach(&sc->sc_sensordev, &sc->sc_sensor[i]);
i                  77 dev/i2c/adm1030.c 	int i;
i                 110 dev/i2c/adm1030.c 	for (i = 0; i < ADMTMP_NUM_SENSORS; i++)
i                 111 dev/i2c/adm1030.c 		sensor_attach(&sc->sc_sensordev, &sc->sc_sensor[i]);
i                  82 dev/i2c/adm1031.c 	int i;
i                 120 dev/i2c/adm1031.c 	for (i = 0; i < ADMTT_NUM_SENSORS; i++)
i                 121 dev/i2c/adm1031.c 		sensor_attach(&sc->sc_sensordev, &sc->sc_sensor[i]);
i                 130 dev/i2c/adt7460.c 	int i;
i                 132 dev/i2c/adt7460.c 	for (i = 0; i < sizeof(adt_chips) / sizeof(adt_chips[0]); i++)
i                 133 dev/i2c/adt7460.c 		if (strcmp(ia->ia_name, adt_chips[i].name) == 0)
i                 144 dev/i2c/adt7460.c 	int i;
i                 151 dev/i2c/adt7460.c 	for (i = 0; i < sizeof(adt_chips) / sizeof(adt_chips[0]); i++) {
i                 152 dev/i2c/adt7460.c 		if (strcmp(ia->ia_name, adt_chips[i].name) == 0) {
i                 153 dev/i2c/adt7460.c 			sc->chip = &adt_chips[i];
i                 239 dev/i2c/adt7460.c 	for (i = 0; i < ADT_NUM_SENSORS; i++) {
i                 240 dev/i2c/adt7460.c 		if (worklist[i].index >= 32768 &&
i                 241 dev/i2c/adt7460.c 		    sc->chip->ratio[worklist[i].index - 32768] == 0)
i                 243 dev/i2c/adt7460.c 		sc->sc_sensor[i].flags &= ~SENSOR_FINVALID;
i                 244 dev/i2c/adt7460.c 		sensor_attach(&sc->sc_sensordev, &sc->sc_sensor[i]);
i                 258 dev/i2c/adt7460.c 	int i, ratio;
i                 262 dev/i2c/adt7460.c 	for (i = 0; i < sizeof worklist / sizeof(worklist[0]); i++) {
i                 264 dev/i2c/adt7460.c 		if (worklist[i].index >= 32768) {
i                 265 dev/i2c/adt7460.c 			ratio = sc->chip->ratio[worklist[i].index - 32768];
i                 269 dev/i2c/adt7460.c 		cmd = worklist[i].cmd;
i                 272 dev/i2c/adt7460.c 			sc->sc_sensor[i].flags |= SENSOR_FINVALID;
i                 276 dev/i2c/adt7460.c 		sc->sc_sensor[i].flags &= ~SENSOR_FINVALID;
i                 277 dev/i2c/adt7460.c 		switch (worklist[i].sensor) {
i                 286 dev/i2c/adt7460.c 			sc->sc_sensor[i].value = ratio * 1000 * (u_int)data / 192;
i                 292 dev/i2c/adt7460.c 				sc->sc_sensor[i].flags |= SENSOR_FINVALID;
i                 294 dev/i2c/adt7460.c 				sc->sc_sensor[i].value =
i                 301 dev/i2c/adt7460.c 			cmd = worklist[i].cmd + 1; /* TACHnH follows TACHnL */
i                 304 dev/i2c/adt7460.c 				sc->sc_sensor[i].flags |= SENSOR_FINVALID;
i                 310 dev/i2c/adt7460.c 				sc->sc_sensor[i].flags |= SENSOR_FINVALID;
i                 312 dev/i2c/adt7460.c 				sc->sc_sensor[i].value = (90000 * 60) / fan;
i                 315 dev/i2c/adt7460.c 			sc->sc_sensor[i].flags |= SENSOR_FINVALID;
i                 171 dev/i2c/asb100.c 	int i;
i                 266 dev/i2c/asb100.c 	for (i = 0; i < ASB100_NUM_SENSORS; i++)
i                 267 dev/i2c/asb100.c 		sensor_attach(&sc->sc_sensordev, &sc->sc_sensor[i]);
i                  77 dev/i2c/ds1631.c 	int i;
i                 128 dev/i2c/ds1631.c 	for (i = 0; i < MAXDS_NUM_SENSORS; i++)
i                 129 dev/i2c/ds1631.c 		sensor_attach(&sc->sc_sensordev, &sc->sc_sensor[i]);
i                  85 dev/i2c/fcu.c  	int i;
i                  93 dev/i2c/fcu.c  	for (i = 0; i < FCU_FANS; i++)
i                  94 dev/i2c/fcu.c  		sc->sc_sensor[i].type = SENSOR_FANRPM;
i                  95 dev/i2c/fcu.c  	for (i = 0; i < FCU_PWMS; i++) {
i                  96 dev/i2c/fcu.c  		sc->sc_sensor[FCU_PWM1 + i].type = SENSOR_PERCENT;
i                  97 dev/i2c/fcu.c  		strlcpy(sc->sc_sensor[FCU_PWM1 + i].desc, "PWM",
i                  98 dev/i2c/fcu.c  		    sizeof(sc->sc_sensor[FCU_PWM1 + i].desc));
i                 106 dev/i2c/fcu.c  	for (i = 0; i < FCU_NUM_SENSORS; i++)
i                 107 dev/i2c/fcu.c  		sensor_attach(&sc->sc_sensordev, &sc->sc_sensor[i]);
i                 118 dev/i2c/fcu.c  	int i;
i                 132 dev/i2c/fcu.c  	for (i = 0; i < FCU_FANS; i++) {
i                 133 dev/i2c/fcu.c  		if (fail & (1 << (i + 1)))
i                 134 dev/i2c/fcu.c  			sc->sc_sensor[i].flags |= SENSOR_FINVALID;
i                 136 dev/i2c/fcu.c  			sc->sc_sensor[i].flags &= ~SENSOR_FINVALID;
i                 149 dev/i2c/fcu.c  	for (i = 0; i < FCU_PWMS; i++) {
i                 150 dev/i2c/fcu.c  		if (fail & (1 << (i + 1)))
i                 151 dev/i2c/fcu.c  			sc->sc_sensor[FCU_PWMS + i].flags |= SENSOR_FINVALID;
i                 153 dev/i2c/fcu.c  			sc->sc_sensor[FCU_PWMS + i].flags &= ~SENSOR_FINVALID;
i                 156 dev/i2c/fcu.c  	for (i = 0; i < FCU_FANS; i++) {
i                 157 dev/i2c/fcu.c  		cmd = FCU_FANREAD(i + 1);
i                 160 dev/i2c/fcu.c  			sc->sc_sensor[FCU_RPM1 + i].flags |= SENSOR_FINVALID;
i                 163 dev/i2c/fcu.c  		sc->sc_sensor[FCU_RPM1 + i].value = (fan[0] << 5) | (fan[1] >> 3);
i                 166 dev/i2c/fcu.c  	for (i = 0; i < FCU_PWMS; i++) {
i                 167 dev/i2c/fcu.c  		cmd = FCU_PWMREAD(i + 1);
i                 170 dev/i2c/fcu.c  			sc->sc_sensor[FCU_PWM1 + i].flags |= SENSOR_FINVALID;
i                 173 dev/i2c/fcu.c  		sc->sc_sensor[FCU_PWM1 + i].value = (fan[0] * 100 * 1000) / 255;
i                 116 dev/i2c/fintek.c 	int i;
i                 163 dev/i2c/fintek.c 	for (i = 0; i < F_NUM_SENSORS; i++) {
i                 164 dev/i2c/fintek.c 		sc->sc_sensor[i].flags &= ~SENSOR_FINVALID;
i                 165 dev/i2c/fintek.c 		sensor_attach(&sc->sc_sensordev, &sc->sc_sensor[i]);
i                 199 dev/i2c/fintek.c 	int i;
i                 203 dev/i2c/fintek.c 	for (i = 0; i < FINTEK_WORKLIST_SZ; i++){
i                 204 dev/i2c/fintek.c 		cmd = fintek_worklist[i].cmd;
i                 206 dev/i2c/fintek.c 			sc->sc_sensor[i].flags |= SENSOR_FINVALID;
i                 209 dev/i2c/fintek.c 		sc->sc_sensor[i].flags &= ~SENSOR_FINVALID;
i                 210 dev/i2c/fintek.c 		switch (fintek_worklist[i].sensor) {
i                 212 dev/i2c/fintek.c 			sc->sc_sensor[i].value = data * 16000;
i                 219 dev/i2c/fintek.c 			sc->sc_sensor[i].value = data * 8000;
i                 224 dev/i2c/fintek.c 			sc->sc_sensor[i].value = 273150000 + data * 1000000;
i                 230 dev/i2c/fintek.c 			cmd = fintek_worklist[i].cmd + 1;
i                 232 dev/i2c/fintek.c 				sc->sc_sensor[i].flags |= SENSOR_FINVALID;
i                 237 dev/i2c/fintek.c 				sc->sc_sensor[i].value = 0;
i                 239 dev/i2c/fintek.c 				sc->sc_sensor[i].value = 1500000 /
i                 243 dev/i2c/fintek.c 			sc->sc_sensor[i].flags |= SENSOR_FINVALID;
i                  96 dev/i2c/gl518sm.c 	int i;
i                 163 dev/i2c/gl518sm.c 	for (i = 0; i < GLENV_NUM_SENSORS; i++)
i                 164 dev/i2c/gl518sm.c 		sensor_attach(&sc->sc_sensordev, &sc->sc_sensor[i]);
i                 108 dev/i2c/i2c_bitbang.c 	int i;
i                 115 dev/i2c/i2c_bitbang.c 	for (i = 0; i < 8; i++) {
i                 162 dev/i2c/i2c_scan.c 	int i, echocount, ffffcount, score;
i                 203 dev/i2c/i2c_scan.c 	for (i = 6, echocount = 2, ffffcount = 0; i <= 7; i++) {
i                 204 dev/i2c/i2c_scan.c 		if ((iicprobew(LM75TEMP) & mask) != (iicprobew(i) & mask) ||
i                 205 dev/i2c/i2c_scan.c 		    (iicprobew(LM75Thyst) & mask) != (iicprobew(i) & mask) ||
i                 206 dev/i2c/i2c_scan.c 		    (iicprobew(LM75Tos) & mask) != (iicprobew(i) & mask))
i                 208 dev/i2c/i2c_scan.c 		if (iicprobew(i) == 0xffff)
i                 225 dev/i2c/i2c_scan.c 	for (i = 4, echocount = 2, ffffcount = 0; i <= 5; i++) {
i                 226 dev/i2c/i2c_scan.c 		if ((iicprobew(LM75TEMP) & mask) != (iicprobew(i) & mask) ||
i                 227 dev/i2c/i2c_scan.c 		    (iicprobew(LM75Thyst) & mask) != (iicprobew(i) & mask) ||
i                 228 dev/i2c/i2c_scan.c 		    (iicprobew(LM75Tos) & mask) != (iicprobew(i) & mask))
i                 230 dev/i2c/i2c_scan.c 		if (iicprobew(i) == 0xffff)
i                 257 dev/i2c/i2c_scan.c 	for (i = 0x08; i <= 0xf8; i += 8) {
i                 258 dev/i2c/i2c_scan.c 		if (conf != iicprobenc(LM75CONF + i) ||
i                 259 dev/i2c/i2c_scan.c 		    thyst != (iicprobew(LM75Thyst + i) & mask) ||
i                 260 dev/i2c/i2c_scan.c 		    tos != (iicprobew(LM75Tos + i) & mask))
i                 269 dev/i2c/i2c_scan.c 			if (tos != (iicprobew(0x06 + i) & mask) ||
i                 270 dev/i2c/i2c_scan.c 			    tos != (iicprobew(0x07 + i) & mask))
i                 273 dev/i2c/i2c_scan.c 			if (iicprobew(0x06 + i) != 0xffff ||
i                 274 dev/i2c/i2c_scan.c 			    iicprobew(0x07 + i) != 0xffff)
i                 285 dev/i2c/i2c_scan.c 			if (tos != (iicprobew(LM77Tlow + i) & mask) ||
i                 286 dev/i2c/i2c_scan.c 			    tos != (iicprobew(LM77Thigh + i) & mask))
i                 289 dev/i2c/i2c_scan.c 			if (iicprobew(LM77Tlow + i) != 0xffff ||
i                 290 dev/i2c/i2c_scan.c 			    iicprobew(LM77Thigh + i) != 0xffff)
i                 293 dev/i2c/i2c_scan.c 			if (tlow != (iicprobew(LM77Tlow + i) & mask) ||
i                 294 dev/i2c/i2c_scan.c 			    thigh != (iicprobew(LM77Thigh + i) & mask))
i                 370 dev/i2c/i2c_scan.c 	int i;
i                 372 dev/i2c/i2c_scan.c 	for (i = 0; i < sizeof(ignore_addrs); i++)
i                 373 dev/i2c/i2c_scan.c 		if (ignore_addrs[i] == 0) {
i                 374 dev/i2c/i2c_scan.c 			ignore_addrs[i] = addr;
i                 385 dev/i2c/i2c_scan.c 	int i, cnt = 0;
i                 396 dev/i2c/i2c_scan.c 	for (i = 1; i <= 0xff; i++) {
i                 397 dev/i2c/i2c_scan.c 		val2 = iicprobe(i);
i                 403 dev/i2c/i2c_scan.c 	for (val = max = i = 0; i <= 0xff; i++)
i                 404 dev/i2c/i2c_scan.c 		if (max < iicvalcnt[i]) {
i                 405 dev/i2c/i2c_scan.c 			max = iicvalcnt[i];
i                 406 dev/i2c/i2c_scan.c 			val = i;
i                 411 dev/i2c/i2c_scan.c 		for (i = 0; i <= 0xff; i++) {
i                 412 dev/i2c/i2c_scan.c 			if (iicprobe(i) != val)
i                 413 dev/i2c/i2c_scan.c 				printf(" %02x=%02x", i, iicprobe(i));
i                 427 dev/i2c/i2c_scan.c 	int i;
i                 429 dev/i2c/i2c_scan.c 	for (i = 0; i < sizeof(ignore_addrs); i++)
i                 430 dev/i2c/i2c_scan.c 		if (ignore_addrs[i] == addr)
i                 859 dev/i2c/i2c_scan.c 	int i;
i                 862 dev/i2c/i2c_scan.c 	for (i = 0; i < sizeof(probe_addrs)/sizeof(probe_addrs[0]); i++) {
i                 863 dev/i2c/i2c_scan.c 		for (addr = probe_addrs[i].start; addr <= probe_addrs[i].end;
i                  51 dev/i2c/lm75.c #define  DS1755_CONFIG_RESOLUTION(i)	(9 + (((i) >> 5) & 3))
i                 103 dev/i2c/lm87.c 	int i;
i                 231 dev/i2c/lm87.c 	for (i = 0; i < LMENV_NUM_SENSORS; i++)
i                 232 dev/i2c/lm87.c 		sensor_attach(&sc->sc_sensordev, &sc->sc_sensor[i]);
i                 100 dev/i2c/maxim6690.c 	int i;
i                 140 dev/i2c/maxim6690.c 	for (i = 0; i < MAXTMP_NUM_SENSORS; i++)
i                 141 dev/i2c/maxim6690.c 		sensor_attach(&sc->sc_sensordev, &sc->sc_sensor[i]);
i                  93 dev/i2c/pca9532.c 	int i;
i                 101 dev/i2c/pca9532.c 	for (i = 0; i < PCALED_GPIO_NPINS; i++) {
i                 102 dev/i2c/pca9532.c 		sc->sc_gpio_pin[i].pin_num = i;
i                 103 dev/i2c/pca9532.c 		sc->sc_gpio_pin[i].pin_caps = GPIO_PIN_INOUT;
i                 104 dev/i2c/pca9532.c 		if (i < 8)
i                 111 dev/i2c/pca9532.c 		sc->sc_gpio_pin[i].pin_state = (data >> (i & 3)) & 1;
i                  90 dev/i2c/pca9554.c 	int outputs = 0, i;
i                 120 dev/i2c/pca9554.c 	for (i = 0; i < PCAGPIO_NPINS; i++) {
i                 121 dev/i2c/pca9554.c 		sc->sc_sensor[i].type = SENSOR_INDICATOR;
i                 122 dev/i2c/pca9554.c 		if ((sc->sc_control & (1 << i)) == 0) {
i                 123 dev/i2c/pca9554.c 			strlcpy(sc->sc_sensor[i].desc, "out",
i                 124 dev/i2c/pca9554.c 			    sizeof(sc->sc_sensor[i].desc));
i                 127 dev/i2c/pca9554.c 			strlcpy(sc->sc_sensor[i].desc, "in",
i                 128 dev/i2c/pca9554.c 			    sizeof(sc->sc_sensor[i].desc));
i                 138 dev/i2c/pca9554.c 	for (i = 0; i < PCAGPIO_NPINS; i++)
i                 139 dev/i2c/pca9554.c 		sensor_attach(&sc->sc_sensordev, &sc->sc_sensor[i]);
i                 150 dev/i2c/pca9554.c 	for (i = 0; i < PCAGPIO_NPINS; i++) {
i                 151 dev/i2c/pca9554.c 		sc->sc_gpio_pins[i].pin_num = i;
i                 152 dev/i2c/pca9554.c 		sc->sc_gpio_pins[i].pin_caps = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT;
i                 154 dev/i2c/pca9554.c 		if ((sc->sc_control & (1 << i)) == 0) {
i                 155 dev/i2c/pca9554.c 			sc->sc_gpio_pins[i].pin_flags = GPIO_PIN_OUTPUT;
i                 156 dev/i2c/pca9554.c 			sc->sc_gpio_pins[i].pin_state =
i                 157 dev/i2c/pca9554.c 			    data & (1 << i) ? GPIO_PIN_HIGH : GPIO_PIN_LOW;
i                 181 dev/i2c/pca9554.c 	int i;
i                 195 dev/i2c/pca9554.c 	for (i = 0; i < PCAGPIO_NPINS; i++) {
i                 196 dev/i2c/pca9554.c 		bit = 1 << i;
i                 198 dev/i2c/pca9554.c 			sc->sc_sensor[i].value = (in & bit) ? 1 : 0;
i                 200 dev/i2c/pca9554.c 			sc->sc_sensor[i].value = (out & bit) ? 1 : 0;
i                 165 dev/i2c/w83l784r.c 	int i;
i                 233 dev/i2c/w83l784r.c 	for (i = 0; i < sc->sc_numsensors; ++i)
i                 234 dev/i2c/w83l784r.c 		sensor_attach(&sc->sc_sensordev, &sc->sc_sensors[i]);
i                 241 dev/i2c/w83l784r.c 	int i;
i                 246 dev/i2c/w83l784r.c 	for (i = 0; sensors[i].desc; i++) {
i                 247 dev/i2c/w83l784r.c 		sc->sc_sensors[i].type = sensors[i].type;
i                 248 dev/i2c/w83l784r.c 		strlcpy(sc->sc_sensors[i].desc, sensors[i].desc,
i                 249 dev/i2c/w83l784r.c 		    sizeof(sc->sc_sensors[i].desc));
i                 259 dev/i2c/w83l784r.c 	int i;
i                 263 dev/i2c/w83l784r.c 	for (i = 0; i < sc->sc_numsensors; i++)
i                 264 dev/i2c/w83l784r.c 		sc->sc_wbenv_sensors[i].refresh(sc, i);
i                  67 dev/i2o/iop.c  	int i;					\
i                  68 dev/i2o/iop.c  	for (i = (ms) * 10; i; i--) {		\
i                 272 dev/i2o/iop.c  	int rv, i, nsegs;
i                 367 dev/i2o/iop.c  	for (i = 0; i < sc->sc_maxib; i++, im++) {
i                 378 dev/i2o/iop.c  		im->im_tctx = i;
i                 434 dev/i2o/iop.c  	int rv, i, niop;
i                 450 dev/i2o/iop.c  		for (i = 0, niop = 0; i < iop_cd.cd_ndevs; i++) {
i                 451 dev/i2o/iop.c  			iop = (struct iop_softc *)device_lookup(&iop_cd, i);
i                 467 dev/i2o/iop.c  		i = sizeof(struct i2o_systab_entry) * (niop - 1) +
i                 469 dev/i2o/iop.c  		iop_systab_size = i;
i                 470 dev/i2o/iop.c  		iop_systab = malloc(i, M_DEVBUF, M_NOWAIT);
i                 474 dev/i2o/iop.c  		bzero(iop_systab, i);
i                 478 dev/i2o/iop.c  		for (i = 0, ste = iop_systab->entry; i < iop_cd.cd_ndevs; i++)
i                 480 dev/i2o/iop.c  			iop = (struct iop_softc *)device_lookup(&iop_cd, i);
i                 623 dev/i2o/iop.c  	int rv, tid, i;
i                 638 dev/i2o/iop.c  		for (i = 0; i < sc->sc_nlctent; i++, le++) {
i                 714 dev/i2o/iop.c  		for (i = 0; i < sc->sc_nlctent; i++)
i                 715 dev/i2o/iop.c  			if (ii->ii_tid == sc->sc_tidmap[i].it_tid)
i                 717 dev/i2o/iop.c  		if (i == sc->sc_nlctent ||
i                 718 dev/i2o/iop.c  		    (sc->sc_tidmap[i].it_flags & IT_CONFIGURED) == 0)
i                 750 dev/i2o/iop.c  	int i, j, nent;
i                 754 dev/i2o/iop.c  	for (i = 0, le = sc->sc_lct->entry; i < nent; i++, le++) {
i                 755 dev/i2o/iop.c  		sc->sc_tidmap[i].it_tid =
i                 764 dev/i2o/iop.c  		ia.ia_tid = sc->sc_tidmap[i].it_tid;
i                 780 dev/i2o/iop.c  				sc->sc_tidmap[i].it_flags |= IT_CONFIGURED;
i                 781 dev/i2o/iop.c  				strlcpy(sc->sc_tidmap[i].it_dvname,
i                 783 dev/i2o/iop.c  				    sizeof sc->sc_tidmap[i].it_dvname);
i                 791 dev/i2o/iop.c   			sc->sc_tidmap[i].it_flags |= IT_CONFIGURED;
i                 792 dev/i2o/iop.c  			strlcpy(sc->sc_tidmap[i].it_dvname, dv->dv_xname,
i                 793 dev/i2o/iop.c  			    sizeof sc->sc_tidmap[i].it_dvname);
i                 815 dev/i2o/iop.c  	int i;
i                 817 dev/i2o/iop.c  	for (i = 0; i < sizeof(iop_class) / sizeof(iop_class[0]); i++)
i                 818 dev/i2o/iop.c  		if (class == iop_class[i].ic_class)
i                 821 dev/i2o/iop.c  	if (i == sizeof(iop_class) / sizeof(iop_class[0]))
i                 824 dev/i2o/iop.c  		strlcpy(devinfo, iop_class[i].ic_caption, di_len);
i                 879 dev/i2o/iop.c  	int i;
i                 883 dev/i2o/iop.c  	for (i = 0; i < iop_cd.cd_ndevs; i++) {
i                 884 dev/i2o/iop.c  		if (!(sc = (struct iop_softc *)device_lookup(&iop_cd, i)))
i                 958 dev/i2o/iop.c  	int i, rseg, rv;
i                1034 dev/i2o/iop.c  	for (i = sc->sc_maxob, addr = sc->sc_rep_phys; i != 0; i--) {
i                1640 dev/i2o/iop.c  	int s, i;
i                1663 dev/i2o/iop.c  	i = 0;
i                1665 dev/i2o/iop.c  		im->im_xfer[i++].ix_size = 0;
i                1666 dev/i2o/iop.c  	} while (i < IOP_MAX_MSG_XFERS);
i                1700 dev/i2o/iop.c  	u_int rv, i, nsegs, flg, off, xn;
i                1757 dev/i2o/iop.c  	for (i = nsegs, ds = dm->dm_segs; i > 1; i--, p += 2, ds++) {
i                1802 dev/i2o/iop.c  	u_int rv, i, nsegs, off, slen, tlen, flg;
i                1834 dev/i2o/iop.c  		for (i = dm->dm_nsegs, ds = dm->dm_segs; i > 0; i--, ds++) {
i                1861 dev/i2o/iop.c  		for (i = nsegs, ds = dm->dm_segs; i > 1; i--, p += 2, ds++) {
i                1894 dev/i2o/iop.c  	int i;
i                1901 dev/i2o/iop.c  	for (ix = im->im_xfer, i = 0;;) {
i                1908 dev/i2o/iop.c  		if (i != 0)
i                1912 dev/i2o/iop.c  		if (++i >= IOP_MAX_MSG_XFERS)
i                1933 dev/i2o/iop.c  		int i;
i                1936 dev/i2o/iop.c  		for (i = 0; i < size / sizeof *mb; i++)
i                1937 dev/i2o/iop.c  			printf("%4d %08x\n", i, mb[i]);
i                2173 dev/i2o/iop.c  	int hc, lc, i, nit;
i                2178 dev/i2o/iop.c  	i = 0;
i                2192 dev/i2o/iop.c  				dst[i++] = ' ';
i                2195 dev/i2o/iop.c  			dst[i++] = *src;
i                2196 dev/i2o/iop.c  			lc = i;
i                2344 dev/i2o/iop.c  	int rv, i;
i                2357 dev/i2o/iop.c  		i = sizeof(struct i2o_status);
i                2358 dev/i2o/iop.c  		if (i > iov->iov_len)
i                2359 dev/i2o/iop.c  			i = iov->iov_len;
i                2361 dev/i2o/iop.c  			iov->iov_len = i;
i                2363 dev/i2o/iop.c  			rv = copyout(&sc->sc_status, iov->iov_base, i);
i                2384 dev/i2o/iop.c  		i = letoh16(sc->sc_lct->tablesize) << 2;
i                2385 dev/i2o/iop.c  		if (i > iov->iov_len)
i                2386 dev/i2o/iop.c  			i = iov->iov_len;
i                2388 dev/i2o/iop.c  			iov->iov_len = i;
i                2389 dev/i2o/iop.c  		rv = copyout(sc->sc_lct, iov->iov_base, i);
i                2398 dev/i2o/iop.c  		i = sizeof(struct iop_tidmap) * sc->sc_nlctent;
i                2399 dev/i2o/iop.c  		if (i > iov->iov_len)
i                2400 dev/i2o/iop.c  			i = iov->iov_len;
i                2402 dev/i2o/iop.c  			iov->iov_len = i;
i                2403 dev/i2o/iop.c  		rv = copyout(sc->sc_tidmap, iov->iov_base, i);
i                2417 dev/i2o/iop.c  	int rv, i, mapped;
i                2432 dev/i2o/iop.c  	for (i = 0; i < pt->pt_nbufs; i++)
i                2433 dev/i2o/iop.c  		if (pt->pt_bufs[i].ptb_datalen > IOP_MAX_XFER) {
i                2450 dev/i2o/iop.c  	for (i = 0; i < pt->pt_nbufs; i++) {
i                2451 dev/i2o/iop.c  		ptb = &pt->pt_bufs[i];
i                2452 dev/i2o/iop.c  		buf = sc->sc_ptb + i * IOP_MAX_XFER;
i                2475 dev/i2o/iop.c  	i = (letoh32(im->im_rb->msgflags) >> 14) & ~3;
i                2476 dev/i2o/iop.c  	if (i > IOP_MAX_MSG_SIZE)
i                2477 dev/i2o/iop.c  		i = IOP_MAX_MSG_SIZE;
i                2478 dev/i2o/iop.c  	if (i > pt->pt_replylen)
i                2479 dev/i2o/iop.c  		i = pt->pt_replylen;
i                2480 dev/i2o/iop.c  	if ((rv = copyout(im->im_rb, pt->pt_reply, i)) != 0)
i                2486 dev/i2o/iop.c  	for (i = 0; i < pt->pt_nbufs; i++) {
i                2487 dev/i2o/iop.c  		ptb = &pt->pt_bufs[i];
i                2490 dev/i2o/iop.c  		buf = sc->sc_ptb + i * IOP_MAX_XFER;
i                 196 dev/i2o/ioprbs.c 	int i;
i                 203 dev/i2o/ioprbs.c 	for (i = 0; i < IOPRBS_MAX_CCBS; i++)
i                 204 dev/i2o/ioprbs.c 		TAILQ_INSERT_TAIL(&sc->sc_free_ccb, &sc->sc_ccbs[i],
i                 246 dev/i2o/iopsp.c 	u_int tid, nent, i, targ, lun, size, s, rv, bptid;
i                 268 dev/i2o/iopsp.c 	for (i = 0; i < sc->sc_link.adapter_buswidth; i++)
i                 269 dev/i2o/iopsp.c 		sc->sc_targetmap[i].it_flags &= ~IT_PRESENT;
i                 286 dev/i2o/iopsp.c 	for (i = 0, le = iop->sc_lct->entry; i < nent; i++, le++) {
i                 355 dev/i2o/iopsp.c 	for (i = 0; i < sc->sc_link.adapter_buswidth; i++)
i                 356 dev/i2o/iopsp.c 		if ((sc->sc_targetmap[i].it_flags & IT_PRESENT) == 0)
i                 357 dev/i2o/iopsp.c 			sc->sc_targetmap[i].it_width = 0;
i                 322 dev/ic/aac.c   	int count = 0, i = 0;
i                 337 dev/ic/aac.c   		mi->MntCount = i;
i                 341 dev/ic/aac.c   			       sc->aac_dev.dv_xname, i);
i                 362 dev/ic/aac.c   			     sc->aac_dev.dv_xname, i,
i                 369 dev/ic/aac.c   			sc->aac_hdr[i].hd_present = 1;
i                 370 dev/ic/aac.c   			sc->aac_hdr[i].hd_size = mir->MntTable[0].Capacity;
i                 375 dev/ic/aac.c   			sc->aac_hdr[i].hd_size &= ~AAC_SECS32;
i                 376 dev/ic/aac.c   			aac_eval_mapping(sc->aac_hdr[i].hd_size, &drv_cyls,
i                 378 dev/ic/aac.c   			sc->aac_hdr[i].hd_heads = drv_hds;
i                 379 dev/ic/aac.c   			sc->aac_hdr[i].hd_secs = drv_secs;
i                 381 dev/ic/aac.c   			sc->aac_hdr[i].hd_size = drv_cyls * drv_hds * drv_secs;
i                 383 dev/ic/aac.c   			sc->aac_hdr[i].hd_devtype = mir->MntTable[0].VolType;
i                 389 dev/ic/aac.c   		i++;
i                 390 dev/ic/aac.c   	} while ((i < count) && (i < AAC_MAX_CONTAINERS));
i                1205 dev/ic/aac.c   	int i, error;
i                1247 dev/ic/aac.c   	for (i = 0; i < AAC_FIB_COUNT; i++) {
i                1251 dev/ic/aac.c   		cm->cm_fib = fm->aac_fibs + i;
i                1253 dev/ic/aac.c   			(i * sizeof(struct aac_fib));
i                1264 dev/ic/aac.c   	if (i > 0) {
i                1294 dev/ic/aac.c   	int i;
i                1304 dev/ic/aac.c   		for (i = 0; i < AAC_FIB_COUNT && sc->total_fibs--; i++) {
i                1305 dev/ic/aac.c   			cm = fm->aac_commands + i;
i                1328 dev/ic/aac.c   	int i;
i                1335 dev/ic/aac.c   			for (i = 0; i < nseg; i++) {
i                1336 dev/ic/aac.c   				sg->SgEntry[i].SgAddress = segs[i].ds_addr;
i                1337 dev/ic/aac.c   				sg->SgEntry[i].SgByteCount = segs[i].ds_len;
i                1345 dev/ic/aac.c   			for (i = 0; i < nseg; i++) {
i                1346 dev/ic/aac.c   				sg->SgEntry64[i].SgAddress = segs[i].ds_addr;
i                1347 dev/ic/aac.c   				sg->SgEntry64[i].SgByteCount = segs[i].ds_len;
i                1480 dev/ic/aac.c   	int i, error;
i                1490 dev/ic/aac.c   	for (i = 0; i < AAC_BOOT_TIMEOUT * 1000; i++) {
i                1506 dev/ic/aac.c   	if (i == AAC_BOOT_TIMEOUT * 1000) {
i                1728 dev/ic/aac.c   	int i;
i                1754 dev/ic/aac.c   	for (i = 0; i < AAC_IMMEDIATE_TIMEOUT * 1000; i++) {
i                1766 dev/ic/aac.c   	if (i == AAC_IMMEDIATE_TIMEOUT * 1000) {
i                2757 dev/ic/aac.c   	int i;
i                2759 dev/ic/aac.c   	for (i = 0; table[i].string != NULL; i++)
i                2760 dev/ic/aac.c   		if (table[i].code == code)
i                2761 dev/ic/aac.c   			return(table[i].string);
i                2762 dev/ic/aac.c   	return(table[i + 1].string);
i                2808 dev/ic/aac.c   		int i;
i                2823 dev/ic/aac.c   			for (i = 0; i < sg->SgCount; i++)
i                2825 dev/ic/aac.c   				       sg->SgEntry[i].SgAddress,
i                2826 dev/ic/aac.c   				       sg->SgEntry[i].SgByteCount);
i                 712 dev/ic/ac97.c  	int error, i;
i                 778 dev/ic/ac97.c  		for (i = 0; i < 10; i++) {
i                 779 dev/ic/ac97.c  			if (as->caps & (1 << i))
i                 780 dev/ic/ac97.c  				printf("%s, ", ac97feature[i]);
i                1109 dev/ic/ac97.c  	int i;
i                1116 dev/ic/ac97.c  	for (i = 0; i < as->num_source_info; i++) {
i                1117 dev/ic/ac97.c  		if (as->source_info[i].reg == AC97_REG_SURROUND_VOLUME)
i                1118 dev/ic/ac97.c  			as->source_info[i].reg = AC97_REG_MASTER_VOLUME;
i                1119 dev/ic/ac97.c  		else if (as->source_info[i].reg == AC97_REG_MASTER_VOLUME) {
i                1120 dev/ic/ac97.c  			as->source_info[i].reg = AC97_REG_SURROUND_VOLUME;
i                1121 dev/ic/ac97.c  			if (as->source_info[i].type == AUDIO_MIXER_ENUM) {
i                1122 dev/ic/ac97.c  				as->source_info[i].mute = 1;
i                1123 dev/ic/ac97.c  				as->source_info[i].ofs = 7;
i                 224 dev/ic/acx.c   	int i, error;
i                 246 dev/ic/acx.c   	for (i = 0; i < EEINFO_RETRY_MAX; ++i) {
i                 257 dev/ic/acx.c   	if (i == EEINFO_RETRY_MAX)
i                 266 dev/ic/acx.c   	for (i = 0; i < 0x40; ++i) {
i                 269 dev/ic/acx.c   		error = acx_read_eeprom(sc, i, &val);
i                 270 dev/ic/acx.c   		if (i % 10 == 0)
i                 295 dev/ic/acx.c   	for (i = 1; i <= 14; ++i) {
i                 296 dev/ic/acx.c   		ic->ic_channels[i].ic_freq =
i                 297 dev/ic/acx.c   		    ieee80211_ieee2mhz(i, IEEE80211_CHAN_2GHZ);
i                 298 dev/ic/acx.c   		ic->ic_channels[i].ic_flags = sc->chip_chan_flags;
i                 315 dev/ic/acx.c   	for (i = 0; i < IEEE80211_ADDR_LEN; ++i) {
i                 316 dev/ic/acx.c   		error = acx_read_eeprom(sc, sc->chip_ee_eaddr_ofs - i,
i                 317 dev/ic/acx.c   		    &ic->ic_myaddr[i]);
i                 497 dev/ic/acx.c   	int i, error, got_wk = 0;
i                 499 dev/ic/acx.c   	for (i = 0; i < IEEE80211_WEP_NKID; ++i) {
i                 500 dev/ic/acx.c   		struct ieee80211_key *k = &ic->ic_nw_keys[i];
i                 506 dev/ic/acx.c   			error = sc->chip_set_wepkey(sc, k, i);
i                 545 dev/ic/acx.c   	int i, error;
i                 567 dev/ic/acx.c   	for (i = 0; i < ACX_TX_DESC_CNT; ++i) {
i                 571 dev/ic/acx.c   		buf = &bd->tx_buf[i];
i                 589 dev/ic/acx.c   	for (i = 0; i < ACX_RX_DESC_CNT; ++i) {
i                 590 dev/ic/acx.c   		if (bd->rx_buf[i].rb_mbuf != NULL) {
i                 592 dev/ic/acx.c   			    bd->rx_buf[i].rb_mbuf_dmamap);
i                 593 dev/ic/acx.c   			m_freem(bd->rx_buf[i].rb_mbuf);
i                 594 dev/ic/acx.c   			bd->rx_buf[i].rb_mbuf = NULL;
i                1456 dev/ic/acx.c   	int i;
i                1464 dev/ic/acx.c   	for (i = 0; i < EE_READ_RETRY_MAX; ++i) {
i                1469 dev/ic/acx.c   	if (i == EE_READ_RETRY_MAX) {
i                1485 dev/ic/acx.c   	int i;
i                1491 dev/ic/acx.c   	for (i = 0; i < PHY_READ_RETRY_MAX; ++i) {
i                1496 dev/ic/acx.c   	if (i == PHY_READ_RETRY_MAX) {
i                1520 dev/ic/acx.c   	int i, error;
i                1547 dev/ic/acx.c   	for (i = 0; i < 500; ++i) {
i                1638 dev/ic/acx.c   	int i, fw_len;
i                1640 dev/ic/acx.c   	for (i = 4; i < data_len; i++)
i                1641 dev/ic/acx.c   		csum += data[i];
i                1673 dev/ic/acx.c   	for (i = 0; i < fw_len; ++i) {
i                1675 dev/ic/acx.c   		CSR_WRITE_4(sc, ACXREG_FWMEM_ADDR, offset + (i * 4));
i                1677 dev/ic/acx.c   		CSR_WRITE_4(sc, ACXREG_FWMEM_DATA, betoh32(fw[i]));
i                1689 dev/ic/acx.c   	for (i = 0; i < fw_len; ++i) {
i                1693 dev/ic/acx.c   		CSR_WRITE_4(sc, ACXREG_FWMEM_ADDR, offset + (i * 4));
i                1696 dev/ic/acx.c   		if (betoh32(fw[i]) != val) {
i                1698 dev/ic/acx.c   			    ifp->if_xname, fw[i], val);
i                1746 dev/ic/acx.c   			int i;
i                1766 dev/ic/acx.c   			for (i = 0; i < ni->ni_rates.rs_nrates; ++i)
i                1767 dev/ic/acx.c   				printf("%d ", ni->ni_rates.rs_rates[i]);
i                1890 dev/ic/acx.c   	int i, error, nsegs;
i                1981 dev/ic/acx.c   	for (i = 0; i < ACX_RX_DESC_CNT; ++i) {
i                1983 dev/ic/acx.c   		    MCLBYTES, 0, 0, &bd->rx_buf[i].rb_mbuf_dmamap);
i                1986 dev/ic/acx.c   			    ifp->if_xname, i);
i                1989 dev/ic/acx.c   		bd->rx_buf[i].rb_desc = &rd->rx_ring[i];
i                1993 dev/ic/acx.c   	for (i = 0; i < ACX_TX_DESC_CNT; ++i) {
i                1995 dev/ic/acx.c   		    MCLBYTES, 0, 0, &bd->tx_buf[i].tb_mbuf_dmamap);
i                1998 dev/ic/acx.c   			    ifp->if_xname, i);
i                2001 dev/ic/acx.c   		bd->tx_buf[i].tb_desc1 = &rd->tx_ring[i * 2];
i                2002 dev/ic/acx.c   		bd->tx_buf[i].tb_desc2 = &rd->tx_ring[(i * 2) + 1];
i                2013 dev/ic/acx.c   	int i;
i                2025 dev/ic/acx.c   	for (i = 0; i < ACX_RX_DESC_CNT; ++i) {
i                2026 dev/ic/acx.c   		if (bd->rx_buf[i].rb_desc != NULL) {
i                2027 dev/ic/acx.c   			if (bd->rx_buf[i].rb_mbuf != NULL) {
i                2029 dev/ic/acx.c   				    bd->rx_buf[i].rb_mbuf_dmamap);
i                2030 dev/ic/acx.c   				m_freem(bd->rx_buf[i].rb_mbuf);
i                2033 dev/ic/acx.c   			    bd->rx_buf[i].rb_mbuf_dmamap);
i                2037 dev/ic/acx.c   	for (i = 0; i < ACX_TX_DESC_CNT; ++i) {
i                2038 dev/ic/acx.c   		if (bd->tx_buf[i].tb_desc1 != NULL) {
i                2039 dev/ic/acx.c   			if (bd->tx_buf[i].tb_mbuf != NULL) {
i                2041 dev/ic/acx.c   				    bd->tx_buf[i].tb_mbuf_dmamap);
i                2042 dev/ic/acx.c   				m_freem(bd->tx_buf[i].tb_mbuf);
i                2045 dev/ic/acx.c   			    bd->tx_buf[i].tb_mbuf_dmamap);
i                2059 dev/ic/acx.c   	int i;
i                2063 dev/ic/acx.c   	for (i = 0; i < (ACX_TX_DESC_CNT * 2) - 1; ++i) {
i                2066 dev/ic/acx.c   		bzero(&rd->tx_ring[i], sizeof(struct acx_host_desc));
i                2067 dev/ic/acx.c   		rd->tx_ring[i].h_ctrl = htole16(DESC_CTRL_HOSTOWN);
i                2069 dev/ic/acx.c   		if (i == (ACX_TX_DESC_CNT * 2) - 1)
i                2070 dev/ic/acx.c   			rd->tx_ring[i].h_next_desc = htole32(rd->tx_ring_paddr);
i                2072 dev/ic/acx.c   			rd->tx_ring[i].h_next_desc = htole32(paddr);
i                2092 dev/ic/acx.c   	int i;
i                2098 dev/ic/acx.c   	for (i = 0; i < ACX_RX_DESC_CNT; ++i) {
i                2102 dev/ic/acx.c   		bzero(&rd->rx_ring[i], sizeof(struct acx_host_desc));
i                2104 dev/ic/acx.c   		error = acx_newbuf(sc, &bd->rx_buf[i], 1);
i                2108 dev/ic/acx.c   		if (i == ACX_RX_DESC_CNT - 1)
i                2109 dev/ic/acx.c   			rd->rx_ring[i].h_next_desc = htole32(rd->rx_ring_paddr);
i                2111 dev/ic/acx.c   			rd->rx_ring[i].h_next_desc = htole32(paddr);
i                2490 dev/ic/acx.c   	int i, dtim_intvl;
i                2495 dev/ic/acx.c   	for (i = 0; i < IEEE80211_ADDR_LEN; ++i)
i                2496 dev/ic/acx.c   		bj->bssid[i] = node->ni_bssid[IEEE80211_ADDR_LEN - i - 1];
i                2611 dev/ic/acx.c   	int i, ret;
i                2640 dev/ic/acx.c   	for (i = 0; i < CMDWAIT_RETRY_MAX; ++i) {
i                2650 dev/ic/acx.c   	if (i == CMDWAIT_RETRY_MAX) {
i                2728 dev/ic/acx.c   	int i;
i                2733 dev/ic/acx.c   	for (i = ni->ni_rates.rs_nrates - 1;
i                2734 dev/ic/acx.c   	    i > 0 && (ni->ni_rates.rs_rates[i] & IEEE80211_RATE_VAL) > 72;
i                2735 dev/ic/acx.c   	    i--);
i                2736 dev/ic/acx.c   	ni->ni_txrate = i;
i                 525 dev/ic/acx100.c 	int i;
i                 535 dev/ic/acx100.c 	for (i = 0; i < ACX_TX_DESC_CNT; ++i) {
i                 538 dev/ic/acx100.c 		if (i == ACX_TX_DESC_CNT - 1) {
i                 545 dev/ic/acx100.c 		tx_buf[i].tb_fwdesc_ofs = fw_desc_offset;
i                 559 dev/ic/acx100.c 	int i;
i                 566 dev/ic/acx100.c 	for (i = 0; i < ACX_RX_DESC_CNT; ++i) {
i                 567 dev/ic/acx100.c 		if (i == ACX_RX_DESC_CNT - 1) {
i                 381 dev/ic/acx111.c 	int i;
i                 386 dev/ic/acx111.c 	for (i = 0; i < ACX_TX_DESC_CNT; ++i) {
i                 387 dev/ic/acx111.c 		tx_buf[i].tb_fwdesc_ofs = fw_txdesc_start +
i                 388 dev/ic/acx111.c 		    (i * ACX111_FW_TXDESC_SIZE);
i                 394 dev/ic/acx111.c 		FW_TXDESC_SETFIELD_4(sc, &tx_buf[i], f_tx_host_desc,
i                 396 dev/ic/acx111.c 		FW_TXDESC_SETFIELD_1(sc, &tx_buf[i], f_tx_ctrl,
i                 233 dev/ic/adv.c   	int             i, error;
i                 236 dev/ic/adv.c   	for (i = 0; i < count; i++) {
i                 237 dev/ic/adv.c   		ccb = &ccbstore[i];
i                 241 dev/ic/adv.c   			return (i);
i                 246 dev/ic/adv.c   	return (i);
i                 553 dev/ic/adv.c   	int				i, error;
i                 609 dev/ic/adv.c   	i = adv_create_ccbs(sc, sc->sc_control->ccbs, ADV_MAX_CCB);
i                 610 dev/ic/adv.c   	if (i == 0) {
i                 614 dev/ic/adv.c   	} else if (i != ADV_MAX_CCB) {
i                 616 dev/ic/adv.c   		       sc->sc_dev.dv_xname, i, ADV_MAX_CCB);
i                 258 dev/ic/advlib.c 	int             i;
i                 340 dev/ic/advlib.c 	for (i = 0; i <= ASC_MAX_TID; i++) {
i                 341 dev/ic/advlib.c 		sc->cur_dvc_qng[i] = 0;
i                 342 dev/ic/advlib.c 		sc->max_dvc_qng[i] = ASC_MAX_SCSI1_QNG;
i                 343 dev/ic/advlib.c 		sc->max_tag_qng[i] = ASC_MAX_INRAM_TAG_QNG;
i                 363 dev/ic/advlib.c 	int             i;
i                 504 dev/ic/advlib.c 	for (i = 0; i <= ASC_MAX_TID; i++) {
i                 505 dev/ic/advlib.c 		sc->max_tag_qng[i] = eep_config->max_tag_qng;
i                 506 dev/ic/advlib.c 		sc->sdtr_period_offset[i] = ASC_DEF_SDTR_OFFSET |
i                 636 dev/ic/advlib.c 	u_int8_t        i;
i                 643 dev/ic/advlib.c 	i = ASC_MIN_ACTIVE_QNO;
i                 645 dev/ic/advlib.c 	AscWriteLramByte(iot, ioh, s_addr + ASC_SCSIQ_B_FWD, i + 1);
i                 647 dev/ic/advlib.c 	AscWriteLramByte(iot, ioh, s_addr + ASC_SCSIQ_B_QNO, i);
i                 648 dev/ic/advlib.c 	i++;
i                 650 dev/ic/advlib.c 	for (; i < sc->max_total_qng; i++, s_addr += ASC_QBLK_SIZE) {
i                 651 dev/ic/advlib.c 		AscWriteLramByte(iot, ioh, s_addr + ASC_SCSIQ_B_FWD, i + 1);
i                 652 dev/ic/advlib.c 		AscWriteLramByte(iot, ioh, s_addr + ASC_SCSIQ_B_BWD, i - 1);
i                 653 dev/ic/advlib.c 		AscWriteLramByte(iot, ioh, s_addr + ASC_SCSIQ_B_QNO, i);
i                 658 dev/ic/advlib.c 	i++;
i                 660 dev/ic/advlib.c 	for (; i <= (u_int8_t) (sc->max_total_qng + 3); i++, s_addr += ASC_QBLK_SIZE) {
i                 661 dev/ic/advlib.c 		AscWriteLramByte(iot, ioh, s_addr + ASC_SCSIQ_B_FWD, i);
i                 662 dev/ic/advlib.c 		AscWriteLramByte(iot, ioh, s_addr + ASC_SCSIQ_B_BWD, i);
i                 663 dev/ic/advlib.c 		AscWriteLramByte(iot, ioh, s_addr + ASC_SCSIQ_B_QNO, i);
i                 684 dev/ic/advlib.c 	u_int8_t        i;
i                 702 dev/ic/advlib.c 	for (i = 0; i < 32; i++, lram_addr += 2)
i                 914 dev/ic/advlib.c 	int             i;
i                 919 dev/ic/advlib.c 	for (i = 0; i <= ASC_MAX_TID; i++)
i                 920 dev/ic/advlib.c 		if (org_id == (0x01 << i))
i                 923 dev/ic/advlib.c 	org_id = i;
i                1117 dev/ic/advlib.c 	int             i;
i                1120 dev/ic/advlib.c 	for (i = 0; i < count; i++)
i                1133 dev/ic/advlib.c 	int             i;
i                1136 dev/ic/advlib.c 	for (i = 0; i < words; i++, s_buffer++)
i                1149 dev/ic/advlib.c 	int             i;
i                1152 dev/ic/advlib.c 	for (i = 0; i < words; i++, s_buffer++)
i                1165 dev/ic/advlib.c 	int             i;
i                1171 dev/ic/advlib.c 	for (i = 0; i < dwords; i++, pw++) {
i                1187 dev/ic/advlib.c 	u_int16_t       i;
i                1190 dev/ic/advlib.c 	for (i = 0; i < words; i++, s_addr += 2)
i                1235 dev/ic/advlib.c 	int             i;
i                1238 dev/ic/advlib.c 	for (i = 0; i <= ASC_MAX_TID; i++)
i                1239 dev/ic/advlib.c 		ASC_PUT_MCODE_INIT_SDTR_AT_ID(iot, ioh, i,
i                1240 dev/ic/advlib.c 					      sc->sdtr_period_offset[i]);
i                1960 dev/ic/advlib.c 	int             i = 0;
i                1963 dev/ic/advlib.c 	while (i++ < 10) {
i                2446 dev/ic/advlib.c 	int             i;
i                2452 dev/ic/advlib.c 		for (i = min_index; i < (max_index - 1); i++) {
i                2453 dev/ic/advlib.c 			if (syn_time <= period_table[i])
i                2454 dev/ic/advlib.c 				return (i);
i                2481 dev/ic/advlib.c 	int             i;
i                2539 dev/ic/advlib.c 			for (i = 0; i < sg_entry_cnt; i++)
i                2540 dev/ic/advlib.c 				data_cnt += sg_head->sg_list[i].bytes;
i                2668 dev/ic/advlib.c 	int             i;
i                2694 dev/ic/advlib.c 			for (i = 0; i < sg_head->queue_cnt; i++) {
i                2695 dev/ic/advlib.c 				scsi_sg_q.seq_no = i + 1;
i                2699 dev/ic/advlib.c 					if (i == 0) {
i                2709 dev/ic/advlib.c 					if (i == 0) {
i                2910 dev/ic/advlib.c 	u_int8_t        i;
i                2912 dev/ic/advlib.c 	for (i = 0; i < n_free_q; i++) {
i                3159 dev/ic/advlib.c 	int             i;
i                3182 dev/ic/advlib.c 			for (i = 0; i < sizeof(ASC_SCSI_REQ_Q); i++)
i                3226 dev/ic/advlib.c 	int             i;
i                3238 dev/ic/advlib.c 	for (i = 0; i <= ASC_MAX_TID; i++) {
i                3239 dev/ic/advlib.c 		sc->cur_dvc_qng[i] = 0;
i                3240 dev/ic/advlib.c 		if (sc->pci_fix_asyn_xfer & (ASC_SCSI_BIT_ID_TYPE) (0x01 << i))
i                3241 dev/ic/advlib.c 			AscSetChipSynRegAtID(iot, ioh, i, ASYN_SDTR_DATA_FIX_PCI_REV_AB);
i                3407 dev/ic/advlib.c 	int             i;
i                3410 dev/ic/advlib.c 	for (i = 0; i < len; i++) {
i                3411 dev/ic/advlib.c 		diff = (int) (str1[i] - str2[i]);
i                 283 dev/ic/adw.c   	int             i, error;
i                 285 dev/ic/adw.c   	for (i = 0; i < count; i++) {
i                 286 dev/ic/adw.c   		ccb = &ccbstore[i];
i                 290 dev/ic/adw.c   			return (i);
i                 295 dev/ic/adw.c   	return (i);
i                 521 dev/ic/adw.c   	int				i, error;
i                 542 dev/ic/adw.c   	i = adw_create_ccbs(sc, sc->sc_control->ccbs, ADW_MAX_CCB);
i                 543 dev/ic/adw.c   	if (i == 0) {
i                 547 dev/ic/adw.c   	} else if (i != ADW_MAX_CCB) {
i                 550 dev/ic/adw.c   		       sc->sc_dev.dv_xname, i, ADW_MAX_CCB);
i                 893 dev/ic/adw.c   	int             i;	/* how many SG entries */
i                 909 dev/ic/adw.c   		for (i = 0; i < NO_OF_SG_PER_BLOCK; i++) {
i                 910 dev/ic/adw.c   			sg_block->sg_list[i].sg_addr = sg_list->ds_addr;
i                 911 dev/ic/adw.c   			sg_block->sg_list[i].sg_count = sg_list->ds_len;
i                 915 dev/ic/adw.c   				sg_block->sg_cnt = i + 1;
i                 256 dev/ic/adwlib.c 	int			i, j;
i                 339 dev/ic/adwlib.c 		for (i=2, j=1; i>=0; i--, j++) {
i                 340 dev/ic/adwlib.c 		eep_config.serial_number[i] =
i                 541 dev/ic/adwlib.c 	int		i;
i                 559 dev/ic/adwlib.c 	for (i = 0; i < ADW_MC_BIOSLEN/2; i++) {
i                 560 dev/ic/adwlib.c 		ADW_READ_WORD_LRAM(iot, ioh, ADW_MC_BIOSMEM+(2*i), bios_mem[i]);
i                 943 dev/ic/adwlib.c 	int		i;
i                 979 dev/ic/adwlib.c 		for (i = 0; i < 2; i++) {
i                1043 dev/ic/adwlib.c 	int		i, j;
i                1090 dev/ic/adwlib.c 	for (i = 253 * 2; i < mcode_size; i++) {
i                1091 dev/ic/adwlib.c 		if (mcode_data[i] == 0xff) {
i                1092 dev/ic/adwlib.c 			for (j = 0; j < mcode_data[i + 1]; j++) {
i                1094 dev/ic/adwlib.c 				  (((u_int16_t)mcode_data[i + 3] << 8) |
i                1095 dev/ic/adwlib.c 				  mcode_data[i + 2]));
i                1098 dev/ic/adwlib.c 			i += 3;
i                1099 dev/ic/adwlib.c 		} else if (mcode_data[i] == 0xfe) {
i                1101 dev/ic/adwlib.c 			    (((u_int16_t)mcode_data[i + 2] << 8) |
i                1102 dev/ic/adwlib.c 			    mcode_data[i + 1]));
i                1103 dev/ic/adwlib.c 			i += 2;
i                1107 dev/ic/adwlib.c 			 mcode_data[(mcode_data[i] * 2) + 1] <<8) |
i                1108 dev/ic/adwlib.c 			 mcode_data[mcode_data[i] * 2]));
i                1144 dev/ic/adwlib.c 	for (i = 0; i < ADW_MC_BIOSLEN/2; i++) {
i                1146 dev/ic/adwlib.c 			ADW_WRITE_BYTE_LRAM(iot, ioh, ADW_MC_BIOSMEM + (2 * i),
i                1147 dev/ic/adwlib.c 								bios_mem[i]);
i                1149 dev/ic/adwlib.c 			ADW_WRITE_WORD_LRAM(iot, ioh, ADW_MC_BIOSMEM + (2 * i),
i                1150 dev/ic/adwlib.c 								bios_mem[i]);
i                2157 dev/ic/adwlib.c 	u_int32_t	i, j, s;
i                2191 dev/ic/adwlib.c 	for (i = 0; i < SCSI_WAIT_100_MSEC; i++) {
i                 217 dev/ic/aic6360.c 	int i;
i                 234 dev/ic/aic6360.c 	for (i = 0; i < STSIZE; i++)
i                 235 dev/ic/aic6360.c 		bus_space_write_1(iot, ioh, STACK, i);
i                 239 dev/ic/aic6360.c  	for (i = 0; i < STSIZE && bus_space_read_1(iot, ioh, STACK) == i; i++)
i                 241 dev/ic/aic6360.c 	if (i != STSIZE) {
i                 242 dev/ic/aic6360.c 		AIC_START(("STACK futzed at %d.\n", i));
i                2059 dev/ic/aic6360.c 	int i;
i                2063 dev/ic/aic6360.c 		for (i = 0; i < acb->scsi_cmd_length; i++) {
i                2064 dev/ic/aic6360.c 			if (i)
i                2066 dev/ic/aic6360.c 			printf("%x", b[i]);
i                2133 dev/ic/aic6360.c 	int i;
i                2139 dev/ic/aic6360.c 	for (i = 0; i < 7; i++) {
i                2140 dev/ic/aic6360.c 		ti = &sc->sc_tinfo[i];
i                2142 dev/ic/aic6360.c 		    i, ti->cmds, ti->dconns, ti->touts);
i                 171 dev/ic/aic6915.c 	int i, rseg, error;
i                 243 dev/ic/aic6915.c 	for (i = 0; i < SF_NTXDESC; i++) {
i                 246 dev/ic/aic6915.c 		    &sc->sc_txsoft[i].ds_dmamap)) != 0) {
i                 248 dev/ic/aic6915.c 			    "error = %d\n", sc->sc_dev.dv_xname, i, error);
i                 256 dev/ic/aic6915.c 	for (i = 0; i < SF_NRXDESC; i++) {
i                 259 dev/ic/aic6915.c 		    &sc->sc_rxsoft[i].ds_dmamap)) != 0) {
i                 261 dev/ic/aic6915.c 			    "error = %d\n", sc->sc_dev.dv_xname, i, error);
i                 274 dev/ic/aic6915.c 	for (i = 0; i < ETHER_ADDR_LEN; i++)
i                 275 dev/ic/aic6915.c 		enaddr[i] = sf_read_eeprom(sc, (15 + (ETHER_ADDR_LEN - 1)) - i);
i                 331 dev/ic/aic6915.c 	for (i = 0; i < SF_NRXDESC; i++) {
i                 332 dev/ic/aic6915.c 		if (sc->sc_rxsoft[i].ds_dmamap != NULL)
i                 334 dev/ic/aic6915.c 			    sc->sc_rxsoft[i].ds_dmamap);
i                 337 dev/ic/aic6915.c 	for (i = 0; i < SF_NTXDESC; i++) {
i                 338 dev/ic/aic6915.c 		if (sc->sc_txsoft[i].ds_dmamap != NULL)
i                 340 dev/ic/aic6915.c 			    sc->sc_txsoft[i].ds_dmamap);
i                 930 dev/ic/aic6915.c 	u_int i;
i                 933 dev/ic/aic6915.c 	for (i = 0; i < (sizeof(stats) / sizeof(uint32_t)); i++) {
i                 935 dev/ic/aic6915.c 		    SF_STATS_BASE + (i * sizeof(uint32_t)));
i                 936 dev/ic/aic6915.c 		sf_genreg_write(sc, SF_STATS_BASE + (i * sizeof(uint32_t)), 0);
i                 964 dev/ic/aic6915.c 	int i;
i                 971 dev/ic/aic6915.c 	for (i = 0; i < 1000; i++) {
i                 978 dev/ic/aic6915.c 	if (i == 1000) {
i                1011 dev/ic/aic6915.c 	u_int i;
i                1024 dev/ic/aic6915.c 	for (i = 0; i < sizeof(struct sf_stats); i += sizeof(uint32_t))
i                1025 dev/ic/aic6915.c 		sf_genreg_write(sc, SF_STATS_BASE + i, 0);
i                1038 dev/ic/aic6915.c 	for (i = 0; i < SF_NTCD; i++) {
i                1039 dev/ic/aic6915.c 		sc->sc_txcomp[i].tcd_word0 = TCD_DMA_ID;
i                1040 dev/ic/aic6915.c 		SF_CDTXCSYNC(sc, i, BUS_DMASYNC_PREREAD|BUS_DMASYNC_PREWRITE);
i                1048 dev/ic/aic6915.c 	for (i = 0; i < SF_NRXDESC; i++) {
i                1049 dev/ic/aic6915.c 		ds = &sc->sc_rxsoft[i];
i                1051 dev/ic/aic6915.c 			if ((error = sf_add_rxbuf(sc, i)) != 0) {
i                1054 dev/ic/aic6915.c 				    sc->sc_dev.dv_xname, i, error);
i                1063 dev/ic/aic6915.c 			SF_INIT_RXDESC(sc, i);
i                1072 dev/ic/aic6915.c 	for (i = 0; i < SF_NRCD; i++) {
i                1073 dev/ic/aic6915.c 		sc->sc_rxcomp[i].rcd_word0 = RCD_W0_ID;
i                1074 dev/ic/aic6915.c 		sc->sc_rxcomp[i].rcd_word1 = 0;
i                1075 dev/ic/aic6915.c 		sc->sc_rxcomp[i].rcd_word2 = 0;
i                1076 dev/ic/aic6915.c 		sc->sc_rxcomp[i].rcd_timestamp = 0;
i                1077 dev/ic/aic6915.c 		SF_CDRXCSYNC(sc, i, BUS_DMASYNC_PREREAD|BUS_DMASYNC_PREWRITE);
i                1201 dev/ic/aic6915.c 	int i;
i                1203 dev/ic/aic6915.c 	for (i = 0; i < SF_NRXDESC; i++) {
i                1204 dev/ic/aic6915.c 		ds = &sc->sc_rxsoft[i];
i                1223 dev/ic/aic6915.c 	int i;
i                1240 dev/ic/aic6915.c 	for (i = 0; i < SF_NTXDESC; i++) {
i                1241 dev/ic/aic6915.c 		ds = &sc->sc_txsoft[i];
i                1357 dev/ic/aic6915.c 	int i;
i                1360 dev/ic/aic6915.c 	for (i = 0; i < SF_PERFECT_SIZE; i += sizeof(uint32_t))
i                1361 dev/ic/aic6915.c 		sf_genreg_write(sc, SF_PERFECT_BASE + i, 0);
i                1363 dev/ic/aic6915.c 	for (i = 0; i < SF_HASH_SIZE; i += sizeof(uint32_t))
i                1364 dev/ic/aic6915.c 		sf_genreg_write(sc, SF_HASH_BASE + i, 0);
i                1445 dev/ic/aic6915.c 	int i;
i                1447 dev/ic/aic6915.c 	for (i = 0; i < 1000; i++) {
i                1472 dev/ic/aic6915.c 	int i;
i                1476 dev/ic/aic6915.c 	for (i = 0; i < 1000; i++) {
i                 427 dev/ic/aic79xx.c 		u_int i;
i                 443 dev/ic/aic79xx.c 		for (i = 0; i < 2; i++) {
i                 550 dev/ic/aic79xx.c 		u_int	 i;
i                 561 dev/ic/aic79xx.c 		for (i = 0; i < sizeof(struct hardware_scb); i++)
i                 562 dev/ic/aic79xx.c 			*hscb_ptr++ = ahd_inb_scbram(ahd, SCB_BASE + i);
i                 925 dev/ic/aic79xx.c 	int i;
i                 929 dev/ic/aic79xx.c 	for (i = 0; i < num_errors; i++) {
i                 930 dev/ic/aic79xx.c 		if ((error & ahd_hard_errors[i].errno) != 0)
i                 932 dev/ic/aic79xx.c 			       ahd_name(ahd), ahd_hard_errors[i].errmesg);
i                2614 dev/ic/aic79xx.c 		u_int	i;
i                2620 dev/ic/aic79xx.c 		for (i = 0; i < ahd->num_critical_sections; i++, cs++) {
i                2626 dev/ic/aic79xx.c 		if (i == ahd->num_critical_sections)
i                2740 dev/ic/aic79xx.c 	int i;
i                2750 dev/ic/aic79xx.c 	for (i = 0; i < sizeof(hscb->shared_data.idata.cdb); i++)
i                2751 dev/ic/aic79xx.c 		printf("%#02x", hscb->shared_data.idata.cdb[i]);
i                2764 dev/ic/aic79xx.c 	int i;
i                2771 dev/ic/aic79xx.c 			for (i = 0; i < scb->sg_count; i++) {
i                2775 dev/ic/aic79xx.c 				addr = aic_le64toh(sg_list[i].addr);
i                2776 dev/ic/aic79xx.c 				len = aic_le32toh(sg_list[i].len);
i                2778 dev/ic/aic79xx.c 				       i,
i                2781 dev/ic/aic79xx.c 				       sg_list[i].len & AHD_SG_LEN_MASK,
i                2782 dev/ic/aic79xx.c 				       (sg_list[i].len & AHD_DMA_LAST_SEG)
i                2789 dev/ic/aic79xx.c 			for (i = 0; i < scb->sg_count; i++) {
i                2792 dev/ic/aic79xx.c 				len = aic_le32toh(sg_list[i].len);
i                2794 dev/ic/aic79xx.c 				       i,
i                2796 dev/ic/aic79xx.c 				       aic_le32toh(sg_list[i].addr),
i                2814 dev/ic/aic79xx.c 	int i;
i                2834 dev/ic/aic79xx.c 		for (i = 0; i < 16; i++) {
i                2835 dev/ic/aic79xx.c 			memset(&tstate->transinfo[i].curr, 0,
i                2836 dev/ic/aic79xx.c 			      sizeof(tstate->transinfo[i].curr));
i                2837 dev/ic/aic79xx.c 			memset(&tstate->transinfo[i].goal, 0,
i                2838 dev/ic/aic79xx.c 			      sizeof(tstate->transinfo[i].goal));
i                5397 dev/ic/aic79xx.c 	int i;
i                5414 dev/ic/aic79xx.c 	for (i = 0; i < AHD_NUM_TARGETS; i++) {
i                5417 dev/ic/aic79xx.c 		tstate = ahd->enabled_targets[i];
i                5582 dev/ic/aic79xx.c 	int i;
i                5586 dev/ic/aic79xx.c 	for (i = 0; i < AHD_SCB_MAX; i++) {
i                5589 dev/ic/aic79xx.c 		ahd_set_scbptr(ahd, i);
i                5590 dev/ic/aic79xx.c 		ahd_outw(ahd, SCB_BASE, i);
i                5595 dev/ic/aic79xx.c 		if (ahd_inw_scbram(ahd, SCB_BASE) != i)
i                5601 dev/ic/aic79xx.c 	return (i);
i                5607 dev/ic/aic79xx.c 	int i;
i                5609 dev/ic/aic79xx.c 	for (i = 0; i < ahd->scb_data.maxhscbs; i++) {
i                5610 dev/ic/aic79xx.c 		ahd_set_scbptr(ahd, i);
i                5624 dev/ic/aic79xx.c 	int	i;
i                5628 dev/ic/aic79xx.c 	for (i = 0; i < AHD_NUM_TARGETS * AHD_NUM_LUNS_NONPKT; i++)
i                5629 dev/ic/aic79xx.c 		LIST_INIT(&scb_data->free_scb_lists[i]);
i                5656 dev/ic/aic79xx.c 		i = scb_data->numscbs;
i                5658 dev/ic/aic79xx.c 	} while ((i != scb_data->numscbs) && 
i                5970 dev/ic/aic79xx.c 	int		 i;
i                6081 dev/ic/aic79xx.c 	for (i = 0; i < newcount; i++) {
i                6184 dev/ic/aic79xx.c 	int		 i;
i                6302 dev/ic/aic79xx.c 	for (i = 20, fstat = FLX_FSTAT_BUSY;
i                6303 dev/ic/aic79xx.c 	     (fstat & FLX_FSTAT_BUSY) != 0 && i; i--) {
i                6311 dev/ic/aic79xx.c 	if (i == 0) {
i                6334 dev/ic/aic79xx.c 	for (i = 0; i < 4; i++, current_sensing >>= FLX_CSTAT_SHIFT) {
i                6347 dev/ic/aic79xx.c 			       channel_strings[i], termstat_strings[term_stat]);
i                6377 dev/ic/aic79xx.c 	u_int	 i;
i                6430 dev/ic/aic79xx.c 	for (i = 0; i < 2; i++) {
i                6431 dev/ic/aic79xx.c 		ahd_set_modes(ahd, AHD_MODE_DFF0 + i, AHD_MODE_DFF0 + i);
i                6466 dev/ic/aic79xx.c 		for (i = 0; i < NUMDSPS; i++) {
i                6467 dev/ic/aic79xx.c 			ahd_outb(ahd, DSPSELECT, i);
i                6544 dev/ic/aic79xx.c 			for (i = 0; i < AHD_NUM_PER_DEV_ANNEXCOLS; i++)
i                6579 dev/ic/aic79xx.c 	for (i = 0; i < AHD_QOUT_SIZE; i++)
i                6580 dev/ic/aic79xx.c 		ahd->qoutfifo[i].valid_tag = 0;
i                6584 dev/ic/aic79xx.c 	for (i = 0; i < AHD_QIN_SIZE; i++)
i                6585 dev/ic/aic79xx.c 		ahd->qinfifo[i] = SCB_LIST_NULL;
i                6589 dev/ic/aic79xx.c 		for (i = 0; i < AHD_TMODE_CMDS; i++)
i                6590 dev/ic/aic79xx.c 			ahd->targetcmds[i].cmd_valid = 0;
i                6606 dev/ic/aic79xx.c 	for (i = 0; i < AHD_NUM_TARGETS; i++)
i                6607 dev/ic/aic79xx.c 		ahd_outw(ahd, WAITING_SCB_TAILS + (2 * i), SCB_LIST_NULL);
i                7657 dev/ic/aic79xx.c 	u_int		i, j;
i                7674 dev/ic/aic79xx.c 	i = 0;
i                7677 dev/ic/aic79xx.c 		i = target;
i                7679 dev/ic/aic79xx.c 			i += 8;
i                7680 dev/ic/aic79xx.c 		maxtarget = i + 1;
i                7694 dev/ic/aic79xx.c 		for (;i < maxtarget; i++) {
i                7699 dev/ic/aic79xx.c 				tcl = BUILD_TCL_RAW(i, 'A', j);
i                7706 dev/ic/aic79xx.c 				ahd_unbusy_tcl(ahd, BUILD_TCL_RAW(i, 'A', j));
i                8443 dev/ic/aic79xx.c 	int i;
i                8450 dev/ic/aic79xx.c 	for (i = 0; i < max_prog; i++) {
i                8471 dev/ic/aic79xx.c 	u_int	i;
i                8571 dev/ic/aic79xx.c 	for (i = 0; i < sizeof(seqprog)/4; i++) {
i                8572 dev/ic/aic79xx.c 		if (ahd_check_patch(ahd, &cur_patch, i, &skip_addr) == 0) {
i                8584 dev/ic/aic79xx.c 			if (critical_sections[cur_cs].end <= i) {
i                8593 dev/ic/aic79xx.c 			if (critical_sections[cur_cs].begin <= i
i                8600 dev/ic/aic79xx.c 		ahd_download_instr(ahd, i, download_consts);
i                8664 dev/ic/aic79xx.c 	u_int i;
i                8670 dev/ic/aic79xx.c 	for (i = 0; i < address;) {
i                8672 dev/ic/aic79xx.c 		ahd_check_patch(ahd, &cur_patch, i, &skip_addr);
i                8674 dev/ic/aic79xx.c 		if (skip_addr > i) {
i                8678 dev/ic/aic79xx.c 			address_offset += end_addr - i;
i                8679 dev/ic/aic79xx.c 			i = skip_addr;
i                8681 dev/ic/aic79xx.c 			i++;
i                8732 dev/ic/aic79xx.c 		int i, count;
i                8735 dev/ic/aic79xx.c 		for (i = 0, count = 0; i < 31; i++) {
i                8738 dev/ic/aic79xx.c 			mask = 0x01 << i;
i                8763 dev/ic/aic79xx.c 		int i;
i                8771 dev/ic/aic79xx.c 		for (i = 1; i <= last_probe+1; i++) {
i                8772 dev/ic/aic79xx.c 		       ahd_outb(ahd, STACK, i & 0xFF);
i                8773 dev/ic/aic79xx.c 		       ahd_outb(ahd, STACK, (i >> 8) & 0xFF);
i                8777 dev/ic/aic79xx.c 		for (i = last_probe+1; i > 0; i--) {
i                8782 dev/ic/aic79xx.c 			if (stack_entry != i)
i                8857 dev/ic/aic79xx.c 	int		 i;
i                8932 dev/ic/aic79xx.c 	i = 0;
i                8934 dev/ic/aic79xx.c 		if (i++ > AHD_SCB_MAX)
i                8944 dev/ic/aic79xx.c 	printf("\nTotal %d\n", i);
i                8947 dev/ic/aic79xx.c 	i = 0;
i                8955 dev/ic/aic79xx.c 		} while (list_scb && i++ < AHD_SCB_MAX);
i                8959 dev/ic/aic79xx.c 		if (i++ > AHD_SCB_MAX)
i                8967 dev/ic/aic79xx.c 	i = 0;
i                8968 dev/ic/aic79xx.c 	while (!SCBID_IS_NULL(scb_index) && i++ < AHD_SCB_MAX) {
i                8977 dev/ic/aic79xx.c 	i = 0;
i                8978 dev/ic/aic79xx.c 	while (!SCBID_IS_NULL(scb_index) && i++ < AHD_SCB_MAX) {
i                8988 dev/ic/aic79xx.c 	i = 0;
i                8989 dev/ic/aic79xx.c 	while (!SCBID_IS_NULL(scb_index) && i++ < AHD_SCB_MAX) {
i                8997 dev/ic/aic79xx.c 	i = 0;
i                8998 dev/ic/aic79xx.c 	while (!SCBID_IS_NULL(scb_index) && i++ < AHD_SCB_MAX) {
i                9006 dev/ic/aic79xx.c 	for (i = 0; i < 2; i++) {
i                9012 dev/ic/aic79xx.c 		ahd_set_modes(ahd, AHD_MODE_DFF0 + i, AHD_MODE_DFF0 + i);
i                9015 dev/ic/aic79xx.c 		       ahd_name(ahd), i,
i                9016 dev/ic/aic79xx.c 		       (dffstat & (FIFO0FREE << i)) ? "Free" : "Active",
i                9059 dev/ic/aic79xx.c 	for (i = 0; i < 20; i++)
i                9060 dev/ic/aic79xx.c 		printf("0x%x ", ahd_inb(ahd, LQIN + i));
i                9094 dev/ic/aic79xx.c 	for (i = 0; i < ahd->stack_size; i++) {
i                9095 dev/ic/aic79xx.c 		ahd->saved_stack[i] =
i                9097 dev/ic/aic79xx.c 		printf(" 0x%x", ahd->saved_stack[i]);
i                9099 dev/ic/aic79xx.c 	for (i = ahd->stack_size-1; i >= 0; i--) {
i                9100 dev/ic/aic79xx.c 		ahd_outb(ahd, STACK, ahd->saved_stack[i] & 0xFF);
i                9101 dev/ic/aic79xx.c 		ahd_outb(ahd, STACK, (ahd->saved_stack[i] >> 8) & 0xFF);
i                9115 dev/ic/aic79xx.c 	int	       i;
i                9120 dev/ic/aic79xx.c 	for (i = 0; i < AHD_SCB_MAX; i++) {
i                9121 dev/ic/aic79xx.c 		ahd_set_scbptr(ahd, i);
i                9122 dev/ic/aic79xx.c 		printf("%3d", i);
i                9311 dev/ic/aic79xx.c 	int i;
i                9319 dev/ic/aic79xx.c 	for (i = offsetof(struct vpd_config, resource_type); i < maxaddr; i++)
i                9320 dev/ic/aic79xx.c 		checksum = checksum + vpdarray[i];
i                9327 dev/ic/aic79xx.c 	for (i = offsetof(struct vpd_config, default_target_flags);
i                9328 dev/ic/aic79xx.c 	     i < maxaddr; i++)
i                9329 dev/ic/aic79xx.c 		checksum = checksum + vpdarray[i];
i                9339 dev/ic/aic79xx.c 	int i;
i                9348 dev/ic/aic79xx.c 	for (i = 0; i < maxaddr; i++)
i                9349 dev/ic/aic79xx.c 		checksum = checksum + scarray[i];
i                9697 dev/ic/aic79xx.c 		int i, empty;
i                9745 dev/ic/aic79xx.c 			for (empty = 1, i = 0; i < 8; i++)
i                9746 dev/ic/aic79xx.c 				if (tstate->enabled_luns[i] != NULL) {
i                 400 dev/ic/aic79xx_openbsd.c 		u_int i;
i                 405 dev/ic/aic79xx_openbsd.c 		for (i = nsegments, sg = scb->sg_list; i > 0; i--) {
i                 409 dev/ic/aic79xx_openbsd.c 					  /*last*/i == 1);
i                 408 dev/ic/aic7xxx.c 	int i;
i                 410 dev/ic/aic7xxx.c 	for (i = 0; i < 16; i++)
i                 411 dev/ic/aic7xxx.c 		ahc_run_untagged_queue(ahc, &ahc->untagged_queues[i]);
i                 438 dev/ic/aic7xxx.c 	int i;
i                 442 dev/ic/aic7xxx.c 	for (i = 0; error != 1 && i < num_errors; i++)
i                 445 dev/ic/aic7xxx.c 	       ahc_name(ahc), ahc_hard_errors[i].errmesg,
i                 883 dev/ic/aic7xxx.c 		u_int i;
i                 886 dev/ic/aic7xxx.c 		for (i = 0; i < num_phases; i++) {
i                 887 dev/ic/aic7xxx.c 			if (lastphase == ahc_phase_table[i].phase)
i                 893 dev/ic/aic7xxx.c 		       ahc_phase_table[i].phasemsg,
i                 901 dev/ic/aic7xxx.c 			for (i = 0; i < scb->sg_count; i++) {
i                 904 dev/ic/aic7xxx.c 				       i,
i                 905 dev/ic/aic7xxx.c 				       (aic_le32toh(scb->sg_list[i].len) >> 24
i                 907 dev/ic/aic7xxx.c 				       aic_le32toh(scb->sg_list[i].addr),
i                 908 dev/ic/aic7xxx.c 				       aic_le32toh(scb->sg_list[i].len)
i                1120 dev/ic/aic7xxx.c 		u_int	i;
i                1145 dev/ic/aic7xxx.c 		for (i = 0; i < num_phases; i++) {
i                1146 dev/ic/aic7xxx.c 			if (errorphase == ahc_phase_table[i].phase)
i                1149 dev/ic/aic7xxx.c 		mesg_out = ahc_phase_table[i].mesg_out;
i                1164 dev/ic/aic7xxx.c 			       ahc_phase_table[i].phasemsg,
i                1414 dev/ic/aic7xxx.c 			u_int i;
i                1435 dev/ic/aic7xxx.c 			for (i = 0; i < num_phases; i++) {
i                1436 dev/ic/aic7xxx.c 				if (lastphase == ahc_phase_table[i].phase)
i                1450 dev/ic/aic7xxx.c 			       ahc_phase_table[i].phasemsg,
i                1501 dev/ic/aic7xxx.c 		u_int	i;
i                1512 dev/ic/aic7xxx.c 		for (i = 0; i < ahc->num_critical_sections; i++, cs++) {
i                1518 dev/ic/aic7xxx.c 		if (i == ahc->num_critical_sections)
i                1595 dev/ic/aic7xxx.c 	int i;
i                1606 dev/ic/aic7xxx.c 	for (i = 0; i < sizeof(hscb->shared_data.cdb); i++)
i                1607 dev/ic/aic7xxx.c 		printf("%#02x", hscb->shared_data.cdb[i]);
i                1614 dev/ic/aic7xxx.c 		for (i = 0; i < scb->sg_count; i++) {
i                1616 dev/ic/aic7xxx.c 			       i,
i                1617 dev/ic/aic7xxx.c 			       (aic_le32toh(scb->sg_list[i].len) >> 24
i                1619 dev/ic/aic7xxx.c 			       aic_le32toh(scb->sg_list[i].addr),
i                1620 dev/ic/aic7xxx.c 			       aic_le32toh(scb->sg_list[i].len));
i                1636 dev/ic/aic7xxx.c 	int i;
i                1662 dev/ic/aic7xxx.c 		for (i = 0; i < AHC_NUM_TARGETS; i++) {
i                1663 dev/ic/aic7xxx.c 			memset(&tstate->transinfo[i].curr, 0,
i                1664 dev/ic/aic7xxx.c 			      sizeof(tstate->transinfo[i].curr));
i                1665 dev/ic/aic7xxx.c 			memset(&tstate->transinfo[i].goal, 0,
i                1666 dev/ic/aic7xxx.c 			      sizeof(tstate->transinfo[i].goal));
i                2167 dev/ic/aic7xxx.c 	int	i;
i                2214 dev/ic/aic7xxx.c 	for (i = 0; i < ahc->scb_data->maxhscbs; i++) {
i                2219 dev/ic/aic7xxx.c 		ahc_outb(ahc, SCBPTR, i);
i                3975 dev/ic/aic7xxx.c 	int i;
i                3994 dev/ic/aic7xxx.c 	for (i = 0; i < AHC_NUM_TARGETS; i++) {
i                3997 dev/ic/aic7xxx.c 		tstate = ahc->enabled_targets[i];
i                4037 dev/ic/aic7xxx.c 	int	i;
i                4047 dev/ic/aic7xxx.c 	for (i = TARG_SCSIRATE; i < SCSICONF; i++)
i                4048 dev/ic/aic7xxx.c 		ahc_outb(ahc, i, 0);
i                4168 dev/ic/aic7xxx.c 	int i;
i                4170 dev/ic/aic7xxx.c 	for (i = 0; i < AHC_SCB_MAX; i++) {
i                4172 dev/ic/aic7xxx.c 		ahc_outb(ahc, SCBPTR, i);
i                4173 dev/ic/aic7xxx.c 		ahc_outb(ahc, SCB_BASE, i);
i                4174 dev/ic/aic7xxx.c 		if (ahc_inb(ahc, SCB_BASE) != i)
i                4180 dev/ic/aic7xxx.c 	return (i);
i                4198 dev/ic/aic7xxx.c 	int i;
i                4204 dev/ic/aic7xxx.c 	for (i = 0; i < ahc->scb_data->maxhscbs; i++) {
i                4207 dev/ic/aic7xxx.c 		ahc_outb(ahc, SCBPTR, i);
i                4222 dev/ic/aic7xxx.c 			ahc_outb(ahc, SCB_NEXT, i+1);
i                4241 dev/ic/aic7xxx.c 	ahc_outb(ahc, SCBPTR, i-1);
i                4249 dev/ic/aic7xxx.c 	int i;
i                4304 dev/ic/aic7xxx.c 		i = scb_data->numscbs;
i                4306 dev/ic/aic7xxx.c 	} while ((i != scb_data->numscbs) && 
i                4385 dev/ic/aic7xxx.c 	int i;
i                4416 dev/ic/aic7xxx.c 	for (i = 0; i < newcount; i++) {
i                4508 dev/ic/aic7xxx.c 	u_int	 i;
i                4551 dev/ic/aic7xxx.c 	for (i = 0; i < 16; i++) {
i                4552 dev/ic/aic7xxx.c 		ahc_unbusy_tcl(ahc, BUILD_TCL(i << 4, 0));
i                4561 dev/ic/aic7xxx.c 				ahc_unbusy_tcl(ahc, BUILD_TCL(i << 4, lun));
i                4566 dev/ic/aic7xxx.c 	for (i = 0; i < 256; i++)
i                4567 dev/ic/aic7xxx.c 		ahc->qoutfifo[i] = SCB_LIST_NULL;
i                4573 dev/ic/aic7xxx.c 	for (i = 0; i < 256; i++)
i                4574 dev/ic/aic7xxx.c 		ahc->qinfifo[i] = SCB_LIST_NULL;
i                4697 dev/ic/aic7xxx.c 	u_int	 i;
i                4711 dev/ic/aic7xxx.c 	for (i = 0x20; i < 0x5f; i++) {
i                4712 dev/ic/aic7xxx.c 		if (((i % 8) == 0) && (i != 0)) {
i                4715 dev/ic/aic7xxx.c 		printf (" 0x%x", ahc_inb(ahc, i));
i                4718 dev/ic/aic7xxx.c 		for (i = 0x70; i < 0x7f; i++) {
i                4719 dev/ic/aic7xxx.c 			if (((i % 8) == 0) && (i != 0)) {
i                4722 dev/ic/aic7xxx.c 			printf (" 0x%x", ahc_inb(ahc, i));
i                4783 dev/ic/aic7xxx.c 		for (i = 0; i < AHC_TMODE_CMDS; i++)
i                4784 dev/ic/aic7xxx.c 			ahc->targetcmds[i].cmd_valid = 0;
i                4879 dev/ic/aic7xxx.c 	for (i = 0; i <= max_targ; i++) {
i                4888 dev/ic/aic7xxx.c 		target_id = i;
i                4889 dev/ic/aic7xxx.c 		if (i > 7 && (ahc->features & AHC_TWIN) != 0) {
i                4892 dev/ic/aic7xxx.c 			target_id = i % 8;
i                4913 dev/ic/aic7xxx.c 			scsirate = ahc_inb(ahc, TARG_SCSIRATE + i);
i                4914 dev/ic/aic7xxx.c 			mask = (0x01 << i);
i                4930 dev/ic/aic7xxx.c 					offset = ahc_inb(ahc, TARG_OFFSET + i);
i                5398 dev/ic/aic7xxx.c 	int	i;
i                5409 dev/ic/aic7xxx.c 	i = 0;
i                5415 dev/ic/aic7xxx.c 			i = target;
i                5417 dev/ic/aic7xxx.c 				i += 8;
i                5418 dev/ic/aic7xxx.c 			maxtarget = i + 1;
i                5424 dev/ic/aic7xxx.c 	for (; i < maxtarget; i++) {
i                5428 dev/ic/aic7xxx.c 		untagged_q = &(ahc->untagged_queues[i]);
i                5656 dev/ic/aic7xxx.c 	int	i, j;
i                5678 dev/ic/aic7xxx.c 	i = 0;
i                5681 dev/ic/aic7xxx.c 		i = target;
i                5683 dev/ic/aic7xxx.c 			i += 8;
i                5684 dev/ic/aic7xxx.c 		maxtarget = i + 1;
i                5705 dev/ic/aic7xxx.c 		for (;i < maxtarget; i++) {
i                5710 dev/ic/aic7xxx.c 				tcl = BUILD_TCL(i << 4, j);
i                5717 dev/ic/aic7xxx.c 				ahc_unbusy_tcl(ahc, BUILD_TCL(i << 4, j));
i                5739 dev/ic/aic7xxx.c 	for (i = 0; i < ahc->scb_data->maxhscbs; i++) {
i                5742 dev/ic/aic7xxx.c 		ahc_outb(ahc, SCBPTR, i);
i                6149 dev/ic/aic7xxx.c 	int i;
i                6154 dev/ic/aic7xxx.c 	for (i = 0; i < ahc->instruction_ram_size; i++) {
i                6175 dev/ic/aic7xxx.c 	u_int	i;
i                6211 dev/ic/aic7xxx.c 	for (i = 0; i < sizeof(seqprog)/4; i++) {
i                6212 dev/ic/aic7xxx.c 		if (ahc_check_patch(ahc, &cur_patch, i, &skip_addr) == 0) {
i                6237 dev/ic/aic7xxx.c 			if (critical_sections[cur_cs].end <= i) {
i                6246 dev/ic/aic7xxx.c 			if (critical_sections[cur_cs].begin <= i
i                6253 dev/ic/aic7xxx.c 		ahc_download_instr(ahc, i, download_consts);
i                6344 dev/ic/aic7xxx.c 		u_int i;
i                6352 dev/ic/aic7xxx.c 		for (i = 0; i < address;) {
i                6354 dev/ic/aic7xxx.c 			ahc_check_patch(ahc, &cur_patch, i, &skip_addr);
i                6356 dev/ic/aic7xxx.c 			if (skip_addr > i) {
i                6360 dev/ic/aic7xxx.c 				address_offset += end_addr - i;
i                6361 dev/ic/aic7xxx.c 				i = skip_addr;
i                6363 dev/ic/aic7xxx.c 				i++;
i                6398 dev/ic/aic7xxx.c 			int i, count;
i                6401 dev/ic/aic7xxx.c 			for (i = 0, count = 0; i < 31; i++) {
i                6404 dev/ic/aic7xxx.c 				mask = 0x01 << i;
i                6495 dev/ic/aic7xxx.c 	int	i;
i                6547 dev/ic/aic7xxx.c 	for (i = 0; i < STACK_SIZE; i++)
i                6568 dev/ic/aic7xxx.c 	i = 0;
i                6569 dev/ic/aic7xxx.c 	while (scb_index != SCB_LIST_NULL && i++ < 256) {
i                6578 dev/ic/aic7xxx.c 	i = 0;
i                6579 dev/ic/aic7xxx.c 	while (scb_index != SCB_LIST_NULL && i++ < 256) {
i                6589 dev/ic/aic7xxx.c 	i = 0;
i                6590 dev/ic/aic7xxx.c 	while (ahc->qoutfifo[qoutpos] != SCB_LIST_NULL && i++ < 256) {
i                6598 dev/ic/aic7xxx.c 	i = 0;
i                6599 dev/ic/aic7xxx.c 	while (scb_index != SCB_LIST_NULL && i++ < 256) {
i                6607 dev/ic/aic7xxx.c 	for (i = 0; i < ahc->scb_data->maxhscbs; i++) {
i                6608 dev/ic/aic7xxx.c 		ahc_outb(ahc, SCBPTR, i);
i                6609 dev/ic/aic7xxx.c 		/*cur_col =*/ printf("\n%3d ", i);
i                6619 dev/ic/aic7xxx.c 	i = 0;
i                6621 dev/ic/aic7xxx.c 		if (i++ > 256)
i                6639 dev/ic/aic7xxx.c 	i = 0;
i                6641 dev/ic/aic7xxx.c 		if (i++ > 256)
i                6653 dev/ic/aic7xxx.c 		i = 0;
i                6655 dev/ic/aic7xxx.c 			if (i++ > 256)
i                6973 dev/ic/aic7xxx.c 		int i, empty;
i                7021 dev/ic/aic7xxx.c 			for (empty = 1, i = 0; i < 8; i++)
i                7022 dev/ic/aic7xxx.c 				if (tstate->enabled_luns[i] != NULL) {
i                 176 dev/ic/aic7xxx_seeprom.c 			int	  i;
i                 179 dev/ic/aic7xxx_seeprom.c 			for (i = 0; i < 32; i++, sc_data++) {
i                 182 dev/ic/aic7xxx_seeprom.c 				j = i * 2;
i                 249 dev/ic/aic7xxx_seeprom.c 	int	 i;
i                 262 dev/ic/aic7xxx_seeprom.c 		for (i = 0; i < max_targ; i++) {
i                 263 dev/ic/aic7xxx_seeprom.c 			if ((sc->device_flags[i] & CFSYNCHISULTRA) != 0) {
i                 270 dev/ic/aic7xxx_seeprom.c 	for (i = 0; i < max_targ; i++) {
i                 274 dev/ic/aic7xxx_seeprom.c 		target_mask = 0x01 << i;
i                 275 dev/ic/aic7xxx_seeprom.c 		if (sc->device_flags[i] & CFDISC)
i                 278 dev/ic/aic7xxx_seeprom.c 			if ((sc->device_flags[i] & CFSYNCHISULTRA) != 0)
i                 283 dev/ic/aic7xxx_seeprom.c 		if ((sc->device_flags[i] & CFXFER) == 0x04
i                 286 dev/ic/aic7xxx_seeprom.c 			sc->device_flags[i] &= ~CFXFER;
i                 292 dev/ic/aic7xxx_seeprom.c 			if (sc->device_flags[i] & CFSYNCH)
i                 296 dev/ic/aic7xxx_seeprom.c 			ahc_outb(ahc, TARG_OFFSET + i, offset);
i                 303 dev/ic/aic7xxx_seeprom.c 			scsirate = (sc->device_flags[i] & CFXFER)
i                 305 dev/ic/aic7xxx_seeprom.c 			if (sc->device_flags[i] & CFWIDEB)
i                 308 dev/ic/aic7xxx_seeprom.c 			scsirate = (sc->device_flags[i] & CFXFER) << 4;
i                 309 dev/ic/aic7xxx_seeprom.c 			if (sc->device_flags[i] & CFSYNCH)
i                 311 dev/ic/aic7xxx_seeprom.c 			if (sc->device_flags[i] & CFWIDEB)
i                 314 dev/ic/aic7xxx_seeprom.c 		ahc_outb(ahc, TARG_SCSIRATE + i, scsirate);
i                 760 dev/ic/aic7xxx_seeprom.c 	int i;
i                 769 dev/ic/aic7xxx_seeprom.c 	for (i = 0; i < maxaddr; i++)
i                 770 dev/ic/aic7xxx_seeprom.c 		checksum = checksum + scarray[i];
i                 194 dev/ic/am79c930.c 	int i;
i                 202 dev/ic/am79c930.c 	for (i=0; i<len; i++)
i                 203 dev/ic/am79c930.c 		bus_space_write_1(sc->sc_iot,sc->sc_ioh,AM79C930_IODPA,ptr[i]);
i                 268 dev/ic/am79c930.c 	int i;
i                 275 dev/ic/am79c930.c 	for (i=0; i<len; i++) 
i                 276 dev/ic/am79c930.c 		ptr[i] = bus_space_read_1(sc->sc_iot, sc->sc_ioh,
i                 424 dev/ic/am79c930.c 	int i;
i                 427 dev/ic/am79c930.c 	for (i=0; i<8; i++) {
i                 428 dev/ic/am79c930.c 		buf[i] = bus_space_read_1 (sc->sc_iot, sc->sc_ioh, i);
i                 432 dev/ic/am79c930.c 	for (i=0; i<8; i++) {
i                 433 dev/ic/am79c930.c 		printf(" %02x", buf[i]);
i                 288 dev/ic/ami.c   	int i;
i                 290 dev/ic/ami.c   	for (i = 0; i < sc->sc_nunits; i++) {
i                 291 dev/ic/ami.c   		sc->sc_hdr[i].hd_present = 1;
i                 292 dev/ic/ami.c   		sc->sc_hdr[i].hd_is_logdrv = 1;
i                 293 dev/ic/ami.c   		sc->sc_hdr[i].hd_size = letoh32(sizes[i]);
i                 294 dev/ic/ami.c   		sc->sc_hdr[i].hd_prop = props[i];
i                 295 dev/ic/ami.c   		sc->sc_hdr[i].hd_stat = stats[i];
i                 304 dev/ic/ami.c   	int i, error;
i                 325 dev/ic/ami.c   	for (i = 0; i < nccbs; i++) {
i                 326 dev/ic/ami.c   		ccb = &sc->sc_ccbs[i];
i                 327 dev/ic/ami.c   		mem = &ccbmem[i];
i                 339 dev/ic/ami.c   		ccb->ccb_cmd.acc_id = i + 1;
i                 340 dev/ic/ami.c   		ccb->ccb_offset = sizeof(struct ami_ccbmem) * i;
i                 637 dev/ic/ami.c   	u_int32_t i, n;
i                 652 dev/ic/ami.c   	i = 0;
i                 657 dev/ic/ami.c   		if (i++ > 1000000)
i                 665 dev/ic/ami.c   	i = 0;
i                 672 dev/ic/ami.c   			if (i++ > 1000000)
i                 705 dev/ic/ami.c   	u_int32_t i;
i                 711 dev/ic/ami.c   	i = 0;
i                 712 dev/ic/ami.c   	while (sc->sc_mbox->acc_busy && (i < AMI_MAX_BUSYWAIT)) {
i                 714 dev/ic/ami.c   		i++;
i                 736 dev/ic/ami.c   	while ((sc->sc_mbox->acc_nstat == 0xff) && (i < AMI_MAX_POLLWAIT)) {
i                 738 dev/ic/ami.c   		i++;
i                 740 dev/ic/ami.c   	if (i >= AMI_MAX_POLLWAIT) {
i                 749 dev/ic/ami.c   	while ((sc->sc_mbox->acc_status == 0xff) && (i < AMI_MAX_POLLWAIT)) {
i                 751 dev/ic/ami.c   		i++;
i                 753 dev/ic/ami.c   	if (i >= AMI_MAX_POLLWAIT) {
i                 762 dev/ic/ami.c   	while ((sc->sc_mbox->acc_poll != 0x77) && (i < AMI_MAX_POLLWAIT)) {
i                 764 dev/ic/ami.c   		i++;
i                 766 dev/ic/ami.c   	if (i >= AMI_MAX_POLLWAIT) {
i                 780 dev/ic/ami.c   	    (i < AMI_MAX_POLLWAIT)) {
i                 782 dev/ic/ami.c   		i++;
i                 784 dev/ic/ami.c   	if (i >= AMI_MAX_POLLWAIT) {
i                 791 dev/ic/ami.c   	for (i = 0; i < AMI_MAXSTATACK; i++)
i                 792 dev/ic/ami.c   		sc->sc_mbox->acc_cmplidl[i] = 0xff;
i                 865 dev/ic/ami.c   	u_int32_t i;
i                 871 dev/ic/ami.c   	for (i = 0; i < AMI_MAX_POLLWAIT; i++) {
i                 877 dev/ic/ami.c   	if (i >= AMI_MAX_POLLWAIT) {
i                 893 dev/ic/ami.c   	for (i = 0; i < AMI_MAX_POLLWAIT; i++) {
i                 899 dev/ic/ami.c   	if (i >= AMI_MAX_POLLWAIT) {
i                 907 dev/ic/ami.c   	for (i = 0; i < AMI_MAX_POLLWAIT; i++) {
i                 913 dev/ic/ami.c   	if (i >= AMI_MAX_POLLWAIT) {
i                1018 dev/ic/ami.c   	int i = 0, j, done = 0;
i                1027 dev/ic/ami.c   	while (i < AMI_MAX_BUSYWAIT) {
i                1035 dev/ic/ami.c   		i++;
i                1040 dev/ic/ami.c   	i = 0;
i                1041 dev/ic/ami.c   	while (i < timeout) {
i                1054 dev/ic/ami.c   		i++;
i                1354 dev/ic/ami.c   	int error, i;
i                1376 dev/ic/ami.c   			for (i = 0; i < dmap->dm_nsegs; i++) {
i                1377 dev/ic/ami.c   				sgl[i].asg_addr = htole32(sgd[i].ds_addr);
i                1378 dev/ic/ami.c   				sgl[i].asg_len = htole32(sgd[i].ds_len);
i                1414 dev/ic/ami.c   	int i;
i                1596 dev/ic/ami.c   		for (i = 0; i < ccb->ccb_dmamap->dm_nsegs; i++) {
i                1597 dev/ic/ami.c   			sgl[i].asg_addr = htole32(sgd[i].ds_addr);
i                1598 dev/ic/ami.c   			sgl[i].asg_len = htole32(sgd[i].ds_len);
i                1621 dev/ic/ami.c   	int i, rv = 0;
i                1630 dev/ic/ami.c   		for (i = 0; i < mbox.acc_nstat; i++ ) {
i                1631 dev/ic/ami.c   			int ready = mbox.acc_cmplidl[i];
i                1866 dev/ic/ami.c   	int i, s, t;
i                1894 dev/ic/ami.c   	for (i = 0; i < p->ada_nld; i++)
i                1895 dev/ic/ami.c   		for (s = 0; s < p->ald[i].adl_spandepth; s++)
i                1896 dev/ic/ami.c   			for (t = 0; t < p->ald[i].adl_nstripes; t++) {
i                1897 dev/ic/ami.c   				off = p->ald[i].asp[s].adv[t].add_channel *
i                1899 dev/ic/ami.c   				    p->ald[i].asp[s].adv[t].add_target;
i                1914 dev/ic/ami.c   	for(i = 0; i < ((sc->sc_flags & AMI_QUARTZ) ?
i                1915 dev/ic/ami.c   	    AMI_BIG_MAX_PDRIVES : AMI_MAX_PDRIVES); i++) {
i                1917 dev/ic/ami.c   	    	if (plist[i])
i                1924 dev/ic/ami.c   		if (p->apd[i].adp_size) {
i                1925 dev/ic/ami.c   			ch = (i & 0xf0) >> 4;
i                1926 dev/ic/ami.c   			tg = i & 0x0f;
i                1931 dev/ic/ami.c   				plist[i] = 1;
i                1949 dev/ic/ami.c   	int i, s, t, off;
i                1960 dev/ic/ami.c   	for (i = 0; i < p->ada_nld; i++)
i                1961 dev/ic/ami.c   		for (s = 0; s < p->ald[i].adl_spandepth; s++)
i                1962 dev/ic/ami.c   			for (t = 0; t < p->ald[i].adl_nstripes; t++) {
i                1963 dev/ic/ami.c   				off = p->ald[i].asp[s].adv[t].add_channel *
i                1965 dev/ic/ami.c   				    p->ald[i].asp[s].adv[t].add_target;
i                1971 dev/ic/ami.c   	for(i = 0; i < ((sc->sc_flags & AMI_QUARTZ) ?
i                1972 dev/ic/ami.c   	    AMI_BIG_MAX_PDRIVES : AMI_MAX_PDRIVES); i++) {
i                1974 dev/ic/ami.c   	    	if (plist[i])
i                1981 dev/ic/ami.c   		if (p->apd[i].adp_size) {
i                1982 dev/ic/ami.c   			ch = (i & 0xf0) >> 4;
i                1983 dev/ic/ami.c   			tg = i & 0x0f;
i                1992 dev/ic/ami.c   				bv->bv_size = (u_quad_t)p->apd[i].adp_size *
i                1999 dev/ic/ami.c   				if (p->apd[i].adp_ostatus == AMI_PD_HOTSPARE
i                2000 dev/ic/ami.c   				    && p->apd[i].adp_type == 0)
i                2024 dev/ic/ami.c   	int i, s, t, off;
i                2035 dev/ic/ami.c   	for (i = 0; i < p->ada_nld; i++)
i                2036 dev/ic/ami.c   		for (s = 0; s < p->ald[i].adl_spandepth; s++)
i                2037 dev/ic/ami.c   			for (t = 0; t < p->ald[i].adl_nstripes; t++) {
i                2038 dev/ic/ami.c   				off = p->ald[i].asp[s].adv[t].add_channel *
i                2040 dev/ic/ami.c   				    p->ald[i].asp[s].adv[t].add_target;
i                2046 dev/ic/ami.c   	for(i = 0; i < ((sc->sc_flags & AMI_QUARTZ) ?
i                2047 dev/ic/ami.c   	    AMI_BIG_MAX_PDRIVES : AMI_MAX_PDRIVES); i++) {
i                2051 dev/ic/ami.c   	    	if (plist[i])
i                2055 dev/ic/ami.c   		if (!p->apd[i].adp_size)
i                2058 dev/ic/ami.c   		ch = (i & 0xf0) >> 4;
i                2059 dev/ic/ami.c   		tg = i & 0x0f;
i                2090 dev/ic/ami.c   		bd->bd_size = (u_quad_t)p->apd[i].adp_size * (u_quad_t)512;
i                2098 dev/ic/ami.c   		if (p->apd[i].adp_ostatus == AMI_PD_HOTSPARE)
i                2104 dev/ic/ami.c   		if (p->apd[i].adp_type != 0)
i                2106 dev/ic/ami.c   			    ch, tg, p->apd[i].adp_type, inqbuf.device);
i                2123 dev/ic/ami.c   	int i, s, t, off;
i                2140 dev/ic/ami.c   	i = bv->bv_volid;
i                2142 dev/ic/ami.c   	switch (p->ald[i].adl_status) {
i                2160 dev/ic/ami.c   		if ((bgi[i / 8] & (1 << i % 8)) == 0)
i                2163 dev/ic/ami.c   		if (!ami_mgmt(sc, AMI_GCHECKPROGR, i, 0, 0, sizeof perc, &perc))
i                2176 dev/ic/ami.c   	for (s = 0; s < p->ald[i].adl_spandepth; s++)
i                2177 dev/ic/ami.c   		for (t = 0; t < p->ald[i].adl_nstripes; t++) {
i                2178 dev/ic/ami.c   			off = p->ald[i].asp[s].adv[t].add_channel *
i                2180 dev/ic/ami.c   			    p->ald[i].asp[s].adv[t].add_target;
i                2188 dev/ic/ami.c   			    p->ald[i].asp[s].adv[t].add_channel,
i                2189 dev/ic/ami.c   			    p->ald[i].asp[s].adv[t].add_target, 0,
i                2203 dev/ic/ami.c   	bv->bv_level = p->ald[i].adl_raidlvl;
i                2206 dev/ic/ami.c   	for (s = 0; s < p->ald[i].adl_spandepth; s++) {
i                2207 dev/ic/ami.c   		for (t = 0; t < p->ald[i].adl_nstripes; t++)
i                2212 dev/ic/ami.c   			bv->bv_size += p->ald[i].asp[s].ads_length *
i                2213 dev/ic/ami.c   			    p->ald[i].adl_nstripes;
i                2217 dev/ic/ami.c   			bv->bv_size += p->ald[i].asp[s].ads_length;
i                2221 dev/ic/ami.c   			bv->bv_size += p->ald[i].asp[s].ads_length *
i                2222 dev/ic/ami.c   			    (p->ald[i].adl_nstripes - 1);
i                2227 dev/ic/ami.c   	if (p->ald[i].adl_spandepth > 1)
i                2232 dev/ic/ami.c   	strlcpy(bv->bv_dev, sc->sc_hdr[i].dev, sizeof(bv->bv_dev));
i                2246 dev/ic/ami.c   	int i, s, t, d;
i                2263 dev/ic/ami.c   	i = bd->bd_volid;
i                2266 dev/ic/ami.c   	for (s = 0, d = 0; s < p->ald[i].adl_spandepth; s++)
i                2267 dev/ic/ami.c   		for (t = 0; t < p->ald[i].adl_nstripes; t++) {
i                2273 dev/ic/ami.c   			off = p->ald[i].asp[s].adv[t].add_channel *
i                2275 dev/ic/ami.c   			    p->ald[i].asp[s].adv[t].add_target;
i                2305 dev/ic/ami.c   			ch = p->ald[i].asp[s].adv[t].add_target >> 4;
i                2306 dev/ic/ami.c   			tg = p->ald[i].asp[s].adv[t].add_target & 0x0f;
i                2434 dev/ic/ami.c   	int i;
i                2458 dev/ic/ami.c   	for (i = 0; i < sc->sc_nunits; i++) {
i                2459 dev/ic/ami.c   		if (ssc->sc_link[i][0] == NULL)
i                2462 dev/ic/ami.c   		dev = ssc->sc_link[i][0]->device_softc;
i                2464 dev/ic/ami.c   		sc->sc_sensors[i].type = SENSOR_DRIVE;
i                2465 dev/ic/ami.c   		sc->sc_sensors[i].status = SENSOR_S_UNKNOWN;
i                2467 dev/ic/ami.c   		strlcpy(sc->sc_sensors[i].desc, dev->dv_xname,
i                2468 dev/ic/ami.c   		    sizeof(sc->sc_sensors[i].desc));
i                2470 dev/ic/ami.c   		sensor_attach(&sc->sc_sensordev, &sc->sc_sensors[i]);
i                2496 dev/ic/ami.c   	int i;
i                2500 dev/ic/ami.c   		for (i = 0; i < sc->sc_nunits; i++) {
i                2501 dev/ic/ami.c   			sc->sc_sensors[i].value = 0; /* unknown */
i                2502 dev/ic/ami.c   			sc->sc_sensors[i].status = SENSOR_S_UNKNOWN;
i                2507 dev/ic/ami.c   	for (i = 0; i < sc->sc_nunits; i++) {
i                2508 dev/ic/ami.c   		switch (sc->sc_bd->ald[i].adl_status) {
i                2510 dev/ic/ami.c   			sc->sc_sensors[i].value = SENSOR_DRIVE_FAIL;
i                2511 dev/ic/ami.c   			sc->sc_sensors[i].status = SENSOR_S_CRIT;
i                2515 dev/ic/ami.c   			sc->sc_sensors[i].value = SENSOR_DRIVE_PFAIL;
i                2516 dev/ic/ami.c   			sc->sc_sensors[i].status = SENSOR_S_WARN;
i                2520 dev/ic/ami.c   			sc->sc_sensors[i].value = SENSOR_DRIVE_ONLINE;
i                2521 dev/ic/ami.c   			sc->sc_sensors[i].status = SENSOR_S_OK;
i                2525 dev/ic/ami.c   			sc->sc_sensors[i].value = 0; /* unknown */
i                2526 dev/ic/ami.c   			sc->sc_sensors[i].status = SENSOR_S_UNKNOWN;
i                2537 dev/ic/ami.c   	int i;
i                2545 dev/ic/ami.c   	for (i = 0; i < AMI_MAXSTATACK; i++) {
i                2546 dev/ic/ami.c   		printf("[%d] = %d  ", i, mbox->acc_cmplidl[i]);
i                 187 dev/ic/an.c    	int i;
i                 315 dev/ic/an.c    	for (i = 0; i < sizeof(sc->sc_caps.an_rates); i++) {
i                 316 dev/ic/an.c    		if (sc->sc_caps.an_rates[i] == 0)
i                 320 dev/ic/an.c    		    sc->sc_caps.an_rates[i];
i                 535 dev/ic/an.c    	int i;
i                 550 dev/ic/an.c    	for (i = 0; i < 10; i++) {
i                 586 dev/ic/an.c    	int i, stat;
i                 606 dev/ic/an.c    	for (i = 0; i < AN_TIMEOUT; i++) {
i                 621 dev/ic/an.c    	if (i == AN_TIMEOUT) {
i                 688 dev/ic/an.c    	int i;
i                 691 dev/ic/an.c    	for (i = 0; i < 3*hz; i++) {
i                 745 dev/ic/an.c    	int i, status;
i                 750 dev/ic/an.c    	for (i = 0; ; i++) {
i                 754 dev/ic/an.c    		if (i == AN_TIMEOUT) {
i                 813 dev/ic/an.c    	int i;
i                 821 dev/ic/an.c    	for (i = 0; i < AN_TIMEOUT; i++) {
i                 824 dev/ic/an.c    		if (i == AN_TIMEOUT) {
i                 947 dev/ic/an.c    	int i, error, fid;
i                 966 dev/ic/an.c    	for (i = 0; i < AN_TX_RING_CNT; i++) {
i                 973 dev/ic/an.c    		DPRINTF2(("an_init: txbuf %d allocated %x\n", i, fid));
i                 974 dev/ic/an.c    		sc->sc_txd[i].d_fid = fid;
i                 975 dev/ic/an.c    		sc->sc_txd[i].d_inuse = 0;
i                1045 dev/ic/an.c    	for (i = 0; i < AN_ENCAP_NENTS; i++) {
i                1046 dev/ic/an.c    		sc->sc_buf.sc_encap.an_entry[i].an_ethertype = 0;
i                1047 dev/ic/an.c    		sc->sc_buf.sc_encap.an_entry[i].an_action =
i                1237 dev/ic/an.c    	int i, s;
i                1251 dev/ic/an.c    		for (i = 0; i < AN_TX_RING_CNT; i++)
i                1252 dev/ic/an.c    			an_cmd(sc, AN_CMD_DEALLOC_MEM, sc->sc_txd[i].d_fid);
i                1304 dev/ic/an.c    	int i, rate, error = 0;
i                1308 dev/ic/an.c    		i = -1;
i                1315 dev/ic/an.c    		for (i = 0; i < rs->rs_nrates; i++) {
i                1316 dev/ic/an.c    			if ((rs->rs_rates[i] & IEEE80211_RATE_VAL) == rate)
i                1319 dev/ic/an.c    		if (i == rs->rs_nrates)
i                1322 dev/ic/an.c    	if (ic->ic_fixed_rate != i) {
i                1323 dev/ic/an.c    		ic->ic_fixed_rate = i;
i                1431 dev/ic/an.c    	int i, txkey, anysetkey, needreset, error;
i                1439 dev/ic/an.c    	for (i = 0; i < IEEE80211_WEP_NKID; i++) {
i                1440 dev/ic/an.c    		keys[i].an_wep_keylen = nwkey->i_key[i].i_keylen;
i                1441 dev/ic/an.c    		if (keys[i].an_wep_keylen < 0)
i                1443 dev/ic/an.c    		if (keys[i].an_wep_keylen != 0 &&
i                1444 dev/ic/an.c    		    keys[i].an_wep_keylen < IEEE80211_WEP_KEYLEN)
i                1446 dev/ic/an.c    		if (keys[i].an_wep_keylen > sizeof(keys[i].an_wep_key))
i                1448 dev/ic/an.c    		if ((error = copyin(nwkey->i_key[i].i_keydat,
i                1449 dev/ic/an.c    		    keys[i].an_wep_key, keys[i].an_wep_keylen)) != 0)
i                1480 dev/ic/an.c    		for (i = 0; i < IEEE80211_WEP_NKID; i++) {
i                1481 dev/ic/an.c    			if (keys[i].an_wep_keylen < 0)
i                1483 dev/ic/an.c    			memcpy(&sc->sc_wepkeys[i], &keys[i], sizeof(keys[i]));
i                1514 dev/ic/an.c    		for (i = 0; i < IEEE80211_WEP_NKID; i++) {
i                1515 dev/ic/an.c    			if (sc->sc_wepkeys[i].an_wep_keylen >= 0) {
i                1516 dev/ic/an.c    				memset(&sc->sc_wepkeys[i].an_wep_key, 0,
i                1517 dev/ic/an.c    				    sizeof(sc->sc_wepkeys[i].an_wep_key));
i                1518 dev/ic/an.c    				sc->sc_wepkeys[i].an_wep_keylen = -1;
i                1521 dev/ic/an.c    			if (keys[i].an_wep_keylen >= 0)
i                1522 dev/ic/an.c    				sc->sc_perskeylen[i] = keys[i].an_wep_keylen;
i                1537 dev/ic/an.c    	int i, error;
i                1552 dev/ic/an.c    	for (i = 0; i < IEEE80211_WEP_NKID; i++) {
i                1553 dev/ic/an.c    		if (nwkey->i_key[i].i_keydat == NULL)
i                1558 dev/ic/an.c    		nwkey->i_key[i].i_keylen = sc->sc_wepkeys[i].an_wep_keylen;
i                1559 dev/ic/an.c    		if (nwkey->i_key[i].i_keylen < 0) {
i                1560 dev/ic/an.c    			if (sc->sc_perskeylen[i] == 0)
i                1561 dev/ic/an.c    				nwkey->i_key[i].i_keylen = 0;
i                1564 dev/ic/an.c    		if ((error = copyout(sc->sc_wepkeys[i].an_wep_key,
i                1565 dev/ic/an.c    		    nwkey->i_key[i].i_keydat,
i                1566 dev/ic/an.c    		    sc->sc_wepkeys[i].an_wep_keylen)) != 0)
i                1575 dev/ic/an.c    	int i, error;
i                1580 dev/ic/an.c    	for (i = 0; i < IEEE80211_WEP_NKID; i++) {
i                1582 dev/ic/an.c    		if (keys[i].an_wep_keylen < 0 ||
i                1583 dev/ic/an.c    		    keys[i].an_wep_keylen > sizeof(akey->an_key))
i                1585 dev/ic/an.c    		akey->an_key_len = keys[i].an_wep_keylen;
i                1586 dev/ic/an.c    		akey->an_key_index = i;
i                1589 dev/ic/an.c    		memcpy(akey->an_key, keys[i].an_wep_key, keys[i].an_wep_keylen);
i                 196 dev/ic/ar5210.c 	int i;
i                 217 dev/ic/ar5210.c 	for (i = 0; i < 4; i++)
i                 370 dev/ic/ar5210.c 	int i;
i                 389 dev/ic/ar5210.c 	for (i = 0; i < AR5K_ELEMENTS(ar5210_ini); i++) {
i                 391 dev/ic/ar5210.c 		    ar5210_ini[i].ini_register >= AR5K_AR5210_PCU_MIN &&
i                 392 dev/ic/ar5210.c 		    ar5210_ini[i].ini_register <= AR5K_AR5210_PCU_MAX)
i                 395 dev/ic/ar5210.c 		switch (ar5210_ini[i].ini_mode) {
i                 398 dev/ic/ar5210.c 			AR5K_REG_READ(ar5210_ini[i].ini_register);
i                 403 dev/ic/ar5210.c 			AR5K_REG_WRITE(ar5210_ini[i].ini_register,
i                 404 dev/ic/ar5210.c 			    ar5210_ini[i].ini_value);
i                 446 dev/ic/ar5210.c 	for (i = 0; i < hal->ah_capabilities.cap_queues.q_tx_num; i++) {
i                 447 dev/ic/ar5210.c 		if (ar5k_ar5210_reset_tx_queue(hal, i) == AH_FALSE) {
i                 448 dev/ic/ar5210.c 			AR5K_PRINTF("failed to reset TX queue #%d\n", i);
i                 647 dev/ic/ar5210.c 	int i;
i                 664 dev/ic/ar5210.c 	for (i = 20; i > 0; i--) {
i                 799 dev/ic/ar5210.c 	int i;
i                 808 dev/ic/ar5210.c 	for (i = 0; i < AR5K_ELEMENTS(initial); i++)
i                 809 dev/ic/ar5210.c 		AR5K_REG_WRITE((u_int32_t)initial[i].mode_register,
i                 811 dev/ic/ar5210.c 		    initial[i].mode_turbo : initial[i].mode_base);
i                1195 dev/ic/ar5210.c 	int i;
i                1202 dev/ic/ar5210.c 	for (i = 2000;
i                1203 dev/ic/ar5210.c 	     i > 0 && (AR5K_REG_READ(AR5K_AR5210_CR) & AR5K_AR5210_CR_RXE) != 0;
i                1204 dev/ic/ar5210.c 	     i--)
i                1207 dev/ic/ar5210.c 	return (i > 0 ? AH_TRUE : AH_FALSE);
i                1816 dev/ic/ar5210.c 	int i;
i                1820 dev/ic/ar5210.c 	for (i = 0; i < AR5K_AR5210_KEYCACHE_SIZE; i++)
i                1821 dev/ic/ar5210.c 		AR5K_REG_WRITE(AR5K_AR5210_KEYTABLE_OFF(entry, i), 0);
i                1845 dev/ic/ar5210.c 	int i;
i                1882 dev/ic/ar5210.c 	for (i = 0; i < AR5K_ELEMENTS(key_v); i++)
i                1883 dev/ic/ar5210.c 		AR5K_REG_WRITE(AR5K_AR5210_KEYTABLE_OFF(entry, i), key_v[i]);
i                1921 dev/ic/ar5210.c 	int i;
i                1951 dev/ic/ar5210.c 		for (i = 5000; i > 0; i--) {
i                1964 dev/ic/ar5210.c 		if (i <= 0)
i                2145 dev/ic/ar5210.c 	int i;
i                2150 dev/ic/ar5210.c 	for (i = (AR5K_TUNE_BEACON_INTERVAL / 2); i > 0 &&
i                2154 dev/ic/ar5210.c 		     AR5K_AR5210_CR_TXE1) != 0; i--);
i                2157 dev/ic/ar5210.c 	if (i <= 0) {
i                 345 dev/ic/ar5211.c 	int i;
i                 368 dev/ic/ar5211.c 	for (i = 0; i < 8; i++)
i                 423 dev/ic/ar5211.c 	u_int i, mode, freq, ee_mode, ant[2];
i                 487 dev/ic/ar5211.c 	for (i = 0; i < AR5K_ELEMENTS(ar5211_mode); i++) {
i                 488 dev/ic/ar5211.c 		AR5K_REG_WAIT(i);
i                 489 dev/ic/ar5211.c 		AR5K_REG_WRITE((u_int32_t)ar5211_mode[i].mode_register,
i                 490 dev/ic/ar5211.c 		    ar5211_mode[i].mode_value[mode]);
i                 496 dev/ic/ar5211.c 	for (i = 0; i < AR5K_ELEMENTS(ar5211_ini); i++) {
i                 498 dev/ic/ar5211.c 		    ar5211_ini[i].ini_register >= AR5K_AR5211_PCU_MIN &&
i                 499 dev/ic/ar5211.c 		    ar5211_ini[i].ini_register <= AR5K_AR5211_PCU_MAX)
i                 502 dev/ic/ar5211.c 		AR5K_REG_WAIT(i);
i                 503 dev/ic/ar5211.c 		AR5K_REG_WRITE((u_int32_t)ar5211_ini[i].ini_register,
i                 504 dev/ic/ar5211.c 		    ar5211_ini[i].ini_value);
i                 638 dev/ic/ar5211.c 	for (i = 0; i < hal->ah_capabilities.cap_queues.q_tx_num; i++) {
i                 639 dev/ic/ar5211.c 		AR5K_REG_WRITE_Q(AR5K_AR5211_DCU_QCUMASK(i), i);
i                 640 dev/ic/ar5211.c 		if (ar5k_ar5211_reset_tx_queue(hal, i) == AH_FALSE) {
i                 641 dev/ic/ar5211.c 			AR5K_PRINTF("failed to reset TX queue #%d\n", i);
i                1109 dev/ic/ar5211.c 	int i = 100, pending;
i                1122 dev/ic/ar5211.c 	} while (--i && pending);
i                1302 dev/ic/ar5211.c 	int i;
i                1309 dev/ic/ar5211.c 	for (i = 2000;
i                1310 dev/ic/ar5211.c 	     i > 0 && (AR5K_REG_READ(AR5K_AR5211_CR) & AR5K_AR5211_CR_RXE) != 0;
i                1311 dev/ic/ar5211.c 	     i--)
i                1314 dev/ic/ar5211.c 	return (i > 0 ? AH_TRUE : AH_FALSE);
i                1921 dev/ic/ar5211.c 	int i;
i                1925 dev/ic/ar5211.c 	for (i = 0; i < AR5K_AR5211_KEYCACHE_SIZE; i++)
i                1926 dev/ic/ar5211.c 		AR5K_REG_WRITE(AR5K_AR5211_KEYTABLE_OFF(entry, i), 0);
i                1950 dev/ic/ar5211.c 	int i;
i                1987 dev/ic/ar5211.c 	for (i = 0; i < AR5K_ELEMENTS(key_v); i++)
i                1988 dev/ic/ar5211.c 		AR5K_REG_WRITE(AR5K_AR5211_KEYTABLE_OFF(entry, i), key_v[i]);
i                2026 dev/ic/ar5211.c 	int i;
i                2056 dev/ic/ar5211.c 		for (i = 5000; i > 0; i--) {
i                2069 dev/ic/ar5211.c 		if (i <= 0)
i                2461 dev/ic/ar5211.c 	u_int32_t status, i;
i                2470 dev/ic/ar5211.c 	for (i = AR5K_TUNE_REGISTER_TIMEOUT; i > 0; i--) {
i                2525 dev/ic/ar5211.c 	u_int i;
i                2568 dev/ic/ar5211.c 	for (i = 0; i < AR5K_ELEMENTS(rf); i++) {
i                2569 dev/ic/ar5211.c 		AR5K_REG_WAIT(i);
i                2570 dev/ic/ar5211.c 		AR5K_REG_WRITE((u_int32_t)rf[i].rf_register,
i                2571 dev/ic/ar5211.c 		    rf[i].rf_value[freq]);
i                 357 dev/ic/ar5212.c 	int i;
i                 380 dev/ic/ar5212.c 	for (i = 0; i < 8; i++)
i                 440 dev/ic/ar5212.c 	u_int i, phy, mode, freq, off, ee_mode, ant[2];
i                 522 dev/ic/ar5212.c 	for (i = 0; i < AR5K_ELEMENTS(ar5212_mode); i++) {
i                 523 dev/ic/ar5212.c 		if (ar5212_mode[i].mode_flags == AR5K_INI_FLAG_511X)
i                 525 dev/ic/ar5212.c 		else if (ar5212_mode[i].mode_flags & AR5K_INI_FLAG_5111 &&
i                 528 dev/ic/ar5212.c 		else if (ar5212_mode[i].mode_flags & AR5K_INI_FLAG_5112 &&
i                 534 dev/ic/ar5212.c 		AR5K_REG_WAIT(i);
i                 535 dev/ic/ar5212.c 		AR5K_REG_WRITE((u_int32_t)ar5212_mode[i].mode_register,
i                 536 dev/ic/ar5212.c 		    ar5212_mode[i].mode_value[off][mode]);
i                 542 dev/ic/ar5212.c 	for (i = 0; i < AR5K_ELEMENTS(ar5212_ini); i++) {
i                 544 dev/ic/ar5212.c 		    ar5212_ini[i].ini_register >= AR5K_AR5212_PCU_MIN &&
i                 545 dev/ic/ar5212.c 		    ar5212_ini[i].ini_register <= AR5K_AR5212_PCU_MAX)
i                 549 dev/ic/ar5212.c 		    ar5212_ini[i].ini_flags & AR5K_INI_FLAG_5111) ||
i                 551 dev/ic/ar5212.c 		    ar5212_ini[i].ini_flags & AR5K_INI_FLAG_5112)) {
i                 552 dev/ic/ar5212.c 			AR5K_REG_WAIT(i);
i                 553 dev/ic/ar5212.c 			AR5K_REG_WRITE((u_int32_t)ar5212_ini[i].ini_register,
i                 554 dev/ic/ar5212.c 			    ar5212_ini[i].ini_value);
i                 573 dev/ic/ar5212.c 	for (i = 0; i < rt->rt_rate_count; i++) {
i                 574 dev/ic/ar5212.c 		AR5K_REG_WRITE(AR5K_AR5212_RATE_DUR(rt->rt_info[i].r_rate_code),
i                 576 dev/ic/ar5212.c 		    rt->rt_info[i].r_control_rate, AH_FALSE));
i                 581 dev/ic/ar5212.c 		for (i = 0; i < rt->rt_rate_count; i++) {
i                 582 dev/ic/ar5212.c 			data = AR5K_AR5212_RATE_DUR(rt->rt_info[i].r_rate_code);
i                 585 dev/ic/ar5212.c 			    rt->rt_info[i].r_control_rate, AH_FALSE));
i                 586 dev/ic/ar5212.c 			if (rt->rt_info[i].r_short_preamble) {
i                 588 dev/ic/ar5212.c 				    (rt->rt_info[i].r_short_preamble << 2),
i                 590 dev/ic/ar5212.c 				    rt->rt_info[i].r_control_rate, AH_FALSE));
i                 775 dev/ic/ar5212.c 	for (i = 0; i < hal->ah_capabilities.cap_queues.q_tx_num; i++) {
i                 776 dev/ic/ar5212.c 		AR5K_REG_WRITE_Q(AR5K_AR5212_DCU_QCUMASK(i), i);
i                 777 dev/ic/ar5212.c 		if (ar5k_ar5212_reset_tx_queue(hal, i) == AH_FALSE) {
i                 778 dev/ic/ar5212.c 			AR5K_PRINTF("failed to reset TX queue #%d\n", i);
i                1268 dev/ic/ar5212.c 	int i = 100, pending;
i                1281 dev/ic/ar5212.c 	} while (--i && pending);
i                1533 dev/ic/ar5212.c 	int i;
i                1540 dev/ic/ar5212.c 	for (i = 2000;
i                1541 dev/ic/ar5212.c 	     i > 0 && (AR5K_REG_READ(AR5K_AR5212_CR) & AR5K_AR5212_CR_RXE) != 0;
i                1542 dev/ic/ar5212.c 	     i--)
i                1545 dev/ic/ar5212.c 	return (i > 0 ? AH_TRUE : AH_FALSE);
i                2256 dev/ic/ar5212.c 	int i;
i                2260 dev/ic/ar5212.c 	for (i = 0; i < AR5K_AR5212_KEYCACHE_SIZE; i++)
i                2261 dev/ic/ar5212.c 		AR5K_REG_WRITE(AR5K_AR5212_KEYTABLE_OFF(entry, i), 0);
i                2289 dev/ic/ar5212.c 	int i;
i                2326 dev/ic/ar5212.c 	for (i = 0; i < AR5K_ELEMENTS(key_v); i++)
i                2327 dev/ic/ar5212.c 		AR5K_REG_WRITE(AR5K_AR5212_KEYTABLE_OFF(entry, i), key_v[i]);
i                2365 dev/ic/ar5212.c 	int i;
i                2395 dev/ic/ar5212.c 		for (i = 5000; i > 0; i--) {
i                2408 dev/ic/ar5212.c 		if (i <= 0)
i                2836 dev/ic/ar5212.c 	u_int32_t status, i;
i                2845 dev/ic/ar5212.c 	for (i = AR5K_TUNE_REGISTER_TIMEOUT; i > 0; i--) {
i                2897 dev/ic/ar5212.c 	int i;
i                2914 dev/ic/ar5212.c 	for (i = 0; i < (AR5K_EEPROM_POWER_TABLE_SIZE / 2); i++) {
i                2915 dev/ic/ar5212.c 		AR5K_REG_WRITE(AR5K_AR5212_PHY_PCDAC_TXPOWER(i),
i                2916 dev/ic/ar5212.c 		    ((((hal->ah_txpower.txp_pcdac[(i << 1) + 1] << 8) | 0xff) &
i                2917 dev/ic/ar5212.c 		    0xffff) << 16) | (((hal->ah_txpower.txp_pcdac[i << 1] << 8)
i                 132 dev/ic/ar5xxx.c 	int i;
i                 137 dev/ic/ar5xxx.c 	for (i = 0; i < AR5K_ELEMENTS(ar5k_known_products); i++) {
i                 138 dev/ic/ar5xxx.c 		if (vendor == ar5k_known_products[i].vendor &&
i                 139 dev/ic/ar5xxx.c 		    device == ar5k_known_products[i].device)
i                 157 dev/ic/ar5xxx.c 	int i;
i                 164 dev/ic/ar5xxx.c 	for (i = 0; i < AR5K_ELEMENTS(ar5k_known_products); i++) {
i                 165 dev/ic/ar5xxx.c 		if (device == ar5k_known_products[i].device &&
i                 166 dev/ic/ar5xxx.c 		    ar5k_known_products[i].attach != NULL)
i                 167 dev/ic/ar5xxx.c 			attach = ar5k_known_products[i].attach;
i                 394 dev/ic/ar5xxx.c 	u_int i, c;
i                 403 dev/ic/ar5xxx.c 	i = c = 0;
i                 422 dev/ic/ar5xxx.c 		for (i = min; i <= max && c < max_channels; i++) {
i                 423 dev/ic/ar5xxx.c 			freq = ieee80211_ieee2mhz(i, flags);
i                 451 dev/ic/ar5xxx.c 	for (i = 0; (hal->ah_capabilities.cap_range.range_5ghz_max > 0) &&
i                 452 dev/ic/ar5xxx.c 		 (i < AR5K_ELEMENTS(ar5k_5ghz_channels)) &&
i                 453 dev/ic/ar5xxx.c 		 (c < max_channels); i++) {
i                 456 dev/ic/ar5xxx.c 		    ar5k_5ghz_channels[i].rc_channel,
i                 461 dev/ic/ar5xxx.c 		if ((IEEE80211_DMN(ar5k_5ghz_channels[i].rc_domain) &
i                 466 dev/ic/ar5xxx.c 		if (ar5k_5ghz_channels[i].rc_mode & IEEE80211_CHAN_TURBO) {
i                 468 dev/ic/ar5xxx.c 		} else if (ar5k_5ghz_channels[i].rc_mode &
i                 475 dev/ic/ar5xxx.c 		all_channels[c++].channel = ar5k_5ghz_channels[i].rc_channel;
i                 481 dev/ic/ar5xxx.c 	for (i = 0; (hal->ah_capabilities.cap_range.range_2ghz_max > 0) &&
i                 482 dev/ic/ar5xxx.c 		 (i < AR5K_ELEMENTS(ar5k_2ghz_channels)) &&
i                 483 dev/ic/ar5xxx.c 		 (c < max_channels); i++) {
i                 486 dev/ic/ar5xxx.c 		    ar5k_2ghz_channels[i].rc_channel,
i                 491 dev/ic/ar5xxx.c 		if ((IEEE80211_DMN(ar5k_2ghz_channels[i].rc_domain) &
i                 497 dev/ic/ar5xxx.c 		    (ar5k_2ghz_channels[i].rc_mode & IEEE80211_CHAN_CCK))
i                 501 dev/ic/ar5xxx.c 		    (ar5k_2ghz_channels[i].rc_mode & IEEE80211_CHAN_OFDM)) {
i                 505 dev/ic/ar5xxx.c 			if (ar5k_2ghz_channels[i].rc_mode &
i                 511 dev/ic/ar5xxx.c 		all_channels[c++].channel = ar5k_2ghz_channels[i].rc_channel;
i                 530 dev/ic/ar5xxx.c 	int i;
i                 532 dev/ic/ar5xxx.c 	for (i = 0; i < AR5K_ELEMENTS(names); i++) {
i                 534 dev/ic/ar5xxx.c 			if (names[i].sr_type == type &&
i                 535 dev/ic/ar5xxx.c 			    names[i].sr_val == val) {
i                 536 dev/ic/ar5xxx.c 				name = names[i].sr_name;
i                 541 dev/ic/ar5xxx.c 		if (names[i].sr_type != type ||
i                 542 dev/ic/ar5xxx.c 		    names[i].sr_val == AR5K_SREV_UNKNOWN)
i                 544 dev/ic/ar5xxx.c 		if ((val & 0xff) < names[i + 1].sr_val) {
i                 545 dev/ic/ar5xxx.c 			name = names[i].sr_name;
i                 636 dev/ic/ar5xxx.c 		u_int32_t retval = 0, bit, i;
i                 638 dev/ic/ar5xxx.c 		for (i = 0; i < bits; i++) {
i                 639 dev/ic/ar5xxx.c 			bit = (val >> i) & 1;
i                 671 dev/ic/ar5xxx.c 	int i;
i                 674 dev/ic/ar5xxx.c 	for (i = AR5K_TUNE_REGISTER_TIMEOUT; i > 0; i--) {
i                 683 dev/ic/ar5xxx.c 	if (i <= 0)
i                 724 dev/ic/ar5xxx.c 	int ret, i = 0;
i                 729 dev/ic/ar5xxx.c 	ee->ee_ant_control[mode][i]	= (val << 4) & 0x3f;
i                 732 dev/ic/ar5xxx.c 	ee->ee_ant_control[mode][i++]	|= (val >> 12) & 0xf;
i                 733 dev/ic/ar5xxx.c 	ee->ee_ant_control[mode][i++]	= (val >> 6) & 0x3f;
i                 734 dev/ic/ar5xxx.c 	ee->ee_ant_control[mode][i++]	= val & 0x3f;
i                 737 dev/ic/ar5xxx.c 	ee->ee_ant_control[mode][i++]	= (val >> 10) & 0x3f;
i                 738 dev/ic/ar5xxx.c 	ee->ee_ant_control[mode][i++]	= (val >> 4) & 0x3f;
i                 739 dev/ic/ar5xxx.c 	ee->ee_ant_control[mode][i]	= (val << 2) & 0x3f;
i                 742 dev/ic/ar5xxx.c 	ee->ee_ant_control[mode][i++]	|= (val >> 14) & 0x3;
i                 743 dev/ic/ar5xxx.c 	ee->ee_ant_control[mode][i++]	= (val >> 8) & 0x3f;
i                 744 dev/ic/ar5xxx.c 	ee->ee_ant_control[mode][i++]	= (val >> 2) & 0x3f;
i                 745 dev/ic/ar5xxx.c 	ee->ee_ant_control[mode][i]	= (val << 4) & 0x3f;
i                 748 dev/ic/ar5xxx.c 	ee->ee_ant_control[mode][i++]	|= (val >> 12) & 0xf;
i                 749 dev/ic/ar5xxx.c 	ee->ee_ant_control[mode][i++]	= (val >> 6) & 0x3f;
i                 750 dev/ic/ar5xxx.c 	ee->ee_ant_control[mode][i++]	= val & 0x3f;
i                 861 dev/ic/ar5xxx.c 	int ret, i;
i                 921 dev/ic/ar5xxx.c 	for (i = 0; i < ee->ee_ctls; i++) {
i                 923 dev/ic/ar5xxx.c 		ee->ee_ctl[i] = (val >> 8) & 0xff;
i                 924 dev/ic/ar5xxx.c 		ee->ee_ctl[i + 1] = val & 0xff;
i                1304 dev/ic/ar5xxx.c 	int i;
i                1322 dev/ic/ar5xxx.c 	for (i = shift = 0, left = bits; left > 0; position = 0, entry++, i++) {
i                1521 dev/ic/ar5xxx.c 	int i, obdb = -1, bank = -1;
i                1529 dev/ic/ar5xxx.c 	for (i = 0; i < rf_size; i++) {
i                1530 dev/ic/ar5xxx.c 		if (ar5111_rf[i].rf_bank >=
i                1536 dev/ic/ar5xxx.c 		if (bank != ar5111_rf[i].rf_bank) {
i                1537 dev/ic/ar5xxx.c 			bank = ar5111_rf[i].rf_bank;
i                1538 dev/ic/ar5xxx.c 			hal->ah_offset[bank] = i;
i                1541 dev/ic/ar5xxx.c 		rf[i] = ar5111_rf[i].rf_value[mode];
i                1602 dev/ic/ar5xxx.c 	for (i = 0; i < rf_size; i++) {
i                1603 dev/ic/ar5xxx.c 		AR5K_REG_WAIT(i);
i                1604 dev/ic/ar5xxx.c 		AR5K_REG_WRITE(ar5111_rf[i].rf_register, rf[i]);
i                1616 dev/ic/ar5xxx.c 	int i, obdb = -1, bank = -1;
i                1633 dev/ic/ar5xxx.c 	for (i = 0; i < rf_size; i++) {
i                1634 dev/ic/ar5xxx.c 		if (rf_ini[i].rf_bank >=
i                1640 dev/ic/ar5xxx.c 		if (bank != rf_ini[i].rf_bank) {
i                1641 dev/ic/ar5xxx.c 			bank = rf_ini[i].rf_bank;
i                1642 dev/ic/ar5xxx.c 			hal->ah_offset[bank] = i;
i                1645 dev/ic/ar5xxx.c 		rf[i] = rf_ini[i].rf_value[mode];
i                1695 dev/ic/ar5xxx.c 	for (i = 0; i < rf_size; i++)
i                1696 dev/ic/ar5xxx.c 		AR5K_REG_WRITE(ar5112_rf[i].rf_register, rf[i]);
i                1704 dev/ic/ar5xxx.c 	int i;
i                1722 dev/ic/ar5xxx.c 	for (i = 0; i < AR5K_ELEMENTS(ar5k_rfg); i++) {
i                1723 dev/ic/ar5xxx.c 		AR5K_REG_WAIT(i);
i                1724 dev/ic/ar5xxx.c 		AR5K_REG_WRITE((u_int32_t)ar5k_rfg[i].rfg_register,
i                1725 dev/ic/ar5xxx.c 		    ar5k_rfg[i].rfg_value[phy][freq]);
i                1738 dev/ic/ar5xxx.c 	int i, min, max, n;
i                1748 dev/ic/ar5xxx.c 	for (i = 0; i < AR5K_MAX_RATES; i++)
i                1749 dev/ic/ar5xxx.c 		rates[i] = txpower;
i                1761 dev/ic/ar5xxx.c 	for (i = 0; i < n; i += AR5K_EEPROM_PCDAC_STEP)
i                1762 dev/ic/ar5xxx.c 		hal->ah_txpower.txp_pcdac[i] =
i                1764 dev/ic/ar5xxx.c 		    min + ((i * (max - min)) / n);
i                 213 dev/ic/ath.c   	int error = 0, i;
i                 328 dev/ic/ath.c   	for (i = 0; i <= HAL_TX_QUEUE_ID_DATA_MAX; i++) {
i                 331 dev/ic/ath.c   		qinfo.tqi_subtype = i; /* should be mapped to WME types */
i                 332 dev/ic/ath.c   		sc->sc_txhalq[i] = ath_hal_setup_tx_queue(ah,
i                 334 dev/ic/ath.c   		if (sc->sc_txhalq[i] == (u_int) -1) {
i                 335 dev/ic/ath.c   			printf(": unable to setup a data xmit queue %u!\n", i);
i                1145 dev/ic/ath.c   	int i;
i                1148 dev/ic/ath.c   	for (i = 0; i < IEEE80211_WEP_NKID; i++) {
i                1149 dev/ic/ath.c   		struct ieee80211_key *k = &ic->ic_nw_keys[i];
i                1151 dev/ic/ath.c   			ath_hal_reset_key(ah, i);
i                1171 dev/ic/ath.c   			if (ath_hal_set_key(ah, i, &hk) != AH_TRUE)
i                1571 dev/ic/ath.c   	int i, bsize, error = -1;
i                1627 dev/ic/ath.c   	for (i = 0; i < ATH_RXBUF; i++, bf++, ds++) {
i                1641 dev/ic/ath.c   	for (i = 0; i < ATH_TXBUF; i++, bf++, ds += ATH_TXDESC) {
i                1668 dev/ic/ath.c   	for (i = ATH_RXBUF; i < ATH_RXBUF + ATH_TXBUF; i++) {
i                1669 dev/ic/ath.c   		if (sc->sc_bufptr[i].bf_dmamap == NULL)
i                1671 dev/ic/ath.c   		bus_dmamap_destroy(sc->sc_dmat, sc->sc_bufptr[i].bf_dmamap);
i                1674 dev/ic/ath.c   	for (i = 0; i < ATH_RXBUF; i++) {
i                1675 dev/ic/ath.c   		if (sc->sc_bufptr[i].bf_dmamap == NULL)
i                1677 dev/ic/ath.c   		bus_dmamap_destroy(sc->sc_dmat, sc->sc_bufptr[i].bf_dmamap);
i                1734 dev/ic/ath.c   		int i;
i                1736 dev/ic/ath.c   		for (i = 0; i < ATH_RHIST_SIZE; i++)
i                1737 dev/ic/ath.c   			an->an_rx_hist[i].arh_ticks = ATH_RHIST_NOTIME;
i                1772 dev/ic/ath.c   	int i, now, nsamples, rssi;
i                1780 dev/ic/ath.c   	i = an->an_rx_hist_next;
i                1782 dev/ic/ath.c   		const struct ath_recv_hist *rh = &an->an_rx_hist[i];
i                1789 dev/ic/ath.c   		if (i == 0) {
i                1790 dev/ic/ath.c   			i = ATH_RHIST_SIZE-1;
i                1792 dev/ic/ath.c   			i--;
i                1794 dev/ic/ath.c   	} while (i != an->an_rx_hist_next);
i                1800 dev/ic/ath.c   	return (nsamples ? rssi / nsamples : an->an_rx_hist[i].arh_rssi);
i                2106 dev/ic/ath.c   	int i, error, iswep, hdrlen, pktlen, len, s;
i                2444 dev/ic/ath.c   	for (i = 0; i < bf->bf_nseg; i++, ds++) {
i                2445 dev/ic/ath.c   		ds->ds_data = bf->bf_segs[i].ds_addr;
i                2446 dev/ic/ath.c   		if (i == bf->bf_nseg - 1) {
i                2449 dev/ic/ath.c   			ds->ds_link = bf->bf_daddr + sizeof(*ds) * (i + 1);
i                2452 dev/ic/ath.c   			, bf->bf_segs[i].ds_len	/* segment length */
i                2453 dev/ic/ath.c   			, i == 0		/* first segment */
i                2454 dev/ic/ath.c   			, i == bf->bf_nseg - 1	/* last segment */
i                2458 dev/ic/ath.c   		    __func__, i, ds->ds_link, ds->ds_data,
i                2582 dev/ic/ath.c   	int s, i;
i                2586 dev/ic/ath.c   		for (i = 0; i <= HAL_TX_QUEUE_ID_DATA_MAX; i++) {
i                2588 dev/ic/ath.c   			(void) ath_hal_stop_tx_dma(ah, sc->sc_txhalq[i]);
i                2590 dev/ic/ath.c   			    ("%s: tx queue %d (%p), link %p\n", __func__, i,
i                2592 dev/ic/ath.c   			    sc->sc_txhalq[i]), sc->sc_txlink));
i                2890 dev/ic/ath.c   	int i, error;
i                2929 dev/ic/ath.c   		for (i = 0; i < IEEE80211_WEP_NKID; i++) {
i                2930 dev/ic/ath.c   			if (ath_hal_is_key_valid(ah, i))
i                2931 dev/ic/ath.c   				ath_hal_set_key_lladdr(ah, i, bssid);
i                3030 dev/ic/ath.c   	int i, ix, nchan;
i                3051 dev/ic/ath.c   	for (i = 0; i < nchan; i++) {
i                3052 dev/ic/ath.c   		HAL_CHANNEL *c = &chans[i];
i                3061 dev/ic/ath.c   		    sc->sc_dev.dv_xname, i, nchan, c->channel, c->channelFlags,
i                3096 dev/ic/ath.c   	int i, maxrates;
i                3128 dev/ic/ath.c   	for (i = 0; i < maxrates; i++)
i                3129 dev/ic/ath.c   		rs->rs_rates[i] = rt->info[i].dot11Rate;
i                3138 dev/ic/ath.c   	int i;
i                3143 dev/ic/ath.c   	for (i = 0; i < rt->rateCount; i++)
i                3144 dev/ic/ath.c   		sc->sc_rixmap[rt->info[i].dot11Rate & IEEE80211_RATE_VAL] = i;
i                3146 dev/ic/ath.c   	for (i = 0; i < 32; i++)
i                3147 dev/ic/ath.c   		sc->sc_hwmap[i] = rt->info[rt->rateCodeToIndex[i]].dot11Rate;
i                3180 dev/ic/ath.c   	int i;
i                3182 dev/ic/ath.c   	for (i = 0, ds = bf->bf_desc; i < bf->bf_nseg; i++, ds++) {
i                3184 dev/ic/ath.c   		    i, ds, (struct ath_desc *)bf->bf_daddr + i,
i                3196 dev/ic/ath.c   	int i;
i                3198 dev/ic/ath.c   	for (i = 0, ds = bf->bf_desc; i < bf->bf_nseg; i++, ds++) {
i                3201 dev/ic/ath.c   		    i, ds, (struct ath_desc *)bf->bf_daddr + i,
i                3215 dev/ic/ath.c   	int i;
i                3221 dev/ic/ath.c   	for (i = 0; i < ah->ah_gpio_npins && i < AR5K_MAX_GPIO; i++) {
i                3222 dev/ic/ath.c   		sc->sc_gpio_pins[i].pin_num = i;
i                3223 dev/ic/ath.c   		sc->sc_gpio_pins[i].pin_caps = GPIO_PIN_INPUT |
i                3227 dev/ic/ath.c   		ath_hal_set_gpio_input(ah, i);
i                3228 dev/ic/ath.c   		sc->sc_gpio_pins[i].pin_flags = GPIO_PIN_INPUT;
i                3231 dev/ic/ath.c   		sc->sc_gpio_pins[i].pin_state = ath_hal_get_gpio(ah, i) ?
i                 452 dev/ic/atw.c   		int i;
i                 454 dev/ic/atw.c   		for (i = 0; i < sc->sc_sromsz/2; i = i + 1) {
i                 455 dev/ic/atw.c   			if (((i % 8) == 0) && (i != 0)) {
i                 458 dev/ic/atw.c   			ATW_DPRINTF((" 0x%x", sc->sc_srom[i]));
i                 575 dev/ic/atw.c   	int country_code, error, i, srom_major;
i                 629 dev/ic/atw.c   	for (i = 0; i < ATW_TXQUEUELEN; i++) {
i                 632 dev/ic/atw.c   		    &sc->sc_txsoft[i].txs_dmamap)) != 0) {
i                 634 dev/ic/atw.c   			    "error = %d\n", sc->sc_dev.dv_xname, i, error);
i                 642 dev/ic/atw.c   	for (i = 0; i < ATW_NRXDESC; i++) {
i                 644 dev/ic/atw.c   		    MCLBYTES, 0, 0, &sc->sc_rxsoft[i].rxs_dmamap)) != 0) {
i                 646 dev/ic/atw.c   			    "error = %d\n", sc->sc_dev.dv_xname, i, error);
i                 650 dev/ic/atw.c   	for (i = 0; i < ATW_NRXDESC; i++) {
i                 651 dev/ic/atw.c   		sc->sc_rxsoft[i].rxs_mbuf = NULL;
i                 773 dev/ic/atw.c   		for (i = 1; i <= 13; i++)
i                 774 dev/ic/atw.c   			ADD_CHANNEL(ic, i);
i                 778 dev/ic/atw.c   		for (i = 1; i <= 11; i++)
i                 779 dev/ic/atw.c   			ADD_CHANNEL(ic, i);
i                 785 dev/ic/atw.c   		for (i = 10; i <= 13; i++)
i                 786 dev/ic/atw.c   			ADD_CHANNEL(ic, i);
i                 790 dev/ic/atw.c   		for (i = 10; i <= 11; i++)
i                 791 dev/ic/atw.c   			ADD_CHANNEL(ic, i);
i                 897 dev/ic/atw.c   	for (i = 0; i < ATW_NRXDESC; i++) {
i                 898 dev/ic/atw.c   		if (sc->sc_rxsoft[i].rxs_dmamap == NULL)
i                 900 dev/ic/atw.c   		bus_dmamap_destroy(sc->sc_dmat, sc->sc_rxsoft[i].rxs_dmamap);
i                 903 dev/ic/atw.c   	for (i = 0; i < ATW_TXQUEUELEN; i++) {
i                 904 dev/ic/atw.c   		if (sc->sc_txsoft[i].txs_dmamap == NULL)
i                 906 dev/ic/atw.c   		bus_dmamap_destroy(sc->sc_dmat, sc->sc_txsoft[i].txs_dmamap);
i                 966 dev/ic/atw.c   	int i;
i                 979 dev/ic/atw.c   	for (i = 0; i < 50; i++) {
i                 988 dev/ic/atw.c   	DPRINTF2(sc, ("%s: atw_reset %d iterations\n", sc->sc_dev.dv_xname, i));
i                1278 dev/ic/atw.c   	int i, error = 0;
i                1343 dev/ic/atw.c   	for (i = 0; i < ATW_NTXDESC; i++) {
i                1344 dev/ic/atw.c   		sc->sc_txdescs[i].at_ctl = 0;
i                1346 dev/ic/atw.c   		sc->sc_txdescs[i].at_flags = 0 /* ATW_TXFLAG_TCH */;
i                1347 dev/ic/atw.c   		sc->sc_txdescs[i].at_buf2 =
i                1348 dev/ic/atw.c   		    htole32(ATW_CDTXADDR(sc, ATW_NEXTTX(i)));
i                1362 dev/ic/atw.c   	for (i = 0; i < ATW_TXQUEUELEN; i++) {
i                1363 dev/ic/atw.c   		txs = &sc->sc_txsoft[i];
i                1372 dev/ic/atw.c   	for (i = 0; i < ATW_NRXDESC; i++) {
i                1373 dev/ic/atw.c   		rxs = &sc->sc_rxsoft[i];
i                1375 dev/ic/atw.c   			if ((error = atw_add_rxbuf(sc, i)) != 0) {
i                1378 dev/ic/atw.c   				    sc->sc_dev.dv_xname, i, error);
i                1387 dev/ic/atw.c   			ATW_INIT_RXDESC(sc, i);
i                1880 dev/ic/atw.c   	int i;
i                1886 dev/ic/atw.c   	for (i = 10; --i >= 0; ) {
i                1893 dev/ic/atw.c   	if (i < 0) {
i                1918 dev/ic/atw.c   	int i;
i                1920 dev/ic/atw.c   	for (i = 1000; --i >= 0; ) {
i                1926 dev/ic/atw.c   	if (i < 0) {
i                1936 dev/ic/atw.c   	for (i = 1000; --i >= 0; ) {
i                1944 dev/ic/atw.c   	if (i < 0) {
i                2015 dev/ic/atw.c   	int i;
i                2019 dev/ic/atw.c   	for (i = 1000; --i >= 0; ) {
i                2025 dev/ic/atw.c   	if (i < 0) {
i                2035 dev/ic/atw.c   	for (i = 1000; --i >= 0; ) {
i                2043 dev/ic/atw.c   	if (i < 0) {
i                2172 dev/ic/atw.c   	u_int i;
i                2183 dev/ic/atw.c   	for (i = 0; i < buflen; i += 2) {
i                2185 dev/ic/atw.c   		    LSHIFT((ofs + i) / 2, ATW_WEPCTL_TBLADD_MASK));
i                2189 dev/ic/atw.c   		    LSHIFT((ptr[i + 1] << 8) | ptr[i], ATW_WESK_DATA_MASK));
i                2198 dev/ic/atw.c   		for (i = 0; i < buflen; i++) {
i                2199 dev/ic/atw.c   			printf(" %02x", ptr[i]);
i                2215 dev/ic/atw.c   	int i;
i                2230 dev/ic/atw.c   	for (i = 0; i < IEEE80211_WEP_NKID; i++) {
i                2231 dev/ic/atw.c   		if (ic->ic_nw_keys[i].k_len > 5) {
i                2232 dev/ic/atw.c   			buf[i][1] = ATW_WEP_ENABLED | ATW_WEP_104BIT;
i                2233 dev/ic/atw.c   		} else if (ic->ic_nw_keys[i].k_len != 0) {
i                2234 dev/ic/atw.c   			buf[i][1] = ATW_WEP_ENABLED;
i                2236 dev/ic/atw.c   			buf[i][1] = 0;
i                2239 dev/ic/atw.c   		buf[i][0] = ic->ic_nw_keys[i].k_key[0];
i                2240 dev/ic/atw.c   		memcpy(&buf[i][2], &ic->ic_nw_keys[i].k_key[1],
i                2241 dev/ic/atw.c   		    ic->ic_nw_keys[i].k_len - 1);
i                2448 dev/ic/atw.c   	int i;
i                2450 dev/ic/atw.c   	for (i = 0; i < 2; i++) {
i                2716 dev/ic/atw.c   	int i;
i                2718 dev/ic/atw.c   	for (i = 0; i < ATW_NRXDESC; i++) {
i                2719 dev/ic/atw.c   		rxs = &sc->sc_rxsoft[i];
i                2739 dev/ic/atw.c   	int i;
i                2752 dev/ic/atw.c   	for (i = 0; i < ATW_NRXDESC; i++) {
i                2753 dev/ic/atw.c   		rxs = &sc->sc_rxsoft[i];
i                2761 dev/ic/atw.c   	for (i = 0; i < ATW_TXQUEUELEN; i++) {
i                2762 dev/ic/atw.c   		txs = &sc->sc_txsoft[i];
i                2980 dev/ic/atw.c   	int i, s;
i                2998 dev/ic/atw.c   	for (i = 0; i < 10; i++) {
i                3087 dev/ic/atw.c   	int i, len, rate, rate0;
i                3090 dev/ic/atw.c   	for (i = sc->sc_rxptr;; i = ATW_NEXTRX(i)) {
i                3091 dev/ic/atw.c   		rxs = &sc->sc_rxsoft[i];
i                3093 dev/ic/atw.c   		ATW_CDRXSYNC(sc, i, BUS_DMASYNC_POSTREAD|BUS_DMASYNC_POSTWRITE);
i                3095 dev/ic/atw.c   		rxstat = letoh32(sc->sc_rxdescs[i].ar_stat);
i                3096 dev/ic/atw.c   		rssi0 = letoh32(sc->sc_rxdescs[i].ar_rssi);
i                3106 dev/ic/atw.c   		    letoh32(sc->sc_rxdescs[i].ar_buf1),
i                3107 dev/ic/atw.c   		    letoh32(sc->sc_rxdescs[i].ar_buf2)));
i                3152 dev/ic/atw.c   			ATW_INIT_RXDESC(sc, i);
i                3171 dev/ic/atw.c   		if (atw_add_rxbuf(sc, i) != 0) {
i                3173 dev/ic/atw.c   			ATW_INIT_RXDESC(sc, i);
i                3243 dev/ic/atw.c   	sc->sc_rxptr = i;
i                3277 dev/ic/atw.c   			int i;
i                3282 dev/ic/atw.c   			for (i = txs->txs_firstdesc;; i = ATW_NEXTTX(i)) {
i                3283 dev/ic/atw.c   				printf("     descriptor %d:\n", i);
i                3285 dev/ic/atw.c   				    letoh32(sc->sc_txdescs[i].at_stat));
i                3287 dev/ic/atw.c   				    letoh32(sc->sc_txdescs[i].at_flags));
i                3289 dev/ic/atw.c   				    letoh32(sc->sc_txdescs[i].at_buf1));
i                3291 dev/ic/atw.c   				    letoh32(sc->sc_txdescs[i].at_buf2));
i                3292 dev/ic/atw.c   				if (i == txs->txs_lastdesc)
i                3587 dev/ic/atw.c   	int i, noctets = 0;
i                3595 dev/ic/atw.c   		for (i = 0; i < m->m_len; i++) {
i                3596 dev/ic/atw.c   			printf(" %02x", ((u_int8_t*)m->m_data)[i]);
i                 274 dev/ic/awi.c   	int i;
i                 344 dev/ic/awi.c   	for (i = 0; i < phy_rates[1]; i++) {
i                 345 dev/ic/awi.c   		mword = awi_media_rate2opt(sc, AWI_80211_RATE(phy_rates[2 + i]));
i                 680 dev/ic/awi.c   	int i, rate, error;
i                 689 dev/ic/awi.c   		for (i = 0; i < phy_rates[1]; i++) {
i                 690 dev/ic/awi.c   			if (rate == AWI_80211_RATE(phy_rates[2 + i]))
i                 693 dev/ic/awi.c   		if (i == phy_rates[1])
i                1449 dev/ic/awi.c   	int i, error;
i                1465 dev/ic/awi.c   	for (i = 0; ; i++) {
i                1466 dev/ic/awi.c   		if (i >= AWI_SELFTEST_TIMEOUT*hz/1000) {
i                1493 dev/ic/awi.c   		for (i = 0; i < AWI_BANNER_LEN; i++)
i                1494 dev/ic/awi.c   			printf("%s%02x", i ? ":" : "\t", sc->sc_banner[i]);
i                1539 dev/ic/awi.c   	int i, error;
i                1554 dev/ic/awi.c   	for (i = 0; i < rate[1]; i++) {
i                1555 dev/ic/awi.c   		if (AWI_80211_RATE(rate[2 + i]) > sc->sc_tx_rate)
i                1556 dev/ic/awi.c   			sc->sc_tx_rate = AWI_80211_RATE(rate[2 + i]);
i                2287 dev/ic/awi.c   	int i, j;
i                2323 dev/ic/awi.c   	for (i = 0; i < asresp[1]; i++) {
i                2324 dev/ic/awi.c   		if (AWI_80211_RATE(asresp[2 + i]) <= rate)
i                2328 dev/ic/awi.c   			if (AWI_80211_RATE(asresp[2 + i]) ==
i                2330 dev/ic/awi.c   				rate = AWI_80211_RATE(asresp[2 + i]);
i                2412 dev/ic/awi.c   			int i;
i                2415 dev/ic/awi.c   			for (i = 0; i < size; i++)
i                2416 dev/ic/awi.c   				printf(" %02x", ptr[i]);
i                2625 dev/ic/awi.c   	int i, retry;
i                2629 dev/ic/awi.c   		for (i = 0; i < AWI_LOCKOUT_TIMEOUT*1000/5; i++) {
i                2663 dev/ic/awi.c   	int i, error = 0;
i                2665 dev/ic/awi.c   	i = 0;
i                2685 dev/ic/awi.c   			if (i++ >= AWI_CMD_TIMEOUT*1000/10)
i                2700 dev/ic/awi.c   	int i, len;
i                2707 dev/ic/awi.c   	for (i = 0, p = essid + 2; i < len; i++, p++) {
i                2711 dev/ic/awi.c   	if (i == len) {
i                2713 dev/ic/awi.c   		for (i = 0, p = essid + 2; i < len; i++, p++)
i                2718 dev/ic/awi.c   		for (i = 0, p = essid + 2; i < len; i++, p++)
i                2731 dev/ic/awi.c   	int i, l;
i                2828 dev/ic/awi.c   		i = sizeof(*wh);
i                2830 dev/ic/awi.c   			i = 0;
i                2831 dev/ic/awi.c   		for (; i < l; i++) {
i                2832 dev/ic/awi.c   			if ((i & 1) == 0)
i                2834 dev/ic/awi.c   			printf("%02x", mtod(m, u_int8_t *)[i]);
i                 164 dev/ic/awi_wep.c 	int i, len, error;
i                 171 dev/ic/awi_wep.c 	for (i = 0; i < IEEE80211_WEP_NKID; i++) {
i                 172 dev/ic/awi_wep.c 		if (nwkey->i_key[i].i_keydat == NULL)
i                 174 dev/ic/awi_wep.c 		len = nwkey->i_key[i].i_keylen;
i                 179 dev/ic/awi_wep.c 		error = copyin(nwkey->i_key[i].i_keydat, keybuf, len);
i                 182 dev/ic/awi_wep.c 		error = awi_wep_setkey(sc, i, keybuf, len);
i                 202 dev/ic/awi_wep.c 	int i, len, error, suerr;
i                 218 dev/ic/awi_wep.c 	for (i = 0; i < IEEE80211_WEP_NKID; i++) {
i                 219 dev/ic/awi_wep.c 		if (nwkey->i_key[i].i_keydat == NULL)
i                 226 dev/ic/awi_wep.c 		error = awi_wep_getkey(sc, i, keybuf, &len);
i                 229 dev/ic/awi_wep.c 		if (nwkey->i_key[i].i_keylen < len) {
i                 233 dev/ic/awi_wep.c 		nwkey->i_key[i].i_keylen = len;
i                 234 dev/ic/awi_wep.c 		error = copyout(keybuf, nwkey->i_key[i].i_keydat, len);
i                 193 dev/ic/bha.c   	register int i;
i                 221 dev/ic/bha.c   		for (i = 20000; i; i--) {	/* 1 sec? */
i                 227 dev/ic/bha.c   		if (!i) {
i                 247 dev/ic/bha.c   		for (i = wait; i; i--) {
i                 253 dev/ic/bha.c   		if (!i) {
i                 266 dev/ic/bha.c   		for (i = wait; i; i--) {
i                 272 dev/ic/bha.c   		if (!i) {
i                 286 dev/ic/bha.c   		for (i = 20000; i; i--) {	/* 1 sec? */
i                 293 dev/ic/bha.c   		if (!i) {
i                 366 dev/ic/bha.c   	int i;
i                 375 dev/ic/bha.c   		for (i = 0; i < BHA_MBX_SIZE; i++) {
i                 592 dev/ic/bha.c   	int i, error;
i                 595 dev/ic/bha.c   	for (i = 0; i < count; i++) {
i                 596 dev/ic/bha.c   		ccb = &ccbstore[i];
i                 605 dev/ic/bha.c   	return (i);
i                 877 dev/ic/bha.c   	int i, iswide;
i                 901 dev/ic/bha.c   	for (i = BHA_RESET_TIMEOUT; i--;) {
i                 907 dev/ic/bha.c   	if (i < 0) {
i                 940 dev/ic/bha.c   	i = bha_cmd(iot, ioh, NULL,
i                 950 dev/ic/bha.c   	if (i) {
i                 953 dev/ic/bha.c   		       i, sizeof(inquire.reply), "INQUIRE_EXTENDED");
i                1077 dev/ic/bha.c   	int error, i, j, initial_ccbs, rlen, rseg;
i                1104 dev/ic/bha.c   	for (i = 0; i < 8; i++) {
i                1106 dev/ic/bha.c   			if (((devices.reply.lun_map[i] >> j) & 1) == 1)
i                1120 dev/ic/bha.c   		for (i = 0; i < 8; i++) {
i                1122 dev/ic/bha.c   				if (((devices.reply.lun_map[i] >> j) & 1) == 1)
i                1147 dev/ic/bha.c   	for (i = 0; i < 8; i++)
i                1148 dev/ic/bha.c   		period.reply.period[i] = setup.reply.sync[i].period * 5 + 20;
i                1150 dev/ic/bha.c   		for (i = 0; i < 8; i++)
i                1151 dev/ic/bha.c   			period.reply_w.period[i] =
i                1152 dev/ic/bha.c   			    setup.reply_w.sync_high[i].period * 5 + 20;
i                1165 dev/ic/bha.c   	for (i = 0; i < 8; i++) {
i                1166 dev/ic/bha.c   		if (!setup.reply.sync[i].valid ||
i                1167 dev/ic/bha.c   		    (!setup.reply.sync[i].offset &&
i                1168 dev/ic/bha.c   		     !setup.reply.sync[i].period))
i                1171 dev/ic/bha.c   		    sc->sc_dev.dv_xname, i,
i                1172 dev/ic/bha.c   		    setup.reply.sync[i].offset, period.reply.period[i] * 10);
i                1175 dev/ic/bha.c   		for (i = 0; i < 8; i++) {
i                1176 dev/ic/bha.c   			if (!setup.reply_w.sync_high[i].valid ||
i                1177 dev/ic/bha.c   			    (!setup.reply_w.sync_high[i].offset &&
i                1178 dev/ic/bha.c   			     !setup.reply_w.sync_high[i].period))
i                1181 dev/ic/bha.c   			    sc->sc_dev.dv_xname, i + 8,
i                1182 dev/ic/bha.c   			    setup.reply_w.sync_high[i].offset,
i                1183 dev/ic/bha.c   			    period.reply_w.period[i] * 10);
i                1226 dev/ic/bha.c   	i = bha_create_ccbs(sc, sc->sc_control->bc_ccbs, initial_ccbs);
i                1227 dev/ic/bha.c   	if (i == 0) {
i                1231 dev/ic/bha.c   	} else if (i != initial_ccbs) {
i                1233 dev/ic/bha.c   		    sc->sc_dev.dv_xname, i, initial_ccbs);
i                1239 dev/ic/bha.c   	for (i = 0; i < BHA_MBX_SIZE; i++) {
i                1240 dev/ic/bha.c   		wmbx->mbo[i].cmd = BHA_MBO_FREE;
i                1244 dev/ic/bha.c   		wmbx->mbi[i].comp_stat = BHA_MBI_FREE;
i                 256 dev/ic/bt463.c 	int i;
i                 280 dev/ic/bt463.c 	for (i = 0; i < 4; i++)
i                 287 dev/ic/bt463.c 	for (i = 0; i < 4; i++)
i                 308 dev/ic/bt463.c 	for (i = 1; i < 256; i++) {
i                 309 dev/ic/bt463.c 		data->cmap_r[i] = rasops_cmap[3*i + 0];
i                 310 dev/ic/bt463.c 		data->cmap_g[i] = rasops_cmap[3*i + 1];
i                 311 dev/ic/bt463.c 		data->cmap_b[i] = rasops_cmap[3*i + 2];
i                 354 dev/ic/bt463.c 	for (i = 2; i < BT463_NWTYPE_ENTRIES; i++) {
i                 355 dev/ic/bt463.c 		data->window_type[i] = 0x81e100;
i                 530 dev/ic/bt463.c 	int i;
i                 534 dev/ic/bt463.c 	for (i = 0x200; i < 0x20F; i ++) {
i                 535 dev/ic/bt463.c 	  val = BTRREG(data, i);
i                 536 dev/ic/bt463.c 	  printf("  $%04x %02x\n", i, val);
i                 545 dev/ic/bt463.c 	for (i = 0; i < BT463_NWTYPE_ENTRIES; i++) {
i                 546 dev/ic/bt463.c 	  printf("%02x %06x\n", i, data->window_type[i]);
i                 557 dev/ic/bt463.c 	int i;
i                 559 dev/ic/bt463.c 		for (i = 0; i < BT463_NWTYPE_ENTRIES; i++) {
i                 560 dev/ic/bt463.c 			bt463_wraddr(data, BT463_IREG_WINDOW_TYPE_TABLE + i);
i                 561 dev/ic/bt463.c 			data->window_type[i] = (BTRNREG(data) & 0xff);        /* B0-7   */
i                 562 dev/ic/bt463.c 			data->window_type[i] |= (BTRNREG(data) & 0xff) << 8;  /* B8-15  */
i                 563 dev/ic/bt463.c 			data->window_type[i] |= (BTRNREG(data) & 0xff) << 16; /* B16-23 */
i                 582 dev/ic/bt463.c 	int i, v;
i                 601 dev/ic/bt463.c 		for (i = 0; i < BT463_NWTYPE_ENTRIES; i++) {
i                 602 dev/ic/bt463.c 			bt463_wraddr(data, BT463_IREG_WINDOW_TYPE_TABLE + i);
i                 603 dev/ic/bt463.c 			BTWNREG(data, (data->window_type[i]) & 0xff);       /* B0-7   */
i                 604 dev/ic/bt463.c 			BTWNREG(data, (data->window_type[i] >> 8) & 0xff);  /* B8-15   */
i                 605 dev/ic/bt463.c 			BTWNREG(data, (data->window_type[i] >> 16) & 0xff); /* B16-23  */
i                 612 dev/ic/bt463.c 		for (i = 0; i < 2; i++) {
i                 613 dev/ic/bt463.c 			BTWNREG(data, data->curcmap_r[i]);
i                 614 dev/ic/bt463.c 			BTWNREG(data, data->curcmap_g[i]);
i                 615 dev/ic/bt463.c 			BTWNREG(data, data->curcmap_b[i]);
i                 622 dev/ic/bt463.c 		for (i = 0; i < BT463_NCMAP_ENTRIES; i++) {
i                 624 dev/ic/bt463.c 				data->cmap_r[i]);
i                 626 dev/ic/bt463.c 				data->cmap_g[i]);
i                 628 dev/ic/bt463.c 				data->cmap_b[i]);
i                 195 dev/ic/bt485.c 	int i;
i                 249 dev/ic/bt485.c 	for (i = 0; i < 512; i++)
i                 250 dev/ic/bt485.c 		data->curimage[i] = data->curmask[i] = 0xff;
i                 254 dev/ic/bt485.c 	for (i = 0; i < 256; i++) {
i                 255 dev/ic/bt485.c 		data->cmap_r[i] = rasops_cmap[3*i + 0];
i                 256 dev/ic/bt485.c 		data->cmap_g[i] = rasops_cmap[3*i + 1];
i                 257 dev/ic/bt485.c 		data->cmap_b[i] = rasops_cmap[3*i + 2];
i                 535 dev/ic/bt485.c 	int count, i, v;
i                 555 dev/ic/bt485.c 		for (i = 0; i < 2; i++) {
i                 557 dev/ic/bt485.c 			    data->curcmap_r[i]);
i                 559 dev/ic/bt485.c 			    data->curcmap_g[i]);
i                 561 dev/ic/bt485.c 			    data->curcmap_b[i]);
i                 578 dev/ic/bt485.c 		for (i = 0; i < count; i++)
i                 580 dev/ic/bt485.c 			    data->curimage[i]);
i                 592 dev/ic/bt485.c 		for (i = 0; i < count; i++)
i                 594 dev/ic/bt485.c 			    data->curmask[i]);
i                 608 dev/ic/bt485.c 		for (i = 0; i < 256; i++) {
i                 610 dev/ic/bt485.c 			    data->cmap_r[i]);
i                 612 dev/ic/bt485.c 			    data->cmap_g[i]);
i                 614 dev/ic/bt485.c 			    data->cmap_b[i]);
i                 146 dev/ic/cac.c   	int error, rseg, size, i;
i                 187 dev/ic/cac.c   	for (i = 0; i < CAC_MAX_CCBS; i++, ccb++) {
i                 200 dev/ic/cac.c   		ccb->ccb_paddr = sc->sc_ccbs_paddr + i * sizeof(struct cac_ccb);
i                 279 dev/ic/cac.c   	int i;
i                 281 dev/ic/cac.c   	for (i = 0; i < cac_cd.cd_ndevs; i++) {
i                 282 dev/ic/cac.c   		if ((sc = (struct cac_softc *)device_lookup(&cac_cd, i)) == NULL)
i                 322 dev/ic/cac.c   	int i, rv, size, nsegs;
i                 349 dev/ic/cac.c   		for (i = 0; i < nsegs; i++, sgb++) {
i                 350 dev/ic/cac.c   			size += ccb->ccb_dmamap_xfer->dm_segs[i].ds_len;
i                 352 dev/ic/cac.c   			    htole32(ccb->ccb_dmamap_xfer->dm_segs[i].ds_len);
i                 354 dev/ic/cac.c   			    htole32(ccb->ccb_dmamap_xfer->dm_segs[i].ds_addr);
i                 150 dev/ic/ciss.c  	int error, i, total, rseg, maxfer;
i                 184 dev/ic/ciss.c  	for (i = 1000; i--; DELAY(1000)) {
i                 207 dev/ic/ciss.c  	for (i = 30000; i--; DELAY(1000)) {
i                 227 dev/ic/ciss.c  	i = sizeof(struct ciss_ccb) +
i                 229 dev/ic/ciss.c  	for (sc->ccblen = 0x10; sc->ccblen < i; sc->ccblen <<= 1);
i                 265 dev/ic/ciss.c  	for (i = 0; total; i++, total -= sc->ccblen) {
i                 266 dev/ic/ciss.c  		ccb = sc->ccbs + i * sc->ccblen;
i                 268 dev/ic/ciss.c  		pa = sc->cmdseg[0].ds_addr + i * sc->ccblen;
i                 274 dev/ic/ciss.c  		cmd->id = htole32(i << 2);
i                 290 dev/ic/ciss.c  	if (i < sc->maxcmd) {
i                 291 dev/ic/ciss.c  		printf(": cannot create ccb#%d dmamap (%d)\n", i, error);
i                 292 dev/ic/ciss.c  		if (i == 0) {
i                 414 dev/ic/ciss.c  	for (i = 0; i < sc->maxunits; i++)
i                 415 dev/ic/ciss.c  		if (!(sc->sc_lds[i] = ciss_pdscan(sc, i)))
i                 430 dev/ic/ciss.c  		for (i = 0; i < sc->maxunits;
i                 431 dev/ic/ciss.c  		    sensor_attach(&sc->sensordev, &sc->sensors[i++])) {
i                 432 dev/ic/ciss.c  			sc->sensors[i].type = SENSOR_DRIVE;
i                 433 dev/ic/ciss.c  			sc->sensors[i].status = SENSOR_S_UNKNOWN;
i                 434 dev/ic/ciss.c  			strlcpy(sc->sensors[i].desc, ((struct device *)
i                 435 dev/ic/ciss.c  			    scsibus->sc_link[i][0]->device_softc)->dv_xname,
i                 436 dev/ic/ciss.c  			    sizeof(sc->sensors[i].desc));
i                 437 dev/ic/ciss.c  			strlcpy(sc->sc_lds[i]->xname, ((struct device *)
i                 438 dev/ic/ciss.c  			    scsibus->sc_link[i][0]->device_softc)->dv_xname,
i                 439 dev/ic/ciss.c  			    sizeof(sc->sc_lds[i]->xname));
i                 487 dev/ic/ciss.c  	int i, tohz, error = 0;
i                 513 dev/ic/ciss.c  		for (i = 0; i < dmap->dm_nsegs; sgd++, i++) {
i                 514 dev/ic/ciss.c  			cmd->sgl[i].addr_lo = htole32(sgd->ds_addr);
i                 515 dev/ic/ciss.c  			cmd->sgl[i].addr_hi =
i                 517 dev/ic/ciss.c  			cmd->sgl[i].len = htole32(sgd->ds_len);
i                 518 dev/ic/ciss.c  			cmd->sgl[i].flags = htole32(0);
i                 519 dev/ic/ciss.c  			if (i)
i                 550 dev/ic/ciss.c  		i = ccb->ccb_xs? ccb->ccb_xs->timeout : 60000;
i                 551 dev/ic/ciss.c  		tv.tv_sec = i / 1000;
i                 552 dev/ic/ciss.c  		tv.tv_usec = (i % 1000) * 1000;
i                 556 dev/ic/ciss.c  		for (i *= 100, etick = tick + tohz; i--; ) {
i                1185 dev/ic/ciss.c  	int i, error;
i                1187 dev/ic/ciss.c  	for (i = 0; i < sc->maxunits; i++) {
i                1189 dev/ic/ciss.c  		if ((error = ciss_ldstat(sc, i, ldstat))) {
i                1190 dev/ic/ciss.c  			sc->sensors[i].value = 0;
i                1191 dev/ic/ciss.c  			sc->sensors[i].status = SENSOR_S_UNKNOWN;
i                1197 dev/ic/ciss.c  			sc->sensors[i].value = SENSOR_DRIVE_ONLINE;
i                1198 dev/ic/ciss.c  			sc->sensors[i].status = SENSOR_S_OK;
i                1202 dev/ic/ciss.c  			sc->sensors[i].value = SENSOR_DRIVE_PFAIL;
i                1203 dev/ic/ciss.c  			sc->sensors[i].status = SENSOR_S_WARN;
i                1210 dev/ic/ciss.c  			sc->sensors[i].value = SENSOR_DRIVE_REBUILD;
i                1211 dev/ic/ciss.c  			sc->sensors[i].status = SENSOR_S_WARN;
i                1219 dev/ic/ciss.c  			sc->sensors[i].value = SENSOR_DRIVE_FAIL;
i                1220 dev/ic/ciss.c  			sc->sensors[i].status = SENSOR_S_CRIT;
i                1224 dev/ic/ciss.c  			sc->sensors[i].value = 0;
i                1225 dev/ic/ciss.c  			sc->sensors[i].status = SENSOR_S_UNKNOWN;
i                1322 dev/ic/ciss.c  	int i, j, k = 0;
i                1325 dev/ic/ciss.c  	for (i = 0; i < sc->nbus; i++)
i                1327 dev/ic/ciss.c  			drv = CISS_BIGBIT + i * sc->ndrives + j;
i                 179 dev/ic/com.c   	int i, k;
i                 184 dev/ic/com.c   	for (i = 0; i < 32; i++) {
i                 191 dev/ic/com.c   	if (i >= 32)
i                 920 dev/ic/com.c   		int i;
i                 922 dev/ic/com.c   		for (i = 0; i < n; i++) {
i                 923 dev/ic/com.c   			bus_space_write_1(iot, ioh, com_data, buffer[i]);
i                 127 dev/ic/cy.c    		int i;
i                 170 dev/ic/cy.c    		for (i = 0; i < 200; i++) {
i                 220 dev/ic/dc.c    	int i;
i                 235 dev/ic/dc.c    	for (i = 3; i--;) {
i                 236 dev/ic/dc.c    		if (6 & (1 << i))
i                 247 dev/ic/dc.c    	for (i = 1; i <= 12; i++) {
i                 262 dev/ic/dc.c    	if (i < 4 || i > 12)
i                 265 dev/ic/dc.c    		sc->dc_romwidth = i;
i                 285 dev/ic/dc.c    	int i;
i                 296 dev/ic/dc.c    	for (i = 0; i < 25; i++) {
i                 318 dev/ic/dc.c    	int d, i;
i                 322 dev/ic/dc.c    	for (i = 3; i--; ) {
i                 323 dev/ic/dc.c    		if (d & (1 << i))
i                 337 dev/ic/dc.c    	for (i = sc->dc_romwidth; i--;) {
i                 338 dev/ic/dc.c    		if (addr & (1 << i)) {
i                 362 dev/ic/dc.c    	int i;
i                 367 dev/ic/dc.c    	for (i = 0; i < DC_TIMEOUT; i++) {
i                 406 dev/ic/dc.c    	int i;
i                 430 dev/ic/dc.c    	for (i = 0x8000; i; i >>= 1) {
i                 434 dev/ic/dc.c    			word |= i;
i                 454 dev/ic/dc.c    	int i;
i                 457 dev/ic/dc.c    	for (i = 0; i < cnt; i++) {
i                 459 dev/ic/dc.c    			dc_eeprom_getword_pnic(sc, off + i, &word);
i                 461 dev/ic/dc.c    			dc_eeprom_getword_xircom(sc, off + i, &word);
i                 463 dev/ic/dc.c    			dc_eeprom_getword(sc, off + i, &word);
i                 464 dev/ic/dc.c    		ptr = (u_int16_t *)(dest + (i * 2));
i                 517 dev/ic/dc.c    	int i;
i                 521 dev/ic/dc.c    	for (i = 0; i < 32; i++)
i                 534 dev/ic/dc.c    	int i;
i                 536 dev/ic/dc.c    	for (i = (0x1 << (cnt - 1)); i; i >>= 1)
i                 537 dev/ic/dc.c    		dc_mii_writebit(sc, bits & i);
i                 548 dev/ic/dc.c    	int i, ack, s;
i                 587 dev/ic/dc.c    		for(i = 0; i < 16; i++) {
i                 593 dev/ic/dc.c    	for (i = 0x8000; i; i >>= 1) {
i                 596 dev/ic/dc.c    				frame->mii_data |= i;
i                 658 dev/ic/dc.c    	int i, rval, phy_reg;
i                 711 dev/ic/dc.c    		for (i = 0; i < DC_TIMEOUT; i++) {
i                 781 dev/ic/dc.c    	int i, phy_reg;
i                 793 dev/ic/dc.c    		for (i = 0; i < DC_TIMEOUT; i++) {
i                 932 dev/ic/dc.c    	int i;
i                 936 dev/ic/dc.c    	i = sc->dc_cdata.dc_tx_prod;
i                 939 dev/ic/dc.c    	sframe = &sc->dc_ldata->dc_tx_list[i];
i                 948 dev/ic/dc.c    	sc->dc_cdata.dc_tx_chain[i].sd_mbuf =
i                 996 dev/ic/dc.c    	    offsetof(struct dc_list_data, dc_tx_list[i]),
i                1157 dev/ic/dc.c    	int i;
i                1162 dev/ic/dc.c    	i = sc->dc_cdata.dc_tx_prod;
i                1165 dev/ic/dc.c    	sframe = &sc->dc_ldata->dc_tx_list[i];
i                1174 dev/ic/dc.c    	sc->dc_cdata.dc_tx_chain[i].sd_mbuf =
i                1248 dev/ic/dc.c    	int i, restart = 0;
i                1258 dev/ic/dc.c    		for (i = 0; i < DC_TIMEOUT; i++) {
i                1267 dev/ic/dc.c    		if (i == DC_TIMEOUT)
i                1396 dev/ic/dc.c    	int i;
i                1400 dev/ic/dc.c    	for (i = 0; i < DC_TIMEOUT; i++) {
i                1410 dev/ic/dc.c    		i = 0;
i                1413 dev/ic/dc.c    	if (i == DC_TIMEOUT)
i                1446 dev/ic/dc.c    	int i;
i                1460 dev/ic/dc.c    	for (i = 0, p = m->dc_reset_ptr; i < m->dc_reset_len; i++, p += 2) {
i                1465 dev/ic/dc.c    	for (i = 0, p = m->dc_gp_ptr; i < m->dc_gp_len; i++, p += 2) {
i                1594 dev/ic/dc.c    	int have_mii, i, loff;
i                1606 dev/ic/dc.c    	for (i = 0; i < lhdr->dc_mcnt; i++) {
i                1621 dev/ic/dc.c    	for (i = 0; i < lhdr->dc_mcnt; i++) {
i                1655 dev/ic/dc.c    	int mac_offset, tmp, i;
i                1734 dev/ic/dc.c    	for (i = 0; i < DC_RX_LIST_CNT; i++) {
i                1737 dev/ic/dc.c    		    &sc->dc_cdata.dc_rx_chain[i].sd_map) != 0) {
i                1748 dev/ic/dc.c    	for (i = 0; i < DC_TX_LIST_CNT; i++) {
i                1751 dev/ic/dc.c    		    &sc->dc_cdata.dc_tx_chain[i].sd_map) != 0) {
i                1871 dev/ic/dc.c    	int i;
i                1876 dev/ic/dc.c    	for (i = 0; i < DC_TX_LIST_CNT; i++) {
i                1878 dev/ic/dc.c    		if (i == (DC_TX_LIST_CNT - 1))
i                1883 dev/ic/dc.c    			    offsetof(struct dc_list_data, dc_tx_list[i + 1]);
i                1884 dev/ic/dc.c    		cd->dc_tx_chain[i].sd_mbuf = NULL;
i                1885 dev/ic/dc.c    		ld->dc_tx_list[i].dc_data = htole32(0);
i                1886 dev/ic/dc.c    		ld->dc_tx_list[i].dc_ctl = htole32(0);
i                1887 dev/ic/dc.c    		ld->dc_tx_list[i].dc_next = htole32(next);
i                1907 dev/ic/dc.c    	int i;
i                1913 dev/ic/dc.c    	for (i = 0; i < DC_RX_LIST_CNT; i++) {
i                1914 dev/ic/dc.c    		if (dc_newbuf(sc, i, NULL) == ENOBUFS)
i                1917 dev/ic/dc.c    		if (i == (DC_RX_LIST_CNT - 1))
i                1922 dev/ic/dc.c    			    offsetof(struct dc_list_data, dc_rx_list[i + 1]);
i                1923 dev/ic/dc.c    		ld->dc_rx_list[i].dc_next = htole32(next);
i                1935 dev/ic/dc.c    dc_newbuf(sc, i, m)
i                1937 dev/ic/dc.c    	int i;
i                1944 dev/ic/dc.c    	c = &sc->dc_ldata->dc_rx_list[i];
i                1962 dev/ic/dc.c    		map = sc->dc_cdata.dc_rx_chain[i].sd_map;
i                1963 dev/ic/dc.c    		sc->dc_cdata.dc_rx_chain[i].sd_map = sc->sc_rx_sparemap;
i                1986 dev/ic/dc.c    	bus_dmamap_sync(sc->sc_dmat, sc->dc_cdata.dc_rx_chain[i].sd_map, 0,
i                1987 dev/ic/dc.c    	    sc->dc_cdata.dc_rx_chain[i].sd_map->dm_mapsize,
i                1990 dev/ic/dc.c    	sc->dc_cdata.dc_rx_chain[i].sd_mbuf = m_new;
i                1992 dev/ic/dc.c    	    sc->dc_cdata.dc_rx_chain[i].sd_map->dm_segs[0].ds_addr +
i                1998 dev/ic/dc.c    	    offsetof(struct dc_list_data, dc_rx_list[i]),
i                2067 dev/ic/dc.c    	int			i, total_len;
i                2070 dev/ic/dc.c    	i = sc->dc_pnic_rx_bug_save;
i                2077 dev/ic/dc.c    		c = &sc->dc_ldata->dc_rx_list[i];
i                2079 dev/ic/dc.c    		m = sc->dc_cdata.dc_rx_chain[i].sd_mbuf;
i                2083 dev/ic/dc.c    		if (i == idx || rxstat & DC_RXSTAT_LASTFRAG)
i                2085 dev/ic/dc.c    		dc_newbuf(sc, i, m);
i                2086 dev/ic/dc.c    		DC_INC(i, DC_RX_LIST_CNT);
i                2110 dev/ic/dc.c    	dc_newbuf(sc, i, m);
i                2131 dev/ic/dc.c    	int i, pos, offset;
i                2135 dev/ic/dc.c    	for (i = 0; i < DC_RX_LIST_CNT; i++) {
i                2149 dev/ic/dc.c    	if (i == DC_RX_LIST_CNT)
i                2169 dev/ic/dc.c    	int i, offset, total_len = 0;
i                2173 dev/ic/dc.c    	i = sc->dc_cdata.dc_rx_prod;
i                2178 dev/ic/dc.c    		offset = offsetof(struct dc_list_data, dc_rx_list[i]);
i                2183 dev/ic/dc.c    		cur_rx = &sc->dc_ldata->dc_rx_list[i];
i                2188 dev/ic/dc.c    		m = sc->dc_cdata.dc_rx_chain[i].sd_mbuf;
i                2191 dev/ic/dc.c    		bus_dmamap_sync(sc->sc_dmat, sc->dc_cdata.dc_rx_chain[i].sd_map,
i                2192 dev/ic/dc.c    		    0, sc->dc_cdata.dc_rx_chain[i].sd_map->dm_mapsize,
i                2198 dev/ic/dc.c    					sc->dc_pnic_rx_bug_save = i;
i                2200 dev/ic/dc.c    					DC_INC(i, DC_RX_LIST_CNT);
i                2203 dev/ic/dc.c    				dc_pnic_rx_bug_war(sc, i);
i                2209 dev/ic/dc.c    		sc->dc_cdata.dc_rx_chain[i].sd_mbuf = NULL;
i                2226 dev/ic/dc.c    				dc_newbuf(sc, i, m);
i                2228 dev/ic/dc.c    					DC_INC(i, DC_RX_LIST_CNT);
i                2243 dev/ic/dc.c    		dc_newbuf(sc, i, m);
i                2244 dev/ic/dc.c    		DC_INC(i, DC_RX_LIST_CNT);
i                2260 dev/ic/dc.c    	sc->dc_cdata.dc_rx_prod = i;
i                2469 dev/ic/dc.c    	int		i;
i                2482 dev/ic/dc.c    		for (i = 0; i < DC_TIMEOUT; i++) {
i                2488 dev/ic/dc.c    		if (i == DC_TIMEOUT) {
i                2603 dev/ic/dc.c    	int frag, cur, cnt = 0, i;
i                2619 dev/ic/dc.c    	for (i = 0; i < map->dm_nsegs; i++) {
i                2634 dev/ic/dc.c    		f->dc_ctl = htole32(DC_TXCTL_TLINK | map->dm_segs[i].ds_len);
i                2640 dev/ic/dc.c    		f->dc_data = htole32(map->dm_segs[i].ds_addr);
i                3148 dev/ic/dc.c    	int i;
i                3166 dev/ic/dc.c    	for (i = 0; i < DC_RX_LIST_CNT; i++) {
i                3167 dev/ic/dc.c    		if (sc->dc_cdata.dc_rx_chain[i].sd_map->dm_nsegs != 0) {
i                3168 dev/ic/dc.c    			bus_dmamap_t map = sc->dc_cdata.dc_rx_chain[i].sd_map;
i                3174 dev/ic/dc.c    		if (sc->dc_cdata.dc_rx_chain[i].sd_mbuf != NULL) {
i                3175 dev/ic/dc.c    			m_freem(sc->dc_cdata.dc_rx_chain[i].sd_mbuf);
i                3176 dev/ic/dc.c    			sc->dc_cdata.dc_rx_chain[i].sd_mbuf = NULL;
i                3185 dev/ic/dc.c    	for (i = 0; i < DC_TX_LIST_CNT; i++) {
i                3186 dev/ic/dc.c    		if (sc->dc_cdata.dc_tx_chain[i].sd_map->dm_nsegs != 0) {
i                3187 dev/ic/dc.c    			bus_dmamap_t map = sc->dc_cdata.dc_tx_chain[i].sd_map;
i                3193 dev/ic/dc.c    		if (sc->dc_cdata.dc_tx_chain[i].sd_mbuf != NULL) {
i                3194 dev/ic/dc.c    			if (sc->dc_ldata->dc_tx_list[i].dc_ctl &
i                3196 dev/ic/dc.c    				sc->dc_cdata.dc_tx_chain[i].sd_mbuf = NULL;
i                3199 dev/ic/dc.c    			m_freem(sc->dc_cdata.dc_tx_chain[i].sd_mbuf);
i                3200 dev/ic/dc.c    			sc->dc_cdata.dc_tx_chain[i].sd_mbuf = NULL;
i                 115 dev/ic/dl10019.c 	int i;
i                 120 dev/ic/dl10019.c 	for (i = 0; i < 2; i++) {
i                 248 dev/ic/dp8390.c 	int i;
i                 321 dev/ic/dp8390.c 	for (i = 0; i < ETHER_ADDR_LEN; ++i)
i                 322 dev/ic/dp8390.c 		NIC_PUT(regt, regh, ED_P1_PAR0 + i,
i                 323 dev/ic/dp8390.c 		    sc->sc_arpcom.ac_enaddr[i]);
i                 327 dev/ic/dp8390.c 	for (i = 0; i < 8; i++)
i                 328 dev/ic/dp8390.c 		NIC_PUT(regt, regh, ED_P1_MAR0 + i, mcaf[i]);
i                 344 dev/ic/dp8390.c 	i = ED_RCR_AB | ED_RCR_AM | sc->rcr_proto;
i                 350 dev/ic/dp8390.c 		i |= ED_RCR_PRO | ED_RCR_AR | ED_RCR_SEP;
i                 352 dev/ic/dp8390.c 	NIC_PUT(regt, regh, ED_P0_RCR, i);
i                 965 dev/ic/dp8390.c 	int i;
i                 978 dev/ic/dp8390.c 		for (i = 0; i < 8; i++)
i                 979 dev/ic/dp8390.c 			af[i] = 0xff;
i                 982 dev/ic/dp8390.c 	for (i = 0; i < 8; i++)
i                 983 dev/ic/dp8390.c 		af[i] = 0;
i                 997 dev/ic/dp8390.c 			for (i = 0; i < 8; i++)
i                 998 dev/ic/dp8390.c 				af[i] = 0xff;
i                1091 dev/ic/dp8390.c 	int i;
i                1095 dev/ic/dp8390.c 	for (i = 0; i < sc->mem_size; ++i) {
i                1096 dev/ic/dp8390.c 		if (bus_space_read_1(buft, bufh, sc->mem_start + i)) {
i                1098 dev/ic/dp8390.c 			    "check configuration\n", (sc->mem_start + i));
i                  98 dev/ic/dp857xreg.h 		int i;							\
i                 105 dev/ic/dp857xreg.h 			for (i = DP_FIRSTTODREG; i < SIZE_DP857X; i++)	\
i                 106 dev/ic/dp857xreg.h 				(*regs)[i] = dp857x_read(sc, i);	\
i                 116 dev/ic/dp857xreg.h 		int i;							\
i                 124 dev/ic/dp857xreg.h 		for (i = DP_FIRSTTODREG; i <= DP_LASTTODREG; i++)	\
i                 125 dev/ic/dp857xreg.h 			dp857x_write(sc, i, (*regs)[i]);		\
i                 284 dev/ic/dpt.c   	int i, j, error, rseg, mapsize;
i                 337 dev/ic/dpt.c   	i = dpt_create_ccbs(sc, sc->sc_ccbs, sc->sc_nccbs);
i                 339 dev/ic/dpt.c   	if (i == 0) {
i                 342 dev/ic/dpt.c   	} else if (i != sc->sc_nccbs) {
i                 343 dev/ic/dpt.c   		printf("%s: %d/%d CCBs created!\n", sc->sc_dv.dv_xname, i, 
i                 345 dev/ic/dpt.c   		sc->sc_nccbs = i;
i                 359 dev/ic/dpt.c   	for (i = 0; ei->ei_vendor[i] != ' ' && i < 8; i++)
i                 361 dev/ic/dpt.c   	ei->ei_vendor[i] = '\0';
i                 363 dev/ic/dpt.c   	for (i = 0; ei->ei_model[i] != ' ' && i < 7; i++)
i                 364 dev/ic/dpt.c   		model[i] = ei->ei_model[i];
i                 366 dev/ic/dpt.c   		model[i++] = ei->ei_suffix[j];
i                 367 dev/ic/dpt.c   	model[i] = '\0';
i                 370 dev/ic/dpt.c   	for (i = 0; dpt_cname[i] != NULL; i += 2)
i                 371 dev/ic/dpt.c   		if (memcmp(ei->ei_model, dpt_cname[i], 6) == 0)
i                 374 dev/ic/dpt.c   	printf("%s %s (%s)\n", ei->ei_vendor, dpt_cname[i + 1], model);
i                 382 dev/ic/dpt.c   	for (i = 0; i <= ec->ec_maxchannel; i++)
i                 383 dev/ic/dpt.c   		printf(" %d", ec->ec_hba[3 - i]);
i                 401 dev/ic/dpt.c   	for (i = 0; i <= ec->ec_maxchannel; i++) {
i                 408 dev/ic/dpt.c   		sc->sc_hbaid[i] = ec->ec_hba[3 - i];
i                 409 dev/ic/dpt.c   		link = &sc->sc_link[i];
i                 411 dev/ic/dpt.c   		link->scsipi_scsi.scsibus = i;
i                 412 dev/ic/dpt.c   		link->scsipi_scsi.adapter_target = sc->sc_hbaid[i];
i                 418 dev/ic/dpt.c   		link->scsibus = i;
i                 419 dev/ic/dpt.c   		link->adapter_target = sc->sc_hbaid[i];
i                 458 dev/ic/dpt.c   	int i;
i                 460 dev/ic/dpt.c   	for (i = 20000; i; i--) {
i                 467 dev/ic/dpt.c   	if (i == 0) {
i                 524 dev/ic/dpt.c   	int i;
i                 534 dev/ic/dpt.c           for (i = ccb->ccb_timeout * 20; i; i--) {
i                 552 dev/ic/dpt.c   	int i, j, stat;
i                 561 dev/ic/dpt.c   	for (i = 1000; i; i--) {
i                 567 dev/ic/dpt.c   	if (i == 0) {
i                 594 dev/ic/dpt.c   	i = ((int)&((struct eata_cfg *)0)->ec_cfglen + 
i                 605 dev/ic/dpt.c    	while (i--)
i                 608 dev/ic/dpt.c           if ((i = ec->ec_cfglen) > (sizeof(struct eata_cfg)
i                 611 dev/ic/dpt.c                   i = sizeof(struct eata_cfg)
i                 615 dev/ic/dpt.c           j = i + (int)(&(((struct eata_cfg *)0L)->ec_cfglen)) + 
i                 617 dev/ic/dpt.c           i >>= 1;
i                 619 dev/ic/dpt.c   	while (i--)
i                 623 dev/ic/dpt.c           i = (512 - j + 1) >> 1;
i                 624 dev/ic/dpt.c   	while (i--)
i                 724 dev/ic/dpt.c   	int i, error;
i                 728 dev/ic/dpt.c   	for (i = 0, ccb = ccbstore; i < count; i++, ccb++) {
i                 734 dev/ic/dpt.c   		ccb->ccb_id = i;
i                 738 dev/ic/dpt.c   	return (i);
i                 948 dev/ic/dpt.c   	int error, i, flags, s, fromqueue, dontqueue;
i                1186 dev/ic/dpt.c   			for (i = 0; i < xfer->dm_nsegs; i++, sg++) {
i                1188 dev/ic/dpt.c   				  htobe32(xfer->dm_segs[i].ds_addr);
i                1190 dev/ic/dpt.c   				  htobe32(xfer->dm_segs[i].ds_len);
i                1195 dev/ic/dpt.c   			cp->cp_datalen = htobe32(i * sizeof(struct eata_sg));
i                1302 dev/ic/dpt.c   	int i;
i                1313 dev/ic/dpt.c   	for (i = 0; i < 9; i++)
i                1314 dev/ic/dpt.c   		printf("%d ", sp->sp_messages[i]);
i                 206 dev/ic/elink3.c 	int i;
i                 208 dev/ic/elink3.c 	for (i = 0; i < 10000; i++) {
i                 221 dev/ic/elink3.c 	int i;
i                 231 dev/ic/elink3.c 	for (i = 0; i < 8000; i++) {
i                 274 dev/ic/elink3.c 	u_int16_t i;
i                 289 dev/ic/elink3.c 		for (i = 0; i < 3; i++) {
i                 290 dev/ic/elink3.c 			u_int16_t x = ep_read_eeprom(sc, i);
i                 292 dev/ic/elink3.c 			sc->sc_arpcom.ac_enaddr[(i << 1)] = x >> 8;
i                 293 dev/ic/elink3.c 			sc->sc_arpcom.ac_enaddr[(i << 1) + 1] = x;
i                 319 dev/ic/elink3.c 	i = bus_space_read_2(iot, ioh, EP_W5_TX_AVAIL_THRESH);
i                 321 dev/ic/elink3.c 	switch (i)  {
i                 334 dev/ic/elink3.c 		    "Interface disabled\n", EP_THRESH_DISABLE, (int) i);
i                 477 dev/ic/elink3.c 	int	conn, i;
i                 483 dev/ic/elink3.c 	for (i = 0; i < 3; i++) {
i                 484 dev/ic/elink3.c 		struct ep_media * epm = ep_isa_media + i;
i                 535 dev/ic/elink3.c 	register int i;
i                 547 dev/ic/elink3.c 	for (i = 0; i < 8; i++) {
i                 548 dev/ic/elink3.c 		const struct ep_media *epm = ep_vortex_media + i;
i                 596 dev/ic/elink3.c 	int i;
i                 615 dev/ic/elink3.c 	for (i = 0; i < 6; i++)	/* Reload the ether_addr. */
i                 616 dev/ic/elink3.c 		bus_space_write_1(iot, ioh, EP_W2_ADDR_0 + i,
i                 617 dev/ic/elink3.c 		    sc->sc_arpcom.ac_enaddr[i]);
i                 624 dev/ic/elink3.c 		for (i = 0; i < 6; i++)
i                 625 dev/ic/elink3.c 			bus_space_write_1(iot, ioh, EP_W2_RECVMASK_0 + i, 0);
i                 631 dev/ic/elink3.c 	for (i = 0; i < 31; i++)
i                1172 dev/ic/elink3.c 	int i;
i                1178 dev/ic/elink3.c 	while ((i = bus_space_read_1(iot, ioh,
i                1183 dev/ic/elink3.c 		if (i & TXS_JABBER) {
i                1188 dev/ic/elink3.c 				       sc->sc_dev.dv_xname, i);
i                1191 dev/ic/elink3.c 		} else if (i & TXS_UNDERRUN) {
i                1196 dev/ic/elink3.c 				       sc->sc_dev.dv_xname, i,
i                1204 dev/ic/elink3.c 		} else if (i & TXS_MAX_COLLISION) {
i                1655 dev/ic/elink3.c 	int i;
i                1659 dev/ic/elink3.c 	for (i = 0; i < 16; i++)
i                1670 dev/ic/elink3.c 	int i = 100, j;
i                1672 dev/ic/elink3.c 	while (i--) {
i                1679 dev/ic/elink3.c 	if (!i) {
i                1724 dev/ic/elink3.c 	int s, i;
i                1727 dev/ic/elink3.c 	i = sc->last_mb;
i                1729 dev/ic/elink3.c 		if (sc->mb[i] == NULL)
i                1730 dev/ic/elink3.c 			MGET(sc->mb[i], M_DONTWAIT, MT_DATA);
i                1731 dev/ic/elink3.c 		if (sc->mb[i] == NULL)
i                1733 dev/ic/elink3.c 		i = (i + 1) % MAX_MBS;
i                1734 dev/ic/elink3.c 	} while (i != sc->next_mb);
i                1735 dev/ic/elink3.c 	sc->last_mb = i;
i                1746 dev/ic/elink3.c 	int s, i;
i                1749 dev/ic/elink3.c 	for (i = 0; i<MAX_MBS; i++) {
i                1750 dev/ic/elink3.c 		if (sc->mb[i]) {
i                1751 dev/ic/elink3.c 			m_freem(sc->mb[i]);
i                1752 dev/ic/elink3.c 			sc->mb[i] = NULL;
i                1801 dev/ic/elink3.c         int i;
i                1805 dev/ic/elink3.c         for (i = 0; i < 32; i++) {
i                1817 dev/ic/elink3.c         int i;
i                1821 dev/ic/elink3.c         for (i = 1 << (nbits - 1); i; i = i >> 1) {
i                1824 dev/ic/elink3.c                 if (data & i)
i                1839 dev/ic/elink3.c         int val = 0, i, err;
i                1864 dev/ic/elink3.c         for (i = 0; i < 16; i++) {
i                 199 dev/ic/fxp.c   	int i = 10000;
i                 201 dev/ic/fxp.c   	while (CSR_READ_1(sc, FXP_CSR_SCB_COMMAND) && --i)
i                 203 dev/ic/fxp.c   	if (i == 0)
i                 233 dev/ic/fxp.c   	int i;
i                 257 dev/ic/fxp.c   	for (i = 0; i < 1000; i++) {
i                 277 dev/ic/fxp.c   	int i;
i                 279 dev/ic/fxp.c   	for (i = 0; i < words; i++)
i                 280 dev/ic/fxp.c   		fxp_eeprom_putword(sc, offset + i, data[i]);
i                 344 dev/ic/fxp.c   	int i, err;
i                 378 dev/ic/fxp.c   	for (i = 0; i < FXP_NTXCB; i++) {
i                 380 dev/ic/fxp.c   		    FXP_NTXSEG, MCLBYTES, 0, 0, &sc->txs[i].tx_map)) != 0) {
i                 382 dev/ic/fxp.c   			    sc->sc_dev.dv_xname, i, err);
i                 385 dev/ic/fxp.c   		sc->txs[i].tx_mbuf = NULL;
i                 386 dev/ic/fxp.c   		sc->txs[i].tx_cb = sc->sc_ctrl->tx_cb + i;
i                 387 dev/ic/fxp.c   		sc->txs[i].tx_off = offsetof(struct fxp_ctrl, tx_cb[i]);
i                 388 dev/ic/fxp.c   		sc->txs[i].tx_next = &sc->txs[(i + 1) & FXP_TXCB_MASK];
i                 396 dev/ic/fxp.c   	for (i = 0; i < FXP_NRFABUFS_MIN; i++) {
i                 398 dev/ic/fxp.c   		    MCLBYTES, 0, 0, &sc->sc_rxmaps[i])) != 0) {
i                 400 dev/ic/fxp.c   			    sc->sc_dev.dv_xname, i, err);
i                 405 dev/ic/fxp.c   	for (i = 0; i < FXP_NRFABUFS_MIN; i++)
i                 455 dev/ic/fxp.c   			int i;
i                 463 dev/ic/fxp.c   			for (i = 0; i < (1 << sc->eeprom_size) - 1; i++) {
i                 464 dev/ic/fxp.c   				fxp_read_eeprom(sc, &data, i, 1);
i                 467 dev/ic/fxp.c   			i = (1 << sc->eeprom_size) - 1;
i                 469 dev/ic/fxp.c   			fxp_read_eeprom(sc, &data, i, 1);
i                 470 dev/ic/fxp.c   			fxp_write_eeprom(sc, &cksum, i, 1);
i                 472 dev/ic/fxp.c   			    i, data, cksum);
i                 633 dev/ic/fxp.c   	int i, x;
i                 635 dev/ic/fxp.c   	for (i = 0; i < words; i++) {
i                 657 dev/ic/fxp.c   			if ((i + offset) & (1 << (x - 1))) {
i                 670 dev/ic/fxp.c   		data[i] = 0;
i                 680 dev/ic/fxp.c   				data[i] |= (1 << (x - 1));
i                 684 dev/ic/fxp.c   		data[i] = letoh16(data[i]);
i                1059 dev/ic/fxp.c   	int i;
i                1083 dev/ic/fxp.c   	for (i = 0; i < FXP_NTXCB; i++) {
i                1084 dev/ic/fxp.c   		if (sc->txs[i].tx_mbuf != NULL) {
i                1085 dev/ic/fxp.c   			bus_dmamap_unload(sc->sc_dmat, sc->txs[i].tx_map);
i                1086 dev/ic/fxp.c   			m_freem(sc->txs[i].tx_mbuf);
i                1087 dev/ic/fxp.c   			sc->txs[i].tx_mbuf = NULL;
i                1109 dev/ic/fxp.c   		for (i = 0; i < FXP_NRFABUFS_MIN; i++) {
i                1158 dev/ic/fxp.c   	int i, prm, save_bf, lrxen, allm, s, bufs;
i                1343 dev/ic/fxp.c   	for (i = 0; i < FXP_NTXCB; i++) {
i                1344 dev/ic/fxp.c   		txp[i].cb_command = htole16(FXP_CB_COMMAND_NOP);
i                1345 dev/ic/fxp.c   		txp[i].link_addr = htole32(sc->tx_cb_map->dm_segs->ds_addr +
i                1346 dev/ic/fxp.c   		    offsetof(struct fxp_ctrl, tx_cb[(i + 1) & FXP_TXCB_MASK]));
i                1347 dev/ic/fxp.c   		txp[i].tbd_array_addr =htole32(sc->tx_cb_map->dm_segs->ds_addr +
i                1348 dev/ic/fxp.c   		    offsetof(struct fxp_ctrl, tx_cb[i].tbd[0]));
i                1383 dev/ic/fxp.c   		for (i = sc->rx_bufs; i < bufs; i++) {
i                1385 dev/ic/fxp.c   			    MCLBYTES, 0, 0, &sc->sc_rxmaps[i])) != 0) {
i                1387 dev/ic/fxp.c   				  "error %d\n", sc->sc_dev.dv_xname, i, err);
i                1392 dev/ic/fxp.c   		for (i = tmp_rx_bufs; i < sc->rx_bufs; i++)
i                1809 dev/ic/fxp.c   	int i, error;
i                1833 dev/ic/fxp.c   	for (i = 0; i < (ucode_len / sizeof(u_int32_t)); i++)
i                1834 dev/ic/fxp.c   		cbp->ucode[i] = ucode_buf[i];
i                1859 dev/ic/fxp.c   	i = 10000;
i                1863 dev/ic/fxp.c   	} while (((cbp->cb_status & htole16(FXP_CB_STATUS_C)) == 0) && --i);
i                1864 dev/ic/fxp.c   	if (i == 0) {
i                 125 dev/ic/gdt_common.c 	int i, id, drv_cyls, drv_hds, drv_secs, error, nsegs;
i                 145 dev/ic/gdt_common.c 	for (i = 0; i < GDT_MAXCMDS; i++) {
i                 146 dev/ic/gdt_common.c 		gdt->sc_ccbs[i].gc_cmd_index = i + 2;
i                 151 dev/ic/gdt_common.c 		    &gdt->sc_ccbs[i].gc_dmamap_xfer);
i                 157 dev/ic/gdt_common.c 		(void)gdt_ccb_set_cmd(gdt->sc_ccbs + i, GDT_GCF_UNUSED);
i                 158 dev/ic/gdt_common.c 		TAILQ_INSERT_TAIL(&gdt->sc_free_ccb, &gdt->sc_ccbs[i],
i                 196 dev/ic/gdt_common.c 		for (i = 0; i < gdt->sc_bus_cnt; i++) {
i                 198 dev/ic/gdt_common.c 			    i * GDT_RAWIOC_SZ + GDT_RAWIOC_PROC_ID];
i                 204 dev/ic/gdt_common.c 		gdt_enc32(gdt->sc_scratch + GDT_GETCH_CHANNEL_NO, i);
i                 205 dev/ic/gdt_common.c 		for (i = 0; i < GDT_MAXBUS; i++) {
i                 210 dev/ic/gdt_common.c 				if (i == 0) {
i                 217 dev/ic/gdt_common.c 			gdt->sc_bus_id[i] =
i                 221 dev/ic/gdt_common.c 		gdt->sc_bus_cnt = i;
i                 431 dev/ic/gdt_common.c 	for (i = 0; i < cdev_cnt && i < GDT_MAX_HDRIVES; i++)
i                 432 dev/ic/gdt_common.c 		if (gdt_internal_cmd(gdt, GDT_CACHESERVICE, GDT_INFO, i, 0,
i                 434 dev/ic/gdt_common.c 			gdt->sc_hdr[i].hd_present = 1;
i                 435 dev/ic/gdt_common.c 			gdt->sc_hdr[i].hd_size = gdt->sc_info;
i                 437 dev/ic/gdt_common.c 			if (gdt->sc_hdr[i].hd_size > 0)
i                 443 dev/ic/gdt_common.c 			gdt->sc_hdr[i].hd_size &= ~GDT_SECS32;
i                 445 dev/ic/gdt_common.c 				gdt_eval_mapping(gdt->sc_hdr[i].hd_size,
i                 450 dev/ic/gdt_common.c 				drv_cyls = gdt->sc_hdr[i].hd_size / drv_hds /
i                 453 dev/ic/gdt_common.c 			gdt->sc_hdr[i].hd_heads = drv_hds;
i                 454 dev/ic/gdt_common.c 			gdt->sc_hdr[i].hd_secs = drv_secs;
i                 456 dev/ic/gdt_common.c 			gdt->sc_hdr[i].hd_size = drv_cyls * drv_hds * drv_secs;
i                 459 dev/ic/gdt_common.c 			    GDT_DEVTYPE, i, 0, 0))
i                 460 dev/ic/gdt_common.c 				gdt->sc_hdr[i].hd_devtype = gdt->sc_info;
i                 499 dev/ic/gdt_common.c 	for (i = 0; i < gdt->sc_bus_cnt; i++) {
i                 501 dev/ic/gdt_common.c 		gdt->sc_raw_link[i].adapter_softc = gdt;
i                 502 dev/ic/gdt_common.c 		gdt->sc_raw_link[i].adapter = &gdt_raw_switch;
i                 503 dev/ic/gdt_common.c 		gdt->sc_raw_link[i].adapter_target = 7;
i                 504 dev/ic/gdt_common.c 		gdt->sc_raw_link[i].device = &gdt_dev;
i                 505 dev/ic/gdt_common.c 		gdt->sc_raw_link[i].openings = 4;	/* XXX a guess */
i                 506 dev/ic/gdt_common.c 		gdt->sc_raw_link[i].adapter_buswidth =
i                 510 dev/ic/gdt_common.c 		saa.saa_sc_link = &gdt->sc_raw_link[i];
i                 808 dev/ic/gdt_common.c 	int i;
i                 870 dev/ic/gdt_common.c 			for (i = 0; i < xfer->dm_nsegs; i++) {
i                 872 dev/ic/gdt_common.c 				    GDT_CACHE_SG_LST + i * GDT_SG_SZ +
i                 874 dev/ic/gdt_common.c 				    xfer->dm_segs[i].ds_addr);
i                 876 dev/ic/gdt_common.c 				    GDT_CACHE_SG_LST + i * GDT_SG_SZ +
i                 878 dev/ic/gdt_common.c 				    xfer->dm_segs[i].ds_len);
i                 880 dev/ic/gdt_common.c 				    ("#%d va %p pa %p len %x\n", i, buf,
i                 881 dev/ic/gdt_common.c 				    xfer->dm_segs[i].ds_addr,
i                 882 dev/ic/gdt_common.c 				    xfer->dm_segs[i].ds_len));
i                 137 dev/ic/gem.c   	int i, error, phyad;
i                 184 dev/ic/gem.c   	for (i = 0; i < GEM_NRXDESC; i++) {
i                 186 dev/ic/gem.c   		    MCLBYTES, 0, 0, &sc->sc_rxsoft[i].rxs_dmamap)) != 0) {
i                 188 dev/ic/gem.c   			    "error = %d\n", sc->sc_dev.dv_xname, i, error);
i                 191 dev/ic/gem.c   		sc->sc_rxsoft[i].rxs_mbuf = NULL;
i                 196 dev/ic/gem.c   	for (i = 0; i < GEM_NTXDESC; i++) {
i                 199 dev/ic/gem.c   		    &sc->sc_txd[i].sd_map)) != 0) {
i                 201 dev/ic/gem.c   			    "error = %d\n", sc->sc_dev.dv_xname, i, error);
i                 204 dev/ic/gem.c   		sc->sc_txd[i].sd_mbuf = NULL;
i                 359 dev/ic/gem.c   	for (i = 0; i < GEM_NTXDESC; i++) {
i                 360 dev/ic/gem.c   		if (sc->sc_txd[i].sd_map != NULL)
i                 362 dev/ic/gem.c   			    sc->sc_txd[i].sd_map);
i                 365 dev/ic/gem.c   	for (i = 0; i < GEM_NRXDESC; i++) {
i                 366 dev/ic/gem.c   		if (sc->sc_rxsoft[i].rxs_dmamap != NULL)
i                 368 dev/ic/gem.c   			    sc->sc_rxsoft[i].rxs_dmamap);
i                 416 dev/ic/gem.c   	int i;
i                 419 dev/ic/gem.c   	for (i = TRIES; i--; DELAY(100)) {
i                 455 dev/ic/gem.c   	int i;
i                 457 dev/ic/gem.c   	for (i = 0; i < GEM_NRXDESC; i++) {
i                 458 dev/ic/gem.c   		rxs = &sc->sc_rxsoft[i];
i                 477 dev/ic/gem.c   	u_int32_t i;
i                 497 dev/ic/gem.c   	for (i = 0; i < GEM_NTXDESC; i++) {
i                 498 dev/ic/gem.c   		sd = &sc->sc_txd[i];
i                 623 dev/ic/gem.c   	int i, error;
i                 628 dev/ic/gem.c   	for (i = 0; i < GEM_NTXDESC; i++) {
i                 629 dev/ic/gem.c   		sc->sc_txdescs[i].gd_flags = 0;
i                 630 dev/ic/gem.c   		sc->sc_txdescs[i].gd_addr = 0;
i                 639 dev/ic/gem.c   	for (i = 0; i < GEM_NRXDESC; i++) {
i                 640 dev/ic/gem.c   		rxs = &sc->sc_rxsoft[i];
i                 642 dev/ic/gem.c   			if ((error = gem_add_rxbuf(sc, i)) != 0) {
i                 645 dev/ic/gem.c   				    sc->sc_dev.dv_xname, i, error);
i                 654 dev/ic/gem.c   			GEM_INIT_RXDESC(sc, i);
i                 919 dev/ic/gem.c   	int i, len;
i                 921 dev/ic/gem.c   	for (i = sc->sc_rxptr;; i = GEM_NEXTRX(i)) {
i                 922 dev/ic/gem.c   		rxs = &sc->sc_rxsoft[i];
i                 924 dev/ic/gem.c   		GEM_CDRXSYNC(sc, i,
i                 927 dev/ic/gem.c   		rxstat = GEM_DMA_READ(sc, sc->sc_rxdescs[i].gd_flags);
i                 941 dev/ic/gem.c   			GEM_INIT_RXDESC(sc, i);
i                 949 dev/ic/gem.c   			printf("    rxsoft %p descriptor %d: ", rxs, i);
i                 951 dev/ic/gem.c   				GEM_DMA_READ(sc, sc->sc_rxdescs[i].gd_flags));
i                 953 dev/ic/gem.c   				GEM_DMA_READ(sc, sc->sc_rxdescs[i].gd_addr));
i                 966 dev/ic/gem.c   		if (gem_add_rxbuf(sc, i) != 0) {
i                 968 dev/ic/gem.c   			GEM_INIT_RXDESC(sc, i);
i                 994 dev/ic/gem.c   	sc->sc_rxptr = i;
i                 995 dev/ic/gem.c   	bus_space_write_4(t, h, GEM_RX_KICK, i);
i                1527 dev/ic/gem.c   	int i;
i                1557 dev/ic/gem.c   	for (i = 0; i < 16; i++)
i                1558 dev/ic/gem.c   		hash[i] = 0;
i                1593 dev/ic/gem.c   	for (i = 0; i < 16; i++) {
i                1595 dev/ic/gem.c   		    GEM_MAC_HASH0 + i * (GEM_MAC_HASH1-GEM_MAC_HASH0),
i                1596 dev/ic/gem.c   		    hash[i]);
i                1607 dev/ic/gem.c   	u_int32_t cur, frag, i;
i                1626 dev/ic/gem.c   	for (i = 0; i < map->dm_nsegs; i++) {
i                1628 dev/ic/gem.c   		    GEM_DMA_WRITE(sc, map->dm_segs[i].ds_addr);
i                1629 dev/ic/gem.c   		flags = (map->dm_segs[i].ds_len & GEM_TD_BUFSIZE) |
i                1630 dev/ic/gem.c   		    (i == 0 ? GEM_TD_START_OF_PACKET : 0) |
i                1631 dev/ic/gem.c   		    ((i == (map->dm_nsegs - 1)) ? GEM_TD_END_OF_PACKET : 0);
i                 130 dev/ic/hme.c   	int rseg, error, i;
i                 161 dev/ic/hme.c   	for (i = 0; i < HME_TX_RING_SIZE; i++) {
i                 164 dev/ic/hme.c   		    &sc->sc_txd[i].sd_map) != 0) {
i                 165 dev/ic/hme.c   			sc->sc_txd[i].sd_map = NULL;
i                 169 dev/ic/hme.c   	for (i = 0; i < HME_RX_RING_SIZE; i++) {
i                 172 dev/ic/hme.c   		    &sc->sc_rxd[i].sd_map) != 0) {
i                 173 dev/ic/hme.c   			sc->sc_rxd[i].sd_map = NULL;
i                 313 dev/ic/hme.c   	for (i = 0; i < HME_TX_RING_SIZE; i++)
i                 314 dev/ic/hme.c   		if (sc->sc_txd[i].sd_map != NULL)
i                 315 dev/ic/hme.c   			bus_dmamap_destroy(sc->sc_dmatag, sc->sc_txd[i].sd_map);
i                 316 dev/ic/hme.c   	for (i = 0; i < HME_RX_RING_SIZE; i++)
i                 317 dev/ic/hme.c   		if (sc->sc_rxd[i].sd_map != NULL)
i                 318 dev/ic/hme.c   			bus_dmamap_destroy(sc->sc_dmatag, sc->sc_rxd[i].sd_map);
i                 414 dev/ic/hme.c   	unsigned int i;
i                 445 dev/ic/hme.c   	for (i = 0; i < HME_TX_RING_SIZE; i++) {
i                 446 dev/ic/hme.c   		HME_XD_SETADDR(sc->sc_pci, hr->rb_txd, i, 0);
i                 447 dev/ic/hme.c   		HME_XD_SETFLAGS(sc->sc_pci, hr->rb_txd, i, 0);
i                 448 dev/ic/hme.c   		sc->sc_txd[i].sd_mbuf = NULL;
i                 454 dev/ic/hme.c   	for (i = 0; i < HME_RX_RING_SIZE; i++) {
i                 455 dev/ic/hme.c   		if (hme_newbuf(sc, &sc->sc_rxd[i], 1)) {
i                 460 dev/ic/hme.c   		HME_XD_SETADDR(sc->sc_pci, hr->rb_rxd, i,
i                 461 dev/ic/hme.c   		    sc->sc_rxd[i].sd_map->dm_segs[0].ds_addr);
i                 462 dev/ic/hme.c   		HME_XD_SETFLAGS(sc->sc_pci, hr->rb_rxd, i,
i                 277 dev/ic/hmereg.h #define HME_XD_GETFLAGS(p, b, i)					\
i                 278 dev/ic/hmereg.h 	(p) ? letoh32(*((u_int32_t *)HME_XD_FLAGS(b,i))) :		\
i                 279 dev/ic/hmereg.h 		(*((u_int32_t *)HME_XD_FLAGS(b,i)))
i                 280 dev/ic/hmereg.h #define HME_XD_SETFLAGS(p, b, i, f)	do {				\
i                 281 dev/ic/hmereg.h 	*((u_int32_t *)HME_XD_FLAGS(b,i)) = ((p) ? htole32(f) : (f));	\
i                 283 dev/ic/hmereg.h #define HME_XD_SETADDR(p, b, i, a)	do {				\
i                 284 dev/ic/hmereg.h 	*((u_int32_t *)HME_XD_ADDR(b,i)) = ((p) ? htole32(a) : (a));	\
i                 202 dev/ic/i82365.c 	int vendor, count, i, reg;
i                 303 dev/ic/i82365.c 	for (i = 0; i < PCIC_NSLOTS; i++) {
i                 308 dev/ic/i82365.c 		if (sc->handle[i].flags & PCIC_FLAG_SOCKETP) {
i                 309 dev/ic/i82365.c 			SIMPLEQ_INIT(&sc->handle[i].events);
i                 310 dev/ic/i82365.c 			pcic_write(&sc->handle[i], PCIC_CSC_INTR, 0);
i                 311 dev/ic/i82365.c 			pcic_read(&sc->handle[i], PCIC_CSC);
i                 315 dev/ic/i82365.c 	for (i = 0; i < PCIC_NSLOTS; i += 2) {
i                 316 dev/ic/i82365.c 		if ((sc->handle[i+0].flags & PCIC_FLAG_SOCKETP) ||
i                 317 dev/ic/i82365.c 		    (sc->handle[i+1].flags & PCIC_FLAG_SOCKETP)) {
i                 318 dev/ic/i82365.c 			vendor = pcic_vendor(&sc->handle[i]);
i                 321 dev/ic/i82365.c 			    sc->dev.dv_xname, i/2,
i                 324 dev/ic/i82365.c 			if ((sc->handle[i+0].flags & PCIC_FLAG_SOCKETP) &&
i                 325 dev/ic/i82365.c 			    (sc->handle[i+1].flags & PCIC_FLAG_SOCKETP))
i                 327 dev/ic/i82365.c 			else if (sc->handle[i+0].flags & PCIC_FLAG_SOCKETP)
i                 332 dev/ic/i82365.c 			if (sc->handle[i+0].flags & PCIC_FLAG_SOCKETP)
i                 333 dev/ic/i82365.c 				sc->handle[i+0].vendor = vendor;
i                 334 dev/ic/i82365.c 			if (sc->handle[i+1].flags & PCIC_FLAG_SOCKETP)
i                 335 dev/ic/i82365.c 				sc->handle[i+1].vendor = vendor;
i                 344 dev/ic/i82365.c 	int i;
i                 346 dev/ic/i82365.c 	for (i = 0; i < PCIC_NSLOTS; i++)
i                 347 dev/ic/i82365.c 		if (sc->handle[i].flags & PCIC_FLAG_SOCKETP)
i                 348 dev/ic/i82365.c 			pcic_attach_socket(&sc->handle[i]);
i                 659 dev/ic/i82365.c 	int i, ret = 0;
i                 663 dev/ic/i82365.c 	for (i = 0; i < PCIC_NSLOTS; i++)
i                 664 dev/ic/i82365.c 		if (sc->handle[i].flags & PCIC_FLAG_SOCKETP)
i                 665 dev/ic/i82365.c 			ret += pcic_intr_socket(&sc->handle[i]);
i                 675 dev/ic/i82365.c 	int i, s;
i                 683 dev/ic/i82365.c 	for (i = 0; i < PCIC_NSLOTS; i++)
i                 684 dev/ic/i82365.c 		if (sc->handle[i].flags & PCIC_FLAG_SOCKETP)
i                 685 dev/ic/i82365.c 			pcic_intr_socket(&sc->handle[i]);
i                 864 dev/ic/i82365.c 	int i, mask, mhandle;
i                 879 dev/ic/i82365.c 	for (i = 0; i <= PCIC_MAX_MEM_PAGES - sizepg; i++) {
i                 880 dev/ic/i82365.c 		if ((sc->subregionmask & (mask << i)) == (mask << i)) {
i                 882 dev/ic/i82365.c 			    i * PCIC_MEM_PAGESIZE,
i                 885 dev/ic/i82365.c 			mhandle = mask << i;
i                 886 dev/ic/i82365.c 			addr = sc->membase + (i * PCIC_MEM_PAGESIZE);
i                1041 dev/ic/i82365.c 	int i, win;
i                1045 dev/ic/i82365.c 	for (i = 0; i < (sizeof(mem_map_index) / sizeof(mem_map_index[0]));
i                1046 dev/ic/i82365.c 	    i++) {
i                1047 dev/ic/i82365.c 		if ((h->memalloc & (1 << i)) == 0) {
i                1048 dev/ic/i82365.c 			win = i;
i                1049 dev/ic/i82365.c 			h->memalloc |= (1 << i);
i                1305 dev/ic/i82365.c 	int i, win;
i                1314 dev/ic/i82365.c 	for (i = 0; i < (sizeof(io_map_index) / sizeof(io_map_index[0])); i++) {
i                1315 dev/ic/i82365.c 		if ((h->ioalloc & (1 << i)) == 0) {
i                1316 dev/ic/i82365.c 			win = i;
i                1317 dev/ic/i82365.c 			h->ioalloc |= (1 << i);
i                1366 dev/ic/i82365.c 	int i;
i                1368 dev/ic/i82365.c 	for (i = 0; i < 10000; i++) {
i                1373 dev/ic/i82365.c 			if ((i>5000) && (i%100 == 99))
i                 228 dev/ic/i82596.c 	int i;
i                 253 dev/ic/i82596.c 		for (i = 9000; i-- &&
i                 291 dev/ic/i82596.c 	int i;
i                 318 dev/ic/i82596.c                 for (i = 0; i < nmedia; i++)
i                 319 dev/ic/i82596.c                         ifmedia_add(&sc->sc_media, media[i], 0, NULL);
i                 368 dev/ic/i82596.c 	int i, off;
i                 370 dev/ic/i82596.c 	for (i = 180000; i--; DELAY(5)) {
i                 379 dev/ic/i82596.c 				    sc->sc_dev.dv_xname, (180000 - i) * 5);
i                 413 dev/ic/i82596.c 	int i, off;
i                 448 dev/ic/i82596.c 		for (i = 73800; i--; DELAY(5)) {
i                 589 dev/ic/i82596.c 	register int i, status, off;
i                 600 dev/ic/i82596.c 		i = sc->rfhead;
i                 601 dev/ic/i82596.c 		off = IE_RFRAME_STATUS(sc->rframes, i);
i                 609 dev/ic/i82596.c 				sc->sc_dev.dv_xname, i, status, IE_ST_BITS);
i                 615 dev/ic/i82596.c 				i82596_rx_errors(sc, i, status);
i                 630 dev/ic/i82596.c 			i82596_rx_errors(sc, i, status);
i                 637 dev/ic/i82596.c 				sc->sc_dev.dv_xname, i, status, IE_ST_BITS);
i                 649 dev/ic/i82596.c 		off = IE_RFRAME_LAST(sc->rframes, i);
i                 653 dev/ic/i82596.c 		off = IE_RFRAME_BUFDESC(sc->rframes, i);
i                 671 dev/ic/i82596.c 		} else if (i82596_readframe(sc, i) != 0)
i                1281 dev/ic/i82596.c 				static int i;
i                1283 dev/ic/i82596.c 					i = 0;
i                1284 dev/ic/i82596.c 				for (e = p + m->m_len; p < e; i++, p += 2) {
i                1285 dev/ic/i82596.c 					if (!(i % 8))
i                 222 dev/ic/i82596reg.h #define IE_RFRAME_ADDR(base,i)		((base) + (i) * 64)
i                 223 dev/ic/i82596reg.h #define IE_RFRAME_STATUS(b,i)		(IE_RFRAME_ADDR(b,i) + 0)
i                 224 dev/ic/i82596reg.h #define IE_RFRAME_LAST(b,i)		(IE_RFRAME_ADDR(b,i) + 2)
i                 225 dev/ic/i82596reg.h #define IE_RFRAME_NEXT(b,i)		(IE_RFRAME_ADDR(b,i) + 4)
i                 226 dev/ic/i82596reg.h #define IE_RFRAME_BUFDESC(b,i)		(IE_RFRAME_ADDR(b,i) + 6)
i                 227 dev/ic/i82596reg.h #define IE_RFRAME_EDST(b,i)		(IE_RFRAME_ADDR(b,i) + 8)
i                 228 dev/ic/i82596reg.h #define IE_RFRAME_ESRC(b,i)		(IE_RFRAME_ADDR(b,i) + 14)
i                 229 dev/ic/i82596reg.h #define IE_RFRAME_ELEN(b,i)		(IE_RFRAME_ADDR(b,i) + 20)
i                 262 dev/ic/i82596reg.h #define IE_RBD_ADDR(base,i)		((base) + (i) * 32)
i                 263 dev/ic/i82596reg.h #define IE_RBD_STATUS(b,i)		(IE_RBD_ADDR(b,i) + 0)
i                 264 dev/ic/i82596reg.h #define IE_RBD_NEXT(b,i)		(IE_RBD_ADDR(b,i) + 2)
i                 265 dev/ic/i82596reg.h #define IE_RBD_BUFADDR(b,i)		(IE_RBD_ADDR(b,i) + 4)
i                 266 dev/ic/i82596reg.h #define IE_RBD_BUFLEN(b,i)		(IE_RBD_ADDR(b,i) + 8)
i                 314 dev/ic/i82596reg.h #define IE_CMD_NOP_ADDR(base,i)		((base) + (i) * 32)
i                 315 dev/ic/i82596reg.h #define IE_CMD_NOP_STATUS(b,i)		(IE_CMD_NOP_ADDR(b,i) + 0)
i                 316 dev/ic/i82596reg.h #define IE_CMD_NOP_CMD(b,i)		(IE_CMD_NOP_ADDR(b,i) + 2)
i                 317 dev/ic/i82596reg.h #define IE_CMD_NOP_LINK(b,i)		(IE_CMD_NOP_ADDR(b,i) + 4)
i                 333 dev/ic/i82596reg.h #define IE_CMD_XMIT_ADDR(base,i)	((base) + (i) * 32)
i                 334 dev/ic/i82596reg.h #define IE_CMD_XMIT_STATUS(b,i)		(IE_CMD_XMIT_ADDR(b,i) + 0)
i                 335 dev/ic/i82596reg.h #define IE_CMD_XMIT_CMD(b,i)		(IE_CMD_XMIT_ADDR(b,i) + 2)
i                 336 dev/ic/i82596reg.h #define IE_CMD_XMIT_LINK(b,i)		(IE_CMD_XMIT_ADDR(b,i) + 4)
i                 337 dev/ic/i82596reg.h #define IE_CMD_XMIT_DESC(b,i)		\
i                 338 dev/ic/i82596reg.h 	(IE_CMD_XMIT_ADDR(b,i) + IE_CMD_COMMON_SZ + 0)
i                 339 dev/ic/i82596reg.h #define IE_CMD_XMIT_EADDR(b,i)		\
i                 340 dev/ic/i82596reg.h 	(IE_CMD_XMIT_ADDR(b,i) + IE_CMD_COMMON_SZ + 2)
i                 341 dev/ic/i82596reg.h #define IE_CMD_XMIT_LEN(b,i)		\
i                 342 dev/ic/i82596reg.h 	(IE_CMD_XMIT_ADDR(b,i) + IE_CMD_COMMON_SZ + 8)
i                 366 dev/ic/i82596reg.h #define IE_XBD_ADDR(base,i)		((base) + (i) * 32)
i                 367 dev/ic/i82596reg.h #define IE_XBD_FLAGS(b,i)		(IE_XBD_ADDR(b,i) + 0)
i                 368 dev/ic/i82596reg.h #define IE_XBD_NEXT(b,i)		(IE_XBD_ADDR(b,i) + 2)
i                 369 dev/ic/i82596reg.h #define IE_XBD_BUF(b,i)			(IE_XBD_ADDR(b,i) + 4)
i                 252 dev/ic/i82596var.h #define IE_RBUF_ADDR(sc, i)	(sc->rbufs + ((i) * IE_RBUF_SIZE))
i                 263 dev/ic/i82596var.h #define IE_XBUF_ADDR(sc, i)	(sc->xbufs + ((i) * IE_TBUF_SIZE))
i                 201 dev/ic/ibm561.c 	int	i;
i                 252 dev/ic/ibm561.c 	for (i=0; i < IBM561_NCMAP_ENTRIES; i++)
i                 253 dev/ic/ibm561.c 		data->cmap_r[i] = data->cmap_g[i] = data->cmap_b[i] = 0xff;
i                 260 dev/ic/ibm561.c 	for (i=0; i < IBM561_NGAMMA_ENTRIES; i++)
i                 261 dev/ic/ibm561.c 		data->gamma_r[i] = data->gamma_g[i] = data->gamma_b[i] = 0xff;
i                 263 dev/ic/ibm561.c 	for (i=0; i < IBM561_NWTYPES; i++)
i                 264 dev/ic/ibm561.c 		data->wtype[i] = 0x0036;
i                 426 dev/ic/ibm561.c 	int	i;
i                 434 dev/ic/ibm561.c 		for (i=0; i < IBM561_NWTYPES; i++)
i                 435 dev/ic/ibm561.c 			ibm561_regcont10bit(data, IBM561_CMD_FB_WAT, data->wtype[i]);
i                 439 dev/ic/ibm561.c 		for (i=0; i < IBM561_NWTYPES; i++)
i                 444 dev/ic/ibm561.c 		for (i=0; i < IBM561_NWTYPES; i++)
i                 449 dev/ic/ibm561.c 		for (i=0; i < IBM561_NWTYPES; i++)
i                 466 dev/ic/ibm561.c 	int	i;
i                 469 dev/ic/ibm561.c 	for (i=0; i < IBM561_NCMAP_ENTRIES; i++) {
i                 470 dev/ic/ibm561.c 		ibm561_regcont(data, IBM561_CMD_CMAP, data->cmap_r[i]);
i                 471 dev/ic/ibm561.c 		ibm561_regcont(data, IBM561_CMD_CMAP, data->cmap_g[i]);
i                 472 dev/ic/ibm561.c 		ibm561_regcont(data, IBM561_CMD_CMAP, data->cmap_b[i]);
i                 476 dev/ic/ibm561.c 	for (i=0; i < 256; i++)
i                 477 dev/ic/ibm561.c 		ibm561_regcont10bit(data, IBM561_CMD_GAMMA, data->gamma_r[i]);
i                 480 dev/ic/ibm561.c 	for (i=1; i < 256; i++)
i                 481 dev/ic/ibm561.c 		ibm561_regcont10bit(data, IBM561_CMD_GAMMA, data->gamma_g[i]);
i                 484 dev/ic/ibm561.c 	for (i=1; i < 256; i++)
i                 485 dev/ic/ibm561.c 		ibm561_regcont10bit(data, IBM561_CMD_GAMMA, data->gamma_b[i]);
i                 347 dev/ic/if_wi.c 		int i, nrates;
i                 354 dev/ic/if_wi.c 		for (i = 0; i < nrates; i++)
i                 355 dev/ic/if_wi.c 			sc->wi_supprates |= rates.wi_rates[2 + i];
i                 899 dev/ic/if_wi.c 	int			len, i;
i                 922 dev/ic/if_wi.c 	for (i = 0; i < len; i++) {
i                 924 dev/ic/if_wi.c 			wi_read_data(sc, id, 4 + i*2, (char *)&t, 2);
i                 932 dev/ic/if_wi.c 		ptr[i] += t;
i                 945 dev/ic/if_wi.c 	int			i, s = 0;
i                 948 dev/ic/if_wi.c 	for (i = sc->wi_cmd_count; i--; DELAY(1000)) {
i                 952 dev/ic/if_wi.c 	if (i < 0) {
i                 964 dev/ic/if_wi.c 	for (i = WI_TIMEOUT; i--; DELAY(WI_DELAY)) {
i                 980 dev/ic/if_wi.c 	if (i < 0) {
i                1159 dev/ic/if_wi.c 	int			i;
i                1241 dev/ic/if_wi.c 				for (i = 0; i < 4; i++) {
i                1244 dev/ic/if_wi.c 					ws.wi_type = WI_RID_P2_CRYPT_KEY0 + i;
i                1245 dev/ic/if_wi.c 					bcopy(&wk->wi_keys[i].wi_keydat,
i                1276 dev/ic/if_wi.c 	int			i;
i                1297 dev/ic/if_wi.c 	for (i = WI_TIMEOUT; i--; DELAY(1))
i                1301 dev/ic/if_wi.c 	if (i < 0)
i                1370 dev/ic/if_wi.c 	int			i;
i                1378 dev/ic/if_wi.c 	for (i = WI_TIMEOUT; i--; DELAY(1)) {
i                1383 dev/ic/if_wi.c 	if (i < 0)
i                1392 dev/ic/if_wi.c 	for (i = 0; i < len / 2; i++)
i                1402 dev/ic/if_wi.c 	int			i = 0;
i                1422 dev/ic/if_wi.c 		if (i >= 16) {
i                1431 dev/ic/if_wi.c 		bcopy(enm->enm_addrlo, (char *)&mcast.wi_mcast[i],
i                1433 dev/ic/if_wi.c 		i++;
i                1437 dev/ic/if_wi.c 	mcast.wi_len = (i * 3) + 1;
i                1550 dev/ic/if_wi.c 	int			s, error = 0, i, j, len;
i                1962 dev/ic/if_wi.c 			i = 0;
i                1972 dev/ic/if_wi.c 			i = sizeof(*p2);
i                1976 dev/ic/if_wi.c 		for (na->na_nodes = j = 0; (i < (wreq->wi_len * 2) - len) &&
i                1978 dev/ic/if_wi.c 		    i += len) {
i                1982 dev/ic/if_wi.c 			res = (struct wi_scan_res *)((char *)wreq->wi_val + i);
i                2342 dev/ic/if_wi.c 	u_int32_t i, crc, klen;
i                2384 dev/ic/if_wi.c 	for (i = 0; i < len; i++)
i                2385 dev/ic/if_wi.c 		crc = crc32tab[(crc ^ dat[i]) & 0xff] ^ (crc >> 8);
i                2401 dev/ic/if_wi.c 	u_int32_t i, crc, klen, kid;
i                2432 dev/ic/if_wi.c 	for (i = 0; i < len; i++)
i                2433 dev/ic/if_wi.c 		crc = crc32tab[(crc ^ dat[i]) & 0xff] ^ (crc >> 8);
i                3002 dev/ic/if_wi.c 	int i, len, error;
i                3011 dev/ic/if_wi.c 	for (i = 0; i < IEEE80211_WEP_NKID; i++) {
i                3012 dev/ic/if_wi.c 		if (nwkey->i_key[i].i_keydat == NULL)
i                3014 dev/ic/if_wi.c 		len = nwkey->i_key[i].i_keylen;
i                3015 dev/ic/if_wi.c 		if (len > sizeof(wk->wi_keys[i].wi_keydat))
i                3017 dev/ic/if_wi.c 		error = copyin(nwkey->i_key[i].i_keydat,
i                3018 dev/ic/if_wi.c 		    wk->wi_keys[i].wi_keydat, len);
i                3021 dev/ic/if_wi.c 		wk->wi_keys[i].wi_keylen = htole16(len);
i                3063 dev/ic/if_wi.c 	int i, len, error;
i                3073 dev/ic/if_wi.c 	for (i = 0; i < IEEE80211_WEP_NKID; i++) {
i                3074 dev/ic/if_wi.c 		if (nwkey->i_key[i].i_keydat == NULL)
i                3079 dev/ic/if_wi.c 		len = letoh16(wk->wi_keys[i].wi_keylen);
i                3080 dev/ic/if_wi.c 		if (nwkey->i_key[i].i_keylen < len)
i                3082 dev/ic/if_wi.c 		nwkey->i_key[i].i_keylen = len;
i                3083 dev/ic/if_wi.c 		error = copyout(wk->wi_keys[i].wi_keydat,
i                3084 dev/ic/if_wi.c 		    nwkey->i_key[i].i_keydat, len);
i                 190 dev/ic/if_wi_hostap.c 	int i;
i                 204 dev/ic/if_wi_hostap.c 	for (i = 0; i < WI_STA_HASH_SIZE; i++)
i                 205 dev/ic/if_wi_hostap.c 		LIST_INIT(&whi->sta_hash[i]);
i                 278 dev/ic/if_wi_hostap.c 	int i, s;
i                 307 dev/ic/if_wi_hostap.c 		for (i = 0; i < 5; i++) {
i                 352 dev/ic/if_wi_hostap.c 	int	i, s;
i                 356 dev/ic/if_wi_hostap.c 	for (i = 10, sta = TAILQ_FIRST(&whi->sta_list);
i                 357 dev/ic/if_wi_hostap.c 	    i != 0 && sta != TAILQ_END(&whi->sta_list) &&
i                 358 dev/ic/if_wi_hostap.c 	    (sta->flags & WI_SIFLAGS_DEAD); i--, sta = next) {
i                 437 dev/ic/if_wi_hostap.c 	int i = sta->asid - 0xc001;
i                 441 dev/ic/if_wi_hostap.c 	whi->asid_inuse_mask[i >> 4] &= ~(1UL << (i & 0xf));
i                 461 dev/ic/if_wi_hostap.c 	int i, hash = sta_hash_func(addr);
i                 472 dev/ic/if_wi_hostap.c 	i=hash<<4;
i                 473 dev/ic/if_wi_hostap.c 	while (whi->asid_inuse_mask[i >> 4] & (1UL << (i & 0xf)))
i                 474 dev/ic/if_wi_hostap.c 		i = (i == (WI_STA_HASH_SIZE << 4) - 1) ? 0 : (i + 1);
i                 475 dev/ic/if_wi_hostap.c 	whi->asid_inuse_mask[i >> 4] |= (1UL << (i & 0xf));
i                 476 dev/ic/if_wi_hostap.c 	sta->asid = 0xc001 + i;
i                 498 dev/ic/if_wi_hostap.c 	int i;
i                 501 dev/ic/if_wi_hostap.c 	i = sta_hash_func(addr);
i                 502 dev/ic/if_wi_hostap.c 	LIST_FOREACH(sta, &whi->sta_hash[i], hash)
i                 513 dev/ic/if_wi_hostap.c 	int	i;
i                 517 dev/ic/if_wi_hostap.c 	for (i = 0; i < rates_len; i++)
i                 518 dev/ic/if_wi_hostap.c 		switch (rates[i] & 0x7f) {
i                 555 dev/ic/if_wi_hostap.c 	int			i, s;
i                 654 dev/ic/if_wi_hostap.c 			for (i = 0; i < 32; i++)
i                 655 dev/ic/if_wi_hostap.c 				challenge[i] = sta->challenge[i] =
i                 670 dev/ic/if_wi_hostap.c 			for (i=0; i<32; i++)
i                 671 dev/ic/if_wi_hostap.c 				if (sta->challenge[i] != challenge[i]) {
i                 222 dev/ic/iha.c   	int i, error, nseg = pScb->SCB_DataDma->dm_nsegs;
i                 245 dev/ic/iha.c   		for (i=0; i < nseg; i++) {
i                 246 dev/ic/iha.c   			pScb->SCB_SGList[i].SG_Len  = segs[i].ds_len;
i                 247 dev/ic/iha.c   			pScb->SCB_SGList[i].SG_Addr = segs[i].ds_addr;
i                 372 dev/ic/iha.c   	int i, error;
i                 406 dev/ic/iha.c   	for (i = 0, pScb = sc->HCS_Scb; i < IHA_MAX_SCB; i++, pScb++) {
i                 407 dev/ic/iha.c   		pScb->SCB_TagId = i;
i                 466 dev/ic/iha.c   	for (i = 0; i < IHA_MAX_TARGETS; i++) {
i                 467 dev/ic/iha.c   		sc->HCS_Tcs[i].TCS_Flags = pScsi->NVM_SCSI_TargetFlags[i];
i                 468 dev/ic/iha.c   		iha_reset_tcs(&sc->HCS_Tcs[i], sc->HCS_SConf1);
i                 761 dev/ic/iha.c   	int i, s;
i                 782 dev/ic/iha.c   	for (i = 0, pScb = sc->HCS_Scb; i < IHA_MAX_SCB; i++, pScb++)
i                 973 dev/ic/iha.c   	int i;
i                1042 dev/ic/iha.c   		for (i = pScb->SCB_Xs->timeout; i > 0; i--) {
i                1057 dev/ic/iha.c   		if (i == 0)
i                1568 dev/ic/iha.c   	u_int32_t i;
i                1582 dev/ic/iha.c   		for (i = 0, pScb = sc->HCS_Scb; i < IHA_MAX_SCB; i++, pScb++)
i                1823 dev/ic/iha.c   	int i, s;
i                1829 dev/ic/iha.c   	for (i = 0, pScb = sc->HCS_Scb; i < IHA_MAX_SCB; i++, pScb++)
i                1843 dev/ic/iha.c   	for (i = 0, pTcs = sc->HCS_Tcs; i < IHA_MAX_TARGETS; i++, pTcs++)
i                2041 dev/ic/iha.c   	int i, phase, msglen, msgcode;
i                2046 dev/ic/iha.c   	for (i = 0; i < IHA_MAX_EXTENDED_MSG; i++) {
i                2057 dev/ic/iha.c   		sc->HCS_Msg[i] = bus_space_read_1(iot, ioh, TUL_SFIFO);
i                2059 dev/ic/iha.c   		if (sc->HCS_Msg[0] == i)
i                2300 dev/ic/iha.c   	int i;
i                2307 dev/ic/iha.c   			for (i = 0; i < sizeof(iha_rate_tbl); i++)
i                2308 dev/ic/iha.c   				if (iha_rate_tbl[i] >= sc->HCS_Msg[2])
i                2311 dev/ic/iha.c   			pTcs->TCS_JS_Period |= (i << 4);
i                2328 dev/ic/iha.c   	int i;
i                2343 dev/ic/iha.c   	for (i = 0; i < 2000; i++)
i                2757 dev/ic/iha.c   	int i;
i                2763 dev/ic/iha.c   	for (i = 15; i >= 0; i--) {
i                2774 dev/ic/iha.c   		readWord += bit << i;
i                2793 dev/ic/iha.c   	int i;
i                2802 dev/ic/iha.c   	for (i = 0; i < 8; i++, instr <<= 1) {
i                 164 dev/ic/isp.c   	int loops, i, dodnld = 1;
i                 341 dev/ic/isp.c   		i = ISP_READ(isp, BIU_CONF0) & BIU_CONF0_HW_MASK;
i                 342 dev/ic/isp.c   		switch (i) {
i                 344 dev/ic/isp.c   			isp_prt(isp, ISP_LOGALL, "Unknown Chip Type 0x%x", i);
i                 392 dev/ic/isp.c   		i = ISP_READ(isp, RISC_PSR);
i                 394 dev/ic/isp.c   			i &= RISC_PSR_SBUS_ULTRA;
i                 396 dev/ic/isp.c   			i &= RISC_PSR_PCI_ULTRA;
i                 398 dev/ic/isp.c   		if (i != 0) {
i                1454 dev/ic/isp.c   	int i;
i                1455 dev/ic/isp.c   	for (i = 0; i < MAX_FC_TARG; i++) {
i                1456 dev/ic/isp.c   		fcp->portdb[i].valid = fcp->portdb[i].fabric_dev = 0;
i                2222 dev/ic/isp.c   		int i;
i                2248 dev/ic/isp.c   		for (i = 0; i < hival; i++) {
i                2250 dev/ic/isp.c   			if (fcp->portdb[i].port_wwn == 0)
i                2252 dev/ic/isp.c   			if (fcp->portdb[i].port_wwn !=
i                2261 dev/ic/isp.c   			if (fcp->portdb[i].loopid != loopid) {
i                2262 dev/ic/isp.c   				isp_prt(isp, ISP_LOGINFO, portshift, i,
i                2263 dev/ic/isp.c   				    fcp->portdb[i].loopid,
i                2264 dev/ic/isp.c   				    fcp->portdb[i].portid, loopid,
i                2267 dev/ic/isp.c   			fcp->portdb[i].portid = fcp->tport[loopid].portid;
i                2268 dev/ic/isp.c   			fcp->portdb[i].loopid = loopid;
i                2269 dev/ic/isp.c   			fcp->portdb[i].valid = 1;
i                2270 dev/ic/isp.c   			fcp->portdb[i].roles = fcp->tport[loopid].roles;
i                2276 dev/ic/isp.c   			for (j = i+1; j < hival; j++) {
i                2277 dev/ic/isp.c   				if (fcp->portdb[i].port_wwn !=
i                2281 dev/ic/isp.c   				isp_prt(isp, ISP_LOGWARN, portdup, j, i);
i                2288 dev/ic/isp.c   				fcp->portdb[i].valid = 0;
i                2299 dev/ic/isp.c   		if (i < hival) {
i                2301 dev/ic/isp.c   			    fcp->portdb[i].loopid, i, fcp->portdb[i].portid);
i                2319 dev/ic/isp.c   			i = lim;
i                2321 dev/ic/isp.c   			i = loopid;
i                2328 dev/ic/isp.c   		fcp->portdb[i].loopid = loopid;
i                2329 dev/ic/isp.c   		fcp->portdb[i].port_wwn = fcp->tport[loopid].port_wwn;
i                2330 dev/ic/isp.c   		fcp->portdb[i].node_wwn = fcp->tport[loopid].node_wwn;
i                2331 dev/ic/isp.c   		fcp->portdb[i].roles = fcp->tport[loopid].roles;
i                2332 dev/ic/isp.c   		fcp->portdb[i].portid = fcp->tport[loopid].portid;
i                2333 dev/ic/isp.c   		fcp->portdb[i].valid = 1;
i                2338 dev/ic/isp.c   		(void) isp_async(isp, ISPASYNC_PROMENADE, &i);
i                2581 dev/ic/isp.c   	int i;
i                2654 dev/ic/isp.c   	i = -1;
i                2663 dev/ic/isp.c   		i++;
i                2667 dev/ic/isp.c   		    (((u_int32_t) rs1->snscb_ports[i].portid[0]) << 16) |
i                2668 dev/ic/isp.c   		    (((u_int32_t) rs1->snscb_ports[i].portid[1]) << 8) |
i                2669 dev/ic/isp.c   		    (((u_int32_t) rs1->snscb_ports[i].portid[2]));
i                2856 dev/ic/isp.c   		if (rs1->snscb_ports[i].control & 0x80) {
i                2863 dev/ic/isp.c   	} while ((rs1->snscb_ports[i].control & 0x80) == 0 && i < NGENT-1);
i                2868 dev/ic/isp.c   	if ((rs1->snscb_ports[i].control & 0x80) == 0) {
i                2929 dev/ic/isp.c   	int target, i;
i                3180 dev/ic/isp.c   		for (i = 0; i < n; i++) {
i                3181 dev/ic/isp.c   			if ((isp->isp_sendmarker & (1 << i)) == 0) {
i                3188 dev/ic/isp.c   			reqp->req_target = i << 7;	/* insert bus number */
i                3191 dev/ic/isp.c   			isp->isp_sendmarker &= ~(1 << i);
i                3272 dev/ic/isp.c   	i = ISP_DMASETUP(isp, xs, reqp, &nxti, optr);
i                3273 dev/ic/isp.c   	if (i != CMD_QUEUED) {
i                3279 dev/ic/isp.c   		return (i);
i                3490 dev/ic/isp.c   	int i, nlooked = 0, ndone = 0;
i                3501 dev/ic/isp.c   				int i = 0, obits = isp->isp_obits;
i                3502 dev/ic/isp.c   				isp->isp_mboxtmp[i++] = mbox;
i                3503 dev/ic/isp.c   				for (i = 1; i < MAX_MAILBOX; i++) {
i                3504 dev/ic/isp.c   					if ((obits & (1 << i)) == 0) {
i                3507 dev/ic/isp.c   					isp->isp_mboxtmp[i] =
i                3508 dev/ic/isp.c   					    ISP_READ(isp, MBOX_OFF(i));
i                3574 dev/ic/isp.c   		i = 0;
i                3578 dev/ic/isp.c   		} while (junk != iptr && ++i < 1000);
i                3657 dev/ic/isp.c   			for (i = 0; i < rio.req_header.rqs_seqno; i++) {
i                3658 dev/ic/isp.c   				isp_fastpost_complete(isp, rio.req_handles[i]);
i                3914 dev/ic/isp.c   	for (i = 0; i < ndone; i++) {
i                3915 dev/ic/isp.c   		xs = complist[i];
i                4120 dev/ic/isp.c   			int i, j;
i                4121 dev/ic/isp.c   			for (i = j = 0; i < isp->isp_maxcmds; i++) {
i                4123 dev/ic/isp.c   				xs = isp->isp_xflist[i];
i                4252 dev/ic/isp.c   		int i, nh;
i                4255 dev/ic/isp.c   		for (nh = 0, i = 1; i < MAX_MAILBOX; i++) {
i                4256 dev/ic/isp.c   			if ((bus & (1 << i)) == 0) {
i                4259 dev/ic/isp.c   			handles[nh++] = ISP_READ(isp, MBOX_OFF(i));
i                4261 dev/ic/isp.c   		for (i = 0; i < nh; i++) {
i                4262 dev/ic/isp.c   			isp_fastpost_complete(isp, handles[i]);
i                4264 dev/ic/isp.c   			    "fast post completion of %u", handles[i]);
i                5860 dev/ic/isp.c   	int i, amt;
i                5884 dev/ic/isp.c   	for (i = 0; i < 2; i++) {
i                5885 dev/ic/isp.c   		isp_rdnvram_word(isp, i, &nvram_words[i]);
i                5896 dev/ic/isp.c   	for (i = 2; i < amt>>1; i++) {
i                5897 dev/ic/isp.c   		isp_rdnvram_word(isp, i, &nvram_words[i]);
i                5899 dev/ic/isp.c   	for (csum = 0, i = 0; i < amt; i++) {
i                5900 dev/ic/isp.c   		csum += nvram_data[i];
i                5934 dev/ic/isp.c   	int i, cbits;
i                5962 dev/ic/isp.c   	for (i = cbits; i >= 0; i--) {
i                5963 dev/ic/isp.c   		if ((rqst >> i) & 1) {
i                5979 dev/ic/isp.c   	for (i = 0; i < 16; i++) {
i                6405 dev/ic/isp.c   	int i, j;
i                6421 dev/ic/isp.c   	for (i = 0; i < 100; i++) {
i                6431 dev/ic/isp.c   		for (i = 0; i < 8; i++) {
i                6432 dev/ic/isp.c   			*ptr++ = ISP_READ(isp, BIU_BLOCK + (i << 1));
i                6438 dev/ic/isp.c   		for (i = 0; i < 8; i++) {
i                6439 dev/ic/isp.c   			*ptr++ = ISP_READ(isp, MBOX_BLOCK + (i << 1));
i                6445 dev/ic/isp.c   		for (i = 0; i < 48; i++) {
i                6446 dev/ic/isp.c   			*ptr++ = ISP_READ(isp, DMA_BLOCK + 0x20 + (i << 1));
i                6453 dev/ic/isp.c   		for (i = 0; i < 16; i++) {
i                6454 dev/ic/isp.c   			*ptr++ = ISP_READ(isp, BIU_BLOCK + 0xA0 + (i << 1));
i                6462 dev/ic/isp.c   			for (i = 0; i < 16; i++) {
i                6464 dev/ic/isp.c   				    ISP_READ(isp, BIU_BLOCK + 0x80 + (i << 1));
i                6472 dev/ic/isp.c   		for (i = 0; i < 16; i++) {
i                6473 dev/ic/isp.c   			*ptr++ = ISP_READ(isp, BIU_BLOCK + 0x80 + (i << 1));
i                6480 dev/ic/isp.c   		for (i = 0; i < 64; i++) {
i                6481 dev/ic/isp.c   			*ptr++ = ISP_READ(isp, BIU_BLOCK + 0x80 + (i << 1));
i                6488 dev/ic/isp.c   		for (i = 0; i < 64; i++) {
i                6489 dev/ic/isp.c   			*ptr++ = ISP_READ(isp, BIU_BLOCK + 0x80 + (i << 1));
i                6498 dev/ic/isp.c   	for (i = 0; i < 100; i++) {
i                6509 dev/ic/isp.c   	for (i = 0; i < 100; i++) {
i                6521 dev/ic/isp.c   	for (i = 0; i < 100; i++) {
i                6549 dev/ic/isp.c   	int i, j;
i                6565 dev/ic/isp.c   	for (i = 0; i < 100; i++) {
i                6575 dev/ic/isp.c   		for (i = 0; i < 8; i++) {
i                6576 dev/ic/isp.c   			*ptr++ = ISP_READ(isp, BIU_BLOCK + (i << 1));
i                6582 dev/ic/isp.c   		for (i = 0; i < 8; i++) {
i                6583 dev/ic/isp.c   			*ptr++ = ISP_READ(isp, BIU_BLOCK + 0x10 + (i << 1));
i                6589 dev/ic/isp.c   		for (i = 0; i < 32; i++) {
i                6591 dev/ic/isp.c   			    ISP_READ(isp, PCI_MBOX_REGS2300_OFF + (i << 1));
i                6598 dev/ic/isp.c   		for (i = 0; i < 32; i++) {
i                6599 dev/ic/isp.c   			*ptr++ = ISP_READ(isp, BIU_BLOCK + 0x80 + (i << 1));
i                6606 dev/ic/isp.c   		for (i = 0; i < 48; i++) {
i                6607 dev/ic/isp.c   			*ptr++ = ISP_READ(isp, BIU_BLOCK + 0x80 + (i << 1));
i                6614 dev/ic/isp.c   		for (i = 0; i < 16; i++) {
i                6615 dev/ic/isp.c   			*ptr++ = ISP_READ(isp, BIU_BLOCK + 0xA0 + (i << 1));
i                6623 dev/ic/isp.c   			for (i = 0; i < 16; i++) {
i                6625 dev/ic/isp.c   				    ISP_READ(isp, BIU_BLOCK + 0x80 + (i << 1));
i                6633 dev/ic/isp.c   		for (i = 0; i < 64; i++) {
i                6634 dev/ic/isp.c   			*ptr++ = ISP_READ(isp, BIU_BLOCK + 0x80 + (i << 1));
i                6641 dev/ic/isp.c   		for (i = 0; i < 64; i++) {
i                6642 dev/ic/isp.c   			*ptr++ = ISP_READ(isp, BIU_BLOCK + 0x80 + (i << 1));
i                6649 dev/ic/isp.c   		for (i = 0; i < 64; i++) {
i                6650 dev/ic/isp.c   			*ptr++ = ISP_READ(isp, BIU_BLOCK + 0x80 + (i << 1));
i                6659 dev/ic/isp.c   	for (i = 0; i < 100; i++) {
i                  57 dev/ic/isp_inline.h 	int i, j;
i                  59 dev/ic/isp_inline.h 	for (j = isp->isp_lasthdls, i = 0; i < (int) isp->isp_maxcmds; i++) {
i                  67 dev/ic/isp_inline.h 	if (i == isp->isp_maxcmds) {
i                  91 dev/ic/isp_inline.h 	int i;
i                  93 dev/ic/isp_inline.h 		for (i = 0; i < isp->isp_maxcmds; i++) {
i                  94 dev/ic/isp_inline.h 			if (isp->isp_xflist[i] == xs) {
i                  95 dev/ic/isp_inline.h 				return ((u_int16_t) i+1);
i                 155 dev/ic/isp_inline.h 	int amt, i, j;
i                 159 dev/ic/isp_inline.h 	for (buf[0] = 0, amt = i = 0; i < 4; i++) {
i                 422 dev/ic/isp_inline.h 	int i;
i                 436 dev/ic/isp_inline.h 	for (i = 0; i < 12; i++) {
i                 437 dev/ic/isp_inline.h 		ISP_IOXPUT_8(isp, rqsrc->req_cdb[i], &rqdst->req_cdb[i]);
i                 439 dev/ic/isp_inline.h 	for (i = 0; i < ISP_RQDSEG; i++) {
i                 440 dev/ic/isp_inline.h 		ISP_IOXPUT_32(isp, rqsrc->req_dataseg[i].ds_base,
i                 441 dev/ic/isp_inline.h 		    &rqdst->req_dataseg[i].ds_base);
i                 442 dev/ic/isp_inline.h 		ISP_IOXPUT_32(isp, rqsrc->req_dataseg[i].ds_count,
i                 443 dev/ic/isp_inline.h 		    &rqdst->req_dataseg[i].ds_count);
i                 450 dev/ic/isp_inline.h 	int i;
i                 460 dev/ic/isp_inline.h 	for (i = 0; i < 16; i++) {
i                 461 dev/ic/isp_inline.h 		ISP_IOXPUT_8(isp, tqsrc->req_cdb[i], &tqdst->req_cdb[i]);
i                 464 dev/ic/isp_inline.h 	for (i = 0; i < ISP_RQDSEG_T2; i++) {
i                 465 dev/ic/isp_inline.h 		ISP_IOXPUT_32(isp, tqsrc->req_dataseg[i].ds_base,
i                 466 dev/ic/isp_inline.h 		    &tqdst->req_dataseg[i].ds_base);
i                 467 dev/ic/isp_inline.h 		ISP_IOXPUT_32(isp, tqsrc->req_dataseg[i].ds_count,
i                 468 dev/ic/isp_inline.h 		    &tqdst->req_dataseg[i].ds_count);
i                 475 dev/ic/isp_inline.h 	int i;
i                 485 dev/ic/isp_inline.h 	for (i = 0; i < 16; i++) {
i                 486 dev/ic/isp_inline.h 		ISP_IOXPUT_8(isp, tqsrc->req_cdb[i], &tqdst->req_cdb[i]);
i                 489 dev/ic/isp_inline.h 	for (i = 0; i < ISP_RQDSEG_T3; i++) {
i                 490 dev/ic/isp_inline.h 		ISP_IOXPUT_32(isp, tqsrc->req_dataseg[i].ds_base,
i                 491 dev/ic/isp_inline.h 		    &tqdst->req_dataseg[i].ds_base);
i                 492 dev/ic/isp_inline.h 		ISP_IOXPUT_32(isp, tqsrc->req_dataseg[i].ds_basehi,
i                 493 dev/ic/isp_inline.h 		    &tqdst->req_dataseg[i].ds_basehi);
i                 494 dev/ic/isp_inline.h 		ISP_IOXPUT_32(isp, tqsrc->req_dataseg[i].ds_count,
i                 495 dev/ic/isp_inline.h 		    &tqdst->req_dataseg[i].ds_count);
i                 503 dev/ic/isp_inline.h 	int i;
i                 517 dev/ic/isp_inline.h 	for (i = 0; i < 44; i++) {
i                 518 dev/ic/isp_inline.h 		ISP_IOXPUT_8(isp, xqsrc->req_cdb[i], &xqdst->req_cdb[i]);
i                 525 dev/ic/isp_inline.h 	int i;
i                 527 dev/ic/isp_inline.h 	for (i = 0; i < ISP_CDSEG; i++) {
i                 528 dev/ic/isp_inline.h 		ISP_IOXPUT_32(isp, cqsrc->req_dataseg[i].ds_base,
i                 529 dev/ic/isp_inline.h 		    &cqdst->req_dataseg[i].ds_base);
i                 530 dev/ic/isp_inline.h 		ISP_IOXPUT_32(isp, cqsrc->req_dataseg[i].ds_count,
i                 531 dev/ic/isp_inline.h 		    &cqdst->req_dataseg[i].ds_count);
i                 539 dev/ic/isp_inline.h 	int i;
i                 541 dev/ic/isp_inline.h 	for (i = 0; i < ISP_CDSEG64; i++) {
i                 542 dev/ic/isp_inline.h 		ISP_IOXPUT_32(isp, cqsrc->req_dataseg[i].ds_base,
i                 543 dev/ic/isp_inline.h 		    &cqdst->req_dataseg[i].ds_base);
i                 544 dev/ic/isp_inline.h 		ISP_IOXPUT_32(isp, cqsrc->req_dataseg[i].ds_basehi,
i                 545 dev/ic/isp_inline.h 		    &cqdst->req_dataseg[i].ds_basehi);
i                 546 dev/ic/isp_inline.h 		ISP_IOXPUT_32(isp, cqsrc->req_dataseg[i].ds_count,
i                 547 dev/ic/isp_inline.h 		    &cqdst->req_dataseg[i].ds_count);
i                 555 dev/ic/isp_inline.h 	int i;
i                 566 dev/ic/isp_inline.h 	for (i = 0; i < 8; i++) {
i                 567 dev/ic/isp_inline.h 		ISP_IOXGET_8(isp, &spsrc->req_response[i],
i                 568 dev/ic/isp_inline.h 		    spdst->req_response[i]);
i                 570 dev/ic/isp_inline.h 	for (i = 0; i < 32; i++) {
i                 571 dev/ic/isp_inline.h 		ISP_IOXGET_8(isp, &spsrc->req_sense_data[i],
i                 572 dev/ic/isp_inline.h 		    spdst->req_sense_data[i]);
i                 580 dev/ic/isp_inline.h 	int i;
i                 582 dev/ic/isp_inline.h 	for (i = 0; i < 60; i++) {
i                 583 dev/ic/isp_inline.h 		ISP_IOXGET_8(isp, &cpsrc->req_sense_data[i],
i                 584 dev/ic/isp_inline.h 		    cpdst->req_sense_data[i]);
i                 591 dev/ic/isp_inline.h 	int i;
i                 595 dev/ic/isp_inline.h 	for (i = 0; i < r2dst->req_header.rqs_seqno; i++) {
i                 596 dev/ic/isp_inline.h 		ISP_IOXGET_16(isp, &r2src->req_handles[i],
i                 597 dev/ic/isp_inline.h 		    r2dst->req_handles[i]);
i                 599 dev/ic/isp_inline.h 	while (i < 30) {
i                 600 dev/ic/isp_inline.h 		r2dst->req_handles[i++] = 0;
i                 607 dev/ic/isp_inline.h 	int i;
i                 618 dev/ic/isp_inline.h 	for (i = 0; i < 8; i++) {
i                 619 dev/ic/isp_inline.h 		ISP_IOXPUT_8(isp, Is->icb_portname[i], &Id->icb_portname[i]);
i                 625 dev/ic/isp_inline.h 	for (i = 0; i < 8; i++) {
i                 626 dev/ic/isp_inline.h 		ISP_IOXPUT_8(isp, Is->icb_nodename[i], &Id->icb_nodename[i]);
i                 632 dev/ic/isp_inline.h 	for (i = 0; i < 4; i++) {
i                 633 dev/ic/isp_inline.h 		ISP_IOXPUT_16(isp, Is->icb_rqstaddr[i], &Id->icb_rqstaddr[i]);
i                 635 dev/ic/isp_inline.h 	for (i = 0; i < 4; i++) {
i                 636 dev/ic/isp_inline.h 		ISP_IOXPUT_16(isp, Is->icb_respaddr[i], &Id->icb_respaddr[i]);
i                 653 dev/ic/isp_inline.h 	int i;
i                 657 dev/ic/isp_inline.h 	for (i = 0; i < 4; i++) {
i                 658 dev/ic/isp_inline.h 		ISP_IOXGET_8(isp, &src->pdb_hardaddr_bits[i],
i                 659 dev/ic/isp_inline.h 		    dst->pdb_hardaddr_bits[i]);
i                 661 dev/ic/isp_inline.h 	for (i = 0; i < 4; i++) {
i                 662 dev/ic/isp_inline.h 		ISP_IOXGET_8(isp, &src->pdb_portid_bits[i],
i                 663 dev/ic/isp_inline.h 		    dst->pdb_portid_bits[i]);
i                 665 dev/ic/isp_inline.h 	for (i = 0; i < 8; i++) {
i                 666 dev/ic/isp_inline.h 		ISP_IOXGET_8(isp, &src->pdb_nodename[i], dst->pdb_nodename[i]);
i                 668 dev/ic/isp_inline.h 	for (i = 0; i < 8; i++) {
i                 669 dev/ic/isp_inline.h 		ISP_IOXGET_8(isp, &src->pdb_portname[i], dst->pdb_portname[i]);
i                 738 dev/ic/isp_inline.h 	int i, nw = (int) src->snscb_sblen;
i                 740 dev/ic/isp_inline.h 	for (i = 0; i < 4; i++) {
i                 741 dev/ic/isp_inline.h 		ISP_IOXPUT_16(isp, src->snscb_addr[i], &dst->snscb_addr[i]);
i                 744 dev/ic/isp_inline.h 	for (i = 0; i < nw; i++) {
i                 745 dev/ic/isp_inline.h 		ISP_IOXPUT_16(isp, src->snscb_data[i], &dst->snscb_data[i]);
i                 796 dev/ic/isp_inline.h 	int i;
i                 799 dev/ic/isp_inline.h 	for (i = 0; i < 3; i++) {
i                 800 dev/ic/isp_inline.h 		ISP_IOXGET_8(isp, &src->snscb_port_id[i],
i                 801 dev/ic/isp_inline.h 		    dst->snscb_port_id[i]);
i                 803 dev/ic/isp_inline.h 	for (i = 0; i < 8; i++) {
i                 804 dev/ic/isp_inline.h 		ISP_IOXGET_8(isp, &src->snscb_portname[i],
i                 805 dev/ic/isp_inline.h 		    dst->snscb_portname[i]);
i                 807 dev/ic/isp_inline.h 	for (i = 0; i < nwords; i++) {
i                 808 dev/ic/isp_inline.h 		ISP_IOXGET_16(isp, &src->snscb_data[i], dst->snscb_data[i]);
i                 816 dev/ic/isp_inline.h 	int i;
i                 818 dev/ic/isp_inline.h 	for (i = 0; i < nwords; i++) {
i                 821 dev/ic/isp_inline.h 		    &src->snscb_ports[i].control,
i                 822 dev/ic/isp_inline.h 		    dst->snscb_ports[i].control);
i                 825 dev/ic/isp_inline.h 			    &src->snscb_ports[i].portid[j],
i                 826 dev/ic/isp_inline.h 			    dst->snscb_ports[i].portid[j]);
i                 828 dev/ic/isp_inline.h 		if (dst->snscb_ports[i].control & 0x80) {
i                 838 dev/ic/isp_inline.h 	int i;
i                 840 dev/ic/isp_inline.h 	for (i = 0; i < 8; i++)
i                 841 dev/ic/isp_inline.h 		ISP_IOXGET_8(isp, &src->snscb_wwn[i], dst->snscb_wwn[i]);
i                 848 dev/ic/isp_inline.h 	int i;
i                 850 dev/ic/isp_inline.h 	for (i = 0; i < 32; i++) {
i                 851 dev/ic/isp_inline.h 		ISP_IOXGET_32(isp, &src->snscb_fc4_features[i],
i                 852 dev/ic/isp_inline.h 		    dst->snscb_fc4_features[i]);
i                 860 dev/ic/isp_inline.h 	int i;
i                 863 dev/ic/isp_inline.h 	for (i = 0; i < 3; i++) {
i                 864 dev/ic/isp_inline.h 		ISP_IOXGET_8(isp, &src->snscb_port_id[i],
i                 865 dev/ic/isp_inline.h 		    dst->snscb_port_id[i]);
i                 867 dev/ic/isp_inline.h 	for (i = 0; i < 8; i++) {
i                 868 dev/ic/isp_inline.h 		ISP_IOXGET_8(isp, &src->snscb_portname[i],
i                 869 dev/ic/isp_inline.h 		    dst->snscb_portname[i]);
i                 872 dev/ic/isp_inline.h 	for (i = 0; i < 255; i++) {
i                 873 dev/ic/isp_inline.h 		ISP_IOXGET_8(isp, &src->snscb_pname[i], dst->snscb_pname[i]);
i                 875 dev/ic/isp_inline.h 	for (i = 0; i < 8; i++) {
i                 876 dev/ic/isp_inline.h 		ISP_IOXGET_8(isp, &src->snscb_nodename[i],
i                 877 dev/ic/isp_inline.h 		    dst->snscb_nodename[i]);
i                 880 dev/ic/isp_inline.h 	for (i = 0; i < 255; i++) {
i                 881 dev/ic/isp_inline.h 		ISP_IOXGET_8(isp, &src->snscb_nname[i], dst->snscb_nname[i]);
i                 883 dev/ic/isp_inline.h 	for (i = 0; i < 8; i++) {
i                 884 dev/ic/isp_inline.h 		ISP_IOXGET_8(isp, &src->snscb_ipassoc[i],
i                 885 dev/ic/isp_inline.h 		    dst->snscb_ipassoc[i]);
i                 887 dev/ic/isp_inline.h 	for (i = 0; i < 16; i++) {
i                 888 dev/ic/isp_inline.h 		ISP_IOXGET_8(isp, &src->snscb_ipaddr[i], dst->snscb_ipaddr[i]);
i                 890 dev/ic/isp_inline.h 	for (i = 0; i < 4; i++) {
i                 891 dev/ic/isp_inline.h 		ISP_IOXGET_8(isp, &src->snscb_svc_class[i],
i                 892 dev/ic/isp_inline.h 		    dst->snscb_svc_class[i]);
i                 894 dev/ic/isp_inline.h 	for (i = 0; i < 32; i++) {
i                 895 dev/ic/isp_inline.h 		ISP_IOXGET_8(isp, &src->snscb_fc4_types[i],
i                 896 dev/ic/isp_inline.h 		    dst->snscb_fc4_types[i]);
i                 898 dev/ic/isp_inline.h 	for (i = 0; i < 8; i++) {
i                 899 dev/ic/isp_inline.h 		ISP_IOXGET_8(isp, &src->snscb_fpname[i], dst->snscb_fpname[i]);
i                 902 dev/ic/isp_inline.h 	for (i = 0; i < 3; i++) {
i                 903 dev/ic/isp_inline.h 		ISP_IOXGET_8(isp, &src->snscb_hardaddr[i],
i                 904 dev/ic/isp_inline.h 		    dst->snscb_hardaddr[i]);
i                 912 dev/ic/isp_inline.h 	int i;
i                 937 dev/ic/isp_inline.h 	for (i = 0; i < ATIO_CDBLEN; i++) {
i                 938 dev/ic/isp_inline.h 		ISP_IOXPUT_8(isp, atsrc->at_cdb[i], &atdst->at_cdb[i]);
i                 940 dev/ic/isp_inline.h 	for (i = 0; i < QLTM_SENSELEN; i++) {
i                 941 dev/ic/isp_inline.h 		ISP_IOXPUT_8(isp, atsrc->at_sense[i], &atdst->at_sense[i]);
i                 948 dev/ic/isp_inline.h 	int i;
i                 973 dev/ic/isp_inline.h 	for (i = 0; i < ATIO_CDBLEN; i++) {
i                 974 dev/ic/isp_inline.h 		ISP_IOXGET_8(isp, &atsrc->at_cdb[i], atdst->at_cdb[i]);
i                 976 dev/ic/isp_inline.h 	for (i = 0; i < QLTM_SENSELEN; i++) {
i                 977 dev/ic/isp_inline.h 		ISP_IOXGET_8(isp, &atsrc->at_sense[i], atdst->at_sense[i]);
i                 984 dev/ic/isp_inline.h 	int i;
i                 996 dev/ic/isp_inline.h 	for (i = 0; i < ATIO2_CDBLEN; i++) {
i                 997 dev/ic/isp_inline.h 		ISP_IOXPUT_8(isp, atsrc->at_cdb[i], &atdst->at_cdb[i]);
i                1001 dev/ic/isp_inline.h 	for (i = 0; i < 4; i++) {
i                1002 dev/ic/isp_inline.h 		ISP_IOXPUT_16(isp, atsrc->at_wwpn[i], &atdst->at_wwpn[i]);
i                1004 dev/ic/isp_inline.h 	for (i = 0; i < 6; i++) {
i                1005 dev/ic/isp_inline.h 		ISP_IOXPUT_16(isp, atsrc->at_reserved2[i],
i                1006 dev/ic/isp_inline.h 		    &atdst->at_reserved2[i]);
i                1014 dev/ic/isp_inline.h 	int i;
i                1026 dev/ic/isp_inline.h 	for (i = 0; i < ATIO2_CDBLEN; i++) {
i                1027 dev/ic/isp_inline.h 		ISP_IOXGET_8(isp, &atsrc->at_cdb[i], atdst->at_cdb[i]);
i                1031 dev/ic/isp_inline.h 	for (i = 0; i < 4; i++) {
i                1032 dev/ic/isp_inline.h 		ISP_IOXGET_16(isp, &atsrc->at_wwpn[i], atdst->at_wwpn[i]);
i                1034 dev/ic/isp_inline.h 	for (i = 0; i < 6; i++) {
i                1035 dev/ic/isp_inline.h 		ISP_IOXGET_16(isp, &atsrc->at_reserved2[i],
i                1036 dev/ic/isp_inline.h 		    atdst->at_reserved2[i]);
i                1044 dev/ic/isp_inline.h 	int i;
i                1073 dev/ic/isp_inline.h 	for (i = 0; i < ISP_RQDSEG; i++) {
i                1074 dev/ic/isp_inline.h 		ISP_IOXPUT_32(isp, ctsrc->ct_dataseg[i].ds_base,
i                1075 dev/ic/isp_inline.h 		    &ctdst->ct_dataseg[i].ds_base);
i                1076 dev/ic/isp_inline.h 		ISP_IOXPUT_32(isp, ctsrc->ct_dataseg[i].ds_count,
i                1077 dev/ic/isp_inline.h 		    &ctdst->ct_dataseg[i].ds_count);
i                1084 dev/ic/isp_inline.h 	int i;
i                1113 dev/ic/isp_inline.h 	for (i = 0; i < ISP_RQDSEG; i++) {
i                1115 dev/ic/isp_inline.h 		    &ctsrc->ct_dataseg[i].ds_base,
i                1116 dev/ic/isp_inline.h 		    ctdst->ct_dataseg[i].ds_base);
i                1118 dev/ic/isp_inline.h 		    &ctsrc->ct_dataseg[i].ds_count,
i                1119 dev/ic/isp_inline.h 		    ctdst->ct_dataseg[i].ds_count);
i                1126 dev/ic/isp_inline.h 	int i;
i                1148 dev/ic/isp_inline.h 			for (i = 0; i < ISP_RQDSEG_T2; i++) {
i                1150 dev/ic/isp_inline.h 				    ctsrc->rsp.m0.ct_dataseg[i].ds_base,
i                1151 dev/ic/isp_inline.h 				    &ctdst->rsp.m0.ct_dataseg[i].ds_base);
i                1153 dev/ic/isp_inline.h 				    ctsrc->rsp.m0.ct_dataseg[i].ds_count,
i                1154 dev/ic/isp_inline.h 				    &ctdst->rsp.m0.ct_dataseg[i].ds_count);
i                1157 dev/ic/isp_inline.h 			for (i = 0; i < ISP_RQDSEG_T3; i++) {
i                1159 dev/ic/isp_inline.h 				    ctsrc->rsp.m0.ct_dataseg64[i].ds_base,
i                1160 dev/ic/isp_inline.h 				    &ctdst->rsp.m0.ct_dataseg64[i].ds_base);
i                1162 dev/ic/isp_inline.h 				    ctsrc->rsp.m0.ct_dataseg64[i].ds_basehi,
i                1163 dev/ic/isp_inline.h 				    &ctdst->rsp.m0.ct_dataseg64[i].ds_basehi);
i                1165 dev/ic/isp_inline.h 				    ctsrc->rsp.m0.ct_dataseg64[i].ds_count,
i                1166 dev/ic/isp_inline.h 				    &ctdst->rsp.m0.ct_dataseg64[i].ds_count);
i                1187 dev/ic/isp_inline.h 		for (i = 0; i < MAXRESPLEN; i++) {
i                1188 dev/ic/isp_inline.h 			ISP_IOXPUT_8(isp, ctsrc->rsp.m1.ct_resp[i],
i                1189 dev/ic/isp_inline.h 			    &ctdst->rsp.m1.ct_resp[i]);
i                1210 dev/ic/isp_inline.h 	int i;
i                1223 dev/ic/isp_inline.h 	for (i = 0; i < 4; i++) {
i                1224 dev/ic/isp_inline.h 		ISP_IOXGET_32(isp, &ctsrc->rsp.fw._reserved[i],
i                1225 dev/ic/isp_inline.h 		    ctdst->rsp.fw._reserved[i]);
i                1229 dev/ic/isp_inline.h 	for (i = 0; i < QLTM_SENSELEN; i++) {
i                1230 dev/ic/isp_inline.h 		ISP_IOXGET_8(isp, &ctsrc->rsp.fw.ct_sense[i],
i                1231 dev/ic/isp_inline.h 		    ctdst->rsp.fw.ct_sense[i]);
i                1238 dev/ic/isp_inline.h 	int i;
i                1266 dev/ic/isp_inline.h 	for (i = 0; i < 20; i++) {
i                1267 dev/ic/isp_inline.h 		ISP_IOXPUT_8(isp, lesrc->le_reserved3[i],
i                1268 dev/ic/isp_inline.h 		    &ledst->le_reserved3[i]);
i                1275 dev/ic/isp_inline.h 	int i;
i                1303 dev/ic/isp_inline.h 	for (i = 0; i < 20; i++) {
i                1304 dev/ic/isp_inline.h 		ISP_IOXGET_8(isp, &lesrc->le_reserved3[i],
i                1305 dev/ic/isp_inline.h 		    ledst->le_reserved3[i]);
i                1312 dev/ic/isp_inline.h 	int i;
i                1336 dev/ic/isp_inline.h 	for (i = 0; i < IN_MSGLEN; i++) {
i                1337 dev/ic/isp_inline.h 		ISP_IOXPUT_8(isp, insrc->in_msg[i], &indst->in_msg[i]);
i                1339 dev/ic/isp_inline.h 	for (i = 0; i < IN_RSVDLEN; i++) {
i                1340 dev/ic/isp_inline.h 		ISP_IOXPUT_8(isp, insrc->in_reserved3[i],
i                1341 dev/ic/isp_inline.h 		    &indst->in_reserved3[i]);
i                1343 dev/ic/isp_inline.h 	for (i = 0; i < QLTM_SENSELEN; i++) {
i                1344 dev/ic/isp_inline.h 		ISP_IOXPUT_8(isp, insrc->in_sense[i],
i                1345 dev/ic/isp_inline.h 		    &indst->in_sense[i]);
i                1352 dev/ic/isp_inline.h 	int i;
i                1376 dev/ic/isp_inline.h 	for (i = 0; i < IN_MSGLEN; i++) {
i                1377 dev/ic/isp_inline.h 		ISP_IOXGET_8(isp, &insrc->in_msg[i], indst->in_msg[i]);
i                1379 dev/ic/isp_inline.h 	for (i = 0; i < IN_RSVDLEN; i++) {
i                1380 dev/ic/isp_inline.h 		ISP_IOXGET_8(isp, &insrc->in_reserved3[i],
i                1381 dev/ic/isp_inline.h 		    indst->in_reserved3[i]);
i                1383 dev/ic/isp_inline.h 	for (i = 0; i < QLTM_SENSELEN; i++) {
i                1384 dev/ic/isp_inline.h 		ISP_IOXGET_8(isp, &insrc->in_sense[i],
i                1385 dev/ic/isp_inline.h 		    indst->in_sense[i]);
i                1422 dev/ic/isp_inline.h 	int i;
i                1437 dev/ic/isp_inline.h 	for (i = 0; i < NA_RSVDLEN; i++) {
i                1438 dev/ic/isp_inline.h 		ISP_IOXPUT_16(isp, nasrc->na_reserved3[i],
i                1439 dev/ic/isp_inline.h 		    &nadst->na_reserved3[i]);
i                1446 dev/ic/isp_inline.h 	int i;
i                1461 dev/ic/isp_inline.h 	for (i = 0; i < NA_RSVDLEN; i++) {
i                1462 dev/ic/isp_inline.h 		ISP_IOXGET_16(isp, &nasrc->na_reserved3[i],
i                1463 dev/ic/isp_inline.h 		    nadst->na_reserved3[i]);
i                1471 dev/ic/isp_inline.h 	int i;
i                1482 dev/ic/isp_inline.h 	for (i = 0; i < NA2_RSVDLEN; i++) {
i                1483 dev/ic/isp_inline.h 		ISP_IOXPUT_16(isp, nasrc->na_reserved3[i],
i                1484 dev/ic/isp_inline.h 		    &nadst->na_reserved3[i]);
i                1492 dev/ic/isp_inline.h 	int i;
i                1503 dev/ic/isp_inline.h 	for (i = 0; i < NA2_RSVDLEN; i++) {
i                1504 dev/ic/isp_inline.h 		ISP_IOXGET_16(isp, &nasrc->na_reserved3[i],
i                1505 dev/ic/isp_inline.h 		    nadst->na_reserved3[i]);
i                 512 dev/ic/ispvar.h #define	ISP_FW_NEWER_THAN(i, major, minor, micro)		\
i                 513 dev/ic/ispvar.h  (ISP_FW_REVX((i)->isp_fwrev) > ISP_FW_REV(major, minor, micro))
i                 137 dev/ic/lemacvar.h #define	LEMAC_DECODEIRQ(i)	((0xFBA5 >> ((i) >> 3)) & 0x0F)
i                  66 dev/ic/lm700x.c 	int i;
i                  70 dev/ic/lm700x.c 	for (i = 0; i < LM700X_REGISTER_LENGTH; i++)
i                  71 dev/ic/lm700x.c 		if (data & (1 << i)) {
i                 392 dev/ic/lm78.c  	u_int i, config;
i                 394 dev/ic/lm78.c  	for (i = 0; i < sizeof(lm_chips) / sizeof(lm_chips[0]); i++)
i                 395 dev/ic/lm78.c  		if (lm_chips[i].chip_match(sc))
i                 414 dev/ic/lm78.c  	for (i = 0; i < sc->numsensors; ++i)
i                 415 dev/ic/lm78.c  		sensor_attach(&sc->sensordev, &sc->sensors[i]);
i                 422 dev/ic/lm78.c  	int i;
i                 426 dev/ic/lm78.c  	for (i = 0; i < sc->numsensors; i++)
i                 427 dev/ic/lm78.c  		sensor_detach(&sc->sensordev, &sc->sensors[i]);
i                 583 dev/ic/lm78.c  	int i;
i                 588 dev/ic/lm78.c  	for (i = 0; sensors[i].desc; i++) {
i                 589 dev/ic/lm78.c  		sc->sensors[i].type = sensors[i].type;
i                 590 dev/ic/lm78.c  		strlcpy(sc->sensors[i].desc, sensors[i].desc,
i                 591 dev/ic/lm78.c  		    sizeof(sc->sensors[i].desc));
i                 608 dev/ic/lm78.c  	int i;
i                 610 dev/ic/lm78.c  	for (i = 0; i < sc->numsensors; i++)
i                 611 dev/ic/lm78.c  		sc->lm_sensors[i].refresh(sc, i);
i                 683 dev/ic/lm78.c  	int banksel, bank, i;
i                 690 dev/ic/lm78.c  	for (i = 0; i < sc->numsensors; i++) {
i                 691 dev/ic/lm78.c  		if (bank != sc->lm_sensors[i].bank) {
i                 692 dev/ic/lm78.c  			bank = sc->lm_sensors[i].bank;
i                 695 dev/ic/lm78.c  		sc->lm_sensors[i].refresh(sc, i);
i                 542 dev/ic/lsi64854.c 		int i = 10;
i                 545 dev/ic/lsi64854.c 		while (i-- > 0 && (L64854_GCSR(sc) & D_DRAINING))
i                 363 dev/ic/malo.c  	int i;
i                 390 dev/ic/malo.c  	for (i = 1; i <= 14; i++) {
i                 391 dev/ic/malo.c  		ic->ic_channels[i].ic_freq =
i                 392 dev/ic/malo.c  		    ieee80211_ieee2mhz(i, IEEE80211_CHAN_2GHZ);
i                 393 dev/ic/malo.c  		ic->ic_channels[i].ic_flags =
i                 409 dev/ic/malo.c  	for (i = 0; i < 6; i++)
i                 410 dev/ic/malo.c  		ic->ic_myaddr[i] = malo_ctl_read1(sc, 0xa528 + i);
i                 530 dev/ic/malo.c  	int i;
i                 538 dev/ic/malo.c  	for (i = 0; i < 10; i++) {
i                 546 dev/ic/malo.c  	if (i == 10)
i                 557 dev/ic/malo.c  	int i, nsegs, error;
i                 614 dev/ic/malo.c  	for (i = 0; i < count; i++) {
i                 615 dev/ic/malo.c  		desc = &ring->desc[i];
i                 616 dev/ic/malo.c  		data = &ring->data[i];
i                 653 dev/ic/malo.c  		    (i + 1) % count * sizeof(struct malo_rx_desc));
i                 668 dev/ic/malo.c  	int i;
i                 670 dev/ic/malo.c  	for (i = 0; i < ring->count; i++)
i                 671 dev/ic/malo.c  		ring->desc[i].status = 0;
i                 683 dev/ic/malo.c  	int i;
i                 695 dev/ic/malo.c  		for (i = 0; i < ring->count; i++) {
i                 696 dev/ic/malo.c  			data = &ring->data[i];
i                 717 dev/ic/malo.c  	int i, nsegs, error;
i                 771 dev/ic/malo.c  	for (i = 0; i < count; i++) {
i                 774 dev/ic/malo.c  		    &ring->data[i].map);
i                 780 dev/ic/malo.c  		ring->desc[i].physnext = htole32(ring->physaddr +
i                 781 dev/ic/malo.c  		    (i + 1) % count * sizeof(struct malo_tx_desc));
i                 795 dev/ic/malo.c  	int i;
i                 797 dev/ic/malo.c  	for (i = 0; i < ring->count; i++) {
i                 798 dev/ic/malo.c  		desc = &ring->desc[i];
i                 799 dev/ic/malo.c  		data = &ring->data[i];
i                 829 dev/ic/malo.c  	int i;
i                 841 dev/ic/malo.c  		for (i = 0; i < ring->count; i++) {
i                 842 dev/ic/malo.c  			data = &ring->data[i];
i                1668 dev/ic/malo.c  	int error, i;
i                1673 dev/ic/malo.c  	for (i = 0; i < MALO_RX_RING_COUNT && rxRdPtr != rxWrPtr; i++) {
i                1807 dev/ic/malo.c  	int error, i;
i                1837 dev/ic/malo.c  	for (i = 0; i < 10; i++) {
i                1843 dev/ic/malo.c  	if (i == 10) {
i                1870 dev/ic/malo.c  	int i, sn, error;
i                1924 dev/ic/malo.c  	for (i = 0; i < 200; i++) {
i                1932 dev/ic/malo.c  	if (i == 200) {
i                1946 dev/ic/malo.c  	int i;
i                1948 dev/ic/malo.c  	for (i = 0; i < IEEE80211_WEP_NKID; i++) {
i                1949 dev/ic/malo.c  		struct ieee80211_key *k = &ic->ic_nw_keys[i];
i                1954 dev/ic/malo.c  		if (malo_cmd_set_wepkey(sc, k, i))
i                2002 dev/ic/malo.c  	int i, j, l;
i                2004 dev/ic/malo.c  	for (i = 0; i < len; i += l) {
i                2005 dev/ic/malo.c  		printf("%4i:", i);
i                2006 dev/ic/malo.c  		l = min(sizeof(b), len - i);
i                2007 dev/ic/malo.c  		bcopy(buf + i, b, l);
i                2034 dev/ic/malo.c  	int i;
i                2050 dev/ic/malo.c  	for (i = 0; i < sizeof(cmds) / sizeof(cmds[0]); i++)
i                2051 dev/ic/malo.c  		if ((letoh16(cmd) & 0x7fff) == cmds[i].cmd_code)
i                2052 dev/ic/malo.c  			return (cmds[i].cmd_string);
i                2061 dev/ic/malo.c  	int i;
i                2074 dev/ic/malo.c  	for (i = 0; i < sizeof(results) / sizeof(results[0]); i++)
i                2075 dev/ic/malo.c  		if (letoh16(result) == results[i].result_code)
i                2076 dev/ic/malo.c  			return (results[i].result_string);
i                2355 dev/ic/malo.c  	int i;
i                2387 dev/ic/malo.c  		for (i = 0; i < 13; i++) {
i                2388 dev/ic/malo.c  			if (body->aprates[i] == rate) {
i                2389 dev/ic/malo.c  				body->rateindex = i;
i                 165 dev/ic/mc146818reg.h 		int i;							\
i                 172 dev/ic/mc146818reg.h 		for (i = 0; i < MC_NTODREGS; i++)			\
i                 173 dev/ic/mc146818reg.h 			(*regs)[i] = mc146818_read(sc, i);		\
i                 182 dev/ic/mc146818reg.h 		int i;							\
i                 189 dev/ic/mc146818reg.h 		for (i = 0; i < MC_NTODREGS; i++)			\
i                 190 dev/ic/mc146818reg.h 			mc146818_write(sc, i, (*regs)[i]);		\
i                 159 dev/ic/mfi.c   	uint32_t		i;
i                 168 dev/ic/mfi.c   	for (i = 0; i < sc->sc_max_cmds; i++) {
i                 169 dev/ic/mfi.c   		ccb = &sc->sc_ccb[i];
i                 175 dev/ic/mfi.c   		    (MFIMEM_KVA(sc->sc_frames) + sc->sc_frames_size * i);
i                 177 dev/ic/mfi.c   		    MFIMEM_DVA(sc->sc_frames) + sc->sc_frames_size * i;
i                 178 dev/ic/mfi.c   		ccb->ccb_frame->mfr_header.mfh_context = i;
i                 182 dev/ic/mfi.c   		    (MFIMEM_KVA(sc->sc_sense) + MFI_SENSE_SIZE * i);
i                 184 dev/ic/mfi.c   		    (MFIMEM_DVA(sc->sc_sense) + MFI_SENSE_SIZE * i);
i                 210 dev/ic/mfi.c   	while (i) {
i                 211 dev/ic/mfi.c   		ccb = &sc->sc_ccb[i];
i                 213 dev/ic/mfi.c   		i--;
i                 310 dev/ic/mfi.c   	int			max_wait, i;
i                 348 dev/ic/mfi.c   		for (i = 0; i < (max_wait * 10); i++) {
i                 412 dev/ic/mfi.c   	int i;
i                 422 dev/ic/mfi.c   	for (i = 0; i < sc->sc_info.mci_image_component_count; i++) {
i                 425 dev/ic/mfi.c   		    sc->sc_info.mci_image_component[i].mic_name,
i                 426 dev/ic/mfi.c   		    sc->sc_info.mci_image_component[i].mic_version,
i                 427 dev/ic/mfi.c   		    sc->sc_info.mci_image_component[i].mic_build_date,
i                 428 dev/ic/mfi.c   		    sc->sc_info.mci_image_component[i].mic_build_time);
i                 431 dev/ic/mfi.c   	for (i = 0; i < sc->sc_info.mci_pending_image_component_count; i++) {
i                 434 dev/ic/mfi.c   		    sc->sc_info.mci_pending_image_component[i].mic_name,
i                 435 dev/ic/mfi.c   		    sc->sc_info.mci_pending_image_component[i].mic_version,
i                 436 dev/ic/mfi.c   		    sc->sc_info.mci_pending_image_component[i].mic_build_date,
i                 437 dev/ic/mfi.c   		    sc->sc_info.mci_pending_image_component[i].mic_build_time);
i                 550 dev/ic/mfi.c   	for (i = 0; i < 8; i++)
i                 551 dev/ic/mfi.c   		printf("%.0llx ", sc->sc_info.mci_host.mih_port_addr[i]);
i                 559 dev/ic/mfi.c   	for (i = 0; i < 8; i++)
i                 560 dev/ic/mfi.c   		printf("%.0llx ", sc->sc_info.mci_device.mid_port_addr[i]);
i                 583 dev/ic/mfi.c   	int			i;
i                 659 dev/ic/mfi.c   	for (i = 0; i < sc->sc_ld_cnt; i++)
i                 660 dev/ic/mfi.c   		sc->sc_ld[i].ld_present = 1;
i                1057 dev/ic/mfi.c   	int			error, i;
i                1079 dev/ic/mfi.c   	for (i = 0; i < ccb->ccb_dmamap->dm_nsegs; i++) {
i                1080 dev/ic/mfi.c   		sgl->sg32[i].addr = htole32(sgd[i].ds_addr);
i                1081 dev/ic/mfi.c   		sgl->sg32[i].len = htole32(sgd[i].ds_len);
i                1083 dev/ic/mfi.c   		    DEVNAME(sc), sgl->sg32[i].addr, sgl->sg32[i].len);
i                1301 dev/ic/mfi.c   	int			i, per, rv = EINVAL;
i                1311 dev/ic/mfi.c   	i = bv->bv_volid;
i                1312 dev/ic/mfi.c   	mbox[0] = sc->sc_ld_list.mll_list[i].mll_ld.mld_target;
i                1326 dev/ic/mfi.c   	strlcpy(bv->bv_dev, sc->sc_ld[i].ld_dev, sizeof(bv->bv_dev));
i                1328 dev/ic/mfi.c   	switch(sc->sc_ld_list.mll_list[i].mll_state) {
i                1346 dev/ic/mfi.c   		    sc->sc_ld_list.mll_list[i].mll_state);
i                1394 dev/ic/mfi.c   	int			i, rv = EINVAL;
i                1434 dev/ic/mfi.c   	for (i = 0, arr = 0; i < vol; i++)
i                1435 dev/ic/mfi.c   		arr += ld[i].mlc_parm.mpa_span_depth;
i                1552 dev/ic/mfi.c   	int			i, found, rv = EINVAL;
i                1570 dev/ic/mfi.c   	for (i = 0, found = 0; i < pd->mpl_no_pd; i++)
i                1571 dev/ic/mfi.c   		if (bb->bb_channel == pd->mpl_address[i].mpa_enc_index &&
i                1572 dev/ic/mfi.c   		    bb->bb_target == pd->mpl_address[i].mpa_enc_slot) {
i                1582 dev/ic/mfi.c   	*((uint16_t *)&mbox) = pd->mpl_address[i].mpa_pd_id;
i                1614 dev/ic/mfi.c   	int			i, found, rv = EINVAL;
i                1627 dev/ic/mfi.c   	for (i = 0, found = 0; i < pd->mpl_no_pd; i++)
i                1628 dev/ic/mfi.c   		if (bs->bs_channel == pd->mpl_address[i].mpa_enc_index &&
i                1629 dev/ic/mfi.c   		    bs->bs_target == pd->mpl_address[i].mpa_enc_slot) {
i                1639 dev/ic/mfi.c   	*((uint16_t *)&mbox) = pd->mpl_address[i].mpa_pd_id;
i                1687 dev/ic/mfi.c   	int			i, rv = EINVAL;
i                1725 dev/ic/mfi.c   	i = volid - cfg->mfc_no_ld;
i                1728 dev/ic/mfi.c   	    "hs %p cfg %p id %02x\n", DEVNAME(sc), i, volid, cfg->mfc_no_ld,
i                1729 dev/ic/mfi.c   	    cfg->mfc_no_hs, hs, cfg, hs[i].mhs_pd.mfp_id);
i                1733 dev/ic/mfi.c   	*((uint16_t *)&mbox) = hs[i].mhs_pd.mfp_id;
i                1781 dev/ic/mfi.c   	int			i;
i                1805 dev/ic/mfi.c   	for (i = 0; i < sc->sc_ld_cnt; i++) {
i                1806 dev/ic/mfi.c   		if (ssc->sc_link[i][0] == NULL)
i                1809 dev/ic/mfi.c   		dev = ssc->sc_link[i][0]->device_softc;
i                1811 dev/ic/mfi.c   		sc->sc_sensors[i].type = SENSOR_DRIVE;
i                1812 dev/ic/mfi.c   		sc->sc_sensors[i].status = SENSOR_S_UNKNOWN;
i                1814 dev/ic/mfi.c   		strlcpy(sc->sc_sensors[i].desc, dev->dv_xname,
i                1815 dev/ic/mfi.c   		    sizeof(sc->sc_sensors[i].desc));
i                1817 dev/ic/mfi.c   		sensor_attach(&sc->sc_sensordev, &sc->sc_sensors[i]);
i                1837 dev/ic/mfi.c   	int			i;
i                1841 dev/ic/mfi.c   	for (i = 0; i < sc->sc_ld_cnt; i++) {
i                1843 dev/ic/mfi.c   		bv.bv_volid = i;
i                1849 dev/ic/mfi.c   			sc->sc_sensors[i].value = SENSOR_DRIVE_FAIL;
i                1850 dev/ic/mfi.c   			sc->sc_sensors[i].status = SENSOR_S_CRIT;
i                1854 dev/ic/mfi.c   			sc->sc_sensors[i].value = SENSOR_DRIVE_PFAIL;
i                1855 dev/ic/mfi.c   			sc->sc_sensors[i].status = SENSOR_S_WARN;
i                1860 dev/ic/mfi.c   			sc->sc_sensors[i].value = SENSOR_DRIVE_ONLINE;
i                1861 dev/ic/mfi.c   			sc->sc_sensors[i].status = SENSOR_S_OK;
i                1867 dev/ic/mfi.c   			sc->sc_sensors[i].value = 0; /* unknown */
i                1868 dev/ic/mfi.c   			sc->sc_sensors[i].status = SENSOR_S_UNKNOWN;
i                  93 dev/ic/mk48txx.c 	int i;
i                  97 dev/ic/mk48txx.c 	i = sizeof(mk48txx_models)/sizeof(mk48txx_models[0]);
i                  98 dev/ic/mk48txx.c 	while (--i >= 0) {
i                  99 dev/ic/mk48txx.c 		if (strcmp(model, mk48txx_models[i].name) == 0) {
i                 100 dev/ic/mk48txx.c 			nvramsz = mk48txx_models[i].nvramsz;
i                 101 dev/ic/mk48txx.c 			clkoff = mk48txx_models[i].clkoff;
i                 105 dev/ic/mk48txx.c 	if (i < 0) {
i                 265 dev/ic/mpi.c   	int				i;
i                 269 dev/ic/mpi.c   	for (i = 0; i < sc->sc_buswidth; i++) {
i                 271 dev/ic/mpi.c   		    1, i, &hdr) != 0)
i                 274 dev/ic/mpi.c   		if (mpi_cfg_page(sc, i, &hdr, 1, &page, sizeof(page)) != 0)
i                 279 dev/ic/mpi.c   		    "req_params2: 0x%02x conf: 0x%08x\n", DEVNAME(sc), i,
i                 289 dev/ic/mpi.c   		if (mpi_cfg_page(sc, i, &hdr, 0, &page, sizeof(page)) != 0)
i                 303 dev/ic/mpi.c   	int				i, tries;
i                 318 dev/ic/mpi.c   	for (i = 0; i < sc->sc_buswidth; i++) {
i                 319 dev/ic/mpi.c   		link = sc->sc_scsibus->sc_link[i][0];
i                 361 dev/ic/mpi.c   	for (i = 0; i < physdisk_pg->no_phys_disks; i++) {
i                 362 dev/ic/mpi.c   		physdisk = &physdisk_list[i];
i                 681 dev/ic/mpi.c   	int				i;
i                 692 dev/ic/mpi.c   		i = (reply_dva - (u_int32_t)MPI_DMA_DVA(sc->sc_replies)) /
i                 694 dev/ic/mpi.c   		rcb = &sc->sc_rcbs[i];
i                 796 dev/ic/mpi.c   	int				i;
i                 817 dev/ic/mpi.c   	for (i = 0; i < sc->sc_maxcmds; i++) {
i                 818 dev/ic/mpi.c   		ccb = &sc->sc_ccbs[i];
i                 828 dev/ic/mpi.c   		ccb->ccb_id = i;
i                 829 dev/ic/mpi.c   		ccb->ccb_offset = MPI_REQUEST_SIZE * i;
i                 837 dev/ic/mpi.c   		    DEVNAME(sc), i, ccb, ccb->ccb_dmamap, ccb->ccb_sc,
i                 913 dev/ic/mpi.c   	int				i;
i                 918 dev/ic/mpi.c   	for (i = 0; i < MPI_REPLY_COUNT; i++) {
i                 919 dev/ic/mpi.c   		rcb = &sc->sc_rcbs[i];
i                 921 dev/ic/mpi.c   		rcb->rcb_reply = kva + MPI_REPLY_SIZE * i;
i                 923 dev/ic/mpi.c   		    MPI_REPLY_SIZE * i;
i                1224 dev/ic/mpi.c   	int				i, error;
i                1249 dev/ic/mpi.c   	for (i = 0; i < dmap->dm_nsegs; i++) {
i                1259 dev/ic/mpi.c   			if ((dmap->dm_nsegs - i) > sc->sc_chain_len) {
i                1267 dev/ic/mpi.c   				    (dmap->dm_nsegs - i);
i                1289 dev/ic/mpi.c   		    i, dmap->dm_segs[i].ds_len,
i                1290 dev/ic/mpi.c   		    (u_int64_t)dmap->dm_segs[i].ds_addr);
i                1294 dev/ic/mpi.c   		sge->sg_hdr = htole32(flags | dmap->dm_segs[i].ds_len);
i                1295 dev/ic/mpi.c   		addr = (u_int32_t)((u_int64_t)dmap->dm_segs[i].ds_addr >> 32);
i                1297 dev/ic/mpi.c   		addr = (u_int32_t)dmap->dm_segs[i].ds_addr;
i                1301 dev/ic/mpi.c   		    DEVNAME(sc), i, sge->sg_hdr, sge->sg_hi_addr,
i                1361 dev/ic/mpi.c   	int				i;
i                1366 dev/ic/mpi.c   	for (i = 0; i < 10000; i++) {
i                1379 dev/ic/mpi.c   	int				i;
i                1384 dev/ic/mpi.c   	for (i = 0; i < 10000; i++) {
i                1397 dev/ic/mpi.c   	int				i;
i                1415 dev/ic/mpi.c   	for (i = 0; i < 5; i++) {
i                1496 dev/ic/mpi.c   	int					i;
i                1526 dev/ic/mpi.c   	for (i = 0; i < dwords; i++) {
i                1527 dev/ic/mpi.c   		mpi_write_db(sc, htole32(query[i]));
i                1539 dev/ic/mpi.c   	int					i;
i                1541 dev/ic/mpi.c   	for (i = 0; i < 2; i++) {
i                1544 dev/ic/mpi.c   		words[i] = letoh16(mpi_read_db(sc) & MPI_DOORBELL_DATA_MASK);
i                1556 dev/ic/mpi.c   	int					i;
i                1569 dev/ic/mpi.c   	for (i = 1; i < MIN(dwords, reply->msg_length); i++) {
i                1570 dev/ic/mpi.c   		if (mpi_handshake_recv_dword(sc, &dbuf[i]) != 0)
i                1575 dev/ic/mpi.c   	while (i++ < reply->msg_length) {
i                2143 dev/ic/mpi.c   	int				i;
i                2189 dev/ic/mpi.c   	for (i = 0; i < vol_page->active_vols; i++) {
i                2190 dev/ic/mpi.c   		vol = &vol_list[i];
i                  95 dev/ic/mtd8xx.c 	int i;
i                 126 dev/ic/mtd8xx.c 	for (i = 0; i < MTD_RX_LIST_CNT; i++) {
i                 129 dev/ic/mtd8xx.c 		    &sc->mtd_cdata.mtd_rx_chain[i].sd_map) != 0) {
i                 140 dev/ic/mtd8xx.c 	for (i = 0; i < MTD_TX_LIST_CNT; i++) {
i                 143 dev/ic/mtd8xx.c 		    &sc->mtd_cdata.mtd_tx_chain[i].sd_map) != 0) {
i                 223 dev/ic/mtd8xx.c 	int i;
i                 228 dev/ic/mtd8xx.c 	for (i = 0; i < 32; i++) {
i                 369 dev/ic/mtd8xx.c 	int frag, cur, cnt = 0, i, total_len = 0;
i                 385 dev/ic/mtd8xx.c 	for (i = 0; i < map->dm_nsegs; i++) {
i                 393 dev/ic/mtd8xx.c 		f->td_tcw = htole32(map->dm_segs[i].ds_len);
i                 394 dev/ic/mtd8xx.c 		total_len += map->dm_segs[i].ds_len;
i                 400 dev/ic/mtd8xx.c 		f->td_buf = htole32(map->dm_segs[i].ds_addr);
i                 441 dev/ic/mtd8xx.c 	int i;
i                 445 dev/ic/mtd8xx.c 	for (i = 0; i < MTD_TX_LIST_CNT; i++) {
i                 446 dev/ic/mtd8xx.c 		cd->mtd_tx_chain[i].sd_mbuf = NULL;
i                 447 dev/ic/mtd8xx.c 		ld->mtd_tx_list[i].td_tsw = 0;
i                 448 dev/ic/mtd8xx.c 		ld->mtd_tx_list[i].td_tcw = 0;
i                 449 dev/ic/mtd8xx.c 		ld->mtd_tx_list[i].td_buf = 0;
i                 450 dev/ic/mtd8xx.c 		ld->mtd_tx_list[i].td_next = htole32(
i                 453 dev/ic/mtd8xx.c 		    mtd_tx_list[(i + 1) % MTD_TX_LIST_CNT]));
i                 469 dev/ic/mtd8xx.c 	int i;
i                 473 dev/ic/mtd8xx.c 	for (i = 0; i < MTD_RX_LIST_CNT; i++) {
i                 474 dev/ic/mtd8xx.c 		if (mtd_newbuf(sc, i, NULL))
i                 476 dev/ic/mtd8xx.c 		ld->mtd_rx_list[i].rd_next = htole32(
i                 479 dev/ic/mtd8xx.c 		    mtd_rx_list[(i + 1) % MTD_RX_LIST_CNT])
i                 493 dev/ic/mtd8xx.c mtd_newbuf(struct mtd_softc *sc, int i, struct mbuf *m)
i                 499 dev/ic/mtd8xx.c 	c = &sc->mtd_ldata->mtd_rx_list[i];
i                 518 dev/ic/mtd8xx.c 		map = sc->mtd_cdata.mtd_rx_chain[i].sd_map;
i                 519 dev/ic/mtd8xx.c 		sc->mtd_cdata.mtd_rx_chain[i].sd_map = sc->sc_rx_sparemap;
i                 529 dev/ic/mtd8xx.c 	bus_dmamap_sync(sc->sc_dmat, sc->mtd_cdata.mtd_rx_chain[i].sd_map, 0,
i                 530 dev/ic/mtd8xx.c 	    sc->mtd_cdata.mtd_rx_chain[i].sd_map->dm_mapsize,
i                 533 dev/ic/mtd8xx.c 	sc->mtd_cdata.mtd_rx_chain[i].sd_mbuf = m_new;
i                 535 dev/ic/mtd8xx.c 	    sc->mtd_cdata.mtd_rx_chain[i].sd_map->dm_segs[0].ds_addr +
i                 541 dev/ic/mtd8xx.c 	    offsetof(struct mtd_list_data, mtd_rx_list[i]),
i                 552 dev/ic/mtd8xx.c 	int i;
i                 560 dev/ic/mtd8xx.c 	for (i = 0; i < MTD_TIMEOUT; ++i) {
i                 770 dev/ic/mtd8xx.c 	int i;
i                 783 dev/ic/mtd8xx.c 	for (i = 0; i < MTD_RX_LIST_CNT; i++) {
i                 784 dev/ic/mtd8xx.c 		if (sc->mtd_cdata.mtd_rx_chain[i].sd_map->dm_nsegs != 0) {
i                 785 dev/ic/mtd8xx.c 			bus_dmamap_t map = sc->mtd_cdata.mtd_rx_chain[i].sd_map;
i                 791 dev/ic/mtd8xx.c 		if (sc->mtd_cdata.mtd_rx_chain[i].sd_mbuf != NULL) {
i                 792 dev/ic/mtd8xx.c 			m_freem(sc->mtd_cdata.mtd_rx_chain[i].sd_mbuf);
i                 793 dev/ic/mtd8xx.c 			sc->mtd_cdata.mtd_rx_chain[i].sd_mbuf = NULL;
i                 802 dev/ic/mtd8xx.c 	for (i = 0; i < MTD_TX_LIST_CNT; i++) {
i                 803 dev/ic/mtd8xx.c 		if (sc->mtd_cdata.mtd_tx_chain[i].sd_map->dm_nsegs != 0) {
i                 804 dev/ic/mtd8xx.c 			bus_dmamap_t map = sc->mtd_cdata.mtd_tx_chain[i].sd_map;
i                 810 dev/ic/mtd8xx.c 		if (sc->mtd_cdata.mtd_tx_chain[i].sd_mbuf != NULL) {
i                 811 dev/ic/mtd8xx.c 			m_freem(sc->mtd_cdata.mtd_tx_chain[i].sd_mbuf);
i                 812 dev/ic/mtd8xx.c 			sc->mtd_cdata.mtd_tx_chain[i].sd_mbuf = NULL;
i                 907 dev/ic/mtd8xx.c 	int i, total_len = 0;
i                 911 dev/ic/mtd8xx.c 	i = sc->mtd_cdata.mtd_rx_prod;
i                 913 dev/ic/mtd8xx.c 	while(!(sc->mtd_ldata->mtd_rx_list[i].rd_rsr & htole32(RSR_OWN))) {
i                 917 dev/ic/mtd8xx.c 		    offsetof(struct mtd_list_data, mtd_rx_list[i]),
i                 921 dev/ic/mtd8xx.c 		cur_rx = &sc->mtd_ldata->mtd_rx_list[i];
i                 923 dev/ic/mtd8xx.c 		m = sc->mtd_cdata.mtd_rx_chain[i].sd_mbuf;
i                 926 dev/ic/mtd8xx.c 		sc->mtd_cdata.mtd_rx_chain[i].sd_mbuf = NULL;
i                 936 dev/ic/mtd8xx.c 			mtd_newbuf(sc, i, m);
i                 938 dev/ic/mtd8xx.c 				i = (i + 1) % MTD_RX_LIST_CNT;
i                 949 dev/ic/mtd8xx.c 		bus_dmamap_sync(sc->sc_dmat, sc->mtd_cdata.mtd_rx_chain[i].sd_map,
i                 950 dev/ic/mtd8xx.c 		    0, sc->mtd_cdata.mtd_rx_chain[i].sd_map->dm_mapsize,
i                 955 dev/ic/mtd8xx.c 		mtd_newbuf(sc, i, m);
i                 956 dev/ic/mtd8xx.c 		i = (i + 1) % MTD_RX_LIST_CNT;
i                 973 dev/ic/mtd8xx.c 	sc->mtd_cdata.mtd_rx_prod = i;
i                 992 dev/ic/mtd8xx.c 	int i, pos;
i                 997 dev/ic/mtd8xx.c 	for (i = 0; i < MTD_RX_LIST_CNT; i++) {
i                1010 dev/ic/mtd8xx.c 	if (i == MTD_RX_LIST_CNT)
i                 357 dev/ic/ncr5380sbc.c 	int i, j;
i                 364 dev/ic/ncr5380sbc.c 	for (i = 0; i < SCI_OPENINGS; i++) {
i                 365 dev/ic/ncr5380sbc.c 		sr = &sc->sc_ring[i];
i                 369 dev/ic/ncr5380sbc.c 	for (i = 0; i < 8; i++)
i                 371 dev/ic/ncr5380sbc.c 			sc->sc_matrix[i][j] = NULL;
i                 602 dev/ic/ncr5380sbc.c 	int s, rv, i, flags;
i                 633 dev/ic/ncr5380sbc.c 	for (i = 0; i < SCI_OPENINGS; i++)
i                 634 dev/ic/ncr5380sbc.c 		if (sc->sc_ring[i].sr_xs == NULL)
i                 643 dev/ic/ncr5380sbc.c 	sr = &sc->sc_ring[i];
i                 659 dev/ic/ncr5380sbc.c 		sc->sc_rr = i;
i                 830 dev/ic/ncr5380sbc.c 	int	error, i;
i                 856 dev/ic/ncr5380sbc.c 	i = sc->sc_rr;
i                 859 dev/ic/ncr5380sbc.c 		if (sc->sc_ring[i].sr_xs) {
i                 860 dev/ic/ncr5380sbc.c 			target = sc->sc_ring[i].sr_target;
i                 861 dev/ic/ncr5380sbc.c 			lun = sc->sc_ring[i].sr_lun;
i                 870 dev/ic/ncr5380sbc.c 				sc->sc_rr = i;
i                 871 dev/ic/ncr5380sbc.c 				sr = &sc->sc_ring[i];
i                 875 dev/ic/ncr5380sbc.c 		i++;
i                 876 dev/ic/ncr5380sbc.c 		if (i == SCI_OPENINGS)
i                 877 dev/ic/ncr5380sbc.c 			i = 0;
i                 878 dev/ic/ncr5380sbc.c 	} while (i != sc->sc_rr);
i                1039 dev/ic/ncr5380sbc.c 		i = (xs->timeout * hz) / 1000;
i                1040 dev/ic/ncr5380sbc.c 		NCR_TRACE("sched: set timeout=%d\n", i);
i                1041 dev/ic/ncr5380sbc.c 		timeout_add(&sr->sr_timeout, i);
i                2443 dev/ic/ncr5380sbc.c 	int	i  = 0;
i                2449 dev/ic/ncr5380sbc.c 		while (i < xs->cmdlen) {
i                2450 dev/ic/ncr5380sbc.c 			if (i) printf(",");
i                2451 dev/ic/ncr5380sbc.c 			printf("%x",b[i++]);
i                2467 dev/ic/ncr5380sbc.c 	int	i;
i                2470 dev/ic/ncr5380sbc.c 	for (i = 0; i < sizeof(xs->sense); i++)
i                2471 dev/ic/ncr5380sbc.c 		printf(" %02x", b[i]);
i                2561 dev/ic/ncr5380sbc.c 	int i, j, k;
i                2572 dev/ic/ncr5380sbc.c 	for (i = 0; i < SCI_OPENINGS; i++) {
i                2573 dev/ic/ncr5380sbc.c 		sr = &sc->sc_ring[i];
i                2576 dev/ic/ncr5380sbc.c 				k = i;
i                2577 dev/ic/ncr5380sbc.c 			db_printf("req %d: (sr=%p)", i, (long)sr);
i                2584 dev/ic/ncr5380sbc.c 	for(i = 0; i < 8; i++) {		/* targets */
i                2586 dev/ic/ncr5380sbc.c 			sr = sc->sc_matrix[i][j];
i                2588 dev/ic/ncr5380sbc.c 				db_printf("TID=%d LUN=%d sr=0x%x\n", i, j, (long)sr);
i                 385 dev/ic/ncr53c9x.c 	int r, i;
i                 426 dev/ic/ncr53c9x.c 				for (i = 0; i < 256; i++)
i                 427 dev/ic/ncr53c9x.c 					if ((ecb = li->queued[i])) {
i                 428 dev/ic/ncr53c9x.c 						li->queued[i] = NULL;
i                 984 dev/ic/ncr53c9x.c 			int i;
i                 993 dev/ic/ncr53c9x.c 			for (i=li->avail; i<256; i++) {
i                 994 dev/ic/ncr53c9x.c 				if (li->queued[i] == NULL)
i                 998 dev/ic/ncr53c9x.c 			if (i == 256) {
i                 999 dev/ic/ncr53c9x.c 				for (i = 0; i<256; i++) {
i                1000 dev/ic/ncr53c9x.c 					if (li->queued[i] == NULL)
i                1005 dev/ic/ncr53c9x.c 			if (i == 256)
i                1010 dev/ic/ncr53c9x.c 			li->avail = i+1;
i                1013 dev/ic/ncr53c9x.c 			li->queued[i] = ecb;
i                1014 dev/ic/ncr53c9x.c 			ecb->tag[1] = i;
i                1239 dev/ic/ncr53c9x.c 	int i, n;
i                1264 dev/ic/ncr53c9x.c 		for (i = 0; i < n; i++)
i                1265 dev/ic/ncr53c9x.c 			buf[i] = NCR_READ_REG(sc, NCR_FIFO);
i                1270 dev/ic/ncr53c9x.c 			buf[i++] = NCR_READ_REG(sc, NCR_FIFO);
i                1277 dev/ic/ncr53c9x.c 		for (i = 0; i < n; i++)
i                1278 dev/ic/ncr53c9x.c 			buf[i] = NCR_READ_REG(sc, NCR_FIFO);
i                1281 dev/ic/ncr53c9x.c 	sc->sc_imlen += i;
i                1303 dev/ic/ncr53c9x.c 	int i;
i                1308 dev/ic/ncr53c9x.c 		for (i = 0; i < len; i++)
i                1309 dev/ic/ncr53c9x.c 			printf(" %02x", p[i]);
i                1314 dev/ic/ncr53c9x.c 	for (i = 0; i < len; i++) {
i                1315 dev/ic/ncr53c9x.c 		NCR_WRITE_REG(sc, NCR_FIFO, p[i]);
i                1911 dev/ic/ncr53c9x.c 		int i;
i                1913 dev/ic/ncr53c9x.c 		for (i = 0; i<sc->sc_omlen; i++)
i                1914 dev/ic/ncr53c9x.c 			NCR_MISC(("<msgbyte:0x%02x>", sc->sc_omess[i]));
i                2261 dev/ic/ncr53c9x.c 			int i = (NCR_READ_REG(sc, NCR_FFLAG)
i                2268 dev/ic/ncr53c9x.c 			    sc->sc_dev.dv_xname, i);
i                2270 dev/ic/ncr53c9x.c 			while (i-- > 0)
i                 110 dev/ic/ne2000.c 	int memsize, i, useword;
i                 167 dev/ic/ne2000.c 	for (i = 0; i < 16; i++)
i                 168 dev/ic/ne2000.c 		dsc->sc_reg_map[i] = i;
i                 183 dev/ic/ne2000.c 		for (i = 0; i < ED_PAGE_SIZE; i++)
i                 184 dev/ic/ne2000.c 			pbuf0[i] = 0;
i                 193 dev/ic/ne2000.c 				for (i = 0; i < ED_PAGE_SIZE; i++)
i                 194 dev/ic/ne2000.c 					pbuf[i] = 255 - x;
i                 221 dev/ic/ne2000.c 				for (i = 0; i < ED_PAGE_SIZE; i++)
i                 222 dev/ic/ne2000.c 					pbuf[i] = 255 - x;
i                 264 dev/ic/ne2000.c 			for (i = 0; i < ETHER_ADDR_LEN; i++)
i                 265 dev/ic/ne2000.c 				dsc->sc_arpcom.ac_enaddr[i] =
i                 266 dev/ic/ne2000.c 				    romdata[i * (useword ? 2 : 1)];
i                 307 dev/ic/ne2000.c 	int state, i, rv = 0;
i                 380 dev/ic/ne2000.c 	for (i = 0; i < 100; i++) {
i                 393 dev/ic/ne2000.c 	if (i == 100)
i                 152 dev/ic/oosiop.c 	int err, i, nseg;
i                 196 dev/ic/oosiop.c 	for (i = 0; i < OOSIOP_NTGT; i++) {
i                 197 dev/ic/oosiop.c 		sc->sc_tgt[i].nexus = NULL;
i                 198 dev/ic/oosiop.c 		sc->sc_tgt[i].flags = 0;
i                 268 dev/ic/oosiop.c 	int i, s, err, nseg;
i                 298 dev/ic/oosiop.c 	for (i = 0; i < ncb; i++) {
i                 430 dev/ic/oosiop.c 	int i;
i                 433 dev/ic/oosiop.c 	for (i = 0; i < sizeof(oosiop_script) / sizeof(oosiop_script[0]); i++)
i                 434 dev/ic/oosiop.c 		sc->sc_scr[i] = htole32(oosiop_script[i]);
i                 437 dev/ic/oosiop.c 	for (i = 0; i < (sizeof(oosiop_script) / 8); i++) {
i                 438 dev/ic/oosiop.c 		switch (oosiop_script[i * 2] >> 27) {
i                 441 dev/ic/oosiop.c 			oosiop_relocate_io(sc, i * 8);
i                 445 dev/ic/oosiop.c 			oosiop_relocate_tc(sc, i * 8);
i                 459 dev/ic/oosiop.c 	int i, n, off;
i                 468 dev/ic/oosiop.c 		for (i = 0; i < cb->datadma->dm_nsegs; i++) {
i                 469 dev/ic/oosiop.c 			if (off < cb->datadma->dm_segs[i].ds_len)
i                 471 dev/ic/oosiop.c 			off -= cb->datadma->dm_segs[i].ds_len;
i                 477 dev/ic/oosiop.c 			while (i < cb->datadma->dm_nsegs) {
i                 480 dev/ic/oosiop.c 				    (cb->datadma->dm_segs[i].ds_len - off));
i                 482 dev/ic/oosiop.c 				    htole32(cb->datadma->dm_segs[i].ds_addr +
i                 485 dev/ic/oosiop.c 				i++;
i                 494 dev/ic/oosiop.c 			while (i < cb->datadma->dm_nsegs) {
i                 497 dev/ic/oosiop.c 				    (cb->datadma->dm_segs[i].ds_len - off));
i                 499 dev/ic/oosiop.c 				    htole32(cb->datadma->dm_segs[i].ds_addr +
i                 502 dev/ic/oosiop.c 				i++;
i                 585 dev/ic/oosiop.c 	u_int32_t dsp, dbc, n, i, len;
i                 603 dev/ic/oosiop.c 		for (i = 0; i <= n; i++)
i                 604 dev/ic/oosiop.c 			len += letoh32(cb->xfer->datain_scr[i * 2]) &
i                 615 dev/ic/oosiop.c 		for (i = 0; i <= n; i++)
i                 616 dev/ic/oosiop.c 			len += letoh32(cb->xfer->dataout_scr[i * 2]) &
i                 662 dev/ic/oosiop.c 	int i, p;
i                 674 dev/ic/oosiop.c 			for (i = 4; i < 12; i++) {
i                 675 dev/ic/oosiop.c 				p = oosiop_period(sc, i, sc->sc_ccf);
i                 679 dev/ic/oosiop.c 			if (i == 12) {
i                 682 dev/ic/oosiop.c 				i = 11;	/* XXX */
i                 685 dev/ic/oosiop.c 			sc->sc_tgt[id].sxfer = ((i - 4) << 4) | offset;
i                 687 dev/ic/oosiop.c 			for (i = 0; i < NSYNCTBL; i++) {
i                 688 dev/ic/oosiop.c 				p = oosiop_period(sc, synctbl[i].tp + 4,
i                 689 dev/ic/oosiop.c 				    (synctbl[i].scf + 1) * 5);
i                 693 dev/ic/oosiop.c 			if (i == NSYNCTBL) {
i                 696 dev/ic/oosiop.c 				i = NSYNCTBL - 1;	/* XXX */
i                 698 dev/ic/oosiop.c 			sc->sc_tgt[id].scf = synctbl[i].scf;
i                 699 dev/ic/oosiop.c 			sc->sc_tgt[id].sxfer = (synctbl[i].tp << 4) | offset;
i                 817 dev/ic/oosiop.c 	int i, s, to;
i                 823 dev/ic/oosiop.c 		i = 1000;
i                 826 dev/ic/oosiop.c 			if (i <= 0) {
i                 827 dev/ic/oosiop.c 				i = 1000;
i                 836 dev/ic/oosiop.c 			i--;
i                1034 dev/ic/oosiop.c 	int i, s;
i                1073 dev/ic/oosiop.c 	for (i = 0; i < OOSIOP_NTGT; i++) {
i                1074 dev/ic/oosiop.c 		sc->sc_tgt[i].flags = 0;
i                1075 dev/ic/oosiop.c 		sc->sc_tgt[i].scf = 0;
i                1076 dev/ic/oosiop.c 		sc->sc_tgt[i].sxfer = 0;
i                1085 dev/ic/oosiop.c 	int s, i;
i                1095 dev/ic/oosiop.c 	for (i = 0; i < OOSIOP_NTGT; i++) {
i                1096 dev/ic/oosiop.c 		if (sc->sc_tgt[i].nexus) {
i                1097 dev/ic/oosiop.c 			sc->sc_tgt[i].nexus->xfer->status =
i                1099 dev/ic/oosiop.c 			oosiop_done(sc, sc->sc_tgt[i].nexus);
i                1265 dev/ic/oosiop.c 	int i;
i                1296 dev/ic/oosiop.c 		for (i = 0; i < OOSIOP_NTGT; i++)
i                1297 dev/ic/oosiop.c 			if (resid & (1 << i))
i                1299 dev/ic/oosiop.c 		if (i == OOSIOP_NTGT) {
i                1304 dev/ic/oosiop.c 		sc->sc_resid = i;
i                 138 dev/ic/oosiopreg.h #define	OOSIOP_SCID_VALUE(i)	(1 << i)
i                 155 dev/ic/opl.c   	int i;
i                 177 dev/ic/opl.c   	for (i = 0; i < OPL3_NVOICE; i++)
i                 178 dev/ic/opl.c   		sc->voices[i] = voicetab[i];
i                 347 dev/ic/opl.c   	int i;
i                 349 dev/ic/opl.c   	for (i = 1; i <= OPL_MAXREG; i++)
i                 350 dev/ic/opl.c   		opl_command(sc, OPL_L, OPL_KEYON_BLOCK + i, 0);
i                 206 dev/ic/osiop.c 	int i, err;
i                 301 dev/ic/osiop.c 	for (i = 0; i < OSIOP_NACB; i++, acb++) {
i                 313 dev/ic/osiop.c 		acb->ds = &sc->sc_ds[i];
i                 314 dev/ic/osiop.c 		acb->dsoffset = sizeof(struct osiop_ds) * i;
i                 475 dev/ic/osiop.c 	int status, i, s, to;
i                 484 dev/ic/osiop.c 		i = 1000;
i                 487 dev/ic/osiop.c 			if (i <= 0) {
i                 501 dev/ic/osiop.c 				i = 1000;
i                 510 dev/ic/osiop.c 			i--;
i                 792 dev/ic/osiop.c 	int i, inhibit_sync, inhibit_disc;
i                 834 dev/ic/osiop.c 	for (i = 0; i < OSIOP_NTGT; i++) {
i                 835 dev/ic/osiop.c 		if (inhibit_sync & (1 << i))
i                 836 dev/ic/osiop.c 			sc->sc_tinfo[i].flags |= TI_NOSYNC;
i                 837 dev/ic/osiop.c 		if (inhibit_disc & (1 << i))
i                 838 dev/ic/osiop.c 			sc->sc_tinfo[i].flags |= TI_NODISC;
i                 850 dev/ic/osiop.c 	int i, s;
i                 896 dev/ic/osiop.c 	for (i = 0; i < OSIOP_NTGT; i++) {
i                 897 dev/ic/osiop.c 		sc->sc_tinfo[i].state = NEG_INIT;
i                 898 dev/ic/osiop.c 		sc->sc_tinfo[i].period = 0;
i                 899 dev/ic/osiop.c 		sc->sc_tinfo[i].offset = 0;
i                 970 dev/ic/osiop.c 	int disconnect, i;
i                1050 dev/ic/osiop.c 		for (i = 0; i < datadma->dm_nsegs; i++) {
i                1051 dev/ic/osiop.c 			ds->data[i].count = datadma->dm_segs[i].ds_len;
i                1052 dev/ic/osiop.c 			ds->data[i].addr  = datadma->dm_segs[i].ds_addr;
i                1283 dev/ic/osiop.c 					int i;
i                1284 dev/ic/osiop.c 					for (i = 0; ds->data[i].count != 0; i++)
i                1286 dev/ic/osiop.c 						    "addr %x len %x\n", i,
i                1287 dev/ic/osiop.c 						    ds->data[i].addr,
i                1288 dev/ic/osiop.c 						    ds->data[i].count);
i                1472 dev/ic/osiop.c 			int i, j;
i                1482 dev/ic/osiop.c 			for (i = 0; i < OSIOP_NSG; i++) {
i                1483 dev/ic/osiop.c 				if (ds->data[i].count == 0)
i                1485 dev/ic/osiop.c 				if (acb->curaddr >= ds->data[i].addr &&
i                1487 dev/ic/osiop.c 				    (ds->data[i].addr + ds->data[i].count))
i                1490 dev/ic/osiop.c 			if (i >= OSIOP_NSG || ds->data[i].count == 0) {
i                1493 dev/ic/osiop.c 				    acb->curaddr, acb->curlen, i);
i                1506 dev/ic/osiop.c 			for (j = 1, i = i + 1;
i                1507 dev/ic/osiop.c 			    i < OSIOP_NSG && ds->data[i].count > 0;
i                1508 dev/ic/osiop.c 			    i++, j++) {
i                1514 dev/ic/osiop.c 					    ds->data[i].addr, ds->data[i].count);
i                1516 dev/ic/osiop.c 				ds->data[j].addr  = ds->data[i].addr;
i                1517 dev/ic/osiop.c 				ds->data[j].count = ds->data[i].count;
i                1915 dev/ic/osiop.c 	int i;
i                1925 dev/ic/osiop.c 		for (i = 0; i < sizeof(sync_tab) / sizeof(sync_tab[0]); i++) {
i                1926 dev/ic/osiop.c 			if (period <= sync_tab[i].p) {
i                1927 dev/ic/osiop.c 				sxfer |= sync_tab[i].r & 0x70;
i                1928 dev/ic/osiop.c 				sbcl = sync_tab[i].r & 0x03;
i                1997 dev/ic/osiop.c 	int i;
i                2000 dev/ic/osiop.c 	i = osiop_trix;
i                2002 dev/ic/osiop.c 		printf("%3d: '%c' %02x %02x %02x\n", i,
i                2003 dev/ic/osiop.c 		    osiop_trbuf[i], osiop_trbuf[i + 1],
i                2004 dev/ic/osiop.c 		    osiop_trbuf[i + 2], osiop_trbuf[i + 3]);
i                2005 dev/ic/osiop.c 		i = (i + 4) & (OSIOP_TRACE_SIZE - 1);
i                2006 dev/ic/osiop.c 	} while (i != osiop_trix);
i                2015 dev/ic/osiop.c 	int i;
i                2029 dev/ic/osiop.c 	for (i = acb->ds->cmd.count; i > 0; i--)
i                2042 dev/ic/osiop.c 	int i, s;
i                2075 dev/ic/osiop.c 	for (i = 0; i < OSIOP_NTGT; i++) {
i                2076 dev/ic/osiop.c 		if (sc->sc_tinfo[i].cmds > 2) {
i                2078 dev/ic/osiop.c 			    i, sc->sc_tinfo[i].cmds,
i                2079 dev/ic/osiop.c 			    sc->sc_tinfo[i].dconns,
i                2080 dev/ic/osiop.c 			    sc->sc_tinfo[i].lubusy);
i                 161 dev/ic/osiopreg.h #define OSIOP_SCID_VALUE(i)	(1 << (i))
i                 334 dev/ic/pcdisplay_chars.c 	u_int i;
i                 344 dev/ic/pcdisplay_chars.c 	for (i = 0; i < sizeof(unimappings) / sizeof(unimappings[0]); i++)
i                 345 dev/ic/pcdisplay_chars.c 		if (uni == unimappings[i].uni) {
i                 346 dev/ic/pcdisplay_chars.c 			*index = unimappings[i].ibm;
i                 350 dev/ic/pcdisplay_chars.c 	for (i = 0; i < sizeof(replacements) / sizeof(replacements[0]); i++)
i                 351 dev/ic/pcdisplay_chars.c 		if (uni == replacements[i].uni) {
i                 352 dev/ic/pcdisplay_chars.c 			*index = replacements[i].ibm;
i                 353 dev/ic/pcdisplay_chars.c 			return (replacements[i].quality);
i                 238 dev/ic/pcdisplay_subr.c 	int i;
i                 248 dev/ic/pcdisplay_subr.c 		for (i = 0; i < ncols; i++)
i                 249 dev/ic/pcdisplay_subr.c 			scr->mem[off + i] = val;
i                 208 dev/ic/pcf8584.c 	int			i, err = 0;
i                 217 dev/ic/pcf8584.c 	for (i = 0; i <= len; i++) {
i                 228 dev/ic/pcf8584.c 		if (i < len)
i                 229 dev/ic/pcf8584.c 			pcfiic_write(sc, PCF_S0, buf[i]);
i                 238 dev/ic/pcf8584.c 	int			i = 0, err = 0;
i                 247 dev/ic/pcf8584.c 	for (i = 0; i <= len; i++) {
i                 253 dev/ic/pcf8584.c 		if ((i != len) && (r & PCF_STAT_LRB)) {
i                 258 dev/ic/pcf8584.c 		if (i == len - 1) {
i                 260 dev/ic/pcf8584.c 		} else if (i == len) {
i                 265 dev/ic/pcf8584.c 		if (i > 0)
i                 266 dev/ic/pcf8584.c 			buf[i - 1] = r;
i                 298 dev/ic/pcf8584.c 	int		i;
i                 300 dev/ic/pcf8584.c 	for (i = 0; i < 1000; i++) {
i                 311 dev/ic/pcf8584.c 	int		i;
i                 313 dev/ic/pcf8584.c 	for (i = 0; i < 1000; i++) {
i                 113 dev/ic/pckbc.c 	u_int i;
i                 115 dev/ic/pckbc.c 	for (i = 100000; i; i--)
i                 142 dev/ic/pckbc.c 	int i;
i                 146 dev/ic/pckbc.c 	for (i = 100000; i; i--) {
i                 417 dev/ic/pckbc.c 	int i;
i                 421 dev/ic/pckbc.c 	for (i = 0; i < NCMD; i++) {
i                 422 dev/ic/pckbc.c 		TAILQ_INSERT_TAIL(&q->freequeue, &(q->cmds[i]), next);
i                 570 dev/ic/pckbc.c 	int i, c = 0;
i                 578 dev/ic/pckbc.c 		for (i = 10; i; i--) { /* 1s ??? */
i                 617 dev/ic/pckbc.c 			i = 100; /* 10s ??? */
i                 619 dev/ic/pckbc.c 			i = 10; /* 1s ??? */
i                 620 dev/ic/pckbc.c 		while (i--) {
i                 675 dev/ic/pckbc.c 	int i;
i                 682 dev/ic/pckbc.c 		for (i = 0; i < cmd->cmdlen; i++)
i                 683 dev/ic/pckbc.c 			printf(" %02x", cmd->cmd[i]);
i                 307 dev/ic/pdqreg.h #define	PDQ_BITFIELD12(a, b, c, d, e, f, g, h, i, j, k, l)	\
i                 308 dev/ic/pdqreg.h 					l, k, j, i, h, g, f, e, d, c, b, a
i                 314 dev/ic/pdqreg.h #define	PDQ_BITFIELD12(a, b, c, d, e, f, g, h, i, j, k, l)	\
i                 315 dev/ic/pdqreg.h 					a, b, c, d, e, f, g, h, i, j, k, l
i                 234 dev/ic/pgt.c   #define	COUNT(i)							\
i                 235 dev/ic/pgt.c   	letoh32(sc->sc_cb->pcb_driver_curfrag[i]) -			\
i                 236 dev/ic/pgt.c   	letoh32(sc->sc_cb->pcb_device_curfrag[i])
i                 383 dev/ic/pgt.c   	unsigned int i;
i                 386 dev/ic/pgt.c   	i = 0;
i                 389 dev/ic/pgt.c   		pd->pd_fragnum = i;
i                 390 dev/ic/pgt.c   		pd->pd_fragp = &pqfrags[i];
i                 393 dev/ic/pgt.c   		i++;
i                 395 dev/ic/pgt.c   	sc->sc_freeq_count[pq] = i;
i                 402 dev/ic/pgt.c   		sc->sc_cb->pcb_driver_curfrag[pq] = htole32(i);
i                 708 dev/ic/pgt.c   	int i;
i                 718 dev/ic/pgt.c   	for (i = 0; i < PGT_QUEUE_COUNT; i++) {
i                 721 dev/ic/pgt.c   		qdirty = sc->sc_dirtyq_count[pqs[i]];
i                 722 dev/ic/pgt.c   		qfree = sc->sc_freeq_count[pqs[i]];
i                 727 dev/ic/pgt.c   		if (pgt_queue_is_rx(pqs[i])) {
i                 730 dev/ic/pgt.c   			data = pgt_queue_is_data(pqs[i]);
i                 735 dev/ic/pgt.c   			npend = pgt_queue_frags_pending(sc, pqs[i]);
i                 744 dev/ic/pgt.c   					    sc->sc_dev.dv_xname, pqs[i],
i                 750 dev/ic/pgt.c   				pgt_rxdone(sc, pqs[i]);
i                 752 dev/ic/pgt.c   			npend = pgt_queue_frags_pending(sc, pqs[i]);
i                 757 dev/ic/pgt.c   					    sc->sc_dev.dv_xname, pqs[i],
i                 767 dev/ic/pgt.c   				if (pgt_queue_is_data(pqs[i])) {
i                 773 dev/ic/pgt.c   					pgt_txdone(sc, pqs[i]);
i                1056 dev/ic/pgt.c   	int i;
i                1063 dev/ic/pgt.c   	for (i = 0; !shouldupdate && i < PGT_QUEUE_COUNT; i++) {
i                1064 dev/ic/pgt.c   		if (pgt_queue_is_tx(i))
i                1065 dev/ic/pgt.c   			shouldupdate = pgt_queue_frags_pending(sc, i);
i                1067 dev/ic/pgt.c   			shouldupdate = pgt_queue_frags_pending(sc, i) <
i                1068 dev/ic/pgt.c   			    sc->sc_freeq_count[i];
i                1086 dev/ic/pgt.c   	int i;
i                1093 dev/ic/pgt.c   	for (i = 0; allowed && i < PGT_QUEUE_COUNT; i++) {
i                1094 dev/ic/pgt.c   		if (pgt_queue_is_tx(i))
i                1095 dev/ic/pgt.c   			allowed = pgt_queue_frags_pending(sc, i) == 0;
i                1097 dev/ic/pgt.c   			allowed = pgt_queue_frags_pending(sc, i) >=
i                1098 dev/ic/pgt.c   			    sc->sc_freeq_count[i];
i                1663 dev/ic/pgt.c   	int error, i;
i                1709 dev/ic/pgt.c   	i = 0;
i                1720 dev/ic/pgt.c   		if (i != 9)
i                1725 dev/ic/pgt.c   	} while (i++ < 10);
i                1868 dev/ic/pgt.c   	unsigned int chan, i, j, firstchan = -1;
i                1912 dev/ic/pgt.c   	for (i = 0, j = letoh16(freqs->pof_count); i < j; i++) {
i                1913 dev/ic/pgt.c   		chan = ieee80211_mhz2ieee(letoh16(freqs->pof_freqlist_mhz[i]),
i                1923 dev/ic/pgt.c   		if (letoh16(freqs->pof_freqlist_mhz[i]) < 5000) {
i                1941 dev/ic/pgt.c   		    letoh16(freqs->pof_freqlist_mhz[i]);
i                1948 dev/ic/pgt.c   		    letoh16(freqs->pof_freqlist_mhz[i])));
i                1963 dev/ic/pgt.c   	for (i = 0; i < sizeof(rates) && rates[i] != 0; i++) {
i                1964 dev/ic/pgt.c   		switch (rates[i]) {
i                1972 dev/ic/pgt.c   				rs->rs_rates[rs->rs_nrates++] = rates[i];
i                1977 dev/ic/pgt.c   				rs->rs_rates[rs->rs_nrates++] = rates[i];
i                1981 dev/ic/pgt.c   				rs->rs_rates[rs->rs_nrates++] = rates[i];
i                1984 dev/ic/pgt.c   			rs->rs_rates[rs->rs_nrates++] = rates[i];
i                2265 dev/ic/pgt.c   	int maxscan, i, j, s, error = 0;
i                2317 dev/ic/pgt.c   		for (na->na_nodes = j = i = 0; i < maxscan &&
i                2319 dev/ic/pgt.c   		    i++) {
i                2327 dev/ic/pgt.c   			    i * WI_PRISM2_RES_SIZE);
i                2328 dev/ic/pgt.c   			pgt_obj_bss2scanres(sc, &pob->pob_bsslist[i],
i                2428 dev/ic/pgt.c   	unsigned int i, n;
i                2441 dev/ic/pgt.c   	for (i = 0; i < 16; i++) {
i                2442 dev/ic/pgt.c   		if (letoh16(pob->pob_rates) & (1 << i)) {
i                2443 dev/ic/pgt.c   			if (i > rs->rs_nrates)
i                2445 dev/ic/pgt.c   			ap.wi_srates[n++] = ap.wi_rate = rs->rs_rates[i];
i                2577 dev/ic/pgt.c   	unsigned int i;
i                2719 dev/ic/pgt.c   	for (i = 0; i < ic->ic_sup_rates[ic->ic_curmode].rs_nrates; i++) {
i                2720 dev/ic/pgt.c   		availrates[i] = ic->ic_sup_rates[ic->ic_curmode].rs_rates[i];
i                2721 dev/ic/pgt.c   		DPRINTF((" %d", availrates[i]));
i                2724 dev/ic/pgt.c   	availrates[i++] = 0;
i                2760 dev/ic/pgt.c   		SETOID(PGT_OID_RATES, &availrates, i);
i                2761 dev/ic/pgt.c   		SETOID(PGT_OID_EXTENDED_RATES, &availrates, i);
i                3046 dev/ic/pgt.c   	int i, error, nsegs;
i                3048 dev/ic/pgt.c   	for (i = 0; i < PGT_QUEUE_COUNT; i++) {
i                3049 dev/ic/pgt.c   		TAILQ_INIT(&sc->sc_freeq[i]);
i                3050 dev/ic/pgt.c   		TAILQ_INIT(&sc->sc_dirtyq[i]);
i                3170 dev/ic/pgt.c   	size_t i, qsize;
i                3200 dev/ic/pgt.c   	for (i = 0; i < qsize; i++) {
i                3216 dev/ic/pgt.c   			    sc->sc_dev.dv_xname, i, pq);
i                3225 dev/ic/pgt.c   			    sc->sc_dev.dv_xname, i, pq);
i                3235 dev/ic/pgt.c   				    sc->sc_dev.dv_xname, i, pq);
i                 248 dev/ic/re.c    	int	d, i;
i                 256 dev/ic/re.c    	for (i = 1 << (sc->rl_eewidth + 3); i; i >>= 1) {
i                 257 dev/ic/re.c    		if (d & i)
i                 275 dev/ic/re.c    	int		i;
i                 286 dev/ic/re.c    	for (i = 0x8000; i; i >>= 1) {
i                 290 dev/ic/re.c    			word |= i;
i                 304 dev/ic/re.c    	int		i;
i                 311 dev/ic/re.c    	for (i = 0; i < cnt; i++) {
i                 313 dev/ic/re.c    		re_eeprom_getword(sc, off + i, &word);
i                 315 dev/ic/re.c    		ptr = (u_int16_t *)(dest + (i * 2));
i                 327 dev/ic/re.c    	int		i;
i                 342 dev/ic/re.c    	for (i = 0; i < RL_TIMEOUT; i++) {
i                 349 dev/ic/re.c    	if (i == RL_TIMEOUT) {
i                 362 dev/ic/re.c    	int		i;
i                 368 dev/ic/re.c    	for (i = 0; i < RL_TIMEOUT; i++) {
i                 375 dev/ic/re.c    	if (i == RL_TIMEOUT)
i                 598 dev/ic/re.c    	int	i;
i                 602 dev/ic/re.c    	for (i = 0; i < RL_TIMEOUT; i++) {
i                 607 dev/ic/re.c    	if (i == RL_TIMEOUT)
i                 646 dev/ic/re.c    	int			total_len, i, s, error = 0, phyaddr;
i                 678 dev/ic/re.c    	for (i = 0; i < RL_TIMEOUT; i++) {
i                 715 dev/ic/re.c    	for (i = 0; i < RL_TIMEOUT; i++) {
i                 723 dev/ic/re.c    	if (i == RL_TIMEOUT) {
i                 821 dev/ic/re.c    	int		error = 0, i;
i                 838 dev/ic/re.c    	for (i = 0; i < ETHER_ADDR_LEN / 2; i++)
i                 839 dev/ic/re.c    		as[i] = letoh16(as[i]);
i                 935 dev/ic/re.c    	for (i = 0; i < RL_TX_QLEN; i++) {
i                 939 dev/ic/re.c    		    0, 0, &sc->rl_ldata.rl_txq[i].txq_dmamap);
i                 985 dev/ic/re.c            for (i = 0; i < RL_RX_DESC_CNT; i++) {
i                 987 dev/ic/re.c                        0, 0, &sc->rl_ldata.rl_rxsoft[i].rxs_dmamap);
i                1063 dev/ic/re.c    	for (i = 0; i < RL_RX_DESC_CNT; i++) {
i                1064 dev/ic/re.c    		if (sc->rl_ldata.rl_rxsoft[i].rxs_dmamap != NULL)
i                1066 dev/ic/re.c    			    sc->rl_ldata.rl_rxsoft[i].rxs_dmamap);
i                1082 dev/ic/re.c    	for (i = 0; i < RL_TX_QLEN; i++) {
i                1083 dev/ic/re.c    		if (sc->rl_ldata.rl_txq[i].txq_dmamap != NULL)
i                1085 dev/ic/re.c    			    sc->rl_ldata.rl_txq[i].txq_dmamap);
i                1180 dev/ic/re.c    	int i;
i                1183 dev/ic/re.c    	for (i = 0; i < RL_TX_QLEN; i++) {
i                1184 dev/ic/re.c    		sc->rl_ldata.rl_txq[i].txq_mbuf = NULL;
i                1202 dev/ic/re.c    	int	i;
i                1206 dev/ic/re.c    	for (i = 0; i < RL_RX_DESC_CNT; i++) {
i                1207 dev/ic/re.c    		if (re_newbuf(sc, i, NULL) == ENOBUFS)
i                1227 dev/ic/re.c    	int		i, total_len;
i                1234 dev/ic/re.c    	for (i = sc->rl_ldata.rl_rx_prodidx;; i = RL_NEXT_RX_DESC(sc, i)) {
i                1235 dev/ic/re.c    		cur_rx = &sc->rl_ldata.rl_rx_list[i];
i                1236 dev/ic/re.c    		RL_RXDESCSYNC(sc, i,
i                1239 dev/ic/re.c    		RL_RXDESCSYNC(sc, i, BUS_DMASYNC_PREREAD);
i                1243 dev/ic/re.c    		rxs = &sc->rl_ldata.rl_rxsoft[i];
i                1262 dev/ic/re.c    			re_newbuf(sc, i, NULL);
i                1300 dev/ic/re.c    			re_newbuf(sc, i, m);
i                1309 dev/ic/re.c    		if (re_newbuf(sc, i, NULL)) {
i                1315 dev/ic/re.c    			re_newbuf(sc, i, m);
i                1369 dev/ic/re.c    	sc->rl_ldata.rl_rx_prodidx = i;
i                2078 dev/ic/re.c    	int	i;
i                2100 dev/ic/re.c    	for (i = 0; i < RL_TX_QLEN; i++) {
i                2101 dev/ic/re.c    		if (sc->rl_ldata.rl_txq[i].txq_mbuf != NULL) {
i                2103 dev/ic/re.c    			    sc->rl_ldata.rl_txq[i].txq_dmamap);
i                2104 dev/ic/re.c    			m_freem(sc->rl_ldata.rl_txq[i].txq_mbuf);
i                2105 dev/ic/re.c    			sc->rl_ldata.rl_txq[i].txq_mbuf = NULL;
i                2110 dev/ic/re.c    	for (i = 0; i < RL_RX_DESC_CNT; i++) {
i                2111 dev/ic/re.c    		if (sc->rl_ldata.rl_rxsoft[i].rxs_mbuf != NULL) {
i                2113 dev/ic/re.c    			    sc->rl_ldata.rl_rxsoft[i].rxs_dmamap);
i                2114 dev/ic/re.c    			m_freem(sc->rl_ldata.rl_rxsoft[i].rxs_mbuf);
i                2115 dev/ic/re.c    			sc->rl_ldata.rl_rxsoft[i].rxs_mbuf = NULL;
i                  87 dev/ic/rln.c   	int		i;
i                 110 dev/ic/rln.c   	for (i = 0; i < RLN_NMBOX; i++)
i                 111 dev/ic/rln.c   		sc->sc_mbox[i].mb_state = RLNMBOX_VOID;
i                 932 dev/ic/rln.c   	int i;
i                 944 dev/ic/rln.c   	for (i = verlen - 1; i >= 0 && ver[i] <= ' '; i--)
i                 945 dev/ic/rln.c   		ver[i] = '\0';
i                1198 dev/ic/rln.c           int i;
i                1210 dev/ic/rln.c           for (i = 0; i < len; i++) {
i                1212 dev/ic/rln.c                   key *= userkey[i];
i                  82 dev/ic/rlnsubr.c 	int		i;
i                 116 dev/ic/rlnsubr.c 	for (i = 0; i < 200 * 10; i++) {	/* Proxim says 200. */
i                 121 dev/ic/rlnsubr.c 	dprintf(" (%dms)", i);
i                 177 dev/ic/rlnsubr.c 	int			i;
i                 198 dev/ic/rlnsubr.c 			for (i = 0; i < 9; i++) {
i                 230 dev/ic/rlnsubr.c 	int			i;
i                 243 dev/ic/rlnsubr.c 		for (i = 0; i < 600; i++) {
i                 251 dev/ic/rlnsubr.c 		dprintf(" %dms", i);
i                 261 dev/ic/rlnsubr.c 		for (i = 0; i < 6800; i++) {
i                 268 dev/ic/rlnsubr.c 		dprintf(" %dms", i);
i                 273 dev/ic/rlnsubr.c 			for (i = 0; i < 600; i++) {
i                 281 dev/ic/rlnsubr.c 			dprintf(" %dms", i);
i                 323 dev/ic/rlnsubr.c 	int		i;
i                 329 dev/ic/rlnsubr.c 	for (i = 0; i < 600; i++) {
i                 363 dev/ic/rlnsubr.c 	int			i;
i                 372 dev/ic/rlnsubr.c 	for (i = 0; i < timeo; i++) {
i                 381 dev/ic/rlnsubr.c 	dprintf(" (%dms)",i);
i                 396 dev/ic/rlnsubr.c 		for (i = 0; i < 600; i++) {
i                 494 dev/ic/rlnsubr.c 	int			i;
i                 501 dev/ic/rlnsubr.c 	for (i = 0; i < 600; i++) {
i                 828 dev/ic/rlnsubr.c 	int			i;
i                 854 dev/ic/rlnsubr.c 		i = 0;
i                 855 dev/ic/rlnsubr.c 		while (mb->mb_state == RLNMBOX_EMPTY && i < timeo) {
i                 857 dev/ic/rlnsubr.c 			i++;
i                 859 dev/ic/rlnsubr.c 		if (i)
i                 860 dev/ic/rlnsubr.c 			dprintf(" %dms", i);
i                 179 dev/ic/rt2560.c 	int error, i;
i                 252 dev/ic/rt2560.c 	for (i = 1; i <= 14; i++) {
i                 253 dev/ic/rt2560.c 		ic->ic_channels[i].ic_freq =
i                 254 dev/ic/rt2560.c 		    ieee80211_ieee2mhz(i, IEEE80211_CHAN_2GHZ);
i                 255 dev/ic/rt2560.c 		ic->ic_channels[i].ic_flags =
i                 345 dev/ic/rt2560.c 	int i, nsegs, error;
i                 398 dev/ic/rt2560.c 	for (i = 0; i < count; i++) {
i                 401 dev/ic/rt2560.c 		    &ring->data[i].map);
i                 418 dev/ic/rt2560.c 	int i;
i                 420 dev/ic/rt2560.c 	for (i = 0; i < ring->count; i++) {
i                 421 dev/ic/rt2560.c 		struct rt2560_tx_desc *desc = &ring->desc[i];
i                 422 dev/ic/rt2560.c 		struct rt2560_tx_data *data = &ring->data[i];
i                 452 dev/ic/rt2560.c 	int i;
i                 464 dev/ic/rt2560.c 		for (i = 0; i < ring->count; i++) {
i                 465 dev/ic/rt2560.c 			struct rt2560_tx_data *data = &ring->data[i];
i                 492 dev/ic/rt2560.c 	int i, nsegs, error;
i                 547 dev/ic/rt2560.c 	for (i = 0; i < count; i++) {
i                 548 dev/ic/rt2560.c 		struct rt2560_rx_desc *desc = &sc->rxq.desc[i];
i                 549 dev/ic/rt2560.c 		struct rt2560_rx_data *data = &sc->rxq.data[i];
i                 598 dev/ic/rt2560.c 	int i;
i                 600 dev/ic/rt2560.c 	for (i = 0; i < ring->count; i++) {
i                 601 dev/ic/rt2560.c 		ring->desc[i].flags = htole32(RT2560_RX_BUSY);
i                 602 dev/ic/rt2560.c 		ring->data[i].drop = 0;
i                 615 dev/ic/rt2560.c 	int i;
i                 627 dev/ic/rt2560.c 		for (i = 0; i < ring->count; i++) {
i                 628 dev/ic/rt2560.c 			struct rt2560_rx_data *data = &ring->data[i];
i                 722 dev/ic/rt2560.c 	int i;
i                 727 dev/ic/rt2560.c 	for (i = ni->ni_rates.rs_nrates - 1;
i                 728 dev/ic/rt2560.c 	     i > 0 && (ni->ni_rates.rs_rates[i] & IEEE80211_RATE_VAL) > 72;
i                 729 dev/ic/rt2560.c 	     i--);
i                 730 dev/ic/rt2560.c 	ni->ni_txrate = i;
i                2523 dev/ic/rt2560.c 	int i;
i                2534 dev/ic/rt2560.c 	for (i = 0; i < 16; i++) {
i                2535 dev/ic/rt2560.c 		val = rt2560_eeprom_read(sc, RT2560_EEPROM_BBP_BASE + i);
i                2536 dev/ic/rt2560.c 		sc->bbp_prom[i].reg = val >> 8;
i                2537 dev/ic/rt2560.c 		sc->bbp_prom[i].val = val & 0xff;
i                2541 dev/ic/rt2560.c 	for (i = 0; i < 14 / 2; i++) {
i                2542 dev/ic/rt2560.c 		val = rt2560_eeprom_read(sc, RT2560_EEPROM_TXPOWER + i);
i                2543 dev/ic/rt2560.c 		sc->txpow[i * 2] = val >> 8;
i                2544 dev/ic/rt2560.c 		sc->txpow[i * 2 + 1] = val & 0xff;
i                2552 dev/ic/rt2560.c 	int i, ntries;
i                2566 dev/ic/rt2560.c 	for (i = 0; i < N(rt2560_def_bbp); i++) {
i                2567 dev/ic/rt2560.c 		rt2560_bbp_write(sc, rt2560_def_bbp[i].reg,
i                2568 dev/ic/rt2560.c 		    rt2560_def_bbp[i].val);
i                2572 dev/ic/rt2560.c 	for (i = 0; i < 16; i++) {
i                2573 dev/ic/rt2560.c 		if (sc->bbp_prom[i].reg == 0xff)
i                2575 dev/ic/rt2560.c 		rt2560_bbp_write(sc, sc->bbp_prom[i].reg, sc->bbp_prom[i].val);
i                2590 dev/ic/rt2560.c 	int i;
i                2624 dev/ic/rt2560.c 	for (i = 0; i < N(rt2560_def_mac); i++)
i                2625 dev/ic/rt2560.c 		RAL_WRITE(sc, rt2560_def_mac[i].reg, rt2560_def_mac[i].val);
i                 189 dev/ic/rt2661.c 	int error, ac, i, ntries;
i                 264 dev/ic/rt2661.c 		for (i = 36; i <= 64; i += 4) {
i                 265 dev/ic/rt2661.c 			ic->ic_channels[i].ic_freq =
i                 266 dev/ic/rt2661.c 			    ieee80211_ieee2mhz(i, IEEE80211_CHAN_5GHZ);
i                 267 dev/ic/rt2661.c 			ic->ic_channels[i].ic_flags = IEEE80211_CHAN_A;
i                 269 dev/ic/rt2661.c 		for (i = 100; i <= 140; i += 4) {
i                 270 dev/ic/rt2661.c 			ic->ic_channels[i].ic_freq =
i                 271 dev/ic/rt2661.c 			    ieee80211_ieee2mhz(i, IEEE80211_CHAN_5GHZ);
i                 272 dev/ic/rt2661.c 			ic->ic_channels[i].ic_flags = IEEE80211_CHAN_A;
i                 274 dev/ic/rt2661.c 		for (i = 149; i <= 165; i += 4) {
i                 275 dev/ic/rt2661.c 			ic->ic_channels[i].ic_freq =
i                 276 dev/ic/rt2661.c 			    ieee80211_ieee2mhz(i, IEEE80211_CHAN_5GHZ);
i                 277 dev/ic/rt2661.c 			ic->ic_channels[i].ic_flags = IEEE80211_CHAN_A;
i                 286 dev/ic/rt2661.c 	for (i = 1; i <= 14; i++) {
i                 287 dev/ic/rt2661.c 		ic->ic_channels[i].ic_freq =
i                 288 dev/ic/rt2661.c 		    ieee80211_ieee2mhz(i, IEEE80211_CHAN_2GHZ);
i                 289 dev/ic/rt2661.c 		ic->ic_channels[i].ic_flags =
i                 379 dev/ic/rt2661.c 	int i, nsegs, error;
i                 431 dev/ic/rt2661.c 	for (i = 0; i < count; i++) {
i                 434 dev/ic/rt2661.c 		    &ring->data[i].map);
i                 451 dev/ic/rt2661.c 	int i;
i                 453 dev/ic/rt2661.c 	for (i = 0; i < ring->count; i++) {
i                 454 dev/ic/rt2661.c 		struct rt2661_tx_desc *desc = &ring->desc[i];
i                 455 dev/ic/rt2661.c 		struct rt2661_tx_data *data = &ring->data[i];
i                 484 dev/ic/rt2661.c 	int i;
i                 496 dev/ic/rt2661.c 		for (i = 0; i < ring->count; i++) {
i                 497 dev/ic/rt2661.c 			struct rt2661_tx_data *data = &ring->data[i];
i                 523 dev/ic/rt2661.c 	int i, nsegs, error;
i                 577 dev/ic/rt2661.c 	for (i = 0; i < count; i++) {
i                 578 dev/ic/rt2661.c 		struct rt2661_rx_desc *desc = &sc->rxq.desc[i];
i                 579 dev/ic/rt2661.c 		struct rt2661_rx_data *data = &sc->rxq.data[i];
i                 628 dev/ic/rt2661.c 	int i;
i                 630 dev/ic/rt2661.c 	for (i = 0; i < ring->count; i++)
i                 631 dev/ic/rt2661.c 		ring->desc[i].flags = htole32(RT2661_RX_BUSY);
i                 642 dev/ic/rt2661.c 	int i;
i                 654 dev/ic/rt2661.c 		for (i = 0; i < ring->count; i++) {
i                 655 dev/ic/rt2661.c 			struct rt2661_rx_data *data = &ring->data[i];
i                 757 dev/ic/rt2661.c 	int i;
i                 762 dev/ic/rt2661.c 	for (i = ni->ni_rates.rs_nrates - 1;
i                 763 dev/ic/rt2661.c 	     i > 0 && (ni->ni_rates.rs_rates[i] & IEEE80211_RATE_VAL) > 72;
i                 764 dev/ic/rt2661.c 	     i--);
i                 765 dev/ic/rt2661.c 	ni->ni_txrate = i;
i                1390 dev/ic/rt2661.c 	int i, remainder;
i                1438 dev/ic/rt2661.c 	for (i = 0; i < nsegs; i++) {
i                1439 dev/ic/rt2661.c 		desc->addr[i] = htole32(segs[i].ds_addr);
i                1440 dev/ic/rt2661.c 		desc->len [i] = htole16(segs[i].ds_len);
i                2149 dev/ic/rt2661.c 	u_int i, chan;
i                2159 dev/ic/rt2661.c 	for (i = 0; rfprog[i].chan != chan; i++);
i                2161 dev/ic/rt2661.c 	power = sc->txpow[i];
i                2180 dev/ic/rt2661.c 	rt2661_rf_write(sc, RAL_RF1, rfprog[i].r1);
i                2181 dev/ic/rt2661.c 	rt2661_rf_write(sc, RAL_RF2, rfprog[i].r2);
i                2182 dev/ic/rt2661.c 	rt2661_rf_write(sc, RAL_RF3, rfprog[i].r3 | power << 7);
i                2183 dev/ic/rt2661.c 	rt2661_rf_write(sc, RAL_RF4, rfprog[i].r4 | sc->rffreq << 10);
i                2187 dev/ic/rt2661.c 	rt2661_rf_write(sc, RAL_RF1, rfprog[i].r1);
i                2188 dev/ic/rt2661.c 	rt2661_rf_write(sc, RAL_RF2, rfprog[i].r2);
i                2189 dev/ic/rt2661.c 	rt2661_rf_write(sc, RAL_RF3, rfprog[i].r3 | power << 7 | 1);
i                2190 dev/ic/rt2661.c 	rt2661_rf_write(sc, RAL_RF4, rfprog[i].r4 | sc->rffreq << 10);
i                2194 dev/ic/rt2661.c 	rt2661_rf_write(sc, RAL_RF1, rfprog[i].r1);
i                2195 dev/ic/rt2661.c 	rt2661_rf_write(sc, RAL_RF2, rfprog[i].r2);
i                2196 dev/ic/rt2661.c 	rt2661_rf_write(sc, RAL_RF3, rfprog[i].r3 | power << 7);
i                2197 dev/ic/rt2661.c 	rt2661_rf_write(sc, RAL_RF4, rfprog[i].r4 | sc->rffreq << 10);
i                2307 dev/ic/rt2661.c 	int i;
i                2365 dev/ic/rt2661.c 	for (i = 0; i < 19; i++) {
i                2366 dev/ic/rt2661.c 		val = rt2661_eeprom_read(sc, RT2661_EEPROM_TXPOWER + i);
i                2367 dev/ic/rt2661.c 		sc->txpow[i * 2] = (int8_t)(val >> 8);		/* signed */
i                2369 dev/ic/rt2661.c 		    rt2661_rf5225_1[i * 2].chan, sc->txpow[i * 2]));
i                2370 dev/ic/rt2661.c 		sc->txpow[i * 2 + 1] = (int8_t)(val & 0xff);	/* signed */
i                2372 dev/ic/rt2661.c 		    rt2661_rf5225_1[i * 2 + 1].chan, sc->txpow[i * 2 + 1]));
i                2376 dev/ic/rt2661.c 	for (i = 0; i < 16; i++) {
i                2377 dev/ic/rt2661.c 		val = rt2661_eeprom_read(sc, RT2661_EEPROM_BBP_BASE + i);
i                2380 dev/ic/rt2661.c 		sc->bbp_prom[i].reg = val >> 8;
i                2381 dev/ic/rt2661.c 		sc->bbp_prom[i].val = val & 0xff;
i                2382 dev/ic/rt2661.c 		DPRINTF(("BBP R%d=%02x\n", sc->bbp_prom[i].reg,
i                2383 dev/ic/rt2661.c 		    sc->bbp_prom[i].val));
i                2391 dev/ic/rt2661.c 	int i, ntries;
i                2406 dev/ic/rt2661.c 	for (i = 0; i < N(rt2661_def_bbp); i++) {
i                2407 dev/ic/rt2661.c 		rt2661_bbp_write(sc, rt2661_def_bbp[i].reg,
i                2408 dev/ic/rt2661.c 		    rt2661_def_bbp[i].val);
i                2412 dev/ic/rt2661.c 	for (i = 0; i < 16; i++) {
i                2413 dev/ic/rt2661.c 		if (sc->bbp_prom[i].reg == 0)
i                2415 dev/ic/rt2661.c 		rt2661_bbp_write(sc, sc->bbp_prom[i].reg, sc->bbp_prom[i].val);
i                2432 dev/ic/rt2661.c 	int i, ntries;
i                2518 dev/ic/rt2661.c 	for (i = 0; i < N(rt2661_def_mac); i++)
i                2519 dev/ic/rt2661.c 		RAL_WRITE(sc, rt2661_def_mac[i].reg, rt2661_def_mac[i].val);
i                 181 dev/ic/rtl80x9.c 	int i, defmedia;
i                 214 dev/ic/rtl80x9.c 	for (i = 0; i < rtl80x9_nmedia; i++)
i                 215 dev/ic/rtl80x9.c 		ifmedia_add(&sc->sc_media, rtl80x9_media[i], 0, NULL);
i                 180 dev/ic/rtl81x9.c 	register int		d, i;
i                 187 dev/ic/rtl81x9.c 	for (i = RL_EECMD_LEN + addr_len; i; i--) {
i                 188 dev/ic/rtl81x9.c 		if (d & (1 << (i - 1)))
i                 209 dev/ic/rtl81x9.c 	register int		i;
i                 225 dev/ic/rtl81x9.c 	for (i = 16; i > 0; i--) {
i                 229 dev/ic/rtl81x9.c 			word |= 1 << (i - 1);
i                 251 dev/ic/rtl81x9.c 	int			i;
i                 254 dev/ic/rtl81x9.c 	for (i = 0; i < cnt; i++) {
i                 255 dev/ic/rtl81x9.c 		rl_eeprom_getword(sc, off + i, addr_len, &word);
i                 256 dev/ic/rtl81x9.c 		ptr = (u_int16_t *)(dest + (i * 2));
i                 284 dev/ic/rtl81x9.c 	register int		i;
i                 288 dev/ic/rtl81x9.c 	for (i = 0; i < 32; i++) {
i                 304 dev/ic/rtl81x9.c 	int			i;
i                 308 dev/ic/rtl81x9.c 	for (i = (0x1 << (cnt - 1)); i; i >>= 1) {
i                 309 dev/ic/rtl81x9.c 		if (bits & i)
i                 327 dev/ic/rtl81x9.c 	int			i, ack, s;
i                 377 dev/ic/rtl81x9.c 		for(i = 0; i < 16; i++) {
i                 386 dev/ic/rtl81x9.c 	for (i = 0x8000; i; i >>= 1) {
i                 391 dev/ic/rtl81x9.c 				frame->mii_data |= i;
i                 523 dev/ic/rtl81x9.c 	register int		i;
i                 527 dev/ic/rtl81x9.c 	for (i = 0; i < RL_TIMEOUT; i++) {
i                 532 dev/ic/rtl81x9.c 	if (i == RL_TIMEOUT)
i                 545 dev/ic/rtl81x9.c 	int			i;
i                 548 dev/ic/rtl81x9.c 	for (i = 0; i < RL_TX_LIST_CNT; i++) {
i                 549 dev/ic/rtl81x9.c 		cd->rl_tx_chain[i] = NULL;
i                 551 dev/ic/rtl81x9.c 		    RL_TXADDR0 + (i * sizeof(u_int32_t)), 0x0000000);
i                1185 dev/ic/rtl81x9.c 	register int		i;
i                1201 dev/ic/rtl81x9.c 	for (i = 0; i < RL_TX_LIST_CNT; i++) {
i                1202 dev/ic/rtl81x9.c 		if (sc->rl_cdata.rl_tx_chain[i] != NULL) {
i                1204 dev/ic/rtl81x9.c 			    sc->rl_cdata.rl_tx_dmamap[i], 0,
i                1205 dev/ic/rtl81x9.c 			    sc->rl_cdata.rl_tx_dmamap[i]->dm_mapsize,
i                1208 dev/ic/rtl81x9.c 			    sc->rl_cdata.rl_tx_dmamap[i]);
i                1209 dev/ic/rtl81x9.c 			m_freem(sc->rl_cdata.rl_tx_chain[i]);
i                1210 dev/ic/rtl81x9.c 			sc->rl_cdata.rl_tx_chain[i] = NULL;
i                1211 dev/ic/rtl81x9.c 			CSR_WRITE_4(sc, RL_TXADDR0 + (i * sizeof(u_int32_t)),
i                1222 dev/ic/rtl81x9.c 	int rseg, i;
i                1293 dev/ic/rtl81x9.c 	for (i = 0; i < RL_TX_LIST_CNT; i++) {
i                1295 dev/ic/rtl81x9.c 		    BUS_DMA_NOWAIT, &sc->rl_cdata.rl_tx_dmamap[i]) != 0) {
i                 427 dev/ic/rtw.c   	int i;
i                 433 dev/ic/rtw.c   	for (i = 0; i < 1000; i++) {
i                 436 dev/ic/rtw.c   			    ("%s: reset in %dus\n", dvname, i));
i                 466 dev/ic/rtw.c   	int i;
i                 476 dev/ic/rtw.c   	for (i = 0; i < 50; i++) {
i                 480 dev/ic/rtw.c   			    ("%s: recall EEPROM in %dus\n", dvname, i * 200));
i                 487 dev/ic/rtw.c   	printf("\n%s: could not recall EEPROM in %dus\n", dvname, i * 200);
i                 515 dev/ic/rtw.c   	int i, rc = 0;
i                 516 dev/ic/rtw.c   	for (i = 0; i < ndescs; i++) {
i                 518 dev/ic/rtw.c   		    0, 0, &descs[i].ts_dmamap);
i                 529 dev/ic/rtw.c   	int i, rc = 0;
i                 530 dev/ic/rtw.c   	for (i = 0; i < ndescs; i++) {
i                 532 dev/ic/rtw.c   		    &descs[i].rs_dmamap);
i                 543 dev/ic/rtw.c   	int i;
i                 544 dev/ic/rtw.c   	for (i = 0; i < ndescs; i++) {
i                 545 dev/ic/rtw.c   		if (descs[i].rs_dmamap != NULL)
i                 546 dev/ic/rtw.c   			bus_dmamap_destroy(dmat, descs[i].rs_dmamap);
i                 554 dev/ic/rtw.c   	int i;
i                 555 dev/ic/rtw.c   	for (i = 0; i < ndescs; i++) {
i                 556 dev/ic/rtw.c   		if (descs[i].ts_dmamap != NULL)
i                 557 dev/ic/rtw.c   			bus_dmamap_destroy(dmat, descs[i].ts_dmamap);
i                 564 dev/ic/rtw.c   	int i;
i                 591 dev/ic/rtw.c   	for (i = 0; i < IEEE80211_ADDR_LEN; i++)
i                 592 dev/ic/rtw.c   		mac[i] = RTW_SR_GET(sr, RTW_SR_MAC + i);
i                 712 dev/ic/rtw.c   		int i;
i                 715 dev/ic/rtw.c   		for (i = 0; i < sr->sr_size/2; i++) {
i                 716 dev/ic/rtw.c   			if (((i % 8) == 0) && (i != 0))
i                 719 dev/ic/rtw.c   			    (" %04x", sr->sr_content[i]));
i                 769 dev/ic/rtw.c   	int i;
i                 780 dev/ic/rtw.c   		for (i = 1; i <= 11; i++)
i                 781 dev/ic/rtw.c   			ADD_CHANNEL(chans, i);
i                 786 dev/ic/rtw.c   		for (i = 1; i <= 14; i++)
i                 787 dev/ic/rtw.c   			ADD_CHANNEL(chans, i);
i                 791 dev/ic/rtw.c   		for (i = 1; i <= 13; i++)
i                 792 dev/ic/rtw.c   			ADD_CHANNEL(chans, i);
i                 796 dev/ic/rtw.c   		for (i = 10; i <= 11; i++)
i                 797 dev/ic/rtw.c   			ADD_CHANNEL(chans, i);
i                 904 dev/ic/rtw.c   	int i;
i                 909 dev/ic/rtw.c   	for (i = 0; i < tsb->tsb_ndesc; i++) {
i                 910 dev/ic/rtw.c   		ts = &tsb->tsb_desc[i];
i                 971 dev/ic/rtw.c   	int i;
i                 974 dev/ic/rtw.c   	for (i = 0; i < RTW_RXQLEN; i++) {
i                 975 dev/ic/rtw.c   		rs = &desc[i];
i                1024 dev/ic/rtw.c   	int i, rc = 0;
i                1027 dev/ic/rtw.c   	for (i = 0; i < RTW_RXQLEN; i++) {
i                1028 dev/ic/rtw.c   		rs = &desc[i];
i                1032 dev/ic/rtw.c   		if (i == rtw_rxbufs_limit) {
i                1033 dev/ic/rtw.c   			printf("%s: TEST hit %d-buffer limit\n", dvname, i);
i                1040 dev/ic/rtw.c   			    "rc %d\n", dvname, i, rc);
i                1044 dev/ic/rtw.c   	*ndesc = i;
i                1088 dev/ic/rtw.c   	int i;
i                1092 dev/ic/rtw.c   	for (i = 0; i < rdb->rdb_ndesc; i++) {
i                1093 dev/ic/rtw.c   		rd = &rdb->rdb_desc[i];
i                1094 dev/ic/rtw.c   		rs = &ctl[i];
i                1095 dev/ic/rtw.c   		rtw_rxdesc_init(rdb, rs, i, kick);
i                1469 dev/ic/rtw.c   			int i;
i                1470 dev/ic/rtw.c   			for (i = ts->ts_first; ; i = RTW_NEXT_IDX(tdb, i)) {
i                1471 dev/ic/rtw.c   				tdb->tdb_desc[i].td_stat &=
i                1473 dev/ic/rtw.c   				if (i == ts->ts_last)
i                1672 dev/ic/rtw.c   	int i;
i                1675 dev/ic/rtw.c   	for (i = 0; i < tdb->tdb_ndesc; i++)
i                1676 dev/ic/rtw.c   		tdb->tdb_desc[i].td_next = htole32(RTW_NEXT_DESC(tdb, i));
i                1833 dev/ic/rtw.c   	int i;
i                1850 dev/ic/rtw.c   	for (i = 0; i < 10; i++) {
i                2861 dev/ic/rtw.c   	int i;
i                2862 dev/ic/rtw.c   	for (i = 0; i < dmamap->dm_nsegs; i++) {
i                2863 dev/ic/rtw.c   		if (dmamap->dm_segs[i].ds_len < 4) {
i                3117 dev/ic/rtw.c   	int desc, i, lastdesc, npkt, rate;
i                3268 dev/ic/rtw.c   		for (i = 0, lastdesc = desc = ts->ts_first;
i                3269 dev/ic/rtw.c   		     i < dmamap->dm_nsegs;
i                3270 dev/ic/rtw.c   		     i++, desc = RTW_NEXT_IDX(tdb, desc)) {
i                3271 dev/ic/rtw.c   			if (dmamap->dm_segs[i].ds_len > RTW_TXLEN_LENGTH_MASK) {
i                3278 dev/ic/rtw.c   			if (i != 0)
i                3281 dev/ic/rtw.c   			td->td_buf = htole32(dmamap->dm_segs[i].ds_addr);
i                3282 dev/ic/rtw.c   			td->td_len = htole32(dmamap->dm_segs[i].ds_len);
i                3426 dev/ic/rtw.c   	int i;
i                3429 dev/ic/rtw.c   	for (i = 0; i < IEEE80211_ADDR_LEN; i++)
i                3430 dev/ic/rtw.c   		RTW_WRITE8(regs, RTW_BSSID + i, bssid[i]);
i                4455 dev/ic/rtw.c   	int i, rc;
i                4458 dev/ic/rtw.c   	for (i = 0; i < 2; i++) {
i                4791 dev/ic/rtw.c   	int i;
i                4809 dev/ic/rtw.c   	for (i = BBP_WRITE_ITERS; --i >= 0; ) {
i                4820 dev/ic/rtw.c   			    BBP_WRITE_DELAY * (BBP_WRITE_ITERS - i)));
i                4834 dev/ic/rtw.c   	int i;
i                4852 dev/ic/rtw.c   	for (i = 0; i < nbits; i++) {
i                4889 dev/ic/rtw.c   	int i;
i                4917 dev/ic/rtw.c   	for (i = 0; i < nbits; i++) {
i                4954 dev/ic/rtw.c   	int i;
i                4962 dev/ic/rtw.c   	for (i = rtw_macbangbits_timeout; --i >= 0; delay(1)) {
i                4967 dev/ic/rtw.c   			    rtw_macbangbits_timeout - i));
i                 252 dev/ic/rtwvar.h #define RTW_DESC_OFFSET(ring, i)	offsetof(struct rtw_descs, ring[i])
i                 402 dev/ic/sili.c  	int				i;
i                 408 dev/ic/sili.c  	for (i = 0; i < sc->sc_nports; i++) {
i                 409 dev/ic/sili.c  		sp = &sc->sc_ports[i];
i                 414 dev/ic/sili.c  		    DEVNAME(sc), i);
i                 417 dev/ic/sili.c  		    SILI_PORT_OFFSET(i), SILI_PORT_SIZE, &sp->sp_ioh) != 0) {
i                 419 dev/ic/sili.c  			    "for port %d\n", DEVNAME(sc), i);
i                 437 dev/ic/sili.c  	int				i;
i                 439 dev/ic/sili.c  	for (i = 0; i < sc->sc_nports; i++) {
i                 440 dev/ic/sili.c  		sp = &sc->sc_ports[i];
i                 457 dev/ic/sili.c  	int				i;
i                 475 dev/ic/sili.c  	for (i = 0; i < SILI_MAX_CMDS; i++) {
i                 476 dev/ic/sili.c  		ccb = &sp->sp_ccbs[i];
i                 478 dev/ic/sili.c  		ccb->ccb_cmd = SILI_DMA_KVA(sp->sp_cmds) + i * SILI_CMD_LEN;
i                 479 dev/ic/sili.c  		ccb->ccb_cmd_dva = SILI_DMA_DVA(sp->sp_cmds) + i * SILI_CMD_LEN;
i                 488 dev/ic/sili.c  		ccb->ccb_xa.tag = i;
i                 909 dev/ic/sili.c  	int				i;
i                 924 dev/ic/sili.c  	for (i = 0; i < dmap->dm_nsegs; i++) {
i                 935 dev/ic/sili.c  			if ((dmap->dm_nsegs - i) > SILI_SGT_SGLLEN)
i                 943 dev/ic/sili.c  		addr = dmap->dm_segs[i].ds_addr;
i                 946 dev/ic/sili.c  		sgl->data_count = htole32(dmap->dm_segs[i].ds_len);
i                 233 dev/ic/siop.c  	int i, j;
i                 309 dev/ic/siop.c  	for (i = 0; i < sc->sc_c.sc_link.adapter_buswidth; i++) {
i                 311 dev/ic/siop.c  		if (sc->sc_c.targets[i] == NULL)
i                 315 dev/ic/siop.c  				sc->sc_c.sc_dev.dv_xname, i);
i                 317 dev/ic/siop.c  		target = (struct siop_target *)sc->sc_c.targets[i];
i                 322 dev/ic/siop.c  			    sc->sc_c.sc_dev.dv_xname, i);
i                 325 dev/ic/siop.c  		siop_add_reselsw(sc, i);
i                 877 dev/ic/siop.c  			int i;
i                 880 dev/ic/siop.c  			for (i = 3; i < 2 + siop_cmd->cmd_tables->msg_in[1];
i                 881 dev/ic/siop.c  			    i++)
i                 883 dev/ic/siop.c  				    siop_cmd->cmd_tables->msg_in[i]);
i                1367 dev/ic/siop.c  	int s, error, i, j;
i                1423 dev/ic/siop.c  		for (i=0; i < 8; i++)
i                1424 dev/ic/siop.c  			siop_target->siop_lun[i] = NULL;
i                1490 dev/ic/siop.c  	for(i = xs->timeout; i > 0; i--) {
i                1526 dev/ic/siop.c  	if (i == 0) {
i                1768 dev/ic/siop.c  	int i;
i                1769 dev/ic/siop.c  	for (i = 0; i < PAGE_SIZE / 4; i += 2) {
i                1770 dev/ic/siop.c  		printf("0x%04x: 0x%08x 0x%08x", i * 4,
i                1771 dev/ic/siop.c  		    siop_ctoh32(&sc->sc_c, sc->sc_c.sc_script[i]),
i                1772 dev/ic/siop.c  		    siop_ctoh32(&sc->sc_c, sc->sc_c.sc_script[i+1]));
i                1774 dev/ic/siop.c  		     sc->sc_c.sc_script[i]) & 0xe0000000) == 0xc0000000) {
i                1775 dev/ic/siop.c  			i++;
i                1777 dev/ic/siop.c  			    sc->sc_c.sc_script[i+1]));
i                1788 dev/ic/siop.c  	int error, off, i, j, s;
i                1846 dev/ic/siop.c  	for (i = 0; i < SIOP_NCMDPB; i++) {
i                1849 dev/ic/siop.c  		    &newcbd->cmds[i].cmd_c.dmamap_data);
i                1860 dev/ic/siop.c  	for (i = 0; i < SIOP_NCMDPB; i++) {
i                1861 dev/ic/siop.c  		newcbd->cmds[i].cmd_c.siop_sc = &sc->sc_c;
i                1862 dev/ic/siop.c  		newcbd->cmds[i].siop_cbdp = newcbd;
i                1863 dev/ic/siop.c  		xfer = &newcbd->xfers[i];
i                1864 dev/ic/siop.c  		newcbd->cmds[i].cmd_tables = (struct siop_common_xfer *)xfer;
i                1865 dev/ic/siop.c  		bzero(newcbd->cmds[i].cmd_tables, sizeof(struct siop_xfer));
i                1867 dev/ic/siop.c  		    i * sizeof(struct siop_xfer);
i                1868 dev/ic/siop.c  		newcbd->cmds[i].cmd_c.dsa = dsa;
i                1869 dev/ic/siop.c  		newcbd->cmds[i].cmd_c.status = CMDST_FREE;
i                1913 dev/ic/siop.c  		TAILQ_INSERT_TAIL(&sc->free_list, &newcbd->cmds[i], next);
i                1917 dev/ic/siop.c  		    "offset=0x%x\n", i,
i                1919 dev/ic/siop.c  			newcbd->cmds[i].cmd_tables->t_msgin.addr),
i                1921 dev/ic/siop.c  			newcbd->cmds[i].cmd_tables->t_msgout.addr),
i                1923 dev/ic/siop.c  			newcbd->cmds[i].cmd_tables->t_status.addr));
i                1947 dev/ic/siop.c  	int i;
i                1976 dev/ic/siop.c  		for (i = 0; i < sizeof(lun_switch) / sizeof(lun_switch[0]);
i                1977 dev/ic/siop.c  		    i++)
i                1978 dev/ic/siop.c  			sc->sc_c.sc_script[sc->script_free_lo + i] =
i                1979 dev/ic/siop.c  			    siop_htoc32(&sc->sc_c, lun_switch[i]);
i                1997 dev/ic/siop.c  	int i,j;
i                2006 dev/ic/siop.c  	for (i = 0; i < 15; i++) {
i                2007 dev/ic/siop.c  		siop_target->reseloff = Ent_resel_targ0 / 4 + i * 2;
i                2012 dev/ic/siop.c  			    target, i, siop_target->reseloff);
i                2024 dev/ic/siop.c  	if (i == 15) /* no free slot, shouldn't happen */
i                2028 dev/ic/siop.c  	for (i = 0; i < 8; i++) {
i                2029 dev/ic/siop.c  		siop_lun = siop_target->siop_lun[i];
i                2036 dev/ic/siop.c  			siop_add_dev(sc, target, i);
i                2070 dev/ic/siop.c  	int i, ntargets;
i                2134 dev/ic/siop.c  			for(i = 0;
i                2135 dev/ic/siop.c  			    i < sizeof(tag_switch) / sizeof(tag_switch[0]);
i                2136 dev/ic/siop.c  			    i++) {
i                2137 dev/ic/siop.c  				sc->sc_c.sc_script[sc->script_free_hi + i] =
i                2138 dev/ic/siop.c  				    siop_htoc32(&sc->sc_c, tag_switch[i]);
i                2146 dev/ic/siop.c  		for (i = 0; i < SIOP_NTAG; i++) {
i                2147 dev/ic/siop.c  			siop_lun->siop_tag[i].reseloff =
i                2148 dev/ic/siop.c  			    sc->script_free_hi + (Ent_resel_tag0 / 4) + i * 2;
i                2164 dev/ic/siop.c  	int i;
i                2177 dev/ic/siop.c  	for (i = 0; i < 8; i++) {
i                2178 dev/ic/siop.c  		if (siop_target->siop_lun[i] != NULL)
i                  64 dev/ic/siop_common.c 	int error, i;
i                 121 dev/ic/siop_common.c 	for (i = 0; i < 16; i++)
i                 122 dev/ic/siop_common.c 		sc->targets[i] = NULL;
i                 129 dev/ic/siop_common.c 	for (i = 0; i < sizeof(scf_period) / sizeof(scf_period[0]); i++) {
i                 130 dev/ic/siop_common.c 		if (sc->clock_period != scf_period[i].clock)
i                 132 dev/ic/siop_common.c 		if (sc->st_maxsync < scf_period[i].period)
i                 133 dev/ic/siop_common.c 			sc->st_maxsync = scf_period[i].period;
i                 134 dev/ic/siop_common.c 		if (sc->st_minsync > scf_period[i].period)
i                 135 dev/ic/siop_common.c 			sc->st_minsync = scf_period[i].period;
i                 139 dev/ic/siop_common.c 	for (i = 0; i < sizeof(dt_scf_period) / sizeof(dt_scf_period[0]); i++) {
i                 140 dev/ic/siop_common.c 		if (sc->clock_period != dt_scf_period[i].clock)
i                 142 dev/ic/siop_common.c 		if (sc->dt_maxsync < dt_scf_period[i].period)
i                 143 dev/ic/siop_common.c 			sc->dt_maxsync = dt_scf_period[i].period;
i                 144 dev/ic/siop_common.c 		if (sc->dt_minsync > dt_scf_period[i].period)
i                 145 dev/ic/siop_common.c 			sc->dt_minsync = dt_scf_period[i].period;
i                 242 dev/ic/siop_common.c 	int i;
i                 323 dev/ic/siop_common.c 		for (i = 0; i < siop_cmd->dmamap_data->dm_nsegs; i++) {
i                 324 dev/ic/siop_common.c 			siop_cmd->siop_tables->data[i].count =
i                 326 dev/ic/siop_common.c 				siop_cmd->dmamap_data->dm_segs[i].ds_len);
i                 327 dev/ic/siop_common.c 			siop_cmd->siop_tables->data[i].addr =
i                 329 dev/ic/siop_common.c 				siop_cmd->dmamap_data->dm_segs[i].ds_addr);
i                 423 dev/ic/siop_common.c 	int i;
i                 427 dev/ic/siop_common.c 	for (i = 0; i < 8; i++)
i                 428 dev/ic/siop_common.c 		printf(" 0x%x", tables->msg_in[i]);
i                 460 dev/ic/siop_common.c 			for (i = 0; i <
i                 462 dev/ic/siop_common.c 			    i++) {
i                 463 dev/ic/siop_common.c 				if (sc->clock_period != dt_scf_period[i].clock)
i                 465 dev/ic/siop_common.c 				if (dt_scf_period[i].period == sync) {
i                 469 dev/ic/siop_common.c 					scf = dt_scf_period[i].scf;
i                 535 dev/ic/siop_common.c 	int sync, maxoffset, offset, i;
i                 554 dev/ic/siop_common.c 		for (i = 0; i < sizeof(scf_period) / sizeof(scf_period[0]);
i                 555 dev/ic/siop_common.c 		    i++) {
i                 556 dev/ic/siop_common.c 			if (sc->clock_period != scf_period[i].clock)
i                 558 dev/ic/siop_common.c 			if (scf_period[i].period == sync) {
i                 564 dev/ic/siop_common.c 				sc->targets[target]->id |= scf_period[i].scf
i                 606 dev/ic/siop_common.c 		for (i = 0; i < sizeof(scf_period) / sizeof(scf_period[0]);
i                 607 dev/ic/siop_common.c 		    i++) {
i                 608 dev/ic/siop_common.c 			if (sc->clock_period != scf_period[i].clock)
i                 610 dev/ic/siop_common.c 			if (scf_period[i].period == sync) {
i                 616 dev/ic/siop_common.c 				sc->targets[target]->id |= scf_period[i].scf
i                 855 dev/ic/siop_common.c 	int i;
i                 865 dev/ic/siop_common.c 	for (i = 0; i < offset; i++)
i                 867 dev/ic/siop_common.c 		    siop_ctoh32(sc, siop_cmd->siop_tables->data[i].count);
i                 134 dev/ic/smc83c170.c 	u_int i;
i                 185 dev/ic/smc83c170.c 	for (i = 0; i < EPIC_NTXDESC; i++) {
i                 188 dev/ic/smc83c170.c 		    &EPIC_DSTX(sc, i)->ds_dmamap)) != 0) {
i                 190 dev/ic/smc83c170.c 			    i, error);
i                 198 dev/ic/smc83c170.c 	for (i = 0; i < EPIC_NRXDESC; i++) {
i                 201 dev/ic/smc83c170.c 		    &EPIC_DSRX(sc, i)->ds_dmamap)) != 0) {
i                 203 dev/ic/smc83c170.c 			    i, error);
i                 206 dev/ic/smc83c170.c 		EPIC_DSRX(sc, i)->ds_mbuf = NULL;
i                 238 dev/ic/smc83c170.c 	for (i = 0; i < sizeof(myea)/ sizeof(myea[0]); i++) {
i                 239 dev/ic/smc83c170.c 		enaddr[i * 2]     = myea[i] & 0xff;
i                 240 dev/ic/smc83c170.c 		enaddr[i * 2 + 1] = myea[i] >> 8;
i                 248 dev/ic/smc83c170.c 	for (i = 0; i < sizeof(mydevname) / sizeof(mydevname[0]); i++) {
i                 249 dev/ic/smc83c170.c 		devname[i * 2]     = mydevname[i] & 0xff;
i                 250 dev/ic/smc83c170.c 		devname[i * 2 + 1] = mydevname[i] >> 8;
i                 254 dev/ic/smc83c170.c 	for (i = sizeof(devname) - 1; devname[i] == ' '; i--) {
i                 255 dev/ic/smc83c170.c 		devname[i] = '\0';
i                 256 dev/ic/smc83c170.c 		if (i == 0)
i                 328 dev/ic/smc83c170.c 	for (i = 0; i < EPIC_NRXDESC; i++) {
i                 329 dev/ic/smc83c170.c 		if (EPIC_DSRX(sc, i)->ds_dmamap != NULL)
i                 331 dev/ic/smc83c170.c 			    EPIC_DSRX(sc, i)->ds_dmamap);
i                 334 dev/ic/smc83c170.c 	for (i = 0; i < EPIC_NTXDESC; i++) {
i                 335 dev/ic/smc83c170.c 		if (EPIC_DSTX(sc, i)->ds_dmamap != NULL)
i                 337 dev/ic/smc83c170.c 			    EPIC_DSTX(sc, i)->ds_dmamap);
i                 656 dev/ic/smc83c170.c 	int i, claimed = 0;
i                 679 dev/ic/smc83c170.c 		for (i = sc->sc_rxptr;; i = EPIC_NEXTRX(i)) {
i                 680 dev/ic/smc83c170.c 			rxd = EPIC_CDRX(sc, i);
i                 681 dev/ic/smc83c170.c 			ds = EPIC_DSRX(sc, i);
i                 683 dev/ic/smc83c170.c 			EPIC_CDRXSYNC(sc, i,
i                 709 dev/ic/smc83c170.c 				EPIC_INIT_RXDESC(sc, i);
i                 727 dev/ic/smc83c170.c 				EPIC_INIT_RXDESC(sc, i);
i                 751 dev/ic/smc83c170.c 				EPIC_INIT_RXDESC(sc, i);
i                 757 dev/ic/smc83c170.c 				if (epic_add_rxbuf(sc, i) != 0) {
i                 760 dev/ic/smc83c170.c 					EPIC_INIT_RXDESC(sc, i);
i                 787 dev/ic/smc83c170.c 		sc->sc_rxptr = i;
i                 811 dev/ic/smc83c170.c 		for (i = sc->sc_txdirty; sc->sc_txpending != 0;
i                 812 dev/ic/smc83c170.c 		     i = EPIC_NEXTTX(i), sc->sc_txpending--) {
i                 813 dev/ic/smc83c170.c 			txd = EPIC_CDTX(sc, i);
i                 814 dev/ic/smc83c170.c 			ds = EPIC_DSTX(sc, i);
i                 816 dev/ic/smc83c170.c 			EPIC_CDTXSYNC(sc, i,
i                 823 dev/ic/smc83c170.c 			EPIC_CDFLSYNC(sc, i, BUS_DMASYNC_POSTWRITE);
i                 847 dev/ic/smc83c170.c 		sc->sc_txdirty = i;
i                 924 dev/ic/smc83c170.c 	int i;
i                 934 dev/ic/smc83c170.c 	for (i = 0; i < 16; i++)
i                 968 dev/ic/smc83c170.c 	int i, error = 0;
i                1041 dev/ic/smc83c170.c 	for (i = 0; i < EPIC_NTXDESC; i++) {
i                1042 dev/ic/smc83c170.c 		txd = EPIC_CDTX(sc, i);
i                1044 dev/ic/smc83c170.c 		txd->et_bufaddr = EPIC_CDFLADDR(sc, i);
i                1045 dev/ic/smc83c170.c 		txd->et_nextdesc = EPIC_CDTXADDR(sc, EPIC_NEXTTX(i));
i                1046 dev/ic/smc83c170.c 		EPIC_CDTXSYNC(sc, i, BUS_DMASYNC_PREREAD|BUS_DMASYNC_PREWRITE);
i                1055 dev/ic/smc83c170.c 	for (i = 0; i < EPIC_NRXDESC; i++) {
i                1056 dev/ic/smc83c170.c 		ds = EPIC_DSRX(sc, i);
i                1058 dev/ic/smc83c170.c 			if ((error = epic_add_rxbuf(sc, i)) != 0) {
i                1061 dev/ic/smc83c170.c 				    sc->sc_dev.dv_xname, i, error);
i                1070 dev/ic/smc83c170.c 			EPIC_INIT_RXDESC(sc, i);
i                1123 dev/ic/smc83c170.c 	int i;
i                1125 dev/ic/smc83c170.c 	for (i = 0; i < EPIC_NRXDESC; i++) {
i                1126 dev/ic/smc83c170.c 		ds = EPIC_DSRX(sc, i);
i                1146 dev/ic/smc83c170.c 	int i;
i                1181 dev/ic/smc83c170.c 	for (i = 0; i < EPIC_NTXDESC; i++) {
i                1182 dev/ic/smc83c170.c 		ds = EPIC_DSTX(sc, i);
i                1203 dev/ic/smc83c170.c 	int i, x;
i                1215 dev/ic/smc83c170.c 	for (i = 0; i < wordcnt; i++) {
i                1236 dev/ic/smc83c170.c 			if ((word + i) & (1 << (x - 1)))
i                1248 dev/ic/smc83c170.c 		data[i] = 0;
i                1253 dev/ic/smc83c170.c 				data[i] |= (1 << (x - 1));
i                1380 dev/ic/smc83c170.c 	int i;
i                1382 dev/ic/smc83c170.c 	for (i = 0; i < 50; i++) {
i                1388 dev/ic/smc83c170.c 	if (i == 50) {
i                 220 dev/ic/smc91cxx.c 	int i, aui;
i                 247 dev/ic/smc91cxx.c 		for (i = 0; i < ETHER_ADDR_LEN; i += 2) {
i                 248 dev/ic/smc91cxx.c 			tmp = bus_space_read_2(bst, bsh, IAR_ADDR0_REG_W + i);
i                 249 dev/ic/smc91cxx.c 			sc->sc_arpcom.ac_enaddr[i + 1] = (tmp >>8) & 0xff;
i                 250 dev/ic/smc91cxx.c 			sc->sc_arpcom.ac_enaddr[i] = tmp & 0xff;
i                 320 dev/ic/smc91cxx.c 		for (i = 0; i < NSMC91CxxMEDIA; i++)
i                 321 dev/ic/smc91cxx.c 			ifmedia_add(ifm, smc91cxx_media[i], 0, NULL);
i                 431 dev/ic/smc91cxx.c 	int s, i;
i                 452 dev/ic/smc91cxx.c 	for (i = 0; i < ETHER_ADDR_LEN; i++ )
i                 453 dev/ic/smc91cxx.c 		bus_space_write_1(bst, bsh, IAR_ADDR0_REG_W + i,
i                 454 dev/ic/smc91cxx.c 		    sc->sc_arpcom.ac_enaddr[i]);
i                 101 dev/ic/smc93cx6.c 	int i = 0;
i                 120 dev/ic/smc93cx6.c 		for (i = 0; i < seeprom_read.len; i++) {
i                 121 dev/ic/smc93cx6.c 			if (seeprom_read.bits[i] != 0)
i                 127 dev/ic/smc93cx6.c 			if (seeprom_read.bits[i] != 0)
i                 131 dev/ic/smc93cx6.c 		for (i = (sd->sd_chip - 1); i >= 0; i--) {
i                 132 dev/ic/smc93cx6.c 			if ((k & (1 << i)) != 0)
i                 138 dev/ic/smc93cx6.c 			if ((k & (1 << i)) != 0)
i                 149 dev/ic/smc93cx6.c 		for (i = 16; i >= 0; i--) {
i                 104 dev/ic/sti.c   int sti_setcment(struct sti_screen *scr, u_int i, u_char r, u_char g, u_char b);
i                 166 dev/ic/sti.c   	int error, size, i;
i                 261 dev/ic/sti.c   	for (i = STI_END; !dd->dd_pacode[i]; i--);
i                 262 dev/ic/sti.c   	size = dd->dd_pacode[i] - dd->dd_pacode[STI_BEGIN];
i                 295 dev/ic/sti.c   #define	O(i)	(dd->dd_pacode[(i)]? (scr->scr_code + \
i                 296 dev/ic/sti.c   	(dd->dd_pacode[(i)] - dd->dd_pacode[0]) / \
i                 344 dev/ic/sti.c   		int i = dd->dd_reglst;
i                 349 dev/ic/sti.c   		printf("stiregions @%p:\n", i);
i                 359 dev/ic/sti.c   				*(u_int *)&r = parseword(i), i+= 16;
i                 361 dev/ic/sti.c   				bus_space_read_raw_region_4(memt, romh, i,
i                 363 dev/ic/sti.c   				i += 4;
i                 749 dev/ic/sti.c   sti_setcment(struct sti_screen *scr, u_int i, u_char r, u_char g, u_char b)
i                 760 dev/ic/sti.c   	a.in.entry = i;
i                 781 dev/ic/sti.c   	int i, ret;
i                 849 dev/ic/sti.c   		for (i = idx + count - 1; i >= idx; i--)
i                 850 dev/ic/sti.c   			if ((ret = sti_setcment(scr, i, scr->scr_rcmap[i],
i                 851 dev/ic/sti.c   			    scr->scr_gcmap[i], scr->scr_bcmap[i]))) {
i                 854 dev/ic/sti.c   				    "sti_setcment(%d, %u, %u, %u): %d\n", i,
i                 855 dev/ic/sti.c   				    (u_int)scr->scr_rcmap[i],
i                 856 dev/ic/sti.c   				    (u_int)scr->scr_gcmap[i],
i                 857 dev/ic/sti.c   				    (u_int)scr->scr_bcmap[i]);
i                 139 dev/ic/tc921x.c 	int i;
i                 147 dev/ic/tc921x.c 	for (i = 0; i < length; i++)
i                 148 dev/ic/tc921x.c 		if (data & (1 << i)) {
i                 159 dev/ic/tc921x.c 	unsigned int i;
i                 164 dev/ic/tc921x.c 	for (i = 0; i < length; i++) {
i                 168 dev/ic/tc921x.c 			(1 << i) : (0 << i);
i                 323 dev/ic/tcic2.c 	int i, reg;
i                 349 dev/ic/tcic2.c 	for (i = 0; i < TCIC_NSLOTS; i++) {
i                 350 dev/ic/tcic2.c 		sc->handle[i].sc = sc;
i                 351 dev/ic/tcic2.c 		sc->handle[i].sock = i;
i                 352 dev/ic/tcic2.c 		sc->handle[i].flags = TCIC_FLAG_SOCKETP;
i                 353 dev/ic/tcic2.c 		sc->handle[i].memwins
i                 367 dev/ic/tcic2.c 	for (i = 0; i < TCIC_NSLOTS; i++) {
i                 369 dev/ic/tcic2.c 		tcic_sel_sock(&sc->handle[i]);
i                 370 dev/ic/tcic2.c 		tcic_write_ind_2(&sc->handle[i], TCIC_IR_SCF1_N(i), 0);
i                 371 dev/ic/tcic2.c 		tcic_write_ind_2(&sc->handle[i], TCIC_IR_SCF2_N(i), 
i                 378 dev/ic/tcic2.c 		tcic_write_1(&sc->handle[i], TCIC_R_MODE, 0);
i                 382 dev/ic/tcic2.c 		SIMPLEQ_INIT(&sc->handle[i].events);
i                 405 dev/ic/tcic2.c 	int i;
i                 407 dev/ic/tcic2.c 	for (i = 0; i < TCIC_NSLOTS; i++)
i                 408 dev/ic/tcic2.c 		if (sc->handle[i].flags & TCIC_FLAG_SOCKETP)
i                 409 dev/ic/tcic2.c 			tcic_attach_socket(&sc->handle[i]);
i                 609 dev/ic/tcic2.c 	int i, ret = 0;
i                 613 dev/ic/tcic2.c 	for (i = 0; i < TCIC_NSLOTS; i++)
i                 614 dev/ic/tcic2.c 		if (sc->handle[i].flags & TCIC_FLAG_SOCKETP)
i                 615 dev/ic/tcic2.c 			ret += tcic_intr_socket(&sc->handle[i]);
i                 797 dev/ic/tcic2.c 	int i, mask, mhandle;
i                 805 dev/ic/tcic2.c 	i = tcic_log2((u_int)size);
i                 806 dev/ic/tcic2.c 	if ((1<<i) < size)
i                 807 dev/ic/tcic2.c 		i++;
i                 808 dev/ic/tcic2.c 	sizepg = max(i, TCIC_MEM_SHIFT) - (TCIC_MEM_SHIFT-1);
i                 822 dev/ic/tcic2.c 	for (i = 0; i < (TCIC_MEM_PAGES + 1 - sizepg); i += sizepg) {
i                 823 dev/ic/tcic2.c 		if ((h->sc->subregionmask & (mask << i)) == (mask << i)) {
i                 825 dev/ic/tcic2.c 			    i * TCIC_MEM_PAGESIZE,
i                 828 dev/ic/tcic2.c 			mhandle = mask << i;
i                 829 dev/ic/tcic2.c 			addr = h->sc->membase + (i * TCIC_MEM_PAGESIZE);
i                 835 dev/ic/tcic2.c 	if (i == (TCIC_MEM_PAGES + 1 - sizepg))
i                 956 dev/ic/tcic2.c 	int i, win;
i                 959 dev/ic/tcic2.c 	for (i = 0; i < h->memwins; i++) {
i                 960 dev/ic/tcic2.c 		if ((h->memalloc & (1 << i)) == 0) {
i                 961 dev/ic/tcic2.c 			win = i;
i                 962 dev/ic/tcic2.c 			h->memalloc |= (1 << i);
i                1188 dev/ic/tcic2.c 	int i, win;
i                1196 dev/ic/tcic2.c 	for (i = 0; i < TCIC_IO_WINS; i++) {
i                1197 dev/ic/tcic2.c 		if ((h->ioalloc & (1 << i)) == 0) {
i                1198 dev/ic/tcic2.c 			win = i;
i                1199 dev/ic/tcic2.c 			h->ioalloc |= (1 << i);
i                1391 dev/ic/tcic2.c 	int i, l2;
i                1393 dev/ic/tcic2.c 	l2 = i = 0;
i                1396 dev/ic/tcic2.c 			l2 = i;
i                1397 dev/ic/tcic2.c 		i++;
i                 291 dev/ic/tcic2var.h 	int i;
i                 294 dev/ic/tcic2var.h 	for (i = 0; i < 10000; i++) {
i                 121 dev/ic/tea5757.c 	int i = TEA5757_REGISTER_LENGTH;
i                 125 dev/ic/tea5757.c 	while (i--)
i                 126 dev/ic/tea5757.c 		if (data & (1 << i))
i                 338 dev/ic/trm.c   	int i, error, intflag, xferflags;
i                 439 dev/ic/trm.c   		for (i = 0; i < pSRB->dmamapxfer->dm_nsegs; i++) {
i                 440 dev/ic/trm.c   			pSRB->SegmentX[i].address = pSRB->dmamapxfer->dm_segs[i].ds_addr;
i                 441 dev/ic/trm.c   			pSRB->SegmentX[i].length  = pSRB->dmamapxfer->dm_segs[i].ds_len;
i                 588 dev/ic/trm.c   	int i, intflag;
i                 600 dev/ic/trm.c   	for (i = 0; i < 500; i++)
i                2319 dev/ic/trm.c   	int i, intflag;
i                2323 dev/ic/trm.c   	for (i = 0; i < TRM_MAX_SRB_CNT; i++) {
i                2324 dev/ic/trm.c   		pSRB = &sc->SRB[i];
i                2327 dev/ic/trm.c   			+ i * sizeof(struct trm_scsi_req_q);
i                2330 dev/ic/trm.c   			+ i * sizeof(struct trm_scsi_req_q)
i                2334 dev/ic/trm.c   			+ i * sizeof(struct trm_scsi_req_q)
i                2350 dev/ic/trm.c   		if (i > 0)
i                2510 dev/ic/trm.c   	int i;
i                2519 dev/ic/trm.c   	for (i = 0; i < 8; i++, bData <<= 1) {
i                2601 dev/ic/trm.c   	int i;
i                2610 dev/ic/trm.c   	for (i = 0; i < 8; i++) {
i                2667 dev/ic/trm.c   	int i;
i                2669 dev/ic/trm.c   	for (i = 0; i < 3; i++, bCmd <<= 1) {
i                2683 dev/ic/trm.c   	for (i = 0; i < 7; i++, bAddr <<= 1) {
i                 141 dev/ic/twe.c   	int		error, i, retry, nunits, nseg;
i                 215 dev/ic/twe.c   		for (i = 350000; i--; DELAY(100)) {
i                 233 dev/ic/twe.c   		for (i = 350000; i--; DELAY(100)) {
i                 341 dev/ic/twe.c   	for (nunits = i = 0; i < TWE_MAX_UNITS; i++) {
i                 342 dev/ic/twe.c   		if (pb->data[i] == 0)
i                 360 dev/ic/twe.c   		cap->table_id = TWE_PARAM_UI + i;
i                 367 dev/ic/twe.c   			    sc->sc_dev.dv_xname, i);
i                 373 dev/ic/twe.c   		sc->sc_hdr[i].hd_present = 1;
i                 374 dev/ic/twe.c   		sc->sc_hdr[i].hd_devtype = 0;
i                 375 dev/ic/twe.c   		sc->sc_hdr[i].hd_size = letoh32(*(u_int32_t *)cap->data);
i                 377 dev/ic/twe.c   		    i, sc->sc_hdr[i].hd_size));
i                 492 dev/ic/twe.c   	int error, i;
i                 566 dev/ic/twe.c   			for (i = 0; i < dmap->dm_nsegs; i++, sgp++) {
i                 567 dev/ic/twe.c   				sgp->twes_addr = htole32(dmap->dm_segs[i].ds_addr);
i                 568 dev/ic/twe.c   				sgp->twes_len  = htole32(dmap->dm_segs[i].ds_len);
i                 570 dev/ic/twe.c   				    dmap->dm_segs[i].ds_addr,
i                 571 dev/ic/twe.c   				    dmap->dm_segs[i].ds_len));
i                 604 dev/ic/twe.c   	int i;
i                 617 dev/ic/twe.c   	for (i = 1000; i--; DELAY(10)) {
i                 650 dev/ic/twe.c   	int i;
i                 652 dev/ic/twe.c   	for (i = 100 * (xs? xs->timeout : 35000); i--; DELAY(10)) {
i                 341 dev/ic/vga.c   	int i;
i                 345 dev/ic/vga.c   	for (i = 0; i < 8; i++) {
i                 346 dev/ic/vga.c   		struct vgafont *f = vc->vc_fonts[i];
i                 467 dev/ic/vga.c   	int i;
i                 500 dev/ic/vga.c   	for (i = 1; i < 8; i++)
i                 501 dev/ic/vga.c   		vc->vc_fonts[i] = 0;
i                1198 dev/ic/vga.c   	int i;
i                1200 dev/ic/vga.c   	for (i = 0; i < 0xa0; i++) /* 0xa0..0xff are reserved */
i                1201 dev/ic/vga.c   		if (uni == pcvt_unichars[i]) {
i                1202 dev/ic/vga.c   			*index = i;
i                  90 dev/ic/vga_subr.c 	int offset, i, j, s;
i                  98 dev/ic/vga_subr.c 	for (i = 0; i < num; i++)
i                 101 dev/ic/vga_subr.c 					  offset + (i << 5) + j,
i                 102 dev/ic/vga_subr.c 					  data[i * lpc + j]);
i                 355 dev/ic/wdc.c   		unsigned int i;
i                 357 dev/ic/wdc.c   		for (i = 0; i < nbytes; i += 2) {
i                 376 dev/ic/wdc.c   		unsigned int i;
i                 378 dev/ic/wdc.c   		for (i = 0; i < nbytes; i += 2) {
i                 397 dev/ic/wdc.c   		unsigned int i;
i                 399 dev/ic/wdc.c   		for (i = 0; i < nbytes; i += 4) {
i                 418 dev/ic/wdc.c   		unsigned int i;
i                 420 dev/ic/wdc.c   		for (i = 0; i < nbytes; i += 4) {
i                 764 dev/ic/wdc.c   	int channel_flags, ctrl_flags, i;
i                 829 dev/ic/wdc.c   	for (i = 0; i < 2; i++) {
i                 830 dev/ic/wdc.c   		struct ata_drive_datas *drvp = &chp->ch_drive[i];
i                 833 dev/ic/wdc.c   		drvp->drive = i;
i                 843 dev/ic/wdc.c   		if (i == 1 && ((chp->ch_drive[0].drive_flags & DRIVE) == 0))
i                 850 dev/ic/wdc.c   		if (ata_get_params(&chp->ch_drive[i], at_poll, &drvp->id) ==
i                 860 dev/ic/wdc.c   			    chp->channel, i), DEBUG_PROBE);
i                 863 dev/ic/wdc.c   			    !wdc_preata_drive(chp, i))
i                 879 dev/ic/wdc.c   	for (i = 0; i < 2; i++) {
i                 880 dev/ic/wdc.c   		if ((chp->ch_drive[i].drive_flags & DRIVE) == 0) {
i                 884 dev/ic/wdc.c   		if (chp->ch_drive[i].drive_flags & DRIVE_ATAPI)
i                 890 dev/ic/wdc.c   		aa_link.aa_drv_data = &chp->ch_drive[i];
i                 898 dev/ic/wdc.c   	for (i = 0; i < 2; i++) {
i                 899 dev/ic/wdc.c   		if (chp->ch_drive[i].drive_name[0] == 0)
i                 900 dev/ic/wdc.c   			chp->ch_drive[i].drive_flags = 0;
i                1271 dev/ic/wdc.c   	int i, valid_mode_found;
i                1308 dev/ic/wdc.c   		for (i = 14; i > 0; i--) {
i                1309 dev/ic/wdc.c   			if (params->atap_ata_major & (1 << i)) {
i                1310 dev/ic/wdc.c   				printf("%sATA version %d\n", sep, i);
i                1311 dev/ic/wdc.c   				drvp->ata_vers = i;
i                1374 dev/ic/wdc.c   		for (i = 7; i >= 0; i--) {
i                1375 dev/ic/wdc.c   			if ((params->atap_piomode_supp & (1 << i)) == 0)
i                1377 dev/ic/wdc.c   			if (i > 4)
i                1383 dev/ic/wdc.c   				drvp->PIO_cap = i + 3;
i                1392 dev/ic/wdc.c   			if (ata_set_mode(drvp, 0x08 | (i + 3),
i                1400 dev/ic/wdc.c   			if (wdc->PIO_cap >= i + 3) {
i                1401 dev/ic/wdc.c   				drvp->PIO_mode = i + 3;
i                1402 dev/ic/wdc.c   				drvp->PIO_cap = i + 3;
i                1421 dev/ic/wdc.c   		for (i = 7; i >= 0; i--) {
i                1422 dev/ic/wdc.c   			if ((params->atap_dmamode_supp & (1 << i)) == 0)
i                1426 dev/ic/wdc.c   				if (ata_set_mode(drvp, 0x20 | i, at_poll)
i                1434 dev/ic/wdc.c   				    wdc->DMA_cap < i)
i                1436 dev/ic/wdc.c   				drvp->DMA_mode = i;
i                1437 dev/ic/wdc.c   				drvp->DMA_cap = i;
i                1443 dev/ic/wdc.c   			for (i = 7; i >= 0; i--) {
i                1444 dev/ic/wdc.c   				if ((params->atap_udmamode_supp & (1 << i))
i                1449 dev/ic/wdc.c   					if (ata_set_mode(drvp, 0x40 | i,
i                1454 dev/ic/wdc.c   					    wdc->UDMA_cap < i)
i                1456 dev/ic/wdc.c   					drvp->UDMA_mode = i;
i                1457 dev/ic/wdc.c   					drvp->UDMA_cap = i;
i                 232 dev/ic/xl.c    	int	i;
i                 234 dev/ic/xl.c    	for (i = 0; i < XL_TIMEOUT; i++) {
i                 239 dev/ic/xl.c    	if (i == XL_TIMEOUT)
i                 266 dev/ic/xl.c    	int	i;
i                 271 dev/ic/xl.c    	for (i = 0; i < 32; i++) {
i                 287 dev/ic/xl.c    	int	i;
i                 292 dev/ic/xl.c    	for (i = (0x1 << (cnt - 1)); i; i >>= 1) {
i                 293 dev/ic/xl.c                    if (bits & i) {
i                 309 dev/ic/xl.c    	int	i, ack, s;
i                 360 dev/ic/xl.c    		for(i = 0; i < 16; i++) {
i                 367 dev/ic/xl.c    	for (i = 0x8000; i; i >>= 1) {
i                 371 dev/ic/xl.c    				frame->mii_data |= i;
i                 498 dev/ic/xl.c    	int	i;
i                 500 dev/ic/xl.c    	for (i = 0; i < 100; i++) {
i                 507 dev/ic/xl.c    	if (i == 100) {
i                 522 dev/ic/xl.c    	int		err = 0, i;
i                 538 dev/ic/xl.c    	for (i = 0; i < cnt; i++) {
i                 541 dev/ic/xl.c    			    XL_EE_8BIT_READ | EEPROM_8BIT_OFFSET(off + i));
i                 544 dev/ic/xl.c    			    XL_EE_READ | EEPROM_5BIT_OFFSET(off + i));
i                 549 dev/ic/xl.c    		ptr = (u_int16_t *)(dest + (i * 2));
i                 596 dev/ic/xl.c    	int		h = 0, i;
i                 618 dev/ic/xl.c    	for (i = 0; i < XL_HASHFILT_SIZE; i++)
i                 619 dev/ic/xl.c    		CSR_WRITE_2(sc, XL_COMMAND, XL_CMD_RX_SET_HASH|i);
i                 802 dev/ic/xl.c    	int	i;
i                 817 dev/ic/xl.c    	for (i = 0; i < XL_TIMEOUT; i++) {
i                 823 dev/ic/xl.c    	if (i == XL_TIMEOUT)
i                1000 dev/ic/xl.c    	int			i;
i                1004 dev/ic/xl.c    	for (i = 0; i < XL_TX_LIST_CNT; i++) {
i                1005 dev/ic/xl.c    		cd->xl_tx_chain[i].xl_ptr = &ld->xl_tx_list[i];
i                1006 dev/ic/xl.c    		if (i == (XL_TX_LIST_CNT - 1))
i                1007 dev/ic/xl.c    			cd->xl_tx_chain[i].xl_next = NULL;
i                1009 dev/ic/xl.c    			cd->xl_tx_chain[i].xl_next = &cd->xl_tx_chain[i + 1];
i                1026 dev/ic/xl.c    	int			i, next, prev;
i                1030 dev/ic/xl.c    	for (i = 0; i < XL_TX_LIST_CNT; i++) {
i                1031 dev/ic/xl.c    		if (i == (XL_TX_LIST_CNT - 1))
i                1034 dev/ic/xl.c    			next = i + 1;
i                1035 dev/ic/xl.c    		if (i == 0)
i                1038 dev/ic/xl.c    			prev = i - 1;
i                1039 dev/ic/xl.c    		cd->xl_tx_chain[i].xl_ptr = &ld->xl_tx_list[i];
i                1040 dev/ic/xl.c    		cd->xl_tx_chain[i].xl_phys =
i                1042 dev/ic/xl.c    		    offsetof(struct xl_list_data, xl_tx_list[i]);
i                1043 dev/ic/xl.c    		cd->xl_tx_chain[i].xl_next = &cd->xl_tx_chain[next];
i                1044 dev/ic/xl.c    		cd->xl_tx_chain[i].xl_prev = &cd->xl_tx_chain[prev];
i                1067 dev/ic/xl.c    	int			i, n;
i                1073 dev/ic/xl.c    	for (i = 0; i < XL_RX_LIST_CNT; i++) {
i                1074 dev/ic/xl.c    		cd->xl_rx_chain[i].xl_ptr =
i                1075 dev/ic/xl.c    			(struct xl_list_onefrag *)&ld->xl_rx_list[i];
i                1076 dev/ic/xl.c    		if (xl_newbuf(sc, &cd->xl_rx_chain[i]) == ENOBUFS)
i                1078 dev/ic/xl.c    		if (i == (XL_RX_LIST_CNT - 1))
i                1081 dev/ic/xl.c    			n = i + 1;
i                1082 dev/ic/xl.c    		cd->xl_rx_chain[i].xl_next = &cd->xl_rx_chain[n];
i                1085 dev/ic/xl.c    		ld->xl_rx_list[i].xl_next = htole32(next);
i                1154 dev/ic/xl.c    	int i;
i                1158 dev/ic/xl.c    	for (i = 0; i < XL_RX_LIST_CNT; i++) {
i                1169 dev/ic/xl.c    	if (i == XL_RX_LIST_CNT)
i                1442 dev/ic/xl.c    					int i;
i                1445 dev/ic/xl.c    					i = sc->xl_cdata.xl_tx_cons;
i                1446 dev/ic/xl.c    					c = &sc->xl_cdata.xl_tx_chain[i];
i                1561 dev/ic/xl.c    	int			i;
i                1576 dev/ic/xl.c    	for (i = 0; i < 16; i++)
i                1577 dev/ic/xl.c    		*p++ = CSR_READ_1(sc, XL_W6_CARRIER_LOST + i);
i                1937 dev/ic/xl.c    	int			s, i;
i                1961 dev/ic/xl.c    	for (i = 0; i < ETHER_ADDR_LEN; i++) {
i                1962 dev/ic/xl.c    		CSR_WRITE_1(sc, XL_W2_STATION_ADDR_LO + i,
i                1963 dev/ic/xl.c    				sc->sc_arpcom.ac_enaddr[i]);
i                1967 dev/ic/xl.c    	for (i = 0; i < 3; i++)
i                1968 dev/ic/xl.c    		CSR_WRITE_2(sc, XL_W2_STATION_MASK_LO + (i * 2), 0);
i                2385 dev/ic/xl.c    	int		i;
i                2390 dev/ic/xl.c    	for (i = 0; i < XL_RX_LIST_CNT; i++) {
i                2391 dev/ic/xl.c    		if (sc->xl_cdata.xl_rx_chain[i].map->dm_nsegs != 0) {
i                2392 dev/ic/xl.c    			map = sc->xl_cdata.xl_rx_chain[i].map;
i                2398 dev/ic/xl.c    		if (sc->xl_cdata.xl_rx_chain[i].xl_mbuf != NULL) {
i                2399 dev/ic/xl.c    			m_freem(sc->xl_cdata.xl_rx_chain[i].xl_mbuf);
i                2400 dev/ic/xl.c    			sc->xl_cdata.xl_rx_chain[i].xl_mbuf = NULL;
i                2408 dev/ic/xl.c    	for (i = 0; i < XL_TX_LIST_CNT; i++) {
i                2409 dev/ic/xl.c    		if (sc->xl_cdata.xl_tx_chain[i].map->dm_nsegs != 0) {
i                2410 dev/ic/xl.c    			map = sc->xl_cdata.xl_tx_chain[i].map;
i                2416 dev/ic/xl.c    		if (sc->xl_cdata.xl_tx_chain[i].xl_mbuf != NULL) {
i                2417 dev/ic/xl.c    			m_freem(sc->xl_cdata.xl_tx_chain[i].xl_mbuf);
i                2418 dev/ic/xl.c    			sc->xl_cdata.xl_tx_chain[i].xl_mbuf = NULL;
i                2474 dev/ic/xl.c    	int i, media = IFM_ETHER|IFM_100_TX|IFM_FDX;
i                2477 dev/ic/xl.c    	i = splnet();
i                2479 dev/ic/xl.c    	splx(i);
i                2517 dev/ic/xl.c    	for (i = 0; i < XL_RX_LIST_CNT; i++) {
i                2520 dev/ic/xl.c    		    &sc->xl_cdata.xl_rx_chain[i].map) != 0) {
i                2531 dev/ic/xl.c    	for (i = 0; i < XL_TX_LIST_CNT; i++) {
i                2534 dev/ic/xl.c    		    &sc->xl_cdata.xl_tx_chain[i].map) != 0) {
i                2647 dev/ic/xl.c    		i = splnet();
i                2649 dev/ic/xl.c    		splx(i);
i                 383 dev/ipmi.c     	int i;
i                 386 dev/ipmi.c     	for (i = 0; i < len; i++)
i                 387 dev/ipmi.c     		bt_write(sc, _BT_DATAOUT_REG, data[i]);
i                 400 dev/ipmi.c     	u_int8_t len, v, i;
i                 410 dev/ipmi.c     	for (i = IPMI_BTMSG_NFLN; i <= len; i++) {
i                 412 dev/ipmi.c     		if (i != IPMI_BTMSG_SEQ)
i                1193 dev/ipmi.c     	int	i, slen;
i                1206 dev/ipmi.c     		for (i = 0; i < slen; i++) {
i                1207 dev/ipmi.c     			*(name++) = bcdplus[bits[i] >> 4];
i                1208 dev/ipmi.c     			*(name++) = bcdplus[bits[i] & 0xF];
i                1218 dev/ipmi.c     		for (i = 0; i < slen * 8; i += 6)
i                1219 dev/ipmi.c     			*(name++) = getbits(bits, i, 6) + ' ';
i                 253 dev/isa/ad1848.c     int i;
i                 258 dev/isa/ad1848.c     for (i = 0; i < 16; i++) {
i                 259 dev/isa/ad1848.c 	r = ad_read(sc, i);
i                 263 dev/isa/ad1848.c 	    for (i = 16; i < 32; i++) {
i                 264 dev/isa/ad1848.c 		    r = ad_read(sc, i);
i                 308 dev/isa/ad1848.c     int i;
i                 416 dev/isa/ad1848.c     for (i = 0; i < 16; i++)
i                 417 dev/isa/ad1848.c 	if ((tmp1 = ad_read(sc, i)) != (tmp2 = ad_read(sc, i + 16))) {
i                 418 dev/isa/ad1848.c 	    if (i != SP_TEST_AND_INIT) {
i                 419 dev/isa/ad1848.c 	        DPRINTF(("ad_detect_F(%d/%x/%x)\n", i, tmp1, tmp2));
i                 505 dev/isa/ad1848.c     int i;
i                 533 dev/isa/ad1848.c     for (i = 0; i < 0x10; i++) {
i                 534 dev/isa/ad1848.c 	ad_write(sc, i, ad1848_init_values[i]);
i                 542 dev/isa/ad1848.c 	    for (i = 0x10; i < 0x20; i++)
i                 543 dev/isa/ad1848.c 		    if (ad1848_init_values[i] != 0) {
i                 544 dev/isa/ad1848.c 			    ad_write(sc, i, ad1848_init_values[i]);
i                1370 dev/isa/ad1848.c     int i, n, selected = -1;
i                1379 dev/isa/ad1848.c     for (i = 1 /*really*/ ; selected == -1 && i < n; i++)
i                1380 dev/isa/ad1848.c 	if (speed_table[i].speed == arg)
i                1381 dev/isa/ad1848.c 	    selected = i;
i                1382 dev/isa/ad1848.c 	else if (speed_table[i].speed > arg) {
i                1385 dev/isa/ad1848.c 	    diff1 = arg - speed_table[i - 1].speed;
i                1386 dev/isa/ad1848.c 	    diff2 = speed_table[i].speed - arg;
i                1389 dev/isa/ad1848.c 		selected = i - 1;
i                1391 dev/isa/ad1848.c 		selected = i;
i                 131 dev/isa/addcom_isa.c 	int i, rv = 1;
i                 158 dev/isa/addcom_isa.c 	for (i = 1; i < NSLAVES; i++) {
i                 159 dev/isa/addcom_isa.c 		iobase += slave_iobases[i] - slave_iobases[i - 1];
i                 200 dev/isa/addcom_isa.c 	int i;
i                 224 dev/isa/addcom_isa.c 	for (i = 0; i < NSLAVES; i++) {
i                 226 dev/isa/addcom_isa.c 		    + slave_iobases[i]
i                 231 dev/isa/addcom_isa.c 			&sc->sc_slaveioh[i])) {
i                 232 dev/isa/addcom_isa.c 			printf(": can't map i/o space for slave %d\n", i);
i                 239 dev/isa/addcom_isa.c 	for (i = 0; i < NSLAVES; i++) {
i                 240 dev/isa/addcom_isa.c 		ca.ca_slave = i;
i                 242 dev/isa/addcom_isa.c 		ca.ca_ioh = sc->sc_slaveioh[i];
i                 244 dev/isa/addcom_isa.c 		    + slave_iobases[i]
i                 248 dev/isa/addcom_isa.c 		sc->sc_slaves[i] = config_found(self, &ca, addcomprint);
i                 249 dev/isa/addcom_isa.c 		if (sc->sc_slaves[i] != NULL)
i                 250 dev/isa/addcom_isa.c 			sc->sc_alive[i] = 1;
i                 260 dev/isa/addcom_isa.c 	int intrd, r = 0, i;
i                 264 dev/isa/addcom_isa.c 		for (i = 0; i < NSLAVES; i++)
i                 265 dev/isa/addcom_isa.c 			if (sc->sc_alive[i] && comintr(sc->sc_slaves[i])) {
i                 220 dev/isa/aha.c  	register int i;
i                 247 dev/isa/aha.c  		for (i = 20000; i; i--) {	/* 1 sec? */
i                 253 dev/isa/aha.c  		if (!i) {
i                 272 dev/isa/aha.c  		for (i = wait; i; i--) {
i                 278 dev/isa/aha.c  		if (!i) {
i                 292 dev/isa/aha.c  		for (i = wait; i; i--) {
i                 298 dev/isa/aha.c  		if (!i) {
i                 313 dev/isa/aha.c  		for (i = 20000; i; i--) {	/* 1 sec? */
i                 320 dev/isa/aha.c  		if (!i) {
i                 353 dev/isa/aha.c  	int i;
i                 355 dev/isa/aha.c  	for (i = 0; i < nbtports; i++)
i                 356 dev/isa/aha.c  		if (btports[i] == ia->ia_iobase)
i                 428 dev/isa/aha.c  	int i;
i                 433 dev/isa/aha.c  		for (i = 0; i < AHA_MBX_SIZE; i++) {
i                 925 dev/isa/aha.c  	int i;
i                 938 dev/isa/aha.c  	for (i = AHA_RESET_TIMEOUT; i; i--) {
i                 944 dev/isa/aha.c  	if (!i) {
i                1049 dev/isa/aha.c  	int i;
i                1106 dev/isa/aha.c  	for (i = 0; i < 8; i++) {
i                1107 dev/isa/aha.c  		if (!setup.reply.sync[i].valid ||
i                1108 dev/isa/aha.c  		    (!setup.reply.sync[i].offset &&
i                1109 dev/isa/aha.c  		    !setup.reply.sync[i].period))
i                1112 dev/isa/aha.c  		    sc->sc_dev.dv_xname, i, setup.reply.sync[i].offset,
i                1113 dev/isa/aha.c  		    setup.reply.sync[i].period * 50 + 200);
i                1143 dev/isa/aha.c  	for (i = 0; i < AHA_MBX_SIZE; i++) {
i                1144 dev/isa/aha.c  		wmbx->mbo[i].cmd = AHA_MBO_FREE;
i                1145 dev/isa/aha.c  		wmbx->mbi[i].stat = AHA_MBI_FREE;
i                1166 dev/isa/aha.c  	int i;
i                1184 dev/isa/aha.c  		for (i = AHA_RESET_TIMEOUT; i; i--) {
i                1190 dev/isa/aha.c  		if (!i) {
i                 128 dev/isa/aps.c  	int iobase, i;
i                 159 dev/isa/aps.c  	for (i = 0; i < 10; i++) {
i                 186 dev/isa/aps.c  	int iobase, i;
i                 240 dev/isa/aps.c  	for (i = 0; i < APS_NUM_SENSORS ; i++) {
i                 241 dev/isa/aps.c  		sensor_attach(&sc->sensordev, &sc->sensors[i]);
i                 297 dev/isa/aps.c  	int i;
i                 300 dev/isa/aps.c  	for (i = 0; i < 10; i++) {
i                 334 dev/isa/aps.c  	int i;
i                 349 dev/isa/aps.c  	for (i = 0; i < APS_NUM_SENSORS; i++) {
i                 350 dev/isa/aps.c  		sc->sensors[i].flags &= ~SENSOR_FINVALID;
i                 284 dev/isa/aria.c 	int i,j;
i                 333 dev/isa/aria.c 	int	i, j;
i                 386 dev/isa/aria.c 	u_int i;
i                 397 dev/isa/aria.c 	i = inb(rba);
i                 399 dev/isa/aria.c 	outb(0x201, (i&and) | or);
i                 414 dev/isa/aria.c 	register u_short i;
i                 420 dev/isa/aria.c 	i = aria_getdspmem(iobase, ARIAA_HARDWARE_A);
i                 423 dev/isa/aria.c 	sc->sc_hardware |= ((i>>13)&0x01==1)?ARIA_TELEPHONE:0;
i                 424 dev/isa/aria.c 	sc->sc_hardware |= (((i>>5)&0x07)==0x04)?ARIA_MIXER:0;
i                 442 dev/isa/aria.c 	for (i=0; i<6; i++) {
i                 443 dev/isa/aria.c 		if (i == ARIAMIX_TEL_LVL)
i                 444 dev/isa/aria.c 			sc->aria_mix[i].num_channels = 1;
i                 446 dev/isa/aria.c 			sc->aria_mix[i].num_channels = 2;
i                 447 dev/isa/aria.c 		sc->aria_mix[i].level[0] = 127;
i                 448 dev/isa/aria.c 		sc->aria_mix[i].level[1] = 127;
i                 751 dev/isa/aria.c 	int i;
i                 753 dev/isa/aria.c 	for (i=64; i<1024; i*=2)
i                 754 dev/isa/aria.c 		if (blk <= i)
i                 756 dev/isa/aria.c 	sc->sc_blocksize = i;
i                 758 dev/isa/aria.c 	return(i);
i                 775 dev/isa/aria.c 	u_char i;
i                 796 dev/isa/aria.c 		for (i=0; i<6; i++) {
i                 798 dev/isa/aria.c 			switch(i) {
i                 809 dev/isa/aria.c 				if (sc->aria_mix[i].mute == 1)
i                 812 dev/isa/aria.c 					aria_sendcmd(iobase, ARIADSPC_INPMONMODE, source, (sc->aria_mix[i].num_channels==2)?0:1, -1); 
i                 814 dev/isa/aria.c 				aria_sendcmd(iobase, ARIADSPC_INPMONMODE, 0x8000|source, (sc->aria_mix[i].num_channels==2)?0:1, -1);
i                 815 dev/isa/aria.c 				aria_sendcmd(iobase, ARIADSPC_MIXERVOL, source, sc->aria_mix[i].level[0] << 7, sc->aria_mix[i].level[1] << 7);
i                 818 dev/isa/aria.c 			if (sc->aria_mix_source == i) {
i                 967 dev/isa/aria.c 	int i, fail = 0;
i                 969 dev/isa/aria.c 	for (i = ARIAR_NPOLL; (inw(iobase + ARIADSP_STATUS) & ARIAR_BUSY) != 0 && i>0; i-- )
i                 976 dev/isa/aria.c 		for (i = ARIAR_NPOLL; (inw(iobase + ARIADSP_STATUS) & ARIAR_BUSY) != 0 && i>0; i-- )
i                 984 dev/isa/aria.c 		for (i = ARIAR_NPOLL; (inw(iobase + ARIADSP_STATUS) & ARIAR_BUSY) != 0 && i>0; i-- )
i                 992 dev/isa/aria.c 		for (i = ARIAR_NPOLL; (inw(iobase + ARIADSP_STATUS) & ARIAR_BUSY) != 0 && i>0; i-- )
i                 999 dev/isa/aria.c 	for (i = ARIAR_NPOLL; (inw(iobase + ARIADSP_STATUS) & ARIAR_BUSY) != 0 && i>0; i-- )
i                1091 dev/isa/aria.c 	register int i;
i                1122 dev/isa/aria.c 	register int i;
i                1158 dev/isa/aria.c 	int i;
i                  86 dev/isa/ast.c  	int i, rv = 1;
i                 109 dev/isa/ast.c  	for (i = 1; i < NSLAVES; i++) {
i                 149 dev/isa/ast.c  	int i;
i                 154 dev/isa/ast.c  	for (i = 0; i < NSLAVES; i++)
i                 155 dev/isa/ast.c  		if (bus_space_map(sc->sc_iot, sc->sc_iobase + i * COM_NPORTS,
i                 156 dev/isa/ast.c  		    COM_NPORTS, 0, &sc->sc_slaveioh[i]))
i                 157 dev/isa/ast.c  			panic("astattach: couldn't map slave %d", i);
i                 166 dev/isa/ast.c  	for (i = 0; i < NSLAVES; i++) {
i                 167 dev/isa/ast.c  		ca.ca_slave = i;
i                 169 dev/isa/ast.c  		ca.ca_ioh = sc->sc_slaveioh[i];
i                 170 dev/isa/ast.c  		ca.ca_iobase = sc->sc_iobase + i * COM_NPORTS;
i                 173 dev/isa/ast.c  		sc->sc_slaves[i] = config_found(self, &ca, astprint);
i                 174 dev/isa/ast.c  		if (sc->sc_slaves[i] != NULL)
i                 175 dev/isa/ast.c  			sc->sc_alive |= 1 << i;
i                 280 dev/isa/aztech.c 	u_int i;
i                 302 dev/isa/aztech.c 	for (i = MIN_FM_FREQ; i < MAX_FM_FREQ; i += 10) {
i                 303 dev/isa/aztech.c 		az_set_freq(&sc, i);
i                  86 dev/isa/boca.c 	int i, rv = 1;
i                 109 dev/isa/boca.c 	for (i = 1; i < NSLAVES; i++) {
i                 150 dev/isa/boca.c 	int i;
i                 155 dev/isa/boca.c 	for (i = 0; i < NSLAVES; i++)
i                 156 dev/isa/boca.c 		if (bus_space_map(iot, sc->sc_iobase + i * COM_NPORTS,
i                 157 dev/isa/boca.c 		    COM_NPORTS, 0, &sc->sc_slaveioh[i]))
i                 158 dev/isa/boca.c 			panic("bocaattach: couldn't map slave %d", i);
i                 162 dev/isa/boca.c 	for (i = 0; i < NSLAVES; i++) {
i                 164 dev/isa/boca.c 		ca.ca_slave = i;
i                 166 dev/isa/boca.c 		ca.ca_ioh = sc->sc_slaveioh[i];
i                 167 dev/isa/boca.c 		ca.ca_iobase = sc->sc_iobase + i * COM_NPORTS;
i                 170 dev/isa/boca.c 		sc->sc_slaves[i] = config_found(self, &ca, bocaprint);
i                 171 dev/isa/boca.c 		if (sc->sc_slaves[i] != NULL)
i                 172 dev/isa/boca.c 			sc->sc_alive |= 1 << i;
i                 315 dev/isa/ega.c  	int i;
i                 319 dev/isa/ega.c  	for (i = 0; i < 4; i++) {
i                 320 dev/isa/ega.c  		struct egafont *f = vc->vc_fonts[i];
i                 428 dev/isa/ega.c  	int i;
i                 455 dev/isa/ega.c  	for (i = 1; i < 4; i++)
i                 456 dev/isa/ega.c  		vc->vc_fonts[i] = 0;
i                 110 dev/isa/elink.c 	int i;
i                 114 dev/isa/elink.c 	for (i = 255; i; i--) {
i                 279 dev/isa/ess.c  	int i;
i                 296 dev/isa/ess.c  	for (i = 0; i < sc->ndevs; i++)
i                 297 dev/isa/ess.c  		printf(" %u,%u", sc->gain[i][ESS_LEFT], sc->gain[i][ESS_RIGHT]);
i                 891 dev/isa/ess.c  	int i;
i                 981 dev/isa/ess.c  	for (i = 0; i < sc->ndevs; i++) {
i                 982 dev/isa/ess.c  		switch (i) {
i                 998 dev/isa/ess.c  		sc->gain[i][ESS_LEFT] = sc->gain[i][ESS_RIGHT] = v;
i                 999 dev/isa/ess.c  		ess_set_gain(sc, i, 1);
i                2394 dev/isa/ess.c  	int i;
i                2407 dev/isa/ess.c  	for (i = 0; i < di.un.e.num_mem; i++) {
i                2408 dev/isa/ess.c  		if (ord == di.un.e.member[i].ord)
i                2411 dev/isa/ess.c  	if (i == di.un.e.num_mem)
i                2427 dev/isa/ess.c  	int i, port;
i                2443 dev/isa/ess.c  	for (i = 0; i < di.un.s.num_mem; i++) {
i                2447 dev/isa/ess.c  		port = ffs(di.un.s.member[i].mask);
i                2454 dev/isa/ess.c  		ess_set_gain(sc, port, mask & di.un.s.member[i].mask);
i                2556 dev/isa/ess.c  	int i;
i                2558 dev/isa/ess.c  	for (i = ESS_READ_TIMEOUT; i > 0; --i) {
i                2560 dev/isa/ess.c  			i = EREAD1(iot, ioh, ESS_DSP_READ);
i                2561 dev/isa/ess.c  			DPRINTFN(8,("ess_rdsp() = 0x%02x\n", i));
i                2562 dev/isa/ess.c  			return i;
i                2581 dev/isa/ess.c  	int i;
i                2585 dev/isa/ess.c  	for (i = ESS_WRITE_TIMEOUT; i > 0; --i) {
i                 198 dev/isa/fd.c   		int i;
i                 200 dev/isa/fd.c   		for (i = 0; i < n; i++)
i                 201 dev/isa/fd.c   			printf(" %x", fdc->sc_status[i]);
i                 618 dev/isa/fd.c   	int read, head, sec, i, nblks;
i                 840 dev/isa/fd.c   		for (i = 0; i < 4; i++) {
i                 225 dev/isa/fdc.c  	u_char i;
i                 229 dev/isa/fdc.c  		i = bus_space_read_1(iot, ioh, fdsts) &
i                 231 dev/isa/fdc.c  		if (i == NE7_RQM)
i                 233 dev/isa/fdc.c  		if (i == (NE7_DIO | NE7_RQM | NE7_CB)) {
i                 252 dev/isa/fdc.c  	int i = 100000;
i                 254 dev/isa/fdc.c  	while ((bus_space_read_1(iot, ioh, fdsts) & NE7_DIO) && i-- > 0);
i                 255 dev/isa/fdc.c  	if (i <= 0)
i                 257 dev/isa/fdc.c  	while ((bus_space_read_1(iot, ioh, fdsts) & NE7_RQM) == 0 && i-- > 0);
i                 258 dev/isa/fdc.c  	if (i <= 0)
i                 148 dev/isa/gscsio.c 	int i;
i                 161 dev/isa/gscsio.c 	for (i = 0; i < sizeof (gscsio_ld) / sizeof(gscsio_ld[0]); i++) {
i                 162 dev/isa/gscsio.c 		sc->sc_ld_en[gscsio_ld[i].ld_num] = 0;
i                 166 dev/isa/gscsio.c 		    gscsio_ld[i].ld_num);
i                 172 dev/isa/gscsio.c 		if (gscsio_ld[i].ld_iosize0 != 0) {
i                 179 dev/isa/gscsio.c 			    gscsio_ld[i].ld_iosize0, 0,
i                 180 dev/isa/gscsio.c 			    &sc->sc_ld_ioh0[gscsio_ld[i].ld_num]))
i                 185 dev/isa/gscsio.c 		if (gscsio_ld[i].ld_iosize1 != 0) {
i                 192 dev/isa/gscsio.c 			    gscsio_ld[i].ld_iosize1, 0,
i                 193 dev/isa/gscsio.c 			    &sc->sc_ld_ioh0[gscsio_ld[i].ld_num])) {
i                 195 dev/isa/gscsio.c 				    sc->sc_ld_ioh0[gscsio_ld[i].ld_num],
i                 196 dev/isa/gscsio.c 				    gscsio_ld[i].ld_iosize0);
i                 201 dev/isa/gscsio.c 		sc->sc_ld_en[gscsio_ld[i].ld_num] = 1;
i                 202 dev/isa/gscsio.c 		printf(" %s", gscsio_ld[i].ld_name);
i                 262 dev/isa/gscsio.c 	int i;
i                 264 dev/isa/gscsio.c 	for (i = 0; i < 100; i++) {
i                 415 dev/isa/gus.c  	int i;
i                 433 dev/isa/gus.c  		for (i = 0; i < size/2-1; i++)  {
i                 434 dev/isa/gus.c  			dei[i] = sbuf[i*2+1];
i                 435 dev/isa/gus.c  			sbuf[i+1] = sbuf[i*2+2];
i                 447 dev/isa/gus.c  		bcopy(dei, &sbuf[size/2], i * sizeof(short));
i                 451 dev/isa/gus.c  		for (i = 0; i < size/2-1; i++)  {
i                 452 dev/isa/gus.c  			dei[i] = sbuf[i*2+1];
i                 453 dev/isa/gus.c  			sbuf[i+1] = sbuf[i*2+2];
i                 455 dev/isa/gus.c  		bcopy(dei, &sbuf[size/2], i);
i                 800 dev/isa/gus.c  	  int i;
i                 807 dev/isa/gus.c  	    for (i = 1; i <= 2; i++)
i                 809 dev/isa/gus.c  		      (sc->sc_nbufs - 1) * sc->sc_chanblocksize - i,
i                 810 dev/isa/gus.c  		      sc->sc_dmaoutaddr[sc->sc_dmaoutcnt-i]);
i                2060 dev/isa/gus.c  	int i,s;
i                2117 dev/isa/gus.c  	for(i = 0; i < voices; i++) {
i                2118 dev/isa/gus.c  		bus_space_write_1(iot, ioh2, GUS_VOICE_SELECT, (unsigned char) i);
i                2122 dev/isa/gus.c  		sc->sc_voc[i].voccntl = GUSMASK_VOICE_STOPPED |
i                2125 dev/isa/gus.c  		bus_space_write_1(iot, ioh2, GUS_DATA_HIGH, sc->sc_voc[i].voccntl);
i                2127 dev/isa/gus.c  		sc->sc_voc[i].volcntl = GUSMASK_VOLUME_STOPPED |
i                2131 dev/isa/gus.c  		bus_space_write_1(iot, ioh2, GUS_DATA_HIGH, sc->sc_voc[i].volcntl);
i                2135 dev/isa/gus.c  		gus_set_samprate(sc, i, 8000);
i                3415 dev/isa/gus.c  	int		i;
i                3535 dev/isa/gus.c  	for(i = 1; i < 1024; i++) {
i                3545 dev/isa/gus.c  		loc = i << 10;
i                3552 dev/isa/gus.c  	sc->sc_dsize = i;
i                 178 dev/isa/gus_isa.c 		int i;
i                 179 dev/isa/gus_isa.c 		for(i = 0; i < gus_addrs; i++)
i                 180 dev/isa/gus_isa.c 			if (gus_test_iobase(ia->ia_iot, gus_base_addrs[i])) {
i                 181 dev/isa/gus_isa.c 				iobase = gus_base_addrs[i];
i                 132 dev/isa/hsq.c  	int i, rv = 1;
i                 157 dev/isa/hsq.c  	for (i = 1; i < NSLAVES; i++) {
i                 197 dev/isa/hsq.c  	int i;
i                 202 dev/isa/hsq.c  	for (i = 0; i < NSLAVES; i++)
i                 203 dev/isa/hsq.c  		if (bus_space_map(sc->sc_iot, sc->sc_iobase + i * COM_NPORTS,
i                 204 dev/isa/hsq.c  		    COM_NPORTS, 0, &sc->sc_slaveioh[i]))
i                 205 dev/isa/hsq.c  			panic("hsqattach: couldn't map slave %d", i);
i                 210 dev/isa/hsq.c  	for (i = 0; i < NSLAVES; i++) {
i                 211 dev/isa/hsq.c  		ca.ca_slave = i;
i                 213 dev/isa/hsq.c  		ca.ca_ioh = sc->sc_slaveioh[i];
i                 214 dev/isa/hsq.c  		ca.ca_iobase = sc->sc_iobase + i * COM_NPORTS;
i                 217 dev/isa/hsq.c  		sc->sc_slaves[i] = config_found(self, &ca, hsqprint);
i                 166 dev/isa/i82365_isa.c 	int irq, i;
i                 218 dev/isa/i82365_isa.c 		for (i = 0; i < PCIC_NSLOTS; i++) {
i                 219 dev/isa/i82365_isa.c 			h = &sc->handle[i];
i                 115 dev/isa/i82365_isapnp.c 	int tmp1, i;
i                 196 dev/isa/i82365_isapnp.c 		for (i = 0; i < PCIC_NSLOTS; i++) {
i                 197 dev/isa/i82365_isapnp.c 			h = &sc->handle[i];
i                 117 dev/isa/i82365_isasubr.c 	int i, iobuswidth, tmp1, tmp2;
i                 139 dev/isa/i82365_isasubr.c 	for (i = 0; i < PCIC_NSLOTS; i++) {
i                 140 dev/isa/i82365_isasubr.c 		if (sc->handle[i].flags & PCIC_FLAG_SOCKETP) {
i                 146 dev/isa/i82365_isasubr.c 			    sc->handle[i].sock + PCIC_IDENT);
i                 150 dev/isa/i82365_isasubr.c 			    sc->handle[i].sock + PCIC_IDENT);
i                 274 dev/isa/i82365_isasubr.c 	int i, tickle, check, irq, chosen_irq = 0, csc_touched = 0;
i                 293 dev/isa/i82365_isasubr.c 			for (i = 0; i < 16; i++) {
i                 294 dev/isa/i82365_isasubr.c 				irq = pcic_isa_intr_list[i];
i                 152 dev/isa/if_ec.c 	int i, rv = 0;
i                 175 dev/isa/if_ec.c 	for (i = 0; i < NEC_IOBASE; i++)
i                 176 dev/isa/if_ec.c 		if (ia->ia_iobase == ec_iobase[i])
i                 178 dev/isa/if_ec.c 	if (i == NEC_IOBASE)
i                 182 dev/isa/if_ec.c 	for (i = 0; i < NEC_MEMBASE; i++) {
i                 183 dev/isa/if_ec.c 		if (ec_membase[i] == MADDRUNK)
i                 185 dev/isa/if_ec.c 		if (ia->ia_maddr == ec_membase[i])
i                 188 dev/isa/if_ec.c 	if (i == NEC_MEMBASE)
i                 219 dev/isa/if_ec.c 	i = ffs(x) - 1;
i                 220 dev/isa/if_ec.c 	if (ia->ia_iobase != ec_iobase[i])
i                 230 dev/isa/if_ec.c 	i = ffs(x) - 1;
i                 231 dev/isa/if_ec.c 	if (ia->ia_maddr != ec_membase[i])
i                 259 dev/isa/if_ec.c 	int i;
i                 308 dev/isa/if_ec.c 	for (i = 0; i < 16; i++)
i                 309 dev/isa/if_ec.c 		sc->sc_reg_map[i] = i;
i                 343 dev/isa/if_ec.c 	for (i = 0; i < ETHER_ADDR_LEN; i++)
i                 344 dev/isa/if_ec.c 		sc->sc_arpcom.ac_enaddr[i] = NIC_GET(nict, nich, i);
i                 524 dev/isa/if_ec.c 	int i;
i                 532 dev/isa/if_ec.c 		for (i = 0; i < memsize; i += 2) {
i                 533 dev/isa/if_ec.c 			if (bus_space_read_2(memt, memh, i) != 0)
i                 537 dev/isa/if_ec.c 		for (i = 0; i < memsize; i++) {
i                 538 dev/isa/if_ec.c 			if (bus_space_read_1(memt, memh, i) != 0)
i                 547 dev/isa/if_ec.c 	    sc->sc_dev.dv_xname, i);
i                 162 dev/isa/if_ef_isapnp.c 	int i;
i                 172 dev/isa/if_ef_isapnp.c 	for (i = 0; i < 3; i++) {
i                 177 dev/isa/if_ef_isapnp.c 		    EF_EEPROM_READ | i);
i                 184 dev/isa/if_ef_isapnp.c 		sc->sc_arpcom.ac_enaddr[(i << 1)] = x >> 8;
i                 185 dev/isa/if_ef_isapnp.c 		sc->sc_arpcom.ac_enaddr[(i << 1) + 1] = x;
i                 243 dev/isa/if_ef_isapnp.c 	int s, len, pad, i;
i                 313 dev/isa/if_ef_isapnp.c 		for (i = 0; i < (m->m_len & 3); i++) {
i                 316 dev/isa/if_ef_isapnp.c 			filler |= m->m_data[(m->m_len & ~3) + i] << 24;
i                 414 dev/isa/if_ef_isapnp.c 	int i, s;
i                 424 dev/isa/if_ef_isapnp.c 	for (i = 0; i < 6; i++)
i                 425 dev/isa/if_ef_isapnp.c 		bus_space_write_1(iot, ioh, EP_W2_ADDR_0 + i,
i                 426 dev/isa/if_ef_isapnp.c 		    sc->sc_arpcom.ac_enaddr[i]);
i                 427 dev/isa/if_ef_isapnp.c 	for (i = 0; i < 3; i += 2)
i                 428 dev/isa/if_ef_isapnp.c 		bus_space_write_2(iot, ioh, EP_W2_RECVMASK_0 + (i * 2), 0);
i                 441 dev/isa/if_ef_isapnp.c 	for (i = 0; i < 10; i++)
i                 442 dev/isa/if_ef_isapnp.c 		(void)bus_space_read_1(iot, ioh, i);
i                 585 dev/isa/if_ef_isapnp.c 	int i;
i                 587 dev/isa/if_ef_isapnp.c 	while ((i = bus_space_read_1(iot, ioh, EF_W1_TX_STATUS)) &
i                 591 dev/isa/if_ef_isapnp.c 		if (i & TXS_JABBER) {
i                 596 dev/isa/if_ef_isapnp.c 				    sc->sc_dv.dv_xname, i);
i                 600 dev/isa/if_ef_isapnp.c 		else if (i & TXS_UNDERRUN) {
i                 605 dev/isa/if_ef_isapnp.c 				    sc->sc_dv.dv_xname, i,
i                 614 dev/isa/if_ef_isapnp.c 		else if (i & TXS_MAX_COLLISION) {
i                 628 dev/isa/if_ef_isapnp.c 	int i = 100, j;
i                 630 dev/isa/if_ef_isapnp.c 	while (i--) {
i                 638 dev/isa/if_ef_isapnp.c 	if (i == 0) {
i                 843 dev/isa/if_ef_isapnp.c 	int i;
i                 845 dev/isa/if_ef_isapnp.c 	for (i = 0; i < 32; i++)
i                 855 dev/isa/if_ef_isapnp.c 	int i, ack, s, val = 0;
i                 877 dev/isa/if_ef_isapnp.c 	for (i = 0x10; i; i >>= 1)
i                 878 dev/isa/if_ef_isapnp.c 		ef_mii_writeb(sc, (phy & i) ? 1 : 0);
i                 881 dev/isa/if_ef_isapnp.c 	for (i = 0x10; i; i >>= 1)
i                 882 dev/isa/if_ef_isapnp.c 		ef_mii_writeb(sc, (reg & i) ? 1 : 0);
i                 902 dev/isa/if_ef_isapnp.c 	for (i = 0x8000; i; i >>= 1) {
i                 907 dev/isa/if_ef_isapnp.c 			val |= i;
i                 928 dev/isa/if_ef_isapnp.c 	int s, i;
i                 945 dev/isa/if_ef_isapnp.c 	for (i = 0x10; i; i >>= 1)
i                 946 dev/isa/if_ef_isapnp.c 		ef_mii_writeb(sc, (phy & i) ? 1 : 0);
i                 948 dev/isa/if_ef_isapnp.c 	for (i = 0x10; i; i >>= 1)
i                 949 dev/isa/if_ef_isapnp.c 		ef_mii_writeb(sc, (reg & i) ? 1 : 0);
i                 954 dev/isa/if_ef_isapnp.c 	for (i = 0x8000; i; i >>= 1)
i                 955 dev/isa/if_ef_isapnp.c 		ef_mii_writeb(sc, (val & i) ? 1 : 0);
i                 144 dev/isa/if_eg.c 	int i;
i                 146 dev/isa/if_eg.c 	for (i = 0; i < sc->eg_pcb[1] + 2; i++)
i                 147 dev/isa/if_eg.c 		DPRINTF(("pcb[%2d] = %x\n", i, sc->eg_pcb[i]));
i                 172 dev/isa/if_eg.c 	int i;
i                 174 dev/isa/if_eg.c 	for (i = 0; i < 4000; i++) {
i                 192 dev/isa/if_eg.c 	int i;
i                 194 dev/isa/if_eg.c 	for (i=0; i < 5000; i++) {
i                 211 dev/isa/if_eg.c 	int i;
i                 213 dev/isa/if_eg.c 	for (i=0; i < 10000; i++) {
i                 229 dev/isa/if_eg.c 	int i;
i                 237 dev/isa/if_eg.c 	for (i = 0; i < len; i++)
i                 238 dev/isa/if_eg.c 		egoutPCB(sc, sc->eg_pcb[i]);
i                 240 dev/isa/if_eg.c 	for (i=0; i < 4000; i++) {
i                 263 dev/isa/if_eg.c 	int i;
i                 287 dev/isa/if_eg.c 	for (i = 0; i < sc->eg_pcb[1]; i++) {
i                 290 dev/isa/if_eg.c 		sc->eg_pcb[2+i] = bus_space_read_1(bst, bsh, EG_COMMAND);
i                 321 dev/isa/if_eg.c 	int i;
i                 337 dev/isa/if_eg.c 	for (i = 0; i < 5000; i++) {
i                 537 dev/isa/if_eg.c 	u_int i;
i                 591 dev/isa/if_eg.c 		for (i = 10000; i != 0; i--) {
i                 596 dev/isa/if_eg.c 		if (i == 0) {
i                 613 dev/isa/if_eg.c 	int i, len;
i                 629 dev/isa/if_eg.c 				for (i = 10000; i != 0; i--) {
i                 634 dev/isa/if_eg.c 				if (i == 0) {
i                 665 dev/isa/if_eg.c 			bcopy(&sc->eg_pcb[2], &i, sizeof(i));
i                 666 dev/isa/if_eg.c 			DPRINTF(("Receive Packets %d\n", i));
i                 667 dev/isa/if_eg.c 			bcopy(&sc->eg_pcb[6], &i, sizeof(i));
i                 668 dev/isa/if_eg.c 			DPRINTF(("Transmit Packets %d\n", i));
i                 115 dev/isa/if_el.c 	int i;
i                 138 dev/isa/if_el.c 	for (i = 0; i < ETHER_ADDR_LEN; i++) {
i                 139 dev/isa/if_el.c 		outb(iobase+EL_GPBL, i);
i                 140 dev/isa/if_el.c 		station_addr[i] = inb(iobase+EL_EAW);
i                 241 dev/isa/if_el.c 	int i;
i                 247 dev/isa/if_el.c 	for (i = 0; i < ETHER_ADDR_LEN; i++)
i                 248 dev/isa/if_el.c 		outb(iobase+i, sc->sc_arpcom.ac_enaddr[i]);
i                 300 dev/isa/if_el.c 	int s, i, off, retries;
i                 344 dev/isa/if_el.c 		for (i = 0;
i                 345 dev/isa/if_el.c 		    i < ETHER_MIN_LEN - ETHER_CRC_LEN - m0->m_pkthdr.len; i++)
i                 360 dev/isa/if_el.c 			i = inb(iobase+EL_TXS);
i                 361 dev/isa/if_el.c 			dprintf(("tx status=0x%x\n", i));
i                 362 dev/isa/if_el.c 			if ((i & EL_TXS_READY) == 0) {
i                 363 dev/isa/if_el.c 				dprintf(("el: err txs=%x\n", i));
i                 364 dev/isa/if_el.c 				if (i & (EL_TXS_COLL | EL_TXS_COLL16)) {
i                 366 dev/isa/if_el.c 					if ((i & EL_TXC_DCOLL16) == 0 &&
i                 408 dev/isa/if_el.c 	int i;
i                 418 dev/isa/if_el.c 	i = 20000;
i                 419 dev/isa/if_el.c 	while ((inb(iobase+EL_AS) & EL_AS_TXBUSY) && (i > 0))
i                 420 dev/isa/if_el.c 		i--;
i                 421 dev/isa/if_el.c 	if (i == 0) {
i                 425 dev/isa/if_el.c 	dprintf(("%d cycles.\n", 20000 - i));
i                 150 dev/isa/if_ep_isa.c 	int slot, iobase, irq, i, pnp;
i                 236 dev/isa/if_ep_isa.c 	for (i = 0; i < nepcards; i++) {
i                 237 dev/isa/if_ep_isa.c 		if (epcards[i].bus != bus)
i                 239 dev/isa/if_ep_isa.c 		if (epcards[i].available == 0)
i                 242 dev/isa/if_ep_isa.c 		    ia->ia_iobase != epcards[i].iobase)
i                 245 dev/isa/if_ep_isa.c 		    ia->ia_irq != epcards[i].irq)
i                 252 dev/isa/if_ep_isa.c 	epcards[i].available = 0;
i                 253 dev/isa/if_ep_isa.c 	ia->ia_iobase = epcards[i].iobase;
i                 254 dev/isa/if_ep_isa.c 	ia->ia_irq = epcards[i].irq;
i                 257 dev/isa/if_ep_isa.c 	ia->ia_aux = (void *)(long)(epcards[i].model);
i                 314 dev/isa/if_ex.c 	int s, i;
i                 331 dev/isa/if_ex.c 	for (i = 0; i < ETHER_ADDR_LEN; i++)
i                 332 dev/isa/if_ex.c 		ISA_PUT(I_ADDR_REG0 + i, sc->arpcom.ac_enaddr[i]);
i                 404 dev/isa/if_ex.c 	int i, s, len, data_len, avail, dest, next;
i                 437 dev/isa/if_ex.c 		if ((i = sc->tx_tail - sc->tx_head) >= 0)
i                 438 dev/isa/if_ex.c 			avail = sc->tx_mem_size - i;
i                 440 dev/isa/if_ex.c 			avail = -i;
i                 441 dev/isa/if_ex.c 		DODEBUG(Sent_Pkts, printf("i=%d, avail=%d\n", i, avail););
i                 485 dev/isa/if_ex.c 			for (m = opkt, i = 0; m != NULL; m = m->m_next) {
i                 487 dev/isa/if_ex.c 				if (i) {
i                 492 dev/isa/if_ex.c 				    + i, (m->m_len - i) / 2);
i                 493 dev/isa/if_ex.c 				if ((i = (m->m_len - i) & 1))
i                 497 dev/isa/if_ex.c 			if (i)
i                 512 dev/isa/if_ex.c 				i = ISA_GET_2(IO_PORT_REG);
i                 515 dev/isa/if_ex.c 				ISA_PUT_2(IO_PORT_REG, i | Ch_bit);
i                 895 dev/isa/if_ex.c 	int i;
i                 902 dev/isa/if_ex.c 	for (i = 8; i >= 0; i--) {
i                 903 dev/isa/if_ex.c 		short outval = (read_cmd & (1 << i)) ? ctrl_val | EEDI : 
i                 912 dev/isa/if_ex.c 	for (i = 16; i > 0; i--) {
i                 462 dev/isa/if_ie.c 	int i, rval = 0;
i                 490 dev/isa/if_ie.c 	for (i = 0; i < 6; i++)
i                 491 dev/isa/if_ie.c 		if (inb(PORT + i) != signature[i])
i                 508 dev/isa/if_ie.c 	i = inb(PORT + 3);
i                 511 dev/isa/if_ie.c 	sc->hard_vers = 10*(i / 16) + (i % 16) - 1;
i                 513 dev/isa/if_ie.c 	i = inb(PORT + IE507_IRQ) & 0x0f;
i                 516 dev/isa/if_ie.c 		if (ia->ia_irq != i) {
i                 518 dev/isa/if_ie.c 			    sc->sc_dev.dv_xname, ia->ia_irq, i);
i                 522 dev/isa/if_ie.c 		ia->ia_irq = i;
i                 524 dev/isa/if_ie.c 	i = ((inb(PORT + IE507_MADDR) & 0x1c) << 12) + 0xc0000;
i                 527 dev/isa/if_ie.c 		if (ia->ia_maddr != i) {
i                 529 dev/isa/if_ie.c 			    sc->sc_dev.dv_xname, ia->ia_maddr, i);
i                 533 dev/isa/if_ie.c 		ia->ia_maddr = i;
i                 578 dev/isa/if_ie.c 	int i;
i                 597 dev/isa/if_ie.c 	for (i=0; i<4 ; i++) {
i                 632 dev/isa/if_ie.c 		i = (ee16_read_eeprom(sc, 6) & 0x00ff ) >> 3;
i                 633 dev/isa/if_ie.c 		switch(i) {
i                 661 dev/isa/if_ie.c 	for(i=0 ; i< 0x40 ; i++)
i                 662 dev/isa/if_ie.c 		checksum += ee16_read_eeprom(sc, i);
i                 902 dev/isa/if_ie.c 	int i, status;
i                 905 dev/isa/if_ie.c 	i = sc->rfhead;
i                 907 dev/isa/if_ie.c 		status = sc->rframes[i]->ie_fd_status;
i                 919 dev/isa/if_ie.c 			ie_readframe(sc, i);
i                 930 dev/isa/if_ie.c 		i = (i + 1) % NFRAMES;
i                1034 dev/isa/if_ie.c 	int i;
i                1080 dev/isa/if_ie.c 		for (i = 0; i < sc->mcast_count; i++) {
i                1081 dev/isa/if_ie.c 			if (ether_equal(eh->ether_dhost, (u_char *)&sc->mcast_addrs[i])) {
i                1157 dev/isa/if_ie.c 	int i;
i                1165 dev/isa/if_ie.c 		i = sc->rbuffs[head]->ie_rbd_actual & IE_RBD_LAST;
i                1169 dev/isa/if_ie.c 	} while (!i);
i                1424 dev/isa/if_ie.c 	int i;
i                1441 dev/isa/if_ie.c 		i = sc->rbuffs[sc->rbhead]->ie_rbd_actual & IE_RBD_LAST;
i                1448 dev/isa/if_ie.c 	} while (!i);
i                1711 dev/isa/if_ie.c 	int ectrl, i;
i                1715 dev/isa/if_ie.c 	for (i = count - 1; i >= 0; i--) {
i                1717 dev/isa/if_ie.c 		if (edata & (1 << i)) {
i                1734 dev/isa/if_ie.c 	int ectrl, edata, i;
i                1738 dev/isa/if_ie.c 	for (edata = 0, i = 0; i < 16; i++) {
i                1779 dev/isa/if_ie.c 	int i;
i                1781 dev/isa/if_ie.c 	for (i = 0; i < ETHER_ADDR_LEN; i++)
i                1782 dev/isa/if_ie.c 		addr[i] = inb(PORT + i);
i                1824 dev/isa/if_ie.c 	int i;
i                1841 dev/isa/if_ie.c 		for (i = 36900; i--; DELAY(10))
i                1845 dev/isa/if_ie.c 		return i < 0;
i                1913 dev/isa/if_ie.c 	int i;
i                1916 dev/isa/if_ie.c 	for (i = 0; i < NFRAMES; i++)
i                1917 dev/isa/if_ie.c 		sc->rframes[i] = ALLOC(ptr, sizeof(*sc->rframes[i]));
i                1920 dev/isa/if_ie.c 	for (i = 0; i < NFRAMES; i++)
i                1921 dev/isa/if_ie.c 		sc->rframes[i]->ie_fd_next =
i                1922 dev/isa/if_ie.c 		    MK_16(MEM, sc->rframes[(i + 1) % NFRAMES]);
i                1932 dev/isa/if_ie.c 	for (i = 0; i < NRXBUF; i++) {
i                1933 dev/isa/if_ie.c 		sc->rbuffs[i] = ALLOC(ptr, sizeof(*sc->rbuffs[i]));
i                1934 dev/isa/if_ie.c 		sc->rbuffs[i]->ie_rbd_length = IE_RBUF_SIZE;
i                1935 dev/isa/if_ie.c 		sc->rbuffs[i]->ie_rbd_buffer = MK_24(MEM, ptr);
i                1936 dev/isa/if_ie.c 		sc->cbuffs[i] = ALLOC(ptr, IE_RBUF_SIZE);
i                1940 dev/isa/if_ie.c 	for (i = 0; i < NRXBUF; i++)
i                1941 dev/isa/if_ie.c 		sc->rbuffs[i]->ie_rbd_next =
i                1942 dev/isa/if_ie.c 		    MK_16(MEM, sc->rbuffs[(i + 1) % NRXBUF]);
i                1963 dev/isa/if_ie.c 	for (i = 0; i < NTXBUF; i++) {
i                1964 dev/isa/if_ie.c 		sc->xmit_cmds[i] = ALLOC(ptr, sizeof(*sc->xmit_cmds[i]));
i                1965 dev/isa/if_ie.c 		sc->xmit_buffs[i] = ALLOC(ptr, sizeof(*sc->xmit_buffs[i]));
i                1968 dev/isa/if_ie.c 	for (i = 0; i < NTXBUF; i++)
i                1969 dev/isa/if_ie.c 		sc->xmit_cbuffs[i] = ALLOC(ptr, IE_TBUF_SIZE);
i                 122 dev/isa/if_le_isa.c 	int i;
i                 153 dev/isa/if_le_isa.c 	for (i = 0; i < 32; i++)
i                 164 dev/isa/if_le_isa.c 	for (i = 0; i < 32; i++)
i                 178 dev/isa/if_le_isa.c 	for (i = 0; i < sizeof(sc->sc_arpcom.ac_enaddr); i++)
i                 179 dev/isa/if_le_isa.c 		sc->sc_arpcom.ac_enaddr[i] = bus_space_read_1(iot, ioh, port);
i                 218 dev/isa/if_le_isa.c 	int i;
i                 236 dev/isa/if_le_isa.c 	for (i = 0; i < sizeof(sc->sc_arpcom.ac_enaddr); i++)
i                 237 dev/isa/if_le_isa.c 		sc->sc_arpcom.ac_enaddr[i] = bus_space_read_1(iot, ioh, i);
i                 251 dev/isa/if_le_isa.c 	int i;
i                 269 dev/isa/if_le_isa.c 	for (i = 0; i < sizeof(sc->sc_arpcom.ac_enaddr); i++)
i                 270 dev/isa/if_le_isa.c 		sc->sc_arpcom.ac_enaddr[i] = bus_space_read_1(iot, ioh, i * 2);
i                 314 dev/isa/if_le_isa.c 		int i;
i                 320 dev/isa/if_le_isa.c 			for (i = 0; i < ia->ia_msize; i++)
i                 321 dev/isa/if_le_isa.c 				mem[i] = val;
i                 322 dev/isa/if_le_isa.c 			for (i = 0; i < ia->ia_msize; i++)
i                 323 dev/isa/if_le_isa.c 				if (mem[i] != val) {
i                  90 dev/isa/if_le_isapnp.c 	int i;
i                 101 dev/isa/if_le_isapnp.c 	for (i = 0; i < sizeof(sc->sc_arpcom.ac_enaddr); i++)
i                 102 dev/isa/if_le_isapnp.c 		sc->sc_arpcom.ac_enaddr[i] = bus_space_read_1(iot, ioh, i);
i                 109 dev/isa/if_rln_isa.c 	int i;
i                 114 dev/isa/if_rln_isa.c 		for (i = 0; i < NRLN_IRQ; i++)
i                 115 dev/isa/if_rln_isa.c 			mask |= (1 << rln_irq[i]);
i                 122 dev/isa/if_rln_isa.c 		for (i = 0; i < NRLN_IRQ; i++)
i                 123 dev/isa/if_rln_isa.c 			if (irq == rln_irq[i])
i                 125 dev/isa/if_rln_isa.c 		if (i == NRLN_IRQ)
i                 202 dev/isa/if_we.c 	int i, is790, rv = 0;
i                 238 dev/isa/if_we.c 	for (x = 0, i = 0; i < 8; i++)
i                 239 dev/isa/if_we.c 		x += bus_space_read_1(asict, asich, WE_PROM + i);
i                 300 dev/isa/if_we.c 		i = ((x & WE790_GCR_IR2) >> 4) |
i                 305 dev/isa/if_we.c 		if (ia->ia_irq != IRQUNK && ia->ia_irq != we_790_irq[i])
i                 308 dev/isa/if_we.c 			    we_790_irq[i]);
i                 309 dev/isa/if_we.c 		ia->ia_irq = we_790_irq[i];
i                 312 dev/isa/if_we.c 		i = (bus_space_read_1(asict, asich, WE_ICR) & WE_ICR_IR2) |
i                 316 dev/isa/if_we.c 		if (ia->ia_irq != IRQUNK && ia->ia_irq != we_584_irq[i])
i                 319 dev/isa/if_we.c 			    we_584_irq[i]);
i                 320 dev/isa/if_we.c 		ia->ia_irq = we_584_irq[i];
i                 346 dev/isa/if_we.c 	int i;
i                 410 dev/isa/if_we.c 	for (i = 0; i < 16; i++)
i                 411 dev/isa/if_we.c 		sc->sc_reg_map[i] = i;
i                 419 dev/isa/if_we.c 	for (i = 0; i < ETHER_ADDR_LEN; i++)
i                 420 dev/isa/if_we.c 		sc->sc_arpcom.ac_enaddr[i] =
i                 421 dev/isa/if_we.c 		    bus_space_read_1(asict, asich, WE_PROM + i);
i                 559 dev/isa/if_we.c 	int i;
i                 567 dev/isa/if_we.c 		for (i = 0; i < memsize; i += 2) {
i                 568 dev/isa/if_we.c 			if (bus_space_read_2(memt, memh, i) != 0)
i                 572 dev/isa/if_we.c 		for (i = 0; i < memsize; i++) {
i                 573 dev/isa/if_we.c 			if (bus_space_read_1(memt, memh, i) != 0)
i                 582 dev/isa/if_we.c 	    sc->sc_dev.dv_xname, i);
i                 932 dev/isa/if_we.c 		int i;
i                 936 dev/isa/if_we.c 		for (i = 0; i < 8; i++)
i                 937 dev/isa/if_we.c 			printf("     %d -> 0x%x\n", i,
i                 938 dev/isa/if_we.c 			    bus_space_read_1(asict, asich, i));
i                 122 dev/isa/isadma.c 	int i, sz;
i                 128 dev/isa/isadma.c 	for (i = 0; i < 8; i++) {
i                 129 dev/isa/isadma.c 		sz = (i & 4) ? 1 << 17 : 1 << 16;
i                 132 dev/isa/isadma.c 		    &isadma_dmam[i])) != 0)
i                  97 dev/isa/isagpio.c 	int i;
i                 110 dev/isa/isagpio.c 	for (i = 0; i < ISAGPIO_NPINS; i++) {
i                 111 dev/isa/isagpio.c 		sc->sc_gpio_pins[i].pin_num = i;
i                 112 dev/isa/isagpio.c 		sc->sc_gpio_pins[i].pin_caps = GPIO_PIN_INPUT | GPIO_PIN_OUTPUT;
i                 113 dev/isa/isagpio.c 		sc->sc_gpio_pins[i].pin_state = GPIO_PIN_LOW;
i                  98 dev/isa/isapnp.c 	int i;
i                 106 dev/isa/isapnp.c 	for (i = 0; i < ISAPNP_LFSR_LENGTH; i++) {
i                 144 dev/isa/isapnp.c 	int i, b;
i                 161 dev/isa/isapnp.c 	for(i = 0; i < 8; i++) {
i                 170 dev/isa/isapnp.c 		sc->sc_id[sc->sc_ncards][i] = w;
i                 235 dev/isa/isapnp.c isapnp_alloc_irq(ic, i)
i                 237 dev/isa/isapnp.c 	struct isapnp_pin *i;
i                 241 dev/isa/isapnp.c 	i->type = (i->flags & LEVEL_IRQ) ? IST_LEVEL : IST_EDGE;
i                 243 dev/isa/isapnp.c 	if (i->bits == 0) {
i                 244 dev/isa/isapnp.c 		i->num = 0;
i                 248 dev/isa/isapnp.c 	if (isa_intr_alloc(ic, i->bits, i->type, &irq) == 0) {
i                 249 dev/isa/isapnp.c 		i->num = irq;
i                 260 dev/isa/isapnp.c isapnp_alloc_drq(isa, i)
i                 262 dev/isa/isapnp.c 	struct isapnp_pin *i;
i                 267 dev/isa/isapnp.c 	if (i->bits == 0) {
i                 268 dev/isa/isapnp.c 		i->num = 0;
i                 273 dev/isa/isapnp.c 		if ((i->bits & (1 << b)) && isa_drq_isfree(isa, b)) {
i                 274 dev/isa/isapnp.c 			i->num = b;
i                 373 dev/isa/isapnp.c 	int i;
i                 376 dev/isa/isapnp.c 	for (i = 0; i < ipa->ipa_ndrq; i++)
i                 377 dev/isa/isapnp.c 		isapnp_free_pin(&ipa->ipa_drq[i]);
i                 379 dev/isa/isapnp.c 	for (i = 0; i < ipa->ipa_nirq; i++)
i                 380 dev/isa/isapnp.c 		isapnp_free_pin(&ipa->ipa_irq[i]);
i                 383 dev/isa/isapnp.c 	for (i = 0; i < ipa->ipa_nmem32; i++)
i                 384 dev/isa/isapnp.c 		isapnp_free_region(memt, &ipa->ipa_mem32[i]);
i                 386 dev/isa/isapnp.c 	for (i = 0; i < ipa->ipa_nmem; i++)
i                 387 dev/isa/isapnp.c 		isapnp_free_region(memt, &ipa->ipa_mem[i]);
i                 389 dev/isa/isapnp.c 	for (i = 0; i < ipa->ipa_nio; i++)
i                 390 dev/isa/isapnp.c 		isapnp_free_region(iot, &ipa->ipa_io[i]);
i                 511 dev/isa/isapnp.c 	size_t i;
i                 517 dev/isa/isapnp.c 	for (i = 0; i < n; i++, r++) {
i                 521 dev/isa/isapnp.c 		if (i != n - 1)
i                 536 dev/isa/isapnp.c 	size_t i;
i                 542 dev/isa/isapnp.c 	for (i = 0; i < n; i++, p++) {
i                 544 dev/isa/isapnp.c 		if (i != n - 1)
i                 615 dev/isa/isapnp.c 	int i;
i                 617 dev/isa/isapnp.c 	for (i = 0; i < sizeof(isapnp_knowndevs)/sizeof(isapnp_knowndevs[0]); i++) {
i                 620 dev/isa/isapnp.c 		if (strcmp(isapnp_knowndevs[i].pnpid, ipa->ipa_devlogic) == 0)
i                 621 dev/isa/isapnp.c 			dname = isapnp_knowndevs[i].driver;
i                 622 dev/isa/isapnp.c 		else if (strcmp(isapnp_knowndevs[i].pnpid, ipa->ipa_devcompat) == 0)
i                 623 dev/isa/isapnp.c 			dname = isapnp_knowndevs[i].driver;
i                 694 dev/isa/isapnp.c 	int i;
i                 713 dev/isa/isapnp.c 	for (i = 0; i < sizeof(isapnp_io_range); i++) {
i                 714 dev/isa/isapnp.c 		if (i < ipa->ipa_nio)
i                 715 dev/isa/isapnp.c 			r = &ipa->ipa_io[i];
i                 720 dev/isa/isapnp.c 		    isapnp_io_range[i] + ISAPNP_IO_BASE_15_8, B1(r->base));
i                 722 dev/isa/isapnp.c 		    isapnp_io_range[i] + ISAPNP_IO_BASE_7_0, B0(r->base));
i                 725 dev/isa/isapnp.c 	for (i = 0; i < sizeof(isapnp_mem_range); i++) {
i                 726 dev/isa/isapnp.c 		if (i < ipa->ipa_nmem)
i                 727 dev/isa/isapnp.c 			r = &ipa->ipa_mem[i];
i                 732 dev/isa/isapnp.c 		    isapnp_mem_range[i] + ISAPNP_MEM_BASE_23_16, B2(r->base));
i                 734 dev/isa/isapnp.c 		    isapnp_mem_range[i] + ISAPNP_MEM_BASE_15_8, B1(r->base));
i                 737 dev/isa/isapnp.c 		    isapnp_mem_range[i] + ISAPNP_MEM_LRANGE_23_16,
i                 740 dev/isa/isapnp.c 		    isapnp_mem_range[i] + ISAPNP_MEM_LRANGE_15_8,
i                 744 dev/isa/isapnp.c 	for (i = 0; i < sizeof(isapnp_irq_range); i++) {
i                 747 dev/isa/isapnp.c 		if (i < ipa->ipa_nirq)
i                 748 dev/isa/isapnp.c 			p = &ipa->ipa_irq[i];
i                 753 dev/isa/isapnp.c 		    isapnp_irq_range[i] + ISAPNP_IRQ_NUMBER, p->num);
i                 774 dev/isa/isapnp.c 		    isapnp_irq_range[i] + ISAPNP_IRQ_CONTROL, v);
i                 777 dev/isa/isapnp.c 	for (i = 0; i < sizeof(isapnp_drq_range); i++) {
i                 780 dev/isa/isapnp.c 		if (i < ipa->ipa_ndrq)
i                 781 dev/isa/isapnp.c 			v = ipa->ipa_drq[i].num;
i                 785 dev/isa/isapnp.c 		isapnp_write_reg(sc, isapnp_drq_range[i], v);
i                 788 dev/isa/isapnp.c 	for (i = 0; i < sizeof(isapnp_mem32_range); i++) {
i                 789 dev/isa/isapnp.c 		if (i < ipa->ipa_nmem32)
i                 790 dev/isa/isapnp.c 			r = &ipa->ipa_mem32[i];
i                 795 dev/isa/isapnp.c 		    isapnp_mem32_range[i] + ISAPNP_MEM32_BASE_31_24,
i                 798 dev/isa/isapnp.c 		    isapnp_mem32_range[i] + ISAPNP_MEM32_BASE_23_16,
i                 801 dev/isa/isapnp.c 		    isapnp_mem32_range[i] + ISAPNP_MEM32_BASE_15_8,
i                 804 dev/isa/isapnp.c 		    isapnp_mem32_range[i] + ISAPNP_MEM32_BASE_7_0,
i                 808 dev/isa/isapnp.c 		    isapnp_mem32_range[i] + ISAPNP_MEM32_LRANGE_31_24,
i                 811 dev/isa/isapnp.c 		    isapnp_mem32_range[i] + ISAPNP_MEM32_LRANGE_23_16,
i                 814 dev/isa/isapnp.c 		    isapnp_mem32_range[i] + ISAPNP_MEM32_LRANGE_15_8,
i                 817 dev/isa/isapnp.c 		    isapnp_mem32_range[i] + ISAPNP_MEM32_LRANGE_7_0,
i                 106 dev/isa/isapnpdebug.c 	int i;
i                 109 dev/isa/isapnpdebug.c 	for (i = 0; i < 16; i++)
i                 110 dev/isa/isapnpdebug.c 		if (irq->bits & (1 << i))
i                 111 dev/isa/isapnpdebug.c 		    printf("%d ", i);
i                 132 dev/isa/isapnpdebug.c 	int i;
i                 136 dev/isa/isapnpdebug.c 	for (i = 0; i < 8; i++)
i                 137 dev/isa/isapnpdebug.c 		if (drq->bits & (1 << i))
i                 138 dev/isa/isapnpdebug.c 		    printf("%d ", i);
i                 222 dev/isa/isapnpdebug.c 	int i;
i                 228 dev/isa/isapnpdebug.c 	for (i = 0; i < pa->ipa_nio; i++)
i                 229 dev/isa/isapnpdebug.c 		isapnp_print_io("", &pa->ipa_io[i]);
i                 231 dev/isa/isapnpdebug.c 	for (i = 0; i < pa->ipa_nmem; i++)
i                 232 dev/isa/isapnpdebug.c 		isapnp_print_mem("", &pa->ipa_mem[i]);
i                 234 dev/isa/isapnpdebug.c 	for (i = 0; i < pa->ipa_nirq; i++)
i                 235 dev/isa/isapnpdebug.c 		isapnp_print_irq("", &pa->ipa_irq[i]);
i                 237 dev/isa/isapnpdebug.c 	for (i = 0; i < pa->ipa_ndrq; i++)
i                 238 dev/isa/isapnpdebug.c 		isapnp_print_drq("", &pa->ipa_drq[i]);
i                 240 dev/isa/isapnpdebug.c 	for (i = 0; i < pa->ipa_nmem32; i++)
i                 241 dev/isa/isapnpdebug.c 		isapnp_print_mem("", &pa->ipa_mem32[i]);
i                 253 dev/isa/isapnpdebug.c 	int i;
i                 265 dev/isa/isapnpdebug.c 	for (i = 0; i < sizeof(isapnp_io_range); i++) {
i                 266 dev/isa/isapnpdebug.c 		r = &pa->ipa_io[i];
i                 268 dev/isa/isapnpdebug.c 		    isapnp_io_range[i] + ISAPNP_IO_BASE_15_8);
i                 270 dev/isa/isapnpdebug.c 		    isapnp_io_range[i] + ISAPNP_IO_BASE_7_0);
i                 275 dev/isa/isapnpdebug.c 	pa->ipa_nio = i;
i                 277 dev/isa/isapnpdebug.c 	for (i = 0; i < sizeof(isapnp_mem_range); i++) {
i                 278 dev/isa/isapnpdebug.c 		r = &pa->ipa_mem[i];
i                 280 dev/isa/isapnpdebug.c 		    isapnp_mem_range[i] + ISAPNP_MEM_BASE_23_16);
i                 282 dev/isa/isapnpdebug.c 		    isapnp_mem_range[i] + ISAPNP_MEM_BASE_15_8);
i                 288 dev/isa/isapnpdebug.c 		    isapnp_mem_range[i] + ISAPNP_MEM_LRANGE_23_16);
i                 290 dev/isa/isapnpdebug.c 		    isapnp_mem_range[i] + ISAPNP_MEM_LRANGE_15_8);
i                 293 dev/isa/isapnpdebug.c 		    isapnp_mem_range[i] + ISAPNP_MEM_CONTROL);
i                 300 dev/isa/isapnpdebug.c 	pa->ipa_nmem = i;
i                 302 dev/isa/isapnpdebug.c 	for (i = 0; i < sizeof(isapnp_irq_range); i++) {
i                 304 dev/isa/isapnpdebug.c 		    isapnp_irq_range[i] + ISAPNP_IRQ_NUMBER);
i                 305 dev/isa/isapnpdebug.c 		p = &pa->ipa_irq[i];
i                 325 dev/isa/isapnpdebug.c 	pa->ipa_nirq = i;
i                 327 dev/isa/isapnpdebug.c 	for (i = 0; i < sizeof(isapnp_drq_range); i++) {
i                 328 dev/isa/isapnpdebug.c 		v0 = isapnp_read_reg(sc, isapnp_drq_range[i]);
i                 329 dev/isa/isapnpdebug.c 		p = &pa->ipa_drq[i];
i                 334 dev/isa/isapnpdebug.c 	pa->ipa_ndrq = i;
i                 336 dev/isa/isapnpdebug.c 	for (i = 0; i < sizeof(isapnp_mem32_range); i++) {
i                 337 dev/isa/isapnpdebug.c 		r = &pa->ipa_mem32[i];
i                 339 dev/isa/isapnpdebug.c 		    isapnp_mem32_range[i] + ISAPNP_MEM32_BASE_31_24);
i                 341 dev/isa/isapnpdebug.c 		    isapnp_mem32_range[i] + ISAPNP_MEM32_BASE_23_16);
i                 343 dev/isa/isapnpdebug.c 		    isapnp_mem32_range[i] + ISAPNP_MEM32_BASE_15_8);
i                 345 dev/isa/isapnpdebug.c 		    isapnp_mem32_range[i] + ISAPNP_MEM32_BASE_7_0);
i                 351 dev/isa/isapnpdebug.c 		    isapnp_mem32_range[i] + ISAPNP_MEM32_LRANGE_31_24);
i                 353 dev/isa/isapnpdebug.c 		    isapnp_mem32_range[i] + ISAPNP_MEM32_LRANGE_23_16);
i                 355 dev/isa/isapnpdebug.c 		    isapnp_mem32_range[i] + ISAPNP_MEM32_LRANGE_15_8);
i                 357 dev/isa/isapnpdebug.c 		    isapnp_mem32_range[i] + ISAPNP_MEM32_LRANGE_7_0);
i                 360 dev/isa/isapnpdebug.c 		    isapnp_mem_range[i] + ISAPNP_MEM_CONTROL);
i                 363 dev/isa/isapnpdebug.c 	pa->ipa_nmem32 = i;
i                 374 dev/isa/isapnpdebug.c 	int i;
i                 380 dev/isa/isapnpdebug.c 		for (i = 0; i < pa->ipa_nio; i++) {
i                 381 dev/isa/isapnpdebug.c 			r = &pa->ipa_io[i];
i                 382 dev/isa/isapnpdebug.c 			printf("io[%d]: 0x%x/%d\n", i, r->base, r->length);
i                 386 dev/isa/isapnpdebug.c 		for (i = 0; i < pa->ipa_nmem; i++) {
i                 387 dev/isa/isapnpdebug.c 			r = &pa->ipa_mem[i];
i                 388 dev/isa/isapnpdebug.c 			printf("mem[%d]: 0x%x/%d\n", i, r->base, r->length);
i                 392 dev/isa/isapnpdebug.c 		for (i = 0; i < pa->ipa_nirq; i++) {
i                 393 dev/isa/isapnpdebug.c 			p = &pa->ipa_irq[i];
i                 394 dev/isa/isapnpdebug.c 			printf("irq[%d]: %d\n", i, p->num);
i                 398 dev/isa/isapnpdebug.c 		for (i = 0; i < pa->ipa_ndrq; i++) {
i                 399 dev/isa/isapnpdebug.c 			p = &pa->ipa_drq[i];
i                 400 dev/isa/isapnpdebug.c 			printf("drq[%d]: %d\n", i, p->num);
i                 404 dev/isa/isapnpdebug.c 		for (i = 0; i < pa->ipa_nmem32; i++) {
i                 405 dev/isa/isapnpdebug.c 			r = &pa->ipa_mem32[i];
i                 406 dev/isa/isapnpdebug.c 			printf("mem32[%d]: 0x%x/%d\n", i, r->base, r->length);
i                  74 dev/isa/isapnpres.c 	int i;
i                  77 dev/isa/isapnpres.c 	for (i = 0; i < 10; i++) {
i                 157 dev/isa/isapnpres.c 	int i;
i                 159 dev/isa/isapnpres.c 	for (i = 0; i < d->ipa_nio; i++)
i                 160 dev/isa/isapnpres.c 		c->ipa_io[c->ipa_nio++] = d->ipa_io[i];
i                 162 dev/isa/isapnpres.c 	for (i = 0; i < d->ipa_nmem; i++)
i                 163 dev/isa/isapnpres.c 		c->ipa_mem[c->ipa_nmem++] = d->ipa_mem[i];
i                 165 dev/isa/isapnpres.c 	for (i = 0; i < d->ipa_nmem32; i++)
i                 166 dev/isa/isapnpres.c 		c->ipa_mem32[c->ipa_nmem32++] = d->ipa_mem32[i];
i                 168 dev/isa/isapnpres.c 	for (i = 0; i < d->ipa_nirq; i++)
i                 169 dev/isa/isapnpres.c 		c->ipa_irq[c->ipa_nirq++] = d->ipa_irq[i];
i                 171 dev/isa/isapnpres.c 	for (i = 0; i < d->ipa_ndrq; i++)
i                 172 dev/isa/isapnpres.c 		c->ipa_drq[c->ipa_ndrq++] = d->ipa_drq[i];
i                 423 dev/isa/isapnpres.c 			int i;
i                 425 dev/isa/isapnpres.c 			for (i = 0; i < len; i++)
i                 426 dev/isa/isapnpres.c 				printf("%.2x ", buf[i]);
i                 447 dev/isa/isapnpres.c 	int i;
i                 462 dev/isa/isapnpres.c 	for (i = 0; i < ISAPNP_SERIAL_SIZE; i++) {
i                 465 dev/isa/isapnpres.c 		if (d != sc->sc_id[c][i] && i != ISAPNP_SERIAL_SIZE - 1) {
i                 468 dev/isa/isapnpres.c 				    sc->sc_dev.dv_xname, c + 1, i);
i                 471 dev/isa/isapnpres.c 			if (i == 0) {
i                 498 dev/isa/isapnpres.c 		for (p = buf, i = 0; i < len; i++) {
i                 500 dev/isa/isapnpres.c 			if (i < ISAPNP_MAX_TAGSIZE)
i                 134 dev/isa/it.c   	int i;
i                 145 dev/isa/it.c   	i = it_readreg(sc, ITD_CHIPID);
i                 146 dev/isa/it.c   	switch (i) {
i                 172 dev/isa/it.c   	for (i = 0; i < sc->numsensors; ++i)
i                 173 dev/isa/it.c   		sensor_attach(&sc->sensordev, &sc->sensors[i]);
i                 194 dev/isa/it.c   	int i;
i                 196 dev/isa/it.c   	for (i = 0; i < n; ++i) {
i                 197 dev/isa/it.c   		sc->sensors[start + i].type = SENSOR_VOLTS_DC;
i                 223 dev/isa/it.c   	int i;
i                 225 dev/isa/it.c   	for (i = 0; i < n; ++i)
i                 226 dev/isa/it.c   		sc->sensors[start + i].type = SENSOR_TEMP;
i                 232 dev/isa/it.c   	int i;
i                 234 dev/isa/it.c   	for (i = 0; i < n; ++i)
i                 235 dev/isa/it.c   		sc->sensors[start + i].type = SENSOR_FANRPM;
i                 241 dev/isa/it.c   	int i, sdata;
i                 243 dev/isa/it.c   	for (i = 0; i < 3; i++) {
i                 244 dev/isa/it.c   		sdata = it_readreg(sc, ITD_SENSORTEMPBASE + i);
i                 246 dev/isa/it.c   		sensors[i].value = sdata * 1000000 + 273150000;
i                 253 dev/isa/it.c   	int i, sdata;
i                 255 dev/isa/it.c   	for (i = 0; i < 9; i++) {
i                 256 dev/isa/it.c   		sdata = it_readreg(sc, ITD_SENSORVOLTBASE + i);
i                 257 dev/isa/it.c   		DPRINTF(("sdata[volt%d] 0x%x\n", i, sdata));
i                 259 dev/isa/it.c   		sensors[i].value = (sdata << 4);
i                 261 dev/isa/it.c   		if (i == 5 || i == 6)
i                 262 dev/isa/it.c   			sensors[i].value = ((sdata << 4) - IT_VREF);
i                 264 dev/isa/it.c   		sensors[i].value *= it_vrfact[i];
i                 266 dev/isa/it.c   		sensors[i].value /= 10;
i                 267 dev/isa/it.c   		if (i == 5 || i == 6)
i                 268 dev/isa/it.c   			sensors[i].value += IT_VREF * 1000;
i                 275 dev/isa/it.c   	int i, sdata, divisor, odivisor, ndivisor;
i                 278 dev/isa/it.c   	for (i = 0; i < 3; i++, divisor >>= 3) {
i                 279 dev/isa/it.c   		sensors[i].flags &= ~SENSOR_FINVALID;
i                 280 dev/isa/it.c   		if ((sdata = it_readreg(sc, ITD_SENSORFANBASE + i)) == 0xff) {
i                 281 dev/isa/it.c   			sensors[i].flags |= SENSOR_FINVALID;
i                 282 dev/isa/it.c   			if (i == 2)
i                 285 dev/isa/it.c   				ndivisor &= ~(7 << (i * 3));
i                 286 dev/isa/it.c   				ndivisor |= ((divisor + 1) & 7) << (i * 3);
i                 289 dev/isa/it.c   			sensors[i].value = 0;
i                 291 dev/isa/it.c   			if (i == 2)
i                 293 dev/isa/it.c   			sensors[i].value = 1350000 / (sdata << (divisor & 7));
i                 141 dev/isa/lm78_isa.c 	int i;
i                 170 dev/isa/lm78_isa.c 	for (i = 0; i < lm_cd.cd_ndevs; i++) {
i                 171 dev/isa/lm78_isa.c 		lmsc = lm_cd.cd_devs[i];
i                 108 dev/isa/lpt_isa.c 	int i, rv, iosz;
i                 138 dev/isa/lpt_isa.c 	for (i = 0; i < CHAR_BIT; i++) {	/* Walking zero */
i                 139 dev/isa/lpt_isa.c 		data = ~(1 << i);
i                 144 dev/isa/lpt_isa.c 	for (i = 0; i < CHAR_BIT; i++) {	/* Walking one */
i                 145 dev/isa/lpt_isa.c 		data = (1 << i);
i                  89 dev/isa/madreg.h #define M_WSS_PORT_SELECT(i) (0x80 | ((i) << 4))
i                 831 dev/isa/mcd.c  	int i;
i                 841 dev/isa/mcd.c  	for (i = 10; i; i--)
i                 944 dev/isa/mcd.c  	int i;
i                 947 dev/isa/mcd.c  	for (i = DELAY_GETREPLY; i; i--) {
i                 953 dev/isa/mcd.c  	if (!i)
i                 977 dev/isa/mcd.c  	int i, x;
i                 998 dev/isa/mcd.c  	for (i = 0; i < res->length; i++) {
i                1008 dev/isa/mcd.c  		res->data.raw.data[i] = x;
i                1059 dev/isa/mcd.c  	int retry, i, error;
i                1066 dev/isa/mcd.c  		for (i = 0; i < mbx->cmd.length; i++)
i                1067 dev/isa/mcd.c  			printf(" %02x", (u_int)mbx->cmd.data.raw.data[i]);
i                1073 dev/isa/mcd.c  		for (i = 0; i < mbx->cmd.length; i++)
i                1074 dev/isa/mcd.c  			bus_space_write_1(iot, ioh, MCD_COMMAND, mbx->cmd.data.raw.data[i]);
i                1145 dev/isa/mcd.c  	int i;
i                1167 dev/isa/mcd.c  		for (i = 20; i; i--) {
i                1173 dev/isa/mcd.c  		if (i == 0)
i                1207 dev/isa/mcd.c  		for (i = 20; i; i--) {
i                1215 dev/isa/mcd.c  		if (i == 0)
i                 114 dev/isa/mpu401.c 	int i;
i                 116 dev/isa/mpu401.c 	for(i = 0; i < MPU_MAXWAIT; i++) {
i                 130 dev/isa/mpu401.c 	int i;
i                 139 dev/isa/mpu401.c 	for(i = 0; i < 2*MPU_MAXWAIT; i++) {
i                  78 dev/isa/mpu_isa.c 	int	i, rc;
i                  96 dev/isa/mpu_isa.c 	for (i = 0; i < MPU_MAXWAIT; i++) {
i                 107 dev/isa/mpu_isa.c 		for (i = 0; i < 2 * MPU_MAXWAIT; i++)
i                 284 dev/isa/nsclpcsio_isa.c 	int i;
i                 296 dev/isa/nsclpcsio_isa.c 	for (i = 0; i < sizeof(sio_ld) / sizeof(sio_ld[0]); i++) {
i                 297 dev/isa/nsclpcsio_isa.c 		sc->sc_ld_en[sio_ld[i].ld_num] = 0;
i                 300 dev/isa/nsclpcsio_isa.c 		nswrite(sc->sc_iot, sc->sc_ioh, SIO_REG_LDN, sio_ld[i].ld_num);
i                 306 dev/isa/nsclpcsio_isa.c 		if (sio_ld[i].ld_iosize != 0) {
i                 312 dev/isa/nsclpcsio_isa.c 			    sio_ld[i].ld_iosize, 0,
i                 313 dev/isa/nsclpcsio_isa.c 			    &sc->sc_ld_ioh[sio_ld[i].ld_num]))
i                 317 dev/isa/nsclpcsio_isa.c 		sc->sc_ld_en[sio_ld[i].ld_num] = 1;
i                 318 dev/isa/nsclpcsio_isa.c 		printf(" %s", sio_ld[i].ld_name);
i                 330 dev/isa/nsclpcsio_isa.c 	for (i = 0; i < SIO_NUM_SENSORS; i++) {
i                 331 dev/isa/nsclpcsio_isa.c 		if (i < SIO_VLM_OFF && !sc->sc_ld_en[SIO_LDN_TMS])
i                 333 dev/isa/nsclpcsio_isa.c 		if (i >= SIO_VLM_OFF && !sc->sc_ld_en[SIO_LDN_VLM])
i                 335 dev/isa/nsclpcsio_isa.c 		sensor_attach(&sc->sensordev, &sc->sensors[i]);
i                 368 dev/isa/nsclpcsio_isa.c 	int i;
i                 382 dev/isa/nsclpcsio_isa.c 	for (i = 0; i < 3; i++) {
i                 383 dev/isa/nsclpcsio_isa.c 		TMS_WRITE(sc, SIO_TMSBS, i);
i                 386 dev/isa/nsclpcsio_isa.c 		sc->sensors[i].type = SENSOR_TEMP;
i                 401 dev/isa/nsclpcsio_isa.c 	int i;
i                 403 dev/isa/nsclpcsio_isa.c 	for (i = 0; i < 3; i++) {
i                 404 dev/isa/nsclpcsio_isa.c 		TMS_WRITE(sc, SIO_TMSBS, i);
i                 408 dev/isa/nsclpcsio_isa.c 			    sc->sensors[i].desc, status));
i                 409 dev/isa/nsclpcsio_isa.c 			sc->sensors[i].value = 0;
i                 413 dev/isa/nsclpcsio_isa.c 		DPRINTF(("%s: status %d C %d\n", sc->sensors[i].desc,
i                 415 dev/isa/nsclpcsio_isa.c 		sc->sensors[i].value = sdata * 1000000 + 273150000;
i                 422 dev/isa/nsclpcsio_isa.c 	int i;
i                 428 dev/isa/nsclpcsio_isa.c 	for (i = 0; i < 14; i++) {
i                 429 dev/isa/nsclpcsio_isa.c 		VLM_WRITE(sc, SIO_VLMBS, i);
i                 433 dev/isa/nsclpcsio_isa.c 		switch (i) {
i                 458 dev/isa/nsclpcsio_isa.c 			strlcpy(sc->sensors[SIO_VLM_OFF + i].desc, desc,
i                 459 dev/isa/nsclpcsio_isa.c 			    sizeof(sc->sensors[SIO_VLM_OFF + i].desc));
i                 460 dev/isa/nsclpcsio_isa.c 		sc->sensors[SIO_VLM_OFF + i].type = SENSOR_VOLTS_DC;
i                 471 dev/isa/nsclpcsio_isa.c 	int scale, rfact, i;
i                 473 dev/isa/nsclpcsio_isa.c 	for (i = 0; i < 14; i++) {
i                 474 dev/isa/nsclpcsio_isa.c 		VLM_WRITE(sc, SIO_VLMBS, i);
i                 478 dev/isa/nsclpcsio_isa.c 			    sc->sensors[SIO_VLM_OFF + i].desc, status));
i                 479 dev/isa/nsclpcsio_isa.c 			sc->sensors[SIO_VLM_OFF + i].value = 0;
i                 484 dev/isa/nsclpcsio_isa.c 		    sc->sensors[SIO_VLM_OFF + i].desc, status, data));
i                 487 dev/isa/nsclpcsio_isa.c 		switch (i) {
i                 496 dev/isa/nsclpcsio_isa.c 		sc->sensors[SIO_VLM_OFF + i].value = data * rfact;
i                 517 dev/isa/nsclpcsio_isa.c 	int i;
i                 519 dev/isa/nsclpcsio_isa.c 	for (i = 0; i < SIO_GPIO_NPINS; i++) {
i                 520 dev/isa/nsclpcsio_isa.c 		sc->sc_gpio_pins[i].pin_num = i;
i                 521 dev/isa/nsclpcsio_isa.c 		sc->sc_gpio_pins[i].pin_caps = GPIO_PIN_INPUT |
i                 527 dev/isa/nsclpcsio_isa.c 		sc->sc_gpio_pins[i].pin_state = nsclpcsio_gpio_pin_read(sc,
i                 528 dev/isa/nsclpcsio_isa.c 		    i) ? GPIO_PIN_HIGH : GPIO_PIN_LOW;
i                  57 dev/isa/opti.c #define	OPTI_cd_valid_ift(i)	((i)==OPTI_SONY||(i)==OPTI_PANASONIC||\
i                  58 dev/isa/opti.c 					(i)==OPTI_MITSUMI||(i)==OPTI_IDE)
i                  89 dev/isa/opti.c OPTI_cd_irq(i)
i                  90 dev/isa/opti.c 	int	i;
i                  92 dev/isa/opti.c 	switch(i) {
i                 129 dev/isa/opti.c #define	OPTI_snd_valid_ift(i)	((i)==OPTI_WSS||(i)==OPTI_SB)
i                 154 dev/isa/opti.c OPTI_snd_irq(i)
i                 155 dev/isa/opti.c 	int	i;
i                 157 dev/isa/opti.c 	switch(i) {
i                 300 dev/isa/pss.c      int i;
i                 310 dev/isa/pss.c      for (i = 0; i < 5000000; i++) {
i                 447 dev/isa/pss.c      int i;
i                 494 dev/isa/pss.c      for (i = 0; i < 5; i++) {
i                 522 dev/isa/pss.c      int i, ret;
i                 564 dev/isa/pss.c      for (i = 0; i < 3; i++) {
i                 584 dev/isa/pss.c      u_long i;
i                 589 dev/isa/pss.c      for (i = 0; i < 32768; i++)
i                 614 dev/isa/pss.c      int i, val, count;
i                 622 dev/isa/pss.c      for (i = 0; i < 32768; i++)
i                 656 dev/isa/pss.c      for (i = 0; i < 32768; i++)
i                 661 dev/isa/pss.c      for (i = 0; i < 32768; i++) {
i                 668 dev/isa/pss.c      for (i = 0; i < 32000; i++) {
i                 673 dev/isa/pss.c      if (i == 32000)
i                 759 dev/isa/pss.c  	int i;
i                 760 dev/isa/pss.c  	for (i = 0; i < 16; i++) {
i                 761 dev/isa/pss.c  	    if (pss_testirq(sc, i) != 0)
i                 764 dev/isa/pss.c  	if (i == 16) {
i                 769 dev/isa/pss.c  	    ia->ia_irq = i;
i                 770 dev/isa/pss.c  	    DPRINTF(("pss: found IRQ %d free\n", i));
i                 821 dev/isa/pss.c      int i;
i                 839 dev/isa/pss.c  	for (i = 0; i < 12; i++) {
i                 840 dev/isa/pss.c  	    if (wss_interrupt_bits[i] != 0xff) {
i                 841 dev/isa/pss.c  		if (pss_testirq(pc, i))
i                 845 dev/isa/pss.c  	if (i == 12) {
i                 850 dev/isa/pss.c  	    cf->cf_irq = i;
i                 851 dev/isa/pss.c  	    sc->sc_irq = i;
i                 852 dev/isa/pss.c  	    DPRINTF(("sp: found IRQ %d free\n", i));
i                 865 dev/isa/pss.c  	for (i = 0; i < 4; i++) {
i                 866 dev/isa/pss.c  	    if (wss_dma_bits[i]) {
i                 867 dev/isa/pss.c  		if (pss_testdma(pc, i))
i                 871 dev/isa/pss.c  	if (i == 4) {
i                 876 dev/isa/pss.c  	    sc->sc_drq = cf->cf_drq = i;
i                 877 dev/isa/pss.c  	    DPRINTF(("sp: found DMA %d free\n", i));
i                 921 dev/isa/pss.c  	int i;
i                 922 dev/isa/pss.c  	for (i = 0; i < 16; i++) {
i                 923 dev/isa/pss.c  	    if (pss_testirq(pc, i) != 0)
i                 926 dev/isa/pss.c  	if (i == 16) {
i                 931 dev/isa/pss.c  	    cf->cf_irq = i;
i                 932 dev/isa/pss.c  	    sc->sc_irq = i;
i                 933 dev/isa/pss.c  	    DPRINTF(("mpu: found IRQ %d free\n", i));
i                 975 dev/isa/pss.c  	int i;
i                 976 dev/isa/pss.c  	for (i = 0; i < 16; i++) {
i                 977 dev/isa/pss.c  	    if (pss_testirq(pc, i) != 0)
i                 980 dev/isa/pss.c  	if (i == 16) {
i                 985 dev/isa/pss.c  	    cf->cf_irq = i;
i                 986 dev/isa/pss.c  	    sc->sc_irq = i;
i                 987 dev/isa/pss.c  	    DPRINTF(("pcd: found IRQ %d free\n", i));
i                 263 dev/isa/radiotrack2.c 	u_int8_t i;
i                 269 dev/isa/radiotrack2.c 	i = 24;
i                 270 dev/isa/radiotrack2.c 	while ( i-- ) {
i                  88 dev/isa/rtfps.c 	int i, rv = 1;
i                 111 dev/isa/rtfps.c 	for (i = 1; i < NSLAVES; i++) {
i                 158 dev/isa/rtfps.c 	int i;
i                 167 dev/isa/rtfps.c 	for (i = 0; i < NSLAVES; i++)
i                 168 dev/isa/rtfps.c 		if (bus_space_map(iot, sc->sc_iobase + i * COM_NPORTS,
i                 169 dev/isa/rtfps.c 		    COM_NPORTS, 0, &sc->sc_slaveioh[i]))
i                 170 dev/isa/rtfps.c 			panic("rtfpsattach: couldn't map slave %d", i);
i                 179 dev/isa/rtfps.c 	for (i = 0; i < NSLAVES; i++) {
i                 180 dev/isa/rtfps.c 		ca.ca_slave = i;
i                 182 dev/isa/rtfps.c 		ca.ca_ioh = sc->sc_slaveioh[i];
i                 183 dev/isa/rtfps.c 		ca.ca_iobase = sc->sc_iobase + i * COM_NPORTS;
i                 186 dev/isa/rtfps.c 		sc->sc_slaves[i] = config_found(self, &ca, rtfpsprint);
i                 187 dev/isa/rtfps.c 		if (sc->sc_slaves[i] != NULL)
i                 188 dev/isa/rtfps.c 			sc->sc_alive |= 1 << i;
i                 200 dev/isa/sbdsp.c 	int i;
i                 216 dev/isa/sbdsp.c 	for (i = 0; i < SB_NDEVS; i++)
i                 217 dev/isa/sbdsp.c 		printf(" %u,%u", sc->gain[i][SB_LEFT], sc->gain[i][SB_RIGHT]);
i                 331 dev/isa/sbdsp.c         int i;
i                 364 dev/isa/sbdsp.c 		for (i = 0; i < SB_NDEVS; i++) {
i                 365 dev/isa/sbdsp.c 			switch(i) {
i                 391 dev/isa/sbdsp.c 			sc->gain[i][SB_LEFT] = sc->gain[i][SB_RIGHT] = v;
i                 392 dev/isa/sbdsp.c 			sbdsp_set_mixer_gain(sc, i);
i                 963 dev/isa/sbdsp.c 	int i;
i                 966 dev/isa/sbdsp.c 	for (i = SBDSP_NPOLL; --i >= 0; ) {
i                 988 dev/isa/sbdsp.c 	int i;
i                 991 dev/isa/sbdsp.c 	for (i = SBDSP_NPOLL; --i >= 0; ) {
i                 349 dev/isa/seagate.c 	int i;
i                 366 dev/isa/seagate.c 	for (i = 0; i < nsignatures; i++)
i                 367 dev/isa/seagate.c 		if (!bcmp(sea->maddr + signatures[i].offset,
i                 368 dev/isa/seagate.c 		    signatures[i].signature, signatures[i].length)) {
i                 369 dev/isa/seagate.c 			sea->type = signatures[i].type;
i                 496 dev/isa/seagate.c 	int i;
i                 521 dev/isa/seagate.c 	for (i = 0; i < 8; i++)
i                 522 dev/isa/seagate.c 		sea->busy[i] = 0x00;
i                 526 dev/isa/seagate.c 	for (i = 0; i < SCB_TABLE_SIZE; i++) {
i                 527 dev/isa/seagate.c 		TAILQ_INSERT_TAIL(&sea->free_list, &sea->scb[i], chain);
i                 829 dev/isa/seagate.c 	int i;
i                 845 dev/isa/seagate.c 	for (i = 10; i && (STATUS & (STAT_SEL | STAT_IO | STAT_BSY)) !=
i                 846 dev/isa/seagate.c 	    (STAT_SEL | STAT_IO | 0); i--);
i                 861 dev/isa/seagate.c 	for (i = 50000; i && (STATUS & STAT_SEL); i++);
i                 865 dev/isa/seagate.c 	for (i = 50000; i && !(STATUS & STAT_REQ); i--);
i                 256 dev/isa/sf16fmr.c 	int i;
i                 266 dev/isa/sf16fmr.c 	for (i = 0; i < PT2254A_REGISTER_LENGTH; i++) {
i                 267 dev/isa/sf16fmr.c 		if (vol & (1 << i)) {
i                 211 dev/isa/sf16fmr2.c 	u_int32_t reg, vol, i;
i                 231 dev/isa/sf16fmr2.c 		for (i = 0; i < PT2254A_REGISTER_LENGTH; i++)
i                 233 dev/isa/sf16fmr2.c 			    reg & (1 << i));
i                 311 dev/isa/sf16fmr2.c 	u_int8_t i, state = 0;
i                 317 dev/isa/sf16fmr2.c 	i = bus_space_read_1(iot, ioh, off);
i                 320 dev/isa/sf16fmr2.c 	state = i & SF16FMR2_AMPLIFIER? (1 << 2) : (0 << 2);
i                 322 dev/isa/sf16fmr2.c 	state |= i & SF16FMR2_SIGNAL? (0 << 1) : (1 << 1);
i                 325 dev/isa/sf16fmr2.c 	i = bus_space_read_1(iot, ioh, off);
i                 327 dev/isa/sf16fmr2.c 	state |= i & SF16FMR2_STEREO? (0 << 0) : (1 << 0);
i                 328 dev/isa/sf16fmr2.c 	res = i & SF16FMR2_DATA_ON;
i                 330 dev/isa/sf16fmr2.c 	i = 23;
i                 331 dev/isa/sf16fmr2.c 	while ( i-- ) {
i                 114 dev/isa/viasio.c 	int i;
i                 122 dev/isa/viasio.c 	for (i = 0; i < tblsize - 1; i++) {
i                 123 dev/isa/viasio.c 		raw1 = vt1211_hm_temptbl[i].raw;
i                 124 dev/isa/viasio.c 		temp1 = vt1211_hm_temptbl[i].temp;
i                 125 dev/isa/viasio.c 		raw2 = vt1211_hm_temptbl[i + 1].raw;
i                 126 dev/isa/viasio.c 		temp2 = vt1211_hm_temptbl[i + 1].temp;
i                 204 dev/isa/viasio.c 	int i;
i                 285 dev/isa/viasio.c 	for (i = 1; i <= 5; i++) {
i                 287 dev/isa/viasio.c 		if (VT1211_HM_UCHCONF_ISTEMP(reg0, i)) {
i                 288 dev/isa/viasio.c 			sc->sc_hm_sensors[VT1211_HMS_UCH1 + i - 1].type =
i                 291 dev/isa/viasio.c 			sc->sc_hm_sensors[VT1211_HMS_UCH1 + i - 1].type =
i                 294 dev/isa/viasio.c 		snprintf(sc->sc_hm_sensors[VT1211_HMS_UCH1 + i - 1].desc,
i                 295 dev/isa/viasio.c 		    sizeof(sc->sc_hm_sensors[VT1211_HMS_UCH1 + i - 1].desc),
i                 296 dev/isa/viasio.c 		    "UCH%d", i);
i                 311 dev/isa/viasio.c 	for (i = 0; i < VT1211_HM_NSENSORS; i++)
i                 312 dev/isa/viasio.c 		sensor_attach(&sc->sc_sensordev, &sc->sc_hm_sensors[i]);
i                 324 dev/isa/viasio.c 	int i;
i                 343 dev/isa/viasio.c 	for (i = 1; i <= 5; i++) {
i                 344 dev/isa/viasio.c 		if (sc->sc_hm_sensors[VT1211_HMS_UCH1 + i - 1].type ==
i                 348 dev/isa/viasio.c 			    VT1211_HM_UCH1 + i - 1);
i                 349 dev/isa/viasio.c 			if (i == 1) {
i                 356 dev/isa/viasio.c 				reg1 = VT1211_HM_ETR_UCH(reg1, i);
i                 365 dev/isa/viasio.c 				    i - 1].flags |= SENSOR_FINVALID;
i                 368 dev/isa/viasio.c 				    i - 1].flags &= ~SENSOR_FINVALID;
i                 370 dev/isa/viasio.c 				    i - 1].value = val;
i                 375 dev/isa/viasio.c 			    VT1211_HM_UCH1 + i - 1);
i                 380 dev/isa/viasio.c 			rfact = vt1211_hm_vrfact[i - 1];
i                 381 dev/isa/viasio.c 			sc->sc_hm_sensors[VT1211_HMS_UCH1 + i - 1].value =
i                 343 dev/isa/wds.c  	int i;
i                 348 dev/isa/wds.c  		for (i = 0; i < WDS_MBX_SIZE; i++) {
i                 864 dev/isa/wds.c  	int i;
i                 870 dev/isa/wds.c  	for (i = 0; i < 4; i++)
i                 896 dev/isa/wds.c  		for (i = 0; i < 20; i++) {
i                 936 dev/isa/wds.c  	int i;
i                 944 dev/isa/wds.c  	for (i = 0; i < WDS_MBX_SIZE; i++) {
i                 945 dev/isa/wds.c  		wmbx->mbo[i].cmd = WDS_MBO_FREE;
i                 946 dev/isa/wds.c  		wmbx->mbi[i].stat = WDS_MBI_FREE;
i                 954 dev/isa/wds.c  	for (i = 0; i < BUFCNT; i++) {
i                 955 dev/isa/wds.c  		wds_buffer[i].busy = 0;
i                 956 dev/isa/wds.c  		TAILQ_INSERT_HEAD(&wds_free_buffer, &wds_buffer[i], chain);
i                 462 dev/isa/wss.c  	int i;
i                 463 dev/isa/wss.c  	for (i = MC1_PORT; i <= MC7_PORT; i++)
i                 464 dev/isa/wss.c  	    DPRINTF(("port %03x after init = %02x\n", i, mad_read(sc, i)));
i                 292 dev/isa/wss_isa.c     int i;
i                 325 dev/isa/wss_isa.c 	for (i = MC1_PORT; i <= MC7_PORT; i++)
i                 326 dev/isa/wss_isa.c 	    printf("mad: port %03x = %02x\n", i, mad_read(sc, i));
i                 330 dev/isa/wss_isa.c     for (i = 0; i < M_WSS_NPORTS; i++)
i                 331 dev/isa/wss_isa.c 	if (valid_ports[i] == iobase)
i                 333 dev/isa/wss_isa.c     if (i >= M_WSS_NPORTS) {		/* Not a valid port */
i                 337 dev/isa/wss_isa.c     sc->mad_ioindex = i;
i                 339 dev/isa/wss_isa.c     mad_write(sc, MC1_PORT, M_WSS_PORT_SELECT(i) | MC1_JOYDISABLE);
i                  90 dev/ksyms.c    		int i;
i                  99 dev/ksyms.c    		for (i = 0; i < elf->e_shnum; i++) {
i                 100 dev/ksyms.c    			if (shdr[i].sh_type == SHT_SYMTAB) {
i                 108 dev/ksyms.c    		if (i == elf->e_shnum)
i                  89 dev/microcode/adw/adwmcode.c 	int		i;
i                  93 dev/microcode/adw/adwmcode.c 	for(i=0; i < ADW_MAX_CARRIER; i++) {
i                  95 dev/microcode/adw/adwmcode.c 				(sizeof(ADW_CARRIER) * i));
i                  97 dev/microcode/adw/adwmcode.c 		carr->carr_id = i;
i                1538 dev/microcode/aic7xxx/aicasm_gram.y 	int i;
i                 133 dev/microcode/aic7xxx/aicasm_macro_gram.y 	int i;
i                 144 dev/microcode/aic7xxx/aicasm_macro_gram.y 	i = 0;
i                 146 dev/microcode/aic7xxx/aicasm_macro_gram.y 		i++;
i                 147 dev/microcode/aic7xxx/aicasm_macro_gram.y 		if (i == argnum)
i                 479 dev/microcode/aic7xxx/aicasm_symbol.c 	u_int		 i;
i                 656 dev/microcode/aic7xxx/aicasm_symbol.c 	for (i = 0; SLIST_FIRST(&download_constants) != NULL; i++) {
i                 666 dev/microcode/aic7xxx/aicasm_symbol.c 	fprintf(ofile, "#define\tDOWNLOAD_CONST_COUNT\t0x%02x\n", i);
i                  79 dev/microcode/bnx/build.c 	int fd, i, total;
i                 166 dev/microcode/bnx/build.c 	for (i = 0; i < sizeof(chunks) / sizeof(chunks[0]); i++) {
i                 167 dev/microcode/bnx/build.c 		hswapn(chunks[i].start, *chunks[i].len);
i                 168 dev/microcode/bnx/build.c 		rlen = write(fd, chunks[i].start, *chunks[i].len);
i                 173 dev/microcode/bnx/build.c 		if (rlen != *chunks[i].len) {
i                  62 dev/microcode/cyclades/cyzfirm2h.c 	int i;
i                  67 dev/microcode/cyclades/cyzfirm2h.c 	i = open(argv[1], O_RDONLY, 0644);
i                  68 dev/microcode/cyclades/cyzfirm2h.c 	if (i < 0)
i                  90 dev/microcode/cyclades/cyzfirm2h.c 	in_len = lseek(i, 0, SEEK_END);
i                  95 dev/microcode/cyclades/cyzfirm2h.c 	    i, (off_t) 0);
i                  98 dev/microcode/cyclades/cyzfirm2h.c 	(void) close(i);
i                 113 dev/microcode/cyclades/cyzfirm2h.c 	i = 0;
i                 115 dev/microcode/cyclades/cyzfirm2h.c 		if (i == 0)
i                 120 dev/microcode/cyclades/cyzfirm2h.c 		i++;
i                 121 dev/microcode/cyclades/cyzfirm2h.c 		if (i == 10) {
i                 123 dev/microcode/cyclades/cyzfirm2h.c 			i = 0;
i                  44 dev/microcode/fxp/build.c 	int fd, i;
i                  52 dev/microcode/fxp/build.c 	for (i = 0; i < ucode_len / sizeof(u_int32_t); i++) {
i                  53 dev/microcode/fxp/build.c 		dword = htole32(ucode[i]);
i                  37 dev/microcode/myx/build.c 	size_t		i, total = 0;
i                  45 dev/microcode/myx/build.c 	for (i = 0; i < len; i++) {
i                  46 dev/microcode/myx/build.c 		data = letoh32(fw[i]);
i                 220 dev/microcode/ncr53cxxx/ncr53cxxx.c 	int	i;
i                 241 dev/microcode/ncr53cxxx/ncr53cxxx.c 	for (i = 2; i < argc; ++i) {
i                 242 dev/microcode/ncr53cxxx/ncr53cxxx.c 		if (argv[i][0] != '-')
i                 244 dev/microcode/ncr53cxxx/ncr53cxxx.c 		switch (argv[i][1]) {
i                 246 dev/microcode/ncr53cxxx/ncr53cxxx.c 			if (i + 1 >= argc || argv[i + 1][0] == '-')
i                 249 dev/microcode/ncr53cxxx/ncr53cxxx.c 				outputfile = argv[i + 1];
i                 250 dev/microcode/ncr53cxxx/ncr53cxxx.c 				++i;
i                 254 dev/microcode/ncr53cxxx/ncr53cxxx.c 			if (i + 1 >= argc || argv[i + 1][0] == '-')
i                 257 dev/microcode/ncr53cxxx/ncr53cxxx.c 				listfile = argv[i + 1];
i                 258 dev/microcode/ncr53cxxx/ncr53cxxx.c 				++i;
i                 262 dev/microcode/ncr53cxxx/ncr53cxxx.c 			if (i + 1 >= argc || argv[i + 1][0] == '-')
i                 265 dev/microcode/ncr53cxxx/ncr53cxxx.c 				errorfile = argv[i + 1];
i                 266 dev/microcode/ncr53cxxx/ncr53cxxx.c 				++i;
i                 270 dev/microcode/ncr53cxxx/ncr53cxxx.c 			if (i + 1 == argc)
i                 273 dev/microcode/ncr53cxxx/ncr53cxxx.c 			arch = atoi(argv[i +1]);
i                 276 dev/microcode/ncr53cxxx/ncr53cxxx.c 					argv[0], argv[i +1]);
i                 279 dev/microcode/ncr53cxxx/ncr53cxxx.c 			++i;
i                 283 dev/microcode/ncr53cxxx/ncr53cxxx.c 			    argv[i][1]);
i                 304 dev/microcode/ncr53cxxx/ncr53cxxx.c 			int	i;
i                 307 dev/microcode/ncr53cxxx/ncr53cxxx.c 			for (i = 0; i < ntokens; ++i) {
i                 308 dev/microcode/ncr53cxxx/ncr53cxxx.c 				fprintf (listfp, "      %d: ", i);
i                 309 dev/microcode/ncr53cxxx/ncr53cxxx.c 				if (tokens[i].type)
i                 310 dev/microcode/ncr53cxxx/ncr53cxxx.c 					fprintf (listfp,"'%c'\n", tokens[i].type);
i                 312 dev/microcode/ncr53cxxx/ncr53cxxx.c 					fprintf (listfp, "%s\n", tokens[i].name);
i                 336 dev/microcode/ncr53cxxx/ncr53cxxx.c 	int	i;
i                 342 dev/microcode/ncr53cxxx/ncr53cxxx.c 	for (i = 0; i < nsymbols; ++i) {
i                 344 dev/microcode/ncr53cxxx/ncr53cxxx.c 		if (symbols[i].type == S_ABSOLUTE)
i                 346 dev/microcode/ncr53cxxx/ncr53cxxx.c 		else if (symbols[i].type == S_RELATIVE)
i                 348 dev/microcode/ncr53cxxx/ncr53cxxx.c 		else if (symbols[i].type == S_EXTERNAL)
i                 350 dev/microcode/ncr53cxxx/ncr53cxxx.c 		else if (symbols[i].flags & F_ENTRY)
i                 354 dev/microcode/ncr53cxxx/ncr53cxxx.c 		fprintf (outfp, "#define\t%s%s\t0x%08x\n", code, symbols[i].name,
i                 355 dev/microcode/ncr53cxxx/ncr53cxxx.c 			symbols[i].value);
i                 356 dev/microcode/ncr53cxxx/ncr53cxxx.c 		if (symbols[i].flags & F_ENTRY || symbols[i].patchlist == NULL)
i                 358 dev/microcode/ncr53cxxx/ncr53cxxx.c 		fprintf (outfp, "unsigned long %s%s_Used[] = {\n", code, symbols[i].name);
i                 360 dev/microcode/ncr53cxxx/ncr53cxxx.c 		p = symbols[i].patchlist;
i                 373 dev/microcode/ncr53cxxx/ncr53cxxx.c 	int	i;
i                 378 dev/microcode/ncr53cxxx/ncr53cxxx.c 	for (i = 0; i < nsymbols; ++i) {
i                 379 dev/microcode/ncr53cxxx/ncr53cxxx.c 		fprintf (listfp, "%08x: %-8s %s\n", symbols[i].value,
i                 380 dev/microcode/ncr53cxxx/ncr53cxxx.c 			stypes[symbols[i].type], symbols[i].name);
i                 433 dev/microcode/ncr53cxxx/ncr53cxxx.c 	int	i;
i                 441 dev/microcode/ncr53cxxx/ncr53cxxx.c 	for (i = 0; directives[i].name; ++i) {
i                 442 dev/microcode/ncr53cxxx/ncr53cxxx.c 		if (strcmpi (directives[i].name, tokens[tokenix].name) == 0)
i                 445 dev/microcode/ncr53cxxx/ncr53cxxx.c 	if (directives[i].name == NULL) {
i                 451 dev/microcode/ncr53cxxx/ncr53cxxx.c 	if (directives[i].func == NULL) {
i                 456 dev/microcode/ncr53cxxx/ncr53cxxx.c 		fprintf (listfp, "Processing directive \"%s\"\n", directives[i].name);
i                 459 dev/microcode/ncr53cxxx/ncr53cxxx.c 		(*directives[i].func) ();
i                 465 dev/microcode/ncr53cxxx/ncr53cxxx.c 	int	i;
i                 469 dev/microcode/ncr53cxxx/ncr53cxxx.c 	for (i = 0; i < nsymbols; ++i) {
i                 470 dev/microcode/ncr53cxxx/ncr53cxxx.c 		if (symbols[i].type == type && strcmp (symbols[i].name, name) == 0) {
i                 471 dev/microcode/ncr53cxxx/ncr53cxxx.c 			if (symbols[i].flags & F_DEFINED) {
i                 476 dev/microcode/ncr53cxxx/ncr53cxxx.c 				symbols[i].flags |= flags;
i                 477 dev/microcode/ncr53cxxx/ncr53cxxx.c 				symbols[i].value = value;
i                 478 dev/microcode/ncr53cxxx/ncr53cxxx.c 				p = symbols[i].patchlist;
i                 506 dev/microcode/ncr53cxxx/ncr53cxxx.c 	int	i;
i                 512 dev/microcode/ncr53cxxx/ncr53cxxx.c 		for (i = 0; i < dsps / 4; i += 2) {
i                 513 dev/microcode/ncr53cxxx/ncr53cxxx.c 			fprintf (outfp, "\t0x%08x, 0x%08x", script[i],
i                 514 dev/microcode/ncr53cxxx/ncr53cxxx.c 				script[i + 1]);
i                 516 dev/microcode/ncr53cxxx/ncr53cxxx.c 			if (script[i] >> 30 == 3)
i                 517 dev/microcode/ncr53cxxx/ncr53cxxx.c 				fprintf (outfp, ", 0x%08x,", script[i + 2]);
i                 519 dev/microcode/ncr53cxxx/ncr53cxxx.c 				if ((i + 2) <= dsps / 4) fprintf (outfp, ",\t\t");
i                 520 dev/microcode/ncr53cxxx/ncr53cxxx.c 			fprintf (outfp, "\t/* %03x - %3d */\n", i * 4, i * 4);
i                 521 dev/microcode/ncr53cxxx/ncr53cxxx.c 			if (script[i] >> 30 == 3)
i                 522 dev/microcode/ncr53cxxx/ncr53cxxx.c 				++i;
i                 547 dev/microcode/ncr53cxxx/ncr53cxxx.c 	int	i;
i                 549 dev/microcode/ncr53cxxx/ncr53cxxx.c 	for (i = 0; i < 8; ++i) {
i                 550 dev/microcode/ncr53cxxx/ncr53cxxx.c 		if (reserved (phases[i], t)) {
i                 551 dev/microcode/ncr53cxxx/ncr53cxxx.c 			inst0 |= i << 24;
i                 560 dev/microcode/ncr53cxxx/ncr53cxxx.c 	int	i;
i                 563 dev/microcode/ncr53cxxx/ncr53cxxx.c 		for (i = 0; i < 64; ++i)
i                 564 dev/microcode/ncr53cxxx/ncr53cxxx.c 			if (reserved (regs710[i], t))
i                 565 dev/microcode/ncr53cxxx/ncr53cxxx.c 				return i;
i                 568 dev/microcode/ncr53cxxx/ncr53cxxx.c 		for (i = 0; i < 96; ++i)
i                 569 dev/microcode/ncr53cxxx/ncr53cxxx.c 			if (reserved (regs720[i], t))
i                 570 dev/microcode/ncr53cxxx/ncr53cxxx.c 				return i;
i                 581 dev/microcode/ncr53cxxx/ncr53cxxx.c 	int	i = *t;
i                 583 dev/microcode/ncr53cxxx/ncr53cxxx.c 	value = evaluate (i++);
i                 584 dev/microcode/ncr53cxxx/ncr53cxxx.c 	while (i < ntokens) {
i                 585 dev/microcode/ncr53cxxx/ncr53cxxx.c 		if (tokens[i].type == '+')
i                 586 dev/microcode/ncr53cxxx/ncr53cxxx.c 			value += evaluate (i + 1);
i                 587 dev/microcode/ncr53cxxx/ncr53cxxx.c 		else if (tokens[i].type == '-')
i                 588 dev/microcode/ncr53cxxx/ncr53cxxx.c 			value -= evaluate (i + 1);
i                 591 dev/microcode/ncr53cxxx/ncr53cxxx.c 		i += 2;
i                 593 dev/microcode/ncr53cxxx/ncr53cxxx.c 	*t = i;
i                 659 dev/microcode/ncr53cxxx/ncr53cxxx.c 	int	i;
i                 663 dev/microcode/ncr53cxxx/ncr53cxxx.c 	for (i = 0; i < nsymbols; ++i) {
i                 664 dev/microcode/ncr53cxxx/ncr53cxxx.c 		if (strcmp (name, symbols[i].name) == 0) {
i                 665 dev/microcode/ncr53cxxx/ncr53cxxx.c 			if ((symbols[i].flags & F_DEFINED) == 0) {
i                 666 dev/microcode/ncr53cxxx/ncr53cxxx.c 				p = (struct patchlist *) &symbols[i].patchlist;
i                 674 dev/microcode/ncr53cxxx/ncr53cxxx.c 			return ((int) symbols[i].value);
i                 697 dev/microcode/ncr53cxxx/ncr53cxxx.c 	int i, archsave;
i                 699 dev/microcode/ncr53cxxx/ncr53cxxx.c 	i = tokenix;
i                 703 dev/microcode/ncr53cxxx/ncr53cxxx.c 	arch = atoi(tokens[i].name);
i                 729 dev/microcode/ncr53cxxx/ncr53cxxx.c 	int	i;
i                 735 dev/microcode/ncr53cxxx/ncr53cxxx.c 	for (i = tokenix; i < ntokens; ++i) {
i                 736 dev/microcode/ncr53cxxx/ncr53cxxx.c 		if (tokens[i].type != 0) {
i                 740 dev/microcode/ncr53cxxx/ncr53cxxx.c 		define_symbol (tokens[i].name, 0, type, flags);
i                 741 dev/microcode/ncr53cxxx/ncr53cxxx.c 		if (i + 1 < ntokens) {
i                 742 dev/microcode/ncr53cxxx/ncr53cxxx.c 			if (tokens[++i].type == ',')
i                 756 dev/microcode/ncr53cxxx/ncr53cxxx.c 	int	i;
i                 762 dev/microcode/ncr53cxxx/ncr53cxxx.c 	i = tokenix;
i                 763 dev/microcode/ncr53cxxx/ncr53cxxx.c 	while (i < ntokens) {
i                 764 dev/microcode/ncr53cxxx/ncr53cxxx.c 		if (tokens[i].type) {
i                 768 dev/microcode/ncr53cxxx/ncr53cxxx.c 		if (tokens[i + 1].type != '=') {
i                 772 dev/microcode/ncr53cxxx/ncr53cxxx.c 		name = tokens[i].name;
i                 773 dev/microcode/ncr53cxxx/ncr53cxxx.c 		i += 2;
i                 774 dev/microcode/ncr53cxxx/ncr53cxxx.c 		value = expression (&i);
i                 781 dev/microcode/ncr53cxxx/ncr53cxxx.c 	int	i = dsps / 4;
i                 790 dev/microcode/ncr53cxxx/ncr53cxxx.c 	script[i++] = inst0;
i                 791 dev/microcode/ncr53cxxx/ncr53cxxx.c 	script[i++] = inst1;
i                 793 dev/microcode/ncr53cxxx/ncr53cxxx.c 		script[i] = inst2;
i                 854 dev/microcode/ncr53cxxx/ncr53cxxx.c 	int	i = tokenix;
i                 857 dev/microcode/ncr53cxxx/ncr53cxxx.c 	if (reserved ("disconnect", i)) {
i                 861 dev/microcode/ncr53cxxx/ncr53cxxx.c 		if (reserved ("reselect", i))
i                 863 dev/microcode/ncr53cxxx/ncr53cxxx.c 		else if (reserved ("select", i))
i                 867 dev/microcode/ncr53cxxx/ncr53cxxx.c 		++i;
i                 868 dev/microcode/ncr53cxxx/ncr53cxxx.c 		if (reserved ("rel", i)) {
i                 869 dev/microcode/ncr53cxxx/ncr53cxxx.c 			i += 2;
i                 870 dev/microcode/ncr53cxxx/ncr53cxxx.c 			inst1 = evaluate (i) - dsps - 8;
i                 874 dev/microcode/ncr53cxxx/ncr53cxxx.c 			inst1 = evaluate (i);
i                 897 dev/microcode/ncr53cxxx/ncr53cxxx.c 	int	i;
i                 899 dev/microcode/ncr53cxxx/ncr53cxxx.c 	i = tokenix;
i                 901 dev/microcode/ncr53cxxx/ncr53cxxx.c 	if (type == 0 && reserved ("rel", i)) {
i                 902 dev/microcode/ncr53cxxx/ncr53cxxx.c 		inst1 = evaluate (i + 2) - dsps - 8;
i                 903 dev/microcode/ncr53cxxx/ncr53cxxx.c 		i += 3;
i                 907 dev/microcode/ncr53cxxx/ncr53cxxx.c 		inst1 = evaluate (i);
i                 909 dev/microcode/ncr53cxxx/ncr53cxxx.c 	++i;
i                 910 dev/microcode/ncr53cxxx/ncr53cxxx.c 	if (i >= ntokens) {
i                 915 dev/microcode/ncr53cxxx/ncr53cxxx.c 	if (tokens[i].type != ',')
i                 918 dev/microcode/ncr53cxxx/ncr53cxxx.c 		++i;
i                 919 dev/microcode/ncr53cxxx/ncr53cxxx.c 	if (reserved("when", i))
i                 921 dev/microcode/ncr53cxxx/ncr53cxxx.c 	else if (reserved ("if", i) == 0) {
i                 926 dev/microcode/ncr53cxxx/ncr53cxxx.c 	if (reserved ("not", ++i))
i                 927 dev/microcode/ncr53cxxx/ncr53cxxx.c 		++i;
i                 930 dev/microcode/ncr53cxxx/ncr53cxxx.c 	if (reserved ("atn", i)) {
i                 932 dev/microcode/ncr53cxxx/ncr53cxxx.c 		++i;
i                 933 dev/microcode/ncr53cxxx/ncr53cxxx.c 	} else if (CheckPhase (i)) {
i                 935 dev/microcode/ncr53cxxx/ncr53cxxx.c 		++i;
i                 937 dev/microcode/ncr53cxxx/ncr53cxxx.c 	if (i < ntokens && tokens[i].type != ',') {
i                 939 dev/microcode/ncr53cxxx/ncr53cxxx.c 			if (inst0 & 0x00080000 && reserved ("and", i)) {
i                 940 dev/microcode/ncr53cxxx/ncr53cxxx.c 				++i;
i                 942 dev/microcode/ncr53cxxx/ncr53cxxx.c 			else if ((inst0 & 0x00080000) == 0 && reserved ("or", i)) {
i                 943 dev/microcode/ncr53cxxx/ncr53cxxx.c 				++i;
i                 948 dev/microcode/ncr53cxxx/ncr53cxxx.c 		inst0 |= 0x00040000 + (evaluate (i++) & 0xff);
i                 950 dev/microcode/ncr53cxxx/ncr53cxxx.c 	if (i < ntokens) {
i                 951 dev/microcode/ncr53cxxx/ncr53cxxx.c 		if (tokens[i].type == ',')
i                 952 dev/microcode/ncr53cxxx/ncr53cxxx.c 			++i;
i                 955 dev/microcode/ncr53cxxx/ncr53cxxx.c 		if (reserved ("and", i) && reserved ("mask", i + 1))
i                 956 dev/microcode/ncr53cxxx/ncr53cxxx.c 			inst0 |= ((evaluate (i + 2) & 0xff) << 8);
i                 987 dev/microcode/ncr53cxxx/ncr53cxxx.c 	int	i = tokenix;
i                 991 dev/microcode/ncr53cxxx/ncr53cxxx.c 	while (i < ntokens) {
i                 993 dev/microcode/ncr53cxxx/ncr53cxxx.c 			if (reserved ("and", i))
i                 994 dev/microcode/ncr53cxxx/ncr53cxxx.c 				++i;
i                 998 dev/microcode/ncr53cxxx/ncr53cxxx.c 		if (reserved ("atn", i)) {
i                1000 dev/microcode/ncr53cxxx/ncr53cxxx.c 			++i;
i                1002 dev/microcode/ncr53cxxx/ncr53cxxx.c 		else if (reserved ("ack", i)) {
i                1004 dev/microcode/ncr53cxxx/ncr53cxxx.c 			++i;
i                1006 dev/microcode/ncr53cxxx/ncr53cxxx.c 		else if (reserved ("target", i)) {
i                1008 dev/microcode/ncr53cxxx/ncr53cxxx.c 			++i;
i                 337 dev/microcode/siop/ncr53cxxx.c 	int	i;
i                 360 dev/microcode/siop/ncr53cxxx.c 	for (i = 2; i < argc; ++i) {
i                 361 dev/microcode/siop/ncr53cxxx.c 		if (argv[i][0] != '-')
i                 363 dev/microcode/siop/ncr53cxxx.c 		switch (argv[i][1]) {
i                 366 dev/microcode/siop/ncr53cxxx.c 			partial_flag = argv[i][1] == 'p';
i                 367 dev/microcode/siop/ncr53cxxx.c 			if (i + 1 >= argc || argv[i + 1][0] == '-')
i                 370 dev/microcode/siop/ncr53cxxx.c 				outputfile = argv[i + 1];
i                 371 dev/microcode/siop/ncr53cxxx.c 				++i;
i                 375 dev/microcode/siop/ncr53cxxx.c 			if (i + 1 >= argc || argv[i + 1][0] == '-')
i                 378 dev/microcode/siop/ncr53cxxx.c 				listfile = argv[i + 1];
i                 379 dev/microcode/siop/ncr53cxxx.c 				++i;
i                 383 dev/microcode/siop/ncr53cxxx.c 			if (i + 1 >= argc || argv[i + 1][0] == '-')
i                 386 dev/microcode/siop/ncr53cxxx.c 				errorfile = argv[i + 1];
i                 387 dev/microcode/siop/ncr53cxxx.c 				++i;
i                 391 dev/microcode/siop/ncr53cxxx.c 			if (i + 1 == argc)
i                 393 dev/microcode/siop/ncr53cxxx.c 			setarch(argv[i +1]);
i                 396 dev/microcode/siop/ncr53cxxx.c 					argv[0], argv[i +1]);
i                 399 dev/microcode/siop/ncr53cxxx.c 			++i;
i                 403 dev/microcode/siop/ncr53cxxx.c 			    argv[i][1]);
i                 435 dev/microcode/siop/ncr53cxxx.c 			int	i;
i                 438 dev/microcode/siop/ncr53cxxx.c 			for (i = 0; i < ntokens; ++i) {
i                 439 dev/microcode/siop/ncr53cxxx.c 				fprintf (listfp, "      %d: ", i);
i                 440 dev/microcode/siop/ncr53cxxx.c 				if (tokens[i].type)
i                 441 dev/microcode/siop/ncr53cxxx.c 					fprintf (listfp,"'%c'\n", tokens[i].type);
i                 443 dev/microcode/siop/ncr53cxxx.c 					fprintf (listfp, "%s\n", tokens[i].name);
i                 498 dev/microcode/siop/ncr53cxxx.c 	int	i;
i                 504 dev/microcode/siop/ncr53cxxx.c 	for (i = 0; i < nsymbols; ++i) {
i                 506 dev/microcode/siop/ncr53cxxx.c 		if ((symbols[i].flags & F_DEFINED) == 0 &&
i                 507 dev/microcode/siop/ncr53cxxx.c 		    symbols[i].type != S_EXTERNAL) {
i                 509 dev/microcode/siop/ncr53cxxx.c 			    symbols[i].name);
i                 511 dev/microcode/siop/ncr53cxxx.c 		if (symbols[i].type == S_ABSOLUTE)
i                 513 dev/microcode/siop/ncr53cxxx.c 		else if (symbols[i].type == S_RELATIVE)
i                 515 dev/microcode/siop/ncr53cxxx.c 		else if (symbols[i].type == S_EXTERNAL)
i                 517 dev/microcode/siop/ncr53cxxx.c 		else if (symbols[i].flags & F_ENTRY)
i                 521 dev/microcode/siop/ncr53cxxx.c 		fprintf (outfp, "#define\t%s%s\t0x%08x\n", code, symbols[i].name,
i                 522 dev/microcode/siop/ncr53cxxx.c 			symbols[i].value);
i                 523 dev/microcode/siop/ncr53cxxx.c 		if (symbols[i].flags & F_ENTRY || symbols[i].patchlist == NULL)
i                 525 dev/microcode/siop/ncr53cxxx.c 		fprintf (outfp, "u_int32_t %s%s_Used[] = {\n", code, symbols[i].name);
i                 527 dev/microcode/siop/ncr53cxxx.c 		p = symbols[i].patchlist;
i                 540 dev/microcode/siop/ncr53cxxx.c 	int	i;
i                 545 dev/microcode/siop/ncr53cxxx.c 	for (i = 0; i < nsymbols; ++i) {
i                 546 dev/microcode/siop/ncr53cxxx.c 		fprintf (listfp, "%08x: %-8s %s\n", symbols[i].value,
i                 547 dev/microcode/siop/ncr53cxxx.c 			stypes[symbols[i].type], symbols[i].name);
i                 600 dev/microcode/siop/ncr53cxxx.c 	int	i;
i                 608 dev/microcode/siop/ncr53cxxx.c 	for (i = 0; directives[i].name; ++i) {
i                 609 dev/microcode/siop/ncr53cxxx.c 		if (strcmpi (directives[i].name, tokens[tokenix].name) == 0)
i                 612 dev/microcode/siop/ncr53cxxx.c 	if (directives[i].name == NULL) {
i                 618 dev/microcode/siop/ncr53cxxx.c 	if (directives[i].func == NULL) {
i                 623 dev/microcode/siop/ncr53cxxx.c 		fprintf (listfp, "Processing directive \"%s\"\n", directives[i].name);
i                 626 dev/microcode/siop/ncr53cxxx.c 		(*directives[i].func) ();
i                 632 dev/microcode/siop/ncr53cxxx.c 	int	i;
i                 636 dev/microcode/siop/ncr53cxxx.c 	for (i = 0; i < nsymbols; ++i) {
i                 637 dev/microcode/siop/ncr53cxxx.c 		if (symbols[i].type == type && strcmp (symbols[i].name, name) == 0) {
i                 638 dev/microcode/siop/ncr53cxxx.c 			if (symbols[i].flags & F_DEFINED) {
i                 643 dev/microcode/siop/ncr53cxxx.c 				symbols[i].flags |= flags;
i                 644 dev/microcode/siop/ncr53cxxx.c 				symbols[i].value = value;
i                 645 dev/microcode/siop/ncr53cxxx.c 				p = symbols[i].patchlist;
i                 687 dev/microcode/siop/ncr53cxxx.c 	int	i;
i                 693 dev/microcode/siop/ncr53cxxx.c 		for (i = 0; i < dsps / 4; i += 2) {
i                 694 dev/microcode/siop/ncr53cxxx.c 			fprintf (outfp, "\t0x%08x, 0x%08x", script[i],
i                 695 dev/microcode/siop/ncr53cxxx.c 				script[i + 1]);
i                 697 dev/microcode/siop/ncr53cxxx.c 			if ((script[i] & 0xe0000000) == 0xc0000000)
i                 698 dev/microcode/siop/ncr53cxxx.c 				fprintf (outfp, ", 0x%08x,", script[i + 2]);
i                 700 dev/microcode/siop/ncr53cxxx.c 				if ((i + 2) <= dsps / 4) fprintf (outfp, ",\t\t");
i                 701 dev/microcode/siop/ncr53cxxx.c 			fprintf (outfp, "\t/* %03x - %3d */\n", i * 4, i * 4);
i                 702 dev/microcode/siop/ncr53cxxx.c 			if ((script[i] & 0xe0000000) == 0xc0000000)
i                 703 dev/microcode/siop/ncr53cxxx.c 				++i;
i                 728 dev/microcode/siop/ncr53cxxx.c 	int	i;
i                 730 dev/microcode/siop/ncr53cxxx.c 	for (i = 0; i < 8; ++i) {
i                 731 dev/microcode/siop/ncr53cxxx.c 		if (reserved (phases[i], t)) {
i                 732 dev/microcode/siop/ncr53cxxx.c 			inst0 |= i << 24;
i                 741 dev/microcode/siop/ncr53cxxx.c 	int	i;
i                 747 dev/microcode/siop/ncr53cxxx.c 	for (i = 0; i < (sizeof(regs) / sizeof(regs[0])); i++) {
i                 748 dev/microcode/siop/ncr53cxxx.c 		if (regs[i].addr[arch - 1] >= 0 && reserved(regs[i].name, t))
i                 749 dev/microcode/siop/ncr53cxxx.c 			return regs[i].addr[arch-1];
i                 757 dev/microcode/siop/ncr53cxxx.c 	int	i = *t;
i                 759 dev/microcode/siop/ncr53cxxx.c 	value = evaluate (i++);
i                 760 dev/microcode/siop/ncr53cxxx.c 	while (i < ntokens) {
i                 761 dev/microcode/siop/ncr53cxxx.c 		if (tokens[i].type == '+')
i                 762 dev/microcode/siop/ncr53cxxx.c 			value += evaluate (i + 1);
i                 763 dev/microcode/siop/ncr53cxxx.c 		else if (tokens[i].type == '-')
i                 764 dev/microcode/siop/ncr53cxxx.c 			value -= evaluate (i + 1);
i                 767 dev/microcode/siop/ncr53cxxx.c 		i += 2;
i                 769 dev/microcode/siop/ncr53cxxx.c 	*t = i;
i                 836 dev/microcode/siop/ncr53cxxx.c 	int	i;
i                 840 dev/microcode/siop/ncr53cxxx.c 	for (i = 0; i < nsymbols; ++i) {
i                 841 dev/microcode/siop/ncr53cxxx.c 		if (strcmp (name, symbols[i].name) == 0) {
i                 842 dev/microcode/siop/ncr53cxxx.c 			if ((symbols[i].flags & F_DEFINED) == 0) {
i                 843 dev/microcode/siop/ncr53cxxx.c 				p = (struct patchlist *) &symbols[i].patchlist;
i                 851 dev/microcode/siop/ncr53cxxx.c 			return ((int) symbols[i].value);
i                 874 dev/microcode/siop/ncr53cxxx.c 	int i, archsave;
i                 876 dev/microcode/siop/ncr53cxxx.c 	i = tokenix;
i                 879 dev/microcode/siop/ncr53cxxx.c 	setarch(tokens[i].name);
i                 905 dev/microcode/siop/ncr53cxxx.c 	int	i;
i                 911 dev/microcode/siop/ncr53cxxx.c 	for (i = tokenix; i < ntokens; ++i) {
i                 912 dev/microcode/siop/ncr53cxxx.c 		if (tokens[i].type != 0) {
i                 916 dev/microcode/siop/ncr53cxxx.c 		define_symbol (tokens[i].name, 0, type, flags);
i                 917 dev/microcode/siop/ncr53cxxx.c 		if (i + 1 < ntokens) {
i                 918 dev/microcode/siop/ncr53cxxx.c 			if (tokens[++i].type == ',')
i                 932 dev/microcode/siop/ncr53cxxx.c 	int	i;
i                 938 dev/microcode/siop/ncr53cxxx.c 	i = tokenix;
i                 939 dev/microcode/siop/ncr53cxxx.c 	while (i < ntokens) {
i                 940 dev/microcode/siop/ncr53cxxx.c 		if (tokens[i].type) {
i                 944 dev/microcode/siop/ncr53cxxx.c 		if (tokens[i + 1].type != '=') {
i                 948 dev/microcode/siop/ncr53cxxx.c 		name = tokens[i].name;
i                 949 dev/microcode/siop/ncr53cxxx.c 		i += 2;
i                 950 dev/microcode/siop/ncr53cxxx.c 		value = expression (&i);
i                 957 dev/microcode/siop/ncr53cxxx.c 	int	i = dsps / 4;
i                 966 dev/microcode/siop/ncr53cxxx.c 	script[i++] = inst0;
i                 967 dev/microcode/siop/ncr53cxxx.c 	script[i++] = inst1;
i                 969 dev/microcode/siop/ncr53cxxx.c 		script[i++] = inst2;
i                1035 dev/microcode/siop/ncr53cxxx.c 	int	i = tokenix;
i                1038 dev/microcode/siop/ncr53cxxx.c 	if (reserved ("disconnect", i)) {
i                1042 dev/microcode/siop/ncr53cxxx.c 		if (reserved ("reselect", i))
i                1044 dev/microcode/siop/ncr53cxxx.c 		else if (reserved ("select", i))
i                1048 dev/microcode/siop/ncr53cxxx.c 		++i;
i                1049 dev/microcode/siop/ncr53cxxx.c 		if (reserved ("rel", i)) {
i                1055 dev/microcode/siop/ncr53cxxx.c 			i += 2;
i                1056 dev/microcode/siop/ncr53cxxx.c 			inst1 = evaluate (i) - dsps - 8;
i                1060 dev/microcode/siop/ncr53cxxx.c 			inst1 = evaluate (i);
i                1095 dev/microcode/siop/ncr53cxxx.c 	int i;
i                1101 dev/microcode/siop/ncr53cxxx.c 	i = tokenix;
i                1102 dev/microcode/siop/ncr53cxxx.c 	if (reserved("noflush", i)) {
i                1104 dev/microcode/siop/ncr53cxxx.c 		i++;
i                1106 dev/microcode/siop/ncr53cxxx.c 	loadstore(i);
i                1116 dev/microcode/siop/ncr53cxxx.c void loadstore(int i)
i                1120 dev/microcode/siop/ncr53cxxx.c 	reg = CheckRegister(i);
i                1127 dev/microcode/siop/ncr53cxxx.c 	i++;
i                1128 dev/microcode/siop/ncr53cxxx.c 	if (tokens[i].type == ',')
i                1129 dev/microcode/siop/ncr53cxxx.c 		i++;
i                1132 dev/microcode/siop/ncr53cxxx.c 	size = evaluate(i);
i                1133 dev/microcode/siop/ncr53cxxx.c 	if (i < 1 || i > 4)
i                1138 dev/microcode/siop/ncr53cxxx.c 	i++;
i                1139 dev/microcode/siop/ncr53cxxx.c 	if (tokens[i].type == ',')
i                1140 dev/microcode/siop/ncr53cxxx.c 		i++;
i                1143 dev/microcode/siop/ncr53cxxx.c 	if (reserved("from", i) || reserved("dsarel", i)) {
i                1148 dev/microcode/siop/ncr53cxxx.c 		i++;
i                1151 dev/microcode/siop/ncr53cxxx.c 	inst1 = evaluate(i);
i                1157 dev/microcode/siop/ncr53cxxx.c 	int	i;
i                1159 dev/microcode/siop/ncr53cxxx.c 	i = tokenix;
i                1161 dev/microcode/siop/ncr53cxxx.c 	if (type == 0 && reserved ("rel", i)) {
i                1167 dev/microcode/siop/ncr53cxxx.c 		inst1 = evaluate (i + 2) - dsps - 8;
i                1168 dev/microcode/siop/ncr53cxxx.c 		i += 4;
i                1172 dev/microcode/siop/ncr53cxxx.c 		inst1 = evaluate (i);
i                1173 dev/microcode/siop/ncr53cxxx.c 		++i;
i                1177 dev/microcode/siop/ncr53cxxx.c 	if (i >= ntokens) {
i                1182 dev/microcode/siop/ncr53cxxx.c 	if (tokens[i].type != ',')
i                1185 dev/microcode/siop/ncr53cxxx.c 		++i;
i                1186 dev/microcode/siop/ncr53cxxx.c 	if (reserved("when", i))
i                1188 dev/microcode/siop/ncr53cxxx.c 	else if (reserved ("if", i) == 0) {
i                1193 dev/microcode/siop/ncr53cxxx.c 	i++;
i                1194 dev/microcode/siop/ncr53cxxx.c 	if (reserved("false", i)) {
i                1198 dev/microcode/siop/ncr53cxxx.c 	if (reserved ("not", i))
i                1199 dev/microcode/siop/ncr53cxxx.c 		++i;
i                1202 dev/microcode/siop/ncr53cxxx.c 	if (reserved ("atn", i)) {
i                1204 dev/microcode/siop/ncr53cxxx.c 		++i;
i                1205 dev/microcode/siop/ncr53cxxx.c 	} else if (CheckPhase (i)) {
i                1207 dev/microcode/siop/ncr53cxxx.c 		++i;
i                1209 dev/microcode/siop/ncr53cxxx.c 	if (i < ntokens && tokens[i].type != ',') {
i                1211 dev/microcode/siop/ncr53cxxx.c 			if (inst0 & 0x00080000 && reserved ("and", i)) {
i                1212 dev/microcode/siop/ncr53cxxx.c 				++i;
i                1214 dev/microcode/siop/ncr53cxxx.c 			else if ((inst0 & 0x00080000) == 0 && reserved ("or", i)) {
i                1215 dev/microcode/siop/ncr53cxxx.c 				++i;
i                1220 dev/microcode/siop/ncr53cxxx.c 		inst0 |= 0x00040000 + (evaluate (i++) & 0xff);
i                1222 dev/microcode/siop/ncr53cxxx.c 	if (i < ntokens) {
i                1223 dev/microcode/siop/ncr53cxxx.c 		if (tokens[i].type == ',')
i                1224 dev/microcode/siop/ncr53cxxx.c 			++i;
i                1227 dev/microcode/siop/ncr53cxxx.c 		if (reserved ("and", i) && reserved ("mask", i + 1))
i                1228 dev/microcode/siop/ncr53cxxx.c 			inst0 |= ((evaluate (i + 2) & 0xff) << 8);
i                1270 dev/microcode/siop/ncr53cxxx.c 	int	i = tokenix;
i                1274 dev/microcode/siop/ncr53cxxx.c 	while (i < ntokens) {
i                1276 dev/microcode/siop/ncr53cxxx.c 			if (reserved ("and", i))
i                1277 dev/microcode/siop/ncr53cxxx.c 				++i;
i                1281 dev/microcode/siop/ncr53cxxx.c 		if (reserved ("atn", i)) {
i                1283 dev/microcode/siop/ncr53cxxx.c 			++i;
i                1285 dev/microcode/siop/ncr53cxxx.c 		else if (reserved ("ack", i)) {
i                1287 dev/microcode/siop/ncr53cxxx.c 			++i;
i                1289 dev/microcode/siop/ncr53cxxx.c 		else if (reserved ("target", i)) {
i                1291 dev/microcode/siop/ncr53cxxx.c 			++i;
i                1293 dev/microcode/siop/ncr53cxxx.c 		else if (reserved ("carry", i)) {
i                1295 dev/microcode/siop/ncr53cxxx.c 			++i;
i                  35 dev/microcode/tht/build.c 	int		i;
i                  41 dev/microcode/tht/build.c 	for (i = 0; i < (sizeof(tht_fw) / sizeof(tht_fw[0])); i++)
i                  42 dev/microcode/tht/build.c 		tht_fw[i] = htole32(tht_fw[i]);
i                  40 dev/microcode/tigon/build.c 	int len, fd, i;
i                 223 dev/midi.c     	unsigned 	    i, max;
i                 232 dev/midi.c     	for (i = max; i != 0;) {
i                 263 dev/midi.c     			i--;
i                 435 dev/mii/brgphy.c 	int i;
i                 438 dev/mii/brgphy.c 	for (i = 0; i < 15000; i++) {
i                 547 dev/mii/brgphy.c 	int i;
i                 549 dev/mii/brgphy.c 	for (i = 0; dspcode[i].reg != 0; i++)
i                 550 dev/mii/brgphy.c 		PHY_WRITE(sc, dspcode[i].reg, dspcode[i].val);
i                 567 dev/mii/brgphy.c 	int i;
i                 569 dev/mii/brgphy.c 	for (i = 0; dspcode[i].reg != 0; i++)
i                 570 dev/mii/brgphy.c 		PHY_WRITE(sc, dspcode[i].reg, dspcode[i].val);
i                 603 dev/mii/brgphy.c 	int i;
i                 605 dev/mii/brgphy.c 	for (i = 0; dspcode[i].reg != 0; i++)
i                 606 dev/mii/brgphy.c 		PHY_WRITE(sc, dspcode[i].reg, dspcode[i].val);
i                 624 dev/mii/brgphy.c 	int i;
i                 626 dev/mii/brgphy.c 	for (i = 0; dspcode[i].reg != 0; i++)
i                 627 dev/mii/brgphy.c 		PHY_WRITE(sc, dspcode[i].reg, dspcode[i].val);
i                 641 dev/mii/brgphy.c 	int i;
i                 643 dev/mii/brgphy.c 	for (i = 0; dspcode[i].reg != 0; i++)
i                 644 dev/mii/brgphy.c 		PHY_WRITE(sc, dspcode[i].reg, dspcode[i].val);
i                 664 dev/mii/brgphy.c 	int i;
i                 666 dev/mii/brgphy.c 	for (i = 0; dspcode[i].reg != 0; i++)
i                 667 dev/mii/brgphy.c 		PHY_WRITE(sc, dspcode[i].reg, dspcode[i].val);
i                 394 dev/mii/dcphy.c 	int			i;
i                 414 dev/mii/dcphy.c 		for (i = 0; i < 500; i++) {
i                 224 dev/mii/eephy.c 	int reg, i;
i                 230 dev/mii/eephy.c 	for (i = 0; i < 500; i++) {
i                  77 dev/mii/mii_bitbang.c 	int i;
i                  83 dev/mii/mii_bitbang.c 	for (i = 0; i < 32; i++) {
i                  98 dev/mii/mii_bitbang.c 	int i;
i                 104 dev/mii/mii_bitbang.c 	for (i = 1 << (nbits - 1); i != 0; i >>= 1) {
i                 105 dev/mii/mii_bitbang.c 		if (data & i)
i                 124 dev/mii/mii_bitbang.c 	int val = 0, err = 0, i;
i                 147 dev/mii/mii_bitbang.c 	for (i = 0; i < 16; i++) {
i                 135 dev/mii/mii_physubr.c 	int bmsr, i;
i                 188 dev/mii/mii_physubr.c 		for (i = 0; i < 500; i++) {
i                 291 dev/mii/mii_physubr.c 	int reg, i;
i                 310 dev/mii/mii_physubr.c 	for (i = 0; i < 100; i++) {
i                 366 dev/mii/rgephy.c 	int i;
i                 371 dev/mii/rgephy.c 	for (i = 0; i < 15000; i++) {
i                 214 dev/onewire/onewire.c 	int i;
i                 219 dev/onewire/onewire.c 	for (i = 0; i < 8; i++)
i                 220 dev/onewire/onewire.c 		value |= (bus->bus_bit(bus->bus_cookie, 1) << i);
i                 230 dev/onewire/onewire.c 	int i;
i                 235 dev/onewire/onewire.c 	for (i = 0; i < 8; i++)
i                 236 dev/onewire/onewire.c 		bus->bus_bit(bus->bus_cookie, (value >> i) & 0x1);
i                 300 dev/onewire/onewire.c 	int i;
i                 306 dev/onewire/onewire.c 	for (i = 0; i < 8; i++)
i                 307 dev/onewire/onewire.c 		onewire_write_byte(arg, (rom >> (i * 8)) & 0xff);
i                 315 dev/onewire/onewire.c 	int search = 1, count = 0, lastd = -1, dir, rv, i, i0;
i                 337 dev/onewire/onewire.c 		for (i = 0, i0 = -1; i < 64; i++) {
i                 338 dev/onewire/onewire.c 			dir = (lastrom >> i) & 0x1;
i                 339 dev/onewire/onewire.c 			if (i == lastd)
i                 341 dev/onewire/onewire.c 			else if (i > lastd)
i                 346 dev/onewire/onewire.c 				if (i != lastd && dir == 0)
i                 347 dev/onewire/onewire.c 					i0 = i;
i                 359 dev/onewire/onewire.c 				    sc->sc_dev.dv_xname, rv, i));
i                 363 dev/onewire/onewire.c 			rom |= (mask << i);
i                 378 dev/onewire/onewire.c 		for (i = 0; i < 8; i++)
i                 379 dev/onewire/onewire.c 			data[i] = (rom >> (i * 8)) & 0xff;
i                 423 dev/onewire/onewire.c 	int i, rv;
i                 449 dev/onewire/onewire.c 	for (i = 0; i < rv; i++) {
i                 450 dev/onewire/onewire.c 		rom = sc->sc_rombuf[i];
i                  32 dev/onewire/onewire_bitbang.c 	int s, rv, i;
i                  41 dev/onewire/onewire_bitbang.c 	for (i = 0; i < 6; i++) {
i                  55 dev/onewire/onewire_bitbang.c 	int s, rv, i;
i                  64 dev/onewire/onewire_bitbang.c 		for (i = 0; i < 15; i++) {
i                 101 dev/onewire/onewire_subr.c 	int i;
i                 103 dev/onewire/onewire_subr.c 	for (i = 0, om = fams; i < nent; i++, om++)
i                  61 dev/pci/agp.c  	int i, ret;
i                  84 dev/pci/agp.c  		for (i = 0; i < agp_max_size && memsize > agp_max[i][0]; i++)
i                  86 dev/pci/agp.c  		if (i == agp_max_size)
i                  87 dev/pci/agp.c  			i = agp_max_size - 1;
i                  88 dev/pci/agp.c  		sc->sc_maxmem = agp_max[i][1] << 20;
i                 516 dev/pci/agp.c  	off_t i, k;
i                 584 dev/pci/agp.c  	for (i = 0; i < mem->am_dmamap->dm_nsegs; i++) {
i                 585 dev/pci/agp.c  		seg = &mem->am_dmamap->dm_segs[i];
i                 643 dev/pci/agp.c  	int i;
i                 658 dev/pci/agp.c  	for (i = 0; i < mem->am_size; i += AGP_PAGE_SIZE)
i                 659 dev/pci/agp.c  		AGP_UNBIND_PAGE(sc, mem->am_offset + i);
i                 180 dev/pci/agp_ali.c 	int i;
i                 186 dev/pci/agp_ali.c 	i = (int)pci_conf_read(sc->sc_pc, sc->sc_pcitag,
i                 188 dev/pci/agp_ali.c 	if (i >= agp_ali_table_size)
i                 190 dev/pci/agp_ali.c 	return (agp_ali_table[i]);
i                 196 dev/pci/agp_ali.c 	int i;
i                 199 dev/pci/agp_ali.c 	for (i = 0; i < agp_ali_table_size; i++)
i                 200 dev/pci/agp_ali.c 		if (agp_ali_table[i] == aperture)
i                 202 dev/pci/agp_ali.c 	if (i == agp_ali_table_size)
i                 207 dev/pci/agp_ali.c 	reg |= i;
i                 104 dev/pci/agp_amd.c 	int i, npages;
i                 135 dev/pci/agp_amd.c 	for (i = 0; i < npages; i++)
i                 136 dev/pci/agp_amd.c 		gatt->ag_vdir[i] = (gatt->ag_physical + i * AGP_PAGE_SIZE) | 1;
i                 747 dev/pci/agp_i810.c 	u_int32_t regval, i;
i                 766 dev/pci/agp_i810.c 		for (i = 0; i < mem->am_size; i += AGP_PAGE_SIZE) {
i                 767 dev/pci/agp_i810.c 			WRITE_GATT(offset + i, mem->am_physical + i);
i                 780 dev/pci/agp_i810.c 	for (i = 0; i < mem->am_size; i += AGP_PAGE_SIZE) {
i                 782 dev/pci/agp_i810.c 		    (u_int32_t)(offset >> AGP_PAGE_SHIFT) * 4, i | 3);
i                 792 dev/pci/agp_i810.c 	u_int32_t i;
i                 795 dev/pci/agp_i810.c 		for (i = 0; i < mem->am_size; i += AGP_PAGE_SIZE) {
i                 796 dev/pci/agp_i810.c 			WRITE_GATT(mem->am_offset + i, 0);
i                 809 dev/pci/agp_i810.c 	for (i = 0; i < mem->am_size; i += AGP_PAGE_SIZE)
i                 810 dev/pci/agp_i810.c 		WRITE4(AGP_I810_GTT + (i >> AGP_PAGE_SHIFT) * 4, 0);
i                 660 dev/pci/ahc_pci.c 	u_int	   i;
i                 678 dev/pci/ahc_pci.c 	for (i = 0; i < NUM_ELEMENTS(ahc_pci_ident_table); i++) {
i                 679 dev/pci/ahc_pci.c 		entry = &ahc_pci_ident_table[i];
i                 729 dev/pci/ahc_pci.c 	int i;
i                 738 dev/pci/ahc_pci.c 	for (i = 0; i < AHC_NUM_TARGETS; i++)
i                 739 dev/pci/ahc_pci.c 		TAILQ_INIT(&ahc->untagged_queues[i]);
i                 521 dev/pci/ahci.c 	int				i;
i                 524 dev/pci/ahci.c 	for (i = 0; i < (sizeof(ahci_devices) / sizeof(ahci_devices[0])); i++) {
i                 525 dev/pci/ahci.c 		ad = &ahci_devices[i];
i                 580 dev/pci/ahci.c 	int				i;
i                 678 dev/pci/ahci.c 	for (i = 0; i < AHCI_MAX_PORTS; i++) {
i                 679 dev/pci/ahci.c 		if (!ISSET(pi, 1 << i)) {
i                 684 dev/pci/ahci.c 		if (ahci_port_alloc(sc, i) == ENOMEM)
i                 706 dev/pci/ahci.c 	for (i = 0; i < AHCI_MAX_PORTS; i++)
i                 707 dev/pci/ahci.c 		if (sc->sc_ports[i] != NULL)
i                 708 dev/pci/ahci.c 			ahci_port_free(sc, i);
i                 825 dev/pci/ahci.c 	int				i, rc = ENOMEM;
i                 930 dev/pci/ahci.c 	for (i = 0; i < sc->sc_ncmds; i++) {
i                 931 dev/pci/ahci.c 		ccb = &ap->ap_ccbs[i];
i                 937 dev/pci/ahci.c 			    "ccb %d\n", DEVNAME(sc), port, i);
i                 941 dev/pci/ahci.c 		ccb->ccb_slot = i;
i                 943 dev/pci/ahci.c 		ccb->ccb_cmd_hdr = &hdr[i];
i                 944 dev/pci/ahci.c 		ccb->ccb_cmd_table = &table[i];
i                 953 dev/pci/ahci.c 		ccb->ccb_xa.tag = i;
i                1332 dev/pci/ahci.c 	int				i, error;
i                1346 dev/pci/ahci.c 	for (i = 0; i < dmap->dm_nsegs; i++) {
i                1347 dev/pci/ahci.c 		prd = &prdt[i];
i                1349 dev/pci/ahci.c 		addr = dmap->dm_segs[i].ds_addr;
i                1358 dev/pci/ahci.c 		if (dmap->dm_segs[i].ds_len & 1) {
i                1360 dev/pci/ahci.c 			    PORTNAME(ap), (int)dmap->dm_segs[i].ds_len);
i                1364 dev/pci/ahci.c 		prd->flags = htole32(dmap->dm_segs[i].ds_len - 1);
i                2102 dev/pci/ahci.c 	int				i;
i                2104 dev/pci/ahci.c 	for (i = 0; i < 1000; i++) {
i                2133 dev/pci/ahci.c 	int				i;
i                2135 dev/pci/ahci.c 	for (i = 0; i < 1000; i++) {
i                 300 dev/pci/ahd_pci.c 	u_int i;
i                 313 dev/pci/ahd_pci.c 	for (i = 0; i < ahd_num_pci_devs; i++) {
i                 314 dev/pci/ahd_pci.c 		entry = &ahd_pci_ident_table[i];
i                 736 dev/pci/ahd_pci.c 			int	  i;
i                 740 dev/pci/ahd_pci.c 			for (i = 0; i < 64; i += 2)
i                 741 dev/pci/ahd_pci.c 				*sc_data++ = ahd_inw_scbram(ahd, SCB_BASE+i);
i                 752 dev/pci/ahd_pci.c 		int	  i;
i                 756 dev/pci/ahd_pci.c 		for (i = 0; i < (sizeof(*sc)); i += 2)
i                 757 dev/pci/ahd_pci.c 			printf("\n\t0x%.4x", sc_data[i]);
i                 937 dev/pci/ahd_pci.c 	u_int		i;
i                 952 dev/pci/ahd_pci.c 	for (i = 0, reg = DF0PCISTAT; i < 8; i++, reg++) {
i                 954 dev/pci/ahd_pci.c 		if (i == 5)
i                 956 dev/pci/ahd_pci.c 		pci_status[i] = ahd_inb(ahd, reg);
i                 958 dev/pci/ahd_pci.c 		ahd_outb(ahd, reg, pci_status[i]);
i                 961 dev/pci/ahd_pci.c 	for (i = 0; i < 8; i++) {
i                 964 dev/pci/ahd_pci.c 		if (i == 5)
i                 969 dev/pci/ahd_pci.c 			if ((pci_status[i] & (0x1 << bit)) != 0) {
i                 973 dev/pci/ahd_pci.c 				if (i == 7/*TARG*/ && bit == 3)
i                 975 dev/pci/ahd_pci.c 				printf(s, ahd_name(ahd), pci_status_source[i]);
i                 999 dev/pci/ahd_pci.c 	u_int		i;
i                1011 dev/pci/ahd_pci.c 	for (i = 0; i < 4; i++) {
i                1012 dev/pci/ahd_pci.c 		ahd_set_modes(ahd, i, i);
i                1014 dev/pci/ahd_pci.c 		split_status[i] = ahd_inb(ahd, DCHSPLTSTAT0);
i                1015 dev/pci/ahd_pci.c 		split_status1[i] = ahd_inb(ahd, DCHSPLTSTAT1);
i                1017 dev/pci/ahd_pci.c 		ahd_outb(ahd, DCHSPLTSTAT0, split_status[i]);
i                1018 dev/pci/ahd_pci.c 		ahd_outb(ahd, DCHSPLTSTAT1, split_status1[i]);
i                1019 dev/pci/ahd_pci.c 		if (i > 1)
i                1021 dev/pci/ahd_pci.c 		sg_split_status[i] = ahd_inb(ahd, SGSPLTSTAT0);
i                1022 dev/pci/ahd_pci.c 		sg_split_status1[i] = ahd_inb(ahd, SGSPLTSTAT1);
i                1024 dev/pci/ahd_pci.c 		ahd_outb(ahd, SGSPLTSTAT0, sg_split_status[i]);
i                1025 dev/pci/ahd_pci.c 		ahd_outb(ahd, SGSPLTSTAT1, sg_split_status1[i]);
i                1028 dev/pci/ahd_pci.c 	for (i = 0; i < 4; i++) {
i                1033 dev/pci/ahd_pci.c 			if ((split_status[i] & (0x1 << bit)) != 0) {
i                1038 dev/pci/ahd_pci.c 				       split_status_source[i]);
i                1041 dev/pci/ahd_pci.c 			if (i > 1)
i                1044 dev/pci/ahd_pci.c 			if ((sg_split_status[i] & (0x1 << bit)) != 0) {
i                 228 dev/pci/amdpm.c 	int i;
i                 282 dev/pci/amdpm.c 				for (i = 1000; i--; ) {
i                  53 dev/pci/ami_pci.c #define		AMI_INITSTAT(i)	(((i) >>  8) & 0xff)
i                  54 dev/pci/ami_pci.c #define		AMI_INITTARG(i)	(((i) >> 16) & 0xff)
i                  55 dev/pci/ami_pci.c #define		AMI_INITCHAN(i)	(((i) >> 24) & 0xff)
i                 142 dev/pci/ami_pci.c 	int i;
i                 144 dev/pci/ami_pci.c 	for (i = 0; ami_pci_devices[i].vendor; i++) {
i                 145 dev/pci/ami_pci.c 		if (ami_pci_devices[i].vendor == PCI_VENDOR(pa->pa_id) &&
i                 146 dev/pci/ami_pci.c 		    ami_pci_devices[i].product == PCI_PRODUCT(pa->pa_id)) {
i                 148 dev/pci/ami_pci.c 		    	printf(" apfd %i ", i);
i                 150 dev/pci/ami_pci.c 			return (i);
i                 162 dev/pci/ami_pci.c 	int i;
i                 167 dev/pci/ami_pci.c 	if ((i = ami_pci_find_device(aux)) != -1) {
i                 170 dev/pci/ami_pci.c 			ami_pci_devices[i].vendor,
i                 171 dev/pci/ami_pci.c 			ami_pci_devices[i].product);
i                 174 dev/pci/ami_pci.c 		if (!(ami_pci_devices[i].flags & AMI_CHECK_SIGN))
i                 197 dev/pci/ami_pci.c 	int i;
i                 284 dev/pci/ami_pci.c 	if ((i = ami_pci_find_device(aux)) != -1) {
i                 285 dev/pci/ami_pci.c 		if (ami_pci_devices[i].flags & AMI_BROKEN)
i                 744 dev/pci/arc.c  	int				i, error;
i                 757 dev/pci/arc.c  	for (i = 0; i < dmap->dm_nsegs; i++) {
i                 758 dev/pci/arc.c  		sge = &sgl[i];
i                 760 dev/pci/arc.c  		sge->sg_hdr = htole32(ARC_SGE_64BIT | dmap->dm_segs[i].ds_len);
i                 761 dev/pci/arc.c  		addr = dmap->dm_segs[i].ds_addr;
i                1085 dev/pci/arc.c  	int				maxvols, nvols = 0, i;
i                1102 dev/pci/arc.c  	for (i = 0; i < maxvols; i++) {
i                1103 dev/pci/arc.c  		request[1] = i;
i                1134 dev/pci/arc.c  	int				maxvols, nvols = 0, i;
i                1147 dev/pci/arc.c  	for (i = 0; i < maxvols; i++) {
i                1148 dev/pci/arc.c  		request[1] = i;
i                1350 dev/pci/arc.c  	int				i;
i                1353 dev/pci/arc.c  	for (i = 0; i < len; i++)
i                1354 dev/pci/arc.c  		cksum += buf[i];
i                1371 dev/pci/arc.c  	int				i;
i                1406 dev/pci/arc.c  				for (i = 0; i < rwlen; i++)
i                1407 dev/pci/arc.c  					printf(" 0x%02x", rwbuf[i]);
i                1450 dev/pci/arc.c  				for (i = 0; i < rwlen; i++)
i                1451 dev/pci/arc.c  					printf(" 0x%02x", rwbuf[i]);
i                1536 dev/pci/arc.c  	int			i;
i                1559 dev/pci/arc.c  	for (i = 0; i < sc->sc_nsensors; i++) {
i                1561 dev/pci/arc.c  		bv.bv_volid = i;
i                1565 dev/pci/arc.c  		sc->sc_sensors[i].type = SENSOR_DRIVE;
i                1566 dev/pci/arc.c  		sc->sc_sensors[i].status = SENSOR_S_UNKNOWN;
i                1568 dev/pci/arc.c  		strlcpy(sc->sc_sensors[i].desc, bv.bv_dev,
i                1569 dev/pci/arc.c  		    sizeof(sc->sc_sensors[i].desc));
i                1571 dev/pci/arc.c  		sensor_attach(&sc->sc_sensordev, &sc->sc_sensors[i]);
i                1590 dev/pci/arc.c  	int			i;
i                1592 dev/pci/arc.c  	for (i = 0; i < sc->sc_nsensors; i++) {
i                1594 dev/pci/arc.c  		bv.bv_volid = i;
i                1596 dev/pci/arc.c  			sc->sc_sensors[i].flags = SENSOR_FINVALID;
i                1602 dev/pci/arc.c  			sc->sc_sensors[i].value = SENSOR_DRIVE_FAIL;
i                1603 dev/pci/arc.c  			sc->sc_sensors[i].status = SENSOR_S_CRIT;
i                1607 dev/pci/arc.c  			sc->sc_sensors[i].value = SENSOR_DRIVE_PFAIL;
i                1608 dev/pci/arc.c  			sc->sc_sensors[i].status = SENSOR_S_WARN;
i                1613 dev/pci/arc.c  			sc->sc_sensors[i].value = SENSOR_DRIVE_ONLINE;
i                1614 dev/pci/arc.c  			sc->sc_sensors[i].status = SENSOR_S_OK;
i                1620 dev/pci/arc.c  			sc->sc_sensors[i].value = 0; /* unknown */
i                1621 dev/pci/arc.c  			sc->sc_sensors[i].status = SENSOR_S_UNKNOWN;
i                1673 dev/pci/arc.c  	int				i;
i                1678 dev/pci/arc.c  	for (i = 0; i < 10000; i++) {
i                1691 dev/pci/arc.c  	int				i;
i                1696 dev/pci/arc.c  	for (i = 0; i < 10000; i++) {
i                1781 dev/pci/arc.c  	int				i;
i                1797 dev/pci/arc.c  	for (i = 0; i < sc->sc_req_count; i++) {
i                1798 dev/pci/arc.c  		ccb = &sc->sc_ccbs[i];
i                1803 dev/pci/arc.c  			    DEVNAME(sc), i);
i                1808 dev/pci/arc.c  		ccb->ccb_id = i;
i                1809 dev/pci/arc.c  		ccb->ccb_offset = ARC_MAX_IOCMDLEN * i;
i                 333 dev/pci/auich.c 	int i;
i                 335 dev/pci/auich.c 	for (i = sizeof(auich_devices)/sizeof(auich_devices[0]); i--;)
i                 336 dev/pci/auich.c 		if (PCI_VENDOR(pa->pa_id) == auich_devices[i].vendor &&
i                 337 dev/pci/auich.c 		    PCI_PRODUCT(pa->pa_id) == auich_devices[i].product)
i                 356 dev/pci/auich.c 	int i, segs;
i                 456 dev/pci/auich.c 	for (i = sizeof(auich_devices)/sizeof(auich_devices[0]); i--;)
i                 457 dev/pci/auich.c 		if (PCI_PRODUCT(pa->pa_id) == auich_devices[i].product)
i                 461 dev/pci/auich.c 		 auich_devices[i].name);
i                 550 dev/pci/auich.c 	int i;
i                 553 dev/pci/auich.c 	for (i = AUICH_SEMATIMO; i-- &&
i                 556 dev/pci/auich.c 	if (!sc->sc_ignore_codecready && i < 0) {
i                 575 dev/pci/auich.c 	int i;
i                 578 dev/pci/auich.c 	for (i = AUICH_SEMATIMO; i-- &&
i                 581 dev/pci/auich.c 	if (sc->sc_ignore_codecready || i >= 0) {
i                 610 dev/pci/auich.c 	int i;
i                 617 dev/pci/auich.c 	for (i = AUICH_RESETIMO; i-- &&
i                 621 dev/pci/auich.c 	if (i < 0)
i                1186 dev/pci/auich.c 	int ret = 0, sts, gsts, i;
i                1203 dev/pci/auich.c 		i = bus_space_read_1(sc->iot, sc->aud_ioh, AUICH_PCMO + AUICH_CIV);
i                1208 dev/pci/auich.c 			qe = &sc->dmalist_pcmo[i];
i                1258 dev/pci/auich.c 		i = bus_space_read_1(sc->iot, sc->aud_ioh, AUICH_PCMI + AUICH_CIV);
i                1263 dev/pci/auich.c 			qe = &sc->dmalist_pcmi[i];
i                1464 dev/pci/auich.c 	int i;
i                1487 dev/pci/auich.c 	for (i = 0; i < AUICH_DMALIST_MAX; i++) {
i                1488 dev/pci/auich.c 		sc->dmalist_pcmi[i].base = p->map->dm_segs[0].ds_addr;
i                1489 dev/pci/auich.c 		sc->dmalist_pcmi[i].len = bytes / sc->sc_sample_size;
i                 738 dev/pci/auixp.c 	int i;
i                 749 dev/pci/auixp.c 	for (i = 0; i < blocks; i++) {
i                 757 dev/pci/auixp.c 		if (i == blocks-1) {
i                 518 dev/pci/autri.c 	int i, r;
i                 582 dev/pci/autri.c 	for (i = 0; i < 4; i++) {
i                 597 dev/pci/autri.c 		    d[i].class, d[i].device, AudioNmute);
i                 599 dev/pci/autri.c 		ctl.dev = autri_get_portnum_by_name(sc,d[i].class,
i                 600 dev/pci/autri.c 						   d[i].device, AudioNmute);
i                1262 dev/pci/autri.c 	int i, ch, channel;
i                1378 dev/pci/autri.c 		for (i=0; i<5; i++) {
i                1379 dev/pci/autri.c 			TWRITE4(sc, AUTRI_ARAM_CR + i*sizeof(cr[0]), cr[i]);
i                1380 dev/pci/autri.c 			DPRINTFN(5,("cr[%d] : 0x%08X\n", i, cr[i]));
i                 230 dev/pci/auvia.c 	int r, i;
i                 293 dev/pci/auvia.c 	for (i = 0; i < 4; i++) {
i                 307 dev/pci/auvia.c 		    d[i].class, d[i].device, AudioNmute);
i                 340 dev/pci/auvia.c 	int i;
i                 356 dev/pci/auvia.c 	for (i = 500000; i != 0 && !(pci_conf_read(sc->sc_pc, sc->sc_pt,
i                 357 dev/pci/auvia.c 		AUVIA_PCICONF_JUNK) & AUVIA_PCICONF_PRIVALID); i--)
i                 359 dev/pci/auvia.c 	if (i == 0)
i                 367 dev/pci/auvia.c 	int i;
i                 370 dev/pci/auvia.c 	for (i = 0; (i < TIMEOUT) && (bus_space_read_4(sc->sc_iot, sc->sc_ioh,
i                 371 dev/pci/auvia.c 	     AUVIA_CODEC_CTL) & AUVIA_CODEC_BUSY); i++)
i                 374 dev/pci/auvia.c 	if (i >= TIMEOUT) {
i                 386 dev/pci/auvia.c 	int i;
i                 389 dev/pci/auvia.c 	for (i = 0; (i < TIMEOUT) && !(bus_space_read_4(sc->sc_iot, sc->sc_ioh,
i                 390 dev/pci/auvia.c 	     AUVIA_CODEC_CTL) & AUVIA_CODEC_PRIVALID); i++)
i                 393 dev/pci/auvia.c 	if (i >= TIMEOUT) {
i                 954 dev/pci/auvia.c 	int i = 0;
i                 966 dev/pci/auvia.c 		i++;
i                 978 dev/pci/auvia.c 		i++;
i                 981 dev/pci/auvia.c 	return (i? 1 : 0);
i                 444 dev/pci/azalia.c 	int i;
i                 458 dev/pci/azalia.c 	for (i = 0; i < az->ncodecs; i++) {
i                 459 dev/pci/azalia.c 		azalia_codec_delete(&az->codecs[i]);
i                 516 dev/pci/azalia.c 	int i, n;
i                 535 dev/pci/azalia.c 	for (i = 5000; i >= 0; i--) {
i                 540 dev/pci/azalia.c 	DPRINTF(("%s: reset counter = %d\n", __func__, i));
i                 541 dev/pci/azalia.c 	if (i <= 0) {
i                 548 dev/pci/azalia.c 	for (i = 5000; i >= 0; i--) {
i                 553 dev/pci/azalia.c 	DPRINTF(("%s: reset counter = %d\n", __func__, i));
i                 554 dev/pci/azalia.c 	if (i <= 0) {
i                 566 dev/pci/azalia.c 	for (i = 0, n = 0; i < 15; i++) {
i                 567 dev/pci/azalia.c 		if ((statests >> i) & 1) {
i                 568 dev/pci/azalia.c 			DPRINTF(("%s: found a codec at #%d\n", XNAME(az), i));
i                 569 dev/pci/azalia.c 			az->codecs[n].address = i;
i                 585 dev/pci/azalia.c 	int err, i, c;
i                 606 dev/pci/azalia.c 	for (i = 0; i < az->ncodecs; i++) {
i                 607 dev/pci/azalia.c 		err = azalia_codec_init(&az->codecs[i]);
i                 609 dev/pci/azalia.c 			c = i;
i                 633 dev/pci/azalia.c 	int entries, err, i;
i                 641 dev/pci/azalia.c 		for (i = 5000; i >= 0; i--) {
i                 647 dev/pci/azalia.c 		if (i <= 0) {
i                 688 dev/pci/azalia.c 	for (i = 5000; i >= 0; i--) {
i                 694 dev/pci/azalia.c 	if (i <= 0) {
i                 714 dev/pci/azalia.c 	int i;
i                 722 dev/pci/azalia.c 	for (i = 5000; i >= 0; i--) {
i                 735 dev/pci/azalia.c 	int entries, err, i;
i                 743 dev/pci/azalia.c 		for (i = 5000; i >= 0; i--) {
i                 749 dev/pci/azalia.c 		if (i <= 0) {
i                 821 dev/pci/azalia.c 	int i;
i                 833 dev/pci/azalia.c 	for (i = 5000; i >= 0; i--) {
i                 886 dev/pci/azalia.c 	int i;
i                 896 dev/pci/azalia.c 	for (i = 5000; i >= 0; i--) {
i                 902 dev/pci/azalia.c 	if (i <= 0) {
i                 922 dev/pci/azalia.c 	for (i = 0; i < 16 /*az->rirb_size*/; i++) {
i                 923 dev/pci/azalia.c 		DPRINTF(("rirb[%d] 0x%8.8x:0x%8.8x ", i, rirb[i].resp, rirb[i].resp_ex));
i                 924 dev/pci/azalia.c 		if ((i % 2) == 1)
i                 943 dev/pci/azalia.c 		int i;
i                 946 dev/pci/azalia.c 		i = RIRB_RESP_CODEC(az->unsolq[az->unsolq_rp].resp_ex);
i                 948 dev/pci/azalia.c 		codec = &az->codecs[i];
i                 949 dev/pci/azalia.c 		DPRINTF(("%s: codec#=%d tag=%d\n", __func__, i, tag));
i                1052 dev/pci/azalia.c 	int err, addr, n, i;
i                1100 dev/pci/azalia.c 	for (i = 0; i < this->nfunctions; i++) {
i                1101 dev/pci/azalia.c 		err = this->comresp(this, n + i, CORB_GET_PARAMETER,
i                1107 dev/pci/azalia.c 			this->audiofunc = n + i;
i                1173 dev/pci/azalia.c 	FOR_EACH_WIDGET(this, i) {
i                1174 dev/pci/azalia.c 		err = azalia_widget_init(&this->w[i], this, i);
i                1183 dev/pci/azalia.c 	for (i = 0; i < this->dacs.ngroups; i++) {
i                1184 dev/pci/azalia.c 		DPRINTF(("%s: dacgroup[%d]:", __func__, i));
i                1185 dev/pci/azalia.c 		for (n = 0; n < this->dacs.groups[i].nconv; n++) {
i                1186 dev/pci/azalia.c 			DPRINTF((" %2.2x", this->dacs.groups[i].conv[n]));
i                1224 dev/pci/azalia.c 	int nbits, c, chan, i, err;
i                1290 dev/pci/azalia.c 		for (chan = 0, i = 0; i <= c; i++)
i                1301 dev/pci/azalia.c 		for (chan = 0, i = 0; i <= c; i++)
i                1404 dev/pci/azalia.c 	int i, err, startchan, nchan;
i                1420 dev/pci/azalia.c 	for (i = 0; i < group->nconv; i++) {
i                1421 dev/pci/azalia.c 		nid = group->conv[i];
i                1424 dev/pci/azalia.c 		if (nchan >= 6 && flag222 && i == 1) {
i                1426 dev/pci/azalia.c 		} else if (nchan >= 6 && flag222 && i == 2) {
i                1668 dev/pci/azalia.c 	int length, i;
i                1690 dev/pci/azalia.c 		for (i = 0; i < length;) {
i                1692 dev/pci/azalia.c 			    CORB_GET_CONNECTION_LIST_ENTRY, i, &result);
i                1695 dev/pci/azalia.c 			this->connections[i++] = CORB_CLE_LONG_0(result);
i                1696 dev/pci/azalia.c 			this->connections[i++] = CORB_CLE_LONG_1(result);
i                1699 dev/pci/azalia.c 		for (i = 0; i < length;) {
i                1701 dev/pci/azalia.c 			    CORB_GET_CONNECTION_LIST_ENTRY, i, &result);
i                1704 dev/pci/azalia.c 			this->connections[i++] = CORB_CLE_SHORT_0(result);
i                1705 dev/pci/azalia.c 			this->connections[i++] = CORB_CLE_SHORT_1(result);
i                1706 dev/pci/azalia.c 			this->connections[i++] = CORB_CLE_SHORT_2(result);
i                1707 dev/pci/azalia.c 			this->connections[i++] = CORB_CLE_SHORT_3(result);
i                1712 dev/pci/azalia.c 		for (i = 1; i < length; i++) {
i                1713 dev/pci/azalia.c 			DPRINTF((",0x%x", this->connections[i]));
i                1763 dev/pci/azalia.c 	int i;
i                1775 dev/pci/azalia.c 	for (i = 5000; i >= 0; i--) {
i                1781 dev/pci/azalia.c 	if (i <= 0) {
i                1788 dev/pci/azalia.c 	for (i = 5000; i >= 0; i--) {
i                1794 dev/pci/azalia.c 	if (i <= 0) {
i                1939 dev/pci/azalia.c 	int i, j;
i                1943 dev/pci/azalia.c 	for (j = 0, i = 0; j < codec->nformats; j++) {
i                1947 dev/pci/azalia.c 		if (i == enc->index) {
i                1967 dev/pci/azalia.c 		i++;
i                1980 dev/pci/azalia.c 	int i, j;
i                1991 dev/pci/azalia.c 		for (i = 0; i < codec->nformats; i++) {
i                1992 dev/pci/azalia.c 			if (r->encoding != codec->formats[i].encoding)
i                1994 dev/pci/azalia.c 			if (r->precision != codec->formats[i].precision)
i                1996 dev/pci/azalia.c 			if (r->channels != codec->formats[i].channels)
i                2000 dev/pci/azalia.c 		if (i == codec->nformats) {
i                2005 dev/pci/azalia.c 		for (j = 0; j < codec->formats[i].frequency_type; j++) {
i                2006 dev/pci/azalia.c 			if (r->sample_rate != codec->formats[i].frequency[j])
i                2010 dev/pci/azalia.c 		if (j == codec->formats[i].frequency_type) {
i                2024 dev/pci/azalia.c 		for (i = 0; i < codec->nformats; i++) {
i                2025 dev/pci/azalia.c 			if (p->encoding != codec->formats[i].encoding)
i                2027 dev/pci/azalia.c 			if (p->precision != codec->formats[i].precision)
i                2029 dev/pci/azalia.c 			if (p->channels != codec->formats[i].channels)
i                2033 dev/pci/azalia.c 		if (i == codec->nformats) {
i                2038 dev/pci/azalia.c 		for (j = 0; j < codec->formats[i].frequency_type; j++) {
i                2039 dev/pci/azalia.c 			if (p->sample_rate != codec->formats[i].frequency[j])
i                2043 dev/pci/azalia.c 		if (j == codec->formats[i].frequency_type) {
i                2328 dev/pci/azalia.c 	int i;
i                2331 dev/pci/azalia.c 	for (i = 0; i < nformats; i++) {
i                2333 dev/pci/azalia.c 		    i, formats[i].encoding, formats[i].validbits,
i                2334 dev/pci/azalia.c 		    formats[i].precision, formats[i].channels,
i                2335 dev/pci/azalia.c 		    formats[i].channel_mask);
i                2336 dev/pci/azalia.c 		printf("format(%d) rates:", i);
i                2337 dev/pci/azalia.c 		for (j = 0; j < formats[i].frequency_type; j++) {
i                2338 dev/pci/azalia.c 			printf(" %u", formats[i].frequency[j]);
i                 550 dev/pci/azalia.h #define FOR_EACH_WIDGET(this, i)	for (i = (this)->wstart; i < (this)->wend; i++)
i                 212 dev/pci/azalia_codec.c 	int i, j, assoc, group;
i                 229 dev/pci/azalia_codec.c 	FOR_EACH_WIDGET(this, i) {
i                 232 dev/pci/azalia_codec.c 		if (this->w[i].type != COP_AWTYPE_AUDIO_OUTPUT)
i                 237 dev/pci/azalia_codec.c 				if (i == this->dacs.groups[group].conv[j]) {
i                 249 dev/pci/azalia_codec.c 		this->dacs.groups[this->dacs.ngroups].conv[0] = i;
i                 256 dev/pci/azalia_codec.c 	FOR_EACH_WIDGET(this, i) {
i                 257 dev/pci/azalia_codec.c 		if (this->w[i].type != COP_AWTYPE_AUDIO_INPUT)
i                 260 dev/pci/azalia_codec.c 		this->adcs.groups[this->adcs.ngroups].conv[0] = i;
i                 272 dev/pci/azalia_codec.c 	int i, j, n, dac, seq;
i                 276 dev/pci/azalia_codec.c 		i = azalia_generic_codec_find_pin(this, assoc, seq, digital);
i                 277 dev/pci/azalia_codec.c 		if (i < 0)
i                 279 dev/pci/azalia_codec.c 		dac = azalia_generic_codec_find_dac(this, i, 0);
i                 298 dev/pci/azalia_codec.c 	for (i = 0; i < this->dacs.ngroups; i++) {
i                 299 dev/pci/azalia_codec.c 		if (n != this->dacs.groups[i].nconv)
i                 303 dev/pci/azalia_codec.c 			    this->dacs.groups[i].conv[j])
i                 317 dev/pci/azalia_codec.c 	int i;
i                 319 dev/pci/azalia_codec.c 	FOR_EACH_WIDGET(this, i) {
i                 320 dev/pci/azalia_codec.c 		if (this->w[i].type != COP_AWTYPE_PIN_COMPLEX)
i                 322 dev/pci/azalia_codec.c 		if ((this->w[i].d.pin.cap & COP_PINCAP_OUTPUT) == 0)
i                 324 dev/pci/azalia_codec.c 		if ((this->w[i].widgetcap & COP_AWCAP_DIGITAL) != digital)
i                 326 dev/pci/azalia_codec.c 		if (this->w[i].d.pin.association != assoc)
i                 328 dev/pci/azalia_codec.c 		if (this->w[i].d.pin.sequence == seq) {
i                 329 dev/pci/azalia_codec.c 			return i;
i                 339 dev/pci/azalia_codec.c 	int i, j, ret;
i                 361 dev/pci/azalia_codec.c 	for (i = 0; i < w->nconnections; i++) {
i                 362 dev/pci/azalia_codec.c 		j = w->connections[i];
i                 390 dev/pci/azalia_codec.c 	int err, i, j, k;
i                 443 dev/pci/azalia_codec.c 	m->nid = i
i                 445 dev/pci/azalia_codec.c 	FOR_EACH_WIDGET(this, i) {
i                 448 dev/pci/azalia_codec.c 		w = &this->w[i];
i                 717 dev/pci/azalia_codec.c 		for (i = 0; i < this->dacs.ngroups && i < 32; i++) {
i                 718 dev/pci/azalia_codec.c 			d->un.e.member[i].ord = i;
i                 719 dev/pci/azalia_codec.c 			for (j = 0; j < this->dacs.groups[i].nconv; j++) {
i                 722 dev/pci/azalia_codec.c 				snprintf(d->un.e.member[i].label.name + j*2,
i                 724 dev/pci/azalia_codec.c 				    this->dacs.groups[i].conv[j]);
i                 727 dev/pci/azalia_codec.c 		d->un.e.num_mem = i;
i                 739 dev/pci/azalia_codec.c 		for (i = 0; i < this->adcs.ngroups && i < 32; i++) {
i                 740 dev/pci/azalia_codec.c 			d->un.e.member[i].ord = i;
i                 741 dev/pci/azalia_codec.c 			for (j = 0; j < this->adcs.groups[i].nconv; j++) {
i                 744 dev/pci/azalia_codec.c 				snprintf(d->un.e.member[i].label.name + j*2,
i                 746 dev/pci/azalia_codec.c 				    this->adcs.groups[i].conv[j]);
i                 749 dev/pci/azalia_codec.c 		d->un.e.num_mem = i;
i                 785 dev/pci/azalia_codec.c 	int i;
i                 788 dev/pci/azalia_codec.c 	for (i = 0; i < this->nmixers; i++) {
i                 789 dev/pci/azalia_codec.c 		d = &this->mixers[i].devinfo;
i                 791 dev/pci/azalia_codec.c 		if (d->index != 0 && d->index != i)
i                 793 dev/pci/azalia_codec.c 			    d->index, i);
i                 795 dev/pci/azalia_codec.c 		d->index = i;
i                 807 dev/pci/azalia_codec.c 	int i;
i                 811 dev/pci/azalia_codec.c 	for (i = 0; i < this->nmixers; i++) {
i                 814 dev/pci/azalia_codec.c 		m = &this->mixers[i];
i                 820 dev/pci/azalia_codec.c 		mc.dev = i;
i                 832 dev/pci/azalia_codec.c 	for (i = 0; i < this->nmixers; i++) {
i                 835 dev/pci/azalia_codec.c 		m = &this->mixers[i];
i                 838 dev/pci/azalia_codec.c 		mc.dev = i;
i                 857 dev/pci/azalia_codec.c 	for (i = 0; i < this->nmixers; i++) {
i                 860 dev/pci/azalia_codec.c 		m = &this->mixers[i];
i                 867 dev/pci/azalia_codec.c 		mc.dev = i;
i                1902 dev/pci/azalia_codec.c 	int i, err;
i                1918 dev/pci/azalia_codec.c 		for (i = 0; i < this->w[m->nid].nconnections && i < 32; i++) {
i                1921 dev/pci/azalia_codec.c 			    MI_TARGET_INAMP(i), &mc2);
i                1936 dev/pci/azalia_codec.c 	int i, err;
i                1949 dev/pci/azalia_codec.c 		for (i = 0; i < this->w[m->nid].nconnections && i < 32; i++) {
i                1952 dev/pci/azalia_codec.c 				      i, &result);
i                 572 dev/pci/bktr/bktr_card.c 	int		card, i,j, card_found;
i                 826 dev/pci/bktr/bktr_card.c 	for (i = 0;
i                 827 dev/pci/bktr/bktr_card.c 	     i < (sizeof bt848_card_signature)/ sizeof (struct bt848_card_sig);
i                 828 dev/pci/bktr/bktr_card.c 	     i++ ) {
i                 831 dev/pci/bktr/bktr_card.c 	  probe_temp = (u_char *) &bt848_card_signature[i].signature;
i                 841 dev/pci/bktr/bktr_card.c 	    bktr->card = cards[ card = bt848_card_signature[i].card];
i                 851 dev/pci/bktr/bktr_card.c 	    select_tuner( bktr, bt848_card_signature[i].tuner );
i                1297 dev/pci/bktr/bktr_card.c 		int i;
i                1298 dev/pci/bktr/bktr_card.c 		for (i=0; i<5; i++)
i                1114 dev/pci/bktr/bktr_core.c 	int                     i;
i                1123 dev/pci/bktr/bktr_core.c 	    for (i = 0; i < BT848_MAX_CLIP_NODE; i++) {
i                1124 dev/pci/bktr/bktr_core.c 		if (bktr->clip_list[i].y_min ==  0 &&
i                1125 dev/pci/bktr/bktr_core.c 		    bktr->clip_list[i].y_max == 0)
i                1128 dev/pci/bktr/bktr_core.c 	    bktr->max_clip_node = i;
i                1146 dev/pci/bktr/bktr_core.c 	    for (i = 0; i < BT848_MAX_CLIP_NODE - 1 ; i++) {
i                1147 dev/pci/bktr/bktr_core.c 		if (bktr->clip_list[i].y_min == 0 &&
i                1148 dev/pci/bktr/bktr_core.c 		    bktr->clip_list[i].y_max == 0) {
i                1151 dev/pci/bktr/bktr_core.c 		if ( bktr->clip_list[i+1].y_min != 0 &&
i                1152 dev/pci/bktr/bktr_core.c 		     bktr->clip_list[i+1].y_max != 0 &&
i                1153 dev/pci/bktr/bktr_core.c 		     bktr->clip_list[i].x_min > bktr->clip_list[i+1].x_min ) {
i                1160 dev/pci/bktr/bktr_core.c 		if (bktr->clip_list[i].x_min >= bktr->clip_list[i].x_max ||
i                1161 dev/pci/bktr/bktr_core.c 		    bktr->clip_list[i].y_min >= bktr->clip_list[i].y_max ||
i                1162 dev/pci/bktr/bktr_core.c 		    bktr->clip_list[i].x_min < 0 ||
i                1163 dev/pci/bktr/bktr_core.c 		    bktr->clip_list[i].x_max < 0 ||
i                1164 dev/pci/bktr/bktr_core.c 		    bktr->clip_list[i].y_min < 0 ||
i                1165 dev/pci/bktr/bktr_core.c 		    bktr->clip_list[i].y_max < 0 ) {
i                2303 dev/pci/bktr/bktr_core.c 	int	i;
i                2305 dev/pci/bktr/bktr_core.c 	for (i = 0; i < 40; i+=4) {
i                2308 dev/pci/bktr/bktr_core.c 		       r[i], INL(bktr, r[i]),
i                2309 dev/pci/bktr/bktr_core.c 		       r[i+1], INL(bktr, r[i+1]),
i                2310 dev/pci/bktr/bktr_core.c 		       r[i+2], INL(bktr, r[i+2]),
i                2311 dev/pci/bktr/bktr_core.c 		       r[i+3], INL(bktr, r[i+3]));
i                2371 dev/pci/bktr/bktr_core.c     int i;
i                2386 dev/pci/bktr/bktr_core.c     for (i = 0; i < bktr->max_clip_node; i++ ) {
i                2387 dev/pci/bktr/bktr_core.c 	clip_node = (bktr_clip_t *) &bktr->clip_list[i];
i                2389 dev/pci/bktr/bktr_core.c 	    bktr->clip_start = i;
i                2399 dev/pci/bktr/bktr_core.c     int i, j;
i                2409 dev/pci/bktr/bktr_core.c     for (i = bktr->clip_start; i < bktr->max_clip_node; i++ ) {
i                2410 dev/pci/bktr/bktr_core.c 	clip_node = (bktr_clip_t *) &bktr->clip_list[i];
i                2418 dev/pci/bktr/bktr_core.c 		bktr->clip_start = i;
i                2420 dev/pci/bktr/bktr_core.c 		for (j = i+1; j  < bktr->max_clip_node; j++ ) {
i                2533 dev/pci/bktr/bktr_core.c 	int		i;
i                2601 dev/pci/bktr/bktr_core.c 	for(i = 0; i < vbilines; i++) {
i                2604 dev/pci/bktr/bktr_core.c 					(i * VBI_LINE_SIZE));
i                2613 dev/pci/bktr/bktr_core.c 		for (i = 0; i < (rows/interlace); i++) {
i                2615 dev/pci/bktr/bktr_core.c 		    if ( notclipped(bktr, i, width)) {
i                2620 dev/pci/bktr/bktr_core.c 			while(getline(bktr, i)) {
i                2646 dev/pci/bktr/bktr_core.c 	for(i = 0; i < vbilines; i++) {
i                2649 dev/pci/bktr/bktr_core.c 				((i+MAX_VBI_LINES) * VBI_LINE_SIZE));
i                2664 dev/pci/bktr/bktr_core.c 		for (i = 0; i < (rows/interlace); i++) {
i                2666 dev/pci/bktr/bktr_core.c 		    if ( notclipped(bktr, i, width)) {
i                2670 dev/pci/bktr/bktr_core.c 			while(getline(bktr, i)) {
i                2700 dev/pci/bktr/bktr_core.c 	int		i;
i                2752 dev/pci/bktr/bktr_core.c 	for (i = 0; i < (rows/interlace); i++) {
i                2754 dev/pci/bktr/bktr_core.c 	    if ( notclipped(bktr, i, width)) {
i                2759 dev/pci/bktr/bktr_core.c 		while(getline(bktr, i)) {
i                2813 dev/pci/bktr/bktr_core.c 		for (i = 0; i < (rows/interlace); i++) {
i                2815 dev/pci/bktr/bktr_core.c 		    if ( notclipped(bktr, i, width)) {
i                2819 dev/pci/bktr/bktr_core.c 			while(getline(bktr, i)) {
i                2851 dev/pci/bktr/bktr_core.c 	int			i;
i                2893 dev/pci/bktr/bktr_core.c 	for (i = 0; i < (rows/interlace); i++) {
i                2937 dev/pci/bktr/bktr_core.c 		for (i = 0; i < (rows/interlace) ; i++) {
i                2964 dev/pci/bktr/bktr_core.c 	int		i;
i                3009 dev/pci/bktr/bktr_core.c 	for (i = 0; i < (rows/interlace ) ; i++) {
i                3013 dev/pci/bktr/bktr_core.c 		*dma_prog++ = htole32(t1 + (cols*rows) + i*cols/2 * interlace);
i                3015 dev/pci/bktr/bktr_core.c 		    i*cols/2 * interlace);
i                3054 dev/pci/bktr/bktr_core.c 		for (i = 0; i < (rows/interlace )  ; i++) {
i                3059 dev/pci/bktr/bktr_core.c 			    i*cols/2 * interlace);
i                3061 dev/pci/bktr/bktr_core.c 			    (cols*rows/2) + i*cols/2 * interlace);
i                3081 dev/pci/bktr/bktr_core.c 	int		i;
i                3112 dev/pci/bktr/bktr_core.c 	for (i = 0; i < (rows/interlace )/2 ; i++) {
i                3116 dev/pci/bktr/bktr_core.c 		*dma_prog++ = htole32(t1 + (cols*rows) + i*cols/2 * interlace);
i                3118 dev/pci/bktr/bktr_core.c 		    i*cols/2 * interlace);
i                3161 dev/pci/bktr/bktr_core.c 		for (i = 0; i < ((rows/interlace )/2 ) ; i++) {
i                3166 dev/pci/bktr/bktr_core.c 			    i*cols/2 * interlace);
i                3168 dev/pci/bktr/bktr_core.c 			    (cols*rows/4) + i*cols/2 * interlace);
i                3547 dev/pci/bktr/bktr_core.c 	int    i;
i                3551 dev/pci/bktr/bktr_core.c 	for ( i = 0; i < METEOR_PIXFMT_TABLE_SIZE; i++ )
i                3552 dev/pci/bktr/bktr_core.c 		if ( meteor_pixfmt_table[i].meteor_format == format )
i                3555 dev/pci/bktr/bktr_core.c 	if ( i >= METEOR_PIXFMT_TABLE_SIZE )
i                3557 dev/pci/bktr/bktr_core.c 	pf1 = &meteor_pixfmt_table[i].public;
i                3560 dev/pci/bktr/bktr_core.c 	for ( i = 0; i < PIXFMT_TABLE_SIZE; i++ ) {
i                3561 dev/pci/bktr/bktr_core.c 		pf2 = &pixfmt_table[i].public;
i                3570 dev/pci/bktr/bktr_core.c 	if ( i >= PIXFMT_TABLE_SIZE )
i                3573 dev/pci/bktr/bktr_core.c 	return i;
i                 967 dev/pci/bt8370.c 	int		i;
i                 969 dev/pci/bt8370.c 	for (i = 0; i < 5; i++) {
i                 970 dev/pci/bt8370.c 		lo = ebus_read(&ac->art_ebus, Bt8370_FERR_LSB + i);
i                 971 dev/pci/bt8370.c 		hi = ebus_read(&ac->art_ebus, Bt8370_FERR_LSB + i + 1);
i                 973 dev/pci/bt8370.c 		counters[i] = lo | (hi << 8);
i                 985 dev/pci/bt8370.c 	int	i;
i                 988 dev/pci/bt8370.c 	for (i = 0; i < 0x200; i++) {
i                 989 dev/pci/bt8370.c 		if (i % 16 == 0)
i                 990 dev/pci/bt8370.c 			printf("\n%03x:", i);
i                 991 dev/pci/bt8370.c 		printf("%s%02x%s", i % 2 ? "" : " ",
i                 992 dev/pci/bt8370.c 		    ebus_read(&ac->art_ebus, i),
i                 993 dev/pci/bt8370.c 		    i % 8 == 7 ? " " : "");
i                 123 dev/pci/cac_pci.c 	int i;
i                 126 dev/pci/cac_pci.c 	i = 0;
i                 127 dev/pci/cac_pci.c 	while (i < sizeof(cac_pci_product) / sizeof(cac_pci_product[0])) {
i                 132 dev/pci/cac_pci.c 		i++;
i                 134 dev/pci/cac_pci.c 	if (i == sizeof(cac_pci_product) / sizeof(cac_pci_product[0]))
i                 139 dev/pci/cac_pci.c 	i = 0;
i                 140 dev/pci/cac_pci.c 	while (i < sizeof(cac_pci_type) / sizeof(cac_pci_type[0])) {
i                 144 dev/pci/cac_pci.c 		i++;
i                 146 dev/pci/cac_pci.c 	if (i == sizeof(cac_pci_type) / sizeof(cac_pci_type[0]))
i                 175 dev/pci/cac_pci.c 	int memr, ior, i;
i                 188 dev/pci/cac_pci.c 	for (i = 0x10; i <= 0x14; i += 4) {
i                 189 dev/pci/cac_pci.c 		reg = pci_conf_read(pa->pa_pc, pa->pa_tag, i);
i                 193 dev/pci/cac_pci.c 				ior = i;
i                 196 dev/pci/cac_pci.c 				memr = i;
i                 328 dev/pci/cmpci.c 	int i;
i                 330 dev/pci/cmpci.c 	for (i = 0; i < CMPCI_REG_NUMRATE - 1; i++)
i                 332 dev/pci/cmpci.c 		    (cmpci_rate_table[i].rate + cmpci_rate_table[i+1].rate) / 2)
i                 333 dev/pci/cmpci.c 			return i;
i                 334 dev/pci/cmpci.c 	return i;  /* 48000 */
i                 375 dev/pci/cmpci.c 	int i, v;
i                 443 dev/pci/cmpci.c 	for (i = 0; i < CMPCI_NDEVS; i++) {
i                 444 dev/pci/cmpci.c 		switch(i) {
i                 498 dev/pci/cmpci.c 		sc->sc_gain[i][CMPCI_LEFT] = sc->sc_gain[i][CMPCI_RIGHT] = v;
i                 499 dev/pci/cmpci.c 		cmpci_set_mixer_gain(sc, i);
i                 624 dev/pci/cmpci.c 	int i;
i                 627 dev/pci/cmpci.c 	for (i = 0; i < 2; i++) {
i                 634 dev/pci/cmpci.c 		switch (i) {
i                 868 dev/pci/cmpci.c 	int i;
i                 990 dev/pci/cmpci.c 		i = 0;
i                 991 dev/pci/cmpci.c 		strlcpy(dip->un.e.member[i].label.name, CmpciNspdin1,
i                 992 dev/pci/cmpci.c 		    sizeof dip->un.e.member[i].label.name);
i                 993 dev/pci/cmpci.c 		dip->un.e.member[i++].ord = CMPCI_SPDIF_IN_SPDIN1;
i                 995 dev/pci/cmpci.c 			strlcpy(dip->un.e.member[i].label.name, CmpciNspdin2,
i                 996 dev/pci/cmpci.c 			    sizeof dip->un.e.member[i].label.name);
i                 997 dev/pci/cmpci.c 			dip->un.e.member[i++].ord = CMPCI_SPDIF_IN_SPDIN2;
i                 999 dev/pci/cmpci.c 		strlcpy(dip->un.e.member[i].label.name, CmpciNspdout,
i                1000 dev/pci/cmpci.c 		    sizeof dip->un.e.member[i].label.name);
i                1001 dev/pci/cmpci.c 		dip->un.e.member[i++].ord = CMPCI_SPDIF_IN_SPDOUT;
i                1002 dev/pci/cmpci.c 		dip->un.e.num_mem = i;
i                 728 dev/pci/cs4280.c 		int  i;
i                 752 dev/pci/cs4280.c 			for (i = 0; i < 512; i++) {
i                 759 dev/pci/cs4280.c 			for (i = 0; i < 512; i++) {
i                 767 dev/pci/cs4280.c 			for (i = 0; i < 512; i++) {
i                1819 dev/pci/cs4280.c 	int i;
i                1829 dev/pci/cs4280.c 		for(i = 1; i <= CS4280_SAVE_REG_MAX; i++) {
i                1830 dev/pci/cs4280.c 			if(i == 0x04) /* AC97_REG_MASTER_TONE */
i                1832 dev/pci/cs4280.c 			cs4280_read_codec(sc, 2*i, &sc->ac97_reg[i]);
i                1848 dev/pci/cs4280.c 		for(i = 1; i <= CS4280_SAVE_REG_MAX; i++) {
i                1849 dev/pci/cs4280.c 			if(i == 0x04) /* AC97_REG_MASTER_TONE */
i                1851 dev/pci/cs4280.c 			cs4280_write_codec(sc, 2*i, sc->ac97_reg[i]);
i                1148 dev/pci/cs4281.c 	int i;
i                1157 dev/pci/cs4281.c 		for (i = 1; i <= CS4281_SAVE_REG_MAX; i++) {
i                1158 dev/pci/cs4281.c 			if (i == 0x04)	/* AC97_REG_MASTER_TONE */
i                1160 dev/pci/cs4281.c 			cs4281_read_codec(sc, 2*i, &sc->ac97_reg[i>>1]);
i                1175 dev/pci/cs4281.c 		for (i = 1; i <= CS4281_SAVE_REG_MAX; i++) {
i                1176 dev/pci/cs4281.c 			if (i == 0x04)	/* AC97_REG_MASTER_TONE */
i                1178 dev/pci/cs4281.c 			cs4281_write_codec(sc, 2*i, sc->ac97_reg[i>>1]);
i                 301 dev/pci/cz.c   	int i;
i                 397 dev/pci/cz.c   	for (i = 0; i < cz->cz_nchannels; i++) {
i                 398 dev/pci/cz.c   		sc = &cz->cz_ports[i];
i                 400 dev/pci/cz.c   		sc->sc_channel = i;
i                 405 dev/pci/cz.c   		    cz->cz_fwctl + ZFIRM_CHNCTL_OFF(i, 0),
i                 408 dev/pci/cz.c   			    cz->cz_dev.dv_xname, i);
i                 413 dev/pci/cz.c   		    cz->cz_fwctl + ZFIRM_BUFCTL_OFF(i, 0),
i                 416 dev/pci/cz.c   			    cz->cz_dev.dv_xname, i);
i                 425 dev/pci/cz.c   		    (cz->cz_dev.dv_unit * ZFIRM_MAX_CHANNELS) + i);
i                 484 dev/pci/cz.c   	int i, j, nconfigs, nblocks, nbytes;
i                 499 dev/pci/cz.c   	for (i = 0; i < nconfigs; i++, zfc++) {
i                 504 dev/pci/cz.c   	if (i == nconfigs) {
i                 527 dev/pci/cz.c   		for (i = 0; i < nblocks; i++) {
i                 529 dev/pci/cz.c   			zfb = &zblocks[letoh32(zfc->zfc_blocklist[i])];
i                 550 dev/pci/cz.c   	for (i = 0; i < nblocks; i++) {
i                 552 dev/pci/cz.c   		zfb = &zblocks[letoh32(zfc->zfc_blocklist[i])];
i                 577 dev/pci/cz.c   	for (i = 0; i < 100; i++) {
i                 593 dev/pci/cz.c   			if ((i % 8) == 0)
i                 602 dev/pci/cz.c   	if (i == 100) {
i                 851 dev/pci/cz.c   	int i, j, k, u = minor(dev) & ~CZTTYDIALOUT_MASK;
i                 854 dev/pci/cz.c   	for (i = 0, j = 0; i < cz_cd.cd_ndevs; i++) {
i                 856 dev/pci/cz.c   		cz = (struct cz_softc *)device_lookup(&cz_cd, i);
i                 866 dev/pci/cz.c   	if (i >= cz_cd.cd_ndevs)
i                 550 dev/pci/eap.c  	int i;
i                 657 dev/pci/eap.c  		for (i = 0; i < 0x80; i++)
i                 658 dev/pci/eap.c  			eap1371_src_write(sc, i, 0);
i                 170 dev/pci/eapreg.h #define  EAP_SET_P2_ST_INC(i)	((i) << 16)
i                 171 dev/pci/eapreg.h #define  EAP_SET_P2_END_INC(i)	((i) << 19)
i                 239 dev/pci/ehci_pci.c 	int eecp, i;
i                 254 dev/pci/ehci_pci.c 			for (i = 0; i < 5000; i++) {
i                 564 dev/pci/emuxki.c 	int8_t          i;
i                 569 dev/pci/emuxki.c 	for (i = 31; i > 0; i--) {
i                 571 dev/pci/emuxki.c 			return (((u_int32_t) (i - 15) << 20) +
i                 776 dev/pci/emuxki.c 	u_int16_t       i;
i                 800 dev/pci/emuxki.c 	for (i = 0; i < EMU_NUMCHAN; i++) {
i                 801 dev/pci/emuxki.c 		emuxki_write(sc, i, EMU_CHAN_DCYSUSV, 0);
i                 802 dev/pci/emuxki.c 		emuxki_write(sc, i, EMU_CHAN_IP, 0);
i                 803 dev/pci/emuxki.c 		emuxki_write(sc, i, EMU_CHAN_VTFT, 0xffff);
i                 804 dev/pci/emuxki.c 		emuxki_write(sc, i, EMU_CHAN_CVCF, 0xffff);
i                 805 dev/pci/emuxki.c 		emuxki_write(sc, i, EMU_CHAN_PTRX, 0);
i                 806 dev/pci/emuxki.c 		emuxki_write(sc, i, EMU_CHAN_CPF, 0);
i                 807 dev/pci/emuxki.c 		emuxki_write(sc, i, EMU_CHAN_CCR, 0);
i                 808 dev/pci/emuxki.c 		emuxki_write(sc, i, EMU_CHAN_PSST, 0);
i                 809 dev/pci/emuxki.c 		emuxki_write(sc, i, EMU_CHAN_DSL, 0x10);	/* Why 16 ? */
i                 810 dev/pci/emuxki.c 		emuxki_write(sc, i, EMU_CHAN_CCCA, 0);
i                 811 dev/pci/emuxki.c 		emuxki_write(sc, i, EMU_CHAN_Z1, 0);
i                 812 dev/pci/emuxki.c 		emuxki_write(sc, i, EMU_CHAN_Z2, 0);
i                 813 dev/pci/emuxki.c 		emuxki_write(sc, i, EMU_CHAN_FXRT, 0x32100000);
i                 814 dev/pci/emuxki.c 		emuxki_write(sc, i, EMU_CHAN_ATKHLDM, 0);
i                 815 dev/pci/emuxki.c 		emuxki_write(sc, i, EMU_CHAN_DCYSUSM, 0);
i                 816 dev/pci/emuxki.c 		emuxki_write(sc, i, EMU_CHAN_IFATN, 0xffff);
i                 817 dev/pci/emuxki.c 		emuxki_write(sc, i, EMU_CHAN_PEFE, 0);
i                 818 dev/pci/emuxki.c 		emuxki_write(sc, i, EMU_CHAN_FMMOD, 0);
i                 819 dev/pci/emuxki.c 		emuxki_write(sc, i, EMU_CHAN_TREMFRQ, 24);
i                 820 dev/pci/emuxki.c 		emuxki_write(sc, i, EMU_CHAN_FM2FRQ2, 24);
i                 821 dev/pci/emuxki.c 		emuxki_write(sc, i, EMU_CHAN_TEMPENV, 0);
i                 824 dev/pci/emuxki.c 		emuxki_write(sc, i, EMU_CHAN_LFOVAL2, 0);
i                 825 dev/pci/emuxki.c 		emuxki_write(sc, i, EMU_CHAN_LFOVAL1, 0);
i                 826 dev/pci/emuxki.c 		emuxki_write(sc, i, EMU_CHAN_ATKHLDV, 0);
i                 827 dev/pci/emuxki.c 		emuxki_write(sc, i, EMU_CHAN_ENVVOL, 0);
i                 828 dev/pci/emuxki.c 		emuxki_write(sc, i, EMU_CHAN_ENVVAL, 0);
i                 881 dev/pci/emuxki.c 	for (i = 0; i < EMU_MAXPTE; i++)
i                 882 dev/pci/emuxki.c 		ptb[i] = htole32(silentpage | i);
i                 894 dev/pci/emuxki.c 	for (i = 0; i < EMU_NUMCHAN; i++) {
i                 895 dev/pci/emuxki.c 		emuxki_write(sc, i, EMU_CHAN_MAPA, silentpage);
i                 896 dev/pci/emuxki.c 		emuxki_write(sc, i, EMU_CHAN_MAPB, silentpage);
i                 897 dev/pci/emuxki.c 		sc->channel[i] = NULL;
i                 911 dev/pci/emuxki.c 	u_int32_t       i;
i                 926 dev/pci/emuxki.c 	for (i = 0; i < EMU_NUMCHAN; i++)
i                 927 dev/pci/emuxki.c 		emuxki_write(sc, i, EMU_CHAN_DCYSUSV, 0);
i                 928 dev/pci/emuxki.c 	for (i = 0; i < EMU_NUMCHAN; i++) {
i                 929 dev/pci/emuxki.c 		emuxki_write(sc, i, EMU_CHAN_VTFT, 0);
i                 930 dev/pci/emuxki.c 		emuxki_write(sc, i, EMU_CHAN_CVCF, 0);
i                 931 dev/pci/emuxki.c 		emuxki_write(sc, i, EMU_CHAN_PTRX, 0);
i                 932 dev/pci/emuxki.c 		emuxki_write(sc, i, EMU_CHAN_CPF, 0);
i                 995 dev/pci/emuxki.c 	int             i, j, s;
i                1006 dev/pci/emuxki.c 	for (i = 0; i < EMU_MAXPTE; i++)
i                1007 dev/pci/emuxki.c 		if ((letoh32(ptb[i]) & EMU_CHAN_MAP_PTE_MASK) == silentpage) {
i                1011 dev/pci/emuxki.c 				if ((letoh32(ptb[i + j])
i                1016 dev/pci/emuxki.c 				if ((mem = emuxki_mem_new(sc, i,
i                1022 dev/pci/emuxki.c 					ptb[i + j] =
i                1024 dev/pci/emuxki.c 					    j * EMU_PTESIZE)) << 1) | (i + j));
i                1029 dev/pci/emuxki.c 				i += j;
i                1369 dev/pci/emuxki.c 	u_int8_t i, stereo = voice->stereo;
i                1372 dev/pci/emuxki.c 	for (i = 0; i < EMU_NUMCHAN; i += stereo + 1) {
i                1373 dev/pci/emuxki.c 		if ((stereo && (channel[i + 1] != NULL)) ||
i                1374 dev/pci/emuxki.c 		    (channel[i] != NULL))	/* Looking for free channels */
i                1379 dev/pci/emuxki.c 				emuxki_channel_new(voice, i + 1);
i                1385 dev/pci/emuxki.c 		voice->dataloc.chan[0] = emuxki_channel_new(voice, i);
i                2302 dev/pci/emuxki.c 	int	     i, s;
i                2318 dev/pci/emuxki.c 			for (i = 0; i < numblocks; i++)
i                2319 dev/pci/emuxki.c 				ptb[mem->ptbidx + i] =
i                2320 dev/pci/emuxki.c 				    htole32(silentpage | (mem->ptbidx + i));
i                 597 dev/pci/esa.c  	u_int32_t i;
i                 681 dev/pci/esa.c  	for (i = 0; i < (sizeof(esa_playvals) / sizeof(esa_playvals[0])); i++)
i                 683 dev/pci/esa.c  		    esa_playvals[i].addr, esa_playvals[i].val);
i                 731 dev/pci/esa.c  	u_int32_t i;
i                 814 dev/pci/esa.c  	for (i = 0; i < (sizeof(esa_recvals) / sizeof(esa_recvals[0])); i++)
i                 816 dev/pci/esa.c  		    esa_recvals[i].addr, esa_recvals[i].val);
i                 864 dev/pci/esa.c  	int i;
i                 902 dev/pci/esa.c  				for (i = 0; i < ESA_NUM_VOICES; i++) {
i                 903 dev/pci/esa.c  					vc = &sc->voice[i];
i                1018 dev/pci/esa.c  	int i, len;
i                1123 dev/pci/esa.c  	for (i = 0; i < ESA_NUM_VOICES * 2; i++) {
i                1124 dev/pci/esa.c  		sc->mixer_list.indexmap[i] = -1;
i                1125 dev/pci/esa.c  		sc->msrc_list.indexmap[i] = -1;
i                1126 dev/pci/esa.c  		sc->dma_list.indexmap[i] = -1;
i                1127 dev/pci/esa.c  		sc->adc1_list.indexmap[i] = -1;
i                1129 dev/pci/esa.c  	for (i = 0; i < ESA_NUM_VOICES; i++) {
i                1130 dev/pci/esa.c  		sc->voice[i].parent = (struct device *)sc;
i                1131 dev/pci/esa.c  		sc->voice[i].index = i;
i                1132 dev/pci/esa.c  		sc->sc_audiodev[i] =
i                1133 dev/pci/esa.c  		    audio_attach_mi(&esa_hw_if, &sc->voice[i], &sc->sc_dev);
i                1148 dev/pci/esa.c  	int i;
i                1150 dev/pci/esa.c  	for (i = 0; i < ESA_NUM_VOICES; i++) {
i                1151 dev/pci/esa.c  		if (sc->sc_audiodev[i] != NULL)
i                1152 dev/pci/esa.c  			config_detach(sc->sc_audiodev[i], flags);
i                1271 dev/pci/esa.c  	int i, val;
i                1275 dev/pci/esa.c  	for (i = 0; i < 20; i++) {
i                1293 dev/pci/esa.c  	u_int32_t data, i, size;
i                1314 dev/pci/esa.c  	for (i = 0; i < size / 2; i++) {
i                1316 dev/pci/esa.c  		    ESA_KDATA_BASE_ADDR + i, 0);
i                1318 dev/pci/esa.c  		    ESA_KDATA_BASE_ADDR2 + i, 0);
i                1327 dev/pci/esa.c  	for (i = 0; i < size / 2; i++)
i                1329 dev/pci/esa.c  		    ESA_REV_B_CODE_MEMORY_BEGIN + i, esa_assp_kernel_image[i]);
i                1332 dev/pci/esa.c  	for (i = 0; i < size / 2; i++)
i                1333 dev/pci/esa.c  		esa_write_assp(sc, ESA_MEMTYPE_INTERNAL_CODE, 0x400 + i,
i                1334 dev/pci/esa.c  		    esa_assp_minisrc_image[i]);
i                1338 dev/pci/esa.c  	for (i = 0; i < size / 2; i++)
i                1340 dev/pci/esa.c  		    0x400 + ESA_MINISRC_COEF_LOC + i, esa_minisrc_lpf_image[i]);
i                1357 dev/pci/esa.c  	for (i = 0x1100; i < 0x1c00; i++)
i                1358 dev/pci/esa.c  		esa_write_assp(sc, ESA_MEMTYPE_INTERNAL_DATA, i, 0);
i                1361 dev/pci/esa.c  	for (i = 0; i < ESA_NUM_VOICES; i++) {
i                1362 dev/pci/esa.c  		vc = &sc->voice[i];
i                1363 dev/pci/esa.c  		vc->play.data_offset = ESA_DAC_DATA + (data_bytes * i);
i                1364 dev/pci/esa.c  		vc->rec.data_offset = ESA_DAC_DATA + (data_bytes * i * 2);
i                1567 dev/pci/esa.c  	int i;
i                1578 dev/pci/esa.c  		for (i = 0; i < ESA_NUM_VOICES * 2; i++)
i                1579 dev/pci/esa.c  			if (el->indexmap[i] == lastindex)
i                1581 dev/pci/esa.c  		if (i >= ESA_NUM_VOICES * 2)
i                1585 dev/pci/esa.c  			el->indexmap[i] = vindex;
i                1634 dev/pci/esa.c  	int i, index;
i                1644 dev/pci/esa.c  	for (i = ESA_REV_B_CODE_MEMORY_BEGIN; i <= ESA_REV_B_CODE_MEMORY_END;
i                1645 dev/pci/esa.c  	    i++)
i                1647 dev/pci/esa.c  		    ESA_MEMTYPE_INTERNAL_CODE, i);
i                1648 dev/pci/esa.c  	for (i = ESA_REV_B_DATA_MEMORY_BEGIN; i <= ESA_REV_B_DATA_MEMORY_END;
i                1649 dev/pci/esa.c  	    i++)
i                1651 dev/pci/esa.c  		    ESA_MEMTYPE_INTERNAL_DATA, i);
i                1662 dev/pci/esa.c  	int i, index;
i                1677 dev/pci/esa.c  	for (i = ESA_REV_B_CODE_MEMORY_BEGIN; i <= ESA_REV_B_CODE_MEMORY_END;
i                1678 dev/pci/esa.c  	    i++)
i                1679 dev/pci/esa.c  		esa_write_assp(sc, ESA_MEMTYPE_INTERNAL_CODE, i,
i                1681 dev/pci/esa.c  	for (i = ESA_REV_B_DATA_MEMORY_BEGIN; i <= ESA_REV_B_DATA_MEMORY_END;
i                1682 dev/pci/esa.c  	    i++)
i                1683 dev/pci/esa.c  		esa_write_assp(sc, ESA_MEMTYPE_INTERNAL_DATA, i,
i                 429 dev/pci/eso.c  	int i;
i                 432 dev/pci/eso.c  	for (i = 0; i < ESO_WDR_TIMEOUT; i++) {
i                 465 dev/pci/eso.c  	int i;
i                 467 dev/pci/eso.c  	for (i = 0; i < ESO_RDR_TIMEOUT; i++) {
i                 574 dev/pci/eso.c  	int i;
i                 583 dev/pci/eso.c  	for (i = 0; i < ESO_RESET_TIMEOUT; i++) {
i                 189 dev/pci/fms.c  	int i;
i                 272 dev/pci/fms.c  	for (i = 0; i < 3; i++) {
i                 285 dev/pci/fms.c  			d[i].class, d[i].device, AudioNmute);
i                 314 dev/pci/fms.c  	int i;
i                 317 dev/pci/fms.c  	for (i = 0; i < TIMO && bus_space_read_2(sc->sc_iot, sc->sc_ioh, 
i                 318 dev/pci/fms.c  		 FM_CODEC_CMD) & FM_CODEC_CMD_BUSY; i++)
i                 320 dev/pci/fms.c  	if (i >= TIMO) {
i                 330 dev/pci/fms.c  	for (i = 0; i < TIMO && !(bus_space_read_2(sc->sc_iot, sc->sc_ioh, 
i                 331 dev/pci/fms.c  		 FM_CODEC_CMD) & FM_CODEC_CMD_VALID); i++)
i                 333 dev/pci/fms.c  	if (i >= TIMO) {
i                 350 dev/pci/fms.c  	int i;
i                 353 dev/pci/fms.c  	for (i = 0; i < TIMO && bus_space_read_2(sc->sc_iot, sc->sc_ioh, 
i                 354 dev/pci/fms.c  		 FM_CODEC_CMD) & FM_CODEC_CMD_BUSY; i++)
i                 356 dev/pci/fms.c  	if (i >= TIMO) {
i                 549 dev/pci/fms.c  	int i;
i                 584 dev/pci/fms.c  		for (i = 0; i < 10 && play->sample_rate > fms_rates[i].limit;
i                 585 dev/pci/fms.c  		     i++)
i                 587 dev/pci/fms.c  		play->sample_rate = fms_rates[i].rate;
i                 590 dev/pci/fms.c  		    (i << 8);
i                 625 dev/pci/fms.c  		for (i = 0; i < 10 && rec->sample_rate > fms_rates[i].limit; 
i                 626 dev/pci/fms.c  		     i++)
i                 628 dev/pci/fms.c  		rec->sample_rate = fms_rates[i].rate;
i                 632 dev/pci/fms.c  		    (i << 8);
i                 224 dev/pci/fmsradio.c 	u_int16_t i, d;
i                 234 dev/pci/fmsradio.c 	i = 24;
i                 235 dev/pci/fmsradio.c 	while (i--) {
i                 311 dev/pci/fmsradio.c 	u_int16_t i, d;
i                 321 dev/pci/fmsradio.c 	i = 24;
i                 322 dev/pci/fmsradio.c 	while (i--) {
i                 396 dev/pci/fmsradio.c 	u_int16_t d, i, ind = 0;
i                 407 dev/pci/fmsradio.c 	i = 23;
i                 408 dev/pci/fmsradio.c 	while (i--) {
i                 422 dev/pci/fmsradio.c 	i = bus_space_read_1(iot, ioh, offset);
i                 423 dev/pci/fmsradio.c 	ind = i & PCR_SIGNAL ? (1 << 1) : (0 << 1); /* Tuning */
i                 427 dev/pci/fmsradio.c 	i = bus_space_read_2(iot, ioh, offset);
i                 428 dev/pci/fmsradio.c 	ind |= i & PCR_STEREO ? (1 << 0) : (0 << 0); /* Mono */
i                 429 dev/pci/fmsradio.c 	res |= i & PCR_DATA_ON ? (1 << 0) : (0 << 0);
i                 343 dev/pci/hifn7751.c 	int i;
i                 350 dev/pci/hifn7751.c 		for (i = 0; i < 100; i++) {
i                 357 dev/pci/hifn7751.c 		if (i == 100) {
i                 405 dev/pci/hifn7751.c 	int i;
i                 408 dev/pci/hifn7751.c 		for (i = 0; i < 5; i++) {
i                 446 dev/pci/hifn7751.c 	int i;
i                 448 dev/pci/hifn7751.c 	for (i = 5000; i > 0; i--) {
i                 453 dev/pci/hifn7751.c 	if (!i)
i                 535 dev/pci/hifn7751.c 	int i;
i                 538 dev/pci/hifn7751.c 	for (i = 0; i < cnt; i++) {
i                 610 dev/pci/hifn7751.c 	u_int32_t dmacfg, ramcfg, encl, addr, i;
i                 613 dev/pci/hifn7751.c 	for (i = 0; i < sizeof(pci2id)/sizeof(pci2id[0]); i++) {
i                 614 dev/pci/hifn7751.c 		if (pci2id[i].pci_vendor == PCI_VENDOR(pciid) &&
i                 615 dev/pci/hifn7751.c 		    pci2id[i].pci_prod == PCI_PRODUCT(pciid)) {
i                 616 dev/pci/hifn7751.c 			offtbl = pci2id[i].card_id;
i                 665 dev/pci/hifn7751.c 	for (i = 0; i <= 12; i++) {
i                 666 dev/pci/hifn7751.c 		addr = hifn_next_signature(addr, offtbl[i] + 0x101);
i                 828 dev/pci/hifn7751.c 	int i;
i                 830 dev/pci/hifn7751.c 	for (i = 0; i < sizeof(data); i++)
i                 831 dev/pci/hifn7751.c 		data[i] = dataexpect[i] = 0x55;
i                 841 dev/pci/hifn7751.c 	for (i = 0; i < sizeof(data); i++)
i                 842 dev/pci/hifn7751.c 		data[i] = dataexpect[i] = 0xaa;
i                 865 dev/pci/hifn7751.c 	int32_t i;
i                 867 dev/pci/hifn7751.c 	for (i = 0; i < sizeof(data); i++)
i                 868 dev/pci/hifn7751.c 		data[i] = dataexpect[i] = i ^ 0x5a;
i                 870 dev/pci/hifn7751.c 	for (i = HIFN_SRAM_GRANULARITY - 1; i >= 0; i--) {
i                 871 dev/pci/hifn7751.c 		a = i * HIFN_SRAM_STEP_SIZE;
i                 872 dev/pci/hifn7751.c 		bcopy(&i, data, sizeof(i));
i                 876 dev/pci/hifn7751.c 	for (i = 0; i < HIFN_SRAM_GRANULARITY; i++) {
i                 877 dev/pci/hifn7751.c 		a = i * HIFN_SRAM_STEP_SIZE;
i                 878 dev/pci/hifn7751.c 		bcopy(&i, dataexpect, sizeof(i));
i                1096 dev/pci/hifn7751.c 	int i;
i                1101 dev/pci/hifn7751.c 	for (i = 0; i < HIFN_D_CMD_RSIZE; i++)
i                1102 dev/pci/hifn7751.c 		dma->cmdr[i].p = htole32(sc->sc_dmamap->dm_segs[0].ds_addr +
i                1103 dev/pci/hifn7751.c 		    offsetof(struct hifn_dma, command_bufs[i][0]));
i                1104 dev/pci/hifn7751.c 	for (i = 0; i < HIFN_D_RES_RSIZE; i++)
i                1105 dev/pci/hifn7751.c 		dma->resr[i].p = htole32(sc->sc_dmamap->dm_segs[0].ds_addr +
i                1106 dev/pci/hifn7751.c 		    offsetof(struct hifn_dma, result_bufs[i][0]));
i                1260 dev/pci/hifn7751.c 	int i;
i                1262 dev/pci/hifn7751.c 	for (i = 0; i < map->dm_nsegs; i++) {
i                1263 dev/pci/hifn7751.c 		if (map->dm_segs[i].ds_addr & 3)
i                1265 dev/pci/hifn7751.c 		if ((i != (map->dm_nsegs - 1)) &&
i                1266 dev/pci/hifn7751.c 		    (map->dm_segs[i].ds_len & 3))
i                1278 dev/pci/hifn7751.c 	int idx, used = 0, i;
i                1281 dev/pci/hifn7751.c 	for (i = 0; i < map->dm_nsegs - 1; i++) {
i                1282 dev/pci/hifn7751.c 		dma->dstr[idx].p = htole32(map->dm_segs[i].ds_addr);
i                1284 dev/pci/hifn7751.c 		    HIFN_D_MASKDONEIRQ | map->dm_segs[i].ds_len);
i                1299 dev/pci/hifn7751.c 		p = map->dm_segs[i].ds_addr;
i                1301 dev/pci/hifn7751.c 		    map->dm_segs[i].ds_len;
i                1308 dev/pci/hifn7751.c 		if ((map->dm_segs[i].ds_len - cmd->sloplen) != 0) {
i                1309 dev/pci/hifn7751.c 			dma->dstr[idx].p = htole32(map->dm_segs[i].ds_addr);
i                1312 dev/pci/hifn7751.c 			    (map->dm_segs[i].ds_len - cmd->sloplen));
i                1349 dev/pci/hifn7751.c 	int idx, i;
i                1353 dev/pci/hifn7751.c 	for (i = 0; i < map->dm_nsegs; i++) {
i                1354 dev/pci/hifn7751.c 		if (i == map->dm_nsegs - 1)
i                1357 dev/pci/hifn7751.c 		dma->srcr[idx].p = htole32(map->dm_segs[i].ds_addr);
i                1358 dev/pci/hifn7751.c 		dma->srcr[idx].l = htole32(map->dm_segs[i].ds_len |
i                1681 dev/pci/hifn7751.c 	int i, u;
i                1737 dev/pci/hifn7751.c 	i = dma->resk;
i                1739 dev/pci/hifn7751.c 		HIFN_RESR_SYNC(sc, i,
i                1741 dev/pci/hifn7751.c 		if (dma->resr[i].l & htole32(HIFN_D_VALID)) {
i                1742 dev/pci/hifn7751.c 			HIFN_RESR_SYNC(sc, i,
i                1747 dev/pci/hifn7751.c 		if (i != HIFN_D_RES_RSIZE) {
i                1750 dev/pci/hifn7751.c 			HIFN_RES_SYNC(sc, i, BUS_DMASYNC_POSTREAD);
i                1751 dev/pci/hifn7751.c 			cmd = dma->hifn_commands[i];
i                1753 dev/pci/hifn7751.c 			(*cmd->cmd_callback)(sc, cmd, dma->result_bufs[i]);
i                1757 dev/pci/hifn7751.c 		if (++i == (HIFN_D_RES_RSIZE + 1))
i                1758 dev/pci/hifn7751.c 			i = 0;
i                1762 dev/pci/hifn7751.c 	dma->resk = i;
i                1764 dev/pci/hifn7751.c 	i = dma->srck; u = dma->srcu;
i                1766 dev/pci/hifn7751.c 		HIFN_SRCR_SYNC(sc, i,
i                1768 dev/pci/hifn7751.c 		if (dma->srcr[i].l & htole32(HIFN_D_VALID)) {
i                1769 dev/pci/hifn7751.c 			HIFN_SRCR_SYNC(sc, i,
i                1773 dev/pci/hifn7751.c 		if (++i == (HIFN_D_SRC_RSIZE + 1))
i                1774 dev/pci/hifn7751.c 			i = 0;
i                1778 dev/pci/hifn7751.c 	dma->srck = i; dma->srcu = u;
i                1780 dev/pci/hifn7751.c 	i = dma->cmdk; u = dma->cmdu;
i                1782 dev/pci/hifn7751.c 		HIFN_CMDR_SYNC(sc, i,
i                1784 dev/pci/hifn7751.c 		if (dma->cmdr[i].l & htole32(HIFN_D_VALID)) {
i                1785 dev/pci/hifn7751.c 			HIFN_CMDR_SYNC(sc, i,
i                1789 dev/pci/hifn7751.c 		if (i != HIFN_D_CMD_RSIZE) {
i                1791 dev/pci/hifn7751.c 			HIFN_CMD_SYNC(sc, i, BUS_DMASYNC_POSTWRITE);
i                1793 dev/pci/hifn7751.c 		if (++i == (HIFN_D_CMD_RSIZE + 1))
i                1794 dev/pci/hifn7751.c 			i = 0;
i                1796 dev/pci/hifn7751.c 	dma->cmdk = i; dma->cmdu = u;
i                1811 dev/pci/hifn7751.c 	int i, mac = 0, cry = 0, comp = 0, sesn;
i                1817 dev/pci/hifn7751.c 	for (i = 0; i < hifn_cd.cd_ndevs; i++) {
i                1818 dev/pci/hifn7751.c 		sc = hifn_cd.cd_devs[i];
i                2190 dev/pci/hifn7751.c 	int i, u;
i                2192 dev/pci/hifn7751.c 	i = dma->resk; u = dma->resu;
i                2194 dev/pci/hifn7751.c 		cmd = dma->hifn_commands[i];
i                2197 dev/pci/hifn7751.c 		if ((dma->resr[i].l & htole32(HIFN_D_VALID)) == 0) {
i                2200 dev/pci/hifn7751.c 			(*cmd->cmd_callback)(sc, cmd, dma->result_bufs[i]);
i                2240 dev/pci/hifn7751.c 		if (++i == HIFN_D_RES_RSIZE)
i                2241 dev/pci/hifn7751.c 			i = 0;
i                2244 dev/pci/hifn7751.c 	dma->resk = i; dma->resu = u;
i                2259 dev/pci/hifn7751.c 	int totlen, i, u, ivlen;
i                2300 dev/pci/hifn7751.c 	i = dma->dstk; u = dma->dstu;
i                2303 dev/pci/hifn7751.c 		    offsetof(struct hifn_dma, dstr[i]), sizeof(struct hifn_desc),
i                2305 dev/pci/hifn7751.c 		if (dma->dstr[i].l & htole32(HIFN_D_VALID)) {
i                2307 dev/pci/hifn7751.c 			    offsetof(struct hifn_dma, dstr[i]),
i                2312 dev/pci/hifn7751.c 		if (++i == (HIFN_D_DST_RSIZE + 1))
i                2313 dev/pci/hifn7751.c 			i = 0;
i                2317 dev/pci/hifn7751.c 	dma->dstk = i; dma->dstu = u;
i                2620 dev/pci/hifn7751.c 	int err = 0, i, u;
i                2634 dev/pci/hifn7751.c 	i = dma->dstk; u = dma->dstu;
i                2637 dev/pci/hifn7751.c 		    offsetof(struct hifn_dma, dstr[i]), sizeof(struct hifn_desc),
i                2639 dev/pci/hifn7751.c 		if (dma->dstr[i].l & htole32(HIFN_D_VALID)) {
i                2641 dev/pci/hifn7751.c 			    offsetof(struct hifn_dma, dstr[i]),
i                2646 dev/pci/hifn7751.c 		if (++i == (HIFN_D_DST_RSIZE + 1))
i                2647 dev/pci/hifn7751.c 			i = 0;
i                2651 dev/pci/hifn7751.c 	dma->dstk = i; dma->dstu = u;
i                 110 dev/pci/hifn7751var.h #define	HIFN_RING_SYNC(sc, r, i, f)					\
i                 112 dev/pci/hifn7751var.h 	    offsetof(struct hifn_dma, r[i]), sizeof(struct hifn_desc), (f))
i                 114 dev/pci/hifn7751var.h #define	HIFN_CMDR_SYNC(sc, i, f)	HIFN_RING_SYNC((sc), cmdr, (i), (f))
i                 115 dev/pci/hifn7751var.h #define	HIFN_RESR_SYNC(sc, i, f)	HIFN_RING_SYNC((sc), resr, (i), (f))
i                 116 dev/pci/hifn7751var.h #define	HIFN_SRCR_SYNC(sc, i, f)	HIFN_RING_SYNC((sc), srcr, (i), (f))
i                 117 dev/pci/hifn7751var.h #define	HIFN_DSTR_SYNC(sc, i, f)	HIFN_RING_SYNC((sc), dstr, (i), (f))
i                 119 dev/pci/hifn7751var.h #define	HIFN_CMD_SYNC(sc, i, f)						\
i                 121 dev/pci/hifn7751var.h 	    offsetof(struct hifn_dma, command_bufs[(i)][0]),		\
i                 124 dev/pci/hifn7751var.h #define	HIFN_RES_SYNC(sc, i, f)						\
i                 126 dev/pci/hifn7751var.h 	    offsetof(struct hifn_dma, result_bufs[(i)][0]),		\
i                 116 dev/pci/i82365_pci.c 	int irq, i;
i                 195 dev/pci/i82365_pci.c                 for (i = 0; i < PCIC_NSLOTS; i++) {
i                 196 dev/pci/i82365_pci.c                         h = &sc->handle[i];
i                 242 dev/pci/if_bce.c 	int             i;
i                 350 dev/pci/if_bce.c 	for (i = 0; i < BCE_NTXDESC; i++) {
i                 352 dev/pci/if_bce.c 		    BCE_NTXFRAGS, MCLBYTES, 0, 0, &sc->bce_cdata.bce_tx_map[i])) != 0) {
i                 356 dev/pci/if_bce.c 		sc->bce_cdata.bce_tx_chain[i] = NULL;
i                 360 dev/pci/if_bce.c 	for (i = 0; i < BCE_NRXDESC; i++) {
i                 362 dev/pci/if_bce.c 		    MCLBYTES, 0, 0, &sc->bce_cdata.bce_rx_map[i])) != 0) {
i                 366 dev/pci/if_bce.c 		sc->bce_cdata.bce_rx_chain[i] = NULL;
i                 742 dev/pci/if_bce.c 	int             i;
i                 752 dev/pci/if_bce.c 	for (i = sc->bce_rxin; i != curr;
i                 753 dev/pci/if_bce.c 	    i + 1 > BCE_NRXDESC - 1 ? i = 0 : i++) {
i                 755 dev/pci/if_bce.c 		bus_dmamap_sync(sc->bce_dmatag, sc->bce_cdata.bce_rx_map[i], 0,
i                 756 dev/pci/if_bce.c 		    sc->bce_cdata.bce_rx_map[i]->dm_mapsize,
i                 763 dev/pci/if_bce.c 		pph = mtod(sc->bce_cdata.bce_rx_chain[i], struct rx_pph *);
i                 777 dev/pci/if_bce.c 		sc->bce_cdata.bce_rx_chain[i]->m_data +=
i                 803 dev/pci/if_bce.c 			 mtod(sc->bce_cdata.bce_rx_chain[i], caddr_t), len);
i                 804 dev/pci/if_bce.c 			sc->bce_cdata.bce_rx_chain[i]->m_data -=
i                 807 dev/pci/if_bce.c 			m = sc->bce_cdata.bce_rx_chain[i];
i                 808 dev/pci/if_bce.c 			if (bce_add_rxbuf(sc, i) != 0) {
i                 812 dev/pci/if_bce.c 				sc->bce_cdata.bce_rx_chain[i]->m_data -=
i                 815 dev/pci/if_bce.c 				    sc->bce_cdata.bce_rx_map[i], 0,
i                 816 dev/pci/if_bce.c 				    sc->bce_cdata.bce_rx_map[i]->dm_mapsize,
i                 854 dev/pci/if_bce.c 	int             i;
i                 867 dev/pci/if_bce.c 	for (i = sc->bce_txin; i != curr;
i                 868 dev/pci/if_bce.c 	    i + 1 > BCE_NTXDESC - 1 ? i = 0 : i++) {
i                 870 dev/pci/if_bce.c 		if (sc->bce_cdata.bce_tx_chain[i] == NULL)
i                 872 dev/pci/if_bce.c 		bus_dmamap_sync(sc->bce_dmatag, sc->bce_cdata.bce_tx_map[i], 0,
i                 873 dev/pci/if_bce.c 		    sc->bce_cdata.bce_tx_map[i]->dm_mapsize,
i                 875 dev/pci/if_bce.c 		bus_dmamap_unload(sc->bce_dmatag, sc->bce_cdata.bce_tx_map[i]);
i                 876 dev/pci/if_bce.c 		m_freem(sc->bce_cdata.bce_tx_chain[i]);
i                 877 dev/pci/if_bce.c 		sc->bce_cdata.bce_tx_chain[i] = NULL;
i                 897 dev/pci/if_bce.c 	int             i;
i                 981 dev/pci/if_bce.c 	for (i = 0; i < BCE_NRXDESC; i++) {
i                 982 dev/pci/if_bce.c 		if (sc->bce_cdata.bce_rx_chain[i] == NULL) {
i                 983 dev/pci/if_bce.c 			if ((error = bce_add_rxbuf(sc, i)) != 0) {
i                 986 dev/pci/if_bce.c 				    i, error);
i                 991 dev/pci/if_bce.c 			BCE_INIT_RXDESC(sc, i);
i                1026 dev/pci/if_bce.c 	int             i;
i                1036 dev/pci/if_bce.c 	for (i = 0; i < 100; i++) {
i                1043 dev/pci/if_bce.c 	if (i == 100) {
i                1090 dev/pci/if_bce.c 	int             i;
i                1092 dev/pci/if_bce.c 	for (i = 0; i < BCE_NRXDESC; i++) {
i                1093 dev/pci/if_bce.c 		if (sc->bce_cdata.bce_rx_chain[i] != NULL) {
i                1095 dev/pci/if_bce.c 			    sc->bce_cdata.bce_rx_map[i]);
i                1096 dev/pci/if_bce.c 			m_freem(sc->bce_cdata.bce_rx_chain[i]);
i                1097 dev/pci/if_bce.c 			sc->bce_cdata.bce_rx_chain[i] = NULL;
i                1107 dev/pci/if_bce.c 	int             i;
i                1127 dev/pci/if_bce.c 	for (i = 0; i < 200; i++) {
i                1141 dev/pci/if_bce.c 	for (i = 0; i < BCE_NTXDESC; i++) {
i                1142 dev/pci/if_bce.c 		if (sc->bce_cdata.bce_tx_chain[i] != NULL) {
i                1144 dev/pci/if_bce.c 			    sc->bce_cdata.bce_tx_map[i]);
i                1145 dev/pci/if_bce.c 			m_freem(sc->bce_cdata.bce_tx_chain[i]);
i                1146 dev/pci/if_bce.c 			sc->bce_cdata.bce_tx_chain[i] = NULL;
i                1161 dev/pci/if_bce.c 	int             i;
i                1173 dev/pci/if_bce.c 		for (i = 0; i < 200; i++) {
i                1180 dev/pci/if_bce.c 		if (i == 200)
i                1189 dev/pci/if_bce.c 			for (i = 0; i < 100; i++) {
i                1196 dev/pci/if_bce.c 			if (i == 100)
i                1206 dev/pci/if_bce.c 		for (i = 0; i < 200; i++) {
i                1213 dev/pci/if_bce.c 		if (i == 200)
i                1251 dev/pci/if_bce.c 		for (i = 0; i < 200; i++) {
i                1258 dev/pci/if_bce.c 		if (i == 200)
i                1262 dev/pci/if_bce.c 		for (i = 0; i < 200; i++) {
i                1269 dev/pci/if_bce.c 		if (i == 200)
i                1380 dev/pci/if_bce.c 	int             i;
i                1391 dev/pci/if_bce.c 	for (i = 0; i < BCE_TIMEOUT; i++) {
i                1398 dev/pci/if_bce.c 	if (i == BCE_TIMEOUT) {
i                1411 dev/pci/if_bce.c 	int             i;
i                1425 dev/pci/if_bce.c 	for (i = 0; i < BCE_TIMEOUT; i++) {
i                1433 dev/pci/if_bce.c 	if (i == BCE_TIMEOUT) {
i                 426 dev/pci/if_bge.c 	int i;
i                 444 dev/pci/if_bge.c 	for(i = 0; i < BGE_TIMEOUT * 10; i++) {
i                 450 dev/pci/if_bge.c 	if (i == BGE_TIMEOUT * 10) {
i                 469 dev/pci/if_bge.c 	int err = 0, i;
i                 472 dev/pci/if_bge.c 	for (i = 0; i < cnt; i++) {
i                 473 dev/pci/if_bge.c 		err = bge_eeprom_getbyte(sc, off + i, &byte);
i                 476 dev/pci/if_bge.c 		*(dest + i) = byte;
i                 487 dev/pci/if_bge.c 	int i;
i                 511 dev/pci/if_bge.c 	for (i = 0; i < 200; i++) {
i                 519 dev/pci/if_bge.c 	if (i == 200) {
i                 544 dev/pci/if_bge.c 	int i;
i                 557 dev/pci/if_bge.c 	for (i = 0; i < 200; i++) {
i                 569 dev/pci/if_bge.c 	if (i == 200) {
i                 623 dev/pci/if_bge.c 	int		i, rseg, state, error;
i                 672 dev/pci/if_bge.c 	for (i = 0; i < BGE_JSLOTS; i++) {
i                 673 dev/pci/if_bge.c 		sc->bge_cdata.bge_jslots[i] = ptr;
i                 683 dev/pci/if_bge.c 		entry->slot = i;
i                 735 dev/pci/if_bge.c 	int i;
i                 745 dev/pci/if_bge.c 	i = ((vaddr_t)buf
i                 748 dev/pci/if_bge.c 	if ((i < 0) || (i >= BGE_JSLOTS))
i                 754 dev/pci/if_bge.c 	entry->slot = i;
i                 764 dev/pci/if_bge.c bge_newbuf_std(struct bge_softc *sc, int i, struct mbuf *m,
i                 778 dev/pci/if_bge.c 	sc->bge_cdata.bge_rx_std_map[i] = dmamap;
i                 810 dev/pci/if_bge.c 			sc->bge_cdata.bge_rx_std_chain[i] = NULL;
i                 815 dev/pci/if_bge.c 	sc->bge_cdata.bge_rx_std_chain[i] = m_new;
i                 816 dev/pci/if_bge.c 	r = &sc->bge_rdata->bge_rx_std_ring[i];
i                 820 dev/pci/if_bge.c 	r->bge_idx = i;
i                 824 dev/pci/if_bge.c 		i * sizeof (struct bge_rx_bd),
i                 836 dev/pci/if_bge.c bge_newbuf_jumbo(struct bge_softc *sc, int i, struct mbuf *m)
i                 873 dev/pci/if_bge.c 	r = &sc->bge_rdata->bge_rx_jumbo_ring[i];
i                 874 dev/pci/if_bge.c 	sc->bge_cdata.bge_rx_jumbo_chain[i] = m_new;
i                 878 dev/pci/if_bge.c 	r->bge_idx = i;
i                 882 dev/pci/if_bge.c 		i * sizeof (struct bge_rx_bd),
i                 898 dev/pci/if_bge.c 	int i;
i                 903 dev/pci/if_bge.c 	for (i = 0; i < BGE_SSLOTS; i++) {
i                 904 dev/pci/if_bge.c 		if (bge_newbuf_std(sc, i, NULL, 0) == ENOBUFS)
i                 908 dev/pci/if_bge.c 	sc->bge_std = i - 1;
i                 919 dev/pci/if_bge.c 	int i;
i                 924 dev/pci/if_bge.c 	for (i = 0; i < BGE_STD_RX_RING_CNT; i++) {
i                 925 dev/pci/if_bge.c 		if (sc->bge_cdata.bge_rx_std_chain[i] != NULL) {
i                 926 dev/pci/if_bge.c 			m_freem(sc->bge_cdata.bge_rx_std_chain[i]);
i                 927 dev/pci/if_bge.c 			sc->bge_cdata.bge_rx_std_chain[i] = NULL;
i                 929 dev/pci/if_bge.c 			    sc->bge_cdata.bge_rx_std_map[i]);
i                 931 dev/pci/if_bge.c 		bzero((char *)&sc->bge_rdata->bge_rx_std_ring[i],
i                 941 dev/pci/if_bge.c 	int i;
i                 947 dev/pci/if_bge.c 	for (i = 0; i < BGE_JUMBO_RX_RING_CNT; i++) {
i                 948 dev/pci/if_bge.c 		if (bge_newbuf_jumbo(sc, i, NULL) == ENOBUFS)
i                 952 dev/pci/if_bge.c 	sc->bge_jumbo = i - 1;
i                 967 dev/pci/if_bge.c 	int i;
i                 972 dev/pci/if_bge.c 	for (i = 0; i < BGE_JUMBO_RX_RING_CNT; i++) {
i                 973 dev/pci/if_bge.c 		if (sc->bge_cdata.bge_rx_jumbo_chain[i] != NULL) {
i                 974 dev/pci/if_bge.c 			m_freem(sc->bge_cdata.bge_rx_jumbo_chain[i]);
i                 975 dev/pci/if_bge.c 			sc->bge_cdata.bge_rx_jumbo_chain[i] = NULL;
i                 977 dev/pci/if_bge.c 		bzero((char *)&sc->bge_rdata->bge_rx_jumbo_ring[i],
i                 987 dev/pci/if_bge.c 	int i;
i                 993 dev/pci/if_bge.c 	for (i = 0; i < BGE_TX_RING_CNT; i++) {
i                 994 dev/pci/if_bge.c 		if (sc->bge_cdata.bge_tx_chain[i] != NULL) {
i                 995 dev/pci/if_bge.c 			m_freem(sc->bge_cdata.bge_tx_chain[i]);
i                 996 dev/pci/if_bge.c 			sc->bge_cdata.bge_tx_chain[i] = NULL;
i                 997 dev/pci/if_bge.c 			SLIST_INSERT_HEAD(&sc->txdma_list, sc->txdma[i],
i                 999 dev/pci/if_bge.c 			sc->txdma[i] = 0;
i                1001 dev/pci/if_bge.c 		bzero((char *)&sc->bge_rdata->bge_tx_ring[i],
i                1017 dev/pci/if_bge.c 	int i;
i                1039 dev/pci/if_bge.c 	for (i = 0; i < BGE_TX_RING_CNT; i++) {
i                1105 dev/pci/if_bge.c 	int i;
i                1118 dev/pci/if_bge.c 	for (i = BGE_STATS_BLOCK;
i                1119 dev/pci/if_bge.c 	    i < BGE_STATS_BLOCK_END + 1; i += sizeof(u_int32_t))
i                1120 dev/pci/if_bge.c 		BGE_MEMWIN_WRITE(pa->pa_pc, pa->pa_tag, i, 0);
i                1122 dev/pci/if_bge.c 	for (i = BGE_STATUS_BLOCK;
i                1123 dev/pci/if_bge.c 	    i < BGE_STATUS_BLOCK_END + 1; i += sizeof(u_int32_t))
i                1124 dev/pci/if_bge.c 		BGE_MEMWIN_WRITE(pa->pa_pc, pa->pa_tag, i, 0);
i                1241 dev/pci/if_bge.c 	int			i;
i                1290 dev/pci/if_bge.c 	for (i = 0; i < 2000; i++) {
i                1296 dev/pci/if_bge.c 	if (i == 2000) {
i                1307 dev/pci/if_bge.c 	for (i = 0; i < 2000; i++) {
i                1313 dev/pci/if_bge.c 	if (i == 2000) {
i                1376 dev/pci/if_bge.c 	i = BGE_STD_RX_RING_CNT / 8;
i                1387 dev/pci/if_bge.c 		i = 8;
i                1389 dev/pci/if_bge.c 	CSR_WRITE_4(sc, BGE_RBDI_STD_REPL_THRESH, i);
i                1398 dev/pci/if_bge.c 	for (i = 0; i < BGE_TX_RINGS_EXTSSRAM_MAX; i++) {
i                1418 dev/pci/if_bge.c 	for (i = 0; i < BGE_RX_RINGS_MAX; i++) {
i                1426 dev/pci/if_bge.c 		    (i * (sizeof(u_int64_t))), 0);
i                1479 dev/pci/if_bge.c 	for (i = 0; i < 2000; i++) {
i                1485 dev/pci/if_bge.c 	if (i == 2000) {
i                2095 dev/pci/if_bge.c 	int i, val = 0;
i                2187 dev/pci/if_bge.c 	for (i = 0; i < BGE_TIMEOUT; i++) {
i                2194 dev/pci/if_bge.c 	if (i >= BGE_TIMEOUT && (!(sc->bge_flags & BGE_NO_EEPROM)))
i                2206 dev/pci/if_bge.c 	for (i = 0; i < BGE_TIMEOUT; i++) {
i                2571 dev/pci/if_bge.c 	int i;
i                2576 dev/pci/if_bge.c 	for (i = 0; i < sizeof(struct bge_mac_stats_regs); i += 4) {
i                2577 dev/pci/if_bge.c 		*s = CSR_READ_4(sc, BGE_RX_STATS + i);
i                2736 dev/pci/if_bge.c 	int			i = 0;
i                2795 dev/pci/if_bge.c 	for (i = 0; i < dmamap->dm_nsegs; i++) {
i                2799 dev/pci/if_bge.c 		BGE_HOSTADDR(f->bge_addr, dmamap->dm_segs[i].ds_addr);
i                2800 dev/pci/if_bge.c 		f->bge_len = dmamap->dm_segs[i].ds_len;
i                2814 dev/pci/if_bge.c 	if (i < dmamap->dm_nsegs)
i                2959 dev/pci/if_bge.c 		u_int32_t		v, i;
i                2960 dev/pci/if_bge.c 		for (i = 0; i < 10; i++) {
i                2966 dev/pci/if_bge.c 		if (i == 10)
i                3215 dev/pci/if_bge.c 	int i;
i                3219 dev/pci/if_bge.c 	for (i = 0; i < BGE_TIMEOUT; i++) {
i                1970 dev/pci/if_bgereg.h #define BGE_TX_CONSIDX(x, i) x->bge_idx[i].bge_tx_considx
i                1971 dev/pci/if_bgereg.h #define BGE_RX_PRODIDX(x, i) x->bge_idx[i].bge_rx_prodidx
i                1088 dev/pci/if_bnx.c 	int			i;
i                1112 dev/pci/if_bnx.c 	for (i = 0; i < BNX_PHY_TIMEOUT; i++) {
i                1163 dev/pci/if_bnx.c 	int			i;
i                1191 dev/pci/if_bnx.c 	for (i = 0; i < BNX_PHY_TIMEOUT; i++) {
i                1504 dev/pci/if_bnx.c 	int			i, rc = 0;
i                1524 dev/pci/if_bnx.c 	for (i = 0; i < NVRAM_TIMEOUT_COUNT; i++) {
i                1540 dev/pci/if_bnx.c 	if (i >= NVRAM_TIMEOUT_COUNT) {
i                1889 dev/pci/if_bnx.c 		int i;
i                1945 dev/pci/if_bnx.c 		i = 0;
i                1948 dev/pci/if_bnx.c 				addr += 4, i += 4) {
i                1951 dev/pci/if_bnx.c 				    &flash_buffer[i], cmd_flags);
i                1961 dev/pci/if_bnx.c 		for (addr = data_start; addr < data_end; addr += 4, i++) {
i                1982 dev/pci/if_bnx.c 			    addr += 4, i += 4) {
i                1988 dev/pci/if_bnx.c 				    &flash_buffer[i], cmd_flags);
i                2089 dev/pci/if_bnx.c 	int			i;
i                2118 dev/pci/if_bnx.c 	for (i = 0; i < TX_PAGES; i++ ) {
i                2119 dev/pci/if_bnx.c 		if (sc->tx_bd_chain[i] != NULL &&
i                2120 dev/pci/if_bnx.c 		    sc->tx_bd_chain_map[i] != NULL) {
i                2122 dev/pci/if_bnx.c 			    sc->tx_bd_chain_map[i]);
i                2124 dev/pci/if_bnx.c 			    (caddr_t)sc->tx_bd_chain[i], BNX_TX_CHAIN_PAGE_SZ);
i                2125 dev/pci/if_bnx.c 			bus_dmamem_free(sc->bnx_dmatag, &sc->tx_bd_chain_seg[i],
i                2126 dev/pci/if_bnx.c 			    sc->tx_bd_chain_rseg[i]);
i                2128 dev/pci/if_bnx.c 			    sc->tx_bd_chain_map[i]);
i                2129 dev/pci/if_bnx.c 			sc->tx_bd_chain[i] = NULL;
i                2130 dev/pci/if_bnx.c 			sc->tx_bd_chain_map[i] = NULL;
i                2135 dev/pci/if_bnx.c 	for (i = 0; i < TOTAL_TX_BD; i++) {
i                2136 dev/pci/if_bnx.c 		if (sc->tx_mbuf_map[i] != NULL) {
i                2137 dev/pci/if_bnx.c 			bus_dmamap_unload(sc->bnx_dmatag, sc->tx_mbuf_map[i]);
i                2138 dev/pci/if_bnx.c 			bus_dmamap_destroy(sc->bnx_dmatag, sc->tx_mbuf_map[i]);
i                2143 dev/pci/if_bnx.c 	for (i = 0; i < RX_PAGES; i++ ) {
i                2144 dev/pci/if_bnx.c 		if (sc->rx_bd_chain[i] != NULL &&
i                2145 dev/pci/if_bnx.c 		    sc->rx_bd_chain_map[i] != NULL) {
i                2147 dev/pci/if_bnx.c 			    sc->rx_bd_chain_map[i]);
i                2149 dev/pci/if_bnx.c 			    (caddr_t)sc->rx_bd_chain[i], BNX_RX_CHAIN_PAGE_SZ);
i                2150 dev/pci/if_bnx.c 			bus_dmamem_free(sc->bnx_dmatag, &sc->rx_bd_chain_seg[i],
i                2151 dev/pci/if_bnx.c 			    sc->rx_bd_chain_rseg[i]);
i                2154 dev/pci/if_bnx.c 			    sc->rx_bd_chain_map[i]);
i                2155 dev/pci/if_bnx.c 			sc->rx_bd_chain[i] = NULL;
i                2156 dev/pci/if_bnx.c 			sc->rx_bd_chain_map[i] = NULL;
i                2161 dev/pci/if_bnx.c 	for (i = 0; i < TOTAL_RX_BD; i++) {
i                2162 dev/pci/if_bnx.c 		if (sc->rx_mbuf_map[i] != NULL) {
i                2163 dev/pci/if_bnx.c 			bus_dmamap_unload(sc->bnx_dmatag, sc->rx_mbuf_map[i]);
i                2164 dev/pci/if_bnx.c 			bus_dmamap_destroy(sc->bnx_dmatag, sc->rx_mbuf_map[i]);
i                2183 dev/pci/if_bnx.c 	int			i, rc = 0;
i                2271 dev/pci/if_bnx.c 	for (i = 0; i < TX_PAGES; i++) {
i                2274 dev/pci/if_bnx.c 		    &sc->tx_bd_chain_map[i])) {
i                2275 dev/pci/if_bnx.c 			printf(": Could not create Tx desc %d DMA map!\n", i);
i                2281 dev/pci/if_bnx.c 		    BCM_PAGE_SIZE, BNX_DMA_BOUNDARY, &sc->tx_bd_chain_seg[i], 1,
i                2282 dev/pci/if_bnx.c 		    &sc->tx_bd_chain_rseg[i], BUS_DMA_NOWAIT)) {
i                2284 dev/pci/if_bnx.c 			    i);
i                2289 dev/pci/if_bnx.c 		if (bus_dmamem_map(sc->bnx_dmatag, &sc->tx_bd_chain_seg[i],
i                2290 dev/pci/if_bnx.c 		    sc->tx_bd_chain_rseg[i], BNX_TX_CHAIN_PAGE_SZ,
i                2291 dev/pci/if_bnx.c 		    (caddr_t *)&sc->tx_bd_chain[i], BUS_DMA_NOWAIT)) {
i                2292 dev/pci/if_bnx.c 			printf(": Could not map TX desc %d DMA memory!\n", i);
i                2297 dev/pci/if_bnx.c 		if (bus_dmamap_load(sc->bnx_dmatag, sc->tx_bd_chain_map[i],
i                2298 dev/pci/if_bnx.c 		    (caddr_t)sc->tx_bd_chain[i], BNX_TX_CHAIN_PAGE_SZ, NULL,
i                2300 dev/pci/if_bnx.c 			printf(": Could not load TX desc %d DMA memory!\n", i);
i                2305 dev/pci/if_bnx.c 		sc->tx_bd_chain_paddr[i] =
i                2306 dev/pci/if_bnx.c 		    sc->tx_bd_chain_map[i]->dm_segs[0].ds_addr;
i                2310 dev/pci/if_bnx.c 		    i, (u_int32_t) sc->tx_bd_chain_paddr[i]);
i                2316 dev/pci/if_bnx.c 	for (i = 0; i < TOTAL_TX_BD; i++) {
i                2321 dev/pci/if_bnx.c 		    &sc->tx_mbuf_map[i])) {
i                2322 dev/pci/if_bnx.c 			printf(": Could not create Tx mbuf %d DMA map!\n", i);
i                2332 dev/pci/if_bnx.c 	for (i = 0; i < RX_PAGES; i++) {
i                2335 dev/pci/if_bnx.c 		    &sc->rx_bd_chain_map[i])) {
i                2336 dev/pci/if_bnx.c 			printf(": Could not create Rx desc %d DMA map!\n", i);
i                2342 dev/pci/if_bnx.c 		    BCM_PAGE_SIZE, BNX_DMA_BOUNDARY, &sc->rx_bd_chain_seg[i], 1,
i                2343 dev/pci/if_bnx.c 		    &sc->rx_bd_chain_rseg[i], BUS_DMA_NOWAIT)) {
i                2345 dev/pci/if_bnx.c 			    i);
i                2350 dev/pci/if_bnx.c 		if (bus_dmamem_map(sc->bnx_dmatag, &sc->rx_bd_chain_seg[i],
i                2351 dev/pci/if_bnx.c 		    sc->rx_bd_chain_rseg[i], BNX_RX_CHAIN_PAGE_SZ,
i                2352 dev/pci/if_bnx.c 		    (caddr_t *)&sc->rx_bd_chain[i], BUS_DMA_NOWAIT)) {
i                2353 dev/pci/if_bnx.c 			printf(": Could not map Rx desc %d DMA memory!\n", i);
i                2358 dev/pci/if_bnx.c 		if (bus_dmamap_load(sc->bnx_dmatag, sc->rx_bd_chain_map[i],
i                2359 dev/pci/if_bnx.c 		    (caddr_t)sc->rx_bd_chain[i], BNX_RX_CHAIN_PAGE_SZ, NULL,
i                2361 dev/pci/if_bnx.c 			printf(": Could not load Rx desc %d DMA memory!\n", i);
i                2366 dev/pci/if_bnx.c 		bzero(sc->rx_bd_chain[i], BNX_RX_CHAIN_PAGE_SZ);
i                2367 dev/pci/if_bnx.c 		sc->rx_bd_chain_paddr[i] =
i                2368 dev/pci/if_bnx.c 		    sc->rx_bd_chain_map[i]->dm_segs[0].ds_addr;
i                2372 dev/pci/if_bnx.c 		    i, (u_int32_t) sc->rx_bd_chain_paddr[i]);
i                2378 dev/pci/if_bnx.c 	for (i = 0; i < TOTAL_RX_BD; i++) {
i                2381 dev/pci/if_bnx.c 		    &sc->rx_mbuf_map[i])) {
i                2382 dev/pci/if_bnx.c 			printf(": Could not create Rx mbuf %d DMA map!\n", i);
i                2433 dev/pci/if_bnx.c 	int			i, rc = 0;
i                2453 dev/pci/if_bnx.c 	for (i = 0; i < FW_ACK_TIME_OUT_MS; i++) {
i                2490 dev/pci/if_bnx.c 	int			i;
i                2493 dev/pci/if_bnx.c 	for (i = 0; i < rv2p_code_len; i += 8) {
i                2500 dev/pci/if_bnx.c 			val = (i / 8) | BNX_RV2P_PROC1_ADDR_CMD_RDWR;
i                2504 dev/pci/if_bnx.c 			val = (i / 8) | BNX_RV2P_PROC2_ADDR_CMD_RDWR;
i                2951 dev/pci/if_bnx.c 	int			i, rc = 0;
i                2986 dev/pci/if_bnx.c 	for (i = 0; i < 10; i++) {
i                3246 dev/pci/if_bnx.c 	int			i, rc = 0;
i                3343 dev/pci/if_bnx.c 	for (i = 1; i < map->dm_nsegs; i++) {
i                3350 dev/pci/if_bnx.c 		addr = (u_int32_t)(map->dm_segs[i].ds_addr);
i                3352 dev/pci/if_bnx.c 		addr = (u_int32_t)((u_int64_t)map->dm_segs[i].ds_addr >> 32);
i                3354 dev/pci/if_bnx.c 		rxbd->rx_bd_len = htole32(map->dm_segs[i].ds_len);
i                3356 dev/pci/if_bnx.c 		*prod_bseq += map->dm_segs[i].ds_len;
i                3396 dev/pci/if_bnx.c 	int			i, rc = 0;
i                3418 dev/pci/if_bnx.c 	for (i = 0; i < TX_PAGES; i++) {
i                3421 dev/pci/if_bnx.c 		txbd = &sc->tx_bd_chain[i][USABLE_TX_BD_PER_PAGE];
i                3424 dev/pci/if_bnx.c 		if (i == (TX_PAGES - 1))
i                3427 dev/pci/if_bnx.c 			j = i + 1;
i                3467 dev/pci/if_bnx.c 	int			i;
i                3472 dev/pci/if_bnx.c 	for (i = 0; i < TOTAL_TX_BD; i++) {
i                3473 dev/pci/if_bnx.c 		if (sc->tx_mbuf_ptr[i] != NULL) {
i                3476 dev/pci/if_bnx.c 				    sc->tx_mbuf_map[i], 0,
i                3477 dev/pci/if_bnx.c 				    sc->tx_mbuf_map[i]->dm_mapsize,
i                3479 dev/pci/if_bnx.c 			m_freem(sc->tx_mbuf_ptr[i]);
i                3480 dev/pci/if_bnx.c 			sc->tx_mbuf_ptr[i] = NULL;
i                3486 dev/pci/if_bnx.c 	for (i = 0; i < TX_PAGES; i++)
i                3487 dev/pci/if_bnx.c 		bzero((char *)sc->tx_bd_chain[i], BNX_TX_CHAIN_PAGE_SZ);
i                3507 dev/pci/if_bnx.c 	int			i, rc = 0;
i                3521 dev/pci/if_bnx.c 	for (i = 0; i < RX_PAGES; i++) {
i                3524 dev/pci/if_bnx.c 		rxbd = &sc->rx_bd_chain[i][USABLE_RX_BD_PER_PAGE];
i                3527 dev/pci/if_bnx.c 		if (i == (RX_PAGES - 1))
i                3530 dev/pci/if_bnx.c 			j = i + 1;
i                3568 dev/pci/if_bnx.c 	for (i = 0; i < RX_PAGES; i++)
i                3569 dev/pci/if_bnx.c 		bus_dmamap_sync(sc->bnx_dmatag, sc->rx_bd_chain_map[i], 0,
i                3570 dev/pci/if_bnx.c 		    sc->rx_bd_chain_map[i]->dm_mapsize,
i                3593 dev/pci/if_bnx.c 	int			i;
i                3598 dev/pci/if_bnx.c 	for (i = 0; i < TOTAL_RX_BD; i++) {
i                3599 dev/pci/if_bnx.c 		if (sc->rx_mbuf_ptr[i] != NULL) {
i                3600 dev/pci/if_bnx.c 			if (sc->rx_mbuf_map[i] != NULL)
i                3602 dev/pci/if_bnx.c 				    sc->rx_mbuf_map[i],	0,
i                3603 dev/pci/if_bnx.c 				    sc->rx_mbuf_map[i]->dm_mapsize,
i                3605 dev/pci/if_bnx.c 			m_freem(sc->rx_mbuf_ptr[i]);
i                3606 dev/pci/if_bnx.c 			sc->rx_mbuf_ptr[i] = NULL;
i                3612 dev/pci/if_bnx.c 	for (i = 0; i < RX_PAGES; i++)
i                3613 dev/pci/if_bnx.c 		bzero((char *)sc->rx_bd_chain[i], BNX_RX_CHAIN_PAGE_SZ);
i                3737 dev/pci/if_bnx.c 	int			i;
i                3742 dev/pci/if_bnx.c 	for (i = 0; i < RX_PAGES; i++)
i                3744 dev/pci/if_bnx.c 		    sc->rx_bd_chain_map[i], 0,
i                3745 dev/pci/if_bnx.c 		    sc->rx_bd_chain_map[i]->dm_mapsize,
i                4016 dev/pci/if_bnx.c 	for (i = 0; i < RX_PAGES; i++)
i                4018 dev/pci/if_bnx.c 		    sc->rx_bd_chain_map[i], 0,
i                4019 dev/pci/if_bnx.c 		    sc->rx_bd_chain_map[i]->dm_mapsize,
i                4318 dev/pci/if_bnx.c 	int			i, error, rc = 0;
i                4383 dev/pci/if_bnx.c 	for (i = 0; i < map->dm_nsegs ; i++) {
i                4387 dev/pci/if_bnx.c 		addr = (u_int32_t)(map->dm_segs[i].ds_addr);
i                4389 dev/pci/if_bnx.c 		addr = (u_int32_t)((u_int64_t)map->dm_segs[i].ds_addr >> 32);
i                4391 dev/pci/if_bnx.c 		txbd->tx_bd_mss_nbytes = htole16(map->dm_segs[i].ds_len);
i                4394 dev/pci/if_bnx.c 		prod_bseq += map->dm_segs[i].ds_len;
i                4395 dev/pci/if_bnx.c 		if (i == 0)
i                4781 dev/pci/if_bnx.c 	int			h, i;
i                4810 dev/pci/if_bnx.c 		for (i = 0; i < NUM_MC_HASH_REGISTERS; i++)
i                4811 dev/pci/if_bnx.c 			REG_WR(sc, BNX_EMAC_MULTICAST_HASH0 + (i * 4),
i                4831 dev/pci/if_bnx.c 		for (i = 0; i < NUM_MC_HASH_REGISTERS; i++)
i                4832 dev/pci/if_bnx.c 			REG_WR(sc, BNX_EMAC_MULTICAST_HASH0 + (i * 4),
i                4833 dev/pci/if_bnx.c 			    hashes[i]);
i                5149 dev/pci/if_bnx.c 	int			i;
i                5156 dev/pci/if_bnx.c 	for (i = 0; i < count; i++) {
i                5175 dev/pci/if_bnx.c 	int			i;
i                5182 dev/pci/if_bnx.c 	for (i = 0; i < count; i++) {
i                5252 dev/pci/if_bnx.c 	int			i;
i                5276 dev/pci/if_bnx.c 	for (i = 0; i < count; i++) {
i                5295 dev/pci/if_bnx.c 	int			i;
i                5321 dev/pci/if_bnx.c 	for (i = 0; i < count; i++) {
i                5762 dev/pci/if_bnx.c 	int			i;
i                5809 dev/pci/if_bnx.c 	for (i = 0x400; i < 0x8000; i += 0x10)
i                5811 dev/pci/if_bnx.c 		    i, REG_RD(sc, i), REG_RD(sc, i + 0x4),
i                5812 dev/pci/if_bnx.c 		    REG_RD(sc, i + 0x8), REG_RD(sc, i + 0xC));
i                 372 dev/pci/if_cas.c 	int i, error;
i                 418 dev/pci/if_cas.c 	for (i = 0; i < CAS_NRXDESC; i++) {
i                 426 dev/pci/if_cas.c 			    "error = %d\n", sc->sc_dev.dv_xname, i, error);
i                 429 dev/pci/if_cas.c 		sc->sc_rxsoft[i].rxs_dmaseg = seg;
i                 434 dev/pci/if_cas.c 			    "error = %d\n", sc->sc_dev.dv_xname, i, error);
i                 437 dev/pci/if_cas.c 		sc->sc_rxsoft[i].rxs_kva = kva;
i                 440 dev/pci/if_cas.c 		    CAS_PAGE_SIZE, 0, 0, &sc->sc_rxsoft[i].rxs_dmamap)) != 0) {
i                 442 dev/pci/if_cas.c 			    "error = %d\n", sc->sc_dev.dv_xname, i, error);
i                 447 dev/pci/if_cas.c 		   sc->sc_rxsoft[i].rxs_dmamap, kva, CAS_PAGE_SIZE, NULL,
i                 450 dev/pci/if_cas.c 			    "error = %d\n", sc->sc_dev.dv_xname, i, error);
i                 458 dev/pci/if_cas.c 	for (i = 0; i < CAS_NTXDESC; i++) {
i                 461 dev/pci/if_cas.c 		    &sc->sc_txd[i].sd_map)) != 0) {
i                 463 dev/pci/if_cas.c 			    "error = %d\n", sc->sc_dev.dv_xname, i, error);
i                 466 dev/pci/if_cas.c 		sc->sc_txd[i].sd_mbuf = NULL;
i                 593 dev/pci/if_cas.c 	for (i = 0; i < CAS_NTXDESC; i++) {
i                 594 dev/pci/if_cas.c 		if (sc->sc_txd[i].sd_map != NULL)
i                 596 dev/pci/if_cas.c 			    sc->sc_txd[i].sd_map);
i                 599 dev/pci/if_cas.c 	for (i = 0; i < CAS_NRXDESC; i++) {
i                 600 dev/pci/if_cas.c 		if (sc->sc_rxsoft[i].rxs_dmamap != NULL)
i                 602 dev/pci/if_cas.c 			    sc->sc_rxsoft[i].rxs_dmamap);
i                 650 dev/pci/if_cas.c 	int i;
i                 653 dev/pci/if_cas.c 	for (i = TRIES; i--; DELAY(100)) {
i                 701 dev/pci/if_cas.c 	u_int32_t i;
i                 721 dev/pci/if_cas.c 	for (i = 0; i < CAS_NTXDESC; i++) {
i                 722 dev/pci/if_cas.c 		sd = &sc->sc_txd[i];
i                 847 dev/pci/if_cas.c 	int i, error;
i                 854 dev/pci/if_cas.c 	for (i = 0; i < CAS_NTXDESC; i++) {
i                 855 dev/pci/if_cas.c 		sc->sc_txdescs[i].cd_flags = 0;
i                 856 dev/pci/if_cas.c 		sc->sc_txdescs[i].cd_addr = 0;
i                 865 dev/pci/if_cas.c 	for (i = 0; i < CAS_NRXDESC; i++)
i                 866 dev/pci/if_cas.c 		CAS_INIT_RXDESC(sc, i, i);
i                 873 dev/pci/if_cas.c 	for (i = 0; i < CAS_NRXCOMP; i++) {
i                 874 dev/pci/if_cas.c 		sc->sc_rxcomps[i].cc_word[0] = 0;
i                 875 dev/pci/if_cas.c 		sc->sc_rxcomps[i].cc_word[1] = 0;
i                 876 dev/pci/if_cas.c 		sc->sc_rxcomps[i].cc_word[2] = 0;
i                 877 dev/pci/if_cas.c 		sc->sc_rxcomps[i].cc_word[3] = CAS_DMA_WRITE(CAS_RC3_OWN);
i                 878 dev/pci/if_cas.c 		CAS_CDRXCSYNC(sc, i,
i                 916 dev/pci/if_cas.c 	int i;
i                 918 dev/pci/if_cas.c 	for (i = 0; i < 9; i++)
i                 919 dev/pci/if_cas.c 		if (sz == (128 << i))
i                 920 dev/pci/if_cas.c 			return i;
i                1147 dev/pci/if_cas.c 	int i, skip;
i                1150 dev/pci/if_cas.c 	for (i = sc->sc_rxptr;; i = CAS_NEXTRX(i + skip)) {
i                1151 dev/pci/if_cas.c 		CAS_CDRXCSYNC(sc, i,
i                1154 dev/pci/if_cas.c 		word[0] = CAS_DMA_READ(sc->sc_rxcomps[i].cc_word[0]);
i                1155 dev/pci/if_cas.c 		word[1] = CAS_DMA_READ(sc->sc_rxcomps[i].cc_word[1]);
i                1156 dev/pci/if_cas.c 		word[2] = CAS_DMA_READ(sc->sc_rxcomps[i].cc_word[2]);
i                1157 dev/pci/if_cas.c 		word[3] = CAS_DMA_READ(sc->sc_rxcomps[i].cc_word[3]);
i                1242 dev/pci/if_cas.c 	while (sc->sc_rxptr != i) {
i                1762 dev/pci/if_cas.c 	int i;
i                1792 dev/pci/if_cas.c 	for (i = 0; i < 16; i++)
i                1793 dev/pci/if_cas.c 		hash[i] = 0;
i                1828 dev/pci/if_cas.c 	for (i = 0; i < 16; i++) {
i                1830 dev/pci/if_cas.c 		    CAS_MAC_HASH0 + i * (CAS_MAC_HASH1-CAS_MAC_HASH0),
i                1831 dev/pci/if_cas.c 		    hash[i]);
i                1842 dev/pci/if_cas.c 	u_int32_t cur, frag, i;
i                1861 dev/pci/if_cas.c 	for (i = 0; i < map->dm_nsegs; i++) {
i                1863 dev/pci/if_cas.c 		    CAS_DMA_WRITE(map->dm_segs[i].ds_addr);
i                1864 dev/pci/if_cas.c 		flags = (map->dm_segs[i].ds_len & CAS_TD_BUFSIZE) |
i                1865 dev/pci/if_cas.c 		    (i == 0 ? CAS_TD_START_OF_PACKET : 0) |
i                1866 dev/pci/if_cas.c 		    ((i == (map->dm_nsegs - 1)) ? CAS_TD_END_OF_PACKET : 0);
i                 323 dev/pci/if_che.c 	int i;
i                 326 dev/pci/if_che.c 	for (i = 0; i < sizeof(che_devices)/sizeof(che_devices[0]); i++) {
i                 327 dev/pci/if_che.c 		cd = &che_devices[i];
i                 357 dev/pci/if_che.c 	u_int i;
i                 405 dev/pci/if_che.c 	for (i = 0; i < cd->cd_nports; i++) {
i                 406 dev/pci/if_che.c 		caa.caa_port = i;
i                 554 dev/pci/if_che.c 	int i = 4;
i                 566 dev/pci/if_che.c 	while(i--) {
i                 587 dev/pci/if_che.c 	int i;
i                 600 dev/pci/if_che.c 	for (i = 0; i < dwords; i++) {
i                 601 dev/pci/if_che.c 		if (che_read_eeprom(sc, pa, addr + i * 4, &dw[i]))
i                 615 dev/pci/if_che.c 	int i;
i                 620 dev/pci/if_che.c 	for (i = 0; i < ETHER_ADDR_LEN * 2; i++) {
i                 621 dev/pci/if_che.c 		if (mac[i] >= '0' && mac[i] <= '9')
i                 622 dev/pci/if_che.c 			digit = mac[i] - '0';
i                 623 dev/pci/if_che.c 		else if (mac[i] >= 'A' && mac[i] <= 'F')
i                 624 dev/pci/if_che.c 			digit = mac[i] - 'A' + 10;
i                 625 dev/pci/if_che.c 		else if (mac[i] >= 'a' && mac[i] <= 'f')
i                 626 dev/pci/if_che.c 			digit = mac[i] - 'a' + 10;
i                 628 dev/pci/if_che.c 		if ((i & 1) == 0)
i                 631 dev/pci/if_che.c 		lladdr[i/2] |= digit;
i                 638 dev/pci/if_che.c 	size_t i;
i                 641 dev/pci/if_che.c 	for (i = 0; i < len; i++) {
i                 642 dev/pci/if_che.c 		if (num[i] >= '0' && num[i] <= '9')
i                 643 dev/pci/if_che.c 			n = 10 * n + (num[i] - '0');
i                 791 dev/pci/if_che.c 	int i;
i                 793 dev/pci/if_che.c 	for (i = 0; i < tries; i++) {
i                 937 dev/pci/if_em.c 	int		i, j, first, error = 0, last = 0;
i                 993 dev/pci/if_em.c 	i = sc->next_avail_tx_desc;
i                 995 dev/pci/if_em.c 		txd_saved = i;
i                1012 dev/pci/if_em.c 				tx_buffer = &sc->tx_buffer_area[i];
i                1013 dev/pci/if_em.c 				current_tx_desc = &sc->tx_desc_base[i];
i                1020 dev/pci/if_em.c 				last = i;
i                1021 dev/pci/if_em.c 				if (++i == sc->num_tx_desc)
i                1022 dev/pci/if_em.c 					i = 0;
i                1029 dev/pci/if_em.c 			tx_buffer = &sc->tx_buffer_area[i];
i                1030 dev/pci/if_em.c 			current_tx_desc = &sc->tx_desc_base[i];
i                1036 dev/pci/if_em.c 			last = i;
i                1037 dev/pci/if_em.c 			if (++i == sc->num_tx_desc)
i                1038 dev/pci/if_em.c 	        		i = 0;
i                1045 dev/pci/if_em.c 	sc->next_avail_tx_desc = i;
i                1084 dev/pci/if_em.c 		E1000_WRITE_REG(&sc->hw, TDT, i);
i                1868 dev/pci/if_em.c 	int error, i;
i                1879 dev/pci/if_em.c 	for (i = 0; i < sc->num_tx_desc; i++) {
i                1993 dev/pci/if_em.c 	int		i;
i                1999 dev/pci/if_em.c 		for (i = 0; i < sc->num_tx_desc; i++, tx_buffer++) {
i                2216 dev/pci/if_em.c em_get_buf(struct em_softc *sc, int i)
i                2250 dev/pci/if_em.c 	rx_buffer = &sc->rx_buffer_area[i];
i                2263 dev/pci/if_em.c 	sc->rx_desc_base[i].buffer_addr = htole64(rx_buffer->map->dm_segs[0].ds_addr);
i                2279 dev/pci/if_em.c 	int		i, error;
i                2306 dev/pci/if_em.c 	for (i = 0; i < sc->num_rx_desc; i++, rx_buffer++) {
i                2318 dev/pci/if_em.c 	for (i = 0; i < sc->num_rx_desc; i++) {
i                2319 dev/pci/if_em.c 		error = em_get_buf(sc, i);
i                2442 dev/pci/if_em.c 	int		i;
i                2452 dev/pci/if_em.c 		for (i = 0; i < sc->num_rx_desc; i++, rx_buffer++) {
i                2498 dev/pci/if_em.c 	int		    i;
i                2505 dev/pci/if_em.c 	i = sc->next_rx_desc_to_check;
i                2506 dev/pci/if_em.c 	current_desc = &sc->rx_desc_base[i];
i                2518 dev/pci/if_em.c 		mp = sc->rx_buffer_area[i].m_head;
i                2523 dev/pci/if_em.c 		bus_dmamap_sync(sc->rxtag, sc->rx_buffer_area[i].map,
i                2524 dev/pci/if_em.c 		    0, sc->rx_buffer_area[i].map->dm_mapsize,
i                2565 dev/pci/if_em.c 			if (em_get_buf(sc, i) != 0) {
i                2655 dev/pci/if_em.c 			mp = sc->rx_buffer_area[i].m_head;
i                2676 dev/pci/if_em.c 		if (++i == sc->num_rx_desc)
i                2677 dev/pci/if_em.c 			i = 0;
i                2679 dev/pci/if_em.c 			sc->next_rx_desc_to_check = i;
i                2692 dev/pci/if_em.c 			i = sc->next_rx_desc_to_check;
i                2694 dev/pci/if_em.c 		current_desc = &sc->rx_desc_base[i];
i                2696 dev/pci/if_em.c 	sc->next_rx_desc_to_check = i;
i                2699 dev/pci/if_em.c 	if (--i < 0)
i                2700 dev/pci/if_em.c 		i = sc->num_rx_desc - 1;
i                2701 dev/pci/if_em.c 	E1000_WRITE_REG(&sc->hw, RDT, i);
i                 873 dev/pci/if_em_hw.c     uint32_t i;
i                 945 dev/pci/if_em_hw.c     for (i = 0; i < mta_size; i++) {
i                 946 dev/pci/if_em_hw.c         E1000_WRITE_REG_ARRAY(hw, MTA, i, 0);
i                1260 dev/pci/if_em_hw.c     uint32_t i;
i                1367 dev/pci/if_em_hw.c         for (i = 0; i < (LINK_UP_TIMEOUT / 10); i++) {
i                1372 dev/pci/if_em_hw.c         if (i == (LINK_UP_TIMEOUT / 10)) {
i                1974 dev/pci/if_em_hw.c     uint16_t i;
i                2055 dev/pci/if_em_hw.c     for (i = 0; i < 10; i++) {
i                2314 dev/pci/if_em_hw.c     uint16_t i;
i                2447 dev/pci/if_em_hw.c         for (i = PHY_FORCE_TIME; i > 0; i--) {
i                2462 dev/pci/if_em_hw.c         if ((i == 0) &&
i                2473 dev/pci/if_em_hw.c         for (i = PHY_FORCE_TIME; i > 0; i--) {
i                3238 dev/pci/if_em_hw.c     uint16_t i;
i                3245 dev/pci/if_em_hw.c     for (i = PHY_AUTO_NEG_TIME; i > 0; i--) {
i                3363 dev/pci/if_em_hw.c     uint8_t i;
i                3388 dev/pci/if_em_hw.c     for (data = 0, i = 0; i < 16; i++) {
i                3547 dev/pci/if_em_hw.c     uint32_t i;
i                3570 dev/pci/if_em_hw.c         for (i = 0; i < 64; i++) {
i                3685 dev/pci/if_em_hw.c     uint32_t i;
i                3709 dev/pci/if_em_hw.c         for (i = 0; i < 641; i++) {
i                4260 dev/pci/if_em_hw.c         int32_t  i = 0;
i                4271 dev/pci/if_em_hw.c             for (i = 0; i < E1000_SHADOW_RAM_WORDS; i++) {
i                4272 dev/pci/if_em_hw.c                 hw->eeprom_shadow_ram[i].modified = FALSE;
i                4273 dev/pci/if_em_hw.c                 hw->eeprom_shadow_ram[i].eeprom_word = 0xFFFF;
i                4422 dev/pci/if_em_hw.c     uint32_t i;
i                4437 dev/pci/if_em_hw.c     for (i = 0; i < count; i++) {
i                4465 dev/pci/if_em_hw.c     uint32_t eecd, i=0;
i                4480 dev/pci/if_em_hw.c                   (i < E1000_EEPROM_GRANT_ATTEMPTS)) {
i                4481 dev/pci/if_em_hw.c                 i++;
i                4673 dev/pci/if_em_hw.c     uint32_t i = 0;
i                4735 dev/pci/if_em_hw.c         for (i = 0; i < words; i++) {
i                4737 dev/pci/if_em_hw.c             data[i] = (word_in >> 8) | (word_in << 8);
i                4740 dev/pci/if_em_hw.c         for (i = 0; i < words; i++) {
i                4744 dev/pci/if_em_hw.c             em_shift_out_ee_bits(hw, (uint16_t)(offset + i),
i                4749 dev/pci/if_em_hw.c             data[i] = em_shift_in_ee_bits(hw, 16);
i                4774 dev/pci/if_em_hw.c     uint32_t i, eerd = 0;
i                4777 dev/pci/if_em_hw.c     for (i = 0; i < words; i++) {
i                4778 dev/pci/if_em_hw.c         eerd = ((offset+i) << E1000_EEPROM_RW_ADDR_SHIFT) +
i                4787 dev/pci/if_em_hw.c         data[i] = (E1000_READ_REG(hw, EERD) >> E1000_EEPROM_RW_REG_DATA);
i                4809 dev/pci/if_em_hw.c     uint32_t    i              = 0;
i                4815 dev/pci/if_em_hw.c     for (i = 0; i < words; i++) {
i                4816 dev/pci/if_em_hw.c         register_value = (data[i] << E1000_EEPROM_RW_REG_DATA) |
i                4817 dev/pci/if_em_hw.c                          ((offset+i) << E1000_EEPROM_RW_ADDR_SHIFT) |
i                4847 dev/pci/if_em_hw.c     uint32_t i, reg = 0;
i                4850 dev/pci/if_em_hw.c     for (i = 0; i < attempts; i++) {
i                4908 dev/pci/if_em_hw.c     uint16_t i, eeprom_data;
i                4945 dev/pci/if_em_hw.c     for (i = 0; i < (EEPROM_CHECKSUM_REG + 1); i++) {
i                4946 dev/pci/if_em_hw.c         if (em_read_eeprom(hw, i, 1, &eeprom_data) < 0) {
i                4974 dev/pci/if_em_hw.c     uint16_t i, eeprom_data;
i                4978 dev/pci/if_em_hw.c     for (i = 0; i < EEPROM_CHECKSUM_REG; i++) {
i                4979 dev/pci/if_em_hw.c         if (em_read_eeprom(hw, i, 1, &eeprom_data) < 0) {
i                5146 dev/pci/if_em_hw.c     uint16_t i = 0;
i                5184 dev/pci/if_em_hw.c         for (i = 0; i < 200; i++) {
i                5189 dev/pci/if_em_hw.c         if (i == 200) {
i                5230 dev/pci/if_em_hw.c     uint32_t i = 0;
i                5241 dev/pci/if_em_hw.c         for (i=0; i < attempts; i++) {
i                5249 dev/pci/if_em_hw.c         if (i == attempts) {
i                5261 dev/pci/if_em_hw.c         for (i=0; i < attempts; i++) {
i                5269 dev/pci/if_em_hw.c         if (i == attempts) {
i                5291 dev/pci/if_em_hw.c         for (i = 0; i < E1000_SHADOW_RAM_WORDS; i++) {
i                5295 dev/pci/if_em_hw.c             if (hw->eeprom_shadow_ram[i].modified == TRUE) {
i                5296 dev/pci/if_em_hw.c                 low_byte = (uint8_t)hw->eeprom_shadow_ram[i].eeprom_word;
i                5299 dev/pci/if_em_hw.c                             (i << 1) + new_bank_offset, low_byte);
i                5305 dev/pci/if_em_hw.c                         (uint8_t)(hw->eeprom_shadow_ram[i].eeprom_word >> 8);
i                5309 dev/pci/if_em_hw.c                 em_read_ich8_byte(hw, (i << 1) + old_bank_offset,
i                5313 dev/pci/if_em_hw.c                             (i << 1) + new_bank_offset, low_byte);
i                5318 dev/pci/if_em_hw.c                     em_read_ich8_byte(hw, (i << 1) + old_bank_offset + 1,
i                5334 dev/pci/if_em_hw.c                 if (i == E1000_ICH_NVM_SIG_WORD)
i                5338 dev/pci/if_em_hw.c                             (i << 1) + new_bank_offset + 1, high_byte);
i                5372 dev/pci/if_em_hw.c             for (i = 0; i < E1000_SHADOW_RAM_WORDS; i++) {
i                5373 dev/pci/if_em_hw.c                 hw->eeprom_shadow_ram[i].modified = FALSE;
i                5374 dev/pci/if_em_hw.c                 hw->eeprom_shadow_ram[i].eeprom_word = 0xFFFF;
i                5426 dev/pci/if_em_hw.c     uint16_t eeprom_data, i;
i                5430 dev/pci/if_em_hw.c     for (i = 0; i < NODE_ADDRESS_SIZE; i += 2) {
i                5431 dev/pci/if_em_hw.c         offset = i >> 1;
i                5436 dev/pci/if_em_hw.c         hw->perm_mac_addr[i] = (uint8_t) (eeprom_data & 0x00FF);
i                5437 dev/pci/if_em_hw.c         hw->perm_mac_addr[i+1] = (uint8_t) (eeprom_data >> 8);
i                5452 dev/pci/if_em_hw.c     for (i = 0; i < NODE_ADDRESS_SIZE; i++)
i                5453 dev/pci/if_em_hw.c         hw->mac_addr[i] = hw->perm_mac_addr[i];
i                5469 dev/pci/if_em_hw.c     uint32_t i;
i                5491 dev/pci/if_em_hw.c     for (i = 1; i < rar_num; i++) {
i                5492 dev/pci/if_em_hw.c         E1000_WRITE_REG_ARRAY(hw, RA, (i << 1), 0);
i                5494 dev/pci/if_em_hw.c         E1000_WRITE_REG_ARRAY(hw, RA, ((i << 1) + 1), 0);
i                5521 dev/pci/if_em_hw.c     uint32_t i;
i                5542 dev/pci/if_em_hw.c     for (i = rar_used_count; i < num_rar_entry; i++) {
i                5543 dev/pci/if_em_hw.c         E1000_WRITE_REG_ARRAY(hw, RA, (i << 1), 0);
i                5545 dev/pci/if_em_hw.c         E1000_WRITE_REG_ARRAY(hw, RA, ((i << 1) + 1), 0);
i                5555 dev/pci/if_em_hw.c     for (i = 0; i < num_mta_entry; i++) {
i                5556 dev/pci/if_em_hw.c         E1000_WRITE_REG_ARRAY(hw, MTA, i, 0);
i                5561 dev/pci/if_em_hw.c     for (i = 0; i < mc_addr_count; i++) {
i                5563 dev/pci/if_em_hw.c         DEBUGOUT7(" MC Addr #%d =%.2X %.2X %.2X %.2X %.2X %.2X\n", i,
i                5564 dev/pci/if_em_hw.c                   mc_addr_list[i * (ETH_LENGTH_OF_ADDRESS + pad)],
i                5565 dev/pci/if_em_hw.c                   mc_addr_list[i * (ETH_LENGTH_OF_ADDRESS + pad) + 1],
i                5566 dev/pci/if_em_hw.c                   mc_addr_list[i * (ETH_LENGTH_OF_ADDRESS + pad) + 2],
i                5567 dev/pci/if_em_hw.c                   mc_addr_list[i * (ETH_LENGTH_OF_ADDRESS + pad) + 3],
i                5568 dev/pci/if_em_hw.c                   mc_addr_list[i * (ETH_LENGTH_OF_ADDRESS + pad) + 4],
i                5569 dev/pci/if_em_hw.c                   mc_addr_list[i * (ETH_LENGTH_OF_ADDRESS + pad) + 5]);
i                5573 dev/pci/if_em_hw.c                                         (i * (ETH_LENGTH_OF_ADDRESS + pad)));
i                5582 dev/pci/if_em_hw.c                           mc_addr_list + (i * (ETH_LENGTH_OF_ADDRESS + pad)),
i                5809 dev/pci/if_em_hw.c     uint16_t eeprom_data, i, temp;
i                5840 dev/pci/if_em_hw.c     for (i = 0; i < 4; i++) {
i                5841 dev/pci/if_em_hw.c         temp = (eeprom_data >> (i << 2)) & led_mask;
i                5846 dev/pci/if_em_hw.c             hw->ledctl_mode1 &= ~(ledctl_mask << (i << 3));
i                5847 dev/pci/if_em_hw.c             hw->ledctl_mode1 |= ledctl_on << (i << 3);
i                5852 dev/pci/if_em_hw.c             hw->ledctl_mode1 &= ~(ledctl_mask << (i << 3));
i                5853 dev/pci/if_em_hw.c             hw->ledctl_mode1 |= ledctl_off << (i << 3);
i                5863 dev/pci/if_em_hw.c             hw->ledctl_mode2 &= ~(ledctl_mask << (i << 3));
i                5864 dev/pci/if_em_hw.c             hw->ledctl_mode2 |= ledctl_on << (i << 3);
i                5869 dev/pci/if_em_hw.c             hw->ledctl_mode2 &= ~(ledctl_mask << (i << 3));
i                5870 dev/pci/if_em_hw.c             hw->ledctl_mode2 |= ledctl_off << (i << 3);
i                6173 dev/pci/if_em_hw.c     uint16_t i, phy_data;
i                6253 dev/pci/if_em_hw.c         for (i = 0; i < IGP01E1000_PHY_CHANNEL_NUM; i++) {
i                6255 dev/pci/if_em_hw.c             ret_val = em_read_phy_reg(hw, agc_reg_array[i], &phy_data);
i                6301 dev/pci/if_em_hw.c         for (i = 0; i < IGP02E1000_PHY_CHANNEL_NUM; i++) {
i                6302 dev/pci/if_em_hw.c             ret_val = em_read_phy_reg(hw, agc_reg_array[i], &phy_data);
i                6407 dev/pci/if_em_hw.c     uint16_t phy_data, phy_saved_data, speed, duplex, i;
i                6436 dev/pci/if_em_hw.c                 for (i = 0; i < IGP01E1000_PHY_CHANNEL_NUM; i++) {
i                6437 dev/pci/if_em_hw.c                     ret_val = em_read_phy_reg(hw, dsp_reg_array[i],
i                6444 dev/pci/if_em_hw.c                     ret_val = em_write_phy_reg(hw, dsp_reg_array[i],
i                6464 dev/pci/if_em_hw.c                 for (i = 0; i < ffe_idle_err_timeout; i++) {
i                6509 dev/pci/if_em_hw.c             for (i = 0; i < IGP01E1000_PHY_CHANNEL_NUM; i++) {
i                6510 dev/pci/if_em_hw.c                 ret_val = em_read_phy_reg(hw, dsp_reg_array[i], &phy_data);
i                6517 dev/pci/if_em_hw.c                 ret_val = em_write_phy_reg(hw,dsp_reg_array[i], phy_data);
i                6923 dev/pci/if_em_hw.c     uint8_t i;
i                6930 dev/pci/if_em_hw.c     for (i = 0; i < length; i++) {
i                6931 dev/pci/if_em_hw.c         *((uint32_t *) buffer + i) =
i                6932 dev/pci/if_em_hw.c             E1000_READ_REG_ARRAY_DWORD(hw, HOST_IF, offset + i);
i                6951 dev/pci/if_em_hw.c     uint8_t i;
i                6960 dev/pci/if_em_hw.c     for (i = 0; i < E1000_MNG_DHCP_COMMAND_TIMEOUT; i++) {
i                6967 dev/pci/if_em_hw.c     if (i == E1000_MNG_DHCP_COMMAND_TIMEOUT) {
i                7006 dev/pci/if_em_hw.c     uint32_t i;
i                7011 dev/pci/if_em_hw.c     for (i=0; i < length; i++)
i                7012 dev/pci/if_em_hw.c         sum += buffer[i];
i                7062 dev/pci/if_em_hw.c     uint16_t i;
i                7080 dev/pci/if_em_hw.c     for (i = PHY_FORCE_TIME; i > 0; i--) {
i                7123 dev/pci/if_em_hw.c     for (i = PHY_FORCE_TIME; i > 0; i--) {
i                7593 dev/pci/if_em_hw.c     uint16_t i = 0;
i                7610 dev/pci/if_em_hw.c     for (i = 0; i < words; i++) {
i                7612 dev/pci/if_em_hw.c             hw->eeprom_shadow_ram[offset+i].modified == TRUE) {
i                7613 dev/pci/if_em_hw.c             data[i] = hw->eeprom_shadow_ram[offset+i].eeprom_word;
i                7616 dev/pci/if_em_hw.c             act_offset = bank_offset + ((offset + i) * 2);
i                7620 dev/pci/if_em_hw.c             data[i] = word;
i                7644 dev/pci/if_em_hw.c     uint32_t i = 0;
i                7659 dev/pci/if_em_hw.c         for (i = 0; i < words; i++) {
i                7660 dev/pci/if_em_hw.c             if ((offset + i) < E1000_SHADOW_RAM_WORDS) {
i                7661 dev/pci/if_em_hw.c                 hw->eeprom_shadow_ram[offset+i].modified = TRUE;
i                7662 dev/pci/if_em_hw.c                 hw->eeprom_shadow_ram[offset+i].eeprom_word = data[i];
i                7692 dev/pci/if_em_hw.c     int32_t i     = 0;
i                7729 dev/pci/if_em_hw.c         for (i = 0; i < ICH_FLASH_COMMAND_TIMEOUT; i++) {
i                7760 dev/pci/if_em_hw.c     uint32_t i = 0;
i                7773 dev/pci/if_em_hw.c         i++;
i                7774 dev/pci/if_em_hw.c     } while (i < timeout);
i                8134 dev/pci/if_em_hw.c     uint16_t i;
i                8140 dev/pci/if_em_hw.c     for (i = 0; i < cnf_size; i++) {
i                8141 dev/pci/if_em_hw.c         ret_val = em_read_eeprom(hw, (word_addr + i*2), 1, &reg_data);
i                8145 dev/pci/if_em_hw.c         ret_val = em_read_eeprom(hw, (word_addr + i*2 + 1), 1, &reg_addr);
i                 118 dev/pci/if_ep_pci.c 	pcireg_t i;
i                 129 dev/pci/if_ep_pci.c 	i = pci_conf_read(pc, pa->pa_tag, PCI_CONN);
i                 174 dev/pci/if_ipw.c 	int error, i;
i                 256 dev/pci/if_ipw.c 	for (i = 1; i <= 14; i++) {
i                 257 dev/pci/if_ipw.c 		ic->ic_channels[i].ic_freq =
i                 258 dev/pci/if_ipw.c 		    ieee80211_ieee2mhz(i, IEEE80211_CHAN_B);
i                 259 dev/pci/if_ipw.c 		ic->ic_channels[i].ic_flags = IEEE80211_CHAN_B;
i                 326 dev/pci/if_ipw.c 	int i, nsegs, error;
i                 448 dev/pci/if_ipw.c 	for (i = 0; i < IPW_NDATA; i++) {
i                 449 dev/pci/if_ipw.c 		shdr = &sc->shdr_list[i];
i                 464 dev/pci/if_ipw.c 	for (i = 0; i < IPW_NDATA; i++) {
i                 465 dev/pci/if_ipw.c 		sbuf = &sc->tx_sbuf_list[i];
i                 479 dev/pci/if_ipw.c 	for (i = 0; i < IPW_NTBD; i++) {
i                 480 dev/pci/if_ipw.c 		sbd = &sc->stbd_list[i];
i                 481 dev/pci/if_ipw.c 		sbd->bd = &sc->tbd_list[i];
i                 488 dev/pci/if_ipw.c 	for (i = 0; i < IPW_NRBD; i++) {
i                 489 dev/pci/if_ipw.c 		sbd = &sc->srbd_list[i];
i                 490 dev/pci/if_ipw.c 		sbuf = &sc->rx_sbuf_list[i];
i                 491 dev/pci/if_ipw.c 		sbd->bd = &sc->rbd_list[i];
i                 545 dev/pci/if_ipw.c 	int i;
i                 580 dev/pci/if_ipw.c 	for (i = 0; i < IPW_NDATA; i++)
i                 581 dev/pci/if_ipw.c 		bus_dmamap_destroy(sc->sc_dmat, sc->shdr_list[i].map);
i                 583 dev/pci/if_ipw.c 	for (i = 0; i < IPW_NDATA; i++)
i                 584 dev/pci/if_ipw.c 		bus_dmamap_destroy(sc->sc_dmat, sc->tx_sbuf_list[i].map);
i                 586 dev/pci/if_ipw.c 	for (i = 0; i < IPW_NRBD; i++) {
i                 587 dev/pci/if_ipw.c 		sbuf = &sc->rx_sbuf_list[i];
i                 629 dev/pci/if_ipw.c 	int rate, i;
i                 641 dev/pci/if_ipw.c 	for (i = 0; i < N(rates) && rates[i].val != val; i++);
i                 642 dev/pci/if_ipw.c 	rate = (i < N(rates)) ? rates[i].rate : 0;
i                 918 dev/pci/if_ipw.c 	uint32_t r, i;
i                 922 dev/pci/if_ipw.c 	for (i = (sc->rxcur + 1) % IPW_NRBD; i != r; i = (i + 1) % IPW_NRBD) {
i                 925 dev/pci/if_ipw.c 		    i * sizeof (struct ipw_bd), sizeof (struct ipw_bd),
i                 929 dev/pci/if_ipw.c 		    i * sizeof (struct ipw_status), sizeof (struct ipw_status),
i                 932 dev/pci/if_ipw.c 		status = &sc->status_list[i];
i                 933 dev/pci/if_ipw.c 		sbd = &sc->srbd_list[i];
i                 961 dev/pci/if_ipw.c 		    i * sizeof (struct ipw_bd), sizeof (struct ipw_bd),
i                1010 dev/pci/if_ipw.c 	uint32_t r, i;
i                1014 dev/pci/if_ipw.c 	for (i = (sc->txold + 1) % IPW_NTBD; i != r; i = (i + 1) % IPW_NTBD) {
i                1015 dev/pci/if_ipw.c 		sbd = &sc->stbd_list[i];
i                1129 dev/pci/if_ipw.c 	int error, i;
i                1258 dev/pci/if_ipw.c 	for (i = 0; i < sbuf->map->dm_nsegs; i++) {
i                1260 dev/pci/if_ipw.c 		sbd->bd->physaddr = htole32(sbuf->map->dm_segs[i].ds_addr);
i                1261 dev/pci/if_ipw.c 		sbd->bd->len = htole32(sbuf->map->dm_segs[i].ds_len);
i                1264 dev/pci/if_ipw.c 		if (i == sbuf->map->dm_nsegs - 1) {
i                1273 dev/pci/if_ipw.c 		DPRINTFN(5, ("TX!FRAG!%d!%d\n", i,
i                1274 dev/pci/if_ipw.c 		    sbuf->map->dm_segs[i].ds_len));
i                1690 dev/pci/if_ipw.c 	int error, i;
i                1823 dev/pci/if_ipw.c 		for (i = 0; i < IEEE80211_WEP_NKID; i++, k++) {
i                1827 dev/pci/if_ipw.c 			wepkey.idx = i;
i                1956 dev/pci/if_ipw.c 	int i;
i                1967 dev/pci/if_ipw.c 	for (i = 0; i < IPW_NTBD; i++)
i                1968 dev/pci/if_ipw.c 		ipw_release_sbd(sc, &sc->stbd_list[i]);
i                 179 dev/pci/if_iwi.c 	int error, i;
i                 298 dev/pci/if_iwi.c 		for (i = 36; i <= 64; i += 4) {
i                 299 dev/pci/if_iwi.c 			ic->ic_channels[i].ic_freq =
i                 300 dev/pci/if_iwi.c 			    ieee80211_ieee2mhz(i, IEEE80211_CHAN_5GHZ);
i                 301 dev/pci/if_iwi.c 			ic->ic_channels[i].ic_flags = IEEE80211_CHAN_A;
i                 303 dev/pci/if_iwi.c 		for (i = 149; i <= 165; i += 4) {
i                 304 dev/pci/if_iwi.c 			ic->ic_channels[i].ic_freq =
i                 305 dev/pci/if_iwi.c 			    ieee80211_ieee2mhz(i, IEEE80211_CHAN_5GHZ);
i                 306 dev/pci/if_iwi.c 			ic->ic_channels[i].ic_flags = IEEE80211_CHAN_A;
i                 315 dev/pci/if_iwi.c 	for (i = 1; i <= 14; i++) {
i                 316 dev/pci/if_iwi.c 		ic->ic_channels[i].ic_freq =
i                 317 dev/pci/if_iwi.c 		    ieee80211_ieee2mhz(i, IEEE80211_CHAN_2GHZ);
i                 318 dev/pci/if_iwi.c 		ic->ic_channels[i].ic_flags =
i                 467 dev/pci/if_iwi.c 	int i, nsegs, error;
i                 513 dev/pci/if_iwi.c 	for (i = 0; i < IWI_TX_RING_COUNT; i++) {
i                 514 dev/pci/if_iwi.c 		data = &ring->data[i];
i                 535 dev/pci/if_iwi.c 	int i;
i                 537 dev/pci/if_iwi.c 	for (i = 0; i < IWI_TX_RING_COUNT; i++) {
i                 538 dev/pci/if_iwi.c 		data = &ring->data[i];
i                 555 dev/pci/if_iwi.c 	int i;
i                 567 dev/pci/if_iwi.c 	for (i = 0; i < IWI_TX_RING_COUNT; i++) {
i                 568 dev/pci/if_iwi.c 		data = &ring->data[i];
i                 582 dev/pci/if_iwi.c 	int i, error;
i                 586 dev/pci/if_iwi.c 	for (i = 0; i < IWI_RX_RING_COUNT; i++) {
i                 587 dev/pci/if_iwi.c 		data = &sc->rxq.data[i];
i                 623 dev/pci/if_iwi.c 		data->reg = IWI_CSR_RX_BASE + i * 4;
i                 642 dev/pci/if_iwi.c 	int i;
i                 644 dev/pci/if_iwi.c 	for (i = 0; i < IWI_RX_RING_COUNT; i++) {
i                 645 dev/pci/if_iwi.c 		data = &sc->rxq.data[i];
i                 713 dev/pci/if_iwi.c 	int i;
i                 715 dev/pci/if_iwi.c 	for (i = 0; i < sc->nsta; i++)
i                 716 dev/pci/if_iwi.c 		if (IEEE80211_ADDR_EQ(sc->sta[i], macaddr))
i                 717 dev/pci/if_iwi.c 			return i;	/* already existing node */
i                 719 dev/pci/if_iwi.c 	if (i == IWI_MAX_NODE)
i                 723 dev/pci/if_iwi.c 	IEEE80211_ADDR_COPY(sc->sta[i], macaddr);
i                 724 dev/pci/if_iwi.c 	sc->nsta = i;
i                 730 dev/pci/if_iwi.c 	CSR_WRITE_REGION_1(sc, IWI_CSR_NODE_BASE + i * sizeof node,
i                 733 dev/pci/if_iwi.c 	return i;
i                1265 dev/pci/if_iwi.c 	int error, i, station = 0;
i                1375 dev/pci/if_iwi.c 	for (i = 0; i < data->map->dm_nsegs; i++) {
i                1376 dev/pci/if_iwi.c 		desc->seg_addr[i] = htole32(data->map->dm_segs[i].ds_addr);
i                1377 dev/pci/if_iwi.c 		desc->seg_len[i]  = htole16(data->map->dm_segs[i].ds_len);
i                1560 dev/pci/if_iwi.c 	int i, ntries;
i                1592 dev/pci/if_iwi.c 	for (i = 0; i < 0xc000; i++)
i                1602 dev/pci/if_iwi.c 	int ntries, i;
i                1654 dev/pci/if_iwi.c 	for (i = 0; i < 7; i++)
i                1810 dev/pci/if_iwi.c 	int error, nchan, i;
i                1851 dev/pci/if_iwi.c 	for (i = 0; i <= IEEE80211_CHAN_MAX; i++) {
i                1852 dev/pci/if_iwi.c 		if (!IEEE80211_IS_CHAN_2GHZ(&ic->ic_channels[i]))
i                1854 dev/pci/if_iwi.c 		power.chan[nchan].chan = i;
i                1873 dev/pci/if_iwi.c 	for (i = 0; i <= IEEE80211_CHAN_MAX; i++) {
i                1874 dev/pci/if_iwi.c 		if (!IEEE80211_IS_CHAN_5GHZ(&ic->ic_channels[i]))
i                1876 dev/pci/if_iwi.c 		power.chan[nchan].chan = i;
i                1935 dev/pci/if_iwi.c 		for (i = 0; i < IEEE80211_WEP_NKID; i++, k++) {
i                1937 dev/pci/if_iwi.c 			wepkey.idx = i;
i                1978 dev/pci/if_iwi.c 	int i, count;
i                1992 dev/pci/if_iwi.c 	for (i = 0; i <= IEEE80211_CHAN_MAX; i++) {
i                1993 dev/pci/if_iwi.c 		if (IEEE80211_IS_CHAN_5GHZ(&ic->ic_channels[i])) {
i                1994 dev/pci/if_iwi.c 			*++p = i;
i                2002 dev/pci/if_iwi.c 	for (i = 0; i <= IEEE80211_CHAN_MAX; i++) {
i                2003 dev/pci/if_iwi.c 		if (IEEE80211_IS_CHAN_2GHZ(&ic->ic_channels[i])) {
i                2004 dev/pci/if_iwi.c 			*++p = i;
i                2128 dev/pci/if_iwi.c 	int i, error;
i                2220 dev/pci/if_iwi.c 	for (i = 0; i < IWI_RX_RING_COUNT; i++) {
i                2221 dev/pci/if_iwi.c 		struct iwi_rx_data *data = &sc->rxq.data[i];
i                2264 dev/pci/if_iwi.c 	int i;
i                2278 dev/pci/if_iwi.c 	for (i = 0; i < 4; i++)
i                2279 dev/pci/if_iwi.c 		iwi_reset_tx_ring(sc, &sc->txq[i]);
i                 107 dev/pci/if_ixgb.c ixgb_get_buf(struct ixgb_softc *, int i,
i                 657 dev/pci/if_ixgb.c 	int             i, j, error = 0;
i                 699 dev/pci/if_ixgb.c 	i = sc->next_avail_tx_desc;
i                 701 dev/pci/if_ixgb.c 		tx_buffer = &sc->tx_buffer_area[i];
i                 702 dev/pci/if_ixgb.c 		current_tx_desc = &sc->tx_desc_base[i];
i                 707 dev/pci/if_ixgb.c 		if (++i == sc->num_tx_desc)
i                 708 dev/pci/if_ixgb.c 			i = 0;
i                 714 dev/pci/if_ixgb.c 	sc->next_avail_tx_desc = i;
i                 732 dev/pci/if_ixgb.c 	IXGB_WRITE_REG(&sc->hw, TDT, i);
i                1180 dev/pci/if_ixgb.c 	int error, i;
i                1191 dev/pci/if_ixgb.c 	for (i = 0; i < sc->num_tx_desc; i++) {
i                1271 dev/pci/if_ixgb.c 	int             i;
i                1277 dev/pci/if_ixgb.c 		for (i = 0; i < sc->num_tx_desc; i++, tx_buffer++) {
i                1391 dev/pci/if_ixgb.c 	int             i, num_avail;
i                1400 dev/pci/if_ixgb.c 	i = sc->oldest_used_tx_desc;
i                1402 dev/pci/if_ixgb.c 	tx_buffer = &sc->tx_buffer_area[i];
i                1403 dev/pci/if_ixgb.c 	tx_desc = &sc->tx_desc_base[i];
i                1425 dev/pci/if_ixgb.c 		if (++i == sc->num_tx_desc)
i                1426 dev/pci/if_ixgb.c 			i = 0;
i                1428 dev/pci/if_ixgb.c 		tx_buffer = &sc->tx_buffer_area[i];
i                1429 dev/pci/if_ixgb.c 		tx_desc = &sc->tx_desc_base[i];
i                1435 dev/pci/if_ixgb.c 	sc->oldest_used_tx_desc = i;
i                1462 dev/pci/if_ixgb.c ixgb_get_buf(struct ixgb_softc *sc, int i,
i                1494 dev/pci/if_ixgb.c 	rx_buffer = &sc->rx_buffer_area[i];
i                1507 dev/pci/if_ixgb.c 	sc->rx_desc_base[i].buff_addr = htole64(rx_buffer->map->dm_segs[0].ds_addr);
i                1525 dev/pci/if_ixgb.c 	int             i, error;
i                1543 dev/pci/if_ixgb.c 	for (i = 0; i < sc->num_rx_desc; i++, rx_buffer++) {
i                1555 dev/pci/if_ixgb.c 	for (i = 0; i < sc->num_rx_desc; i++) {
i                1556 dev/pci/if_ixgb.c 		error = ixgb_get_buf(sc, i, NULL);
i                1694 dev/pci/if_ixgb.c 	int             i;
i                1700 dev/pci/if_ixgb.c 		for (i = 0; i < sc->num_rx_desc; i++, rx_buffer++) {
i                1746 dev/pci/if_ixgb.c 	int             i;
i                1754 dev/pci/if_ixgb.c 	i = sc->next_rx_desc_to_check;
i                1757 dev/pci/if_ixgb.c 	current_desc = &sc->rx_desc_base[i];
i                1768 dev/pci/if_ixgb.c 		mp = sc->rx_buffer_area[i].m_head;
i                1769 dev/pci/if_ixgb.c 		bus_dmamap_sync(sc->rxtag, sc->rx_buffer_area[i].map,
i                1770 dev/pci/if_ixgb.c 		    0, sc->rx_buffer_area[i].map->dm_mapsize,
i                1772 dev/pci/if_ixgb.c 		bus_dmamap_unload(sc->rxtag, sc->rx_buffer_area[i].map);
i                1805 dev/pci/if_ixgb.c 				eop_desc = i;
i                1825 dev/pci/if_ixgb.c 			sc->rx_buffer_area[i].m_head = NULL;
i                1841 dev/pci/if_ixgb.c 		if (++i == sc->num_rx_desc) {
i                1842 dev/pci/if_ixgb.c 			i = 0;
i                1847 dev/pci/if_ixgb.c 	sc->next_rx_desc_to_check = i;
i                1849 dev/pci/if_ixgb.c 	if (--i < 0)
i                1850 dev/pci/if_ixgb.c 		i = (sc->num_rx_desc - 1);
i                1864 dev/pci/if_ixgb.c 	if (eop_desc != i) {
i                1867 dev/pci/if_ixgb.c 		i = eop_desc;
i                1870 dev/pci/if_ixgb.c 	while (next_to_use != i) {
i                 194 dev/pci/if_lge.c 	int			i;
i                 200 dev/pci/if_lge.c 	for (i = 0; i < LGE_TIMEOUT; i++)
i                 204 dev/pci/if_lge.c 	if (i == LGE_TIMEOUT) {
i                 224 dev/pci/if_lge.c 	int			i;
i                 227 dev/pci/if_lge.c 	for (i = 0; i < cnt; i++) {
i                 228 dev/pci/if_lge.c 		lge_eeprom_getword(sc, off + i, &word);
i                 229 dev/pci/if_lge.c 		ptr = (u_int16_t *)(dest + (i * 2));
i                 241 dev/pci/if_lge.c 	int			i;
i                 253 dev/pci/if_lge.c 	for (i = 0; i < LGE_TIMEOUT; i++)
i                 257 dev/pci/if_lge.c 	if (i == LGE_TIMEOUT) {
i                 269 dev/pci/if_lge.c 	int			i;
i                 274 dev/pci/if_lge.c 	for (i = 0; i < LGE_TIMEOUT; i++)
i                 278 dev/pci/if_lge.c 	if (i == LGE_TIMEOUT) {
i                 364 dev/pci/if_lge.c 	int			i;
i                 368 dev/pci/if_lge.c 	for (i = 0; i < LGE_TIMEOUT; i++) {
i                 373 dev/pci/if_lge.c 	if (i == LGE_TIMEOUT)
i                 632 dev/pci/if_lge.c 	int			i;
i                 636 dev/pci/if_lge.c 	for (i = 0; i < LGE_TX_LIST_CNT; i++) {
i                 637 dev/pci/if_lge.c 		ld->lge_tx_list[i].lge_mbuf = NULL;
i                 638 dev/pci/if_lge.c 		ld->lge_tx_list[i].lge_ctl = 0;
i                 657 dev/pci/if_lge.c 	int			i;
i                 666 dev/pci/if_lge.c 	for (i = 0; i < LGE_RX_LIST_CNT; i++) {
i                 669 dev/pci/if_lge.c 		if (lge_newbuf(sc, &ld->lge_rx_list[i], NULL) == ENOBUFS)
i                 752 dev/pci/if_lge.c 	int			i, rseg, state, error;
i                 802 dev/pci/if_lge.c 	for (i = 0; i < LGE_JSLOTS; i++) {
i                 803 dev/pci/if_lge.c 		sc->lge_cdata.lge_jslots[i] = ptr;
i                 814 dev/pci/if_lge.c 		entry->slot = i;
i                 863 dev/pci/if_lge.c 	int		        i;
i                 873 dev/pci/if_lge.c 	i = ((vaddr_t)buf - (vaddr_t)sc->lge_cdata.lge_jumbo_buf) / LGE_JLEN;
i                 875 dev/pci/if_lge.c 	if ((i < 0) || (i >= LGE_JSLOTS))
i                 881 dev/pci/if_lge.c 	entry->slot = i;
i                 896 dev/pci/if_lge.c 	int			c, i, total_len = 0;
i                 903 dev/pci/if_lge.c 	i = sc->lge_cdata.lge_rx_cons;
i                 909 dev/pci/if_lge.c 		cur_rx = &sc->lge_ldata->lge_rx_list[i];
i                 915 dev/pci/if_lge.c 		LGE_INC(i, LGE_RX_LIST_CNT);
i                 971 dev/pci/if_lge.c 	sc->lge_cdata.lge_rx_cons = i;
i                1478 dev/pci/if_lge.c 	int			i;
i                1496 dev/pci/if_lge.c 	for (i = 0; i < LGE_RX_LIST_CNT; i++) {
i                1497 dev/pci/if_lge.c 		if (sc->lge_ldata->lge_rx_list[i].lge_mbuf != NULL) {
i                1498 dev/pci/if_lge.c 			m_freem(sc->lge_ldata->lge_rx_list[i].lge_mbuf);
i                1499 dev/pci/if_lge.c 			sc->lge_ldata->lge_rx_list[i].lge_mbuf = NULL;
i                1508 dev/pci/if_lge.c 	for (i = 0; i < LGE_TX_LIST_CNT; i++) {
i                1509 dev/pci/if_lge.c 		if (sc->lge_ldata->lge_tx_list[i].lge_mbuf != NULL) {
i                1510 dev/pci/if_lge.c 			m_freem(sc->lge_ldata->lge_tx_list[i].lge_mbuf);
i                1511 dev/pci/if_lge.c 			sc->lge_ldata->lge_tx_list[i].lge_mbuf = NULL;
i                 412 dev/pci/if_lmc_media.c 	int i;
i                 417 dev/pci/if_lmc_media.c 	for (i = 0 ; i < 21 ; i++) {
i                 418 dev/pci/if_lmc_media.c 		lmc_mii_writereg(sc, 0, 17, i);
i                 433 dev/pci/if_lmc_media.c 	for (i = 0 ; i < 21 ; i++) {
i                 434 dev/pci/if_lmc_media.c 		lmc_mii_writereg(sc, 0, 17, i);
i                 731 dev/pci/if_lmc_media.c 	int i;
i                 756 dev/pci/if_lmc_media.c 	for (i = 0 ; i < 7 ; i++)
i                 757 dev/pci/if_lmc_media.c 		write_av9110_bit(sc, n >> i);
i                 758 dev/pci/if_lmc_media.c 	for (i = 0 ; i < 7 ; i++)
i                 759 dev/pci/if_lmc_media.c 		write_av9110_bit(sc, m >> i);
i                 760 dev/pci/if_lmc_media.c 	for (i = 0 ; i < 1 ; i++)
i                 761 dev/pci/if_lmc_media.c 		write_av9110_bit(sc, v >> i);
i                 762 dev/pci/if_lmc_media.c 	for (i = 0 ; i < 2 ; i++)
i                 763 dev/pci/if_lmc_media.c 		write_av9110_bit(sc, x >> i);
i                 764 dev/pci/if_lmc_media.c 	for (i = 0 ; i < 2 ; i++)
i                 765 dev/pci/if_lmc_media.c 		write_av9110_bit(sc, r >> i);
i                 766 dev/pci/if_lmc_media.c 	for (i = 0 ; i < 5 ; i++)
i                 767 dev/pci/if_lmc_media.c 		write_av9110_bit(sc, 0x17 >> i);
i                 821 dev/pci/if_lmc_media.c         int     i;
i                 869 dev/pci/if_lmc_media.c         for (i=0; i<32; i++)
i                 871 dev/pci/if_lmc_media.c                 lmc_t1_write(sc, 0x0E0+i, 0x00); /*SBCn sysbus perchannel ctl */
i                 872 dev/pci/if_lmc_media.c                 lmc_t1_write(sc, 0x100+i, 0x00); /* TPCn - TX per-channel ctl */
i                 873 dev/pci/if_lmc_media.c                 lmc_t1_write(sc, 0x180+i, 0x00); /* RPCn - RX per-channel ctl */
i                 875 dev/pci/if_lmc_media.c         for (i=1; i<25; i++)
i                 876 dev/pci/if_lmc_media.c 	{                lmc_t1_write(sc, 0x0E0+i, 0x0D);
i                 261 dev/pci/if_msk.c 	int i;
i                 266 dev/pci/if_msk.c 	for (i = 0; i < SK_TIMEOUT; i++) {
i                 273 dev/pci/if_msk.c 	if (i == SK_TIMEOUT) {
i                 279 dev/pci/if_msk.c  	DPRINTFN(9, ("msk_miibus_readreg: i=%d, timeout=%d\n", i,
i                 294 dev/pci/if_msk.c 	int i;
i                 303 dev/pci/if_msk.c 	for (i = 0; i < SK_TIMEOUT; i++) {
i                 309 dev/pci/if_msk.c 	if (i == SK_TIMEOUT)
i                 431 dev/pci/if_msk.c 	int			i, nexti;
i                 436 dev/pci/if_msk.c 	for (i = 0; i < MSK_RX_RING_CNT; i++) {
i                 437 dev/pci/if_msk.c 		cd->sk_rx_chain[i].sk_le = &rd->sk_rx_ring[i];
i                 438 dev/pci/if_msk.c 		if (i == (MSK_RX_RING_CNT - 1))
i                 441 dev/pci/if_msk.c 			nexti = i + 1;
i                 442 dev/pci/if_msk.c 		cd->sk_rx_chain[i].sk_next = &cd->sk_rx_chain[nexti];
i                 445 dev/pci/if_msk.c 	for (i = 0; i < MSK_RX_RING_CNT; i++) {
i                 446 dev/pci/if_msk.c 		if (msk_newbuf(sc_if, i, NULL,
i                 449 dev/pci/if_msk.c 			    sc_if->sk_dev.dv_xname, i);
i                 468 dev/pci/if_msk.c 	int			i, nexti;
i                 474 dev/pci/if_msk.c 	for (i = 0; i < MSK_TX_RING_CNT; i++) {
i                 475 dev/pci/if_msk.c 		cd->sk_tx_chain[i].sk_le = &rd->sk_tx_ring[i];
i                 476 dev/pci/if_msk.c 		if (i == (MSK_TX_RING_CNT - 1))
i                 479 dev/pci/if_msk.c 			nexti = i + 1;
i                 480 dev/pci/if_msk.c 		cd->sk_tx_chain[i].sk_next = &cd->sk_tx_chain[nexti];
i                 506 dev/pci/if_msk.c msk_newbuf(struct sk_if_softc *sc_if, int i, struct mbuf *m,
i                 544 dev/pci/if_msk.c 	c = &sc_if->sk_cdata.sk_rx_chain[i];
i                 554 dev/pci/if_msk.c 	MSK_CDRXSYNC(sc_if, i, BUS_DMASYNC_PREWRITE|BUS_DMASYNC_PREREAD);
i                 569 dev/pci/if_msk.c 	int		i, rseg, state, error;
i                 617 dev/pci/if_msk.c 	for (i = 0; i < MSK_JSLOTS; i++) {
i                 618 dev/pci/if_msk.c 		sc_if->sk_cdata.sk_jslots[i] = ptr;
i                 628 dev/pci/if_msk.c 		entry->slot = i;
i                 680 dev/pci/if_msk.c 	int i;
i                 689 dev/pci/if_msk.c 	i = ((vaddr_t)buf
i                 692 dev/pci/if_msk.c 	if ((i < 0) || (i >= MSK_JSLOTS))
i                 698 dev/pci/if_msk.c 	entry->slot = i;
i                 992 dev/pci/if_msk.c 	int i, rseg;
i                1011 dev/pci/if_msk.c 	for (i = 0; i < ETHER_ADDR_LEN; i++)
i                1012 dev/pci/if_msk.c 		sc_if->arpcom.ac_enaddr[i] =
i                1013 dev/pci/if_msk.c 		    sk_win_read_1(sc, SK_MAC0_0 + (sa->skc_port * 8) + i);
i                1408 dev/pci/if_msk.c 	int			i;
i                1451 dev/pci/if_msk.c 	for (i = 0; i < txmap->dm_nsegs; i++) {
i                1453 dev/pci/if_msk.c 		f->sk_addr = htole32(txmap->dm_segs[i].ds_addr);
i                1454 dev/pci/if_msk.c 		f->sk_len = htole16(txmap->dm_segs[i].ds_len);
i                1456 dev/pci/if_msk.c 		if (i == 0)
i                1850 dev/pci/if_msk.c 	int			i;
i                1905 dev/pci/if_msk.c 	for (i = 0; i < 3; i++) {
i                1907 dev/pci/if_msk.c 		SK_YU_WRITE_2(sc_if, YUKON_SAL1 + i * 4, 
i                1908 dev/pci/if_msk.c 			      sc_if->arpcom.ac_enaddr[i * 2] |
i                1909 dev/pci/if_msk.c 			      sc_if->arpcom.ac_enaddr[i * 2 + 1] << 8);
i                1912 dev/pci/if_msk.c 	for (i = 0; i < 3; i++) {
i                1914 dev/pci/if_msk.c 				    SK_MAC1_0 + i * 2 + sc_if->sk_port * 8);
i                1915 dev/pci/if_msk.c 		SK_YU_WRITE_2(sc_if, YUKON_SAL2 + i * 4, reg);
i                2081 dev/pci/if_msk.c 	int			i;
i                2121 dev/pci/if_msk.c 	for (i = 0; i < MSK_RX_RING_CNT; i++) {
i                2122 dev/pci/if_msk.c 		if (sc_if->sk_cdata.sk_rx_chain[i].sk_mbuf != NULL) {
i                2123 dev/pci/if_msk.c 			m_freem(sc_if->sk_cdata.sk_rx_chain[i].sk_mbuf);
i                2124 dev/pci/if_msk.c 			sc_if->sk_cdata.sk_rx_chain[i].sk_mbuf = NULL;
i                2128 dev/pci/if_msk.c 	for (i = 0; i < MSK_TX_RING_CNT; i++) {
i                2129 dev/pci/if_msk.c 		if (sc_if->sk_cdata.sk_tx_chain[i].sk_mbuf != NULL) {
i                2130 dev/pci/if_msk.c 			m_freem(sc_if->sk_cdata.sk_tx_chain[i].sk_mbuf);
i                2131 dev/pci/if_msk.c 			sc_if->sk_cdata.sk_tx_chain[i].sk_mbuf = NULL;
i                2133 dev/pci/if_msk.c 			    sc_if->sk_cdata.sk_tx_map[i], link);
i                2134 dev/pci/if_msk.c 			sc_if->sk_cdata.sk_tx_map[i] = 0;
i                2180 dev/pci/if_msk.c 	int c, i, j;
i                2182 dev/pci/if_msk.c 	for (i = 0; i < len; i += 16) {
i                2183 dev/pci/if_msk.c 		printf("%08x  ", i);
i                2184 dev/pci/if_msk.c 		c = len - i;
i                2188 dev/pci/if_msk.c 			printf("%02x ", data[i + j] & 0xff);
i                2198 dev/pci/if_msk.c 			int ch = data[i + j] & 0xff;
i                 138 dev/pci/if_mskvar.h #define MSK_TX_RING_ADDR(sc, i) \
i                 140 dev/pci/if_mskvar.h      offsetof(struct msk_ring_data, sk_tx_ring[(i)]))
i                 142 dev/pci/if_mskvar.h #define MSK_RX_RING_ADDR(sc, i) \
i                 144 dev/pci/if_mskvar.h      offsetof(struct msk_ring_data, sk_rx_ring[(i)]))
i                 322 dev/pci/if_myx.c 	u_int		i, j;
i                 326 dev/pci/if_myx.c 	for (i = j = 0; mac[i] != '\0' && i < maxlen; i++) {
i                 327 dev/pci/if_myx.c 		if (mac[i] >= '0' && mac[i] <= '9')
i                 328 dev/pci/if_myx.c 			digit = mac[i] - '0';
i                 329 dev/pci/if_myx.c 		else if (mac[i] >= 'A' && mac[i] <= 'F')
i                 330 dev/pci/if_myx.c 			digit = mac[i] - 'A' + 10;
i                 331 dev/pci/if_myx.c 		else if (mac[i] >= 'a' && mac[i] <= 'f')
i                 332 dev/pci/if_myx.c 			digit = mac[i] - 'a' + 10;
i                 340 dev/pci/if_myx.c 	return (i);
i                 347 dev/pci/if_myx.c 	u_int		i, maxlen;
i                 351 dev/pci/if_myx.c 	for (i = 0; i < MYX_EEPROM_SIZE; i++) {
i                 352 dev/pci/if_myx.c 		maxlen = MYX_EEPROM_SIZE - i;
i                 353 dev/pci/if_myx.c 		if (eeprom[i] == '\0')
i                 355 dev/pci/if_myx.c 		if (maxlen > 4 && bcmp("MAC=", &eeprom[i], 4) == 0) {
i                 356 dev/pci/if_myx.c 			i += 4;
i                 357 dev/pci/if_myx.c 			i += myx_ether_aton(&eeprom[i],
i                 360 dev/pci/if_myx.c 		for (; i < MYX_EEPROM_SIZE; i++)
i                 361 dev/pci/if_myx.c 			if (eeprom[i] == '\0')
i                 373 dev/pci/if_myx.c 	u_int			 i, len, ret = 0;
i                 397 dev/pci/if_myx.c 	for (i = 0; i < fwlen; i += 256) {
i                 398 dev/pci/if_myx.c 		len = min(256, fwlen - i);
i                 399 dev/pci/if_myx.c 		myx_rawwrite(sc, i + MYX_FW, fw + i, min(256, fwlen - i));
i                 556 dev/pci/if_myx.c 	u_int			 i;
i                 607 dev/pci/if_myx.c 	for (i = 0; i < 20; i++) {
i                 620 dev/pci/if_myx.c 	    cmds[cmd], i, result, data, data);
i                 635 dev/pci/if_myx.c 	u_int			 i;
i                 651 dev/pci/if_myx.c 	for (i = 0; i < 200; i++) {
i                 660 dev/pci/if_myx.c 	    DEVNAME(sc), __func__, i, betoh32(*status));
i                 675 dev/pci/if_myx.c 	u_int			 i;
i                 694 dev/pci/if_myx.c 	for (i = 0; i < 20; i++) {
i                 704 dev/pci/if_myx.c 	    do_enable ? "enabled" : "disabled", i, betoh32(*status));
i                1027 dev/pci/if_myx.c 	int			 i;
i                1118 dev/pci/if_myx.c 	for (i = 0; i < sc->sc_rxndesc; i++) {
i                1122 dev/pci/if_myx.c 		mb = sc->sc_rxbuf[MYX_RXSMALL] + i;
i                1123 dev/pci/if_myx.c 		rxb = sc->sc_rxbufdesc[MYX_RXSMALL] + i;
i                1128 dev/pci/if_myx.c 			    DEVNAME(sc), i);
i                1147 dev/pci/if_myx.c 		data = sc->sc_rxsmallringoff + i * sizeof(*rxb);
i                1153 dev/pci/if_myx.c 		mb = sc->sc_rxbuf[MYX_RXBIG] + i;
i                1154 dev/pci/if_myx.c 		rxb = sc->sc_rxbufdesc[MYX_RXBIG] + i;
i                1159 dev/pci/if_myx.c 			    DEVNAME(sc), i);
i                1178 dev/pci/if_myx.c 		data = sc->sc_rxbigringoff + i * sizeof(*rxb);
i                 885 dev/pci/if_nfe.c 	int error, i, first = sc->txq.cur;
i                 914 dev/pci/if_nfe.c 	for (i = 0; i < map->dm_nsegs; i++) {
i                 921 dev/pci/if_nfe.c 			    htole32(map->dm_segs[i].ds_addr >> 32);
i                 924 dev/pci/if_nfe.c 			    htole32(map->dm_segs[i].ds_addr & 0xffffffff);
i                 925 dev/pci/if_nfe.c 			desc64->length = htole16(map->dm_segs[i].ds_len - 1);
i                 933 dev/pci/if_nfe.c 			desc32->physaddr = htole32(map->dm_segs[i].ds_addr);
i                 934 dev/pci/if_nfe.c 			desc32->length = htole16(map->dm_segs[i].ds_len - 1);
i                1187 dev/pci/if_nfe.c 	int i, nsegs, error, descsize;
i                1247 dev/pci/if_nfe.c 	for (i = 0; i < NFE_RX_RING_COUNT; i++) {
i                1248 dev/pci/if_nfe.c 		data = &sc->rxq.data[i];
i                1296 dev/pci/if_nfe.c 			desc64 = &sc->rxq.desc64[i];
i                1304 dev/pci/if_nfe.c 			desc32 = &sc->rxq.desc32[i];
i                1323 dev/pci/if_nfe.c 	int i;
i                1325 dev/pci/if_nfe.c 	for (i = 0; i < NFE_RX_RING_COUNT; i++) {
i                1327 dev/pci/if_nfe.c 			ring->desc64[i].length = htole16(ring->bufsz);
i                1328 dev/pci/if_nfe.c 			ring->desc64[i].flags = htole16(NFE_RX_READY);
i                1330 dev/pci/if_nfe.c 			ring->desc32[i].length = htole16(ring->bufsz);
i                1331 dev/pci/if_nfe.c 			ring->desc32[i].flags = htole16(NFE_RX_READY);
i                1346 dev/pci/if_nfe.c 	int i, descsize;
i                1365 dev/pci/if_nfe.c 	for (i = 0; i < NFE_RX_RING_COUNT; i++) {
i                1366 dev/pci/if_nfe.c 		data = &ring->data[i];
i                1401 dev/pci/if_nfe.c 	int i;
i                1404 dev/pci/if_nfe.c 	i = (buf - sc->rxq.jpool) / NFE_JBYTES;
i                1405 dev/pci/if_nfe.c 	if (i < 0 || i >= NFE_JPOOL_COUNT) {
i                1410 dev/pci/if_nfe.c 	jbuf = &sc->rxq.jbuf[i];
i                1423 dev/pci/if_nfe.c 	int i, nsegs, error;
i                1465 dev/pci/if_nfe.c 	for (i = 0; i < NFE_JPOOL_COUNT; i++) {
i                1466 dev/pci/if_nfe.c 		jbuf = &ring->jbuf[i];
i                1503 dev/pci/if_nfe.c 	int i, nsegs, error;
i                1554 dev/pci/if_nfe.c 	for (i = 0; i < NFE_TX_RING_COUNT; i++) {
i                1557 dev/pci/if_nfe.c 		    &ring->data[i].map);
i                1575 dev/pci/if_nfe.c 	int i;
i                1577 dev/pci/if_nfe.c 	for (i = 0; i < NFE_TX_RING_COUNT; i++) {
i                1579 dev/pci/if_nfe.c 			ring->desc64[i].flags = 0;
i                1581 dev/pci/if_nfe.c 			ring->desc32[i].flags = 0;
i                1583 dev/pci/if_nfe.c 		data = &ring->data[i];
i                1606 dev/pci/if_nfe.c 	int i, descsize;
i                1625 dev/pci/if_nfe.c 	for (i = 0; i < NFE_TX_RING_COUNT; i++) {
i                1626 dev/pci/if_nfe.c 		data = &ring->data[i];
i                1637 dev/pci/if_nfe.c 	for (i = 0; i < NFE_TX_RING_COUNT; i++) {
i                1638 dev/pci/if_nfe.c 		data = &ring->data[i];
i                1679 dev/pci/if_nfe.c 	int i;
i                1698 dev/pci/if_nfe.c 		for (i = 0; i < ETHER_ADDR_LEN; i++) {
i                1699 dev/pci/if_nfe.c 			addr[i] &=  enm->enm_addrlo[i];
i                1700 dev/pci/if_nfe.c 			mask[i] &= ~enm->enm_addrlo[i];
i                1704 dev/pci/if_nfe.c 	for (i = 0; i < ETHER_ADDR_LEN; i++)
i                1705 dev/pci/if_nfe.c 		mask[i] |= addr[i];
i                 228 dev/pci/if_nge.c 	int		i;
i                 235 dev/pci/if_nge.c 	for (i = 0; i < 25; i++) {
i                 257 dev/pci/if_nge.c 	int			d, i;
i                 264 dev/pci/if_nge.c 	for (i = 0x400; i; i >>= 1) {
i                 265 dev/pci/if_nge.c 		if (d & i) {
i                 287 dev/pci/if_nge.c 	int			i;
i                 308 dev/pci/if_nge.c 	for (i = 0x8000; i; i >>= 1) {
i                 312 dev/pci/if_nge.c 			word |= i;
i                 335 dev/pci/if_nge.c 	int			i;
i                 338 dev/pci/if_nge.c 	for (i = 0; i < cnt; i++) {
i                 339 dev/pci/if_nge.c 		nge_eeprom_getword(sc, off + i, &word);
i                 340 dev/pci/if_nge.c 		ptr = (u_int16_t *)(dest + (i * 2));
i                 355 dev/pci/if_nge.c 	int			i;
i                 359 dev/pci/if_nge.c 	for (i = 0; i < 32; i++) {
i                 376 dev/pci/if_nge.c 	int			i;
i                 380 dev/pci/if_nge.c 	for (i = (0x1 << (cnt - 1)); i; i >>= 1) {
i                 381 dev/pci/if_nge.c                 if (bits & i) {
i                 401 dev/pci/if_nge.c 	int			i, ack, s;
i                 450 dev/pci/if_nge.c 		for(i = 0; i < 16; i++) {
i                 459 dev/pci/if_nge.c 	for (i = 0x8000; i; i >>= 1) {
i                 464 dev/pci/if_nge.c 				frame->mii_data |= i;
i                 614 dev/pci/if_nge.c 	u_int32_t		h = 0, i, filtsave;
i                 638 dev/pci/if_nge.c 	for (i = 0; i < NGE_MCAST_FILTER_LEN; i += 2) {
i                 639 dev/pci/if_nge.c 		CSR_WRITE_4(sc, NGE_RXFILT_CTL, NGE_FILTADDR_MCAST_LO + i);
i                 672 dev/pci/if_nge.c 	int			i;
i                 676 dev/pci/if_nge.c 	for (i = 0; i < NGE_TIMEOUT; i++) {
i                 681 dev/pci/if_nge.c 	if (i == NGE_TIMEOUT)
i                 988 dev/pci/if_nge.c 	int			i;
i                 993 dev/pci/if_nge.c 	for (i = 0; i < NGE_TX_LIST_CNT; i++) {
i                 994 dev/pci/if_nge.c 		if (i == (NGE_TX_LIST_CNT - 1)) {
i                 995 dev/pci/if_nge.c 			ld->nge_tx_list[i].nge_nextdesc =
i                 997 dev/pci/if_nge.c 			ld->nge_tx_list[i].nge_next =
i                1000 dev/pci/if_nge.c 			ld->nge_tx_list[i].nge_nextdesc =
i                1001 dev/pci/if_nge.c 			    &ld->nge_tx_list[i + 1];
i                1002 dev/pci/if_nge.c 			ld->nge_tx_list[i].nge_next =
i                1003 dev/pci/if_nge.c 			    VTOPHYS(&ld->nge_tx_list[i + 1]);
i                1005 dev/pci/if_nge.c 		ld->nge_tx_list[i].nge_mbuf = NULL;
i                1006 dev/pci/if_nge.c 		ld->nge_tx_list[i].nge_ptr = 0;
i                1007 dev/pci/if_nge.c 		ld->nge_tx_list[i].nge_ctl = 0;
i                1027 dev/pci/if_nge.c 	int			i;
i                1032 dev/pci/if_nge.c 	for (i = 0; i < NGE_RX_LIST_CNT; i++) {
i                1033 dev/pci/if_nge.c 		if (nge_newbuf(sc, &ld->nge_rx_list[i], NULL) == ENOBUFS)
i                1035 dev/pci/if_nge.c 		if (i == (NGE_RX_LIST_CNT - 1)) {
i                1036 dev/pci/if_nge.c 			ld->nge_rx_list[i].nge_nextdesc =
i                1038 dev/pci/if_nge.c 			ld->nge_rx_list[i].nge_next =
i                1041 dev/pci/if_nge.c 			ld->nge_rx_list[i].nge_nextdesc =
i                1042 dev/pci/if_nge.c 			    &ld->nge_rx_list[i + 1];
i                1043 dev/pci/if_nge.c 			ld->nge_rx_list[i].nge_next =
i                1044 dev/pci/if_nge.c 			    VTOPHYS(&ld->nge_rx_list[i + 1]);
i                1111 dev/pci/if_nge.c 	int			i, rseg, state, error;
i                1165 dev/pci/if_nge.c 	for (i = 0; i < NGE_JSLOTS; i++) {
i                1166 dev/pci/if_nge.c 		sc->nge_cdata.nge_jslots[i].nge_buf = ptr;
i                1167 dev/pci/if_nge.c 		sc->nge_cdata.nge_jslots[i].nge_inuse = 0;
i                1178 dev/pci/if_nge.c 		entry->slot = i;
i                1232 dev/pci/if_nge.c 	int		        i;
i                1243 dev/pci/if_nge.c 	i = ((vaddr_t)buf - (vaddr_t)sc->nge_cdata.nge_jumbo_buf)
i                1246 dev/pci/if_nge.c 	if ((i < 0) || (i >= NGE_JSLOTS))
i                1248 dev/pci/if_nge.c 	else if (sc->nge_cdata.nge_jslots[i].nge_inuse == 0)
i                1251 dev/pci/if_nge.c 		sc->nge_cdata.nge_jslots[i].nge_inuse--;
i                1252 dev/pci/if_nge.c 		if(sc->nge_cdata.nge_jslots[i].nge_inuse == 0) {
i                1256 dev/pci/if_nge.c 			entry->slot = i;
i                1275 dev/pci/if_nge.c 	int			i, total_len = 0;
i                1279 dev/pci/if_nge.c 	i = sc->nge_cdata.nge_rx_prod;
i                1281 dev/pci/if_nge.c 	while(NGE_OWNDESC(&sc->nge_ldata->nge_rx_list[i])) {
i                1285 dev/pci/if_nge.c 		cur_rx = &sc->nge_ldata->nge_rx_list[i];