| /freebsd/sys/contrib/device-tree/Bindings/iio/addac/ |
| H A D | adi,ad74413r.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Cosmin Tanislav <cosmin.tanislav@analog.com> 13 The AD74412R and AD74413R are quad-channel software configurable input/output 18 The devices feature a 16-bit ADC and four configurable 13-bit DACs to provide 20 The AD74413R differentiates itself from the AD74412R by being HART-compatible. 27 - adi,ad74412r 28 - adi,ad74413r 33 '#address-cells': [all …]
|
| /freebsd/tools/regression/sockets/kqueue/ |
| H A D | kqueue.c | 1 /*- 41 /*- 48 * - Test read/write filters for listen/accept sockets. 49 * - Handle the XXXRW below regarding datagram sockets. 50 * - Test that watermark/buffer size "data" fields returned by kqueue are 52 * - Check that kqueue does something sensible when the remote endpoing is 56 #define OK(testname) printf("ok %d - %s\n", curtest, testname); \ 60 fail(int error, const char *func, const char *socktype, const char *rest) in fail() argument 66 printf("# %s(): %s\n", func, strerror(error)); in fail() 68 printf("# %s(%s): %s\n", func, socktype, in fail() [all …]
|
| /freebsd/sys/dev/sound/pci/ |
| H A D | emu10kx.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 5 * Copyright (c) 2003-2007 Yuriy Tsibizov <yuriy.tsibizov@gfk.ru> 96 #define GPR(i) (sc->gpr_base+(i)) 97 #define INP(i) (sc->input_base+(i)) 98 #define OUTP(i) (sc->output_base+(i)) 100 #define FX2(i) (sc->efxc_base+(i)) 101 #define DSP_CONST(i) (sc->dsp_zero+(i)) 160 /* Live! 5.1 Digital, non-standard 5.1 (center & sub) outputs */ 430 if (mtx_owned(&sc->rw)) { \ [all …]
|
| H A D | csapcm.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 9 * Copyright (c) 1996-1998 Crystal Semiconductor Corp. 80 /* -------------------------------------------------------------------- */ 118 /* -------------------------------------------------------------------- */ 125 old = csa->active; in csa_active() 126 csa->active += run; in csa_active() 128 if ((csa->active > 1) || (csa->active < -1)) in csa_active() 129 csa->active = 0; in csa_active() 130 if (csa->card->active) in csa_active() [all …]
|
| H A D | csa.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 9 * Copyright (c) 1996-1998 Crystal Semiconductor Corp. 192 subcard = card->cards; in csa_findsubcard() 211 device_set_desc(dev, card->name); in csa_probe() 222 struct sndcard_func *func; in csa_attach() local 229 scp->dev = dev; in csa_attach() 234 resp = &scp->res; in csa_attach() 235 scp->card = csa_findsubcard(dev); in csa_attach() 236 scp->binfo.card = scp->card; in csa_attach() [all …]
|
| /freebsd/contrib/ncurses/ncurses/tinfo/ |
| H A D | lib_tputs.c | 2 * Copyright 2018-2022,2023 Thomas E. Dickey * 3 * Copyright 1998-2016,2017 Free Software Foundation, Inc. * 31 * Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995 * 33 * and: Thomas E. Dickey 1996-on * 69 sp->_no_padding = no_padding; in _nc_set_no_padding() 79 #define SetOutCh(func) if (SP_PARM) SP_PARM->_outch = func; else _nc_prescreen._outch = func argument 80 #define GetOutCh() (SP_PARM ? SP_PARM->_outch : _nc_prescreen._outch) 82 #define SetOutCh(func) static_outch = func argument 106 for (_nc_nulls_sent += nullcount; nullcount > 0; nullcount--) in NCURSES_SP_NAME() 127 if (SP_PARM != 0 && SP_PARM->_ofd >= 0) { in NCURSES_SP_NAME() [all …]
|
| /freebsd/stand/libsa/ |
| H A D | printf.c | 1 /*- 52 static int kvprintf(char const *fmt, kvprintf_fn_t *func, void *arg, int radix, va_list ap); 99 snprint_func(int ch, void *arg) in snprint_func() argument 103 if (pbuf->size < 2) { in snprint_func() 110 *(pbuf->buf)++ = ch; in snprint_func() 111 pbuf->size--; in snprint_func() 126 return (-1); in asprintf() 131 return (-1); in asprintf() 190 * Put a NUL-terminated ASCII number (base <= 36) in a buffer in reverse 207 *lenp = p - nbuf; in ksprintn() [all …]
|
| /freebsd/sys/netpfil/ipfw/ |
| H A D | ip_fw_table.h | 1 /*- 2 * Copyright (c) 2002-2009 Luigi Rizzo, Universita` di Pisa 45 #define CHAIN_TO_TCFG(chain) ((struct tables_config *)(chain)->tblcfg) 51 u_long data; /* Hints for given func */ 75 typedef int (ta_init)(struct ip_fw_chain *ch, void **ta_state, 78 typedef int (ta_prepare_add)(struct ip_fw_chain *ch, struct tentry_info *tei, 80 typedef int (ta_prepare_del)(struct ip_fw_chain *ch, struct tentry_info *tei, 86 typedef void (ta_flush_entry)(struct ip_fw_chain *ch, struct tentry_info *tei, 145 int ipfw_add_table_algo(struct ip_fw_chain *ch, struct table_algo *ta, 147 void ipfw_del_table_algo(struct ip_fw_chain *ch, int idx); [all …]
|
| H A D | ip_fw_table_value.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2014-2025 Yandex LLC 31 * Multi-field value support for ipfw tables. 34 * large multi-field values into u32 indices suitable to be fed 66 static int list_table_values(struct ip_fw_chain *ch, ip_fw3_opheader *op3, 73 #define CHAIN_TO_VI(chain) (CHAIN_TO_TCFG(chain)->valhash) 80 #define VALDATA_START_SIZE 64 /* Allocate 64-items array by default */ 84 struct ip_fw_chain *ch; member 101 return (memcmp(((struct table_val_link *)no)->pval, key, 56)); in cmp_table_value() [all …]
|
| /freebsd/usr.bin/printf/ |
| H A D | printf.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 59 #define PF(f, func) do { \ argument 62 (void)printf(f, fieldwidth, precision, func); \ 64 (void)printf(f, fieldwidth, func); \ 66 (void)printf(f, precision, func); \ 68 (void)printf(f, func); \ 99 int ch; in main() local 106 argc -= argptr - argv; in main() 109 while ((ch = getopt(argc, argv, "")) != -1) in main() [all …]
|
| /freebsd/lib/libc/iconv/ |
| H A D | citrus_prop.c | 3 /*- 4 * SPDX-License-Identifier: BSD-2-Clause 63 obj->type = type; in _citrus_prop_object_init() 64 memset(&obj->u, 0, sizeof(obj->u)); in _citrus_prop_object_init() 71 if (obj->type == _CITRUS_PROP_STR) in _citrus_prop_object_uninit() 72 free(__DECONST(void *, obj->u.str)); in _citrus_prop_object_uninit() 83 int ch, cutlim, n; \ 90 ch = _memstream_getc(ms); \ 91 p = strchr(xdigit, _bcs_toupper(ch)); \ 92 if (p == NULL || (n = (p - xdigit)) >= base) \ [all …]
|
| /freebsd/stand/lua/ |
| H A D | menu.lua | 1 -- 2 -- SPDX-License-Identifier: BSD-2-Clause 3 -- 4 -- Copyright (c) 2015 Pedro Souza <pedrosouza@freebsd.org> 5 -- Copyright (c) 2018 Kyle Evans <kevans@FreeBSD.org> 6 -- All rights reserved. 7 -- 8 -- Redistribution and use in source and binary forms, with or without 9 -- modification, are permitted provided that the following conditions 10 -- are met: [all …]
|
| /freebsd/contrib/libedit/ |
| H A D | parse.c | 3 /*- 65 int (*func)(EditLine *, int, const wchar_t **); member 106 return -1; in el_wparse() 114 l = (size_t)(ptr - argv[0]); in el_wparse() 121 l = (size_t)el_match(el->el_prog, tprog); in el_wparse() 130 i = (*cmds[i].func) (el, argc, argv); in el_wparse() 131 return -i; in el_wparse() 133 return -1; in el_wparse() 139 * the appropriate character or -1 if the escape is not valid 150 return -1; in parse__escape() [all …]
|
| /freebsd/usr.bin/sdiotool/ |
| H A D | sdiotool.c | 1 /*- 2 * Copyright (c) 2016-2017 Ilya Bakulin 79 …() which is defined as probe function in struct sdio_driver. http://lxr.free-electrons.com/source/… 81 …e driver does black magic by copying func struct for F2 and setting func number to zero there, to … 83 …* ops_sdio_probe() then calls brcmf_sdio_probe() -- at this point it has filled in sdiodev struct … 89 …* Finally it calls brcmf_sdio_probe() http://lxr.free-electrons.com/source/drivers/net/wireless/br… 91 * Here high-level workqueues and sg tables are allocated. 96 * Then turns off PLL: byte-write BRCMF_INIT_CLKCTL1 (0x28) -> SBSDIO_FUNC1_CHIPCLKCSR (0x1000E) 100 …* http://lxr.free-electrons.com/source/drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c#L10… 101 * This func enumerates and resets all the cores on the dongle. [all …]
|
| /freebsd/sys/arm/broadcom/bcm2835/ |
| H A D | bcm2835_dma.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 34 /* DMA0-DMA15 but DMA15 is special */ 37 /* request CH for any nubmer */ 38 #define BCM_DMA_CH_INVALID (-1) 39 #define BCM_DMA_CH_ANY (-1) 57 int bcm_dma_free(int ch); 58 int bcm_dma_setup_intr(int ch, void (*func)(int, void *), void *arg); 59 int bcm_dma_setup_src(int ch, int dreq, int inc_addr, int width); 60 int bcm_dma_setup_dst(int ch, int dreq, int inc_addr, int width); [all …]
|
| H A D | bcm2835_dma.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 112 /* DMA Control Block - 256bit aligned (p.40) */ 126 static void bcm_dma_reg_dump(int ch); 131 int ch; member 154 {"broadcom,bcm2835-dma", 1}, 155 {"brcm,bcm2835-dma", 1}, 173 bcm_dma_reset(device_t dev, int ch) in bcm_dma_reset() argument 180 if (ch < 0 || ch >= BCM_DMA_CH_MAX) in bcm_dma_reset() 183 cs = bus_read_4(sc->sc_mem, BCM_DMA_CS(ch)); in bcm_dma_reset() [all …]
|
| /freebsd/contrib/ofed/libibnetdisc/ |
| H A D | ibnetdisc.c | 2 * Copyright (c) 2004-2009 Voltaire Inc. All rights reserved. 5 * Copyright (c) 2010-2011 Mellanox Technologies LTD. All rights reserved. 17 * - Redistributions of source code must retain the above 21 * - Redistributions in binary form must reproduce the above 75 memcpy(node->switchinfo, switch_info, sizeof(node->switchinfo)); in recv_switch_info() 76 mad_decode_field(node->switchinfo, IB_SW_ENHANCED_PORT0_F, in recv_switch_info() 77 &node->smaenhsp0); in recv_switch_info() 84 node->smaenhsp0 = 0; /* assume base SP0 */ in query_switch_info() 91 if (path->cnt > sizeof(path->p) - 2) in add_port_to_dpath() 92 return -1; in add_port_to_dpath() [all …]
|
| /freebsd/usr.bin/mkesdb/ |
| H A D | yacc.y | 4 /*- 5 * SPDX-License-Identifier: BSD-2-Clause 122 #define CHKERR(ret, func, a) \ argument 124 ret = func a; \ 126 errx(EXIT_FAILURE, "%s: %s", #func, strerror(ret)); \ 183 (df, buf, csid->ci_symbol)); in dump_file() 186 CHKERR(ret, _db_factory_add32_by_s, (df, buf, csid->ci_csid)); in dump_file() 240 if (strcmp(csid->ci_symbol, sym) == 0) { in register_named_csid() 251 csid->ci_symbol = sym; in register_named_csid() 252 csid->ci_csid = val; in register_named_csid() [all …]
|
| /freebsd/usr.sbin/memcontrol/ |
| H A D | memcontrol.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 49 {"write-combine", MDF_WRITECOMBINE, MDF_SETTABLE}, 50 {"write-through", MDF_WRITETHROUGH, MDF_SETTABLE}, 51 {"write-back", MDF_WRITEBACK, MDF_SETTABLE}, 52 {"write-protect", MDF_WRITEPROTECT, MDF_SETTABLE}, 55 {"fixed-base", MDF_FIXBASE, 0}, 56 {"fixed-length", MDF_FIXLEN, 0}, 57 {"set-by-firmware", MDF_FIRMWARE, 0}, 72 void (*func)(int memfd, int argc, char *argv[]); member [all …]
|
| /freebsd/contrib/tcsh/ |
| H A D | tc.bind.c | 4 /*- 62 uChar ch; in dobindkey() local 72 par != NULL && (*par++ & CHAR) == '-'; no++, par = v[no]) { in dobindkey() 73 if ((p = (*par & CHAR)) == '-') { in dobindkey() 149 ch = (uChar) in.buf[0]; in dobindkey() 157 else if (map[ch] == F_XKEY) { in dobindkey() 159 map[ch] = F_UNASSIGNED; in dobindkey() 162 map[ch] = F_UNASSIGNED; in dobindkey() 189 if (SetArrowKeys(&in, XmapStr(&out), ntype) == -1) in dobindkey() 196 map[ch] = F_XKEY; in dobindkey() [all …]
|
| /freebsd/contrib/ncurses/ncurses/ |
| H A D | curses.priv.h | 2 * Copyright 2018-2023,2024 Thomas E. Dickey * 3 * Copyright 1998-2017,2018 Free Software Foundation, Inc. * 31 * Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995 * 33 * and: Thomas E. Dickey 1996-on * 49 /* *INDENT-OFF* */ 142 /* include signal.h before curses.h to work-around defect in glibc 2.1.3 */ 145 /* Alessandro Rubini's GPM (general-purpose mouse) */ 311 * Originally a terminal-driver option, the window-list is per-screen to allow 319 * this, re-enable USE_HARD_TABS and run worm for a while. Other systems 328 unsigned char ch; /* character at this node */ [all …]
|
| /freebsd/sys/contrib/dev/rtw89/ |
| H A D | mac.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2 /* Copyright(c) 2019-2020 Realtek Corporation 43 const struct rtw89_mac_gen_def *mac = rtwdev->chip->mac_def; in rtw89_mac_mem_write() 44 u32 addr = mac->mem_base_addrs[sel] + offset; in rtw89_mac_mem_write() 46 rtw89_write32(rtwdev, mac->filter_model_addr, addr); in rtw89_mac_mem_write() 47 rtw89_write32(rtwdev, mac->indir_access_addr, val); in rtw89_mac_mem_write() 53 const struct rtw89_mac_gen_def *mac = rtwdev->chip->mac_def; in rtw89_mac_mem_read() 54 u32 addr = mac->mem_base_addrs[sel] + offset; in rtw89_mac_mem_read() 56 rtw89_write32(rtwdev, mac->filter_model_addr, addr); in rtw89_mac_mem_read() 57 return rtw89_read32(rtwdev, mac->indir_access_addr); in rtw89_mac_mem_read() [all …]
|
| H A D | phy.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2 /* Copyright(c) 2019-2020 Realtek Corporation 20 const struct rtw89_phy_gen_def *phy = rtwdev->chip->phy_def; in rtw89_phy0_phy1_offset() 22 return phy->phy0_phy1_offset(rtwdev, addr); in rtw89_phy0_phy1_offset() 28 u32 bit_rate = report->bit_rate; in get_max_amsdu_len() 35 if (report->might_fallback_legacy) in get_max_amsdu_len() 50 return rtwdev->chip->max_amsdu_limit; in get_max_amsdu_len() 66 ra_mask |= GENMASK_ULL(highest_mcs - gap, 0) << nss; in get_mcs_ra_mask() 69 ra_mask |= GENMASK_ULL(highest_mcs - gap * 2, 0) << nss; in get_mcs_ra_mask() 81 struct ieee80211_sta_he_cap cap = link_sta->he_cap; in get_he_ra_mask() [all …]
|
| /freebsd/contrib/ntp/ntpd/ |
| H A D | ntp_leapsec.c | 2 * ntp_leapsec.c - leap second processing for NTPD 6 * --------- 182 leapsec_load(leap_table_t * pt,leapsec_reader func,void * farg,int use_build_limit) leapsec_load() argument 255 leapsec_dump(const leap_table_t * pt,leapsec_dumper func,void * farg) leapsec_dump() argument 799 get_line(leapsec_reader func,void * farg,char * buff,size_t size) get_line() argument 804 int ch; get_line() local 1116 unsigned char ch; do_hash_data() local 1136 leapsec_validate(leapsec_reader func,void * farg) leapsec_validate() argument [all...] |
| /freebsd/usr.sbin/mlxcontrol/ |
| H A D | command.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 58 int (*func)(int argc, char *argv[]); member 64 " status [-qv] [<drive>...]\n" 66 " -q Suppress output.\n" 67 " -v Display verbose information.\n" 74 " rescan -a\n" 80 " detach -a <controller>\n" 83 "consistency-check a system drive", 96 " pause [-t <howlong>] [-d <delay>] <controller> [<channel>...]\n" [all …]
|