| /openbsd-src/usr.bin/tmux/ |
| H A D | key-bindings.c | 95 key_bindings_free(struct key_binding *bd) in key_bindings_free() argument 97 cmd_list_free(bd->cmdlist); in key_bindings_free() 98 free((void *)bd->note); in key_bindings_free() 99 free(bd); in key_bindings_free() 138 struct key_binding *bd; in key_bindings_unref_table() local 144 RB_FOREACH_SAFE(bd, key_bindings, &table->key_bindings, bd1) { in key_bindings_unref_table() 145 RB_REMOVE(key_bindings, &table->key_bindings, bd); in key_bindings_unref_table() 146 key_bindings_free(bd); in key_bindings_unref_table() 148 RB_FOREACH_SAFE(bd, key_bindings, &table->default_key_bindings, bd1) { in key_bindings_unref_table() 149 RB_REMOVE(key_bindings, &table->default_key_bindings, bd); in key_bindings_unref_table() 160 struct key_binding bd; key_bindings_get() local 169 struct key_binding bd; key_bindings_get_default() local 182 key_bindings_next(__unused struct key_table * table,struct key_binding * bd) key_bindings_next() argument 192 struct key_binding *bd; key_bindings_add() local 233 struct key_binding *bd; key_bindings_remove() local 260 struct key_binding *bd, *dd; key_bindings_reset() local 309 struct key_binding *bd, *bd1; key_bindings_reset_table() local 326 struct key_binding *bd, *new_bd; key_bindings_init_done() local 665 key_bindings_dispatch(struct key_binding * bd,struct cmdq_item * item,struct client * c,struct key_event * event,struct cmd_find_state * fs) key_bindings_dispatch() argument [all...] |
| H A D | cmd-list-keys.c | 61 struct key_binding *bd; in cmd_list_keys_get_width() local 67 bd = key_bindings_first(table); in cmd_list_keys_get_width() 68 while (bd != NULL) { in cmd_list_keys_get_width() 69 if ((only != KEYC_UNKNOWN && bd->key != only) || in cmd_list_keys_get_width() 70 KEYC_IS_MOUSE(bd->key) || in cmd_list_keys_get_width() 71 bd->note == NULL || in cmd_list_keys_get_width() 72 *bd->note == '\0') { in cmd_list_keys_get_width() 73 bd = key_bindings_next(table, bd); in cmd_list_keys_get_width() 76 width = utf8_cstrwidth(key_string_lookup_key(bd in cmd_list_keys_get_width() 91 struct key_binding *bd; cmd_list_keys_print_notes() local 153 struct key_binding *bd; cmd_list_keys_exec() local [all...] |
| H A D | window-customize.c | 170 struct key_binding *bd; in window_customize_get_key() 175 bd = key_bindings_get(kt, item->key); in window_customize_get_key() 176 if (bd == NULL) in window_customize_get_key() 182 *bdp = bd; in window_customize_get_key() 450 struct key_binding *bd; in window_customize_build_keys() 466 bd = key_bindings_first(kt); in window_customize_build_keys() 467 while (bd != NULL) { in window_customize_build_keys() 468 format_add(ft, "key", "%s", key_string_lookup_key(bd->key, 0)); in window_customize_build_keys() 469 if (bd->note != NULL) in window_customize_build_keys() 470 format_add(ft, "key_note", "%s", bd in window_customize_build_keys() 169 struct key_binding *bd; window_customize_get_key() local 449 struct key_binding *bd; window_customize_build_keys() local 596 struct key_binding *bd, *default_bd; window_customize_draw_key() local 1175 struct key_binding *bd; window_customize_set_command_callback() local 1214 struct key_binding *bd; window_customize_set_note_callback() local 1237 struct key_binding *bd; window_customize_set_key() local 1289 struct key_binding *bd; window_customize_unset_key() local 1306 struct key_binding *dd, *bd; window_customize_reset_key() local [all...] |
| /openbsd-src/sys/dev/fdt/ |
| H A D | bd718x7.c | 124 struct bdpmic_regulator *bd; in bdpmic_attach_regulator() local 138 bd = malloc(sizeof(*bd), M_DEVBUF, M_WAITOK | M_ZERO); in bdpmic_attach_regulator() 139 bd->bd_sc = sc; in bdpmic_attach_regulator() 141 bd->bd_reg = sc->sc_regdata[i].reg; in bdpmic_attach_regulator() 142 bd->bd_mask = sc->sc_regdata[i].mask; in bdpmic_attach_regulator() 143 bd->bd_base = sc->sc_regdata[i].base; in bdpmic_attach_regulator() 144 bd->bd_delta = sc->sc_regdata[i].delta; in bdpmic_attach_regulator() 146 bd->bd_rd.rd_node = node; in bdpmic_attach_regulator() 147 bd->bd_rd.rd_cookie = bd; in bdpmic_attach_regulator() 148 bd->bd_rd.rd_get_voltage = bdpmic_get_voltage; in bdpmic_attach_regulator() [all …]
|
| /openbsd-src/sys/dev/pci/drm/include/linux/ |
| H A D | backlight.h | 43 bl_get_data(struct backlight_device *bd) in bl_get_data() argument 45 return bd->data; in bl_get_data() 49 backlight_get_brightness(struct backlight_device *bd) in backlight_get_brightness() argument 51 return bd->props.brightness; in backlight_get_brightness() 69 backlight_update_status(struct backlight_device *bd) in backlight_update_status() argument 71 bd->ops->update_status(bd); in backlight_update_status() 75 backlight_force_update(struct backlight_device *bd, int reason) in backlight_force_update() argument 77 bd->props.brightness = bd->ops->get_brightness(bd); in backlight_force_update() 81 backlight_device_set_brightness(struct backlight_device *bd, int level) in backlight_device_set_brightness() argument 83 if (level > bd->props.max_brightness) in backlight_device_set_brightness() [all …]
|
| /openbsd-src/sys/arch/alpha/alpha/ |
| H A D | autoconf.c | 127 static struct bootdev_data bd; in parse_prom_bootdev() local 163 bd.protocol = boot_fields[0]; in parse_prom_bootdev() 164 bd.bus = atoi(boot_fields[1]); in parse_prom_bootdev() 165 bd.slot = atoi(boot_fields[2]); in parse_prom_bootdev() 166 bd.channel = atoi(boot_fields[3]); in parse_prom_bootdev() 167 bd.remote_address = boot_fields[4]; in parse_prom_bootdev() 168 bd.unit = atoi(boot_fields[5]); in parse_prom_bootdev() 169 bd.boot_dev_type = atoi(boot_fields[6]); in parse_prom_bootdev() 170 bd.ctrl_dev_type = boot_fields[7]; in parse_prom_bootdev() 174 bd.protocol, bd.bus, bd.slot, bd.channel); in parse_prom_bootdev() [all …]
|
| /openbsd-src/usr.sbin/installboot/ |
| H A D | softraid.c | 39 struct bioc_disk bd; in sr_prepare_chunk() local 44 diskfd = sr_open_chunk(devfd, vol, disk, &bd, &realdev, &part); in sr_prepare_chunk() 152 sr_open_chunk(int devfd, int vol, int disk, struct bioc_disk *bd, in sr_open_chunk() argument 158 memset(bd, 0, sizeof(*bd)); in sr_open_chunk() 159 bd->bd_volid = vol; in sr_open_chunk() 160 bd->bd_diskid = disk; in sr_open_chunk() 161 if (ioctl(devfd, BIOCDISK, bd) == -1) in sr_open_chunk() 165 if (bd->bd_status != BIOC_SDONLINE && in sr_open_chunk() 166 bd->bd_status != BIOC_SDREBUILD) { in sr_open_chunk() 173 if (bd->bd_size == 0) in sr_open_chunk() [all …]
|
| H A D | efi_softraid.c | 29 struct bioc_disk bd; in sr_install_bootblk() local 34 diskfd = sr_open_chunk(devfd, vol, disk, &bd, &realdev, &part); in sr_install_bootblk() 39 fprintf(stderr, "%s%c: %s boot blocks on %s\n", bd.bd_vendor, in sr_install_bootblk()
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/gcc.dg/ |
| H A D | complete-port.c | 19 double ad = dfoo (), bd = dfoo (); in main() local 34 ddiscard (ad + bd); in main() 35 ddiscard (ad - bd); in main() 36 ddiscard (ad * bd); in main() 37 ddiscard (ad / bd); in main() 53 discard (ad == bd); in main() 54 discard (ad < bd); in main() 55 discard (ad > bd); in main() 56 discard (ad != bd); in main() 57 discard (ad <= bd); in main() [all …]
|
| H A D | 20030627-1.c | 6 void test_inout (char *bd, int xd, char *bs, int xs) in test_inout() argument 8 *(long long *)(bd + xd + 4093) = *(long long *)(bs + xs + 4093); in test_inout() 11 void test_in (char *bd, int xd, char *bs, int xs) in test_in() argument 13 *(long long *)(bd + xd) = *(long long *)(bs + xs + 4093); in test_in() 16 void test_out (char *bd, int xd, char *bs, int xs) in test_out() argument 18 *(long long *)(bd + xd + 4093) = *(long long *)(bs + xs); in test_out()
|
| /openbsd-src/sbin/bioctl/ |
| H A D | bioctl.c | 399 struct bioc_disk bd; in bio_inq() local 520 memset(&bd, 0, sizeof(bd)); in bio_inq() 521 bd.bd_bio.bio_cookie = bio_cookie; in bio_inq() 522 bd.bd_diskid = d; in bio_inq() 523 bd.bd_volid = i; in bio_inq() 524 bd.bd_patrol.bdp_percent = -1; in bio_inq() 525 bd.bd_patrol.bdp_seconds = 0; in bio_inq() 527 if (ioctl(devh, BIOCDISK, &bd) == -1) in bio_inq() 530 bio_status(&bd.bd_bio.bio_status); in bio_inq() 532 switch (bd.bd_status) { in bio_inq() [all …]
|
| /openbsd-src/gnu/usr.bin/perl/cpan/Encode/t/ |
| H A D | rt76824.t | 29 "\x{feff}\x{39f}\x{3af} \x{3a3}\x{3c5}\x{3bd}\x{3ad}\x{3bd}\x{3bf}\x{3c7}\x{3bf}\x{3b9}\n", 30 "\x{39f}\x{3b9} \x{393}\x{3b5}\x{3bd}\x{3bd}\x{3b1}\x{3af}\x{3bf}\x{3b9} \x{3c4}\x{3b7}\x{3c2} \x{3a3}\x{3b1}\x{3bc}\x{3bf}\x{3b8}\x{3c1}\x{3ac}\x{3ba}\x{3b7}\x{3c2}\n", 31 "\x{39f}\x{3b9} \x{393}\x{3b5}\x{3c1}\x{3bc}\x{3b1}\x{3bd}\x{3bf}\x{3af} \x{3be}\x{3b1}\x{3bd}\x{3ac}\x{3c1}\x{3c7}\x{3bf}\x{3bd}\x{3c4}\x{3b1}\x{3b9}...\n", 33 "\x{39f}\x{3b9} \x{39a}\x{3c5}\x{3bd}\x{3b7}\x{3b3}\x{3bf}\x{3af}\n", 34 "\x{39f}\x{3b9} \x{3a0}\x{3b1}\x{3bd}\x{3ba}\x{3c2} \x{3a4}\x{3b1} \x{39a}\x{3ac}\x{3bd}\ [all...] |
| /openbsd-src/sys/arch/armv7/armv7/ |
| H A D | armv7.c | 94 struct board_dev *bd; in armv7_attach() local 101 for (bd = sc->sc_board_devs; bd->name != NULL; bd++) { in armv7_attach() 102 struct armv7_dev *ad = armv7_find_dev(bd->name, bd->unit); in armv7_attach() 107 DEVNAME(sc), bd->name, bd->unit); in armv7_attach() 118 DEVNAME(sc), bd->name, bd->unit); in armv7_attach()
|
| /openbsd-src/sys/dev/pci/ |
| H A D | ahc_pci.c | 717 struct ahc_pci_busdata *bd; in ahc_pci_attach() local 747 bd = malloc(sizeof (struct ahc_pci_busdata), M_DEVBUF, in ahc_pci_attach() 749 if (bd == NULL) { in ahc_pci_attach() 755 bd->pc = pa->pa_pc; in ahc_pci_attach() 756 bd->tag = pa->pa_tag; in ahc_pci_attach() 757 bd->func = pa->pa_function; in ahc_pci_attach() 758 bd->dev = pa->pa_device; in ahc_pci_attach() 759 bd->class = pa->pa_class; in ahc_pci_attach() 761 ahc->bd = bd; in ahc_pci_attach() 1110 devconfig = pci_conf_read(ahc->bd->pc, ahc->bd->tag, DEVCONFIG); in ahc_ext_scbram_present() [all …]
|
| /openbsd-src/gnu/usr.bin/cvs/src/ |
| H A D | zlib.c | 140 struct buffer_data *bd; local 153 bd = cb->buf->data; 154 if (bd == NULL) 156 bd = ((struct buffer_data *) malloc (sizeof (struct buffer_data))); 157 if (bd == NULL) 159 bd->text = (char *) malloc (BUFFER_DATA_SIZE); 160 if (bd->text == NULL) 162 free (bd); 165 bd->bufp = bd->text; 166 bd->size = 0; [all …]
|
| /openbsd-src/lib/libcrypto/bn/arch/amd64/ |
| H A D | bn_arch.c | 37 bn_add_words(BN_ULONG *rd, const BN_ULONG *ad, const BN_ULONG *bd, int n) in bn_add_words() argument 40 (uint64_t *)bd); in bn_add_words() 56 bn_sub_words(BN_ULONG *rd, const BN_ULONG *ad, const BN_ULONG *bd, int n) in bn_sub_words() argument 59 (uint64_t *)bd); in bn_sub_words() 81 bn_mul_comba4(BN_ULONG *rd, BN_ULONG *ad, BN_ULONG *bd) in bn_mul_comba4() argument 84 bignum_mul_4_8_alt((uint64_t *)rd, (uint64_t *)ad, (uint64_t *)bd); in bn_mul_comba4() 90 bn_mul_comba8(BN_ULONG *rd, BN_ULONG *ad, BN_ULONG *bd) in bn_mul_comba8() argument 93 bignum_mul_8_16_alt((uint64_t *)rd, (uint64_t *)ad, (uint64_t *)bd); in bn_mul_comba8()
|
| /openbsd-src/sys/net/ |
| H A D | bpf.c | 381 struct bpf_d *bd; in bpfopen() 390 if ((bd = malloc(sizeof(*bd), M_DEVBUF, M_NOWAIT|M_ZERO)) == NULL) in bpfopen() 394 bd->bd_unit = unit; in bpfopen() 395 bd->bd_bufsize = atomic_load_int(&bpf_bufsize); in bpfopen() 396 bd->bd_sig = SIGIO; in bpfopen() 397 mtx_init(&bd->bd_mtx, IPL_NET); in bpfopen() 398 task_set(&bd->bd_wake_task, bpf_wakeup_cb, bd); in bpfopen() 399 timeout_set(&bd in bpfopen() 382 struct bpf_d *bd; bpfopen() local 1694 struct bpf_d *bd = smr; bpf_d_smr() local 1711 bpf_get(struct bpf_d * bd) bpf_get() argument 1721 bpf_put(struct bpf_d * bd) bpf_put() argument 1787 struct bpf_d *bd; bpfsdetach() local 1857 struct bpf_d *bd; bpfilter_lookup() local [all...] |
| /openbsd-src/sys/arch/armv7/omap/ |
| H A D | if_cpsw.c | 506 struct cpsw_cpdma_bd bd; in cpsw_start() local 574 bd.next = cpsw_txdesc_paddr(sc, in cpsw_start() 576 bd.bufptr = dm->dm_segs[seg].ds_addr; in cpsw_start() 577 bd.bufoff = 0; in cpsw_start() 578 bd.buflen = dm->dm_segs[seg].ds_len; in cpsw_start() 579 bd.pktlen = 0; in cpsw_start() 580 bd.flags = 0; in cpsw_start() 583 bd.flags = CPDMA_BD_OWNER | CPDMA_BD_SOP; in cpsw_start() 584 bd.pktlen = MAX(mlen, CPSW_PAD_LEN); in cpsw_start() 588 bd.flags |= CPDMA_BD_EOP; in cpsw_start() [all …]
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/ |
| H A D | 960416-1.c | 29 st ad, bd; \ 33 bd = bfh.s.l - bfh.s.h; \ 34 if (bd > bfh.s.l) \ 36 bd = -bd; \ 41 dp.d = (dt) ad *bd; \
|
| /openbsd-src/gnu/gcc/gcc/ |
| H A D | tree-ssa-dse.c | 143 struct dse_block_local_data *bd in dse_initialize_block_local_data() local 150 if (bd->stores) in dse_initialize_block_local_data() 151 bitmap_clear (bd->stores); in dse_initialize_block_local_data() 229 struct dse_block_local_data *bd in dse_optimize_stmt() local 297 record_voperand_set (dse_gd->stores, &bd->stores, ann->uid); in dse_optimize_stmt() 359 record_voperand_set (dse_gd->stores, &bd->stores, ann->uid); in dse_optimize_stmt() 368 struct dse_block_local_data *bd in dse_record_phis() local 376 &bd->stores, in dse_record_phis() 384 struct dse_block_local_data *bd in dse_finalize_block() local 392 if (bd->stores) in dse_finalize_block() [all …]
|
| H A D | domwalk.c | 145 void *bd = NULL; in walk_dominator_tree() local 173 bd = VEC_pop (void_p, walk_data->free_block_data); in walk_dominator_tree() 178 bd = xcalloc (1, walk_data->block_local_data_size); in walk_dominator_tree() 183 VEC_safe_push (void_p, heap, walk_data->block_data_stack, bd); in walk_dominator_tree() 257 bd = VEC_pop (void_p, walk_data->block_data_stack); in walk_dominator_tree() 259 VEC_safe_push (void_p, heap, walk_data->free_block_data, bd); in walk_dominator_tree()
|
| /openbsd-src/sys/arch/amd64/stand/libsa/ |
| H A D | biosdev.c | 246 biosd_io(int rw, bios_diskinfo_t *bd, u_int off, int nsect, void *buf) in biosd_io() argument 248 int dev = bd->bios_number; in biosd_io() 253 if (bd->flags & BDI_EL_TORITO) { /* It's a CD device */ in biosd_io() 285 if (bd->bios_edd != -1) { in biosd_io() 296 btochs(off, cyl, head, sect, bd->bios_heads, in biosd_io() 297 bd->bios_sectors); in biosd_io() 299 if ((sect + (nsect - i)) >= bd->bios_sectors) in biosd_io() 300 n = bd->bios_sectors - sect; in biosd_io() 367 findopenbsd(bios_diskinfo_t *bd, const char **err) in findopenbsd() argument 383 error = biosd_io(F_READ, bd, mbroff, 1, &mbr); in findopenbsd() [all …]
|
| /openbsd-src/sys/arch/i386/stand/libsa/ |
| H A D | biosdev.c | 247 biosd_io(int rw, bios_diskinfo_t *bd, u_int off, int nsect, void *buf) in biosd_io() argument 249 int dev = bd->bios_number; in biosd_io() 254 if (bd->flags & BDI_EL_TORITO) { /* It's a CD device */ in biosd_io() 286 if (bd->bios_edd != -1) { in biosd_io() 297 btochs(off, cyl, head, sect, bd->bios_heads, in biosd_io() 298 bd->bios_sectors); in biosd_io() 300 if ((sect + (nsect - i)) >= bd->bios_sectors) in biosd_io() 301 n = bd->bios_sectors - sect; in biosd_io() 368 findopenbsd(bios_diskinfo_t *bd, const char **err) in findopenbsd() argument 384 error = biosd_io(F_READ, bd, mbroff, 1, &mbr); in findopenbsd() [all …]
|
| /openbsd-src/sys/dev/ic/ |
| H A D | acx.c | 552 struct acx_buf_data *bd = &sc->sc_buf_data; in acx_stop() local 580 buf = &bd->tx_buf[i]; in acx_stop() 599 if (bd->rx_buf[i].rb_mbuf != NULL) { in acx_stop() 601 bd->rx_buf[i].rb_mbuf_dmamap); in acx_stop() 602 m_freem(bd->rx_buf[i].rb_mbuf); in acx_stop() 603 bd->rx_buf[i].rb_mbuf = NULL; in acx_stop() 896 struct acx_buf_data *bd = &sc->sc_buf_data; in acx_start() local 911 idx = bd->tx_free_start; in acx_start() 913 for (buf = &bd->tx_buf[idx]; buf->tb_mbuf == NULL; in acx_start() 914 buf = &bd->tx_buf[idx]) { in acx_start() [all …]
|
| /openbsd-src/lib/libcrypto/bn/asm/ |
| H A D | ppc64-mont.pl | |