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

/freebsd-12-stable/sys/dev/iicbus/
H A Diic.h58 uint32_t nmsgs; member in struct:iic_rdwr_data
H A Diiconf.h155 int iicbus_transfer(device_t bus, struct iic_msg *msgs, uint32_t nmsgs);
156 int iicbus_transfer_excl(device_t bus, struct iic_msg *msgs, uint32_t nmsgs,
158 int iicbus_transfer_gen(device_t bus, struct iic_msg *msgs, uint32_t nmsgs);
H A Diic.c305 if (d->nmsgs > IIC_RDRW_MAX_MSGS)
308 buf = malloc(sizeof(*d->msgs) * d->nmsgs, M_IIC, M_WAITOK);
310 error = copyin(d->msgs, buf, sizeof(*d->msgs) * d->nmsgs);
317 usrbufs = malloc(sizeof(void *) * d->nmsgs, M_IIC, M_WAITOK | M_ZERO);
319 for (i = 0; i < d->nmsgs; i++) {
342 error = iicbus_transfer(iicdev, buf, d->nmsgs);
347 for (i = 0; i < d->nmsgs; i++) {
H A Diiconf.c442 iicbus_transfer(device_t bus, struct iic_msg *msgs, uint32_t nmsgs) argument
445 return (IICBUS_TRANSFER(device_get_parent(bus), msgs, nmsgs));
449 iicbus_transfer_excl(device_t dev, struct iic_msg *msgs, uint32_t nmsgs, argument
458 error = IICBUS_TRANSFER(bus, msgs, nmsgs);
469 iicbus_transfer_gen(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
485 for (i = 0, error = 0; i < nmsgs && error == 0; i++) {
H A Diicbb.c95 static int iicbb_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs);
569 iicbb_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
577 error = iicbus_transfer_gen(dev, msgs, nmsgs);
/freebsd-12-stable/sys/dev/iicbus/twsi/
H A Dtwsi.h61 uint32_t nmsgs; member in struct:twsi_softc
H A Dtwsi.c485 twsi_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
492 return (iicbus_transfer_gen(dev, msgs, nmsgs));
499 debugf(dev, "transmitting %d messages\n", nmsgs);
501 sc->nmsgs = nmsgs;
507 for (int i = 0; i < nmsgs; i++)
605 if (sc->msg_idx == sc->nmsgs) {
637 if (sc->msg_idx == sc->nmsgs - 1) {
/freebsd-12-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-12-stable/sys/powerpc/powernv/
H A Dopal_i2c.c203 opal_i2c_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
214 for (i = 0; i < nmsgs; i++) {
/freebsd-12-stable/sys/arm64/rockchip/
H A Drk_i2c.c438 rk_i2c_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
461 for (i = 0; i < nmsgs; i++) {
472 if (i < nmsgs - 1) {
488 if (nmsgs - i >= 2 && msgs[i].len < 4 &&
524 last_msg = (i > nmsgs - 1) ||
/freebsd-12-stable/sys/powerpc/powermac/
H A Dkiic.c126 uint32_t nmsgs);
356 kiic_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
383 for (i = 0; i < nmsgs; i++) {
H A Dsmu.c1387 static int smuiic_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs);
1489 smuiic_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
1502 for (i = 0; i < nmsgs; i++) {
/freebsd-12-stable/sys/mips/ingenic/
H A Djz4780_smb.c323 jzsmb_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
338 for (n = 0; n < nmsgs; n++) {
348 n < nmsgs - 1);
/freebsd-12-stable/sys/dev/iicbus/mux/
H A Diicmux.c200 iicmux_transfer( device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
204 return (iicbus_transfer(sc->busdev, msgs, nmsgs));
/freebsd-12-stable/sys/dev/glxiic/
H A Dglxiic.c148 uint32_t nmsgs; /* Number of messages remaining. */ member in struct:glxiic_softc
251 uint32_t nmsgs);
872 if (--sc->nmsgs > 0) {
960 glxiic_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
976 sc->nmsgs = nmsgs;
/freebsd-12-stable/sys/arm/broadcom/bcm2835/
H A Dbcm2835_bsc.c489 bcm_bsc_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
508 DEVICE_DEBUGF(sc, 3, "Transfer %d msgs\n", nmsgs);
523 endmsgs = &msgs[nmsgs];
/freebsd-12-stable/sys/mips/nlm/
H A Dcms.c308 int hwtid, nmsgs; local
340 nmsgs = xlp_handle_msg_vc(0xf, 0);
/freebsd-12-stable/sys/arm/allwinner/
H A Daw_rsb.c267 rsb_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
287 if (nmsgs != 2 || (msgs[0].flags & IIC_M_RD) == IIC_M_RD ||
/freebsd-12-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-12-stable/sys/dev/ichiic/
H A Dig4_iic.c526 ig4iic_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
555 for (i = 0; i < nmsgs; i++) {
561 if (i == nmsgs - 1 && (msgs[i].flags & IIC_M_NOSTOP) != 0) {
618 for (i = 0; i < nmsgs; i++) {
/freebsd-12-stable/sys/dev/usb/misc/
H A Dcp2112.c1085 cp2112iic_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
1106 for (i = 0; i < nmsgs; i++) {
1111 if (i == nmsgs - 1 && (msgs[i].flags & IIC_M_NOSTOP) != 0) {
1170 for (i = 0; i < nmsgs; i++) {
1171 if (i + 1 < nmsgs && (msgs[i].flags & IIC_M_NOSTOP) != 0) {
/freebsd-12-stable/sys/arm/ti/
H A Dti_i2c.c362 * @nmsgs: the number of messages in the msgs array
373 ti_i2c_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
391 for (i = 0; i < nmsgs; i++) {
/freebsd-12-stable/usr.sbin/i2c/
H A Di2c.c207 rdwrdata.nmsgs = 1;
602 xfer.nmsgs = i;
/freebsd-12-stable/sys/arm/nvidia/
H A Dtegra_i2c.c534 tegra_i2c_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) argument
549 for (i = 0; i < nmsgs; i++) {
562 if (i == (nmsgs - 1)) {

Completed in 294 milliseconds