| /freebsd-13-stable/contrib/wpa/src/common/ |
| HD | wpa_ctrl.c | 97 struct wpa_ctrl *ctrl; in wpa_ctrl_open2() local 107 ctrl = os_zalloc(sizeof(*ctrl)); in wpa_ctrl_open2() 108 if (ctrl == NULL) in wpa_ctrl_open2() 111 ctrl->s = socket(PF_UNIX, SOCK_DGRAM, 0); in wpa_ctrl_open2() 112 if (ctrl->s < 0) { in wpa_ctrl_open2() 113 os_free(ctrl); in wpa_ctrl_open2() 117 ctrl->local.sun_family = AF_UNIX; in wpa_ctrl_open2() 121 ret = os_snprintf(ctrl->local.sun_path, in wpa_ctrl_open2() 122 sizeof(ctrl->local.sun_path), in wpa_ctrl_open2() 126 ret = os_snprintf(ctrl->local.sun_path, in wpa_ctrl_open2() [all …]
|
| HD | wpa_helpers.c | 25 struct wpa_ctrl *ctrl; in wpa_open_ctrl() local 28 ctrl = wpa_ctrl_open(buf); in wpa_open_ctrl() 29 if (ctrl == NULL) in wpa_open_ctrl() 31 return ctrl; in wpa_open_ctrl() 37 struct wpa_ctrl *ctrl; in wpa_command() local 42 ctrl = wpa_open_ctrl(ifname); in wpa_command() 43 if (ctrl == NULL) in wpa_command() 46 if (wpa_ctrl_request(ctrl, cmd, strlen(cmd), buf, &len, NULL) < 0) { in wpa_command() 48 wpa_ctrl_close(ctrl); in wpa_command() 51 wpa_ctrl_close(ctrl); in wpa_command() [all …]
|
| HD | dpp_tcp.c | 25 struct dpp_controller *ctrl; member 141 struct dpp_relay_controller *ctrl; in dpp_relay_add_controller() local 147 ctrl = os_zalloc(sizeof(*ctrl)); in dpp_relay_add_controller() 148 if (!ctrl) in dpp_relay_add_controller() 150 dl_list_init(&ctrl->conn); in dpp_relay_add_controller() 151 ctrl->global = dpp; in dpp_relay_add_controller() 152 os_memcpy(&ctrl->ipaddr, config->ipaddr, sizeof(*config->ipaddr)); in dpp_relay_add_controller() 153 os_memcpy(ctrl->pkhash, config->pkhash, SHA256_MAC_LEN); in dpp_relay_add_controller() 154 ctrl->msg_ctx = config->msg_ctx; in dpp_relay_add_controller() 155 ctrl->cb_ctx = config->cb_ctx; in dpp_relay_add_controller() [all …]
|
| /freebsd-13-stable/contrib/wpa/wpa_supplicant/ |
| HD | wpa_cli.c | 76 static void update_creds(struct wpa_ctrl *ctrl); 77 static void update_networks(struct wpa_ctrl *ctrl); 78 static void update_stations(struct wpa_ctrl *ctrl); 79 static void update_ifnames(struct wpa_ctrl *ctrl); 228 static int _wpa_ctrl_command(struct wpa_ctrl *ctrl, const char *cmd, int print) in _wpa_ctrl_command() argument 245 ret = wpa_ctrl_request(ctrl, cmd, os_strlen(cmd), buf, &len, in _wpa_ctrl_command() 264 static int wpa_ctrl_command(struct wpa_ctrl *ctrl, const char *cmd) in wpa_ctrl_command() argument 266 return _wpa_ctrl_command(ctrl, cmd, 1); in wpa_ctrl_command() 270 static int wpa_cli_cmd(struct wpa_ctrl *ctrl, const char *cmd, int min_args, in wpa_cli_cmd() argument 282 return wpa_ctrl_command(ctrl, buf); in wpa_cli_cmd() [all …]
|
| HD | libwpa_test.c | 15 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-stable/contrib/wpa/hostapd/ |
| HD | hostapd_cli.c | 48 static void update_stations(struct wpa_ctrl *ctrl); 82 static void register_event_handler(struct wpa_ctrl *ctrl) in register_event_handler() argument 88 !eloop_register_read_sock(wpa_ctrl_get_fd(ctrl), in register_event_handler() 95 static void unregister_event_handler(struct wpa_ctrl *ctrl) in unregister_event_handler() argument 100 eloop_unregister_read_sock(wpa_ctrl_get_fd(ctrl)); in unregister_event_handler() 193 static int _wpa_ctrl_command(struct wpa_ctrl *ctrl, const char *cmd, int print) in _wpa_ctrl_command() argument 204 ret = wpa_ctrl_request(ctrl, cmd, strlen(cmd), buf, &len, in _wpa_ctrl_command() 221 static inline int wpa_ctrl_command(struct wpa_ctrl *ctrl, const char *cmd) in wpa_ctrl_command() argument 223 return _wpa_ctrl_command(ctrl, cmd, 1); in wpa_ctrl_command() 227 static int hostapd_cli_cmd(struct wpa_ctrl *ctrl, const char *cmd, in hostapd_cli_cmd() argument [all …]
|
| /freebsd-13-stable/sys/dev/ata/chipsets/ |
| HD | ata-fsl.c | 69 struct ata_pci_controller *ctrl; in imx_ata_probe() local 78 ctrl = device_get_softc(dev); in imx_ata_probe() 87 struct ata_pci_controller *ctrl = data; in imx_ata_intr() local 89 bus_write_2(ctrl->r_res1, 0x28, bus_read_2(ctrl->r_res1, 0x28)); in imx_ata_intr() 90 ctrl->interrupt[0].function(ctrl->interrupt[0].argument); in imx_ata_intr() 96 struct ata_pci_controller *ctrl; in imx_ata_attach() local 100 ctrl = device_get_softc(dev); in imx_ata_attach() 102 ctrl->legacy = ata_legacy(dev); in imx_ata_attach() 103 ctrl->channels = 1; in imx_ata_attach() 104 ctrl->ichannels = -1; in imx_ata_attach() [all …]
|
| /freebsd-13-stable/sys/amd64/vmm/amd/ |
| HD | amdvi_hw.c | 236 struct amdvi_ctrl *ctrl = softc->ctrl; in amdvi_init_cmd() local 238 ctrl->cmd.len = 8; /* Use 256 command buffer entries. */ in amdvi_init_cmd() 239 softc->cmd_max = 1 << ctrl->cmd.len; in amdvi_init_cmd() 247 ctrl->cmd.base = vtophys(softc->cmd) / PAGE_SIZE; in amdvi_init_cmd() 252 ctrl->cmd_tail = 0; in amdvi_init_cmd() 253 ctrl->cmd_head = 0; in amdvi_init_cmd() 267 struct amdvi_ctrl *ctrl; in amdvi_get_cmd_tail() local 273 ctrl = softc->ctrl; in amdvi_get_cmd_tail() 274 KASSERT(ctrl != NULL, ("ctrl is NULL")); in amdvi_get_cmd_tail() 277 ctrl->cmd_tail); in amdvi_get_cmd_tail() [all …]
|
| HD | svm.c | 290 struct vmcb_ctrl *ctrl; in svm_set_tsc_offset() local 292 ctrl = svm_get_vmcb_ctrl(vcpu); in svm_set_tsc_offset() 293 ctrl->tsc_offset = offset; in svm_set_tsc_offset() 386 struct vmcb_ctrl *ctrl; in svm_get_intercept() local 390 ctrl = svm_get_vmcb_ctrl(vcpu); in svm_get_intercept() 391 return (ctrl->intercept[idx] & bitmask ? 1 : 0); in svm_get_intercept() 397 struct vmcb_ctrl *ctrl; in svm_set_intercept() local 402 ctrl = svm_get_vmcb_ctrl(vcpu); in svm_set_intercept() 403 oldval = ctrl->intercept[idx]; in svm_set_intercept() 406 ctrl->intercept[idx] |= bitmask; in svm_set_intercept() [all …]
|
| /freebsd-13-stable/sys/dev/uart/ |
| HD | uart_dev_mvebu.c | 176 uint32_t ctrl = 0; in uart_mvebu_param() local 181 ctrl = uart_getreg(bas, UART_CTRL); in uart_mvebu_param() 182 uart_setreg(bas, UART_CTRL, ctrl | CTRL_TX_FIFO_RST | CTRL_RX_FIFO_RST | in uart_mvebu_param() 188 ctrl |= CTRL_TWO_STOP; in uart_mvebu_param() 192 ctrl &=~ CTRL_TWO_STOP; in uart_mvebu_param() 197 ctrl |= CTRL_PAR_EN; in uart_mvebu_param() 200 ctrl &=~ CTRL_PAR_EN; in uart_mvebu_param() 218 ctrl |= CTRL_ST_MIRR_EN; in uart_mvebu_param() 220 uart_setreg(bas, UART_CTRL, ctrl); in uart_mvebu_param() 332 int ctrl; in uart_mvebu_bus_attach() local [all …]
|
| /freebsd-13-stable/sys/dev/e1000/ |
| HD | e1000_82543.c | 69 static void e1000_lower_mdi_clk_82543(struct e1000_hw *hw, u32 *ctrl); 71 static void e1000_raise_mdi_clk_82543(struct e1000_hw *hw, u32 *ctrl); 590 static void e1000_raise_mdi_clk_82543(struct e1000_hw *hw, u32 *ctrl) in e1000_raise_mdi_clk_82543() argument 596 E1000_WRITE_REG(hw, E1000_CTRL, (*ctrl | E1000_CTRL_MDC)); in e1000_raise_mdi_clk_82543() 609 static void e1000_lower_mdi_clk_82543(struct e1000_hw *hw, u32 *ctrl) in e1000_lower_mdi_clk_82543() argument 615 E1000_WRITE_REG(hw, E1000_CTRL, (*ctrl & ~E1000_CTRL_MDC)); in e1000_lower_mdi_clk_82543() 633 u32 ctrl, mask; in e1000_shift_out_mdi_bits_82543() local 644 ctrl = E1000_READ_REG(hw, E1000_CTRL); in e1000_shift_out_mdi_bits_82543() 647 ctrl |= (E1000_CTRL_MDIO_DIR | E1000_CTRL_MDC_DIR); in e1000_shift_out_mdi_bits_82543() 657 ctrl |= E1000_CTRL_MDIO; in e1000_shift_out_mdi_bits_82543() [all …]
|
| /freebsd-13-stable/sys/dev/bwi/ |
| HD | bwiphy.h | 67 #define PHY_WRITE(mac, ctrl, val) bwi_phy_write((mac), (ctrl), (val)) argument 68 #define PHY_READ(mac, ctrl) bwi_phy_read((mac), (ctrl)) argument 70 #define PHY_SETBITS(mac, ctrl, bits) \ argument 71 PHY_WRITE((mac), (ctrl), PHY_READ((mac), (ctrl)) | (bits)) 72 #define PHY_CLRBITS(mac, ctrl, bits) \ argument 73 PHY_WRITE((mac), (ctrl), PHY_READ((mac), (ctrl)) & ~(bits)) 74 #define PHY_FILT_SETBITS(mac, ctrl, filt, bits) \ argument 75 PHY_WRITE((mac), (ctrl), (PHY_READ((mac), (ctrl)) & (filt)) | (bits))
|
| /freebsd-13-stable/usr.sbin/bluetooth/bthidd/ |
| HD | server.c | 71 srv->ctrl = srv->intr = -1; in server_init() 85 srv->ctrl = socket(PF_BLUETOOTH, SOCK_SEQPACKET, BLUETOOTH_PROTO_L2CAP); in server_init() 86 if (srv->ctrl < 0) { in server_init() 100 if (bind(srv->ctrl, (struct sockaddr *) &l2addr, sizeof(l2addr)) < 0) { in server_init() 103 close(srv->ctrl); in server_init() 108 if (listen(srv->ctrl, 10) < 0) { in server_init() 111 close(srv->ctrl); in server_init() 121 close(srv->ctrl); in server_init() 132 close(srv->ctrl); in server_init() 141 close(srv->ctrl); in server_init() [all …]
|
| /freebsd-13-stable/sys/x86/pci/ |
| HD | pci_early_quirks.c | 64 uint32_t ctrl; in intel_stolen_base_gen3() local 67 ctrl = pci_cfgregread(domain, bus, slot, func, INTEL_BSM, 4); in intel_stolen_base_gen3() 68 val = ctrl & INTEL_BSM_MASK; in intel_stolen_base_gen3() 75 uint32_t ctrl; in intel_stolen_size_gen3() local 78 ctrl = pci_cfgregread(0, 0, 0, 0, I830_GMCH_CTRL, 2); in intel_stolen_size_gen3() 79 val = ctrl & I855_GMCH_GMS_MASK; in intel_stolen_size_gen3() 115 uint32_t ctrl; in intel_stolen_size_gen6() local 118 ctrl = pci_cfgregread(domain, bus, slot, func, SNB_GMCH_CTRL, 2); in intel_stolen_size_gen6() 119 val = (ctrl >> SNB_GMCH_GMS_SHIFT) & SNB_GMCH_GMS_MASK; in intel_stolen_size_gen6() 126 uint32_t ctrl; in intel_stolen_size_gen8() local [all …]
|
| /freebsd-13-stable/tools/regression/capsicum/syscalls/ |
| HD | misc.c | 55 unsigned char ctrl[CMSG_SPACE(sizeof(fd))]; in descriptor_send() local 63 bzero(&ctrl, sizeof(ctrl)); in descriptor_send() 67 msg.msg_control = ctrl; in descriptor_send() 68 msg.msg_controllen = sizeof(ctrl); in descriptor_send() 85 unsigned char ctrl[CMSG_SPACE(sizeof(*fdp))]; in descriptor_recv() local 95 bzero(&ctrl, sizeof(ctrl)); in descriptor_recv() 111 msg.msg_control = ctrl; in descriptor_recv() 112 msg.msg_controllen = sizeof(ctrl); in descriptor_recv()
|
| /freebsd-13-stable/sys/contrib/alpine-hal/ |
| HD | al_hal_iofic.c | 58 al_reg_write32(®s->ctrl[group].int_control_grp, flags); in al_iofic_config() 76 reg = al_reg_read32(®s->ctrl[group].int_control_grp); in al_iofic_moder_res_config() 81 al_reg_write32(®s->ctrl[group].int_control_grp, reg); in al_iofic_moder_res_config() 98 reg = al_reg_read32(®s->ctrl[group].int_control_grp); in al_iofic_legacy_moder_interval_config() 103 al_reg_write32(®s->ctrl[group].int_control_grp, reg); in al_iofic_legacy_moder_interval_config() 166 return ®s->ctrl[group].int_mask_clear_grp; in al_iofic_unmask_offset_get() 184 al_reg_write32_relaxed(®s->ctrl[group].int_mask_clear_grp, ~mask); in al_iofic_unmask() 198 reg = al_reg_read32(®s->ctrl[group].int_mask_grp); in al_iofic_mask() 200 al_reg_write32(®s->ctrl[group].int_mask_grp, reg | mask); in al_iofic_mask() 213 return al_reg_read32(®s->ctrl[group].int_mask_grp); in al_iofic_read_mask() [all …]
|
| /freebsd-13-stable/sys/arm/nvidia/ |
| HD | as3722_gpio.c | 145 uint8_t ctrl; in as3722_pinmux_config_node() local 157 ctrl = sc->gpio_pins[pin]->pin_ctrl_reg; in as3722_pinmux_config_node() 175 ctrl &= ~(AS3722_GPIO_MODE_MASK << in as3722_pinmux_config_node() 177 ctrl |= AS3722_MODE_PUSH_PULL << AS3722_GPIO_MODE_SHIFT; in as3722_pinmux_config_node() 185 ctrl &= ~(AS3722_GPIO_MODE_MASK << in as3722_pinmux_config_node() 187 ctrl |= AS3722_MODE_INPUT << AS3722_GPIO_MODE_SHIFT; in as3722_pinmux_config_node() 193 ctrl &= ~(AS3722_GPIO_IOSF_MASK << AS3722_GPIO_IOSF_SHIFT); in as3722_pinmux_config_node() 194 ctrl |= fnc << AS3722_GPIO_IOSF_SHIFT; in as3722_pinmux_config_node() 197 if (ctrl != sc->gpio_pins[pin]->pin_ctrl_reg) { in as3722_pinmux_config_node() 198 rv = WR1(sc, AS3722_GPIO0_CONTROL + pin, ctrl); in as3722_pinmux_config_node() [all …]
|
| /freebsd-13-stable/usr.bin/bsdiff/bspatch/ |
| HD | bspatch.c | 118 off_t ctrl[3]; in main() local 247 ctrl[i] = offtin(buf); in main() 251 if (ctrl[0] < 0 || ctrl[0] > INT_MAX || in main() 252 ctrl[1] < 0 || ctrl[1] > INT_MAX) in main() 256 if (add_off_t(newpos, ctrl[0]) > newsize) in main() 260 lenread = BZ2_bzRead(&dbz2err, dpfbz2, new + newpos, ctrl[0]); in main() 261 if ((lenread < ctrl[0]) || in main() 266 for (i = 0; i < ctrl[0]; i++) in main() 271 newpos = add_off_t(newpos, ctrl[0]); in main() 272 oldpos = add_off_t(oldpos, ctrl[0]); in main() [all …]
|
| /freebsd-13-stable/contrib/ntp/kernel/sys/ |
| HD | pcl720.h | 51 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-stable/sys/dev/ahci/ |
| HD | ahci_fsl_fdt.c | 191 ahci_fsl_fdt_ecc_init(struct ahci_fsl_fdt_controller *ctrl) in ahci_fsl_fdt_ecc_init() argument 195 switch (ctrl->soc_type) { in ahci_fsl_fdt_ecc_init() 201 if (!ecc_inited && ctrl->r_ecc == NULL) in ahci_fsl_fdt_ecc_init() 204 ATA_OUTL(ctrl->r_ecc, AHCI_FSL_REG_ECC, in ahci_fsl_fdt_ecc_init() 210 if (!ecc_inited && ctrl->r_ecc == NULL) in ahci_fsl_fdt_ecc_init() 213 val = ATA_INL(ctrl->r_ecc, AHCI_FSL_REG_ECC); in ahci_fsl_fdt_ecc_init() 215 ATA_OUTL(ctrl->r_ecc, AHCI_FSL_REG_ECC, val); in ahci_fsl_fdt_ecc_init() 222 if (!ecc_inited && ctrl->r_ecc == NULL) in ahci_fsl_fdt_ecc_init() 226 val = ATA_INL(ctrl->r_ecc, AHCI_FSL_REG_ECC); in ahci_fsl_fdt_ecc_init() 228 ATA_OUTL(ctrl->r_ecc, AHCI_FSL_REG_ECC, val); in ahci_fsl_fdt_ecc_init() [all …]
|
| /freebsd-13-stable/contrib/libpcap/ |
| HD | pcap-usb-linux.c | 338 struct usbdevfs_ctrltransfer ctrl; in probe_devices() local 370 ctrl.bRequestType = USB_DIR_IN | USB_TYPE_STANDARD | USB_RECIP_DEVICE; in probe_devices() 371 ctrl.bRequest = USB_REQ_GET_DESCRIPTOR; in probe_devices() 372 ctrl.wValue = USB_DT_DEVICE << 8; in probe_devices() 373 ctrl.wIndex = 0; in probe_devices() 374 ctrl.wLength = sizeof(descriptor); in probe_devices() 376 ctrl.requesttype = USB_DIR_IN | USB_TYPE_STANDARD | USB_RECIP_DEVICE; in probe_devices() 377 ctrl.request = USB_REQ_GET_DESCRIPTOR; in probe_devices() 378 ctrl.value = USB_DT_DEVICE << 8; in probe_devices() 379 ctrl.index = 0; in probe_devices() [all …]
|
| /freebsd-13-stable/contrib/openbsm/bin/auditdistd/ |
| HD | proto_common.c | 64 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-stable/sbin/hastd/ |
| HD | proto_common.c | 65 unsigned char ctrl[CMSG_SPACE(sizeof(fd))]; in proto_descriptor_send() local 73 bzero(&ctrl, sizeof(ctrl)); in proto_descriptor_send() 77 msg.msg_control = ctrl; in proto_descriptor_send() 78 msg.msg_controllen = sizeof(ctrl); in proto_descriptor_send() 165 unsigned char ctrl[CMSG_SPACE(sizeof(*fdp))]; in proto_descriptor_recv() local 173 bzero(&ctrl, sizeof(ctrl)); in proto_descriptor_recv() 177 msg.msg_control = ctrl; in proto_descriptor_recv() 178 msg.msg_controllen = sizeof(ctrl); in proto_descriptor_recv()
|
| /freebsd-13-stable/sys/contrib/device-tree/Bindings/net/ |
| HD | davinci_emac.txt | 10 - 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-stable/sys/dev/usb/input/ |
| HD | usbhid.c | 106 struct usb_device_request ctrl; /* CTRL xfers */ member 229 struct usb_device_request *req = &xfer_ctx->req.ctrl; in usbhid_ctrl_callback() 565 req.ctrl.bmRequestType = UT_READ_CLASS_INTERFACE; in usbhid_get_report() 566 req.ctrl.bRequest = UR_GET_REPORT; in usbhid_get_report() 567 USETW2(req.ctrl.wValue, type, id); in usbhid_get_report() 568 req.ctrl.wIndex[0] = sc->sc_iface_no; in usbhid_get_report() 569 req.ctrl.wIndex[1] = 0; in usbhid_get_report() 570 USETW(req.ctrl.wLength, maxlen); in usbhid_get_report() 591 req.ctrl.bmRequestType = UT_WRITE_CLASS_INTERFACE; in usbhid_set_report() 592 req.ctrl.bRequest = UR_SET_REPORT; in usbhid_set_report() [all …]
|