Home
last modified time | relevance | path

Searched refs:ctrl (Results 1 – 25 of 479) sorted by relevance

12345678910>>...20

/freebsd-13.1/contrib/wpa/src/common/
H A Dwpa_ctrl.c107 ctrl = os_zalloc(sizeof(*ctrl)); in wpa_ctrl_open2()
151 if (bind(ctrl->s, (struct sockaddr *) &ctrl->local, in wpa_ctrl_open2()
183 return ctrl; in wpa_ctrl_open2()
222 if (connect(ctrl->s, (struct sockaddr *) &ctrl->dest, in wpa_ctrl_open2()
243 return ctrl; in wpa_ctrl_open2()
316 ctrl = os_zalloc(sizeof(*ctrl)); in wpa_ctrl_open()
347 if (bind(ctrl->s, (struct sockaddr *) &ctrl->local, in wpa_ctrl_open()
422 if (connect(ctrl->s, (struct sockaddr *) &ctrl->dest, in wpa_ctrl_open()
463 ctrl->remote_ip, ctrl->remote_ifname); in wpa_ctrl_get_remote_ifname()
660 ctrl = os_malloc(sizeof(*ctrl)); in wpa_ctrl_open()
[all …]
H A Dwpa_helpers.c25 struct wpa_ctrl *ctrl; in wpa_open_ctrl() local
29 if (ctrl == NULL) in wpa_open_ctrl()
31 return ctrl; in wpa_open_ctrl()
37 struct wpa_ctrl *ctrl; in wpa_command() local
43 if (ctrl == NULL) in wpa_command()
51 wpa_ctrl_close(ctrl); in wpa_command()
69 if (ctrl == NULL) in wpa_command_resp()
88 if (ctrl == NULL) in open_wpa_mon()
95 return ctrl; in open_wpa_mon()
172 if (ctrl == NULL) in get_wpa_status()
[all …]
H A Ddpp_tcp.c125 ctrl = os_zalloc(sizeof(*ctrl)); in dpp_relay_add_controller()
126 if (!ctrl) in dpp_relay_add_controller()
152 return ctrl; in dpp_relay_controller_get()
170 return ctrl; in dpp_relay_controller_get_ctx()
533 if (!ctrl) in dpp_relay_rx_action()
600 if (!ctrl) in dpp_controller_free()
1533 conn->ctrl = ctrl; in dpp_controller_tcp_cb()
1653 ctrl = os_zalloc(sizeof(*ctrl)); in dpp_controller_start()
1654 if (!ctrl) in dpp_controller_start()
1758 if (!ctrl) in dpp_controller_get_auth()
[all …]
/freebsd-13.1/contrib/wpa/wpa_supplicant/
H A Dwpa_cli.c1340 update_networks(ctrl); in wpa_cli_cmd_add_network()
1573 update_creds(ctrl); in wpa_cli_cmd_add_cred()
1583 update_creds(ctrl); in wpa_cli_cmd_remove_cred()
4629 if (ctrl == NULL) in update_bssid_list()
4663 if (ctrl == NULL) in update_ifnames()
4695 if (ctrl == NULL) in update_creds()
4727 if (ctrl == NULL) in update_networks()
4839 ctrl, NULL); in wpa_cli_action_ping()
4861 ctrl, NULL); in wpa_cli_action()
4935 if (ctrl == NULL) in wpa_cli_get_default_ifname()
[all …]
H A Dlibwpa_test.c15 struct wpa_ctrl *ctrl; in main() local
17 ctrl = wpa_ctrl_open("foo"); in main()
18 if (!ctrl) in main()
20 if (wpa_ctrl_attach(ctrl) == 0) in main()
21 wpa_ctrl_detach(ctrl); in main()
22 if (wpa_ctrl_pending(ctrl)) { in main()
27 wpa_ctrl_recv(ctrl, buf, &len); in main()
29 wpa_ctrl_close(ctrl); in main()
/freebsd-13.1/contrib/wpa/hostapd/
H A Dhostapd_cli.c239 return wpa_ctrl_command(ctrl, buf); in hostapd_cli_cmd()
322 return wpa_ctrl_command(ctrl, buf); in hostapd_cli_cmd_sta()
351 return wpa_ctrl_command(ctrl, buf); in hostapd_cli_cmd_new_sta()
369 return wpa_ctrl_command(ctrl, buf); in hostapd_cli_cmd_deauthenticate()
387 return wpa_ctrl_command(ctrl, buf); in hostapd_cli_cmd_disassociate()
402 return wpa_ctrl_command(ctrl, buf); in hostapd_cli_cmd_signature()
503 ret = wpa_ctrl_command(ctrl, buf); in hostapd_cli_cmd_wps_nfc_tag_read()
933 if (!ctrl || !interactive) in update_stations()
954 if (!ctrl || !interfaces) in hostapd_cli_get_interfaces()
1857 while (wpa_ctrl_pending(ctrl)) { in hostapd_cli_recv_pending()
[all …]
/freebsd-13.1/sys/dev/ata/chipsets/
H A Data-fsl.c80 ctrl = device_get_softc(dev); in imx_ata_probe()
91 bus_write_2(ctrl->r_res1, 0x28, bus_read_2(ctrl->r_res1, 0x28)); in imx_ata_intr()
92 ctrl->interrupt[0].function(ctrl->interrupt[0].argument); in imx_ata_intr()
102 ctrl = device_get_softc(dev); in imx_ata_attach()
105 ctrl->channels = 1; in imx_ata_attach()
106 ctrl->ichannels = -1; in imx_ata_attach()
109 ctrl->dev = dev; in imx_ata_attach()
112 ctrl->r_rid1 = 0; in imx_ata_attach()
113 ctrl->r_res1 = bus_alloc_resource_any(dev, ctrl->r_type1, in imx_ata_attach()
114 &ctrl->r_rid1, RF_ACTIVE); in imx_ata_attach()
[all …]
/freebsd-13.1/sys/amd64/vmm/amd/
H A Damdvi_hw.c275 ctrl = softc->ctrl; in amdvi_get_cmd_tail()
296 ctrl = softc->ctrl; in amdvi_update_cmd_tail()
453 ctrl = softc->ctrl; in amdvi_cmp_wait()
480 ctrl = softc->ctrl; in amdvi_wait()
505 ctrl = softc->ctrl; in amdvi_dump_cmds()
527 ctrl = softc->ctrl; in amdvi_init_event()
695 ctrl = softc->ctrl; in amdvi_print_events()
714 ctrl = softc->ctrl; in amdvi_init_dte()
759 ctrl = softc->ctrl; in amdvi_event_intr()
794 ctrl = softc->ctrl; in amdvi_alloc_intr_resources()
[all …]
H A Dsvm.c449 ctrl->np_enable = 1; in vmcb_init()
450 ctrl->n_cr3 = np_pml4; in vmcb_init()
519 ctrl->asid = 0; in vmcb_init()
863 ctrl = &vmcb->ctrl; in svm_handle_inst_emul()
1028 if (ctrl->v_irq && ctrl->v_intr_vector == 0) { in enable_intr_window_exiting()
1036 ctrl->v_irq = 1; in enable_intr_window_exiting()
1037 ctrl->v_ign_tpr = 1; in enable_intr_window_exiting()
1050 if (!ctrl->v_irq && ctrl->v_intr_vector == 0) { in disable_intr_window_exiting()
1057 ctrl->v_irq = 0; in disable_intr_window_exiting()
1337 ctrl = &vmcb->ctrl; in svm_vmexit()
[all …]
/freebsd-13.1/sys/dev/uart/
H A Duart_dev_mvebu.c178 uint32_t ctrl = 0; in uart_mvebu_param() local
190 ctrl |= CTRL_TWO_STOP; in uart_mvebu_param()
194 ctrl &=~ CTRL_TWO_STOP; in uart_mvebu_param()
199 ctrl |= CTRL_PAR_EN; in uart_mvebu_param()
202 ctrl &=~ CTRL_PAR_EN; in uart_mvebu_param()
334 int ctrl; in uart_mvebu_bus_attach() local
365 int ctrl, ret = 0; in uart_mvebu_bus_flush() local
408 int ctrl, ret = 0; in uart_mvebu_bus_ioctl() local
558 int i, ctrl; in uart_mvebu_bus_transmit() local
592 uint32_t ctrl; in uart_mvebu_bus_grab() local
[all …]
/freebsd-13.1/sys/dev/e1000/
H A De1000_82543.c634 u32 ctrl, mask; in e1000_shift_out_mdi_bits_82543() local
685 u32 ctrl; in e1000_shift_in_mdi_bits_82543() local
705 ctrl &= ~E1000_CTRL_MDIO; in e1000_shift_in_mdi_bits_82543()
904 u32 ctrl; in e1000_reset_hw_82543() local
961 u32 ctrl; in e1000_init_hw_82543() local
1063 u32 ctrl; in e1000_setup_copper_link_82543() local
1151 u32 ctrl; in e1000_setup_fiber_link_82543() local
1337 u32 rxcw, ctrl, status; in e1000_check_for_fiber_link_82543() local
1406 u32 ctrl; in e1000_config_mac_to_phy_82543() local
1428 ctrl &= ~E1000_CTRL_FD; in e1000_config_mac_to_phy_82543()
[all …]
/freebsd-13.1/sys/dev/bwi/
H A Dbwiphy.h68 #define PHY_WRITE(mac, ctrl, val) bwi_phy_write((mac), (ctrl), (val)) argument
69 #define PHY_READ(mac, ctrl) bwi_phy_read((mac), (ctrl)) argument
71 #define PHY_SETBITS(mac, ctrl, bits) \ argument
72 PHY_WRITE((mac), (ctrl), PHY_READ((mac), (ctrl)) | (bits))
73 #define PHY_CLRBITS(mac, ctrl, bits) \ argument
74 PHY_WRITE((mac), (ctrl), PHY_READ((mac), (ctrl)) & ~(bits))
75 #define PHY_FILT_SETBITS(mac, ctrl, filt, bits) \ argument
76 PHY_WRITE((mac), (ctrl), (PHY_READ((mac), (ctrl)) & (filt)) | (bits))
/freebsd-13.1/sys/x86/pci/
H A Dpci_early_quirks.c66 uint32_t ctrl; in intel_stolen_base_gen3() local
69 ctrl = pci_cfgregread(bus, slot, func, INTEL_BSM, 4); in intel_stolen_base_gen3()
70 val = ctrl & INTEL_BSM_MASK; in intel_stolen_base_gen3()
77 uint32_t ctrl; in intel_stolen_size_gen3() local
80 ctrl = pci_cfgregread(0, 0, 0, I830_GMCH_CTRL, 2); in intel_stolen_size_gen3()
81 val = ctrl & I855_GMCH_GMS_MASK; in intel_stolen_size_gen3()
117 uint32_t ctrl; in intel_stolen_size_gen6() local
121 val = (ctrl >> SNB_GMCH_GMS_SHIFT) & SNB_GMCH_GMS_MASK; in intel_stolen_size_gen6()
128 uint32_t ctrl; in intel_stolen_size_gen8() local
139 uint32_t ctrl; in intel_stolen_size_chv() local
[all …]
/freebsd-13.1/usr.sbin/bluetooth/bthidd/
H A Dserver.c87 if (srv->ctrl < 0) { in server_init()
104 close(srv->ctrl); in server_init()
112 close(srv->ctrl); in server_init()
122 close(srv->ctrl); in server_init()
133 close(srv->ctrl); in server_init()
142 close(srv->ctrl); in server_init()
164 close(srv->ctrl); in server_shutdown()
269 if (fd == srv->ctrl) { in server_accept()
270 assert(s->ctrl == -1); in server_accept()
271 s->ctrl = new_fd; in server_accept()
[all …]
/freebsd-13.1/tools/regression/capsicum/syscalls/
H A Dmisc.c58 unsigned char ctrl[CMSG_SPACE(sizeof(fd))]; in descriptor_send() local
66 bzero(&ctrl, sizeof(ctrl)); in descriptor_send()
70 msg.msg_control = ctrl; in descriptor_send()
71 msg.msg_controllen = sizeof(ctrl); in descriptor_send()
88 unsigned char ctrl[CMSG_SPACE(sizeof(*fdp))]; in descriptor_recv() local
98 bzero(&ctrl, sizeof(ctrl)); in descriptor_recv()
114 msg.msg_control = ctrl; in descriptor_recv()
115 msg.msg_controllen = sizeof(ctrl); in descriptor_recv()
/freebsd-13.1/sys/contrib/alpine-hal/
H A Dal_hal_iofic.c58 al_reg_write32(&regs->ctrl[group].int_control_grp, flags); in al_iofic_config()
76 reg = al_reg_read32(&regs->ctrl[group].int_control_grp); in al_iofic_moder_res_config()
81 al_reg_write32(&regs->ctrl[group].int_control_grp, reg); in al_iofic_moder_res_config()
98 reg = al_reg_read32(&regs->ctrl[group].int_control_grp); in al_iofic_legacy_moder_interval_config()
103 al_reg_write32(&regs->ctrl[group].int_control_grp, reg); in al_iofic_legacy_moder_interval_config()
166 return &regs->ctrl[group].int_mask_clear_grp; in al_iofic_unmask_offset_get()
198 reg = al_reg_read32(&regs->ctrl[group].int_mask_grp); in al_iofic_mask()
213 return al_reg_read32(&regs->ctrl[group].int_mask_grp); in al_iofic_read_mask()
226 return al_reg_read32(&regs->ctrl[group].int_cause_grp); in al_iofic_read_cause()
240 al_reg_write32(&regs->ctrl[group].int_cause_grp, ~mask); in al_iofic_clear_cause()
[all …]
/freebsd-13.1/sys/arm/nvidia/
H A Das3722_gpio.c147 uint8_t ctrl; in as3722_pinmux_config_node() local
159 ctrl = sc->gpio_pins[pin]->pin_ctrl_reg; in as3722_pinmux_config_node()
177 ctrl &= ~(AS3722_GPIO_MODE_MASK << in as3722_pinmux_config_node()
187 ctrl &= ~(AS3722_GPIO_MODE_MASK << in as3722_pinmux_config_node()
196 ctrl |= fnc << AS3722_GPIO_IOSF_SHIFT; in as3722_pinmux_config_node()
201 sc->gpio_pins[pin]->pin_ctrl_reg = ctrl; in as3722_pinmux_config_node()
384 uint8_t ctrl; in as3722_gpio_get_mode() local
387 ctrl = sc->gpio_pins[pin]->pin_ctrl_reg; in as3722_gpio_get_mode()
429 uint8_t ctrl, mode, iosf; in as3722_gpio_pin_setflags() local
481 uint8_t tmp, mode, ctrl; in as3722_gpio_pin_get() local
[all …]
/freebsd-13.1/usr.bin/bsdiff/bspatch/
H A Dbspatch.c120 off_t ctrl[3]; in main() local
249 ctrl[i] = offtin(buf); in main()
253 if (ctrl[0] < 0 || ctrl[0] > INT_MAX || in main()
254 ctrl[1] < 0 || ctrl[1] > INT_MAX) in main()
263 if ((lenread < ctrl[0]) || in main()
268 for (i = 0; i < ctrl[0]; i++) in main()
273 newpos = add_off_t(newpos, ctrl[0]); in main()
274 oldpos = add_off_t(oldpos, ctrl[0]); in main()
282 if ((lenread < ctrl[1]) || in main()
287 newpos = add_off_t(newpos, ctrl[1]); in main()
[all …]
/freebsd-13.1/contrib/ntp/kernel/sys/
H A Dpcl720.h51 i8253_ctrl ctrl; \
53 ctrl.s.bcd = i8253_binary; \
54 ctrl.s.mode = Mode; \
55 ctrl.s.rl = i8253_lmb; \
56 ctrl.s.cntr = c; \
57 pcl720_outb(pcl720_ctrl(b), ctrl.i); \
65 i8253_ctrl ctrl; \
67 ctrl.s.rl = i8253_latch; \
68 ctrl.s.cntr = i8253_cntr_0; \
69 pcl720_outb(pcl720_ctrl(b), ctrl.i); \
/freebsd-13.1/sys/dev/ahci/
H A Dahci_fsl_fdt.c197 switch (ctrl->soc_type) { in ahci_fsl_fdt_ecc_init()
203 if (!ecc_inited && ctrl->r_ecc == NULL) in ahci_fsl_fdt_ecc_init()
206 ATA_OUTL(ctrl->r_ecc, AHCI_FSL_REG_ECC, in ahci_fsl_fdt_ecc_init()
212 if (!ecc_inited && ctrl->r_ecc == NULL) in ahci_fsl_fdt_ecc_init()
215 val = ATA_INL(ctrl->r_ecc, AHCI_FSL_REG_ECC); in ahci_fsl_fdt_ecc_init()
217 ATA_OUTL(ctrl->r_ecc, AHCI_FSL_REG_ECC, val); in ahci_fsl_fdt_ecc_init()
224 if (!ecc_inited && ctrl->r_ecc == NULL) in ahci_fsl_fdt_ecc_init()
247 ahci = &ctrl->ctlr; in ahci_fsl_fdt_phy_init()
248 if (ctrl->soc_type == QORIQ_AHCI_LS1021A) { in ahci_fsl_fdt_phy_init()
262 if (ctrl->ctlr.dma_coherent) in ahci_fsl_fdt_phy_init()
[all …]
/freebsd-13.1/sbin/hastd/
H A Dproto_common.c67 unsigned char ctrl[CMSG_SPACE(sizeof(fd))]; in proto_descriptor_send() local
75 bzero(&ctrl, sizeof(ctrl)); in proto_descriptor_send()
79 msg.msg_control = ctrl; in proto_descriptor_send()
80 msg.msg_controllen = sizeof(ctrl); in proto_descriptor_send()
167 unsigned char ctrl[CMSG_SPACE(sizeof(*fdp))]; in proto_descriptor_recv() local
175 bzero(&ctrl, sizeof(ctrl)); in proto_descriptor_recv()
179 msg.msg_control = ctrl; in proto_descriptor_recv()
180 msg.msg_controllen = sizeof(ctrl); in proto_descriptor_recv()
/freebsd-13.1/contrib/openbsm/bin/auditdistd/
H A Dproto_common.c64 unsigned char ctrl[CMSG_SPACE(sizeof(fd))]; in proto_descriptor_send() local
72 bzero(&ctrl, sizeof(ctrl)); in proto_descriptor_send()
76 msg.msg_control = ctrl; in proto_descriptor_send()
77 msg.msg_controllen = sizeof(ctrl); in proto_descriptor_send()
164 unsigned char ctrl[CMSG_SPACE(sizeof(*fdp))]; in proto_descriptor_recv() local
172 bzero(&ctrl, sizeof(ctrl)); in proto_descriptor_recv()
176 msg.msg_control = ctrl; in proto_descriptor_recv()
177 msg.msg_controllen = sizeof(ctrl); in proto_descriptor_recv()
/freebsd-13.1/sys/contrib/device-tree/Bindings/net/
H A Ddavinci_emac.txt10 - ti,davinci-ctrl-reg-offset: offset to control register
11 - ti,davinci-ctrl-mod-reg-offset: offset to control module register
12 - ti,davinci-ctrl-ram-offset: offset to control module ram
13 - ti,davinci-ctrl-ram-size: size of control module ram
33 ti,davinci-ctrl-reg-offset = <0x3000>;
34 ti,davinci-ctrl-mod-reg-offset = <0x2000>;
35 ti,davinci-ctrl-ram-offset = <0>;
36 ti,davinci-ctrl-ram-size = <0x2000>;
/freebsd-13.1/sys/mips/nlm/hal/
H A Dnlmsaelib.h472 memset(ctrl->key, 0, sizeof(ctrl->key)); in nlm_crypto_fill_pkt_ctrl()
474 memcpy(ctrl->key, cipherkey, cipherkeylen); in nlm_crypto_fill_pkt_ctrl()
476 memcpy((unsigned char *)&ctrl->key[(cipherkeylen + 7) / 8], in nlm_crypto_fill_pkt_ctrl()
482 ctrl->cipherkeylen = cipherkeylen; in nlm_crypto_fill_pkt_ctrl()
483 ctrl->hashkeylen = hklen; in nlm_crypto_fill_pkt_ctrl()
484 ctrl->taglen = taglen; in nlm_crypto_fill_pkt_ctrl()
519 param->desc3 = nlm_crypto_form_pkt_desc3(0, ctrl->taglen, 0, 0, in nlm_crypto_fill_cipher_auth_pkt_param()
535 nlm_crypto_fill_cipher_pkt_param(struct nlm_crypto_pkt_ctrl *ctrl, in nlm_crypto_fill_cipher_pkt_param() argument
543 param->desc3 = nlm_crypto_form_pkt_desc3(0, ctrl->taglen, 0, 0, 0); in nlm_crypto_fill_cipher_pkt_param()
557 nlm_crypto_fill_auth_pkt_param(struct nlm_crypto_pkt_ctrl *ctrl, in nlm_crypto_fill_auth_pkt_param() argument
[all …]
/freebsd-13.1/crypto/openssl/include/crypto/
H A Devp.h78 int (*ctrl) (EVP_PKEY_CTX *ctx, int type, int p1, void *p2); member
154 int (*ctrl) (EVP_CIPHER_CTX *, int type, int arg, void *ptr); member
249 set_asn1, get_asn1, ctrl) \ argument
258 ctrl, \
265 get_asn1, ctrl) \ argument
271 set_asn1, get_asn1, ctrl) \ argument
274 get_asn1, ctrl)
278 set_asn1, get_asn1, ctrl) \ argument
281 get_asn1, ctrl)
285 get_asn1, ctrl) \ argument
[all …]

12345678910>>...20