Home
last modified time | relevance | path

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

123456

/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.c68 static int mps_alloc_msix(struct mps_softc *sc, int msgs);
69 static int mps_alloc_msi(struct mps_softc *sc, int msgs);
235 int error, msgs; in mps_pci_alloc_interrupts() local
239 msgs = 0; in mps_pci_alloc_interrupts()
242 msgs = pci_msix_count(dev); in mps_pci_alloc_interrupts()
243 mps_dprint(sc, MPS_INIT, "Counted %d MSI-X messages\n", msgs); in mps_pci_alloc_interrupts()
244 msgs = min(msgs, sc->max_msix); in mps_pci_alloc_interrupts()
245 msgs = min(msgs, MPS_MSIX_MAX); in mps_pci_alloc_interrupts()
246 msgs = min(msgs, 1); /* XXX */ in mps_pci_alloc_interrupts()
247 if (msgs != 0) { in mps_pci_alloc_interrupts()
[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.c67 static int mpr_alloc_msix(struct mpr_softc *sc, int msgs);
68 static int mpr_alloc_msi(struct mpr_softc *sc, int msgs);
289 int error, msgs; in mpr_pci_alloc_interrupts() local
293 msgs = 0; in mpr_pci_alloc_interrupts()
296 msgs = pci_msix_count(dev); in mpr_pci_alloc_interrupts()
297 mpr_dprint(sc, MPR_INIT, "Counted %d MSI-X messages\n", msgs); in mpr_pci_alloc_interrupts()
298 msgs = min(msgs, sc->max_msix); in mpr_pci_alloc_interrupts()
299 msgs = min(msgs, MPR_MSIX_MAX); in mpr_pci_alloc_interrupts()
300 msgs = min(msgs, 1); /* XXX */ in mpr_pci_alloc_interrupts()
301 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 …]
/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.c273 rsb_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) in rsb_transfer() argument
293 if (nmsgs != 2 || (msgs[0].flags & IIC_M_RD) == IIC_M_RD || in rsb_transfer()
294 (msgs[0].slave >> 1) != (msgs[1].slave >> 1) || in rsb_transfer()
295 msgs[0].len != 1 || msgs[1].len > RSB_MAXLEN) in rsb_transfer()
300 if ((msgs[1].flags & IIC_M_RD) != 0) { in rsb_transfer()
301 switch (msgs[1].len) { in rsb_transfer()
315 switch (msgs[1].len) { in rsb_transfer()
339 device_addr = msgs[0].slave >> 1; in rsb_transfer()
353 daddr[0] = rsb_encode(msgs[0].buf, msgs[0].len, 0); in rsb_transfer()
357 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/contrib/xz/src/xz/
H A Dhardware.c271 const char *msgs[] = { in hardware_memlimit_show() local
281 for (unsigned i = 0; i < ARRAY_SIZE(msgs); ++i) { in hardware_memlimit_show()
282 size_t w = tuklib_mbstr_width(msgs[i], NULL); in hardware_memlimit_show()
296 memlimit_show(msgs[0], width_max, total_ram); in hardware_memlimit_show()
298 tuklib_mbstr_fw(msgs[1], (int)(width_max)), in hardware_memlimit_show()
299 msgs[1], cputhreads); in hardware_memlimit_show()
303 memlimit_show(msgs[2], width_max, memlimit_compress); in hardware_memlimit_show()
304 memlimit_show(msgs[3], width_max, memlimit_decompress); in hardware_memlimit_show()
305 memlimit_show(msgs[4], width_max, in hardware_memlimit_show()
307 memlimit_show(msgs[5], width_max, memlimit_mt_default); in hardware_memlimit_show()
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Di2c.h120 int lkpi_i2cbb_transfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int nmsgs);
129 do_i2c_transfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int nmsgs) in do_i2c_transfer() argument
136 ret = adapter->algo->master_xfer(adapter, msgs, nmsgs); in do_i2c_transfer()
138 ret = lkpi_i2cbb_transfer(adapter, msgs, nmsgs); in do_i2c_transfer()
147 i2c_transfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int nmsgs) in i2c_transfer() argument
157 ret = do_i2c_transfer(adapter, msgs, nmsgs); in i2c_transfer()
167 __i2c_transfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int nmsgs) in __i2c_transfer() argument
169 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/thunderbolt/
H A Dnhi_pci.c215 int msgs, error = 0; in nhi_pci_allocate_interrupts() local
228 msgs = pci_msix_count(sc->dev); in nhi_pci_allocate_interrupts()
230 "Counted %d MSI-X messages\n", msgs); in nhi_pci_allocate_interrupts()
231 msgs = min(msgs, NHI_MSIX_MAX); in nhi_pci_allocate_interrupts()
232 msgs = max(msgs, 1); in nhi_pci_allocate_interrupts()
233 if (msgs != 0) { in nhi_pci_allocate_interrupts()
235 "MSI-X interrupts\n", msgs); in nhi_pci_allocate_interrupts()
236 error = pci_alloc_msix(sc->dev, &msgs); in nhi_pci_allocate_interrupts()
238 "pci_alloc_msix return msgs= %d, error= %d\n", msgs, error); in nhi_pci_allocate_interrupts()
241 if ((error != 0) || (msgs <= 0)) { in nhi_pci_allocate_interrupts()
[all …]
/freebsd/sys/dev/usb/misc/
H A Dcp2112.c1067 cp2112iic_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs) in cp2112iic_transfer() argument
1089 if (i == 0 && (msgs[i].flags & IIC_M_NOSTART) != 0) { in cp2112iic_transfer()
1093 if (i == nmsgs - 1 && (msgs[i].flags & IIC_M_NOSTOP) != 0) { in cp2112iic_transfer()
1097 if (msgs[i].len == 0) { in cp2112iic_transfer()
1101 if ((msgs[i].flags & IIC_M_RD) != 0 && in cp2112iic_transfer()
1102 msgs[i].len > CP2112_IIC_MAX_READ_LEN) { in cp2112iic_transfer()
1106 if ((msgs[i].flags & IIC_M_RD) == 0 && in cp2112iic_transfer()
1107 msgs[i].len > SIZEOF_FIELD(i2c_write_req, data)) { in cp2112iic_transfer()
1111 if ((msgs[i].flags & IIC_M_NOSTART) != 0) { in cp2112iic_transfer()
1115 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/crypto/krb5/src/util/et/
H A Derror_message.c145 e->table->msgs[0])); in error_message()
166 if (table->msgs[table->n_msgs] != NULL) in error_message()
167 return dgettext(table->msgs[table->n_msgs], table->msgs[offset]); in error_message()
169 return table->msgs[offset]; in error_message()
272 if (et->msgs[et->n_msgs] != NULL && et->msgs[et->n_msgs + 1] != NULL) in add_error_table()
273 bindtextdomain(et->msgs[et->n_msgs], et->msgs[et->n_msgs + 1]); in add_error_table()

123456