Home
last modified time | relevance | path

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

123

/openbsd/src/sys/dev/pci/drm/amd/amdgpu/
Damdgpu_eeprom.c96 struct i2c_msg msgs[] = { in __amdgpu_eeprom_xfer() local
114 msgs[0].addr = MAKE_I2C_ADDR(eeprom_addr); in __amdgpu_eeprom_xfer()
115 msgs[1].addr = msgs[0].addr; in __amdgpu_eeprom_xfer()
116 msgs[0].buf[0] = (eeprom_addr >> 8) & 0xff; in __amdgpu_eeprom_xfer()
117 msgs[0].buf[1] = eeprom_addr & 0xff; in __amdgpu_eeprom_xfer()
146 msgs[1].len = len; in __amdgpu_eeprom_xfer()
147 msgs[1].buf = eeprom_buf; in __amdgpu_eeprom_xfer()
151 r = i2c_transfer(i2c_adap, msgs, ARRAY_SIZE(msgs)); in __amdgpu_eeprom_xfer()
152 if (r != ARRAY_SIZE(msgs)) in __amdgpu_eeprom_xfer()
Damdgpu_atombios_i2c.c108 struct i2c_msg *msgs, int num) in amdgpu_atombios_i2c_xfer() argument
116 p = &msgs[0]; in amdgpu_atombios_i2c_xfer()
128 p = &msgs[i]; in amdgpu_atombios_i2c_xfer()
Datombios_i2c.h28 struct i2c_msg *msgs, int num);
/openbsd/src/gnu/usr.bin/perl/cpan/Encode/Encode/
Dencode.h610 AV ** msgs) in utf8n_to_uvchr_msgs() argument
761 if (msgs) { in utf8n_to_uvchr_msgs()
762 *msgs = NULL; in utf8n_to_uvchr_msgs()
798 if (msgs || ckWARN_d(WARN_UTF8)) { in utf8n_to_uvchr_msgs()
801 else if (msgs || ckWARN_d(WARN_NON_UNICODE)) { in utf8n_to_uvchr_msgs()
818 if ( (msgs in utf8n_to_uvchr_msgs()
833 if (( msgs in utf8n_to_uvchr_msgs()
851 if (( msgs in utf8n_to_uvchr_msgs()
872 if (( msgs in utf8n_to_uvchr_msgs()
892 && (msgs || ckWARN_d(WARN_SURROGATE))) in utf8n_to_uvchr_msgs()
[all …]
/openbsd/src/sys/dev/pci/drm/i915/display/
Dintel_gmbus.c687 gmbus_is_index_xfer(struct i2c_msg *msgs, int i, int num) in gmbus_is_index_xfer() argument
690 msgs[i].addr == msgs[i + 1].addr && in gmbus_is_index_xfer()
691 !(msgs[i].flags & I2C_M_RD) && in gmbus_is_index_xfer()
692 (msgs[i].len == 1 || msgs[i].len == 2) && in gmbus_is_index_xfer()
693 msgs[i + 1].len > 0); in gmbus_is_index_xfer()
697 gmbus_index_xfer(struct drm_i915_private *i915, struct i2c_msg *msgs, in gmbus_index_xfer() argument
704 if (msgs[0].len == 2) in gmbus_index_xfer()
706 msgs[0].buf[1] | (msgs[0].buf[0] << 8); in gmbus_index_xfer()
707 if (msgs[0].len == 1) in gmbus_index_xfer()
709 (msgs[0].buf[0] << GMBUS_SLAVE_INDEX_SHIFT); in gmbus_index_xfer()
[all …]
Dintel_hdcp.c1510 } msgs; in hdcp2_authentication_key_exchange() local
1519 ret = hdcp2_prepare_ake_init(connector, &msgs.ake_init); in hdcp2_authentication_key_exchange()
1523 ret = shim->write_2_2_msg(connector, &msgs.ake_init, in hdcp2_authentication_key_exchange()
1524 sizeof(msgs.ake_init)); in hdcp2_authentication_key_exchange()
1529 &msgs.send_cert, sizeof(msgs.send_cert)); in hdcp2_authentication_key_exchange()
1533 if (msgs.send_cert.rx_caps[0] != HDCP_2_2_RX_CAPS_VERSION_VAL) { in hdcp2_authentication_key_exchange()
1538 hdcp->is_repeater = HDCP_2_2_RX_REPEATER(msgs.send_cert.rx_caps[2]); in hdcp2_authentication_key_exchange()
1541 msgs.send_cert.cert_rx.receiver_id, in hdcp2_authentication_key_exchange()
1551 ret = hdcp2_verify_rx_cert_prepare_km(connector, &msgs.send_cert, in hdcp2_authentication_key_exchange()
1553 &msgs.no_stored_km, &size); in hdcp2_authentication_key_exchange()
[all …]
Dintel_sdvo.c256 struct i2c_msg msgs[] = { in intel_sdvo_read_byte() local
272 if ((ret = i2c_transfer(intel_sdvo->i2c, msgs, 2)) == 2) in intel_sdvo_read_byte()
469 struct i2c_msg *msgs; in __intel_sdvo_write_cmd() local
477 msgs = kcalloc(args_len + 3, sizeof(*msgs), GFP_KERNEL); in __intel_sdvo_write_cmd()
478 if (!msgs) { in __intel_sdvo_write_cmd()
486 msgs[i].addr = intel_sdvo->target_addr; in __intel_sdvo_write_cmd()
487 msgs[i].flags = 0; in __intel_sdvo_write_cmd()
488 msgs[i].len = 2; in __intel_sdvo_write_cmd()
489 msgs[i].buf = buf + 2 *i; in __intel_sdvo_write_cmd()
493 msgs[i].addr = intel_sdvo->target_addr; in __intel_sdvo_write_cmd()
[all …]
Ddvo_sil164.c80 struct i2c_msg msgs[] = { in sil164_readb() local
98 if (i2c_transfer(adapter, msgs, 2) == 2) { in sil164_readb()
Ddvo_tfp410.c101 struct i2c_msg msgs[] = { in tfp410_readb() local
119 if (i2c_transfer(adapter, msgs, 2) == 2) { in tfp410_readb()
Ddvo_ch7xxx.c154 struct i2c_msg msgs[] = { in ch7xxx_readb() local
172 if (i2c_transfer(adapter, msgs, 2) == 2) { in ch7xxx_readb()
Ddvo_ch7017.c171 struct i2c_msg msgs[] = { in ch7017_read() local
185 return i2c_transfer(dvo->i2c_bus, msgs, 2) == 2; in ch7017_read()
/openbsd/src/usr.sbin/pkg_add/OpenBSD/
DLog.pm79 my $msgs = $self->{errmessages}{$ctxt};
80 if (@$msgs > 0) {
82 $self->{p}->_errprint(@$msgs);
87 my $msgs = $self->{messages}{$ctxt};
88 if (@$msgs > 0) {
90 $self->{p}->_print(@$msgs);
/openbsd/src/gnu/usr.bin/perl/cpan/Test-Simple/lib/Test/Tester/
DCapture.pm155 my($self, @msgs) = @_;
156 return unless @msgs;
164 foreach (@msgs) {
168 push @msgs, "\n" unless $msgs[-1] =~ /\n\Z/;
172 $result->{diag} .= join("", @msgs);
/openbsd/src/gnu/usr.bin/perl/
Dutf8.c206 Perl_uvoffuni_to_utf8_flags_msgs(pTHX_ U8 *d, UV input_uv, UV flags, HV** msgs) in Perl_uvoffuni_to_utf8_flags_msgs() argument
214 if (msgs) { in Perl_uvoffuni_to_utf8_flags_msgs()
215 *msgs = NULL; in Perl_uvoffuni_to_utf8_flags_msgs()
234 if (msgs) { in Perl_uvoffuni_to_utf8_flags_msgs()
235 *msgs = new_msg_hv(Perl_form(aTHX_ format, input_uv), in Perl_uvoffuni_to_utf8_flags_msgs()
277 if (msgs) { in Perl_uvoffuni_to_utf8_flags_msgs()
278 *msgs = new_msg_hv(Perl_form(aTHX_ format, input_uv), in Perl_uvoffuni_to_utf8_flags_msgs()
309 if (msgs) { in Perl_uvoffuni_to_utf8_flags_msgs()
310 *msgs = new_msg_hv(Perl_form(aTHX_ format, input_uv), in Perl_uvoffuni_to_utf8_flags_msgs()
326 if (msgs) { in Perl_uvoffuni_to_utf8_flags_msgs()
[all …]
/openbsd/src/sys/dev/pci/drm/radeon/
Dradeon_i2c.c45 struct i2c_msg msgs[] = { in radeon_ddc_probe() local
65 ret = i2c_transfer(&radeon_connector->ddc_bus->aux.ddc, msgs, 2); in radeon_ddc_probe()
67 ret = i2c_transfer(&radeon_connector->ddc_bus->adapter, msgs, 2); in radeon_ddc_probe()
421 struct i2c_msg *msgs, int num) in r100_hw_i2c_xfer() argument
558 p = &msgs[0]; in r100_hw_i2c_xfer()
590 p = &msgs[i]; in r100_hw_i2c_xfer()
674 struct i2c_msg *msgs, int num) in r500_hw_i2c_xfer() argument
761 p = &msgs[0]; in r500_hw_i2c_xfer()
798 p = &msgs[i]; in r500_hw_i2c_xfer()
907 struct i2c_msg *msgs, int num) in radeon_hw_i2c_xfer() argument
[all …]
Datombios_i2c.c101 struct i2c_msg *msgs, int num) in radeon_atom_hw_i2c_xfer() argument
109 p = &msgs[0]; in radeon_atom_hw_i2c_xfer()
121 p = &msgs[i]; in radeon_atom_hw_i2c_xfer()
/openbsd/src/gnu/usr.bin/perl/cpan/Encode/Unicode/
DUnicode.xs436 AV *msgs = NULL; variable
437 …msgs(s, e-s, &len, UTF8_DISALLOW_ILLEGAL_INTERCHANGE | UTF8_WARN_ILLEGAL_INTERCHANGE, NULL, &msgs);
438 if (msgs) {
440 SSize_t len = av_len(msgs)+1;
441 sv_2mortal((SV *)msgs);
443 SV *sv = *av_fetch(msgs, i, 0);
/openbsd/src/lib/libc/nls/
Dcatopen.c221 int hdr_offset, i, index, j, msgs, nmsgs, nsets, off, txt_offset; in verify_msgcat() local
261 msgs = index + nmsgs; in verify_msgcat()
264 if ((remain - hdr_offset) / sizeof(*msg) < msgs) in verify_msgcat()
/openbsd/src/usr.sbin/sasyncd/
Dnet.c290 SIMPLEQ_INIT(&p->msgs); in net_init()
314 SIMPLEQ_INSERT_TAIL(&p->msgs, qm, next); in net_enqueue()
428 if (p->socket > -1 && SIMPLEQ_FIRST(&p->msgs)) { in net_set_pending_wfds()
580 qm = SIMPLEQ_FIRST(&p->msgs); in net_send_messages()
602 SIMPLEQ_REMOVE_HEAD(&p->msgs, next); in net_send_messages()
634 while ((qm = SIMPLEQ_FIRST(&p->msgs))) { in net_shutdown()
635 SIMPLEQ_REMOVE_HEAD(&p->msgs, next); in net_shutdown()
Dnet.h42 SIMPLEQ_HEAD(, qmsg) msgs;
/openbsd/src/sys/dev/pci/drm/amd/display/amdgpu_dm/
Damdgpu_dm_helpers.c596 struct i2c_msg *msgs; in dm_helpers_submit_i2c() local
606 msgs = kcalloc(num, sizeof(struct i2c_msg), GFP_KERNEL); in dm_helpers_submit_i2c()
608 if (!msgs) in dm_helpers_submit_i2c()
612 msgs[i].flags = cmd->payloads[i].write ? 0 : I2C_M_RD; in dm_helpers_submit_i2c()
613 msgs[i].addr = cmd->payloads[i].address; in dm_helpers_submit_i2c()
614 msgs[i].len = cmd->payloads[i].length; in dm_helpers_submit_i2c()
615 msgs[i].buf = cmd->payloads[i].data; in dm_helpers_submit_i2c()
618 result = i2c_transfer(&aconnector->i2c->base, msgs, num) == num; in dm_helpers_submit_i2c()
620 kfree(msgs); in dm_helpers_submit_i2c()
/openbsd/src/usr.bin/talk/
DMakefile7 init_disp.c invite.c io.c look_up.c msgs.c talk.c
/openbsd/src/sys/dev/pci/drm/
Ddrm_linux.c1176 i2c_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) in i2c_master_xfer() argument
1186 op = (msgs->flags & I2C_M_RD) ? I2C_OP_READ : I2C_OP_WRITE; in i2c_master_xfer()
1187 err = iic_exec(&adap->ic, op, msgs->addr, NULL, 0, in i2c_master_xfer()
1188 msgs->buf, msgs->len, 0); in i2c_master_xfer()
1193 msgs++; in i2c_master_xfer()
1199 cmd = msgs->buf; in i2c_master_xfer()
1200 cmdlen = msgs->len; in i2c_master_xfer()
1201 msgs++; in i2c_master_xfer()
1206 op = (msgs->flags & I2C_M_RD) ? in i2c_master_xfer()
1208 err = iic_exec(&adap->ic, op, msgs->addr, cmd, cmdlen, in i2c_master_xfer()
[all …]
/openbsd/src/usr.sbin/nsd/
Dserver.c201 static struct mmsghdr msgs[NUM_RECV_PER_SELECT]; variable
3273 memset(msgs, 0, sizeof(msgs)); in server_verify()
3281 msgs[i].msg_hdr.msg_iov = &iovecs[i]; in server_verify()
3282 msgs[i].msg_hdr.msg_iovlen = 1; in server_verify()
3283 msgs[i].msg_hdr.msg_name = &queries[i]->remote_addr; in server_verify()
3284 msgs[i].msg_hdr.msg_namelen = queries[i]->remote_addrlen; in server_verify()
3427 memset(msgs, 0, sizeof(msgs)); in server_child()
3435 msgs[i].msg_hdr.msg_iov = &iovecs[i]; in server_child()
3436 msgs[i].msg_hdr.msg_iovlen = 1; in server_child()
3437 msgs[i].msg_hdr.msg_name = &queries[i]->remote_addr; in server_child()
[all …]
/openbsd/src/gnu/usr.bin/perl/cpan/Test-Simple/lib/Test/
DBuilder.pm1766 my( $self, $fh, @msgs ) = @_;
1769 return unless @msgs;
1776 my $msg = join '', map { defined($_) ? $_ : 'undef' } @msgs;
2251 $Test->diag(@msgs);
2253 Prints out the given C<@msgs>. Like C<print>, arguments are simply
2275 $Test->note(@msgs);
2282 my @dump = $Test->explain(@msgs);

123