Searched refs:pnp_string (Results 1 - 3 of 3) sorted by relevance
/linux-4.4.14/drivers/usb/gadget/legacy/ |
H A D | printer.c | 91 static char pnp_string[PNP_STRING_LEN] = variable 153 strlcpy(&pnp_string[2], iPNPstring, PNP_STRING_LEN - 2); printer_bind() 155 len = strlen(pnp_string); printer_bind() 156 pnp_string[0] = (len >> 8) & 0xFF; printer_bind() 157 pnp_string[1] = len & 0xFF; printer_bind() 161 memcpy(opts->pnp_string, pnp_string, PNP_STRING_LEN); printer_bind()
|
/linux-4.4.14/drivers/usb/gadget/function/ |
H A D | u_printer.h | 26 char pnp_string[PNP_STRING_LEN]; member in struct:f_printer_opts
|
H A D | f_printer.c | 94 char *pnp_string; /* We don't own memory! */ member in struct:printer_dev 960 value = (dev->pnp_string[0] << 8) | dev->pnp_string[1]; printer_func_setup() 961 memcpy(req->buf, dev->pnp_string, value); printer_func_setup() 963 &dev->pnp_string[2]); printer_func_setup() 1167 result = strlcpy(page, opts->pnp_string + 2, PNP_STRING_LEN - 2); f_printer_opts_pnp_string_show() 1180 result = strlcpy(opts->pnp_string + 2, page, PNP_STRING_LEN - 2); f_printer_opts_pnp_string_store() 1181 l = strlen(opts->pnp_string + 2) + 2; f_printer_opts_pnp_string_store() 1182 opts->pnp_string[0] = (l >> 8) & 0xFF; f_printer_opts_pnp_string_store() 1183 opts->pnp_string[1] = l & 0xFF; f_printer_opts_pnp_string_store() 1189 CONFIGFS_ATTR(f_printer_opts_, pnp_string); 1398 dev->pnp_string = opts->pnp_string; gprinter_alloc()
|
Completed in 295 milliseconds