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

/freebsd-11-stable/sys/dev/iicbus/
H A Diic.h56 uint32_t nmsgs; member in struct:iic_rdwr_data
H A Diiconf.h132 int iicbus_transfer(device_t bus, struct iic_msg *msgs, uint32_t nmsgs);
133 int iicbus_transfer_excl(device_t bus, struct iic_msg *msgs, uint32_t nmsgs,
135 int iicbus_transfer_gen(device_t bus, struct iic_msg *msgs, uint32_t nmsgs);
H A Diic.c303 if (d->nmsgs > IIC_RDRW_MAX_MSGS)
306 buf = malloc(sizeof(*d->msgs) * d->nmsgs, M_IIC, M_WAITOK);
308 error = copyin(d->msgs, buf, sizeof(*d->msgs) * d->nmsgs);
315 usrbufs = malloc(sizeof(void *) * d->nmsgs, M_IIC, M_WAITOK | M_ZERO);
317 for (i = 0; i < d->nmsgs; i++) {
340 error = iicbus_transfer(iicdev, buf, d->nmsgs);
345 for (i = 0; i < d->nmsgs; i++) {
H A Diiconf.c390 iicbus_transfer(device_t bus, struct iic_msg *msgs, uint32_t nmsgs) argument
393 return (IICBUS_TRANSFER(device_get_parent(bus), msgs, nmsgs));
397 iicbus_transfer_excl(device_t dev, struct iic_msg *msgs, uint32_t nmsgs, argument
406 error = IICBUS_TRANSFER(bus, msgs, nmsgs);
417 iicbus_transfer_gen(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
433 for (i = 0, error = 0; i < nmsgs && error == 0; i++) {
H A Diicbb.c86 static int iicbb_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs);
441 iicbb_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
449 error = iicbus_transfer_gen(dev, msgs, nmsgs);
/freebsd-11-stable/usr.bin/gencat/
H A Dgencat.c480 int nmsgs; /* number of msgs */ local
496 nmsgs = 0;
505 nmsgs++;
512 printf("number of msgs: %d\n", nmsgs);
520 + (nmsgs * sizeof(struct _nls_msg_hdr))
535 nmsgs * sizeof(struct _nls_msg_hdr));
546 nmsgs * sizeof(struct _nls_msg_hdr);
553 nmsgs = 0;
566 nmsgs++;
571 set_hdr->__nmsgs = htonl(nmsgs);
[all...]
/freebsd-11-stable/sys/mips/rmi/
H A Dxlr_i2c.c103 static int xlr_i2c_transfer(device_t bus, struct iic_msg *msgs, uint32_t nmsgs);
372 xlr_i2c_transfer(device_t bus, struct iic_msg *msgs, uint32_t nmsgs) argument
379 for (i = 0, error = 0; i < nmsgs && error == 0; i++) {
H A Dfmn.c336 int nmsgs; local
363 nmsgs = xlr_msgring_handler(0xff, 0);
364 msgring_nmsgs[hwtid] += nmsgs;
/freebsd-11-stable/sys/powerpc/powermac/
H A Dkiic.c124 uint32_t nmsgs);
354 kiic_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
381 for (i = 0; i < nmsgs; i++) {
H A Dsmu.c1385 static int smuiic_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs);
1487 smuiic_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
1500 for (i = 0; i < nmsgs; i++) {
/freebsd-11-stable/sys/dev/ichiic/
H A Dig4_iic.c363 ig4iic_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
391 for (i = 0; i < nmsgs; i++) {
397 if (i == nmsgs - 1 && (msgs[i].flags & IIC_M_NOSTOP) != 0) {
462 for (i = 0; i < nmsgs; i++) {
/freebsd-11-stable/sys/dev/glxiic/
H A Dglxiic.c146 uint32_t nmsgs; /* Number of messages remaining. */ member in struct:glxiic_softc
249 uint32_t nmsgs);
871 if (--sc->nmsgs > 0) {
959 glxiic_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
975 sc->nmsgs = nmsgs;
/freebsd-11-stable/sys/arm/broadcom/bcm2835/
H A Dbcm2835_bsc.c517 bcm_bsc_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
536 DEVICE_DEBUGF(sc, 3, "Transfer %d msgs\n", nmsgs);
551 endmsgs = &msgs[nmsgs];
/freebsd-11-stable/sys/mips/nlm/
H A Dcms.c306 int hwtid, nmsgs; local
338 nmsgs = xlp_handle_msg_vc(0xf, 0);
/freebsd-11-stable/sys/arm/at91/
H A Dat91_twi.c333 at91_twi_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
344 for (i = 0; i < nmsgs; i++) {
/freebsd-11-stable/sys/arm/allwinner/
H A Daw_rsb.c262 rsb_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
282 if (nmsgs != 2 || (msgs[0].flags & IIC_M_RD) == IIC_M_RD ||
/freebsd-11-stable/sys/dev/drm2/i915/
H A Dintel_iic.c621 iicbb_nostop_transfer_impl(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
631 for (i = 0, error = 0; i < nmsgs && error == 0; i++) {
661 iicbb_nostop_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
669 error = iicbb_nostop_transfer_impl(dev, msgs, nmsgs);
/freebsd-11-stable/sys/arm/ti/
H A Dti_i2c.c360 * @nmsgs: the number of messages in the msgs array
371 ti_i2c_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
389 for (i = 0; i < nmsgs; i++) {
/freebsd-11-stable/usr.sbin/i2c/
H A Di2c.c207 rdwrdata.nmsgs = 1;
602 xfer.nmsgs = i;
/freebsd-11-stable/sys/arm/nvidia/
H A Dtegra_i2c.c535 tegra_i2c_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
550 for (i = 0; i < nmsgs; i++) {
563 if (i == (nmsgs - 1)) {

Completed in 295 milliseconds