Home
last modified time | relevance | path

Searched refs:props (Results 1 – 25 of 224) sorted by relevance

123456789

/drivers/media/usb/dvb-usb-v2/
Dusb_urb.c16 struct usb_data_stream_properties *props);
91 struct usb_data_stream_properties *props) in usb_urb_submitv2() argument
95 if (props) { in usb_urb_submitv2()
96 ret = usb_urb_reconfig(stream, props); in usb_urb_submitv2()
140 for (i = 0; i < stream->props.count; i++) { in usb_urb_alloc_bulk_urbs()
152 stream->props.endpoint), in usb_urb_alloc_bulk_urbs()
154 stream->props.u.bulk.buffersize, in usb_urb_alloc_bulk_urbs()
169 for (i = 0; i < stream->props.count; i++) { in usb_urb_alloc_isoc_urbs()
174 stream->props.u.isoc.framesperurb, GFP_ATOMIC); in usb_urb_alloc_isoc_urbs()
188 stream->props.endpoint); in usb_urb_alloc_isoc_urbs()
[all …]
Ddvb_usb_core.c42 if (!d->props->download_firmware) { in dvb_usbv2_download_firmware()
58 ret = d->props->download_firmware(d, fw); in dvb_usbv2_download_firmware()
74 if (!d->props->i2c_algo) in dvb_usbv2_i2c_init()
78 d->i2c_adap.algo = d->props->i2c_algo; in dvb_usbv2_i2c_init()
138 if (dvb_usbv2_disable_rc_polling || !d->props->get_rc_config) in dvb_usbv2_remote_init()
142 ret = d->props->get_rc_config(d, &d->rc); in dvb_usbv2_remote_init()
163 dev->driver_name = (char *) d->props->driver_name; in dvb_usbv2_remote_init()
244 return usb_urb_initv2(&adap->stream, &adap->props->stream); in dvb_usbv2_adapter_stream_init()
281 if (d->props->get_stream_config) { in dvb_usb_start_feed()
282 memcpy(&stream_props, &adap->props->stream, in dvb_usb_start_feed()
[all …]
/drivers/media/usb/dvb-usb/
Ddvb-usb-init.c34 for (n = 0; n < d->props.num_adapters; n++) { in dvb_usb_adapter_init()
39 memcpy(&adap->props, &d->props.adapter[n], sizeof(struct dvb_usb_adapter_properties)); in dvb_usb_adapter_init()
41 for (o = 0; o < adap->props.num_frontends; o++) { in dvb_usb_adapter_init()
42 struct dvb_usb_adapter_fe_properties *props = &adap->props.fe[o]; in dvb_usb_adapter_init() local
44 if (d->udev->speed == USB_SPEED_FULL && !(props->caps & DVB_USB_ADAP_HAS_PID_FILTER)) { in dvb_usb_adapter_init()
49 if ((d->udev->speed == USB_SPEED_FULL && props->caps & DVB_USB_ADAP_HAS_PID_FILTER) || in dvb_usb_adapter_init()
50 (props->caps & DVB_USB_ADAP_NEED_PID_FILTERING)) { in dvb_usb_adapter_init()
51 info("will use the device's hardware PID filter (table count: %d).", props->pid_filter_count); in dvb_usb_adapter_init()
53 adap->fe_adap[o].max_feed_count = props->pid_filter_count; in dvb_usb_adapter_init()
62 props->caps & DVB_USB_ADAP_HAS_PID_FILTER) { in dvb_usb_adapter_init()
[all …]
Ddvb-usb-remote.c48 struct rc_map_table *keymap = d->props.rc.legacy.rc_map_table; in legacy_dvb_usb_getkeycode()
49 unsigned int keymap_size = d->props.rc.legacy.rc_map_size; in legacy_dvb_usb_getkeycode()
71 struct rc_map_table *keymap = d->props.rc.legacy.rc_map_table; in legacy_dvb_usb_setkeycode()
72 unsigned int keymap_size = d->props.rc.legacy.rc_map_size; in legacy_dvb_usb_setkeycode()
122 if (d->props.rc.legacy.rc_query(d,&event,&state)) { in legacy_dvb_usb_read_remote_control()
181 schedule_delayed_work(&d->rc_query_work,msecs_to_jiffies(d->props.rc.legacy.rc_interval)); in legacy_dvb_usb_read_remote_control()
205 deb_rc("key map size: %d\n", d->props.rc.legacy.rc_map_size); in legacy_dvb_usb_remote_init()
206 for (i = 0; i < d->props.rc.legacy.rc_map_size; i++) { in legacy_dvb_usb_remote_init()
208 d->props.rc.legacy.rc_map_table[i].keycode, i); in legacy_dvb_usb_remote_init()
209 set_bit(d->props.rc.legacy.rc_map_table[i].keycode, input_dev->keybit); in legacy_dvb_usb_remote_init()
[all …]
Dusb-urb.c141 if ((i = usb_allocate_stream_buffers(stream,stream->props.count, in usb_bulk_urb_init()
142 stream->props.u.bulk.buffersize)) < 0) in usb_bulk_urb_init()
146 for (i = 0; i < stream->props.count; i++) { in usb_bulk_urb_init()
155 usb_rcvbulkpipe(stream->udev,stream->props.endpoint), in usb_bulk_urb_init()
157 stream->props.u.bulk.buffersize, in usb_bulk_urb_init()
171 if ((i = usb_allocate_stream_buffers(stream,stream->props.count, in usb_isoc_urb_init()
172 stream->props.u.isoc.framesize*stream->props.u.isoc.framesperurb)) < 0) in usb_isoc_urb_init()
176 for (i = 0; i < stream->props.count; i++) { in usb_isoc_urb_init()
180 stream->urb_list[i] = usb_alloc_urb(stream->props.u.isoc.framesperurb, GFP_ATOMIC); in usb_isoc_urb_init()
193 urb->pipe = usb_rcvisocpipe(stream->udev,stream->props.endpoint); in usb_isoc_urb_init()
[all …]
Ddvb-usb-dvb.c33 if (adap->props.fe[adap->active_fe].streaming_ctrl != NULL) { in dvb_usb_ctrl_feed()
34 ret = adap->props.fe[adap->active_fe].streaming_ctrl(adap, 0); in dvb_usb_ctrl_feed()
49 if (adap->props.fe[adap->active_fe].caps & DVB_USB_ADAP_HAS_PID_FILTER && in dvb_usb_ctrl_feed()
51 adap->props.fe[adap->active_fe].pid_filter != NULL) in dvb_usb_ctrl_feed()
52 adap->props.fe[adap->active_fe].pid_filter(adap, dvbdmxfeed->index, dvbdmxfeed->pid, onoff); in dvb_usb_ctrl_feed()
62 if (adap->props.fe[adap->active_fe].caps & DVB_USB_ADAP_HAS_PID_FILTER && in dvb_usb_ctrl_feed()
63 adap->props.fe[adap->active_fe].caps & in dvb_usb_ctrl_feed()
65 adap->props.fe[adap->active_fe].pid_filter_ctrl != NULL) { in dvb_usb_ctrl_feed()
66 ret = adap->props.fe[adap->active_fe].pid_filter_ctrl(adap, in dvb_usb_ctrl_feed()
74 if (adap->props.fe[adap->active_fe].streaming_ctrl != NULL) { in dvb_usb_ctrl_feed()
[all …]
/drivers/infiniband/hw/usnic/
Dusnic_ib_verbs.c266 struct ib_device_attr *props, in usnic_ib_query_device() argument
280 memset(props, 0, sizeof(*props)); in usnic_ib_query_device()
283 memcpy(&props->sys_image_guid, &gid.global.interface_id, in usnic_ib_query_device()
285 usnic_ib_fw_string_to_u64(&info.fw_version[0], &props->fw_ver); in usnic_ib_query_device()
286 props->max_mr_size = USNIC_UIOM_MAX_MR_SIZE; in usnic_ib_query_device()
287 props->page_size_cap = USNIC_UIOM_PAGE_SIZE; in usnic_ib_query_device()
288 props->vendor_id = PCI_VENDOR_ID_CISCO; in usnic_ib_query_device()
289 props->vendor_part_id = PCI_DEVICE_ID_CISCO_VIC_USPACE_NIC; in usnic_ib_query_device()
290 props->hw_ver = us_ibdev->pdev->subsystem_device; in usnic_ib_query_device()
293 props->max_qp = qp_per_vf * in usnic_ib_query_device()
[all …]
/drivers/video/backlight/
Dpandora_bl.c42 int brightness = bl->props.brightness; in pandora_backlight_update_status()
45 if (bl->props.power != FB_BLANK_UNBLANK) in pandora_backlight_update_status()
47 if (bl->props.state & BL_CORE_FBBLANK) in pandora_backlight_update_status()
49 if (bl->props.state & BL_CORE_SUSPENDED) in pandora_backlight_update_status()
56 if (bl->props.state & PANDORABL_WAS_OFF) in pandora_backlight_update_status()
69 if (bl->props.state & PANDORABL_WAS_OFF) { in pandora_backlight_update_status()
96 bl->props.state &= ~PANDORABL_WAS_OFF; in pandora_backlight_update_status()
98 bl->props.state |= PANDORABL_WAS_OFF; in pandora_backlight_update_status()
110 struct backlight_properties props; in pandora_backlight_probe() local
114 memset(&props, 0, sizeof(props)); in pandora_backlight_probe()
[all …]
Daat2870_bl.c48 val /= bd->props.max_brightness; in aat2870_brightness()
75 int brightness = bd->props.brightness; in aat2870_bl_update_status()
78 if ((brightness < 0) || (bd->props.max_brightness < brightness)) { in aat2870_bl_update_status()
84 bd->props.brightness, bd->props.power, bd->props.state); in aat2870_bl_update_status()
86 if ((bd->props.power != FB_BLANK_UNBLANK) || in aat2870_bl_update_status()
87 (bd->props.state & BL_CORE_FBBLANK) || in aat2870_bl_update_status()
88 (bd->props.state & BL_CORE_SUSPENDED)) in aat2870_bl_update_status()
127 struct backlight_properties props; in aat2870_bl_probe() local
150 memset(&props, 0, sizeof(struct backlight_properties)); in aat2870_bl_probe()
152 props.type = BACKLIGHT_RAW; in aat2870_bl_probe()
[all …]
Dgeneric_bl.c29 int intensity = bd->props.brightness; in genericbl_send_intensity()
31 if (bd->props.power != FB_BLANK_UNBLANK) in genericbl_send_intensity()
33 if (bd->props.state & BL_CORE_FBBLANK) in genericbl_send_intensity()
35 if (bd->props.state & BL_CORE_SUSPENDED) in genericbl_send_intensity()
37 if (bd->props.state & GENERICBL_BATTLOW) in genericbl_send_intensity()
63 struct backlight_properties props; in genericbl_probe() local
75 memset(&props, 0, sizeof(struct backlight_properties)); in genericbl_probe()
76 props.type = BACKLIGHT_RAW; in genericbl_probe()
77 props.max_brightness = machinfo->max_intensity; in genericbl_probe()
79 NULL, &genericbl_ops, &props); in genericbl_probe()
[all …]
Dtosa_bl.c56 struct backlight_properties *props = &dev->props; in tosa_bl_update_status() local
58 int power = max(props->power, props->fb_blank); in tosa_bl_update_status()
59 int brightness = props->brightness; in tosa_bl_update_status()
71 struct backlight_properties *props = &dev->props; in tosa_bl_get_brightness() local
73 return props->brightness; in tosa_bl_get_brightness()
84 struct backlight_properties props; in tosa_bl_probe() local
105 memset(&props, 0, sizeof(struct backlight_properties)); in tosa_bl_probe()
106 props.type = BACKLIGHT_RAW; in tosa_bl_probe()
107 props.max_brightness = 512 - 1; in tosa_bl_probe()
110 &props); in tosa_bl_probe()
[all …]
Dbacklight.c62 bd->props.state &= ~BL_CORE_FBBLANK; in fb_notifier_callback()
63 bd->props.fb_blank = FB_BLANK_UNBLANK; in fb_notifier_callback()
70 bd->props.state |= BL_CORE_FBBLANK; in fb_notifier_callback()
71 bd->props.fb_blank = fb_blank; in fb_notifier_callback()
129 return sprintf(buf, "%d\n", bd->props.power); in bl_power_show()
147 if (bd->props.power != power) { in bl_power_store()
148 old_power = bd->props.power; in bl_power_store()
149 bd->props.power = power; in bl_power_store()
152 bd->props.power = old_power; in bl_power_store()
170 return sprintf(buf, "%d\n", bd->props.brightness); in brightness_show()
[all …]
Dlv5207lp.c52 int brightness = backlight->props.brightness; in lv5207lp_backlight_update_status()
54 if (backlight->props.power != FB_BLANK_UNBLANK || in lv5207lp_backlight_update_status()
55 backlight->props.fb_blank != FB_BLANK_UNBLANK || in lv5207lp_backlight_update_status()
56 backlight->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK)) in lv5207lp_backlight_update_status()
92 struct backlight_properties props; in lv5207lp_probe() local
114 memset(&props, 0, sizeof(props)); in lv5207lp_probe()
115 props.type = BACKLIGHT_RAW; in lv5207lp_probe()
116 props.max_brightness = min_t(unsigned int, pdata->max_value, in lv5207lp_probe()
118 props.brightness = clamp_t(unsigned int, pdata->def_value, 0, in lv5207lp_probe()
119 props.max_brightness); in lv5207lp_probe()
[all …]
Dlm3630a_bl.c184 lm3630a_pwm_ctrl(pchip, bl->props.brightness, in lm3630a_bank_a_update_status()
185 bl->props.max_brightness); in lm3630a_bank_a_update_status()
186 return bl->props.brightness; in lm3630a_bank_a_update_status()
195 ret = lm3630a_write(pchip, REG_BRT_A, bl->props.brightness); in lm3630a_bank_a_update_status()
196 if (bl->props.brightness < 0x4) in lm3630a_bank_a_update_status()
203 return bl->props.brightness; in lm3630a_bank_a_update_status()
207 return bl->props.brightness; in lm3630a_bank_a_update_status()
239 bl->props.brightness = brightness; in lm3630a_bank_a_get_brightness()
240 return bl->props.brightness; in lm3630a_bank_a_get_brightness()
261 lm3630a_pwm_ctrl(pchip, bl->props.brightness, in lm3630a_bank_b_update_status()
[all …]
Domap1_bl.c108 if (bl->current_intensity != dev->props.brightness) { in omapbl_update_status()
110 omapbl_send_intensity(dev->props.brightness); in omapbl_update_status()
111 bl->current_intensity = dev->props.brightness; in omapbl_update_status()
114 if (dev->props.fb_blank != bl->powermode) in omapbl_update_status()
115 omapbl_set_power(dev, dev->props.fb_blank); in omapbl_update_status()
134 struct backlight_properties props; in omapbl_probe() local
147 memset(&props, 0, sizeof(struct backlight_properties)); in omapbl_probe()
148 props.type = BACKLIGHT_RAW; in omapbl_probe()
149 props.max_brightness = OMAPBL_MAX_INTENSITY; in omapbl_probe()
151 bl, &omapbl_ops, &props); in omapbl_probe()
[all …]
Dbd6107.c87 int brightness = backlight->props.brightness; in bd6107_backlight_update_status()
89 if (backlight->props.power != FB_BLANK_UNBLANK || in bd6107_backlight_update_status()
90 backlight->props.fb_blank != FB_BLANK_UNBLANK || in bd6107_backlight_update_status()
91 backlight->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK)) in bd6107_backlight_update_status()
127 struct backlight_properties props; in bd6107_probe() local
157 memset(&props, 0, sizeof(props)); in bd6107_probe()
158 props.type = BACKLIGHT_RAW; in bd6107_probe()
159 props.max_brightness = 128; in bd6107_probe()
160 props.brightness = clamp_t(unsigned int, pdata->def_value, 0, in bd6107_probe()
161 props.max_brightness); in bd6107_probe()
[all …]
Djornada720_bl.c61 if ((bd->props.power != FB_BLANK_UNBLANK) || (bd->props.fb_blank != FB_BLANK_UNBLANK)) { in jornada_bl_update_status()
87 if (jornada_ssp_byte(BL_MAX_BRIGHT - bd->props.brightness) in jornada_bl_update_status()
111 struct backlight_properties props; in jornada_bl_probe() local
115 memset(&props, 0, sizeof(struct backlight_properties)); in jornada_bl_probe()
116 props.type = BACKLIGHT_RAW; in jornada_bl_probe()
117 props.max_brightness = BL_MAX_BRIGHT; in jornada_bl_probe()
121 &props); in jornada_bl_probe()
128 bd->props.power = FB_BLANK_UNBLANK; in jornada_bl_probe()
129 bd->props.brightness = BL_DEF_BRIGHT; in jornada_bl_probe()
Dhp680_bl.c36 int intensity = bd->props.brightness; in hp680bl_send_intensity()
38 if (bd->props.power != FB_BLANK_UNBLANK) in hp680bl_send_intensity()
40 if (bd->props.fb_blank != FB_BLANK_UNBLANK) in hp680bl_send_intensity()
107 struct backlight_properties props; in hp680bl_probe() local
110 memset(&props, 0, sizeof(struct backlight_properties)); in hp680bl_probe()
111 props.type = BACKLIGHT_RAW; in hp680bl_probe()
112 props.max_brightness = HP680_MAX_INTENSITY; in hp680bl_probe()
114 NULL, &hp680bl_ops, &props); in hp680bl_probe()
120 bd->props.brightness = HP680_DEFAULT_INTENSITY; in hp680bl_probe()
130 bd->props.brightness = 0; in hp680bl_remove()
[all …]
Dcr_bllcd.c76 int intensity = bd->props.brightness; in cr_backlight_set_intensity()
80 if (bd->props.power == FB_BLANK_UNBLANK) in cr_backlight_set_intensity()
82 if (bd->props.fb_blank == FB_BLANK_UNBLANK) in cr_backlight_set_intensity()
84 if (bd->props.power == FB_BLANK_POWERDOWN) in cr_backlight_set_intensity()
86 if (bd->props.fb_blank == FB_BLANK_POWERDOWN) in cr_backlight_set_intensity()
176 struct backlight_properties props; in cr_backlight_probe() local
196 memset(&props, 0, sizeof(struct backlight_properties)); in cr_backlight_probe()
197 props.type = BACKLIGHT_RAW; in cr_backlight_probe()
200 &props); in cr_backlight_probe()
225 crp->cr_backlight_device->props.power = FB_BLANK_UNBLANK; in cr_backlight_probe()
[all …]
/drivers/gpu/drm/nouveau/dispnv04/
Doverlay.c50 } props; member
233 if (property == nv_plane->props.colorkey) in nv_set_property()
235 else if (property == nv_plane->props.contrast) in nv_set_property()
237 else if (property == nv_plane->props.brightness) in nv_set_property()
239 else if (property == nv_plane->props.hue) in nv_set_property()
241 else if (property == nv_plane->props.saturation) in nv_set_property()
243 else if (property == nv_plane->props.iturbt_709) in nv_set_property()
288 plane->props.colorkey = drm_property_create_range( in nv10_overlay_init()
290 plane->props.contrast = drm_property_create_range( in nv10_overlay_init()
292 plane->props.brightness = drm_property_create_range( in nv10_overlay_init()
[all …]
/drivers/infiniband/hw/cxgb4/
Dprovider.c320 static int c4iw_query_device(struct ib_device *ibdev, struct ib_device_attr *props, in c4iw_query_device() argument
332 memset(props, 0, sizeof *props); in c4iw_query_device()
333 memcpy(&props->sys_image_guid, dev->rdev.lldi.ports[0]->dev_addr, 6); in c4iw_query_device()
334 props->hw_ver = CHELSIO_CHIP_RELEASE(dev->rdev.lldi.adapter_type); in c4iw_query_device()
335 props->fw_ver = dev->rdev.lldi.fw_vers; in c4iw_query_device()
336 props->device_cap_flags = dev->device_cap_flags; in c4iw_query_device()
337 props->page_size_cap = T4_PAGESIZE_MASK; in c4iw_query_device()
338 props->vendor_id = (u32)dev->rdev.lldi.pdev->vendor; in c4iw_query_device()
339 props->vendor_part_id = (u32)dev->rdev.lldi.pdev->device; in c4iw_query_device()
340 props->max_mr_size = T4_MAX_MR_SIZE; in c4iw_query_device()
[all …]
/drivers/hid/
Dhid-picolcd_backlight.c42 data->lcd_brightness = bdev->props.brightness & 0x0ff; in picolcd_set_brightness()
43 data->lcd_power = bdev->props.power; in picolcd_set_brightness()
67 struct backlight_properties props; in picolcd_init_backlight() local
76 memset(&props, 0, sizeof(props)); in picolcd_init_backlight()
77 props.type = BACKLIGHT_RAW; in picolcd_init_backlight()
78 props.max_brightness = 0xff; in picolcd_init_backlight()
80 &picolcd_blops, &props); in picolcd_init_backlight()
85 bdev->props.brightness = 0xff; in picolcd_init_backlight()
114 data->backlight->props.power = FB_BLANK_POWERDOWN; in picolcd_suspend_backlight()
116 data->lcd_power = data->backlight->props.power = bl_power; in picolcd_suspend_backlight()
/drivers/video/fbdev/nvidia/
Dnv_backlight.c60 if (bd->props.power != FB_BLANK_UNBLANK || in nvidia_bl_update_status()
61 bd->props.fb_blank != FB_BLANK_UNBLANK) in nvidia_bl_update_status()
64 level = bd->props.brightness; in nvidia_bl_update_status()
91 struct backlight_properties props; in nvidia_bl_init() local
107 memset(&props, 0, sizeof(struct backlight_properties)); in nvidia_bl_init()
108 props.type = BACKLIGHT_RAW; in nvidia_bl_init()
109 props.max_brightness = FB_BACKLIGHT_LEVELS - 1; in nvidia_bl_init()
111 &props); in nvidia_bl_init()
123 bd->props.brightness = bd->props.max_brightness; in nvidia_bl_init()
124 bd->props.power = FB_BLANK_UNBLANK; in nvidia_bl_init()
/drivers/infiniband/hw/mthca/
Dmthca_provider.c60 static int mthca_query_device(struct ib_device *ibdev, struct ib_device_attr *props, in mthca_query_device() argument
76 memset(props, 0, sizeof *props); in mthca_query_device()
78 props->fw_ver = mdev->fw_ver; in mthca_query_device()
88 props->device_cap_flags = mdev->device_cap_flags; in mthca_query_device()
89 props->vendor_id = be32_to_cpup((__be32 *) (out_mad->data + 36)) & in mthca_query_device()
91 props->vendor_part_id = be16_to_cpup((__be16 *) (out_mad->data + 30)); in mthca_query_device()
92 props->hw_ver = be32_to_cpup((__be32 *) (out_mad->data + 32)); in mthca_query_device()
93 memcpy(&props->sys_image_guid, out_mad->data + 4, 8); in mthca_query_device()
95 props->max_mr_size = ~0ull; in mthca_query_device()
96 props->page_size_cap = mdev->limits.page_size_cap; in mthca_query_device()
[all …]
/drivers/macintosh/
Dvia-pmu-backlight.c74 int level = bd->props.brightness; in __pmu_backlight_update_status()
77 if (bd->props.power != FB_BLANK_UNBLANK || in __pmu_backlight_update_status()
78 bd->props.fb_blank != FB_BLANK_UNBLANK) in __pmu_backlight_update_status()
141 struct backlight_properties props; in pmu_backlight_init() local
159 memset(&props, 0, sizeof(struct backlight_properties)); in pmu_backlight_init()
160 props.type = BACKLIGHT_PLATFORM; in pmu_backlight_init()
161 props.max_brightness = FB_BACKLIGHT_LEVELS - 1; in pmu_backlight_init()
163 &props); in pmu_backlight_init()
171 level = bd->props.max_brightness; in pmu_backlight_init()
181 bd->props.max_brightness / 15); in pmu_backlight_init()
[all …]

123456789