Searched refs:gp_name (Results 1 – 6 of 6) sorted by relevance
/openbsd/usr.sbin/gpioctl/ |
H A D | gpioctl.c | 206 pinread(int pin, char *gp_name) in pinread() argument 211 if (gp_name != NULL) in pinread() 212 strlcpy(op.gp_name, gp_name, sizeof(op.gp_name)); in pinread() 222 if (gp_name) in pinread() 223 printf("pin %s: state %d\n", gp_name, op.gp_value); in pinread() 229 pinwrite(int pin, char *gp_name, int value) in pinwrite() argument 237 if (gp_name != NULL) in pinwrite() 238 strlcpy(op.gp_name, gp_name, sizeof(op.gp_name)); in pinwrite() 253 if (gp_name) in pinwrite() 269 strlcpy(set.gp_name, name, sizeof(set.gp_name)); in pinset() [all …]
|
/openbsd/sys/dev/gpio/ |
H A D | gpio.c | 291 if (!strcmp(nm->gp_name, gp_name)) in gpio_pinbyname() 327 if (op->gp_name[0] != '\0') { in gpio_ioctl() 328 pin = gpio_pinbyname(sc, op->gp_name); in gpio_ioctl() 350 if (op->gp_name[0] != '\0') { in gpio_ioctl() 383 if (op->gp_name[0] != '\0') { in gpio_ioctl() 450 if (set->gp_name[0] != '\0') { in gpio_ioctl() 478 strlcpy(nm->gp_name, set->gp_name2, in gpio_ioctl() 479 sizeof(nm->gp_name)); in gpio_ioctl() 485 strlcpy(nm->gp_name, set->gp_name2, in gpio_ioctl() 486 sizeof(nm->gp_name)); in gpio_ioctl() [all …]
|
H A D | gpiovar.h | 79 char gp_name[GPIOPINMAXNAME]; member
|
/openbsd/sbin/fdisk/ |
H A D | gpt.c | 67 memset(gp[pn].gp_name, 0, sizeof(gp[pn].gp_name)); in string_to_name() 69 for (i = 0; i < sizeof(gp[pn].gp_name) && ch[i] != '\0'; i++) in string_to_name() 70 gp[pn].gp_name[i] = htole16((unsigned int)ch[i]); in string_to_name() 79 for (i = 0; i < GPTPARTNAMESIZE && gp[pn].gp_name[i] != 0; i++) in name_to_string() 80 name[i] = letoh16(gp[pn].gp_name[i]) & 0x7F; in name_to_string() 299 memcpy(gp[pn].gp_name, legp[pn].gp_name, in get_partition_table() 300 sizeof(gp[pn].gp_name)); in get_partition_table() 727 memcpy(legp[pn].gp_name, gp[pn].gp_name, in GPT_write() 728 sizeof(legp[pn].gp_name)); in GPT_write()
|
/openbsd/sys/sys/ |
H A D | gpio.h | 49 char gp_name[GPIOPINMAXNAME]; /* pin name */ member 56 char gp_name[GPIOPINMAXNAME]; member
|
H A D | disklabel.h | 383 u_int16_t gp_name[GPTPARTNAMESIZE]; /* partition name, utf-16le */ member
|