Home
last modified time | relevance | path

Searched +full:chan +full:- +full:name (Results 1 – 25 of 244) sorted by relevance

12345678910

/freebsd/sys/contrib/device-tree/Bindings/leds/
H A Dleds-lp55xx.txt4 - compatible: one of
11 - reg: I2C slave address
12 - clock-mode: Input clock mode, (0: automode, 1: internal, 2: external)
15 - led-cur: Current setting at each led channel (mA x10, 0 if led is not connected)
16 - max-cur: Maximun current at each led channel.
19 - enable-gpio: GPIO attached to the chip's enable pin
20 - label: Used for naming LEDs
21 - pwr-sel: LP8501 specific property. Power selection for output channels.
27 Alternatively, each child can have a specific channel name and trigger:
28 - chan-name (optional): name of channel
[all …]
H A Dleds-lp55xx.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/leds/leds-lp55x
[all...]
/freebsd/lib/libcasper/services/cap_net/
H A Dcap_net.h1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
56 int cap_bind(cap_channel_t *chan, int s, const struct sockaddr *addr,
58 int cap_connect(cap_channel_t *chan, int s, const struct sockaddr *name,
61 int cap_getaddrinfo(cap_channel_t *chan, const char *hostname,
63 int cap_getnameinfo(cap_channel_t *chan, const struct sockaddr *sa,
68 cap_net_limit_t *cap_net_limit_init(cap_channel_t *chan, uint64_t mode);
80 const char *name, const char *serv);
89 struct hostent *cap_gethostbyname(cap_channel_t *chan, const char *name);
90 struct hostent *cap_gethostbyname2(cap_channel_t *chan, const char *name,
[all …]
H A Dcap_net.327 .Sh NAME
52 .Fn cap_bind "cap_channel_t *chan" "int s" "const struct sockaddr *addr" "socklen_t addrlen"
54 .Fn cap_connect "cap_channel_t *chan" "int s" "const struct sockaddr *name" "socklen_t namelen"
56 .Fn cap_getaddrinfo "cap_channel_t *chan" "const char *hostname" "const char *servname" "const stru…
58 .Fn cap_getnameinfo "cap_channel_t *chan" "const struct sockaddr *sa" "socklen_t salen" "char *host…
60 .Fn cap_gethostbyname "const cap_channel_t *chan" "const char *name"
62 .Fn cap_gethostbyname2 "const cap_channel_t *chan" "const char *name" "int af"
64 .Fn cap_gethostbyaddr "const cap_channel_t *chan" "const void *addr" "socklen_t len" "int af"
66 .Fn cap_net_limit_init "cap_channel_t *chan" "uint64_t mode"
78 .Fn cap_net_limit_name2addr "cap_net_limit_t *limit" "const char *name" "const char *serv"
[all …]
/freebsd/lib/libcasper/services/cap_grp/
H A Dcap_grp.328 .Sh NAME
49 .Fn cap_getgrent "cap_channel_t *chan"
51 .Fn cap_getgrnam "cap_channel_t *chan" "const char *name"
53 .Fn cap_getgrgid "cap_channel_t *chan" "gid_t gid"
55 .Fn cap_getgrent_r "cap_channel_t *chan" "struct group *grp" "char *buffer" "size_t bufsize" "struc…
57 .Fn cap_getgrnam_r "cap_channel_t *chan" "const char *name" "struct group *grp" "char *buffer" "siz…
59 .Fn cap_getgrgid_r "cap_channel_t *chan" "gid_t gid" "struct group *grp" "char *buffer" "size_t buf…
61 .Fn cap_setgroupent "cap_channel_t *chan" "int stayopen"
63 .Fn cap_setgrent "cap_channel_t *chan"
65 .Fn cap_endgrent "cap_channel_t *chan"
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DR600RegisterInfo.td2 class R600Reg <string name, bits<16> encoding> : Register<name> {
7 class R600RegWithChan <string name, bits<9> sel, string chan> :
8 Register <name> {
10 field bits<2> chan_encoding = !if(!eq(chan, "X"), 0,
11 !if(!eq(chan, "Y"), 1,
12 !if(!eq(chan, "Z"), 2,
13 !if(!eq(chan, "W"), 3, 0))));
14 let HWEncoding{8-0} = sel;
15 let HWEncoding{10-9} = chan_encoding;
24 let HWEncoding{8-0} = encoding{8-0};
[all …]
/freebsd/lib/libcasper/services/cap_pwd/
H A Dcap_pwd.328 .Sh NAME
48 .Fn cap_getpwent "cap_channel_t *chan"
50 .Fn cap_getpwnam "cap_channel_t *chan" "const char *login"
52 .Fn cap_getpwuid "cap_channel_t *chan" "uid_t uid"
54 .Fn cap_getpwent_r "cap_channel_t *chan" "struct passwd *pwd" "char *buffer" "size_t bufsize" "stru…
56 .Fn cap_getpwnam_r "cap_channel_t *chan" "const char *name" "struct passwd *pwd" "char *buffer" "si…
58 .Fn cap_getpwuid_r "cap_channel_t *chan" "uid_t uid" "struct passwd *pwd" "char *buffer" "size_t bu…
60 .Fn cap_setpassent "cap_channel_t *chan" "int stayopen"
62 .Fn cap_setpwent "cap_channel_t *chan"
64 .Fn cap_endpwent "cap_channel_t *chan"
[all …]
/freebsd/sys/dev/hyperv/vmbus/
H A Dvmbus_chan.c1 /*-
2 * Copyright (c) 2009-2012,2016 Microsoft Corp.
134 vmbus_chan_signal(const struct vmbus_channel *chan) in vmbus_chan_signal() argument
136 atomic_set_long(chan->ch_evtflag, chan->ch_evtflag_mask); in vmbus_chan_signal()
137 if (chan->ch_txflags & VMBUS_CHAN_TXF_HASMNF) in vmbus_chan_signal()
138 atomic_set_int(chan in vmbus_chan_signal()
145 vmbus_chan_signal_tx(struct vmbus_channel * chan) vmbus_chan_signal_tx() argument
153 vmbus_chan_signal_rx(struct vmbus_channel * chan) vmbus_chan_signal_rx() argument
161 vmbus_chan_ins_prilist(struct vmbus_softc * sc,struct vmbus_channel * chan) vmbus_chan_ins_prilist() argument
172 vmbus_chan_rem_prilist(struct vmbus_softc * sc,struct vmbus_channel * chan) vmbus_chan_rem_prilist() argument
184 vmbus_chan_ins_sublist(struct vmbus_channel * prichan,struct vmbus_channel * chan) vmbus_chan_ins_sublist() argument
200 vmbus_chan_rem_sublist(struct vmbus_channel * prichan,struct vmbus_channel * chan) vmbus_chan_rem_sublist() argument
216 vmbus_chan_ins_list(struct vmbus_softc * sc,struct vmbus_channel * chan) vmbus_chan_ins_list() argument
227 vmbus_chan_rem_list(struct vmbus_softc * sc,struct vmbus_channel * chan) vmbus_chan_rem_list() argument
240 struct vmbus_channel *chan = arg1; vmbus_chan_sysctl_mnf() local
249 vmbus_chan_sysctl_create(struct vmbus_channel * chan) vmbus_chan_sysctl_create() argument
254 char name[16]; vmbus_chan_sysctl_create() local
334 vmbus_chan_open(struct vmbus_channel * chan,int txbr_size,int rxbr_size,const void * udata,int udlen,vmbus_chan_callback_t cb,void * cbarg) vmbus_chan_open() argument
380 vmbus_chan_open_br(struct vmbus_channel * chan,const struct vmbus_chan_br * cbr,const void * udata,int udlen,vmbus_chan_callback_t cb,void * cbarg) vmbus_chan_open_br() argument
563 vmbus_chan_gpadl_connect(struct vmbus_channel * chan,bus_addr_t paddr,int size,uint32_t * gpadl0) vmbus_chan_gpadl_connect() argument
693 vmbus_chan_wait_revoke(const struct vmbus_channel * chan,bool can_sleep) vmbus_chan_wait_revoke() argument
716 vmbus_chan_gpadl_disconnect(struct vmbus_channel * chan,uint32_t gpadl) vmbus_chan_gpadl_disconnect() argument
766 vmbus_chan_detach(struct vmbus_channel * chan) vmbus_chan_detach() argument
794 struct vmbus_channel *chan = xchan; vmbus_chan_clrchmap_task() local
800 vmbus_chan_clear_chmap(struct vmbus_channel * chan) vmbus_chan_clear_chmap() argument
809 vmbus_chan_set_chmap(struct vmbus_channel * chan) vmbus_chan_set_chmap() argument
823 vmbus_chan_poll_cancel(struct vmbus_channel * chan) vmbus_chan_poll_cancel() argument
832 vmbus_chan_close_internal(struct vmbus_channel * chan) vmbus_chan_close_internal() argument
949 vmbus_chan_close_direct(struct vmbus_channel * chan) vmbus_chan_close_direct() argument
989 vmbus_chan_close(struct vmbus_channel * chan) vmbus_chan_close() argument
1027 vmbus_chan_intr_drain(struct vmbus_channel * chan) vmbus_chan_intr_drain() argument
1034 vmbus_chan_write_available(struct vmbus_channel * chan) vmbus_chan_write_available() argument
1040 vmbus_chan_write_signal(struct vmbus_channel * chan,int32_t min_signal_size) vmbus_chan_write_signal() argument
1058 vmbus_chan_set_pending_send_size(struct vmbus_channel * chan,uint32_t size) vmbus_chan_set_pending_send_size() argument
1066 vmbus_chan_iov_send(struct vmbus_channel * chan,const struct iovec iov[],int iovlen,vmbus_br_copy_callback_t cb,void * cbarg) vmbus_chan_iov_send() argument
1087 vmbus_chan_send(struct vmbus_channel * chan,uint16_t type,uint16_t flags,void * data,int dlen,uint64_t xactid) vmbus_chan_send() argument
1122 vmbus_chan_send_sglist(struct vmbus_channel * chan,struct vmbus_gpa sg[],int sglen,void * data,int dlen,uint64_t xactid) vmbus_chan_send_sglist() argument
1161 vmbus_chan_send_prplist(struct vmbus_channel * chan,struct vmbus_gpa_range * prp,int prp_cnt,void * data,int dlen,uint64_t xactid) vmbus_chan_send_prplist() argument
1202 vmbus_chan_recv(struct vmbus_channel * chan,void * data,int * dlen0,uint64_t * xactid) vmbus_chan_recv() argument
1248 vmbus_chan_recv_pkt(struct vmbus_channel * chan,struct vmbus_chanpkt_hdr * pkt,int * pktlen0) vmbus_chan_recv_pkt() argument
1294 vmbus_chan_read_available(struct vmbus_channel * chan) vmbus_chan_read_available() argument
1308 vmbus_chan_recv_peek(struct vmbus_channel * chan,void * data,int data_len,uint32_t advance) vmbus_chan_recv_peek() argument
1332 vmbus_chan_recv_idxadv(struct vmbus_channel * chan,uint32_t advance) vmbus_chan_recv_idxadv() argument
1355 vmbus_chan_recv_peek_call(struct vmbus_channel * chan,int data_len,uint32_t skip,vmbus_br_copy_callback_t cb,void * cbarg) vmbus_chan_recv_peek_call() argument
1368 struct vmbus_channel *chan = xchan; vmbus_chan_task() local
1404 struct vmbus_channel *chan = xchan; vmbus_chan_task_nobatch() local
1414 struct vmbus_channel *chan = xchan; vmbus_chan_poll_timeout() local
1424 struct vmbus_channel *chan = xchan; vmbus_chan_poll_task() local
1437 struct vmbus_channel *chan = arg->poll_chan; vmbus_chan_pollcfg_task() local
1484 vmbus_chan_poll_cancel_intq(struct vmbus_channel * chan) vmbus_chan_poll_cancel_intq() argument
1523 struct vmbus_channel *chan = xchan; vmbus_chan_polldis_task() local
1563 struct vmbus_channel *chan; vmbus_event_flags_proc() local
1610 vmbus_chan_update_evtflagcnt(struct vmbus_softc * sc,const struct vmbus_channel * chan) vmbus_chan_update_evtflagcnt() argument
1638 struct vmbus_channel *chan; vmbus_chan_alloc() local
1665 vmbus_chan_free(struct vmbus_channel * chan) vmbus_chan_free() argument
1796 vmbus_chan_cpu_set(struct vmbus_channel * chan,int cpu) vmbus_chan_cpu_set() argument
1817 vmbus_chan_cpu_rr(struct vmbus_channel * chan) vmbus_chan_cpu_rr() argument
1827 vmbus_chan_cpu_default(struct vmbus_channel * chan) vmbus_chan_cpu_default() argument
1842 struct vmbus_channel *chan; vmbus_chan_msgproc_choffer() local
1942 struct vmbus_channel *chan; vmbus_chan_msgproc_chrescind() local
2002 vmbus_chan_release(struct vmbus_channel * chan) vmbus_chan_release() argument
2038 struct vmbus_channel *chan = xchan; vmbus_prichan_detach_task() local
2056 struct vmbus_channel *chan = xchan; vmbus_subchan_detach_task() local
2102 struct vmbus_channel *chan; vmbus_chan_destroy_all() local
2128 struct vmbus_channel **ret, *chan; vmbus_subchan_get() local
2190 vmbus_chan_set_readbatch(struct vmbus_channel * chan,bool on) vmbus_chan_set_readbatch() argument
2199 vmbus_chan_id(const struct vmbus_channel * chan) vmbus_chan_id() argument
2205 vmbus_chan_subidx(const struct vmbus_channel * chan) vmbus_chan_subidx() argument
2211 vmbus_chan_is_primary(const struct vmbus_channel * chan) vmbus_chan_is_primary() argument
2220 vmbus_chan_is_hvs(const struct vmbus_channel * chan) vmbus_chan_is_hvs() argument
2226 vmbus_chan_is_hvs_conn_from_host(const struct vmbus_channel * chan) vmbus_chan_is_hvs_conn_from_host() argument
2237 vmbus_chan_guid_type(struct vmbus_channel * chan) vmbus_chan_guid_type() argument
2243 vmbus_chan_guid_inst(struct vmbus_channel * chan) vmbus_chan_guid_inst() argument
2262 vmbus_chan_tx_empty(const struct vmbus_channel * chan) vmbus_chan_tx_empty() argument
2269 vmbus_chan_rx_empty(const struct vmbus_channel * chan) vmbus_chan_rx_empty() argument
2276 vmbus_chan_printf(const struct vmbus_channel * chan,const char * fmt,...) vmbus_chan_printf() argument
2296 vmbus_chan_run_task(struct vmbus_channel * chan,struct task * task) vmbus_chan_run_task() argument
2304 vmbus_chan_mgmt_tq(const struct vmbus_channel * chan) vmbus_chan_mgmt_tq() argument
2311 vmbus_chan_is_revoked(const struct vmbus_channel * chan) vmbus_chan_is_revoked() argument
2320 vmbus_chan_set_orphan(struct vmbus_channel * chan,struct vmbus_xact_ctx * xact) vmbus_chan_set_orphan() argument
2329 vmbus_chan_unset_orphan(struct vmbus_channel * chan) vmbus_chan_unset_orphan() argument
2338 vmbus_chan_xact_wait(const struct vmbus_channel * chan,struct vmbus_xact * xact,size_t * resp_len,bool can_sleep) vmbus_chan_xact_wait() argument
2372 vmbus_chan_poll_enable(struct vmbus_channel * chan,u_int pollhz) vmbus_chan_poll_enable() argument
2389 vmbus_chan_poll_disable(struct vmbus_channel * chan) vmbus_chan_poll_disable() argument
[all...]
/freebsd/lib/libcasper/libcasper/
H A Dlibcasper.h1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2012-2013 The FreeBSD Foundation
5 * Copyright (c) 2015-2017 Mariusz Zaborski <oshogbo@FreeBSD.org>
75 int cap_channel_flags(const cap_channel_t *chan);
78 cap_channel_flags(const cap_channel_t *chan)
81 return (chan->cch_flags);
86 channel_nvlist_flags(const cap_channel_t *chan) in channel_nvlist_flags() argument
91 if ((cap_channel_flags(chan) & CASPER_NO_UNIQ) != 0) in channel_nvlist_flags()
106 cap_channel_t *chan; in cap_init() local
[all …]
H A Dlibcasper.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2012-2013 The FreeBSD Foundation
69 cap_add_pd(cap_channel_t *chan, int pd) in cap_add_pd() argument
74 chan->cch_pd = pd; in cap_add_pd()
79 cap_channel_flags(const cap_channel_t *chan) in cap_channel_flags() argument
82 return (chan->cch_flags); in cap_channel_flags()
91 cap_channel_t *chan; in cap_init() local
94 sock) == -1) { in cap_init()
107 chan = cap_wrap(sock[0], 0); in cap_init()
[all …]
H A Dlibcasper.332 .Sh NAME
57 .Fn cap_unwrap "cap_channel_t *chan" "int *flags"
59 .Fn cap_sock "const cap_channel_t *chan"
61 .Fn cap_clone "const cap_channel_t *chan"
63 .Fn cap_close "cap_channel_t *chan"
65 .Fn cap_limit_get "const cap_channel_t *chan" "nvlist_t **limitsp"
67 .Fn cap_limit_set "const cap_channel_t *chan" "nvlist_t *limits"
69 .Fn cap_send_nvlist "const cap_channel_t *chan" "const nvlist_t *nvl"
71 .Fn cap_recv_nvlist "const cap_channel_t *chan"
73 .Fn cap_xfer_nvlist "const cap_channel_t *chan" "nvlist_t *nvl"
[all …]
/freebsd/sys/dev/iicbus/adc/
H A Dads111x.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
72 * On config write, the operational-state bit starts a measurement, on read it
79 * The default values for config items that are not per-channel. Mostly, this
90 * Per-channel defaults. The chip only has one control register, and we load
91 * per-channel values into it every time we make a measurement on that channel.
93 * values we maintain on a per-channel basis.
99 * Full-scale ranges for each available amplifier setting, in microvolts. The
100 * ADS1x13 chips are fixed-range, the other chips contain a programmable gain
111 #define ADS101x_RANGEDIV ((1 << 15) - 15)
[all …]
/freebsd/sys/netgraph/
H A Dng_sample.c5 /*-
6 * Copyright (c) 1996-1999 Whistle Communications, Inc.
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
107 .name = NG_XXX_NODE_TYPE,
122 int dlci; /* The DLCI it represents, -1 == downstream */
157 privdata->channel[i].dlci = -2; in ng_xxx_constructor()
158 privdata->channel[i].channel = i; in ng_xxx_constructor()
163 privdata->node = node; in ng_xxx_constructor()
170 * Possibly decode information out of the hook name.
180 ng_xxx_newhook(node_p node, hook_p hook, const char *name) in ng_xxx_newhook() argument
[all …]
/freebsd/sys/dev/pwm/
H A Dpwmbus.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
50 pwmbus_add_child(device_t dev, u_int order, const char *name, int unit) in pwmbus_add_child() argument
55 child = device_add_child_ordered(dev, order, name, unit); in pwmbus_add_child()
76 device_get_nameunit(device_get_parent(dev)), ivars->pi_channel); in pwmbus_child_location()
94 resource_int_value(dname, dunit, "channel", &ivars->pi_channel); in pwmbus_hinted_child()
106 rv += printf(" channel %u", ivars->pi_channel); in pwmbus_print_child()
120 ivars->pi_channel); in pwmbus_probe_nomatch()
134 *(u_int *)result = ivars->pi_channel; in pwmbus_read_ivar()
160 u_int chan; in pwmbus_attach() local
[all …]
H A Dofw_pwmbus.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
57 ofw_pwmbus_add_child(device_t dev, u_int order, const char *name, int unit) in ofw_pwmbus_add_child() argument
67 if ((child = device_add_child_ordered(dev, order, name, unit)) == NULL) { in ofw_pwmbus_add_child()
72 ivars->devinfo.obd_node = -1; in ofw_pwmbus_add_child()
85 ofw_bus_gen_destroy_devinfo(&ivars->devinfo); in ofw_pwmbus_child_deleted()
96 return (&ivars->devinfo); in ofw_pwmbus_get_devinfo()
107 if (ofw_bus_get_node(dev) == -1) { in ofw_pwmbus_probe()
122 pcell_t chan; in ofw_pwmbus_attach() local
126 sc->base.dev = dev; in ofw_pwmbus_attach()
[all …]
/freebsd/lib/libcasper/services/cap_dns/
H A Dcap_dns.328 .Sh NAME
44 .Fn cap_getaddrinfo "cap_channel_t *chan" "const char *hostname" "const char *servname" "const stru…
46 .Fn cap_getnameinfo "cap_channel_t *chan" "const struct sockaddr *sa" "socklen_t salen" "char *host…
48 .Fn cap_gethostbyname "const cap_channel_t *chan" "const char *name"
50 .Fn cap_gethostbyname2 "const cap_channel_t *chan" "const char *name" "int af"
52 .Fn cap_gethostbyaddr "const cap_channel_t *chan" "const void *addr" "socklen_t len" "int af"
54 .Fn cap_dns_type_limit "cap_channel_t *chan" "const char * const *types" "size_t ntypes"
56 .Fn cap_dns_family_limit "const cap_channel_t *chan" "const int *families" "size_t nfamilies"
58 .Bf -symbolic
128 .Bl -ohang -offset indent
[all …]
/freebsd/sys/isa/
H A Disavar.h1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
48 #define ISA_ORDER_PNPBIOS 10 /* plug-and-play BIOS inflexible hardware */
50 #define ISA_ORDER_SPECULATIVE 30 /* legacy non-sensitive hardware */
51 #define ISA_ORDER_PNP 40 /* plug-and-play flexible hardware */
143 MODULE_PNP_INFO(ISA_PNP_DESCR, isa, t, t, nitems(t) - 1); \
168 void isa_dmacascade(int chan);
169 void isa_dmadone(int flags, caddr_t addr, int nbytes, int chan);
170 int isa_dma_init(int chan, u_int bouncebufsize, int flag);
171 void isa_dmastart(int flags, caddr_t addr, u_int nbytes, int chan);
[all …]
/freebsd/sys/dev/sound/usb/
H A Duaudio.c3 /*-
4 * SPDX-License-Identifier: BSD-2-Clause
123 if (err != 0 || req->newptr == NULL || val == uaudio_buffer_ms) in uaudio_buffer_ms_sysctl()
149 #define UAUDIO_NFRAMES 64 /* must be factor of 8 due HS-USB */
157 #define BIT_TEST(bm,bno) (((bm)[(bno) / 8] >> (7 - ((bno) % 8))) & 1)
159 #define MIX(sc) ((sc)->sc_mixer_node)
177 const char *name; member
436 {UA_FMT_PCM8, 8, AFMT_U8, "8-bit U-LE PCM"},
437 {UA_FMT_PCM8, 16, AFMT_U16_LE, "16-bit U-LE PCM"},
438 {UA_FMT_PCM8, 24, AFMT_U24_LE, "24-bit U-LE PCM"},
[all …]
/freebsd/usr.sbin/bluetooth/btpand/
H A Dtap.c3 /*-
4 * SPDX-License-Identifier: BSD-2-Clause
56 channel_t *chan; in tap_init() local
62 if (fd == -1) { in tap_init()
68 if (ioctl(fd, TAPGIFNAME, &ifr) == -1) { in tap_init()
69 log_err("Could not get interface name: %m"); in tap_init()
74 if (s == -1) { in tap_init()
83 if (ioctl(s, SIOCSIFLLADDR, &ifr) == -1) { in tap_init()
88 if (ioctl(s, SIOCGIFFLAGS, &ifr) == -1) { in tap_init()
96 if (ioctl(s, SIOCSIFFLAGS, &ifr) == -1) { in tap_init()
[all …]
/freebsd/sys/dev/isp/
H A Disp.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2009-2020 Alexander Motin <mav@FreeBSD.org>
5 * Copyright (c) 1997-2009 by Matthew Jacob
34 * code for the Qlogic ISP SCSI and FC-SCSI adapters.
72 static const char lipd[] = "Chan %d LIP destroyed %d active commands";
147 isp_change_fw_state(ispsoftc_t *isp, int chan, in argument
867 int chan; isp_init() local
1238 isp_fc_enable_vp(ispsoftc_t * isp,int chan) isp_fc_enable_vp() argument
1282 isp_fc_disable_vp(ispsoftc_t * isp,int chan) isp_fc_disable_vp() argument
1319 isp_fc_change_role(ispsoftc_t * isp,int chan,int new_role) isp_fc_change_role() argument
1349 isp_clear_portdb(ispsoftc_t * isp,int chan) isp_clear_portdb() argument
1377 isp_mark_portdb(ispsoftc_t * isp,int chan) isp_mark_portdb() argument
1399 isp_plogx(ispsoftc_t * isp,int chan,uint16_t handle,uint32_t portid,int flags) isp_plogx() argument
1510 isp_getpdb(ispsoftc_t * isp,int chan,uint16_t id,isp_pdb_t * pdb) isp_getpdb() argument
1561 isp_gethandles(ispsoftc_t * isp,int chan,uint16_t * handles,int * num,int loop) isp_gethandles() argument
1601 isp_dump_chip_portdb(ispsoftc_t * isp,int chan) isp_dump_chip_portdb() argument
1620 isp_get_wwn(ispsoftc_t * isp,int chan,int nphdl,int nodename) isp_get_wwn() argument
1651 isp_fclink_test(ispsoftc_t * isp,int chan,int usdelay) isp_fclink_test() argument
1812 isp_pdb_sync(ispsoftc_t * isp,int chan) isp_pdb_sync() argument
1886 isp_pdb_add_update(ispsoftc_t * isp,int chan,isp_pdb_t * pdb) isp_pdb_add_update() argument
1956 isp_scan_loop(ispsoftc_t * isp,int chan) isp_scan_loop() argument
2032 isp_ct_passthru(ispsoftc_t * isp,int chan,uint32_t cmd_bcnt,uint32_t rsp_bcnt) isp_ct_passthru() argument
2093 isp_gid_pt(ispsoftc_t * isp,int chan) isp_gid_pt() argument
2130 isp_gff_id(ispsoftc_t * isp,int chan,uint32_t portid) isp_gff_id() argument
2187 isp_gft_id(ispsoftc_t * isp,int chan,uint32_t portid) isp_gft_id() argument
2240 isp_scan_fabric(ispsoftc_t * isp,int chan) isp_scan_fabric() argument
2478 isp_login_device(ispsoftc_t * isp,int chan,uint32_t portid,isp_pdb_t * p,uint16_t * ohp) isp_login_device() argument
2557 isp_register_fc4_type(ispsoftc_t * isp,int chan) isp_register_fc4_type() argument
2602 isp_register_fc4_features_24xx(ispsoftc_t * isp,int chan) isp_register_fc4_features_24xx() argument
2660 isp_register_port_name_24xx(ispsoftc_t * isp,int chan) isp_register_port_name_24xx() argument
2724 isp_register_node_name_24xx(ispsoftc_t * isp,int chan) isp_register_node_name_24xx() argument
2783 int i, chan, wrap; isp_next_handle() local
3002 int chan, tgt; isp_control() local
3511 uint16_t chan; isp_intr_async() local
3819 int chan, c; isp_handle_rpt_id_acq() local
3863 int chan = XS_CHANNEL(xs); isp_parse_status_24xx() local
4444 isp_fw_state(ispsoftc_t * isp,int chan) isp_fw_state() argument
4456 isp_setdfltfcparm(ispsoftc_t * isp,int chan) isp_setdfltfcparm() argument
4872 isp_print_image(ispsoftc_t * isp,char * name,struct isp_image_status * image_status) isp_print_image() argument
[all...]
/freebsd/contrib/wpa/src/common/
H A Dhw_features_common.c3 * Copyright (c) 2002-2013, Jouni Malinen <j@w1.fi>
20 int chan, int *freq) in hw_get_channel_chan() argument
30 for (i = 0; i < mode->num_channels; i++) { in hw_get_channel_chan()
31 struct hostapd_channel_data *ch = &mode->channels[i]; in hw_get_channel_chan()
32 if (ch->chan == chan) { in hw_get_channel_chan()
34 *freq = ch->freq; in hw_get_channel_chan()
44 hw_mode_get_channel(struct hostapd_hw_modes *mode, int freq, int *chan) in hw_mode_get_channel() argument
48 for (i = 0; i < mode->num_channels; i++) { in hw_mode_get_channel()
49 struct hostapd_channel_data *ch = &mode->channels[i]; in hw_mode_get_channel()
51 if (ch->freq == freq) { in hw_mode_get_channel()
[all …]
H A Dieee802_11_common.c3 * Copyright (c) 2002-2019, Jouni Malinen <j@w1.fi>
15 #include "qca-vendor.h"
28 * sub-type. */ in ieee802_11_parse_vendor_specific()
35 return -1; in ieee802_11_parse_vendor_specific()
41 /* Microsoft/Wi-Fi information elements are further typed and in ieee802_11_parse_vendor_specific()
47 elems->wpa_ie = pos; in ieee802_11_parse_vendor_specific()
48 elems->wpa_ie_len = elen; in ieee802_11_parse_vendor_specific()
57 return -1; in ieee802_11_parse_vendor_specific()
68 elems->wmm = pos; in ieee802_11_parse_vendor_specific()
69 elems->wmm_len = elen; in ieee802_11_parse_vendor_specific()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt76x2/
H A Dinit.c1 // SPDX-License-Identifier: ISC
3 * Copyright (C) 2016 Felix Fietkau <nbd@nbd.name>
14 int err = -EINVAL, power = hw->conf.power_level * 2; in mt76x2_set_sar_specs()
15 struct mt76x02_dev *dev = hw->priv; in mt76x2_set_sar_specs()
16 struct mt76_phy *mphy = &dev->mphy; in mt76x2_set_sar_specs()
18 mutex_lock(&dev->mt76.mutex); in mt76x2_set_sar_specs()
19 if (!cfg80211_chandef_valid(&mphy->chandef)) in mt76x2_set_sar_specs()
26 dev->txpower_conf = mt76_get_sar_power(mphy, mphy->chandef.chan, in mt76x2_set_sar_specs()
28 /* convert to per-chain power for 2x2 devices */ in mt76x2_set_sar_specs()
29 dev->txpower_conf -= 6; in mt76x2_set_sar_specs()
[all …]
/freebsd/share/man/man9/
H A Dsleep.929 .Sh NAME
48 .Fn msleep "const void *chan" "struct mtx *mtx" "int priority" "const char *wmesg" "int timo"
50 .Fn msleep_sbt "const void *chan" "struct mtx *mtx" "int priority" \
53 .Fn msleep_spin "const void *chan" "struct mtx *mtx" "const char *wmesg" "int timo"
55 .Fn msleep_spin_sbt "const void *chan" "struct mtx *mtx" "const char *wmesg" \
65 .Fn tsleep "const void *chan" "int priority" "const char *wmesg" "int timo"
67 .Fn tsleep_sbt "const void *chan" "int priority" "const char *wmesg" \
70 .Fn wakeup "const void *chan"
72 .Fn wakeup_one "const void *chan"
74 .Fn wakeup_any "const void *chan"
[all …]
/freebsd/sys/dev/virtio/p9fs/
H A Dvirtio_p9fs.c1 /*-
54 #define VT9P_MTX(_sc) (&(_sc)->vt9p_mtx)
58 "VIRTIO 9P CHAN lock", NULL, MTX_DEF)
107 * This routine will sleep and release the chan mtx during the period.
108 * chan mtx will be acquired again upon return.
111 vt9p_req_wait(struct vt9p_softc *chan, struct p9_req_t *req) in vt9p_req_wait() argument
113 KASSERT(req->tc->tag != req->rc->tag, in vt9p_req_wait()
116 if (msleep(req, VT9P_MTX(chan), 0, "chan lock", vt9p_ackmaxidle * hz)) { in vt9p_req_wait()
125 KASSERT(req->tc->tag == req->rc->tag, in vt9p_req_wait()
142 struct vt9p_softc *chan; in vt9p_request() local
[all …]

12345678910