Lines Matching defs:vp
131 const struct fw_vendor *vp, int *num_bytes);
133 const struct fw_vendor *vp, char *buf, int img_size,
145 const struct fw_vendor *vp;
151 for (vp = vendors_list; vp->pattern != NULL; vp++) {
153 (const u_char *)vp->pattern, strlen(vendor)))
156 return (vp);
165 fw_read_img(const char *fw_img_path, const struct fw_vendor *vp, int *num_bytes)
191 switch (vp->type) {
240 fw_download_img(struct cam_device *cam_dev, const struct fw_vendor *vp,
307 max_pkt_size = vp->max_pkt_size;
308 if (vp->max_pkt_size == 0 && strcmp(type, "ata") == 0) {
311 pkt_size = vp->max_pkt_size;
327 offset = vp->inc_cdb_offset ? (pkt_ptr - buf) : 0;
329 cdb.byte2 = last_pkt ? vp->cdb_byte2_last : vp->cdb_byte2;
330 cdb.buffer_id = vp->inc_cdb_buffer_id ? pkt_count : 0;
402 const struct fw_vendor *vp;
430 vp = fw_get_vendor(device);
431 if (vp == NULL)
433 if (vp->type == VENDOR_UNKNOWN)
436 buf = fw_read_img(fw_img_path, vp, &img_size);
451 if (fw_download_img(device, vp, buf, img_size, sim_mode, printerrors,