Searched refs:pnp_string (Results 1 – 5 of 5) sorted by relevance
/linux-4.1.27/drivers/usb/gadget/legacy/ |
D | printer.c | 102 static char pnp_string[PNP_STRING_LEN] = variable 165 strlcpy(&pnp_string[2], iPNPstring, PNP_STRING_LEN - 2); in printer_bind() 167 len = strlen(pnp_string); in printer_bind() 168 pnp_string[0] = (len >> 8) & 0xFF; in printer_bind() 169 pnp_string[1] = len & 0xFF; in printer_bind() 173 memcpy(opts->pnp_string, pnp_string, PNP_STRING_LEN); in printer_bind()
|
/linux-4.1.27/drivers/usb/gadget/function/ |
D | f_printer.c | 94 char *pnp_string; /* We don't own memory! */ member 956 value = (dev->pnp_string[0] << 8) | dev->pnp_string[1]; in printer_func_setup() 957 memcpy(req->buf, dev->pnp_string, value); in printer_func_setup() 959 &dev->pnp_string[2]); in printer_func_setup() 1172 result = strlcpy(page, opts->pnp_string + 2, PNP_STRING_LEN - 2); in f_printer_opts_pnp_string_show() 1184 result = strlcpy(opts->pnp_string + 2, page, PNP_STRING_LEN - 2); in f_printer_opts_pnp_string_store() 1185 l = strlen(opts->pnp_string + 2) + 2; in f_printer_opts_pnp_string_store() 1186 opts->pnp_string[0] = (l >> 8) & 0xFF; in f_printer_opts_pnp_string_store() 1187 opts->pnp_string[1] = l & 0xFF; in f_printer_opts_pnp_string_store() 1194 __CONFIGFS_ATTR(pnp_string, S_IRUGO | S_IWUSR, [all …]
|
D | u_printer.h | 26 char pnp_string[PNP_STRING_LEN]; member
|
/linux-4.1.27/Documentation/ABI/testing/ |
D | configfs-usb-gadget-printer | 7 pnp_string - Data to be passed to the host in pnp string
|
/linux-4.1.27/Documentation/usb/ |
D | gadget-testing.txt | 739 pnp_string - Data to be passed to the host in pnp string
|