Home
last modified time | relevance | path

Searched refs:bd (Results 1 – 25 of 108) sorted by relevance

12345

/openbsd/usr.bin/tmux/
H A Dkey-bindings.c99 free(bd); in key_bindings_free()
160 struct key_binding bd; in key_bindings_get() local
162 bd.key = key; in key_bindings_get()
171 bd.key = key; in key_bindings_get_default()
199 if (bd != NULL) { in key_bindings_add()
204 bd->note = NULL; in key_bindings_add()
208 if (bd != NULL) { in key_bindings_add()
213 bd = xcalloc(1, sizeof *bd); in key_bindings_add()
240 if (bd == NULL) in key_bindings_remove()
267 if (bd == NULL) in key_bindings_reset()
[all …]
H A Dcmd-list-keys.c68 while (bd != NULL) { in cmd_list_keys_get_width()
73 bd = key_bindings_next(table, bd); in cmd_list_keys_get_width()
80 bd = key_bindings_next(table, bd); in cmd_list_keys_get_width()
103 ((bd->note == NULL || *bd->note == '\0') && in cmd_list_keys_print_notes()
105 bd = key_bindings_next(table, bd); in cmd_list_keys_print_notes()
111 if (bd->note == NULL || *bd->note == '\0') in cmd_list_keys_print_notes()
126 bd = key_bindings_next(table, bd); in cmd_list_keys_print_notes()
224 bd = key_bindings_next(table, bd); in cmd_list_keys_exec()
240 bd = key_bindings_next(table, bd); in cmd_list_keys_exec()
257 bd = key_bindings_next(table, bd); in cmd_list_keys_exec()
[all …]
H A Dwindow-customize.c169 struct key_binding *bd; in window_customize_get_key() local
175 if (bd == NULL) in window_customize_get_key()
181 *bdp = bd; in window_customize_get_key()
466 while (bd != NULL) { in window_customize_build_keys()
468 if (bd->note != NULL) in window_customize_build_keys()
482 item->key = bd->key; in window_customize_build_keys()
500 if (bd->note != NULL) in window_customize_build_keys()
519 bd = key_bindings_next(kt, bd); in window_customize_build_keys()
603 note = bd->note; in window_customize_draw_key()
1222 bd->note = xstrdup(s); in window_customize_set_note_callback()
[all …]
/openbsd/sys/dev/fdt/
H A Dbd718x7.c138 bd = malloc(sizeof(*bd), M_DEVBUF, M_WAITOK | M_ZERO); in bdpmic_attach_regulator()
139 bd->bd_sc = sc; 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()
159 vsel = bdpmic_reg_read(bd->bd_sc, bd->bd_reg); in bdpmic_get_voltage()
160 return bd->bd_base + (vsel & bd->bd_mask) * bd->bd_delta; in bdpmic_get_voltage()
168 uint32_t vmax = vmin + bd->bd_mask * bd->bd_delta; in bdpmic_set_voltage()
178 vsel = bdpmic_reg_read(bd->bd_sc, bd->bd_reg); in bdpmic_set_voltage()
179 vsel &= ~bd->bd_mask; in bdpmic_set_voltage()
180 vsel |= (voltage - bd->bd_base) / bd->bd_delta; in bdpmic_set_voltage()
[all …]
/openbsd/sys/dev/pci/drm/include/linux/
H A Dbacklight.h43 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()
83 if (level > bd->props.max_brightness) in backlight_device_set_brightness()
85 bd->props.brightness = level; in backlight_device_set_brightness()
[all …]
/openbsd/sys/arch/alpha/alpha/
H A Dautoconf.c127 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()
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()
176 bd.remote_address, bd.unit, bd.boot_dev_type, bd.ctrl_dev_type); in parse_prom_bootdev()
[all …]
/openbsd/usr.sbin/installboot/
H A Dsoftraid.c39 struct bioc_disk bd; in sr_prepare_chunk() local
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()
176 if (strlen(bd->bd_vendor) < 1) in sr_open_chunk()
178 *part = bd->bd_vendor[strlen(bd->bd_vendor) - 1]; in sr_open_chunk()
[all …]
H A Defi_softraid.c29 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/gnu/usr.bin/gcc/gcc/testsuite/gcc.dg/
H A Dcomplete-port.c19 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 D20030627-1.c6 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/sbin/bioctl/
H A Dbioctl.c521 memset(&bd, 0, sizeof(bd)); in bio_inq()
523 bd.bd_diskid = d; in bio_inq()
524 bd.bd_volid = i; in bio_inq()
572 bd.bd_size); in bio_inq()
575 bd.bd_channel, bd.bd_target, bd.bd_lun); in bio_inq()
773 memset(&bd, 0, sizeof(bd)); in bio_setblink()
775 bd.bd_volid = v; in bio_setblink()
1083 memset(&bd, 0, sizeof(bd)); in bio_deleteraid()
1087 strlcpy(bd.bd_dev, dev, sizeof bd.bd_dev); in bio_deleteraid()
1103 memset(&bd, 0, sizeof(bd)); in bio_changepass()
[all …]
/openbsd/gnu/usr.bin/perl/cpan/Encode/t/
H A Drt76824.t29 … "\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{…
31 … \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{3c…
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}\x{3bf}\x{…
35 "\x{39f}\x{3b9} \x{3a6}\x{3b1}\x{3bd}\x{3c4}\x{3b1}\x{3c1}\x{3af}\x{3bd}\x{3b5}\x{3c2}\n",
36 …"\x{39f}\x{3b9}\x{3ba}\x{3bf}\x{3b3}\x{3ad}\x{3bd}\x{3b5}\x{3b9}\x{3b1} \x{3a0}\x{3b1}\x{3bd}\x{3c…
39 "\x{39f}\x{3be}\x{3c5}\x{3b3}\x{3cc}\x{3bd}\x{3bf}\n",
40 … "\x{39f}\x{3c1}\x{3b1}\x{3c4}\x{3cc}\x{3c4}\x{3b7}\x{3c2} \x{3bc}\x{3b7}\x{3b4}\x{3ad}\x{3bd}\n",
44 … - \x{3a3}\x{3c4}\x{3b7}\x{3bd} \x{395}\x{3c0}\x{3bf}\x{3c7}\x{3ae} \x{3c4}\x{3c9}\x{3bd} \x{397}\…
[all …]
/openbsd/sys/arch/armv7/armv7/
H A Darmv7.c94 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/sys/dev/pci/
H A Dahc_pci.c749 if (bd == NULL) { 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()
1153 devconfig = pci_conf_read(ahc->bd->pc, ahc->bd->tag, DEVCONFIG); in ahc_scbram_config()
1186 pci_conf_write(ahc->bd->pc, ahc->bd->tag, DEVCONFIG, devconfig); in ahc_scbram_config()
1310 cmd = pci_conf_read(ahc->bd->pc, ahc->bd->tag, PCIR_COMMAND);
1311 pci_conf_write(ahc->bd->pc, ahc->bd->tag, PCIR_COMMAND,
1342 status1 = pci_conf_read(ahc->bd->pc, ahc->bd->tag,
1647 pci_conf_write(ahc->bd->pc, ahc->bd->tag, CSIZE_LATTIME, 0); in ahc_aic7895_setup()
1648 devconfig = pci_conf_read(ahc->bd->pc, ahc->bd->tag, DEVCONFIG); in ahc_aic7895_setup()
[all …]
/openbsd/gnu/usr.bin/cvs/src/
H A Dzlib.c153 bd = cb->buf->data;
154 if (bd == NULL)
157 if (bd == NULL)
160 if (bd->text == NULL)
162 free (bd);
165 bd->bufp = bd->text;
166 bd->size = 0;
167 cb->buf->data = bd;
215 assert (bd->size == 0);
239 bd->bufp = bd->text;
[all …]
/openbsd/lib/libcrypto/bn/arch/amd64/
H A Dbn_arch.c37 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/sys/net/
H A Dbpf.c382 struct bpf_d *bd; in bpfopen() local
399 task_set(&bd->bd_wake_task, bpf_wakeup_cb, bd); in bpfopen()
400 timeout_set(&bd->bd_wait_tmo, bpf_wait_cb, bd); in bpfopen()
403 klist_init_mutex(&bd->bd_klist, &bd->bd_mtx); in bpfopen()
1697 free(bd->bd_sbuf, M_DEVBUF, bd->bd_bufsize); in bpf_d_smr()
1698 free(bd->bd_hbuf, M_DEVBUF, bd->bd_bufsize); in bpf_d_smr()
1699 free(bd->bd_fbuf, M_DEVBUF, bd->bd_bufsize); in bpf_d_smr()
1707 free(bd, M_DEVBUF, sizeof(*bd)); in bpf_d_smr()
1726 smr_call(&bd->bd_smr, bpf_d_smr, bd); in bpf_put()
1798 vdevgone(maj, bd->bd_unit, bd->bd_unit, VCHR); in bpfsdetach()
[all …]
/openbsd/sys/arch/armv7/omap/
H A Dif_cpsw.c577 bd.bufoff = 0; in cpsw_start()
579 bd.pktlen = 0; in cpsw_start()
580 bd.flags = 0; in cpsw_start()
599 bd.bufoff = 0; in cpsw_start()
601 bd.pktlen = 0; in cpsw_start()
790 bd.next = 0; in cpsw_new_rxbuf()
792 bd.bufoff = 0; in cpsw_new_rxbuf()
794 bd.pktlen = 0; in cpsw_new_rxbuf()
1092 off = bd.bufoff; in cpsw_rxintr()
1093 len = bd.pktlen; in cpsw_rxintr()
[all …]
/openbsd/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/
H A D960416-1.c29 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/gnu/gcc/gcc/
H A Dtree-ssa-dse.c143 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 Ddomwalk.c145 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/sys/arch/i386/stand/libsa/
H A Dbiosdev.c249 int dev = bd->bios_number; 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()
384 error = biosd_io(F_READ, bd, mbroff, 1, &mbr); in findopenbsd()
447 if (bd->bios_edd == -1 && in bios_getdisklabel()
448 (bd->bios_heads == 0 || bd->bios_sectors == 0)) in bios_getdisklabel()
452 if (bd->bios_number & 0x80) { in bios_getdisklabel()
[all …]
/openbsd/sys/arch/amd64/stand/libsa/
H A Dbiosdev.c248 int dev = bd->bios_number; 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()
383 error = biosd_io(F_READ, bd, mbroff, 1, &mbr); in findopenbsd()
446 if (bd->bios_edd == -1 && in bios_getdisklabel()
447 (bd->bios_heads == 0 || bd->bios_sectors == 0)) in bios_getdisklabel()
451 if (bd->bios_number & 0x80) { in bios_getdisklabel()
[all …]
/openbsd/sys/dev/ic/
H A Dacx.c580 buf = &bd->tx_buf[i]; in acx_stop()
1052 bd->tx_used_count++; in acx_start()
1151 bd = &sc->sc_buf_data; in acx_txeof()
1198 bd->tx_used_count--; in acx_txeof()
2080 bd = &sc->sc_buf_data; in acx_init_tx_ring()
2081 bd->tx_free_start = 0; in acx_init_tx_ring()
2082 bd->tx_used_start = 0; in acx_init_tx_ring()
2083 bd->tx_used_count = 0; in acx_init_tx_ring()
2094 bd = &sc->sc_buf_data; in acx_init_rx_ring()
2117 bd->rx_scan_start = 0; in acx_init_rx_ring()
[all …]
/openbsd/lib/libcrypto/bn/asm/
H A Dppc64-mont.pl333 fcfid $bd,$bd
376 fmadd $T1b,$A0,$bd,$T1b
378 fmadd $T2b,$A1,$bd,$T2b
380 fmadd $T3b,$A2,$bd,$T3b
382 fmul $dotb,$A3,$bd
493 fmadd $T1b,$A0,$bd,$T1b
495 fmadd $T2b,$A1,$bd,$T2b
502 fmul $dotb,$A3,$bd
681 fcfid $bd,$bd
703 fmul $dotb,$A3,$bd
[all …]

12345