Home
last modified time | relevance | path

Searched refs:cm (Results 1 – 25 of 112) sorted by relevance

12345

/openbsd/sys/kern/
H A Dsubr_percpu.c39 struct cpumem *cm; in cpumem_get() local
47 return (cm); in cpumem_get()
64 struct cpumem *cm; in cpumem_malloc() local
74 return (cm); in cpumem_malloc()
80 struct cpumem *cm; in cpumem_malloc_ncpus() local
91 return (cm); in cpumem_malloc_ncpus()
129 struct cpumem *cm; in counters_alloc() local
144 return (cm); in counters_alloc()
256 pool_put(pp, cm); in cpumem_put()
268 return (cm); in cpumem_malloc_ncpus()
[all …]
H A Duipc_usrreq.c1058 if (cm->cmsg_type != SCM_RIGHTS || cm->cmsg_level != SOL_SOCKET) in unp_externalize()
1061 nfds = (cm->cmsg_len - CMSG_ALIGN(sizeof(*cm))) / in unp_externalize()
1073 rp = (struct fdpass *)CMSG_DATA(cm); in unp_externalize()
1228 if (cm->cmsg_type != SCM_RIGHTS || cm->cmsg_level != SOL_SOCKET || in unp_internalize()
1232 nfds = (cm->cmsg_len - CMSG_ALIGN(sizeof(*cm))) / sizeof (int); in unp_internalize()
1268 memcpy(cm, tmp, control->m_len); in unp_internalize()
1500 struct cmsghdr *cm; in unp_scan() local
1506 m->m_len >= sizeof(*cm)) { in unp_scan()
1507 cm = mtod(m, struct cmsghdr *); in unp_scan()
1509 cm->cmsg_type != SCM_RIGHTS) in unp_scan()
[all …]
/openbsd/sys/sys/
H A Dpercpu.h64 cpumem_enter(struct cpumem *cm) in cpumem_enter() argument
67 return (cm[cpu_number()].mem); in cpumem_enter()
69 return (cm); in cpumem_enter()
123 ref->c = cpumem_enter(cm); in counters_enter()
140 cpumem_leave(cm, ref->c); in counters_leave()
149 counters = counters_enter(&ref, cm); in counters_inc()
151 counters_leave(&ref, cm); in counters_inc()
160 counters = counters_enter(&ref, cm); in counters_dec()
162 counters_leave(&ref, cm); in counters_dec()
173 counters_leave(&ref, cm); in counters_add()
[all …]
/openbsd/sys/dev/ic/
H A Daac.c529 cm->cm_data, cm->cm_datalen, NULL, in aac_map_command()
534 aac_map_command_sg(cm, cm->cm_datamap->dm_segs, in aac_map_command()
677 cm->cm_complete(cm); in aac_complete()
680 wakeup(cm); in aac_complete()
789 *cmp = cm; in aac_bio_command()
882 return (cm); in aac_alloc_command()
1073 cm->cm_fib->Header.ReceiverFibAddress = cm->cm_fibphys; in aac_map_command_sg()
1076 cm->cm_fib->Header.SenderData = cm->cm_index; in aac_map_command_sg()
1089 if (aac_enqueue_fib(sc, cm->cm_queue, cm) == EBUSY) { in aac_map_command_sg()
1788 sc->aac_dev.dv_xname, cm, cm->cm_flags, in aac_command_timeout()
[all …]
H A Daacvar.h497 cm, cm->cm_flags); \
500 TAILQ_INSERT_TAIL(&cm->cm_sc->aac_ ## name, cm, cm_link); \
502 AACQ_ADD(cm->cm_sc, index); \
510 cm, cm->cm_flags); \
513 TAILQ_INSERT_HEAD(&cm->cm_sc->aac_ ## name, cm, cm_link); \
515 AACQ_ADD(cm->cm_sc, index); \
520 struct aac_command *cm; \
526 "bit = %#x\n", cm, cm->cm_flags, \
534 return(cm); \
542 "bit = %#x\n", cm, cm->cm_flags, \
[all …]
/openbsd/usr.sbin/npppd/common/
H A Drecvfromto.c53 struct cmsghdr *cm; in recvfromto_nat_t() local
72 cm = (struct cmsghdr *)cmsgbuf; in recvfromto_nat_t()
73 m.msg_control = (caddr_t)cm; in recvfromto_nat_t()
87 m.msg_controllen != 0 && cm; in recvfromto_nat_t()
88 cm = (struct cmsghdr *)CMSG_NXTHDR(&m, cm)) { in recvfromto_nat_t()
90 && cm->cmsg_level == IPPROTO_IPV6 in recvfromto_nat_t()
91 && cm->cmsg_type == IPV6_PKTINFO in recvfromto_nat_t()
115 && cm->cmsg_level == IPPROTO_IP in recvfromto_nat_t()
125 && cm->cmsg_level == IPPROTO_IP in recvfromto_nat_t()
126 && cm->cmsg_type == IP_PKTINFO in recvfromto_nat_t()
[all …]
/openbsd/lib/libc/string/
H A Dstrcasecmp.c79 const u_char *cm = charmap; in strcasecmp() local
83 while (cm[*us1] == cm[*us2++]) in strcasecmp()
86 return (cm[*us1] - cm[*--us2]); in strcasecmp()
94 const u_char *cm = charmap; in strncasecmp() local
99 if (cm[*us1] != cm[*us2++]) in strncasecmp()
100 return (cm[*us1] - cm[*--us2]); in strncasecmp()
/openbsd/sys/net/
H A Dwg_cookie.c161 bzero(cm->mac2, COOKIE_MAC_SIZE); in cookie_maker_mac()
226 blake2s_final(&state, cm->mac1); in cookie_macs_mac1()
237 blake2s_final(&state, cm->mac2); in cookie_macs_mac2()
574 struct cookie_macs cm; in cookie_mac_test() local
607 for (i = 0; i < sizeof(cm.mac2); i++) in cookie_mac_test()
608 if (cm.mac2[i] != 0) in cookie_mac_test()
613 cm.mac1[i] = ~cm.mac1[i]; in cookie_mac_test()
617 cm.mac1[i] = ~cm.mac1[i]; in cookie_mac_test()
622 for (i = 0; i < sizeof(cm.mac2); i++) in cookie_mac_test()
623 res |= cm.mac2[i]; in cookie_mac_test()
[all …]
/openbsd/sys/dev/pci/drm/amd/display/dc/dml/dsc/
H A Drc_calc_fpu.c34 (cm == CM_444 || cm == CM_RGB) ? (val444) : (cm == CM_422 ? (val422) : (val420))
64 static void get_qp_set(qp_set qps, enum colour_mode cm, enum bits_per_comp bpc, in get_qp_set() argument
166 enum colour_mode cm, in _do_calc_rc_params() argument
194 switch (cm) { in _do_calc_rc_params()
213 initial_xmit_delay_factor = (cm == CM_444 || cm == CM_RGB) ? 1.0 : 2.0; in _do_calc_rc_params()
216 if (cm == CM_422 || cm == CM_420) in _do_calc_rc_params()
220 if (3 * bpp_group >= (((rc->initial_xmit_delay + 2) / 3) * (3 + (cm == CM_422)))) { in _do_calc_rc_params()
229 get_qp_set(rc->qp_min, cm, bpc, DAL_MM_MIN, bpp); in _do_calc_rc_params()
230 get_qp_set(rc->qp_max, cm, bpc, DAL_MM_MAX, bpp); in _do_calc_rc_params()
231 if (cm == CM_444 && minor_version == 1) { in _do_calc_rc_params()
[all …]
/openbsd/gnu/usr.bin/perl/vos/
H A DChanges21 Updated "config.alpha.def", "config.ga.def", "build.cm" and
25 Updated "config.alpha.def", "config.ga.def", "build.cm", and
26 "install_perl.cm" to use directory naming conventions that
29 Added "compile_full_perl.cm", "configure_full_perl.sh" and
37 Updated "build.cm" and "compile_perl.cm" to build perl using
48 Updated "build.cm" to build perl using either the alpha or GA
51 Updated "compile_perl.cm" to use either the alpha or GA
54 one for each version. Use the configure_perl.cm macro
78 Updated "build.cm".
79 Updated "compile_perl.cm".
[all …]
/openbsd/sys/dev/sbus/
H A Dvigra.c320 struct wsdisplay_cmap *cm; in vigra_ioctl() local
342 cm = (struct wsdisplay_cmap *)data; in vigra_ioctl()
348 cm = (struct wsdisplay_cmap *)data; in vigra_ioctl()
354 vigra_loadcmap_deferred(sc, cm->index, cm->count); in vigra_ioctl()
356 vigra_loadcmap_immediate(sc, cm->index, cm->count); in vigra_ioctl()
444 if ((error = copyout(&cm->cm_map[index + i][2], in vigra_getcmap()
463 &cm->cm_map[index + i][3], 1)) != 0) in vigra_putcmap()
466 &cm->cm_map[index + i][1], 1)) != 0) in vigra_putcmap()
472 &cm->cm_map[index + i][1], 1)) != 0) in vigra_putcmap()
475 &cm->cm_map[index + i][3], 1)) != 0) in vigra_putcmap()
[all …]
H A Dagten.c226 struct wsdisplay_cmap *cm; in agten_ioctl() local
249 cm = (struct wsdisplay_cmap *)data; in agten_ioctl()
250 error = agten_getcmap(&sc->sc_cmap, cm); in agten_ioctl()
257 cm = (struct wsdisplay_cmap *)data; in agten_ioctl()
258 error = agten_putcmap(&sc->sc_cmap, cm); in agten_ioctl()
315 agten_getcmap(struct agten_cmap *cm, struct wsdisplay_cmap *rcm) in agten_getcmap() argument
323 if ((error = copyout(&cm->cm_red[index], rcm->red, count)) != 0) in agten_getcmap()
327 if ((error = copyout(&cm->cm_blue[index], rcm->blue, count)) != 0) in agten_getcmap()
334 agten_putcmap(struct agten_cmap *cm, struct wsdisplay_cmap *rcm) in agten_putcmap() argument
342 if ((error = copyin(rcm->red, &cm->cm_red[index], count)) != 0) in agten_putcmap()
[all …]
H A Drfx.c311 struct wsdisplay_cmap *cm; in rfx_ioctl() local
333 cm = (struct wsdisplay_cmap *)data; in rfx_ioctl()
334 error = rfx_getcmap(&sc->sc_cmap, cm); in rfx_ioctl()
339 cm = (struct wsdisplay_cmap *)data; in rfx_ioctl()
340 error = rfx_putcmap(&sc->sc_cmap, cm); in rfx_ioctl()
343 rfx_loadcmap(sc, cm->index, cm->count); in rfx_ioctl()
405 rfx_getcmap(struct rfx_cmap *cm, struct wsdisplay_cmap *rcm) in rfx_getcmap() argument
424 rfx_putcmap(struct rfx_cmap *cm, struct wsdisplay_cmap *rcm) in rfx_putcmap() argument
440 bcopy(red, cm->red + index, count); in rfx_putcmap()
441 bcopy(green, cm->green + index, count); in rfx_putcmap()
[all …]
H A Dmgx.c349 struct wsdisplay_cmap *cm; in mgx_ioctl() local
371 cm = (struct wsdisplay_cmap *)data; in mgx_ioctl()
372 error = mgx_getcmap(sc->sc_cmap, cm); in mgx_ioctl()
377 cm = (struct wsdisplay_cmap *)data; in mgx_ioctl()
378 error = mgx_putcmap(sc->sc_cmap, cm); in mgx_ioctl()
381 mgx_loadcmap(sc, cm->index, cm->count); in mgx_ioctl()
485 copyout(cm + index++, &rcm->red[i], 1)) != 0) in mgx_getcmap()
491 copyout(cm + index++, &rcm->blue[i], 1)) != 0) in mgx_getcmap()
510 copyin(&rcm->red[i], cm + index++, 1)) != 0) in mgx_putcmap()
513 copyin(&rcm->green[i], cm + index++, 1)) != 0) in mgx_putcmap()
[all …]
/openbsd/sys/lib/libsa/
H A Dsoftraid.c111 sr_crypto_decrypt_keys(struct sr_meta_crypto *cm, in sr_crypto_decrypt_keys() argument
123 cp = (u_int8_t *)cm->scm_key; in sr_crypto_decrypt_keys()
141 sr_crypto_passphrase_decrypt(struct sr_meta_crypto *cm, in sr_crypto_passphrase_decrypt() argument
149 kdfhint = (struct sr_crypto_pbkdf *)&cm->scm_kdfhint; in sr_crypto_passphrase_decrypt()
207 if (sr_crypto_decrypt_keys(cm, kdfinfo, kp) == 0) { in sr_crypto_passphrase_decrypt()
224 struct sr_meta_crypto *cm; in sr_crypto_unlock_volume() local
241 cm = (struct sr_meta_crypto *)omi->omi_som; in sr_crypto_unlock_volume()
242 kdfhint = (struct sr_crypto_pbkdf *)&cm->scm_kdfhint; in sr_crypto_unlock_volume()
244 switch (cm->scm_mask_alg) { in sr_crypto_unlock_volume()
249 cm->scm_mask_alg); in sr_crypto_unlock_volume()
[all …]
/openbsd/sys/dev/ofw/
H A Dofw_thermal.c241 if (cm == NULL) in cmap_deactivate()
244 cdev = cm->cm_cdev; in cmap_deactivate()
263 if (cm == NULL) in cmap_activate()
266 cdev = cm->cm_cdev; in cmap_activate()
347 cm = tz->tz_cmaps; in thermal_zone_poll()
350 newcm = cm; in thermal_zone_poll()
353 cm++; in thermal_zone_poll()
401 struct cmap *cm; in thermal_zone_init() local
487 cm->cm_cdevend = cm->cm_cdev + len / sizeof(uint32_t); in thermal_zone_init()
489 cm++; in thermal_zone_init()
[all …]
/openbsd/sys/arch/macppc/pci/
H A Dvgafb.c218 struct wsdisplay_cmap *cm; in vgafb_ioctl() local
239 cm = (struct wsdisplay_cmap *)data; in vgafb_ioctl()
245 cm = (struct wsdisplay_cmap *)data; in vgafb_ioctl()
250 of_setcolors(sc->sc_cmap, cm->index, cm->count); in vgafb_ioctl()
369 uint index = cm->index, count = cm->count, i; in vgafb_getcmap()
382 rc = copyout(ramp, cm->red, count); in vgafb_getcmap()
398 rc = copyout(ramp, cm->blue, count); in vgafb_getcmap()
408 uint index = cm->index, count = cm->count, i; in vgafb_putcmap()
417 rc = copyin(cm->red, ramp, count); in vgafb_putcmap()
425 rc = copyin(cm->green, ramp, count); in vgafb_putcmap()
[all …]
/openbsd/gnu/usr.bin/cvs/src/
H A Dmain.c316 const struct cmd *cm; local
318 for (cm = cmds; cm->fullname; cm++)
320 if (strcmp (cmd_name, cm->fullname) == 0)
323 return cm->attr;
386 const struct cmd *cm; local
656 for (cm = cmds; cm->fullname; cm++)
658 if (cm->nick1 && !strcmp (command_name, cm->nick1))
660 if (cm->nick2 && !strcmp (command_name, cm->nick2))
666 if (!cm->fullname)
677 err = (*(cm->func)) (argc, argv);
[all …]
/openbsd/libexec/tradcpp/
H A Dmain.c111 struct commandline_macro *cm; in commandline_macros_cleanup() local
116 dofree(cm, sizeof(*cm)); in commandline_macros_cleanup()
130 cm = domalloc(sizeof(*cm)); in commandline_macro_add()
131 cm->where = *p; in commandline_macro_add()
132 cm->where2 = *p2; in commandline_macro_add()
133 cm->macro = macro; in commandline_macro_add()
134 cm->expansion = expansion; in commandline_macro_add()
188 macro_define_plain(&cm->where, cm->macro, in apply_commandline_macros()
189 &cm->where2, cm->expansion); in apply_commandline_macros()
191 macro_undef(cm->macro); in apply_commandline_macros()
[all …]
/openbsd/usr.sbin/dhcpd/
H A Dudpsock.c92 struct cmsghdr *cm; in udpsock_handler() local
127 for (cm = (struct cmsghdr *)CMSG_FIRSTHDR(&m); in udpsock_handler()
128 m.msg_controllen != 0 && cm; in udpsock_handler()
129 cm = (struct cmsghdr *)CMSG_NXTHDR(&m, cm)) { in udpsock_handler()
130 if (cm->cmsg_level == IPPROTO_IP && in udpsock_handler()
131 cm->cmsg_type == IP_RECVIF) in udpsock_handler()
132 sdl = (struct sockaddr_dl *)CMSG_DATA(cm); in udpsock_handler()
/openbsd/sys/arch/loongson/dev/
H A Dsisfb.c290 struct wsdisplay_cmap *cm; in sisfb_ioctl() local
311 cm = (struct wsdisplay_cmap *)data; in sisfb_ioctl()
312 rc = sisfb_getcmap(fb->cmap, cm); in sisfb_ioctl()
317 cm = (struct wsdisplay_cmap *)data; in sisfb_ioctl()
318 rc = sisfb_putcmap(fb->cmap, cm); in sisfb_ioctl()
322 sisfb_loadcmap(fb, cm->index, cm->count); in sisfb_ioctl()
516 uint index = cm->index, count = cm->count, i; in sisfb_getcmap()
529 rc = copyout(ramp, cm->red, count); in sisfb_getcmap()
555 uint index = cm->index, count = cm->count, i; in sisfb_putcmap()
564 rc = copyin(cm->red, ramp, count); in sisfb_putcmap()
[all …]
/openbsd/sbin/slaacd/
H A Dfrontend.c136 struct cmsghdr *cm; in frontend() local
222 cm = CMSG_FIRSTHDR(&sndmhdr); in frontend()
224 cm->cmsg_level = IPPROTO_IPV6; in frontend()
225 cm->cmsg_type = IPV6_PKTINFO; in frontend()
231 cm = CMSG_NXTHDR(&sndmhdr, cm); in frontend()
232 cm->cmsg_level = IPPROTO_IPV6; in frontend()
233 cm->cmsg_type = IPV6_HOPLIMIT; in frontend()
925 struct cmsghdr *cm; in icmp6_receive() local
947 for (cm = (struct cmsghdr *)CMSG_FIRSTHDR(&icmp6ev->rcvmhdr); cm; in icmp6_receive()
948 cm = (struct cmsghdr *)CMSG_NXTHDR(&icmp6ev->rcvmhdr, cm)) { in icmp6_receive()
[all …]
/openbsd/sys/arch/sparc64/dev/
H A Dvgafb.c261 vgafb_getcmap(struct vgafb_softc *sc, struct wsdisplay_cmap *cm) in vgafb_getcmap() argument
263 u_int index = cm->index; in vgafb_getcmap()
264 u_int count = cm->count; in vgafb_getcmap()
270 error = copyout(&sc->sc_cmap_red[index], cm->red, count); in vgafb_getcmap()
273 error = copyout(&sc->sc_cmap_green[index], cm->green, count); in vgafb_getcmap()
276 error = copyout(&sc->sc_cmap_blue[index], cm->blue, count); in vgafb_getcmap()
283 vgafb_putcmap(struct vgafb_softc *sc, struct wsdisplay_cmap *cm) in vgafb_putcmap() argument
285 u_int index = cm->index; in vgafb_putcmap()
286 u_int count = cm->count; in vgafb_putcmap()
294 if ((error = copyin(cm->red, &sc->sc_cmap_red[index], count)) != 0) in vgafb_putcmap()
[all …]
/openbsd/gnu/usr.bin/perl/cpan/IO-Compress/lib/IO/Uncompress/
H A DInflate.pm114 my $cm = bits($CMF, ZLIB_CMF_CM_OFFSET, ZLIB_CMF_CM_BITS) ;
117 return $self->HeaderError("Not Deflate (CM is $cm)")
118 if $cm != ZLIB_CMF_CM_DEFLATED ;
159 my $cm = bits($CMF, ZLIB_CMF_CM_OFFSET, ZLIB_CMF_CM_BITS) ;
160 $cm == ZLIB_CMF_CM_DEFLATED
161 or return $self->HeaderError("Not Deflate (CM is $cm)") ;
/openbsd/sbin/ping/
H A Dping.c1847 struct cmsghdr *cm; in pr_exthdrs() local
1849 for (cm = (struct cmsghdr *)CMSG_FIRSTHDR(mhdr); cm; in pr_exthdrs()
1850 cm = (struct cmsghdr *)CMSG_NXTHDR(mhdr, cm)) { in pr_exthdrs()
1955 struct cmsghdr *cm; in get_hoplim() local
1957 for (cm = (struct cmsghdr *)CMSG_FIRSTHDR(mhdr); cm; in get_hoplim()
1958 cm = (struct cmsghdr *)CMSG_NXTHDR(mhdr, cm)) { in get_hoplim()
1959 if (cm->cmsg_len == 0) in get_hoplim()
1974 struct cmsghdr *cm; in get_pathmtu() local
1977 for (cm = (struct cmsghdr *)CMSG_FIRSTHDR(mhdr); cm; in get_pathmtu()
1978 cm = (struct cmsghdr *)CMSG_NXTHDR(mhdr, cm)) { in get_pathmtu()
[all …]

12345