Home
last modified time | relevance | path

Searched refs:msgs (Results 1 – 25 of 114) sorted by relevance

12345

/freebsd/sys/dev/iicbus/sensor/
H A Dhtu21.c127 struct iic_msg msgs[2]; in htu21_get_measurement() local
132 msgs[0].slave = sc->sc_addr; in htu21_get_measurement()
133 msgs[0].flags = IIC_M_WR | IIC_M_NOSTOP; in htu21_get_measurement()
134 msgs[0].len = 1; in htu21_get_measurement()
135 msgs[0].buf = &cmd; in htu21_get_measurement()
137 msgs[1].slave = sc->sc_addr; in htu21_get_measurement()
138 msgs[1].flags = IIC_M_RD; in htu21_get_measurement()
139 msgs[1].len = count; in htu21_get_measurement()
140 msgs[1].buf = data; in htu21_get_measurement()
142 error = iicbus_transfer_excl(dev, msgs, nitems(msgs), IIC_INTRWAIT); in htu21_get_measurement()
[all …]
H A Dmax44009.c70 struct iic_msg msgs[4]; in max44009_get_reading() local
80 msgs[0].slave = sc->sc_addr; in max44009_get_reading()
81 msgs[0].flags = IIC_M_WR | IIC_M_NOSTOP; in max44009_get_reading()
82 msgs[0].len = 1; in max44009_get_reading()
83 msgs[0].buf = &reghi; in max44009_get_reading()
84 msgs[1].slave = sc->sc_addr; in max44009_get_reading()
85 msgs[1].flags = IIC_M_RD | IIC_M_NOSTOP; in max44009_get_reading()
86 msgs[1].len = 1; in max44009_get_reading()
87 msgs[1].buf = &valhi; in max44009_get_reading()
88 msgs[2].slave = sc->sc_addr; in max44009_get_reading()
[all …]
/freebsd/usr.bin/localedef/
H A Dmessages.c45 static struct lc_messages_T msgs; variable
50 (void) memset(&msgs, 0, sizeof (msgs)); in init_messages()
66 msgs.yesstr = str; in add_message()
69 msgs.nostr = str; in add_message()
72 msgs.yesexpr = str; in add_message()
75 msgs.noexpr = str; in add_message()
90 if (msgs.yesstr == NULL) { in dump_messages()
92 msgs.yesstr = ""; in dump_messages()
94 if (msgs.nostr == NULL) { in dump_messages()
96 msgs.nostr = ""; in dump_messages()
[all …]
/freebsd/sys/dev/mps/
H A Dmps_pci.c69 static int mps_alloc_msix(struct mps_softc *sc, int msgs);
70 static int mps_alloc_msi(struct mps_softc *sc, int msgs);
236 int error, msgs; in mps_pci_alloc_interrupts() local
240 msgs = 0; in mps_pci_alloc_interrupts()
243 msgs = pci_msix_count(dev); in mps_pci_alloc_interrupts()
244 mps_dprint(sc, MPS_INIT, "Counted %d MSI-X messages\n", msgs); in mps_pci_alloc_interrupts()
245 msgs = min(msgs, sc->max_msix); in mps_pci_alloc_interrupts()
246 msgs = min(msgs, MPS_MSIX_MA in mps_pci_alloc_interrupts()
401 mps_alloc_msix(struct mps_softc * sc,int msgs) mps_alloc_msix() argument
410 mps_alloc_msi(struct mps_softc * sc,int msgs) mps_alloc_msi() argument
[all...]
/freebsd/contrib/openpam/t/
H A Dt_pam_conv.c63 t_pam_conv(int nm, const struct pam_message **msgs, in t_pam_conv() argument
86 if (msgs[i]->msg_style != s->msgs[i].msg_style) { in t_pam_conv()
89 s->msgs[i].msg_style, msgs[i]->msg_style); in t_pam_conv()
92 if (strcmp(msgs[i]->msg, s->msgs[i].msg) != 0) { in t_pam_conv()
95 s->msgs[i].msg, msgs[i]->msg); in t_pam_conv()
98 switch (msgs[i]->msg_style) { in t_pam_conv()
100 t_printv("[PAM_PROMPT_ECHO_OFF] %s\n", msgs[i]->msg); in t_pam_conv()
103 t_printv("[PAM_PROMPT_ECHO_ON] %s\n", msgs[i]->msg); in t_pam_conv()
106 t_printv("[PAM_ERROR_MSG] %s\n", msgs[i]->msg); in t_pam_conv()
109 t_printv("[PAM_TEXT_INFO] %s\n", msgs[i]->msg); in t_pam_conv()
[all …]
/freebsd/sys/dev/mpr/
H A Dmpr_pci.c68 static int mpr_alloc_msix(struct mpr_softc *sc, int msgs);
69 static int mpr_alloc_msi(struct mpr_softc *sc, int msgs);
290 int error, msgs; in mpr_pci_alloc_interrupts() local
294 msgs = 0; in mpr_pci_alloc_interrupts()
297 msgs = pci_msix_count(dev); in mpr_pci_alloc_interrupts()
298 mpr_dprint(sc, MPR_INIT, "Counted %d MSI-X messages\n", msgs); in mpr_pci_alloc_interrupts()
299 msgs = min(msgs, sc->max_msix); in mpr_pci_alloc_interrupts()
300 msgs = min(msgs, MPR_MSIX_MAX); in mpr_pci_alloc_interrupts()
301 msgs = min(msgs, 1); /* XXX */ in mpr_pci_alloc_interrupts()
302 if (msgs != 0) { in mpr_pci_alloc_interrupts()
[all …]
/freebsd/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) in i2c_check_for_quirks() argument
188 msgs[0].flags & IIC_M_RD) { in i2c_check_for_quirks()
195 !(msgs[1].flags & IIC_M_RD)) { in i2c_check_for_quirks()
203 msgs[0].slave != msgs[1].slave) { in i2c_check_for_quirks()
212 msgs[0].len > quirks->max_comb_1st_msg_len) { in i2c_check_for_quirks()
216 msgs[0].len, in i2c_check_for_quirks()
221 msgs[1].len > quirks->max_comb_2nd_msg_len) { in i2c_check_for_quirks()
225 msgs[1].len, in i2c_check_for_quirks()
242 if (msgs[i].flags & IIC_M_RD) { in i2c_check_for_quirks()
[all …]
/freebsd/crypto/heimdal/lib/gssapi/mech/
H A Dgss_display_status.c66 static const char *msgs[] = { in calling_error() local
77 else if (v >= sizeof(msgs)/sizeof(*msgs)) in calling_error()
80 return msgs[v]; in calling_error()
86 static const char *msgs[] = { in routine_error() local
110 if (v >= sizeof(msgs)/sizeof(*msgs)) in routine_error()
113 return msgs[v]; in routine_error()
119 static const char *msgs[] = { in supplementary_error() local
130 if (v >= sizeof(msgs)/sizeof(*msgs)) in supplementary_error()
133 return msgs[v]; in supplementary_error()
/freebsd/crypto/heimdal/lib/gssapi/krb5/
H A Ddisplay_status.c39 static const char *msgs[] = { in calling_error() local
50 else if (v >= sizeof(msgs)/sizeof(*msgs)) in calling_error()
53 return msgs[v]; in calling_error()
59 static const char *msgs[] = { in routine_error() local
86 else if (v >= sizeof(msgs)/sizeof(*msgs)) in routine_error()
89 return msgs[v]; in routine_error()
95 static const char *msgs[] = { in supplementary_error() local
106 if (v >= sizeof(msgs)/sizeof(*msgs)) in supplementary_error()
109 return msgs[v]; in supplementary_error()
/freebsd/sys/dev/iicbus/
H A Diiconf.c439 iicbus_transfer(device_t bus, struct iic_msg *msgs, uint32_t nmsgs) in iicbus_transfer() argument
442 return (IICBUS_TRANSFER(device_get_parent(bus), msgs, nmsgs)); in iicbus_transfer()
446 iicbus_transfer_excl(device_t dev, struct iic_msg *msgs, uint32_t nmsgs, in iicbus_transfer_excl() argument
455 error = IICBUS_TRANSFER(bus, msgs, nmsgs); in iicbus_transfer_excl()
466 iicbus_transfer_gen(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) in iicbus_transfer_gen() argument
483 addr = msgs[i].slave; in iicbus_transfer_gen()
484 if (msgs[i].flags & IIC_M_RD) in iicbus_transfer_gen()
489 if (!(msgs[i].flags & IIC_M_NOSTART)) { in iicbus_transfer_gen()
499 if (msgs[i].flags & IIC_M_RD) in iicbus_transfer_gen()
500 error = iicbus_read(bus, msgs[i].buf, msgs[i].len, in iicbus_transfer_gen()
[all …]
H A Diicsmb.c305 #define TRANSFER_MSGS(dev, msgs) iicbus_transfer(dev, msgs, nitems(msgs)) argument
310 struct iic_msg msgs[] = { in iicsmb_quick() local
323 error = TRANSFER_MSGS(dev, msgs); in iicsmb_quick()
330 struct iic_msg msgs[] = { in iicsmb_sendb() local
335 error = TRANSFER_MSGS(dev, msgs); in iicsmb_sendb()
342 struct iic_msg msgs[] = { in iicsmb_recvb() local
347 error = TRANSFER_MSGS(dev, msgs); in iicsmb_recvb()
355 struct iic_msg msgs[] = { in iicsmb_writeb() local
360 error = TRANSFER_MSGS(dev, msgs); in iicsmb_writeb()
368 struct iic_msg msgs[] = { in iicsmb_writew() local
[all …]
H A Dacpi_iicbus.c95 struct iic_msg msgs[] = { in acpi_iicbus_sendb() local
99 return (iicbus_transfer(dev, msgs, nitems(msgs))); in acpi_iicbus_sendb()
106 struct iic_msg msgs[] = { in acpi_iicbus_recvb() local
111 error = iicbus_transfer(dev, msgs, nitems(msgs)); in acpi_iicbus_recvb()
122 struct iic_msg msgs[] = { in acpi_iicbus_write() local
127 return (iicbus_transfer(dev, msgs, nitems(msgs))); in acpi_iicbus_write()
135 struct iic_msg msgs[] = { in acpi_iicbus_read() local
142 msgs[1].buf = local_buffer; in acpi_iicbus_read()
144 msgs[1].buf = malloc(buflen, M_DEVBUF, M_WAITOK); in acpi_iicbus_read()
145 error = iicbus_transfer(dev, msgs, nitems(msgs)); in acpi_iicbus_read()
[all …]
H A Diichid.c280 struct iic_msg msgs[] = { local
286 error = iicbus_transfer(sc->dev, msgs, nitems(msgs));
298 msgs[0] = (struct iic_msg)
312 msgs[0] = (struct iic_msg)
324 msgs[0] = (struct iic_msg)
328 error = iicbus_transfer(sc->dev, msgs, 1);
333 "%*D - %*D\n", 2, actbuf, " ", msgs[0].len, msgs[0].buf, " ");
345 struct iic_msg msgs[] = { local
358 return (iicbus_transfer(sc->dev, msgs, nitems(msgs)));
370 struct iic_msg msgs[] = { local
[all …]
/freebsd/sys/dev/iicbus/pmic/
H A Dact8846.c76 struct iic_msg msgs[2] = { in act8846_read() local
81 msgs[0].slave = sc->bus_addr; in act8846_read()
82 msgs[1].slave = sc->bus_addr; in act8846_read()
85 rv = iicbus_transfer_excl(sc->dev, msgs, 2, IIC_INTRWAIT); in act8846_read()
100 struct iic_msg msgs[2] = { in act8846_read_buf() local
105 msgs[0].slave = sc->bus_addr; in act8846_read_buf()
106 msgs[1].slave = sc->bus_addr; in act8846_read_buf()
109 rv = iicbus_transfer_excl(sc->dev, msgs, 2, IIC_INTRWAIT); in act8846_read_buf()
125 struct iic_msg msgs[1] = { in act8846_write() local
129 msgs[0].slave = sc->bus_addr; in act8846_write()
[all …]
/freebsd/sys/dev/iicbus/controller/twsi/
H A Dtwsi.c486 twsi_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) in twsi_transfer() argument
495 return (iicbus_transfer_gen(dev, msgs, nmsgs)); in twsi_transfer()
511 sc->msgs = msgs; in twsi_transfer()
518 debugf(sc, "msg %d is %d bytes long\n", i, msgs[i].len); in twsi_transfer()
580 sc->msgs[sc->msg_idx].slave); in twsi_intr()
582 if (sc->msgs[sc->msg_idx].flags & IIC_M_RD) in twsi_intr()
584 sc->msgs[sc->msg_idx].slave | LSB); in twsi_intr()
587 sc->msgs[sc->msg_idx].slave & ~LSB); in twsi_intr()
593 if (sc->msgs[sc->msg_idx].len > 0) { in twsi_intr()
597 sc->msgs[sc->msg_idx].len, in twsi_intr()
[all …]
/freebsd/sys/arm/allwinner/
H A Daw_rsb.c271 rsb_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) in rsb_transfer() argument
291 if (nmsgs != 2 || (msgs[0].flags & IIC_M_RD) == IIC_M_RD || in rsb_transfer()
292 (msgs[0].slave >> 1) != (msgs[1].slave >> 1) || in rsb_transfer()
293 msgs[0].len != 1 || msgs[1].len > RSB_MAXLEN) in rsb_transfer()
298 if ((msgs[1].flags & IIC_M_RD) != 0) { in rsb_transfer()
299 switch (msgs[1].len) { in rsb_transfer()
313 switch (msgs[1].len) { in rsb_transfer()
337 device_addr = msgs[0].slave >> 1; in rsb_transfer()
351 daddr[0] = rsb_encode(msgs[0].buf, msgs[0].len, 0); in rsb_transfer()
355 if ((msgs[1].flags & IIC_M_RD) == 0) { in rsb_transfer()
[all …]
/freebsd/sys/arm64/nvidia/tegra210/
H A Dmax77620_rtc.c104 struct iic_msg msgs[2] = { in max77620_rtc_read() local
109 msgs[0].slave = sc->bus_addr; in max77620_rtc_read()
110 msgs[1].slave = sc->bus_addr; in max77620_rtc_read()
113 rv = iicbus_transfer(sc->dev, msgs, 2); in max77620_rtc_read()
129 struct iic_msg msgs[2] = { in max77620_rtc_read_buf() local
134 msgs[0].slave = sc->bus_addr; in max77620_rtc_read_buf()
135 msgs[1].slave = sc->bus_addr; in max77620_rtc_read_buf()
138 rv = iicbus_transfer(sc->dev, msgs, 2); in max77620_rtc_read_buf()
154 struct iic_msg msgs[1] = { in max77620_rtc_write() local
158 msgs[0].slave = sc->bus_addr; in max77620_rtc_write()
[all …]
H A Dmax77620.c80 struct iic_msg msgs[2] = { in max77620_read() local
85 msgs[0].slave = sc->bus_addr; in max77620_read()
86 msgs[1].slave = sc->bus_addr; in max77620_read()
89 rv = iicbus_transfer(sc->dev, msgs, 2); in max77620_read()
104 struct iic_msg msgs[2] = { in max77620_read_buf() local
109 msgs[0].slave = sc->bus_addr; in max77620_read_buf()
110 msgs[1].slave = sc->bus_addr; in max77620_read_buf()
113 rv = iicbus_transfer(sc->dev, msgs, 2); in max77620_read_buf()
129 struct iic_msg msgs[1] = { in max77620_write() local
133 msgs[0].slave = sc->bus_addr; in max77620_write()
[all …]
/freebsd/sys/arm/nvidia/
H A Das3722.c81 struct iic_msg msgs[2] = { in as3722_read() local
86 msgs[0].slave = sc->bus_addr; in as3722_read()
87 msgs[1].slave = sc->bus_addr; in as3722_read()
90 rv = iicbus_transfer(sc->dev, msgs, 2); in as3722_read()
105 struct iic_msg msgs[2] = { in as3722_read_buf() local
110 msgs[0].slave = sc->bus_addr; in as3722_read_buf()
111 msgs[1].slave = sc->bus_addr; in as3722_read_buf()
114 rv = iicbus_transfer(sc->dev, msgs, 2); in as3722_read_buf()
130 struct iic_msg msgs[1] = { in as3722_write() local
134 msgs[0].slave = sc->bus_addr; in as3722_write()
[all …]
/freebsd/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) in do_i2c_transfer() argument
129 ret = adapter->algo->master_xfer(adapter, msgs, nmsgs); in do_i2c_transfer()
131 ret = lkpi_i2cbb_transfer(adapter, msgs, nmsgs); in do_i2c_transfer()
140 i2c_transfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int nmsgs) in i2c_transfer() argument
150 ret = do_i2c_transfer(adapter, msgs, nmsgs); in i2c_transfer()
160 __i2c_transfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int nmsgs) in __i2c_transfer() argument
162 return (do_i2c_transfer(adapter, msgs, nmsgs)); in __i2c_transfer()
/freebsd/sys/dev/iicbus/controller/rockchip/
H A Drk_i2c.c476 rk_i2c_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) in rk_i2c_transfer() argument
501 if (msgs == NULL || msgs[i].buf == NULL || in rk_i2c_transfer()
502 msgs[i].len == 0) { in rk_i2c_transfer()
511 if ((msgs[i + 1].flags & IIC_M_NOSTART) && in rk_i2c_transfer()
512 ((msgs[i].flags & IIC_M_RD) != in rk_i2c_transfer()
513 (msgs[i + 1].flags & IIC_M_RD) || in rk_i2c_transfer()
514 (msgs[i].slave != msgs[i + 1].slave))) { in rk_i2c_transfer()
526 if (nmsgs - i >= 2 && msgs[i].len < 4 && in rk_i2c_transfer()
527 msgs[i].flags == (IIC_M_WR | IIC_M_NOSTOP) && in rk_i2c_transfer()
528 (msgs[i + 1].flags & IIC_M_RD) == IIC_M_RD && in rk_i2c_transfer()
[all …]
/freebsd/sys/dev/usb/misc/
H A Dcp2112.c1066 cp2112iic_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) in cp2112iic_transfer() argument
1088 if (i == 0 && (msgs[i].flags & IIC_M_NOSTART) != 0) { in cp2112iic_transfer()
1092 if (i == nmsgs - 1 && (msgs[i].flags & IIC_M_NOSTOP) != 0) { in cp2112iic_transfer()
1096 if (msgs[i].len == 0) { in cp2112iic_transfer()
1100 if ((msgs[i].flags & IIC_M_RD) != 0 && in cp2112iic_transfer()
1101 msgs[i].len > CP2112_IIC_MAX_READ_LEN) { in cp2112iic_transfer()
1105 if ((msgs[i].flags & IIC_M_RD) == 0 && in cp2112iic_transfer()
1106 msgs[i].len > SIZEOF_FIELD(i2c_write_req, data)) { in cp2112iic_transfer()
1110 if ((msgs[i].flags & IIC_M_NOSTART) != 0) { in cp2112iic_transfer()
1114 if ((msgs[i].flags & IIC_M_NOSTOP) != 0 && in cp2112iic_transfer()
[all …]
/freebsd/lib/libgssapi/
H A Dgss_display_status.c106 static const char *msgs[] = { in calling_error() local
115 if (v >= nitems(msgs)) in calling_error()
118 return msgs[v]; in calling_error()
124 static const char *msgs[] = { in routine_error() local
149 if (v >= nitems(msgs)) in routine_error()
152 return msgs[v]; in routine_error()
158 static const char *msgs[] = { in supplementary_error() local
169 if (v >= nitems(msgs)) in supplementary_error()
172 return msgs[v]; in supplementary_error()
/freebsd/libexec/rc/rc.d/
H A Dmsgs19 if [ -d /var/msgs -a ! -f /var/msgs/bounds -a ! -L /var/msgs/bounds ]; then
20 echo 0 > /var/msgs/bounds
/freebsd/lib/libpam/modules/pam_radius/
H A Dpam_radius.c223 struct pam_message msgs[MAX_CHALLENGE_MSGS]; in do_challenge() local
247 msgs[num_msgs].msg = rad_cvt_string(attrval, attrlen); in do_challenge()
248 if (msgs[num_msgs].msg == NULL) { in do_challenge()
253 msgs[num_msgs].msg_style = PAM_TEXT_INFO; in do_challenge()
254 msg_ptrs[num_msgs] = &msgs[num_msgs]; in do_challenge()
264 msgs[num_msgs].msg = strdup("(null RADIUS challenge): "); in do_challenge()
265 if (msgs[num_msgs].msg == NULL) { in do_challenge()
269 msgs[num_msgs].msg_style = PAM_TEXT_INFO; in do_challenge()
270 msg_ptrs[num_msgs] = &msgs[num_msgs]; in do_challenge()
273 msgs[num_msgs-1].msg_style = PAM_PROMPT_ECHO_ON; in do_challenge()
[all …]

12345