Lines Matching defs:props

31 	for (n = 0; n < d->props.num_adapters; n++) {
36 memcpy(&adap->props, &d->props.adapter[n], sizeof(struct dvb_usb_adapter_properties));
38 for (o = 0; o < adap->props.num_frontends; o++) {
39 struct dvb_usb_adapter_fe_properties *props = &adap->props.fe[o];
41 if (d->udev->speed == USB_SPEED_FULL && !(props->caps & DVB_USB_ADAP_HAS_PID_FILTER)) {
46 if ((d->udev->speed == USB_SPEED_FULL && props->caps & DVB_USB_ADAP_HAS_PID_FILTER) ||
47 (props->caps & DVB_USB_ADAP_NEED_PID_FILTERING)) {
48 info("will use the device's hardware PID filter (table count: %d).", props->pid_filter_count);
50 adap->fe_adap[o].max_feed_count = props->pid_filter_count;
59 props->caps & DVB_USB_ADAP_HAS_PID_FILTER) {
62 adap->fe_adap[o].max_feed_count = props->pid_filter_count;
65 if (props->size_of_priv > 0) {
66 adap->fe_adap[o].priv = kzalloc(props->size_of_priv, GFP_KERNEL);
74 if (adap->props.size_of_priv > 0) {
75 adap->priv = kzalloc(adap->props.size_of_priv, GFP_KERNEL);
106 if (d->props.generic_bulk_ctrl_endpoint != 0) {
107 usb_clear_halt(d->udev, usb_sndbulkpipe(d->udev, d->props.generic_bulk_ctrl_endpoint));
108 usb_clear_halt(d->udev, usb_rcvbulkpipe(d->udev, d->props.generic_bulk_ctrl_endpoint));
148 if (d->priv != NULL && d->props.priv_destroy != NULL)
149 d->props.priv_destroy(d);
166 if (d->props.size_of_priv > 0) {
167 d->priv = kzalloc(d->props.size_of_priv, GFP_KERNEL);
173 if (d->props.priv_init != NULL) {
174 ret = d->props.priv_init(d);
201 if (d->priv && d->props.priv_destroy)
202 d->props.priv_destroy(d);
210 static const struct dvb_usb_device_description *dvb_usb_find_device(struct usb_device *udev, const struct dvb_usb_device_properties *props, int *cold)
217 for (i = 0; i < props->num_device_descs; i++) {
219 for (j = 0; j < DVB_USB_ID_MAX_NUM && props->devices[i].cold_ids[j] != NULL; j++) {
220 deb_info("check for cold %x %x\n", props->devices[i].cold_ids[j]->idVendor, props->devices[i].cold_ids[j]->idProduct);
221 if (props->devices[i].cold_ids[j]->idVendor == le16_to_cpu(udev->descriptor.idVendor) &&
222 props->devices[i].cold_ids[j]->idProduct == le16_to_cpu(udev->descriptor.idProduct)) {
224 desc = &props->devices[i];
232 for (j = 0; j < DVB_USB_ID_MAX_NUM && props->devices[i].warm_ids[j] != NULL; j++) {
233 deb_info("check for warm %x %x\n", props->devices[i].warm_ids[j]->idVendor, props->devices[i].warm_ids[j]->idProduct);
234 if (props->devices[i].warm_ids[j]->idVendor == le16_to_cpu(udev->descriptor.idVendor) &&
235 props->devices[i].warm_ids[j]->idProduct == le16_to_cpu(udev->descriptor.idProduct)) {
237 desc = &props->devices[i];
243 if (desc != NULL && props->identify_state != NULL)
244 props->identify_state(udev, props, &desc, cold);
258 if (d->props.power_ctrl)
259 return d->props.power_ctrl(d, onoff);
268 const struct dvb_usb_device_properties *props,
287 memcpy(&d->props, props, sizeof(struct dvb_usb_device_properties));
289 desc = dvb_usb_find_device(udev, &d->props, &cold);
298 ret = dvb_usb_download_firmware(udev, props);
299 if (!props->no_reconnect || ret != 0)