Searched refs:nmsgs (Results 1 - 25 of 28) sorted by relevance

12

/freebsd-current/contrib/sendmail/libsm/
H A Dt-notify.c35 ** nmsgs -- number of messages to write
43 notify_wr(pid, nmsgs)
45 int nmsgs;
59 for (i = 0; i < nmsgs; i++)
90 ** nmsgs -- number of messages to read for each process
98 notify_rd(nproc, nmsgs)
100 int nmsgs;
114 for (i = 0; i < nmsgs * nproc; i++)
153 SM_TEST(n < nmsgs);
154 if (1 == r && n < nmsgs
172 int nmsgs = 1; local
[all...]
/freebsd-current/sys/compat/linuxkpi/common/include/linux/
H A Di2c.h113 int lkpi_i2cbb_transfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int nmsgs);
122 do_i2c_transfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int nmsgs) argument
129 ret = adapter->algo->master_xfer(adapter, msgs, nmsgs);
131 ret = lkpi_i2cbb_transfer(adapter, msgs, nmsgs);
140 i2c_transfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int nmsgs) argument
150 ret = do_i2c_transfer(adapter, msgs, nmsgs);
160 __i2c_transfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int nmsgs) argument
162 return (do_i2c_transfer(adapter, msgs, nmsgs));
/freebsd-current/sys/dev/iicbus/
H A Diic.h56 uint32_t nmsgs; member in struct:iic_rdwr_data
H A Diiconf.h153 int iicbus_transfer(device_t bus, struct iic_msg *msgs, uint32_t nmsgs);
154 int iicbus_transfer_excl(device_t bus, struct iic_msg *msgs, uint32_t nmsgs,
156 int iicbus_transfer_gen(device_t bus, struct iic_msg *msgs, uint32_t nmsgs);
H A Diic.c79 uint32_t nmsgs; member in struct:iic_rdwr_data32
329 for (i = 0; i < d->nmsgs; i++) {
363 CP(*d32, dswab, nmsgs);
368 if (d->nmsgs > IIC_RDRW_MAX_MSGS)
371 buf = malloc(sizeof(*d->msgs) * d->nmsgs, M_IIC, M_WAITOK);
378 error = copyin(d->msgs, buf, sizeof(*d->msgs) * d->nmsgs);
385 usrbufs = malloc(sizeof(void *) * d->nmsgs, M_IIC, M_WAITOK | M_ZERO);
387 for (i = 0; i < d->nmsgs; i++) {
410 error = iicbus_transfer(iicdev, buf, d->nmsgs);
415 for (i = 0; i < d->nmsgs;
[all...]
H A Diiconf.c439 iicbus_transfer(device_t bus, struct iic_msg *msgs, uint32_t nmsgs) argument
442 return (IICBUS_TRANSFER(device_get_parent(bus), msgs, nmsgs));
446 iicbus_transfer_excl(device_t dev, struct iic_msg *msgs, uint32_t nmsgs, argument
455 error = IICBUS_TRANSFER(bus, msgs, nmsgs);
466 iicbus_transfer_gen(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
482 for (i = 0, error = 0; i < nmsgs && error == 0; i++) {
H A Diicbb.c94 static int iicbb_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs);
567 iicbb_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
575 error = iicbus_transfer_gen(dev, msgs, nmsgs);
/freebsd-current/sys/compat/linuxkpi/common/src/
H A Dlinux_i2c.c45 static int lkpi_i2c_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs);
168 struct iic_msg *msgs, uint32_t nmsgs)
186 if (nmsgs == 2) {
234 if (max_nmsgs && nmsgs > max_nmsgs) {
237 nmsgs, max_nmsgs);
241 for (i = 0; i < nmsgs; i++) {
278 lkpi_i2c_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
287 ret = i2c_check_for_quirks(sc->adapter, msgs, nmsgs);
292 linux_msgs = malloc(sizeof(struct i2c_msg) * nmsgs,
295 for (i = 0; i < nmsgs;
167 i2c_check_for_quirks(struct i2c_adapter *adapter, struct iic_msg *msgs, uint32_t nmsgs) argument
[all...]
H A Dlinux_i2cbb.c259 int nmsgs)
266 bsd_msgs = malloc(sizeof(struct iic_msg) * nmsgs,
269 for (int i = 0; i < nmsgs; i++) {
289 ret = IICBUS_TRANSFER(sc->iicbb, bsd_msgs, nmsgs);
299 return (nmsgs);
258 lkpi_i2cbb_transfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int nmsgs) argument
/freebsd-current/sys/dev/iicbus/controller/twsi/
H A Dtwsi.h55 uint32_t nmsgs; member in struct:twsi_softc
H A Dtwsi.c486 twsi_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
495 return (iicbus_transfer_gen(dev, msgs, nmsgs));
501 debugf(sc, "transmitting %d messages\n", nmsgs);
510 sc->nmsgs = nmsgs;
517 for (int i = 0; i < nmsgs; i++)
731 if (sc->msg_idx == sc->nmsgs) {
/freebsd-current/usr.bin/gencat/
H A Dgencat.c478 int nmsgs; /* number of msgs */ local
494 nmsgs = 0;
503 nmsgs++;
510 printf("number of msgs: %d\n", nmsgs);
518 + (nmsgs * sizeof(struct _nls_msg_hdr))
533 nmsgs * sizeof(struct _nls_msg_hdr));
544 nmsgs * sizeof(struct _nls_msg_hdr);
551 nmsgs = 0;
564 nmsgs++;
569 set_hdr->__nmsgs = htonl(nmsgs);
[all...]
/freebsd-current/sys/dev/usb/misc/
H A Di2ctinyusb.c85 uint32_t nmsgs);
204 i2ctinyusb_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
217 for (i = 0; i < nmsgs; i++) {
221 if (i == nmsgs - 1)
H A Dcp2112.c1079 cp2112iic_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
1100 for (i = 0; i < nmsgs; i++) {
1105 if (i == nmsgs - 1 && (msgs[i].flags & IIC_M_NOSTOP) != 0) {
1164 for (i = 0; i < nmsgs; i++) {
1165 if (i + 1 < nmsgs && (msgs[i].flags & IIC_M_NOSTOP) != 0) {
/freebsd-current/sys/powerpc/powernv/
H A Dopal_i2c.c189 opal_i2c_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
200 for (i = 0; i < nmsgs; i++) {
/freebsd-current/sys/dev/iicbus/controller/rockchip/
H A Drk_i2c.c466 rk_i2c_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
489 for (i = 0; i < nmsgs; i++) {
500 if (i < nmsgs - 1) {
516 if (nmsgs - i >= 2 && msgs[i].len < 4 &&
552 last_msg = (i >= nmsgs - 1) ||
/freebsd-current/sys/powerpc/powermac/
H A Dkiic.c124 uint32_t nmsgs);
352 kiic_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
379 for (i = 0; i < nmsgs; i++) {
/freebsd-current/sys/dev/iicbus/mux/
H A Diicmux.c198 iicmux_transfer( device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
202 return (iicbus_transfer(sc->busdev, msgs, nmsgs));
/freebsd-current/sys/dev/glxiic/
H A Dglxiic.c147 uint32_t nmsgs; /* Number of messages remaining. */ member in struct:glxiic_softc
250 uint32_t nmsgs);
869 if (--sc->nmsgs > 0) {
957 glxiic_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
973 sc->nmsgs = nmsgs;
/freebsd-current/sys/arm/broadcom/bcm2835/
H A Dbcm2835_bsc.c491 bcm_bsc_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
510 DEVICE_DEBUGF(sc, 3, "Transfer %d msgs\n", nmsgs);
525 endmsgs = &msgs[nmsgs];
/freebsd-current/sys/dev/iicbus/controller/cadence/
H A Dcdnc_i2c.c470 cdnc_i2c_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
475 DPRINTF("%s: nmsgs=%d\n", __func__, nmsgs);
479 for (i = 0; i < nmsgs; i++) {
/freebsd-current/sys/arm/allwinner/
H A Daw_rsb.c271 rsb_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
291 if (nmsgs != 2 || (msgs[0].flags & IIC_M_RD) == IIC_M_RD ||
/freebsd-current/sys/dev/ichiic/
H A Dig4_iic.c531 ig4iic_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
560 for (i = 0; i < nmsgs; i++) {
566 if (i == nmsgs - 1 && (msgs[i].flags & IIC_M_NOSTOP) != 0) {
623 for (i = 0; i < nmsgs; i++) {
/freebsd-current/usr.sbin/i2c/
H A Di2c.c242 rdwrdata.nmsgs = 1;
481 xfer.nmsgs = msgp - msgs;
/freebsd-current/sys/arm/ti/
H A Dti_i2c.c357 * @nmsgs: the number of messages in the msgs array
368 ti_i2c_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
386 for (i = 0; i < nmsgs; i++) {

Completed in 149 milliseconds

12