Home
last modified time | relevance | path

Searched refs:ii (Results 1 – 25 of 195) sorted by relevance

12345678

/freebsd/lib/libifconfig/
H A Dlibifconfig_sfp.c79 read_i2c(struct i2c_info *ii, uint8_t addr, uint8_t off, uint8_t len, in read_i2c() argument
85 if (ii->error != 0) in read_i2c()
86 return (ii->error); in read_i2c()
88 ii->ifr.ifr_data = (caddr_t)&req; in read_i2c()
100 if (ifconfig_ioctlwrap(ii->h, AF_LOCAL, SIOCGI2C, in read_i2c()
101 &ii->ifr) != 0) { in read_i2c()
102 ii->error = errno; in read_i2c()
116 i2c_info_init(struct i2c_info *ii, ifconfig_handle_t *h, const char *name) in i2c_info_init() argument
120 memset(ii, 0, sizeof(*ii)); in i2c_info_init()
121 strlcpy(ii->ifr.ifr_name, name, sizeof(ii->ifr.ifr_name)); in i2c_info_init()
[all …]
/freebsd/sys/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_sysevent.c125 uint_t ii, nelem; in log_sysevent() local
129 for (ii = 0; ii < nelem; ii++) in log_sysevent()
130 sbuf_printf(sb, "%02hhx", value[ii]); in log_sysevent()
136 uint_t ii, nelem; in log_sysevent() local
140 for (ii = 0; ii < nelem; ii++) in log_sysevent()
141 sbuf_printf(sb, "%04hx", value[ii]); in log_sysevent()
147 uint_t ii, nelem; in log_sysevent() local
151 for (ii = 0; ii < nelem; ii++) in log_sysevent()
152 sbuf_printf(sb, "%08jx", (uintmax_t)value[ii]); in log_sysevent()
158 uint_t ii, nelem; in log_sysevent() local
[all …]
/freebsd/usr.sbin/rarpd/
H A Drarpd.c216 struct if_info *ii, *ii2; in init_one() local
241 for (ii = iflist; ii != NULL; ii = ii->ii_next) in init_one()
242 if (strcmp(ifa->ifa_name, ii->ii_ifname) == 0) in init_one()
245 if (pass1 && ii != NULL) in init_one()
250 if (ii == NULL) { in init_one()
251 ii = (struct if_info *)malloc(sizeof(*ii)); in init_one()
252 if (ii == NULL) { in init_one()
257 bzero(ii, sizeof(*ii)); in init_one()
258 ii->ii_fd = -1; in init_one()
259 strlcpy(ii->ii_ifname, ifa->ifa_name, sizeof(ii->ii_ifname)); in init_one()
[all …]
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Diidesc.c49 iidesc_t *ii; in iidesc_new() local
51 ii = xcalloc(sizeof (iidesc_t)); in iidesc_new()
53 ii->ii_name = xstrdup(name); in iidesc_new()
55 return (ii); in iidesc_new()
61 iidesc_t *ii = arg; in iidesc_hash() local
64 if (ii->ii_name) in iidesc_hash()
65 return (hash_name(nbuckets, ii->ii_name)); in iidesc_hash()
170 iidesc_dump(iidesc_t *ii) in iidesc_dump() argument
172 printf("type: %d name %s\n", ii->ii_type, in iidesc_dump()
173 (ii->ii_name ? ii->ii_name : "(anon)")); in iidesc_dump()
[all …]
/freebsd/sys/netpfil/ipfw/
H A Dip_fw_iface.c96 struct namedobj_instance *ii; in ipfw_kifhandler() local
106 ii = CHAIN_TO_II(ch); in ipfw_kifhandler()
107 if (ii == NULL) { in ipfw_kifhandler()
111 iif = (struct ipfw_iface*)ipfw_objhash_lookup_name(ii, 0, in ipfw_kifhandler()
232 struct namedobj_instance *ii; in vnet_ipfw_iface_init() local
234 ii = ipfw_objhash_create(DEFAULT_IFACES); in vnet_ipfw_iface_init()
237 ch->ifcfg = ii; in vnet_ipfw_iface_init()
238 ii = NULL; in vnet_ipfw_iface_init()
242 if (ii != NULL) { in vnet_ipfw_iface_init()
244 ipfw_objhash_destroy(ii); in vnet_ipfw_iface_init()
[all …]
/freebsd/contrib/capsicum-test/
H A Dfcntl.cc45 for (FileMap::iterator ii = files.begin(); ii != files.end(); ++ii) { in FORK_TEST() local
46 std::string key = ii->first + " cap"; in FORK_TEST()
47 caps[key] = dup(ii->second); in FORK_TEST()
49 EXPECT_OK(caps[key]) << " on " << ii->first; in FORK_TEST()
60 for (FileMap::iterator ii = all.begin(); ii != all.end(); ++ii) { in FORK_TEST() local
61 EXPECT_OK(fcntl(ii->second, F_GETFL, 0)) << " on " << ii->first; in FORK_TEST()
62 int cap = dup(ii->second); in FORK_TEST()
63 EXPECT_OK(cap) << " on " << ii->first; in FORK_TEST()
64 EXPECT_OK(cap_rights_limit(cap, &r_ro)) << " on " << ii->first; in FORK_TEST()
65 EXPECT_EQ(-1, fcntl(cap, F_GETFL, 0)) << " on " << ii->first; in FORK_TEST()
[all …]
H A Dcapsicum-test-main.cc113 for (int ii = 1; ii < argc; ii++) { in main() local
114 if (strcmp(argv[ii], "-v") == 0) { in main()
116 } else if (strcmp(argv[ii], "-T") == 0) { in main()
117 ii++; in main()
118 assert(ii < argc); in main()
119 tmpdir = argv[ii]; in main()
123 } else if (strcmp(argv[ii], "-t") == 0) { in main()
125 } else if (strcmp(argv[ii], "-F") == 0) { in main()
127 } else if (strcmp(argv[ii], "-u") == 0) { in main()
128 if (++ii >= argc) { in main()
[all …]
H A Dselect.cc22 for (int ii = 0; ii < fdcount; ii++) { in InitFDSet() local
23 maxfd = AddFDToSet(fset, fds[ii], maxfd); in InitFDSet()
40 for (int ii = 0; ii < kCapCount; ii++) { variable
41 cap_fd[ii] = dup(fd);
42 EXPECT_OK(cap_fd[ii]);
43 EXPECT_OK(cap_rights_limit(cap_fd[ii], &r_poll));
109 for (int ii = 0; ii < kCapCount; ii++) { variable
110 cap_fd[ii].fd = dup(fd);
111 EXPECT_OK(cap_fd[ii].fd);
112 EXPECT_OK(cap_rights_limit(cap_fd[ii].fd, &r_poll));
[all …]
H A Dcapsicum.h144 int ii; in cap_rights_describe() local
145 for (ii = 0; ii < (CAP_RIGHTS_VERSION+2); ii++) { in cap_rights_describe()
146 int len = sprintf(buffer, "0x%016llx ", (unsigned long long)rights->cr_rights[ii]); in cap_rights_describe()
155 for (int ii = 0; ii < (CAP_RIGHTS_VERSION+2); ii++) { variable
156 …os << std::hex << std::setw(16) << std::setfill('0') << (unsigned long long)rights.cr_rights[ii] <…
/freebsd/sys/contrib/openzfs/contrib/debian/tree/zfs-initramfs/usr/share/initramfs-tools/hooks/
H A Dzdev20 for ii in $COPY_EXEC_LIST
22 if [ ! -x "$ii" ]
24 echo "Error: $ii is not executable."
37 for ii in $PREREQ_UDEV_RULES
39 if [ -e "/etc/udev/rules.d/$ii" ]
41 cp -p "/etc/udev/rules.d/$ii" "$DESTDIR/lib/udev/rules.d/"
42 elif [ -e "/lib/udev/rules.d/$ii" ]
44 cp -p "/lib/udev/rules.d/$ii" "$DESTDIR/lib/udev/rules.d/"
46 echo "Error: Missing udev rule: $ii"
52 for ii in $COPY_EXEC_LIST
[all …]
/freebsd/contrib/bzip2/
H A DspewG.c40 int ii, kk, p; in main() local
45 for (ii = 0; ii < p; ii++) in main()
47 for (ii = 0; ii < p-1; ii++) in main()
49 for (ii = 0; ii < p+1; ii++) in main()
/freebsd/sys/dev/ath/ath_hal/ar5212/
H A Dar2317.c278 uint16_t ii, jj, kk; in ar2317FillVpdTable() local
283 ii = 0; in ar2317FillVpdTable()
289 while (ii <= (uint16_t)(Pmax - Pmin)) { in ar2317FillVpdTable()
303 retVpdList[pdGainIdx][ii] = kk; in ar2317FillVpdTable()
304 ii++; in ar2317FillVpdTable()
345 uint32_t ii, jj, kk; in ar2317getGainBoundariesAndPdadcsForPowers() local
366 for (ii = 0; ii < MAX_NUM_PDGAINS_PER_CHANNEL; ii++) { in ar2317getGainBoundariesAndPdadcsForPowers()
367 jj = MAX_NUM_PDGAINS_PER_CHANNEL - ii - 1; in ar2317getGainBoundariesAndPdadcsForPowers()
407 for (ii = 0; ii < numPdGainsUsed; ii++) { in ar2317getGainBoundariesAndPdadcsForPowers()
408 if (ii == (numPdGainsUsed - 1)) in ar2317getGainBoundariesAndPdadcsForPowers()
[all …]
H A Dar2316.c301 uint16_t ii, jj, kk; in ar2316FillVpdTable() local
306 ii = 0; in ar2316FillVpdTable()
312 while (ii <= (uint16_t)(Pmax - Pmin)) { in ar2316FillVpdTable()
326 retVpdList[pdGainIdx][ii] = kk; in ar2316FillVpdTable()
327 ii++; in ar2316FillVpdTable()
367 uint32_t ii, jj, kk; in ar2316getGainBoundariesAndPdadcsForPowers() local
388 for (ii = 0; ii < MAX_NUM_PDGAINS_PER_CHANNEL; ii++) { in ar2316getGainBoundariesAndPdadcsForPowers()
389 jj = MAX_NUM_PDGAINS_PER_CHANNEL - ii - 1; in ar2316getGainBoundariesAndPdadcsForPowers()
429 for (ii = 0; ii < numPdGainsUsed; ii++) { in ar2316getGainBoundariesAndPdadcsForPowers()
430 if (ii == (numPdGainsUsed - 1)) in ar2316getGainBoundariesAndPdadcsForPowers()
[all …]
H A Dar2413.c295 uint16_t ii, jj, kk; in ar2413FillVpdTable() local
300 ii = 0; in ar2413FillVpdTable()
306 while (ii <= (uint16_t)(Pmax - Pmin)) { in ar2413FillVpdTable()
320 retVpdList[pdGainIdx][ii] = kk; in ar2413FillVpdTable()
321 ii++; in ar2413FillVpdTable()
361 uint32_t ii, jj, kk; in ar2413getGainBoundariesAndPdadcsForPowers() local
382 for (ii = 0; ii < MAX_NUM_PDGAINS_PER_CHANNEL; ii++) { in ar2413getGainBoundariesAndPdadcsForPowers()
383 jj = MAX_NUM_PDGAINS_PER_CHANNEL - ii - 1; in ar2413getGainBoundariesAndPdadcsForPowers()
423 for (ii = 0; ii < numPdGainsUsed; ii++) { in ar2413getGainBoundariesAndPdadcsForPowers()
424 if (ii == (numPdGainsUsed - 1)) in ar2413getGainBoundariesAndPdadcsForPowers()
[all …]
H A Dar5413.c338 uint16_t ii, jj, kk; in ar5413FillVpdTable() local
343 ii = 0; in ar5413FillVpdTable()
349 while (ii <= (uint16_t)(Pmax - Pmin)) { in ar5413FillVpdTable()
363 retVpdList[pdGainIdx][ii] = kk; in ar5413FillVpdTable()
364 ii++; in ar5413FillVpdTable()
404 uint32_t ii, jj, kk; in ar5413getGainBoundariesAndPdadcsForPowers() local
425 for (ii = 0; ii < MAX_NUM_PDGAINS_PER_CHANNEL; ii++) { in ar5413getGainBoundariesAndPdadcsForPowers()
426 jj = MAX_NUM_PDGAINS_PER_CHANNEL - ii - 1; in ar5413getGainBoundariesAndPdadcsForPowers()
466 for (ii = 0; ii < numPdGainsUsed; ii++) { in ar5413getGainBoundariesAndPdadcsForPowers()
467 if (ii == (numPdGainsUsed - 1)) in ar5413getGainBoundariesAndPdadcsForPowers()
[all …]
H A Dar2425.c297 uint16_t ii, jj, kk; in ar2425FillVpdTable() local
302 ii = 0; in ar2425FillVpdTable()
308 while (ii <= (uint16_t)(Pmax - Pmin)) { in ar2425FillVpdTable()
322 retVpdList[pdGainIdx][ii] = kk; in ar2425FillVpdTable()
323 ii++; in ar2425FillVpdTable()
360 uint32_t ii, jj, kk; in ar2425getGainBoundariesAndPdadcsForPowers() local
389 for (ii = 0; ii < MAX_NUM_PDGAINS_PER_CHANNEL; ii++) { in ar2425getGainBoundariesAndPdadcsForPowers()
390 jj = MAX_NUM_PDGAINS_PER_CHANNEL - ii - 1; in ar2425getGainBoundariesAndPdadcsForPowers()
430 for (ii = 0; ii < numPdGainsUsed; ii++) { in ar2425getGainBoundariesAndPdadcsForPowers()
431 if (ii == (numPdGainsUsed - 1)) in ar2425getGainBoundariesAndPdadcsForPowers()
[all …]
H A Dar5112.c359 uint32_t ii, jj, kk; in ar5112SetPowerTable() local
429 for (ii = chan_idx_L; ii <= chan_idx_R; ii++) { in ar5112SetPowerTable()
430 pRawCh = &(pPowerExpn->pDataPerChannel[ii]); in ar5112SetPowerTable()
609 uint16_t ii; in getFullPwrTable() local
619 for (ii = 0; ii < 64; ii++) { in getFullPwrTable()
620 if (ii>pcdacs[idxR] && idxR < numPcdacs-1) { in getFullPwrTable()
624 retVals[ii] = interpolate_signed(ii, in getFullPwrTable()
626 if (retVals[ii] >= maxPower) { in getFullPwrTable()
627 while (ii < 64) in getFullPwrTable()
628 retVals[ii++] = maxPower; in getFullPwrTable()
[all …]
/freebsd/sys/contrib/libnv/
H A Dbsd_nvpair.c554 unsigned int ii; in nvpair_pack_string_array() local
566 for (ii = 0; ii < nvp->nvp_nitems; ii++) { in nvpair_pack_string_array()
567 len = strlen(array[ii]) + 1; in nvpair_pack_string_array()
570 memcpy(ptr, (const void *)array[ii], len); in nvpair_pack_string_array()
588 unsigned int ii; in nvpair_pack_descriptor_array() local
597 for (ii = 0; ii < nvp->nvp_nitems; ii++) { in nvpair_pack_descriptor_array()
600 value = array[ii]; in nvpair_pack_descriptor_array()
976 unsigned int ii, j; in nvpair_unpack_string_array() local
988 for (ii = 0; ii < nvp->nvp_nitems; ii++) { in nvpair_unpack_string_array()
1010 for (ii = 0; ii < nvp->nvp_nitems; ii++) { in nvpair_unpack_string_array()
[all …]
/freebsd/sys/geom/
H A Dgeom_ccd.c219 struct ccdiinfo *ii; in g_ccd_freesc() local
223 for (ii = sc->sc_itable; ii->ii_ndisk > 0; ii++) in g_ccd_freesc()
224 g_free(ii->ii_index); in g_ccd_freesc()
349 struct ccdiinfo *ii; in ccdinterleave() local
372 ii = cs->sc_itable; in ccdinterleave()
376 ii->ii_index = g_malloc(sizeof(int), M_WAITOK); in ccdinterleave()
377 ii->ii_ndisk = 1; in ccdinterleave()
378 ii->ii_startblk = bn; in ccdinterleave()
379 ii->ii_startoff = 0; in ccdinterleave()
380 ii->ii_index[0] = ix; in ccdinterleave()
[all …]
/freebsd/crypto/openssl/crypto/rc5/
H A Drc5_skey.c23 int i, j, m, c, t, ii, jj; in RC5_32_set_key() local
41 ii = len - i; in RC5_32_set_key()
42 if (ii) { in RC5_32_set_key()
57 ii = jj = 0; in RC5_32_set_key()
60 k = (S[ii] + A + B) & RC5_32_MASK; in RC5_32_set_key()
61 A = S[ii] = ROTATE_l32(k, 3); in RC5_32_set_key()
65 if (++ii >= t) in RC5_32_set_key()
66 ii = 0; in RC5_32_set_key()
/freebsd/lib/libcasper/services/cap_net/
H A Dcap_net.c74 unsigned int ii; in hostent_free() local
79 for (ii = 0; hp->h_aliases[ii] != NULL; ii++) in hostent_free()
80 free(hp->h_aliases[ii]); in hostent_free()
85 for (ii = 0; hp->h_addr_list[ii] != NULL; ii++) in hostent_free()
86 free(hp->h_addr_list[ii]); in hostent_free()
95 unsigned int ii, nitems; in hostent_unpack() local
111 for (ii = 0; ii < nitems; ii++) { in hostent_unpack()
112 n = snprintf(nvlname, sizeof(nvlname), "alias%u", ii); in hostent_unpack()
114 hp->h_aliases[ii] = in hostent_unpack()
116 if (hp->h_aliases[ii] == NULL) in hostent_unpack()
[all …]
/freebsd/sbin/hastd/
H A Dhast_proto.c93 unsigned int ii; in hast_proto_send() local
95 for (ii = 0; ii < sizeof(pipeline) / sizeof(pipeline[0]); in hast_proto_send()
96 ii++) { in hast_proto_send()
97 (void)pipeline[ii].hps_send(res, nv, &dptr, &size, in hast_proto_send()
175 unsigned int ii; in hast_proto_recv_data() local
197 for (ii = sizeof(pipeline) / sizeof(pipeline[0]); ii > 0; in hast_proto_recv_data()
198 ii--) { in hast_proto_recv_data()
199 ret = pipeline[ii - 1].hps_recv(res, nv, &dptr, in hast_proto_recv_data()
H A Dhooks.c171 unsigned int ii; in hook_alloc() local
184 for (ii = 1; args[ii] != NULL; ii++) { in hook_alloc()
186 args[ii]); in hook_alloc()
343 unsigned int ii; in hook_execv() local
354 for (ii = 1; ii < sizeof(args) / sizeof(args[0]); ii++) { in hook_execv()
355 args[ii] = va_arg(ap, char *); in hook_execv()
356 if (args[ii] == NULL) in hook_execv()
359 PJDLOG_ASSERT(ii < sizeof(args) / sizeof(args[0])); in hook_execv()
/freebsd/sbin/ipf/ipftest/
H A Dmd5.c127 unsigned int i, ii; in MD5Update() local
144 for (i = 0, ii = 0; i < 16; i++, ii += 4) in MD5Update()
145 in[i] = (((UINT4)mdContext->in[ii+3]) << 24) | in MD5Update()
146 (((UINT4)mdContext->in[ii+2]) << 16) | in MD5Update()
147 (((UINT4)mdContext->in[ii+1]) << 8) | in MD5Update()
148 ((UINT4)mdContext->in[ii]); in MD5Update()
162 unsigned int i, ii; in MD5Final() local
177 for (i = 0, ii = 0; i < 14; i++, ii += 4) in MD5Final()
178 in[i] = (((UINT4)mdContext->in[ii+3]) << 24) | in MD5Final()
179 (((UINT4)mdContext->in[ii+2]) << 16) | in MD5Final()
[all …]
/freebsd/crypto/openssl/demos/digest/
H A DEVP_MD_stdin.c44 int ii; in demonstrate_digest() local
96 while ((ii = BIO_read(input, buffer, sizeof(buffer))) > 0) { in demonstrate_digest()
97 if (EVP_DigestUpdate(digest_context, buffer, ii) != 1) { in demonstrate_digest()
107 for (ii=0; ii<digest_length; ii++) { in demonstrate_digest()
108 fprintf(stdout, "%02x", digest_value[ii]); in demonstrate_digest()

12345678