| /freebsd-12.1/contrib/wpa/src/common/ |
| H A D | wpa_ctrl.c | 107 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() 317 ctrl = os_zalloc(sizeof(*ctrl)); in wpa_ctrl_open() 348 if (bind(ctrl->s, (struct sockaddr *) &ctrl->local, in wpa_ctrl_open() 423 if (connect(ctrl->s, (struct sockaddr *) &ctrl->dest, in wpa_ctrl_open() 464 ctrl->remote_ip, ctrl->remote_ifname); in wpa_ctrl_get_remote_ifname() 661 ctrl = os_malloc(sizeof(*ctrl)); in wpa_ctrl_open() [all …]
|
| H A D | wpa_helpers.c | 25 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 …]
|
| /freebsd-12.1/contrib/wpa/wpa_supplicant/ |
| H A D | wpa_cli.c | 1332 update_networks(ctrl); in wpa_cli_cmd_add_network() 1565 update_creds(ctrl); in wpa_cli_cmd_add_cred() 1575 update_creds(ctrl); in wpa_cli_cmd_remove_cred() 4327 if (ctrl == NULL) in update_bssid_list() 4361 if (ctrl == NULL) in update_ifnames() 4393 if (ctrl == NULL) in update_creds() 4425 if (ctrl == NULL) in update_networks() 4537 ctrl, NULL); in wpa_cli_action_ping() 4559 ctrl, NULL); in wpa_cli_action() 4628 if (ctrl == NULL) in wpa_cli_get_default_ifname() [all …]
|
| H A D | 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-12.1/sys/dev/ata/chipsets/ |
| H A D | ata-fsl.c | 81 ctrl = device_get_softc(dev); in imx_ata_probe() 92 bus_write_2(ctrl->r_res1, 0x28, bus_read_2(ctrl->r_res1, 0x28)); in imx_ata_intr() 93 ctrl->interrupt[0].function(ctrl->interrupt[0].argument); in imx_ata_intr() 103 ctrl = device_get_softc(dev); in imx_ata_attach() 106 ctrl->channels = 1; in imx_ata_attach() 107 ctrl->ichannels = -1; in imx_ata_attach() 110 ctrl->dev = dev; in imx_ata_attach() 113 ctrl->r_rid1 = 0; in imx_ata_attach() 114 ctrl->r_res1 = bus_alloc_resource_any(dev, ctrl->r_type1, in imx_ata_attach() 115 &ctrl->r_rid1, RF_ACTIVE); in imx_ata_attach() [all …]
|
| /freebsd-12.1/contrib/wpa/hostapd/ |
| H A D | hostapd_cli.c | 236 return wpa_ctrl_command(ctrl, buf); in hostapd_cli_cmd() 319 return wpa_ctrl_command(ctrl, buf); in hostapd_cli_cmd_sta() 348 return wpa_ctrl_command(ctrl, buf); in hostapd_cli_cmd_new_sta() 366 return wpa_ctrl_command(ctrl, buf); in hostapd_cli_cmd_deauthenticate() 384 return wpa_ctrl_command(ctrl, buf); in hostapd_cli_cmd_disassociate() 399 return wpa_ctrl_command(ctrl, buf); in hostapd_cli_cmd_signature() 502 ret = wpa_ctrl_command(ctrl, buf); in hostapd_cli_cmd_wps_nfc_tag_read() 932 if (!ctrl || !interactive) in update_stations() 953 if (!ctrl || !interfaces) in hostapd_cli_get_interfaces() 1800 while (wpa_ctrl_pending(ctrl)) { in hostapd_cli_recv_pending() [all …]
|
| /freebsd-12.1/sys/dev/uart/ |
| H A D | uart_dev_mvebu.c | 178 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-12.1/sys/amd64/vmm/amd/ |
| H A D | amdvi_hw.c | 273 ctrl = softc->ctrl; in amdvi_get_cmd_tail() 294 ctrl = softc->ctrl; in amdvi_update_cmd_tail() 454 ctrl = softc->ctrl; in amdvi_cmp_wait() 481 ctrl = softc->ctrl; in amdvi_wait() 505 ctrl = softc->ctrl; in amdvi_dump_cmds() 529 ctrl = softc->ctrl; in amdvi_init_event() 697 ctrl = softc->ctrl; in amdvi_print_events() 716 ctrl = softc->ctrl; in amdvi_init_dte() 762 ctrl = softc->ctrl; in amdvi_event_intr() 865 ctrl = softc->ctrl; in amdvi_alloc_intr_resources() [all …]
|
| H A D | svm.c | 427 ctrl->np_enable = 1; in vmcb_init() 428 ctrl->n_cr3 = np_pml4; in vmcb_init() 498 ctrl->asid = 0; in vmcb_init() 842 ctrl = &vmcb->ctrl; in svm_handle_inst_emul() 1007 if (ctrl->v_irq && ctrl->v_intr_vector == 0) { in enable_intr_window_exiting() 1015 ctrl->v_irq = 1; in enable_intr_window_exiting() 1016 ctrl->v_ign_tpr = 1; in enable_intr_window_exiting() 1029 if (!ctrl->v_irq && ctrl->v_intr_vector == 0) { in disable_intr_window_exiting() 1036 ctrl->v_irq = 0; in disable_intr_window_exiting() 1316 ctrl = &vmcb->ctrl; in svm_vmexit() [all …]
|
| /freebsd-12.1/sys/dev/e1000/ |
| H A D | e1000_82543.c | 634 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 …]
|
| H A D | e1000_mac.c | 779 u32 ctrl; in e1000_check_for_fiber_link_generic() local 846 u32 ctrl; in e1000_check_for_serdes_link_generic() local 1179 u32 ctrl; in e1000_setup_fiber_serdes_link_generic() local 1187 ctrl &= ~E1000_CTRL_LRST; in e1000_setup_fiber_serdes_link_generic() 1292 u32 ctrl; in e1000_force_mac_fc_generic() local 1322 ctrl &= (~E1000_CTRL_TFCE); in e1000_force_mac_fc_generic() 1323 ctrl |= E1000_CTRL_RFCE; in e1000_force_mac_fc_generic() 1327 ctrl |= E1000_CTRL_TFCE; in e1000_force_mac_fc_generic() 1931 u32 ctrl; in e1000_led_on_generic() local 1960 u32 ctrl; in e1000_led_off_generic() local [all …]
|
| /freebsd-12.1/sys/dev/bwi/ |
| H A D | bwiphy.h | 68 #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-12.1/usr.sbin/bluetooth/bthidd/ |
| H A D | server.c | 87 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-12.1/sys/x86/pci/ |
| H A D | pci_early_quirks.c | 66 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-12.1/sys/contrib/alpine-hal/ |
| H A D | 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() 198 reg = al_reg_read32(®s->ctrl[group].int_mask_grp); in al_iofic_mask() 213 return al_reg_read32(®s->ctrl[group].int_mask_grp); in al_iofic_read_mask() 226 return al_reg_read32(®s->ctrl[group].int_cause_grp); in al_iofic_read_cause() 240 al_reg_write32(®s->ctrl[group].int_cause_grp, ~mask); in al_iofic_clear_cause() [all …]
|
| /freebsd-12.1/tools/regression/capsicum/syscalls/ |
| H A D | misc.c | 58 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-12.1/usr.bin/bsdiff/bspatch/ |
| H A D | bspatch.c | 104 off_t ctrl[3]; in main() local 237 ctrl[i] = offtin(buf); in main() 241 if (ctrl[0] < 0 || ctrl[0] > INT_MAX || in main() 242 ctrl[1] < 0 || ctrl[1] > INT_MAX) in main() 251 if ((lenread < ctrl[0]) || in main() 256 for (i = 0; i < ctrl[0]; i++) in main() 261 newpos += ctrl[0]; in main() 262 oldpos += ctrl[0]; in main() 270 if ((lenread < ctrl[1]) || in main() 275 newpos+=ctrl[1]; in main() [all …]
|
| /freebsd-12.1/sys/arm/nvidia/ |
| H A D | as3722_gpio.c | 150 uint8_t ctrl; in as3722_pinmux_config_node() local 162 ctrl = sc->gpio_pins[pin]->pin_ctrl_reg; in as3722_pinmux_config_node() 180 ctrl &= ~(AS3722_GPIO_MODE_MASK << in as3722_pinmux_config_node() 190 ctrl &= ~(AS3722_GPIO_MODE_MASK << in as3722_pinmux_config_node() 199 ctrl |= fnc << AS3722_GPIO_IOSF_SHIFT; in as3722_pinmux_config_node() 204 sc->gpio_pins[pin]->pin_ctrl_reg = ctrl; in as3722_pinmux_config_node() 388 uint8_t ctrl; in as3722_gpio_get_mode() local 391 ctrl = sc->gpio_pins[pin]->pin_ctrl_reg; in as3722_gpio_get_mode() 433 uint8_t ctrl, mode, iosf; in as3722_gpio_pin_setflags() local 485 uint8_t tmp, mode, ctrl; in as3722_gpio_pin_get() local [all …]
|
| /freebsd-12.1/contrib/ntp/kernel/sys/ |
| H A D | 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-12.1/sys/dev/nand/ |
| H A D | nandsim.c | 166 ctrl->num_cs); in nandsim_create_ctrl() 172 sim_ctrl = &ctrls[ctrl->num]; in nandsim_create_ctrl() 176 sim_ctrl->num = ctrl->num; in nandsim_create_ctrl() 178 sim_ctrl->ecc = ctrl->ecc; in nandsim_create_ctrl() 216 ctrl->num_cs); in nandsim_ctrl_status() 222 ctrl->num_cs = ctrls[ctrl->num].num_cs; in nandsim_ctrl_status() 223 ctrl->ecc = ctrls[ctrl->num].ecc; in nandsim_ctrl_status() 224 memcpy(ctrl->ecc_layout, ctrls[ctrl->num].ecc_layout, in nandsim_ctrl_status() 226 strlcpy(ctrl->filename, ctrls[ctrl->num].filename, in nandsim_ctrl_status() 228 ctrl->running = ctrls[ctrl->num].running; in nandsim_ctrl_status() [all …]
|
| /freebsd-12.1/contrib/openbsm/bin/auditdistd/ |
| H A D | 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-12.1/sbin/hastd/ |
| H A D | proto_common.c | 67 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-12.1/sys/mips/nlm/hal/ |
| H A D | nlmsaelib.h | 472 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-12.1/crypto/openssl/crypto/include/internal/ |
| H A D | evp_int.h | 78 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 …]
|
| /freebsd-12.1/contrib/ofed/libmlx5/ |
| H A D | qp.c | 107 struct mlx5_wqe_ctrl_seg *ctrl; in mlx5_copy_to_send_wqe() local 118 p = ctrl + 1; in mlx5_copy_to_send_wqe() 138 max = (be32toh(ctrl->qpn_ds) & 0x3F) - (((void *)scat - (void *)ctrl) >> 4); in mlx5_copy_to_send_wqe() 315 return calc_sig(ctrl, be32toh(ctrl->qpn_ds)); in wq_sig() 489 ctrl->translation_offset = 0; in set_umr_control_seg() 490 memset(ctrl->rsvd0, 0, sizeof(ctrl->rsvd0)); in set_umr_control_seg() 491 memset(ctrl->rsvd1, 0, sizeof(ctrl->rsvd1)); in set_umr_control_seg() 675 ctrl->imm = send_ieth(wr); in _mlx5_post_send() 682 seg += sizeof *ctrl; in _mlx5_post_send() 683 size = sizeof *ctrl / 16; in _mlx5_post_send() [all …]
|