Home
last modified time | relevance | path

Searched refs:props (Results 1 – 200 of 232) sorted by relevance

12

/linux-4.1.27/drivers/infiniband/hw/ehca/
Dehca_hca.c53 int ehca_query_device(struct ib_device *ibdev, struct ib_device_attr *props) in ehca_query_device() argument
86 memset(props, 0, sizeof(struct ib_device_attr)); in ehca_query_device()
87 props->page_size_cap = shca->hca_cap_mr_pgsize; in ehca_query_device()
88 props->fw_ver = rblock->hw_ver; in ehca_query_device()
89 props->max_mr_size = rblock->max_mr_size; in ehca_query_device()
90 props->vendor_id = rblock->vendor_id >> 8; in ehca_query_device()
91 props->vendor_part_id = rblock->vendor_part_id >> 16; in ehca_query_device()
92 props->hw_ver = rblock->hw_ver; in ehca_query_device()
93 props->max_qp = limit_uint(rblock->max_qp); in ehca_query_device()
94 props->max_qp_wr = limit_uint(rblock->max_wqes_wq); in ehca_query_device()
[all …]
Dehca_iverbs.h47 int ehca_query_device(struct ib_device *ibdev, struct ib_device_attr *props);
50 struct ib_port_attr *props);
61 struct ib_port_modify *props);
/linux-4.1.27/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.c32 if (adap->props.fe[adap->active_fe].streaming_ctrl != NULL) { in dvb_usb_ctrl_feed()
33 ret = adap->props.fe[adap->active_fe].streaming_ctrl(adap, 0); in dvb_usb_ctrl_feed()
48 if (adap->props.fe[adap->active_fe].caps & DVB_USB_ADAP_HAS_PID_FILTER && in dvb_usb_ctrl_feed()
50 adap->props.fe[adap->active_fe].pid_filter != NULL) in dvb_usb_ctrl_feed()
51 adap->props.fe[adap->active_fe].pid_filter(adap, dvbdmxfeed->index, dvbdmxfeed->pid, onoff); in dvb_usb_ctrl_feed()
61 if (adap->props.fe[adap->active_fe].caps & DVB_USB_ADAP_HAS_PID_FILTER && in dvb_usb_ctrl_feed()
62 adap->props.fe[adap->active_fe].caps & in dvb_usb_ctrl_feed()
64 adap->props.fe[adap->active_fe].pid_filter_ctrl != NULL) { in dvb_usb_ctrl_feed()
65 ret = adap->props.fe[adap->active_fe].pid_filter_ctrl(adap, in dvb_usb_ctrl_feed()
73 if (adap->props.fe[adap->active_fe].streaming_ctrl != NULL) { in dvb_usb_ctrl_feed()
[all …]
Ddvb-usb-urb.c19 if (d->props.generic_bulk_ctrl_endpoint == 0) { in dvb_usb_generic_rw()
31 d->props.generic_bulk_ctrl_endpoint), wbuf,wlen,&actlen, in dvb_usb_generic_rw()
45 d->props.generic_bulk_ctrl_endpoint_response ? in dvb_usb_generic_rw()
46 d->props.generic_bulk_ctrl_endpoint_response : in dvb_usb_generic_rw()
47 d->props.generic_bulk_ctrl_endpoint),rbuf,rlen,&actlen, in dvb_usb_generic_rw()
94 for (i = 0; i < adap->props.num_frontends; i++) { in dvb_usb_adapter_stream_init()
97 if (adap->props.fe[i].caps & DVB_USB_ADAP_RECEIVES_204_BYTE_TS) in dvb_usb_adapter_stream_init()
101 if (adap->props.fe[i].caps & DVB_USB_ADAP_RECEIVES_RAW_PAYLOAD) in dvb_usb_adapter_stream_init()
108 &adap->props.fe[i].stream); in dvb_usb_adapter_stream_init()
118 for (i = 0; i < adap->props.num_frontends; i++) in dvb_usb_adapter_stream_exit()
Ddvb-usb-firmware.c78 int dvb_usb_download_firmware(struct usb_device *udev, struct dvb_usb_device_properties *props) in dvb_usb_download_firmware() argument
83 if ((ret = request_firmware(&fw, props->firmware, &udev->dev)) != 0) { in dvb_usb_download_firmware()
86 props->firmware,ret); in dvb_usb_download_firmware()
90 info("downloading firmware from file '%s'",props->firmware); in dvb_usb_download_firmware()
92 switch (props->usb_ctrl) { in dvb_usb_download_firmware()
96 ret = usb_cypress_load_firmware(udev, fw, props->usb_ctrl); in dvb_usb_download_firmware()
99 if (props->download_firmware) in dvb_usb_download_firmware()
100 ret = props->download_firmware(udev,fw); in dvb_usb_download_firmware()
Ddvb-usb-i2c.c14 if (!(d->props.caps & DVB_USB_IS_AN_I2C_ADAPTER)) in dvb_usb_i2c_init()
17 if (d->props.i2c_algo == NULL) { in dvb_usb_i2c_init()
23 d->i2c_adap.algo = d->props.i2c_algo; in dvb_usb_i2c_init()
Ddigitv.c90 dvb_usb_device_properties *props, struct dvb_usb_device_description **desc, in digitv_identify_state() argument
245 for (i = 0; i < d->props.rc.legacy.rc_map_size; i++) { in digitv_rc_query()
246 if (rc5_custom(&d->props.rc.legacy.rc_map_table[i]) == key[1] && in digitv_rc_query()
247 rc5_data(&d->props.rc.legacy.rc_map_table[i]) == key[2]) { in digitv_rc_query()
248 *event = d->props.rc.legacy.rc_map_table[i].keycode; in digitv_rc_query()
Dm920x.c88 if (d->props.rc.legacy.rc_query || d->props.rc.core.rc_query) { in m920x_init()
99 for (i = 0; i < d->props.num_adapters; i++) in m920x_init()
100 flags |= d->adapter[i].props.fe[0].caps; in m920x_init()
104 for (i = 0; i < d->props.num_adapters; i++) { in m920x_init()
105 epi = d->adapter[i].props.fe[0].stream.endpoint - 0x81; in m920x_init()
207 for (i = 0; i < d->props.rc.legacy.rc_map_size; i++) in m920x_rc_query()
208 if (rc5_data(&d->props.rc.legacy.rc_map_table[i]) == rc_state[1]) { in m920x_rc_query()
209 *event = d->props.rc.legacy.rc_map_table[i].keycode; in m920x_rc_query()
350 int ep = adap->props.fe[0].stream.endpoint; in m920x_update_filters()
472 struct dvb_usb_device_properties *props, in m920x_identify_state() argument
Ddib0700_core.c342 int dib0700_identify_state(struct usb_device *udev, struct dvb_usb_device_properties *props, in dib0700_identify_state() argument
581 if ((adap->fe_adap[0].stream.props.endpoint != 2) in dib0700_streaming_ctrl()
582 && (adap->fe_adap[0].stream.props.endpoint != 3)) { in dib0700_streaming_ctrl()
583 …t number (%i) is not correct, use the adapter id instead", adap->fe_adap[0].stream.props.endpoint); in dib0700_streaming_ctrl()
590 st->channel_state |= 1 << (adap->fe_adap[0].stream.props.endpoint-2); in dib0700_streaming_ctrl()
592 st->channel_state |= 1 << (3-adap->fe_adap[0].stream.props.endpoint); in dib0700_streaming_ctrl()
647 d->props.rc.core.protocol = *rc_type; in dib0700_change_protocol()
711 switch (d->props.rc.core.protocol) { in dib0700_rc_urb_completion()
862 dev->props.rc.core.bulk_mode = true; in dib0700_probe()
864 dev->props.rc.core.bulk_mode = false; in dib0700_probe()
Dcxusb.c373 int ep = d->props.generic_bulk_ctrl_endpoint; in cxusb_d680_dmb_drain_message()
396 struct usb_data_stream_properties *p = &d->props.adapter[0].fe[0].stream; in cxusb_d680_dmb_drain_video()
434 struct rc_map_table *keymap = d->props.rc.legacy.rc_map_table; in cxusb_rc_query()
443 for (i = 0; i < d->props.rc.legacy.rc_map_size; i++) { in cxusb_rc_query()
459 struct rc_map_table *keymap = d->props.rc.legacy.rc_map_table; in cxusb_bluebird2_rc_query()
471 for (i = 0; i < d->props.rc.legacy.rc_map_size; i++) { in cxusb_bluebird2_rc_query()
487 struct rc_map_table *keymap = d->props.rc.legacy.rc_map_table; in cxusb_d680_dmb_rc_query()
497 for (i = 0; i < d->props.rc.legacy.rc_map_size; i++) { in cxusb_d680_dmb_rc_query()
982 for (i = 0; adap->dev->props.rc.legacy.rc_map_table != NULL && i < 5; i++) { in cxusb_dualdig4_frontend_attach()
990 adap->dev->props.rc.legacy.rc_map_table = NULL; in cxusb_dualdig4_frontend_attach()
[all …]
Ddvb-usb.h313 struct usb_data_stream_properties props; member
374 struct dvb_usb_adapter_properties props; member
422 struct dvb_usb_device_properties props; member
Ddvb-usb-common.h32 extern int usb_urb_init(struct usb_data_stream *stream, struct usb_data_stream_properties *props);
Ddib0700.h65 extern int dib0700_identify_state(struct usb_device *udev, struct dvb_usb_device_properties *props,
Da800.c33 static int a800_identify_state(struct usb_device *udev, struct dvb_usb_device_properties *props, in a800_identify_state() argument
/linux-4.1.27/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.c41 if (!d->props->download_firmware) { in dvb_usbv2_download_firmware()
57 ret = d->props->download_firmware(d, fw); in dvb_usbv2_download_firmware()
73 if (!d->props->i2c_algo) in dvb_usbv2_i2c_init()
77 d->i2c_adap.algo = d->props->i2c_algo; in dvb_usbv2_i2c_init()
139 if (dvb_usbv2_disable_rc_polling || !d->props->get_rc_config) in dvb_usbv2_remote_init()
143 ret = d->props->get_rc_config(d, &d->rc); in dvb_usbv2_remote_init()
164 dev->driver_name = (char *) d->props->driver_name; in dvb_usbv2_remote_init()
245 return usb_urb_initv2(&adap->stream, &adap->props->stream); in dvb_usbv2_adapter_stream_init()
282 if (d->props->get_stream_config) { in dvb_usb_start_feed()
283 memcpy(&stream_props, &adap->props->stream, in dvb_usb_start_feed()
[all …]
Ddvb_usb_urb.c29 if (!wbuf || !wlen || !d->props->generic_bulk_ctrl_endpoint || in dvb_usb_v2_generic_io()
30 !d->props->generic_bulk_ctrl_endpoint_response) { in dvb_usb_v2_generic_io()
38 d->props->generic_bulk_ctrl_endpoint), wbuf, wlen, in dvb_usb_v2_generic_io()
48 if (d->props->generic_bulk_ctrl_delay) in dvb_usb_v2_generic_io()
49 usleep_range(d->props->generic_bulk_ctrl_delay, in dvb_usb_v2_generic_io()
50 d->props->generic_bulk_ctrl_delay in dvb_usb_v2_generic_io()
54 d->props->generic_bulk_ctrl_endpoint_response), in dvb_usb_v2_generic_io()
Ddvb_usb_common.h29 const struct usb_data_stream_properties *props);
32 struct usb_data_stream_properties *props);
Ddvb_usb.h107 .props = (props_), \
125 const struct dvb_usb_device_properties *props; member
287 struct usb_data_stream_properties props; member
327 const struct dvb_usb_adapter_properties *props; member
371 const struct dvb_usb_device_properties *props; member
/linux-4.1.27/arch/powerpc/platforms/powermac/
Dbacklight.c107 struct backlight_properties *props; in pmac_backlight_key_worker() local
110 props = &pmac_backlight->props; in pmac_backlight_key_worker()
112 brightness = props->brightness + in pmac_backlight_key_worker()
114 (props->max_brightness / 15)); in pmac_backlight_key_worker()
118 else if (brightness > props->max_brightness) in pmac_backlight_key_worker()
119 brightness = props->max_brightness; in pmac_backlight_key_worker()
121 props->brightness = brightness; in pmac_backlight_key_worker()
146 struct backlight_properties *props; in __pmac_backlight_set_legacy_brightness() local
148 props = &pmac_backlight->props; in __pmac_backlight_set_legacy_brightness()
149 props->brightness = brightness * in __pmac_backlight_set_legacy_brightness()
[all …]
/linux-4.1.27/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 …]
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 …]
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 …]
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 …]
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 …]
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()
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 …]
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 …]
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 …]
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 bd->props.power = power; in bl_power_store()
164 return sprintf(buf, "%d\n", bd->props.brightness); in brightness_show()
182 if (brightness > bd->props.max_brightness) in brightness_store()
186 bd->props.brightness = brightness; in brightness_store()
[all …]
Dda903x_bl.c83 int brightness = bl->props.brightness; in da903x_backlight_update_status()
85 if (bl->props.power != FB_BLANK_UNBLANK) in da903x_backlight_update_status()
88 if (bl->props.fb_blank != FB_BLANK_UNBLANK) in da903x_backlight_update_status()
91 if (bl->props.state & BL_CORE_SUSPENDED) in da903x_backlight_update_status()
115 struct backlight_properties props; in da903x_backlight_probe() local
144 memset(&props, 0, sizeof(props)); in da903x_backlight_probe()
145 props.type = BACKLIGHT_RAW; in da903x_backlight_probe()
146 props.max_brightness = max_brightness; in da903x_backlight_probe()
149 &da903x_backlight_ops, &props); in da903x_backlight_probe()
155 bl->props.brightness = max_brightness; in da903x_backlight_probe()
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 …]
Dep93xx_bl.c42 int brightness = bl->props.brightness; in ep93xxbl_update_status()
44 if (bl->props.power != FB_BLANK_UNBLANK || in ep93xxbl_update_status()
45 bl->props.fb_blank != FB_BLANK_UNBLANK) in ep93xxbl_update_status()
67 struct backlight_properties props; in ep93xxbl_probe() local
92 memset(&props, 0, sizeof(struct backlight_properties)); in ep93xxbl_probe()
93 props.type = BACKLIGHT_RAW; in ep93xxbl_probe()
94 props.max_brightness = EP93XX_MAX_BRIGHT; in ep93xxbl_probe()
96 ep93xxbl, &ep93xxbl_ops, &props); in ep93xxbl_probe()
100 bl->props.brightness = EP93XX_DEF_BRIGHT; in ep93xxbl_probe()
Dgpio_backlight.c34 int brightness = bl->props.brightness; in gpio_backlight_update_status()
36 if (bl->props.power != FB_BLANK_UNBLANK || in gpio_backlight_update_status()
37 bl->props.fb_blank != FB_BLANK_UNBLANK || in gpio_backlight_update_status()
38 bl->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK)) in gpio_backlight_update_status()
88 struct backlight_properties props; in gpio_backlight_probe() local
126 memset(&props, 0, sizeof(props)); in gpio_backlight_probe()
127 props.type = BACKLIGHT_RAW; in gpio_backlight_probe()
128 props.max_brightness = 1; in gpio_backlight_probe()
131 &props); in gpio_backlight_probe()
137 bl->props.brightness = gbl->def_value; in gpio_backlight_probe()
Dkb3886_bl.c94 int intensity = bd->props.brightness; in kb3886bl_send_intensity()
96 if (bd->props.power != FB_BLANK_UNBLANK) in kb3886bl_send_intensity()
98 if (bd->props.fb_blank != FB_BLANK_UNBLANK) in kb3886bl_send_intensity()
143 struct backlight_properties props; in kb3886bl_probe() local
150 memset(&props, 0, sizeof(struct backlight_properties)); in kb3886bl_probe()
151 props.type = BACKLIGHT_RAW; in kb3886bl_probe()
152 props.max_brightness = machinfo->max_intensity; in kb3886bl_probe()
156 &props); in kb3886bl_probe()
162 kb3886_backlight_device->props.power = FB_BLANK_UNBLANK; in kb3886bl_probe()
163 kb3886_backlight_device->props.brightness = machinfo->default_intensity; in kb3886bl_probe()
Dwm831x_bl.c97 int brightness = bl->props.brightness; in wm831x_backlight_update_status()
99 if (bl->props.power != FB_BLANK_UNBLANK) in wm831x_backlight_update_status()
102 if (bl->props.fb_blank != FB_BLANK_UNBLANK) in wm831x_backlight_update_status()
105 if (bl->props.state & BL_CORE_SUSPENDED) in wm831x_backlight_update_status()
131 struct backlight_properties props; in wm831x_backlight_probe() local
196 memset(&props, 0, sizeof(props)); in wm831x_backlight_probe()
197 props.type = BACKLIGHT_RAW; in wm831x_backlight_probe()
198 props.max_brightness = max_isel; in wm831x_backlight_probe()
200 data, &wm831x_backlight_ops, &props); in wm831x_backlight_probe()
206 bl->props.brightness = max_isel; in wm831x_backlight_probe()
Dlocomolcd.c114 int intensity = bd->props.brightness; in locomolcd_set_intensity()
116 if (bd->props.power != FB_BLANK_UNBLANK) in locomolcd_set_intensity()
118 if (bd->props.fb_blank != FB_BLANK_UNBLANK) in locomolcd_set_intensity()
180 struct backlight_properties props; in locomolcd_probe() local
198 memset(&props, 0, sizeof(struct backlight_properties)); in locomolcd_probe()
199 props.type = BACKLIGHT_RAW; in locomolcd_probe()
200 props.max_brightness = 4; in locomolcd_probe()
203 &locomobl_data, &props); in locomolcd_probe()
209 locomolcd_bl_device->props.brightness = 2; in locomolcd_probe()
219 locomolcd_bl_device->props.brightness = 0; in locomolcd_remove()
[all …]
Dlm3639_bl.c115 pdata->pwm_set_intensity(bl->props.brightness, in lm3639_bled_update_status()
120 return bl->props.brightness; in lm3639_bled_update_status()
124 ret = regmap_write(pchip->regmap, REG_BL_CONF_4, bl->props.brightness); in lm3639_bled_update_status()
127 ret = regmap_write(pchip->regmap, REG_BL_CONF_3, bl->props.brightness); in lm3639_bled_update_status()
131 if (!bl->props.brightness) in lm3639_bled_update_status()
138 return bl->props.brightness; in lm3639_bled_update_status()
141 return bl->props.brightness; in lm3639_bled_update_status()
153 bl->props.brightness = pdata->pwm_get_intensity(); in lm3639_bled_get_brightness()
157 return bl->props.brightness; in lm3639_bled_get_brightness()
169 bl->props.brightness = reg_val; in lm3639_bled_get_brightness()
[all …]
Dmax8925_bl.c70 int brightness = bl->props.brightness; in max8925_backlight_update_status()
72 if (bl->props.power != FB_BLANK_UNBLANK) in max8925_backlight_update_status()
75 if (bl->props.fb_blank != FB_BLANK_UNBLANK) in max8925_backlight_update_status()
78 if (bl->props.state & BL_CORE_SUSPENDED) in max8925_backlight_update_status()
137 struct backlight_properties props; in max8925_backlight_probe() local
163 memset(&props, 0, sizeof(struct backlight_properties)); in max8925_backlight_probe()
164 props.type = BACKLIGHT_RAW; in max8925_backlight_probe()
165 props.max_brightness = MAX_BRIGHTNESS; in max8925_backlight_probe()
168 &max8925_backlight_ops, &props); in max8925_backlight_probe()
173 bl->props.brightness = MAX_BRIGHTNESS; in max8925_backlight_probe()
Dlp8788_bl.c162 if (bl_dev->props.state & BL_CORE_SUSPENDED) in lp8788_bl_update_status()
163 bl_dev->props.brightness = 0; in lp8788_bl_update_status()
166 int brt = bl_dev->props.brightness; in lp8788_bl_update_status()
167 int max = bl_dev->props.max_brightness; in lp8788_bl_update_status()
171 u8 brt = bl_dev->props.brightness; in lp8788_bl_update_status()
187 struct backlight_properties props; in lp8788_backlight_register() local
192 props.type = BACKLIGHT_PLATFORM; in lp8788_backlight_register()
193 props.max_brightness = MAX_BRIGHTNESS; in lp8788_backlight_register()
198 props.max_brightness); in lp8788_backlight_register()
202 props.brightness = init_brt; in lp8788_backlight_register()
[all …]
Dapple_bl.c61 int intensity = bd->props.brightness; in intel_chipset_send_intensity()
106 int intensity = bd->props.brightness; in nvidia_chipset_send_intensity()
142 struct backlight_properties props; in apple_bl_add() local
181 memset(&props, 0, sizeof(struct backlight_properties)); in apple_bl_add()
182 props.type = BACKLIGHT_PLATFORM; in apple_bl_add()
183 props.max_brightness = 15; in apple_bl_add()
185 NULL, NULL, &hw_data->backlight_ops, &props); in apple_bl_add()
192 apple_backlight_device->props.brightness = in apple_bl_add()
Dot200_bl.c47 int brightness = bl->props.brightness; in ot200_backlight_update_status()
49 if (bl->props.state & BL_CORE_FBBLANK) in ot200_backlight_update_status()
84 struct backlight_properties props; in ot200_backlight_probe() local
117 props.max_brightness = 100; in ot200_backlight_probe()
118 props.brightness = 100; in ot200_backlight_probe()
119 props.type = BACKLIGHT_RAW; in ot200_backlight_probe()
123 &props); in ot200_backlight_probe()
Dda9052_bl.c89 int brightness = bl->props.brightness; in da9052_backlight_update_status()
113 struct backlight_properties props; in da9052_backlight_probe() local
125 props.type = BACKLIGHT_RAW; in da9052_backlight_probe()
126 props.max_brightness = DA9052_MAX_BRIGHTNESS; in da9052_backlight_probe()
130 &da9052_backlight_ops, &props); in da9052_backlight_probe()
136 bl->props.max_brightness = DA9052_MAX_BRIGHTNESS; in da9052_backlight_probe()
137 bl->props.brightness = 0; in da9052_backlight_probe()
D88pm860x_bl.c127 int brightness = bl->props.brightness; in pm860x_backlight_update_status()
129 if (bl->props.power != FB_BLANK_UNBLANK) in pm860x_backlight_update_status()
132 if (bl->props.fb_blank != FB_BLANK_UNBLANK) in pm860x_backlight_update_status()
135 if (bl->props.state & BL_CORE_SUSPENDED) in pm860x_backlight_update_status()
200 struct backlight_properties props; in pm860x_backlight_probe() local
240 memset(&props, 0, sizeof(struct backlight_properties)); in pm860x_backlight_probe()
241 props.type = BACKLIGHT_RAW; in pm860x_backlight_probe()
242 props.max_brightness = MAX_BRIGHTNESS; in pm860x_backlight_probe()
244 &pm860x_backlight_ops, &props); in pm860x_backlight_probe()
249 bl->props.brightness = MAX_BRIGHTNESS; in pm860x_backlight_probe()
Das3711_bl.c112 int brightness = bl->props.brightness; in as3711_bl_update_status()
116 __func__, bl->props.brightness, bl->props.power, in as3711_bl_update_status()
117 bl->props.fb_blank, bl->props.state); in as3711_bl_update_status()
119 if (bl->props.power != FB_BLANK_UNBLANK || in as3711_bl_update_status()
120 bl->props.fb_blank != FB_BLANK_UNBLANK || in as3711_bl_update_status()
121 bl->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK)) in as3711_bl_update_status()
237 struct backlight_properties props = {.type = BACKLIGHT_RAW,}; in as3711_bl_register() local
241 props.max_brightness = max_brightness; in as3711_bl_register()
247 &as3711_bl_ops, &props); in as3711_bl_register()
253 bl->props.brightness = props.max_brightness; in as3711_bl_register()
Dlm3533_bl.c46 int brightness = bd->props.brightness; in lm3533_bl_update_status()
48 if (bd->props.power != FB_BLANK_UNBLANK) in lm3533_bl_update_status()
50 if (bd->props.fb_blank != FB_BLANK_UNBLANK) in lm3533_bl_update_status()
278 struct backlight_properties props; in lm3533_bl_probe() local
309 memset(&props, 0, sizeof(props)); in lm3533_bl_probe()
310 props.type = BACKLIGHT_RAW; in lm3533_bl_probe()
311 props.max_brightness = LM3533_BL_MAX_BRIGHTNESS; in lm3533_bl_probe()
312 props.brightness = pdata->default_brightness; in lm3533_bl_probe()
315 &props); in lm3533_bl_probe()
357 bd->props.power = FB_BLANK_POWERDOWN; in lm3533_bl_remove()
[all …]
Dlp855x_bl.c261 if (bl->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK)) in lp855x_bl_update_status()
262 bl->props.brightness = 0; in lp855x_bl_update_status()
265 int br = bl->props.brightness; in lp855x_bl_update_status()
266 int max_br = bl->props.max_brightness; in lp855x_bl_update_status()
271 u8 val = bl->props.brightness; in lp855x_bl_update_status()
287 struct backlight_properties props; in lp855x_backlight_register() local
291 props.type = BACKLIGHT_PLATFORM; in lp855x_backlight_register()
292 props.max_brightness = MAX_BRIGHTNESS; in lp855x_backlight_register()
294 if (pdata->initial_brightness > props.max_brightness) in lp855x_backlight_register()
295 pdata->initial_brightness = props.max_brightness; in lp855x_backlight_register()
[all …]
Dpcf50633-backlight.c64 if (bl->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK) || in pcf50633_bl_update_status()
65 bl->props.power != FB_BLANK_UNBLANK) in pcf50633_bl_update_status()
67 else if (bl->props.brightness < pcf_bl->brightness_limit) in pcf50633_bl_update_status()
68 new_brightness = bl->props.brightness; in pcf50633_bl_update_status()
145 pcf_bl->brightness = pcf_bl->bl->props.brightness + 1; in pcf50633_bl_probe()
Dams369fg06.c346 ret = ams369fg06_gamma_ctl(lcd, bd->props.brightness); in ams369fg06_power_on()
416 int brightness = bd->props.brightness; in ams369fg06_set_brightness()
420 brightness > bd->props.max_brightness) { in ams369fg06_set_brightness()
426 ret = ams369fg06_gamma_ctl(lcd, bd->props.brightness); in ams369fg06_set_brightness()
450 struct backlight_properties props; in ams369fg06_probe() local
481 memset(&props, 0, sizeof(struct backlight_properties)); in ams369fg06_probe()
482 props.type = BACKLIGHT_RAW; in ams369fg06_probe()
483 props.max_brightness = MAX_BRIGHTNESS; in ams369fg06_probe()
487 &ams369fg06_backlight_ops, &props); in ams369fg06_probe()
491 bd->props.brightness = DEFAULT_BRIGHTNESS; in ams369fg06_probe()
Dpwm_bl.c95 int brightness = bl->props.brightness; in pwm_backlight_update_status()
98 if (bl->props.power != FB_BLANK_UNBLANK || in pwm_backlight_update_status()
99 bl->props.fb_blank != FB_BLANK_UNBLANK || in pwm_backlight_update_status()
100 bl->props.state & BL_CORE_FBBLANK) in pwm_backlight_update_status()
199 struct backlight_properties props; in pwm_backlight_probe() local
307 memset(&props, 0, sizeof(struct backlight_properties)); in pwm_backlight_probe()
308 props.type = BACKLIGHT_RAW; in pwm_backlight_probe()
309 props.max_brightness = data->max_brightness; in pwm_backlight_probe()
311 &pwm_backlight_ops, &props); in pwm_backlight_probe()
325 bl->props.brightness = data->dft_brightness; in pwm_backlight_probe()
Dsky81452-backlight.c62 const unsigned int brightness = (unsigned int)bd->props.brightness; in sky81452_bl_update_status()
268 struct backlight_properties props; in sky81452_bl_probe() local
293 memset(&props, 0, sizeof(props)); in sky81452_bl_probe()
294 props.max_brightness = SKY81452_MAX_BRIGHTNESS, in sky81452_bl_probe()
297 &sky81452_bl_ops, &props); in sky81452_bl_probe()
322 bd->props.power = FB_BLANK_UNBLANK; in sky81452_bl_remove()
323 bd->props.brightness = 0; in sky81452_bl_remove()
Dcorgi_lcd.c428 int intensity = bd->props.brightness; in corgi_bl_update_status()
430 if (bd->props.power != FB_BLANK_UNBLANK) in corgi_bl_update_status()
433 if (bd->props.fb_blank != FB_BLANK_UNBLANK) in corgi_bl_update_status()
536 struct backlight_properties props; in corgi_lcd_probe() local
560 memset(&props, 0, sizeof(struct backlight_properties)); in corgi_lcd_probe()
561 props.type = BACKLIGHT_RAW; in corgi_lcd_probe()
562 props.max_brightness = pdata->max_intensity; in corgi_lcd_probe()
565 &props); in corgi_lcd_probe()
569 lcd->bl_dev->props.brightness = pdata->default_intensity; in corgi_lcd_probe()
570 lcd->bl_dev->props.power = FB_BLANK_UNBLANK; in corgi_lcd_probe()
[all …]
Dipaq_micro_bl.c21 int intensity = bd->props.brightness; in micro_bl_update_status()
27 if (bd->props.power != FB_BLANK_UNBLANK) in micro_bl_update_status()
29 if (bd->props.state & (BL_CORE_FBBLANK | BL_CORE_SUSPENDED)) in micro_bl_update_status()
Dadp5520_bl.c69 int brightness = bl->props.brightness; in adp5520_bl_update_status()
71 if (bl->props.power != FB_BLANK_UNBLANK) in adp5520_bl_update_status()
74 if (bl->props.fb_blank != FB_BLANK_UNBLANK) in adp5520_bl_update_status()
291 struct backlight_properties props; in adp5520_bl_probe() local
313 memset(&props, 0, sizeof(struct backlight_properties)); in adp5520_bl_probe()
314 props.type = BACKLIGHT_RAW; in adp5520_bl_probe()
315 props.max_brightness = ADP5020_MAX_BRIGHTNESS; in adp5520_bl_probe()
318 &props); in adp5520_bl_probe()
324 bl->props.brightness = ADP5020_MAX_BRIGHTNESS; in adp5520_bl_probe()
Ds6e63m0.c536 ret = s6e63m0_gamma_ctl(lcd, bd->props.brightness); in s6e63m0_power_on()
602 int ret = 0, brightness = bd->props.brightness; in s6e63m0_set_brightness()
606 brightness > bd->props.max_brightness) { in s6e63m0_set_brightness()
612 ret = s6e63m0_gamma_ctl(lcd, bd->props.brightness); in s6e63m0_set_brightness()
671 brightness = bd->props.brightness; in s6e63m0_sysfs_store_gamma_mode()
714 struct backlight_properties props; in s6e63m0_probe() local
745 memset(&props, 0, sizeof(struct backlight_properties)); in s6e63m0_probe()
746 props.type = BACKLIGHT_RAW; in s6e63m0_probe()
747 props.max_brightness = MAX_BRIGHTNESS; in s6e63m0_probe()
751 &props); in s6e63m0_probe()
[all …]
Dld9040.c647 int ret = 0, brightness = bd->props.brightness; in ld9040_set_brightness()
651 brightness > bd->props.max_brightness) { in ld9040_set_brightness()
657 ret = ld9040_gamma_ctl(lcd, bd->props.brightness); in ld9040_set_brightness()
681 struct backlight_properties props; in ld9040_probe() local
720 memset(&props, 0, sizeof(struct backlight_properties)); in ld9040_probe()
721 props.type = BACKLIGHT_RAW; in ld9040_probe()
722 props.max_brightness = MAX_BRIGHTNESS; in ld9040_probe()
725 lcd, &ld9040_backlight_ops, &props); in ld9040_probe()
729 bd->props.brightness = MAX_BRIGHTNESS; in ld9040_probe()
Dtps65217_bl.c80 int brightness = bl->props.brightness; in tps65217_bl_update_status()
82 if (bl->props.state & BL_CORE_SUSPENDED) in tps65217_bl_update_status()
85 if ((bl->props.power != FB_BLANK_UNBLANK) || in tps65217_bl_update_status()
86 (bl->props.fb_blank != FB_BLANK_UNBLANK)) in tps65217_bl_update_status()
316 tps65217_bl->bl->props.brightness = pdata->dft_brightness; in tps65217_bl_probe()
Dadp8860_bl.c365 int brightness = bl->props.brightness; in adp8860_bl_update_status()
367 if (bl->props.power != FB_BLANK_UNBLANK) in adp8860_bl_update_status()
370 if (bl->props.fb_blank != FB_BLANK_UNBLANK) in adp8860_bl_update_status()
663 struct backlight_properties props; in adp8860_probe() local
709 memset(&props, 0, sizeof(props)); in adp8860_probe()
710 props.type = BACKLIGHT_RAW; in adp8860_probe()
711 props.max_brightness = ADP8860_MAX_BRIGHTNESS; in adp8860_probe()
717 &client->dev, data, &adp8860_bl_ops, &props); in adp8860_probe()
723 bl->props.brightness = ADP8860_MAX_BRIGHTNESS; in adp8860_probe()
Dadp8870_bl.c403 int brightness = bl->props.brightness; in adp8870_bl_update_status()
405 if (bl->props.power != FB_BLANK_UNBLANK) in adp8870_bl_update_status()
408 if (bl->props.fb_blank != FB_BLANK_UNBLANK) in adp8870_bl_update_status()
849 struct backlight_properties props; in adp8870_probe() local
890 memset(&props, 0, sizeof(props)); in adp8870_probe()
891 props.type = BACKLIGHT_RAW; in adp8870_probe()
892 props.max_brightness = props.brightness = ADP8870_MAX_BRIGHTNESS; in adp8870_probe()
895 &client->dev, data, &adp8870_bl_ops, &props); in adp8870_probe()
Dlcd.c177 return sprintf(buf, "%d\n", ld->props.max_contrast); in max_contrast_show()
/linux-4.1.27/drivers/infiniband/hw/usnic/
Dusnic_ib_verbs.c251 struct ib_device_attr *props) in usnic_ib_query_device() argument
263 memset(props, 0, sizeof(*props)); in usnic_ib_query_device()
266 memcpy(&props->sys_image_guid, &gid.global.interface_id, in usnic_ib_query_device()
268 usnic_ib_fw_string_to_u64(&info.fw_version[0], &props->fw_ver); in usnic_ib_query_device()
269 props->max_mr_size = USNIC_UIOM_MAX_MR_SIZE; in usnic_ib_query_device()
270 props->page_size_cap = USNIC_UIOM_PAGE_SIZE; in usnic_ib_query_device()
271 props->vendor_id = PCI_VENDOR_ID_CISCO; in usnic_ib_query_device()
272 props->vendor_part_id = PCI_DEVICE_ID_CISCO_VIC_USPACE_NIC; in usnic_ib_query_device()
273 props->hw_ver = us_ibdev->pdev->subsystem_device; in usnic_ib_query_device()
276 props->max_qp = qp_per_vf * in usnic_ib_query_device()
[all …]
Dusnic_ib_verbs.h27 struct ib_device_attr *props);
29 struct ib_port_attr *props);
/linux-4.1.27/drivers/infiniband/hw/amso1100/
Dc2_rnic.c123 static int c2_rnic_query(struct c2_dev *c2dev, struct ib_device_attr *props) in c2_rnic_query() argument
159 props->fw_ver = in c2_rnic_query()
163 memcpy(&props->sys_image_guid, c2dev->netdev->dev_addr, 6); in c2_rnic_query()
164 props->max_mr_size = 0xFFFFFFFF; in c2_rnic_query()
165 props->page_size_cap = ~(C2_MIN_PAGESIZE-1); in c2_rnic_query()
166 props->vendor_id = be32_to_cpu(reply->vendor_id); in c2_rnic_query()
167 props->vendor_part_id = be32_to_cpu(reply->part_number); in c2_rnic_query()
168 props->hw_ver = be32_to_cpu(reply->hw_version); in c2_rnic_query()
169 props->max_qp = be32_to_cpu(reply->max_qps); in c2_rnic_query()
170 props->max_qp_wr = be32_to_cpu(reply->max_qp_depth); in c2_rnic_query()
[all …]
Dc2_provider.c67 struct ib_device_attr *props) in c2_query_device() argument
73 *props = c2dev->props; in c2_query_device()
78 u8 port, struct ib_port_attr *props) in c2_query_port() argument
82 props->max_mtu = IB_MTU_4096; in c2_query_port()
83 props->lid = 0; in c2_query_port()
84 props->lmc = 0; in c2_query_port()
85 props->sm_lid = 0; in c2_query_port()
86 props->sm_sl = 0; in c2_query_port()
87 props->state = IB_PORT_ACTIVE; in c2_query_port()
88 props->phys_state = 0; in c2_query_port()
[all …]
Dc2_pd.c77 c2dev->pd_table.max = c2dev->props.max_pd; in c2_init_pd_table()
79 c2dev->pd_table.table = kmalloc(BITS_TO_LONGS(c2dev->props.max_pd) * in c2_init_pd_table()
83 bitmap_zero(c2dev->pd_table.table, c2dev->props.max_pd); in c2_init_pd_table()
/linux-4.1.27/drivers/infiniband/hw/mlx5/
Dmain.c66 struct ib_device_attr *props) in mlx5_ib_query_device() argument
90 memset(props, 0, sizeof(*props)); in mlx5_ib_query_device()
92 props->fw_ver = ((u64)fw_rev_maj(dev->mdev) << 32) | in mlx5_ib_query_device()
95 props->device_cap_flags = IB_DEVICE_CHANGE_PHY_PORT | in mlx5_ib_query_device()
101 props->device_cap_flags |= IB_DEVICE_BAD_PKEY_CNTR; in mlx5_ib_query_device()
103 props->device_cap_flags |= IB_DEVICE_BAD_QKEY_CNTR; in mlx5_ib_query_device()
105 props->device_cap_flags |= IB_DEVICE_AUTO_PATH_MIG; in mlx5_ib_query_device()
106 props->device_cap_flags |= IB_DEVICE_LOCAL_DMA_LKEY; in mlx5_ib_query_device()
108 props->device_cap_flags |= IB_DEVICE_XRC; in mlx5_ib_query_device()
109 props->device_cap_flags |= IB_DEVICE_MEM_MGT_EXTENSIONS; in mlx5_ib_query_device()
[all …]
/linux-4.1.27/net/ipv4/
Dipcomp.c70 t->id.spi = x->props.saddr.a4; in ipcomp_tunnel_create()
73 t->props.family = AF_INET; in ipcomp_tunnel_create()
74 t->props.mode = x->props.mode; in ipcomp_tunnel_create()
75 t->props.saddr.a4 = x->props.saddr.a4; in ipcomp_tunnel_create()
76 t->props.flags = x->props.flags; in ipcomp_tunnel_create()
77 t->props.extra_flags = x->props.extra_flags; in ipcomp_tunnel_create()
106 x->props.saddr.a4, IPPROTO_IPIP, AF_INET); in ipcomp_tunnel_attach()
126 x->props.header_len = 0; in ipcomp4_init_state()
127 switch (x->props.mode) { in ipcomp4_init_state()
131 x->props.header_len += sizeof(struct iphdr); in ipcomp4_init_state()
[all …]
Dxfrm4_state.c20 x->props.flags |= XFRM_STATE_NOPMTUDISC; in xfrm4_init_flags()
49 x->props.saddr = tmpl->saddr; in xfrm4_init_temprop()
50 if (x->props.saddr.a4 == 0) in xfrm4_init_temprop()
51 x->props.saddr.a4 = saddr->a4; in xfrm4_init_temprop()
52 x->props.mode = tmpl->mode; in xfrm4_init_temprop()
53 x->props.reqid = tmpl->reqid; in xfrm4_init_temprop()
54 x->props.family = AF_INET; in xfrm4_init_temprop()
Dxfrm4_mode_tunnel.c36 skb_set_network_header(skb, -x->props.header_len); in xfrm4_mode_tunnel_output()
48 if (x->props.extra_flags & XFRM_SA_XFLAG_DONT_ENCAP_DSCP) in xfrm4_mode_tunnel_output()
55 flags = x->props.flags; in xfrm4_mode_tunnel_output()
64 top_iph->saddr = x->props.saddr.a4; in xfrm4_mode_tunnel_output()
85 if (x->props.flags & XFRM_STATE_DECAP_DSCP) in xfrm4_mode_tunnel_input()
87 if (!(x->props.flags & XFRM_STATE_NOECN)) in xfrm4_mode_tunnel_input()
Desp4.c166 if (x->props.flags & XFRM_STATE_ESN) { in esp_output()
246 if ((x->props.flags & XFRM_STATE_ESN)) { in esp_output()
316 if (iph->saddr != x->props.saddr.a4 || in esp_input_done2()
339 if (x->props.mode == XFRM_MODE_TRANSPORT) in esp_input_done2()
345 if (x->props.mode == XFRM_MODE_TUNNEL) in esp_input_done2()
406 if (x->props.flags & XFRM_STATE_ESN) { in esp_input()
434 if ((x->props.flags & XFRM_STATE_ESN)) { in esp_input()
463 switch (x->props.mode) { in esp4_get_mtu()
475 return ((mtu - x->props.header_len - crypto_aead_authsize(aead) - in esp4_get_mtu()
562 if ((x->props.flags & XFRM_STATE_ESN)) { in esp_init_authenc()
[all …]
Dah4.c174 if (x->props.flags & XFRM_STATE_ESN) { in ah_output()
213 if (x->props.flags & XFRM_STATE_ALIGN4) in ah_output()
225 if (x->props.flags & XFRM_STATE_ESN) { in ah_output()
287 if (x->props.mode == XFRM_MODE_TUNNEL) in ah_input_done()
327 if (x->props.flags & XFRM_STATE_ALIGN4) { in ah_input()
356 if (x->props.flags & XFRM_STATE_ESN) { in ah_input()
393 if (x->props.flags & XFRM_STATE_ESN) { in ah_input()
418 if (x->props.mode == XFRM_MODE_TUNNEL) in ah_input()
508 if (x->props.flags & XFRM_STATE_ALIGN4) in ah_init_state()
509 x->props.header_len = XFRM_ALIGN4(sizeof(struct ip_auth_hdr) + in ah_init_state()
[all …]
Dxfrm4_tunnel.c28 if (x->props.mode != XFRM_MODE_TUNNEL) in ipip_init_state()
34 x->props.header_len = sizeof(struct iphdr); in ipip_init_state()
Dxfrm4_mode_beet.c50 skb_set_network_header(skb, -x->props.header_len - in xfrm4_beet_output()
78 top_iph->saddr = x->props.saddr.a4; in xfrm4_beet_output()
Dxfrm4_mode_transport.c26 skb_set_network_header(skb, -x->props.header_len); in xfrm4_transport_output()
Dip_vti.c139 if (!x || x->props.mode != XFRM_MODE_TUNNEL || in vti_state_check()
140 x->props.family != AF_INET) in vti_state_check()
144 return xfrm_addr_equal(saddr, &x->props.saddr, AF_INET); in vti_state_check()
/linux-4.1.27/drivers/gpu/drm/nouveau/dispnv04/
Doverlay.c50 } props; member
232 if (property == nv_plane->props.colorkey) in nv_set_property()
234 else if (property == nv_plane->props.contrast) in nv_set_property()
236 else if (property == nv_plane->props.brightness) in nv_set_property()
238 else if (property == nv_plane->props.hue) in nv_set_property()
240 else if (property == nv_plane->props.saturation) in nv_set_property()
242 else if (property == nv_plane->props.iturbt_709) in nv_set_property()
287 plane->props.colorkey = drm_property_create_range( in nv10_overlay_init()
289 plane->props.contrast = drm_property_create_range( in nv10_overlay_init()
291 plane->props.brightness = drm_property_create_range( in nv10_overlay_init()
[all …]
/linux-4.1.27/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()
/linux-4.1.27/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()
115 data->backlight->props.power = FB_BLANK_POWERDOWN; in picolcd_suspend_backlight()
117 data->lcd_power = data->backlight->props.power = bl_power; in picolcd_suspend_backlight()
Dhid-picolcd_lcd.c83 ldev->props.max_contrast = 0x0ff; in picolcd_init_lcd()
/linux-4.1.27/drivers/infiniband/hw/cxgb4/
Dprovider.c305 struct ib_device_attr *props) in c4iw_query_device() argument
312 memset(props, 0, sizeof *props); in c4iw_query_device()
313 memcpy(&props->sys_image_guid, dev->rdev.lldi.ports[0]->dev_addr, 6); in c4iw_query_device()
314 props->hw_ver = CHELSIO_CHIP_RELEASE(dev->rdev.lldi.adapter_type); in c4iw_query_device()
315 props->fw_ver = dev->rdev.lldi.fw_vers; in c4iw_query_device()
316 props->device_cap_flags = dev->device_cap_flags; in c4iw_query_device()
317 props->page_size_cap = T4_PAGESIZE_MASK; in c4iw_query_device()
318 props->vendor_id = (u32)dev->rdev.lldi.pdev->vendor; in c4iw_query_device()
319 props->vendor_part_id = (u32)dev->rdev.lldi.pdev->device; in c4iw_query_device()
320 props->max_mr_size = T4_MAX_MR_SIZE; in c4iw_query_device()
[all …]
/linux-4.1.27/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 …]
/linux-4.1.27/drivers/gpu/drm/nouveau/
Dnouveau_backlight.c55 int val = bd->props.brightness; in nv40_set_intensity()
75 struct backlight_properties props; in nv40_backlight_init() local
81 memset(&props, 0, sizeof(struct backlight_properties)); in nv40_backlight_init()
82 props.type = BACKLIGHT_RAW; in nv40_backlight_init()
83 props.max_brightness = 31; in nv40_backlight_init()
85 &nv40_bl_ops, &props); in nv40_backlight_init()
89 bd->props.brightness = nv40_get_intensity(bd); in nv40_backlight_init()
118 u32 val = (bd->props.brightness * div) / 100; in nv50_set_intensity()
159 val = (bd->props.brightness * div) / 100; in nva3_set_intensity()
182 struct backlight_properties props; in nv50_backlight_init() local
[all …]
/linux-4.1.27/drivers/infiniband/hw/mthca/
Dmthca_provider.c61 struct ib_device_attr *props) in mthca_query_device() argument
73 memset(props, 0, sizeof *props); in mthca_query_device()
75 props->fw_ver = mdev->fw_ver; in mthca_query_device()
85 props->device_cap_flags = mdev->device_cap_flags; in mthca_query_device()
86 props->vendor_id = be32_to_cpup((__be32 *) (out_mad->data + 36)) & in mthca_query_device()
88 props->vendor_part_id = be16_to_cpup((__be16 *) (out_mad->data + 30)); in mthca_query_device()
89 props->hw_ver = be32_to_cpup((__be32 *) (out_mad->data + 32)); in mthca_query_device()
90 memcpy(&props->sys_image_guid, out_mad->data + 4, 8); in mthca_query_device()
92 props->max_mr_size = ~0ull; in mthca_query_device()
93 props->page_size_cap = mdev->limits.page_size_cap; in mthca_query_device()
[all …]
/linux-4.1.27/net/ipv6/
Dipcomp6.c95 t->id.spi = xfrm6_tunnel_alloc_spi(net, (xfrm_address_t *)&x->props.saddr); in ipcomp6_tunnel_create()
101 t->props.family = AF_INET6; in ipcomp6_tunnel_create()
102 t->props.mode = x->props.mode; in ipcomp6_tunnel_create()
103 memcpy(t->props.saddr.a6, x->props.saddr.a6, sizeof(struct in6_addr)); in ipcomp6_tunnel_create()
129 spi = xfrm6_tunnel_spi_lookup(net, (xfrm_address_t *)&x->props.saddr); in ipcomp6_tunnel_attach()
153 x->props.header_len = 0; in ipcomp6_init_state()
154 switch (x->props.mode) { in ipcomp6_init_state()
158 x->props.header_len += sizeof(struct ipv6hdr); in ipcomp6_init_state()
168 if (x->props.mode == XFRM_MODE_TUNNEL) { in ipcomp6_init_state()
Dxfrm6_state.c50 memcpy(&x->props.saddr, &tmpl->saddr, sizeof(x->props.saddr)); in xfrm6_init_temprop()
51 if (ipv6_addr_any((struct in6_addr *)&x->props.saddr)) in xfrm6_init_temprop()
52 memcpy(&x->props.saddr, saddr, sizeof(x->props.saddr)); in xfrm6_init_temprop()
53 x->props.mode = tmpl->mode; in xfrm6_init_temprop()
54 x->props.reqid = tmpl->reqid; in xfrm6_init_temprop()
55 x->props.family = AF_INET6; in xfrm6_init_temprop()
98 switch (v->props.mode) { in __xfrm6_state_sort_cmp()
Dxfrm6_mode_tunnel.c40 skb_set_network_header(skb, -x->props.header_len); in xfrm6_mode_tunnel_output()
52 if (x->props.extra_flags & XFRM_SA_XFLAG_DONT_ENCAP_DSCP) in xfrm6_mode_tunnel_output()
57 if (x->props.flags & XFRM_STATE_NOECN) in xfrm6_mode_tunnel_output()
61 top_iph->saddr = *(struct in6_addr *)&x->props.saddr; in xfrm6_mode_tunnel_output()
85 if (x->props.flags & XFRM_STATE_DECAP_DSCP) in xfrm6_mode_tunnel_input()
88 if (!(x->props.flags & XFRM_STATE_NOECN)) in xfrm6_mode_tunnel_input()
Desp6.c193 if (x->props.flags & XFRM_STATE_ESN) { in esp6_output()
238 if ((x->props.flags & XFRM_STATE_ESN)) { in esp6_output()
299 if (x->props.mode == XFRM_MODE_TUNNEL) in esp_input_done2()
361 if (x->props.flags & XFRM_STATE_ESN) { in esp6_input()
388 if ((x->props.flags & XFRM_STATE_ESN)) { in esp6_input()
417 if (x->props.mode != XFRM_MODE_TUNNEL) in esp6_get_mtu()
422 return ((mtu - x->props.header_len - crypto_aead_authsize(aead) - in esp6_get_mtu()
504 if ((x->props.flags & XFRM_STATE_ESN)) { in esp_init_authenc()
597 x->props.header_len = sizeof(struct ip_esp_hdr) + in esp6_init_state()
599 switch (x->props.mode) { in esp6_init_state()
[all …]
Dmip6.c181 WARN_ON(len != x->props.header_len); in mip6_destopt_output()
182 dstopt->hdrlen = (x->props.header_len >> 3) - 1; in mip6_destopt_output()
318 if (x->props.mode != XFRM_MODE_ROUTEOPTIMIZATION) { in mip6_destopt_init_state()
320 __func__, XFRM_MODE_ROUTEOPTIMIZATION, x->props.mode); in mip6_destopt_init_state()
324 x->props.header_len = sizeof(struct ipv6_destopt_hdr) + in mip6_destopt_init_state()
327 WARN_ON(x->props.header_len != 24); in mip6_destopt_init_state()
385 rt2->rt_hdr.hdrlen = (x->props.header_len >> 3) - 1; in mip6_rthdr_output()
453 if (x->props.mode != XFRM_MODE_ROUTEOPTIMIZATION) { in mip6_rthdr_init_state()
455 __func__, XFRM_MODE_ROUTEOPTIMIZATION, x->props.mode); in mip6_rthdr_init_state()
459 x->props.header_len = sizeof(struct rt2_hdr); in mip6_rthdr_init_state()
Dxfrm6_mode_ro.c50 skb_set_mac_header(skb, (prevhdr - x->props.header_len) - skb->data); in xfrm6_ro_output()
51 skb_set_network_header(skb, -x->props.header_len); in xfrm6_ro_output()
Dah6.c366 if (x->props.flags & XFRM_STATE_ESN) { in ah6_output()
428 if (x->props.flags & XFRM_STATE_ESN) { in ah6_output()
490 if (x->props.mode == XFRM_MODE_TUNNEL) in ah6_input_done()
573 if (x->props.flags & XFRM_STATE_ESN) { in ah6_input()
606 if (x->props.flags & XFRM_STATE_ESN) { in ah6_input()
633 if (x->props.mode == XFRM_MODE_TUNNEL) in ah6_input()
716 x->props.header_len = XFRM_ALIGN8(sizeof(struct ip_auth_hdr) + in ah6_init_state()
718 switch (x->props.mode) { in ah6_init_state()
723 x->props.header_len += sizeof(struct ipv6hdr); in ah6_init_state()
Dxfrm6_mode_transport.c31 skb_set_mac_header(skb, (prevhdr - x->props.header_len) - skb->data); in xfrm6_transport_output()
32 skb_set_network_header(skb, -x->props.header_len); in xfrm6_transport_output()
Dxfrm6_mode_beet.c51 skb_set_network_header(skb, -x->props.header_len - hdr_len); in xfrm6_beet_output()
75 top_iph->saddr = *(struct in6_addr *)&x->props.saddr; in xfrm6_beet_output()
Dxfrm6_tunnel.c285 if (x->props.mode != XFRM_MODE_TUNNEL) in xfrm6_tunnel_init_state()
291 x->props.header_len = sizeof(struct ipv6hdr); in xfrm6_tunnel_init_state()
300 xfrm6_tunnel_free_spi(net, (xfrm_address_t *)&x->props.saddr); in xfrm6_tunnel_destroy()
Dxfrm6_input.c110 if ((!i || (x->props.flags & XFRM_STATE_WILDRECV)) && in xfrm6_input_addr()
Dxfrm6_output.c160 if (x->props.mode == XFRM_MODE_TUNNEL && in __xfrm6_output()
Dip6_vti.c410 if (!x || x->props.mode != XFRM_MODE_TUNNEL || in vti6_state_check()
411 x->props.family != AF_INET6) in vti6_state_check()
415 return xfrm_addr_equal(saddr, &x->props.saddr, AF_INET6); in vti6_state_check()
455 if (!ip6_tnl_xmit_ctl(t, (const struct in6_addr *)&x->props.saddr, in vti6_xmit()
/linux-4.1.27/drivers/video/fbdev/aty/
Dradeon_backlight.c63 if (bd->props.power != FB_BLANK_UNBLANK || in radeon_bl_update_status()
64 bd->props.fb_blank != FB_BLANK_UNBLANK) in radeon_bl_update_status()
67 level = bd->props.brightness; in radeon_bl_update_status()
132 struct backlight_properties props; in radeonfb_bl_init() local
154 memset(&props, 0, sizeof(struct backlight_properties)); in radeonfb_bl_init()
155 props.type = BACKLIGHT_RAW; in radeonfb_bl_init()
156 props.max_brightness = FB_BACKLIGHT_LEVELS - 1; in radeonfb_bl_init()
158 &radeon_bl_data, &props); in radeonfb_bl_init()
188 bd->props.brightness = bd->props.max_brightness; in radeonfb_bl_init()
189 bd->props.power = FB_BLANK_UNBLANK; in radeonfb_bl_init()
Daty128fb.c1803 if (bd->props.power != FB_BLANK_UNBLANK || in aty128_bl_update_status()
1804 bd->props.fb_blank != FB_BLANK_UNBLANK || in aty128_bl_update_status()
1808 level = bd->props.brightness; in aty128_bl_update_status()
1859 info->bl_dev->props.power = power; in aty128_bl_set_power()
1866 struct backlight_properties props; in aty128_bl_init() local
1882 memset(&props, 0, sizeof(struct backlight_properties)); in aty128_bl_init()
1883 props.type = BACKLIGHT_RAW; in aty128_bl_init()
1884 props.max_brightness = FB_BACKLIGHT_LEVELS - 1; in aty128_bl_init()
1886 &props); in aty128_bl_init()
1898 bd->props.brightness = bd->props.max_brightness; in aty128_bl_init()
[all …]
Datyfb_base.c2195 if (bd->props.power != FB_BLANK_UNBLANK || in aty_bl_update_status()
2196 bd->props.fb_blank != FB_BLANK_UNBLANK) in aty_bl_update_status()
2199 level = bd->props.brightness; in aty_bl_update_status()
2220 struct backlight_properties props; in aty_bl_init() local
2232 memset(&props, 0, sizeof(struct backlight_properties)); in aty_bl_init()
2233 props.type = BACKLIGHT_RAW; in aty_bl_init()
2234 props.max_brightness = FB_BACKLIGHT_LEVELS - 1; in aty_bl_init()
2236 &props); in aty_bl_init()
2248 bd->props.brightness = bd->props.max_brightness; in aty_bl_init()
2249 bd->props.power = FB_BLANK_UNBLANK; in aty_bl_init()
/linux-4.1.27/drivers/media/tuners/
Dtuner-i2c.h36 static inline int tuner_i2c_xfer_send(struct tuner_i2c_props *props, char *buf, int len) in tuner_i2c_xfer_send() argument
38 struct i2c_msg msg = { .addr = props->addr, .flags = 0, in tuner_i2c_xfer_send()
40 int ret = i2c_transfer(props->adap, &msg, 1); in tuner_i2c_xfer_send()
45 static inline int tuner_i2c_xfer_recv(struct tuner_i2c_props *props, char *buf, int len) in tuner_i2c_xfer_recv() argument
47 struct i2c_msg msg = { .addr = props->addr, .flags = I2C_M_RD, in tuner_i2c_xfer_recv()
49 int ret = i2c_transfer(props->adap, &msg, 1); in tuner_i2c_xfer_recv()
54 static inline int tuner_i2c_xfer_send_recv(struct tuner_i2c_props *props, in tuner_i2c_xfer_send_recv() argument
58 struct i2c_msg msg[2] = { { .addr = props->addr, .flags = 0, in tuner_i2c_xfer_send_recv()
60 { .addr = props->addr, .flags = I2C_M_RD, in tuner_i2c_xfer_send_recv()
62 int ret = i2c_transfer(props->adap, msg, 2); in tuner_i2c_xfer_send_recv()
/linux-4.1.27/drivers/gpu/drm/shmobile/
Dshmob_drm_backlight.c25 int brightness = bdev->props.brightness; in shmob_drm_backlight_update()
27 if (bdev->props.power != FB_BLANK_UNBLANK || in shmob_drm_backlight_update()
28 bdev->props.state & BL_CORE_SUSPENDED) in shmob_drm_backlight_update()
54 scon->backlight->props.power = mode == DRM_MODE_DPMS_ON in shmob_drm_backlight_dpms()
78 backlight->props.max_brightness = bdata->max_brightness; in shmob_drm_backlight_init()
79 backlight->props.brightness = bdata->max_brightness; in shmob_drm_backlight_init()
80 backlight->props.power = FB_BLANK_POWERDOWN; in shmob_drm_backlight_init()
/linux-4.1.27/drivers/crypto/nx/
Dnx.c341 struct nx_of *props) in nx_of_update_status() argument
344 props->status = NX_WAITING; in nx_of_update_status()
345 props->flags |= NX_OF_FLAG_STATUS_SET; in nx_of_update_status()
354 struct nx_of *props) in nx_of_update_sglen() argument
356 if (p->length != sizeof(props->max_sg_len)) { in nx_of_update_sglen()
361 p->length, sizeof(props->max_sg_len)); in nx_of_update_sglen()
365 props->max_sg_len = *(u32 *)p->value; in nx_of_update_sglen()
366 props->flags |= NX_OF_FLAG_MAXSGLEN_SET; in nx_of_update_sglen()
371 struct nx_of *props) in nx_of_update_msc() argument
405 props->ap[msc->fc][msc->mode][0].databytelen = in nx_of_update_msc()
[all …]
Dnx-aes-cbc.c45 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_128]; in cbc_aes_nx_set_key()
49 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_192]; in cbc_aes_nx_set_key()
53 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_256]; in cbc_aes_nx_set_key()
Dnx-aes-ecb.c45 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_128]; in ecb_aes_nx_set_key()
49 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_192]; in ecb_aes_nx_set_key()
53 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_256]; in ecb_aes_nx_set_key()
Dnx-aes-ctr.c46 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_128]; in ctr_aes_nx_set_key()
50 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_192]; in ctr_aes_nx_set_key()
54 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_256]; in ctr_aes_nx_set_key()
Dnx-aes-gcm.c49 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_128]; in gcm_aes_nx_set_key()
54 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_192]; in gcm_aes_nx_set_key()
59 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_256]; in gcm_aes_nx_set_key()
Dnx.h140 struct alg_props props[3];/* openFirmware properties for requests */ member
/linux-4.1.27/net/xfrm/
Dxfrm_state.c76 h = __xfrm_dst_hash(&x->id.daddr, &x->props.saddr, in xfrm_hash_transfer()
77 x->props.reqid, x->props.family, in xfrm_hash_transfer()
81 h = __xfrm_src_hash(&x->id.daddr, &x->props.saddr, in xfrm_hash_transfer()
82 x->props.family, in xfrm_hash_transfer()
88 x->id.proto, x->props.family, in xfrm_hash_transfer()
663 if (x->props.family != family || in __xfrm_state_lookup()
687 if (x->props.family != family || in __xfrm_state_lookup_byaddr()
690 !xfrm_addr_equal(&x->props.saddr, saddr, family)) in __xfrm_state_lookup_byaddr()
714 &x->props.saddr, in __xfrm_state_locate()
785 if (x->props.family == encap_family && in xfrm_state_find()
[all …]
Dxfrm_user.c266 static int attach_one_algo(struct xfrm_algo **algpp, u8 *props, in attach_one_algo() argument
281 *props = algo->desc.sadb_alg_id; in attach_one_algo()
292 static int attach_auth(struct xfrm_algo_auth **algpp, u8 *props, in attach_auth() argument
307 *props = algo->desc.sadb_alg_id; in attach_auth()
322 static int attach_auth_trunc(struct xfrm_algo_auth **algpp, u8 *props, in attach_auth_trunc() argument
338 *props = algo->desc.sadb_alg_id; in attach_auth_trunc()
352 static int attach_aead(struct xfrm_algo_aead **algpp, u8 *props, in attach_aead() argument
366 *props = algo->desc.sadb_alg_id; in attach_aead()
444 x->props.mode = p->mode; in copy_from_user_state()
445 x->props.replay_window = min_t(unsigned int, p->replay_window, in copy_from_user_state()
[all …]
Dxfrm_replay.c29 if (!(x->props.flags & XFRM_STATE_ESN)) in xfrm_replay_seqhi()
123 if (!x->props.replay_window) in xfrm_replay_check()
133 if (diff >= x->props.replay_window) { in xfrm_replay_check()
154 if (!x->props.replay_window) in xfrm_replay_advance()
159 if (diff < x->props.replay_window) in xfrm_replay_advance()
594 if (x->props.flags & XFRM_STATE_ESN) { in xfrm_init_replay()
Dxfrm_policy.c143 xfrm_address_t *saddr = &x->props.saddr; in xfrm_dst_lookup()
1694 if (xfrm[i]->props.mode != XFRM_MODE_TRANSPORT) { in xfrm_bundle_create()
1695 family = xfrm[i]->props.family; in xfrm_bundle_create()
1717 header_len += xfrm[i]->props.header_len; in xfrm_bundle_create()
1719 nfheader_len += xfrm[i]->props.header_len; in xfrm_bundle_create()
1720 trailer_len += xfrm[i]->props.trailer_len; in xfrm_bundle_create()
1743 header_len -= xdst->u.dst.xfrm->props.header_len; in xfrm_bundle_create()
1744 trailer_len -= xdst->u.dst.xfrm->props.trailer_len; in xfrm_bundle_create()
2312 dst->xfrm->props.mode == XFRM_MODE_TUNNEL) in xfrm_lookup()
2377 (x->props.reqid == tmpl->reqid || !tmpl->reqid) && in xfrm_state_ok()
[all …]
/linux-4.1.27/drivers/gpu/drm/amd/amdkfd/
Dkfd_topology.c176 struct kfd_mem_properties *props; in kfd_parse_subtype_mem() local
186 props = kfd_alloc_struct(props); in kfd_parse_subtype_mem()
187 if (props == NULL) in kfd_parse_subtype_mem()
191 props->heap_type = HSA_MEM_HEAP_TYPE_FB_PRIVATE; in kfd_parse_subtype_mem()
193 props->heap_type = HSA_MEM_HEAP_TYPE_SYSTEM; in kfd_parse_subtype_mem()
196 props->flags |= HSA_MEM_FLAGS_HOT_PLUGGABLE; in kfd_parse_subtype_mem()
198 props->flags |= HSA_MEM_FLAGS_NON_VOLATILE; in kfd_parse_subtype_mem()
200 props->size_in_bytes = in kfd_parse_subtype_mem()
203 props->width = mem->width; in kfd_parse_subtype_mem()
206 list_add_tail(&props->list, &dev->mem_props); in kfd_parse_subtype_mem()
[all …]
/linux-4.1.27/drivers/infiniband/hw/mlx4/
Dmain.c135 struct ib_device_attr *props) in mlx4_ib_query_device() argument
156 memset(props, 0, sizeof *props); in mlx4_ib_query_device()
160 props->fw_ver = dev->dev->caps.fw_ver; in mlx4_ib_query_device()
161 props->device_cap_flags = IB_DEVICE_CHANGE_PHY_PORT | in mlx4_ib_query_device()
167 props->device_cap_flags |= IB_DEVICE_BAD_PKEY_CNTR; in mlx4_ib_query_device()
169 props->device_cap_flags |= IB_DEVICE_BAD_QKEY_CNTR; in mlx4_ib_query_device()
171 props->device_cap_flags |= IB_DEVICE_AUTO_PATH_MIG; in mlx4_ib_query_device()
173 props->device_cap_flags |= IB_DEVICE_UD_AV_PORT_ENFORCE; in mlx4_ib_query_device()
175 props->device_cap_flags |= IB_DEVICE_UD_IP_CSUM; in mlx4_ib_query_device()
179 props->device_cap_flags |= IB_DEVICE_UD_TSO; in mlx4_ib_query_device()
[all …]
/linux-4.1.27/drivers/platform/x86/
Dsamsung-q10.c40 for (i = 0; i < bd->props.brightness; i++) { in samsungq10_bl_set_intensity()
56 struct backlight_properties props; in samsungq10_probe() local
59 memset(&props, 0, sizeof(struct backlight_properties)); in samsungq10_probe()
60 props.type = BACKLIGHT_PLATFORM; in samsungq10_probe()
61 props.max_brightness = SAMSUNGQ10_BL_MAX_INTENSITY; in samsungq10_probe()
63 &samsungq10_bl_ops, &props); in samsungq10_probe()
Dintel_oaktrail.c229 u8 percent = (u8) b->props.brightness; in set_backlight_brightness()
247 struct backlight_properties props; in oaktrail_backlight_init() local
249 memset(&props, 0, sizeof(struct backlight_properties)); in oaktrail_backlight_init()
250 props.type = BACKLIGHT_PLATFORM; in oaktrail_backlight_init()
251 props.max_brightness = OT_EC_BL_BRIGHTNESS_MAX; in oaktrail_backlight_init()
255 &props); in oaktrail_backlight_init()
265 bd->props.brightness = get_backlight_brightness(bd); in oaktrail_backlight_init()
266 bd->props.power = FB_BLANK_UNBLANK; in oaktrail_backlight_init()
Dmsi-wmi.c170 int bright = bd->props.brightness; in bl_set_status()
242 struct backlight_properties props; in msi_wmi_backlight_setup() local
244 memset(&props, 0, sizeof(struct backlight_properties)); in msi_wmi_backlight_setup()
245 props.type = BACKLIGHT_PLATFORM; in msi_wmi_backlight_setup()
246 props.max_brightness = ARRAY_SIZE(backlight_map) - 1; in msi_wmi_backlight_setup()
249 &props); in msi_wmi_backlight_setup()
259 backlight->props.brightness = err; in msi_wmi_backlight_setup()
Dapple-gmux.c260 u32 brightness = bd->props.brightness; in gmux_update_status()
262 if (bd->props.state & BL_CORE_SUSPENDED) in gmux_update_status()
441 struct backlight_properties props; in gmux_probe() local
523 memset(&props, 0, sizeof(props)); in gmux_probe()
524 props.type = BACKLIGHT_PLATFORM; in gmux_probe()
525 props.max_brightness = gmux_read32(gmux_data, GMUX_PORT_MAX_BRIGHTNESS); in gmux_probe()
533 if (WARN_ON(props.max_brightness > GMUX_MAX_BRIGHTNESS)) in gmux_probe()
534 props.max_brightness = GMUX_MAX_BRIGHTNESS; in gmux_probe()
537 gmux_data, &gmux_bl_ops, &props); in gmux_probe()
544 bdev->props.brightness = gmux_get_brightness(bdev); in gmux_probe()
Dpanasonic-laptop.c336 int bright = bd->props.brightness; in bl_set_status()
569 struct backlight_properties props; in acpi_pcc_hotkey_add() local
617 memset(&props, 0, sizeof(struct backlight_properties)); in acpi_pcc_hotkey_add()
618 props.type = BACKLIGHT_PLATFORM; in acpi_pcc_hotkey_add()
619 props.max_brightness = pcc->sinf[SINF_AC_MAX_BRIGHT]; in acpi_pcc_hotkey_add()
621 &pcc_backlight_ops, &props); in acpi_pcc_hotkey_add()
628 pcc->backlight->props.brightness = pcc->sinf[SINF_AC_CUR_BRIGHT]; in acpi_pcc_hotkey_add()
Dideapad-laptop.c683 blightdev->props.brightness)) in ideapad_backlight_update_status()
686 blightdev->props.power == FB_BLANK_POWERDOWN ? 0 : 1)) in ideapad_backlight_update_status()
700 struct backlight_properties props; in ideapad_backlight_init() local
710 memset(&props, 0, sizeof(struct backlight_properties)); in ideapad_backlight_init()
711 props.max_brightness = max; in ideapad_backlight_init()
712 props.type = BACKLIGHT_PLATFORM; in ideapad_backlight_init()
717 &props); in ideapad_backlight_init()
724 blightdev->props.brightness = now; in ideapad_backlight_init()
725 blightdev->props.power = power ? FB_BLANK_UNBLANK : FB_BLANK_POWERDOWN; in ideapad_backlight_init()
746 blightdev->props.power = power ? FB_BLANK_UNBLANK : FB_BLANK_POWERDOWN; in ideapad_backlight_notify_power()
Dasus-wmi.c1200 if ((asus->driver->brightness < bd->props.brightness) || in get_scalar_command()
1201 bd->props.brightness == bd->props.max_brightness) in get_scalar_command()
1203 else if ((asus->driver->brightness > bd->props.brightness) || in get_scalar_command()
1204 bd->props.brightness == 0) in get_scalar_command()
1207 asus->driver->brightness = bd->props.brightness; in get_scalar_command()
1219 if (power != -ENODEV && bd->props.power != power) { in update_bl_status()
1220 ctrl_param = !!(bd->props.power == FB_BLANK_UNBLANK); in update_bl_status()
1224 asus->driver->panel_power = bd->props.power; in update_bl_status()
1235 ctrl_param = bd->props.brightness; in update_bl_status()
1251 int old = bd->props.brightness; in asus_wmi_backlight_notify()
[all …]
Dcompal-laptop.c334 int ret = set_backlight_level(b->props.brightness); in bl_update_status()
338 set_backlight_state((b->props.power == FB_BLANK_UNBLANK) in bl_update_status()
339 && !(b->props.state & BL_CORE_SUSPENDED) in bl_update_status()
340 && !(b->props.state & BL_CORE_FBBLANK)); in bl_update_status()
963 struct backlight_properties props; in compal_init() local
964 memset(&props, 0, sizeof(struct backlight_properties)); in compal_init()
965 props.type = BACKLIGHT_PLATFORM; in compal_init()
966 props.max_brightness = BACKLIGHT_LEVEL_MAX; in compal_init()
970 &props); in compal_init()
Dfujitsu-laptop.c402 if (b->props.power == FB_BLANK_POWERDOWN) in bl_update_status()
412 ret = set_lcd_level_alt(b->props.brightness); in bl_update_status()
414 ret = set_lcd_level(b->props.brightness); in bl_update_status()
1103 struct backlight_properties props; in fujitsu_init() local
1105 memset(&props, 0, sizeof(struct backlight_properties)); in fujitsu_init()
1107 props.type = BACKLIGHT_PLATFORM; in fujitsu_init()
1108 props.max_brightness = max_brightness - 1; in fujitsu_init()
1112 &props); in fujitsu_init()
1118 fujitsu->bl_device->props.brightness = fujitsu->brightness_level; in fujitsu_init()
1143 fujitsu->bl_device->props.power = FB_BLANK_POWERDOWN; in fujitsu_init()
[all …]
Deeepc-laptop.c1133 return set_brightness(bd, bd->props.brightness); in update_bl_status()
1144 int old = bd->props.brightness; in eeepc_backlight_notify()
1153 struct backlight_properties props; in eeepc_backlight_init() local
1156 memset(&props, 0, sizeof(struct backlight_properties)); in eeepc_backlight_init()
1157 props.type = BACKLIGHT_PLATFORM; in eeepc_backlight_init()
1158 props.max_brightness = 15; in eeepc_backlight_init()
1161 &eeepcbl_ops, &props); in eeepc_backlight_init()
1168 bd->props.brightness = read_brightness(bd); in eeepc_backlight_init()
1169 bd->props.power = FB_BLANK_UNBLANK; in eeepc_backlight_init()
Dmsi-laptop.c307 return set_lcd_level(b->props.brightness); in bl_update_status()
1075 struct backlight_properties props; in msi_init() local
1076 memset(&props, 0, sizeof(struct backlight_properties)); in msi_init()
1077 props.type = BACKLIGHT_PLATFORM; in msi_init()
1078 props.max_brightness = MSI_LCD_LEVEL_MAX - 1; in msi_init()
1081 &props); in msi_init()
Dacer-wmi.c1403 int intensity = bd->props.brightness; in update_bl_status()
1405 if (bd->props.power != FB_BLANK_UNBLANK) in update_bl_status()
1407 if (bd->props.fb_blank != FB_BLANK_UNBLANK) in update_bl_status()
1422 struct backlight_properties props; in acer_backlight_init() local
1425 memset(&props, 0, sizeof(struct backlight_properties)); in acer_backlight_init()
1426 props.type = BACKLIGHT_PLATFORM; in acer_backlight_init()
1427 props.max_brightness = max_brightness; in acer_backlight_init()
1429 &props); in acer_backlight_init()
1438 bd->props.power = FB_BLANK_UNBLANK; in acer_backlight_init()
1439 bd->props.brightness = read_brightness(bd); in acer_backlight_init()
Dsamsung-laptop.c569 set_brightness(samsung, bd->props.brightness); in update_status()
571 if (bd->props.power == FB_BLANK_UNBLANK) in update_status()
1190 struct backlight_properties props; in samsung_backlight_init() local
1195 memset(&props, 0, sizeof(struct backlight_properties)); in samsung_backlight_init()
1196 props.type = BACKLIGHT_PLATFORM; in samsung_backlight_init()
1197 props.max_brightness = samsung->config->max_brightness - in samsung_backlight_init()
1203 &props); in samsung_backlight_init()
1208 samsung->backlight_device->props.brightness = read_brightness(samsung); in samsung_backlight_init()
1209 samsung->backlight_device->props.power = FB_BLANK_UNBLANK; in samsung_backlight_init()
Ddell-laptop.c766 buffer->input[1] = bd->props.brightness; in dell_send_intensity()
1938 struct backlight_properties props; in dell_init() local
1939 memset(&props, 0, sizeof(struct backlight_properties)); in dell_init()
1940 props.type = BACKLIGHT_PLATFORM; in dell_init()
1941 props.max_brightness = max_intensity; in dell_init()
1946 &props); in dell_init()
1954 dell_backlight_device->props.brightness = in dell_init()
Dclassmate-laptop.c855 status = cmpc_set_brightness(handle, bd->props.brightness); in cmpc_bl_update_status()
962 struct backlight_properties props; in cmpc_ipml_add() local
968 memset(&props, 0, sizeof(struct backlight_properties)); in cmpc_ipml_add()
969 props.type = BACKLIGHT_PLATFORM; in cmpc_ipml_add()
970 props.max_brightness = 7; in cmpc_ipml_add()
973 &props); in cmpc_ipml_add()
Dasus-laptop.c795 int value = bd->props.brightness; in update_bl_status()
808 int old = bd->props.brightness; in asus_backlight_notify()
818 struct backlight_properties props; in asus_backlight_init() local
824 memset(&props, 0, sizeof(struct backlight_properties)); in asus_backlight_init()
825 props.max_brightness = 15; in asus_backlight_init()
826 props.type = BACKLIGHT_PLATFORM; in asus_backlight_init()
830 &asusbl_ops, &props); in asus_backlight_init()
838 bd->props.brightness = asus_read_brightness(bd); in asus_backlight_init()
839 bd->props.power = FB_BLANK_UNBLANK; in asus_backlight_init()
Dsony-laptop.c1039 int arg = bd->props.brightness + 1; in sony_backlight_update_status()
1070 value = bd->props.brightness + sdev->offset; in sony_nc_update_status_ng()
3027 struct sony_backlight_props *props) in sony_nc_backlight_ng_read_limits() argument
3035 props->handle = handle; in sony_nc_backlight_ng_read_limits()
3036 props->offset = 0; in sony_nc_backlight_ng_read_limits()
3037 props->maxlvl = 0xff; in sony_nc_backlight_ng_read_limits()
3077 props->offset = min; in sony_nc_backlight_ng_read_limits()
3078 props->maxlvl = max; in sony_nc_backlight_ng_read_limits()
3079 dprintk("Brightness levels: min=%d max=%d\n", props->offset, in sony_nc_backlight_ng_read_limits()
3080 props->maxlvl); in sony_nc_backlight_ng_read_limits()
[all …]
Dtoshiba_acpi.c1367 levels = dev->backlight_dev->props.max_brightness + 1; in lcd_proc_show()
1407 return set_lcd_brightness(dev, bd->props.brightness); in set_lcd_status()
1418 int levels = dev->backlight_dev->props.max_brightness + 1; in lcd_proc_write()
2611 struct backlight_properties props; in toshiba_acpi_setup_backlight() local
2649 memset(&props, 0, sizeof(props)); in toshiba_acpi_setup_backlight()
2650 props.type = BACKLIGHT_PLATFORM; in toshiba_acpi_setup_backlight()
2651 props.max_brightness = HCI_LCD_BRIGHTNESS_LEVELS - 1; in toshiba_acpi_setup_backlight()
2655 props.max_brightness++; in toshiba_acpi_setup_backlight()
2661 &props); in toshiba_acpi_setup_backlight()
2669 dev->backlight_dev->props.brightness = brightness; in toshiba_acpi_setup_backlight()
/linux-4.1.27/drivers/power/
Dz2_battery.c132 static int z2_batt_ps_init(struct z2_charger *charger, int props) in z2_batt_ps_init() argument
139 props++; /* POWER_SUPPLY_PROP_STATUS */ in z2_batt_ps_init()
141 props++; /* POWER_SUPPLY_PROP_TECHNOLOGY */ in z2_batt_ps_init()
143 props++; /* POWER_SUPPLY_PROP_VOLTAGE_NOW */ in z2_batt_ps_init()
145 props++; /* POWER_SUPPLY_PROP_VOLTAGE_MAX */ in z2_batt_ps_init()
147 props++; /* POWER_SUPPLY_PROP_VOLTAGE_MIN */ in z2_batt_ps_init()
149 prop = kzalloc(props * sizeof(*prop), GFP_KERNEL); in z2_batt_ps_init()
175 charger->batt_ps_desc.num_properties = props; in z2_batt_ps_init()
189 int props = 1; /* POWER_SUPPLY_PROP_PRESENT */ in z2_batt_probe() local
231 ret = z2_batt_ps_init(charger, props); in z2_batt_probe()
Dwm97xx_battery.c169 int props = 1; /* POWER_SUPPLY_PROP_PRESENT */ in wm97xx_bat_probe() local
201 props++; /* POWER_SUPPLY_PROP_STATUS */ in wm97xx_bat_probe()
205 props++; /* POWER_SUPPLY_PROP_TECHNOLOGY */ in wm97xx_bat_probe()
207 props++; /* POWER_SUPPLY_PROP_TEMP */ in wm97xx_bat_probe()
209 props++; /* POWER_SUPPLY_PROP_VOLTAGE_NOW */ in wm97xx_bat_probe()
211 props++; /* POWER_SUPPLY_PROP_VOLTAGE_MAX */ in wm97xx_bat_probe()
213 props++; /* POWER_SUPPLY_PROP_VOLTAGE_MIN */ in wm97xx_bat_probe()
215 prop = kzalloc(props * sizeof(*prop), GFP_KERNEL); in wm97xx_bat_probe()
246 bat_psy_desc.num_properties = props; in wm97xx_bat_probe()
/linux-4.1.27/drivers/infiniband/hw/ipath/
Dipath_verbs.c1499 struct ib_device_attr *props) in ipath_query_device() argument
1503 memset(props, 0, sizeof(*props)); in ipath_query_device()
1505 props->device_cap_flags = IB_DEVICE_BAD_PKEY_CNTR | in ipath_query_device()
1509 props->page_size_cap = PAGE_SIZE; in ipath_query_device()
1510 props->vendor_id = in ipath_query_device()
1512 props->vendor_part_id = dev->dd->ipath_deviceid; in ipath_query_device()
1513 props->hw_ver = dev->dd->ipath_pcirev; in ipath_query_device()
1515 props->sys_image_guid = dev->sys_image_guid; in ipath_query_device()
1517 props->max_mr_size = ~0ull; in ipath_query_device()
1518 props->max_qp = ib_ipath_max_qps; in ipath_query_device()
[all …]
/linux-4.1.27/drivers/infiniband/hw/qib/
Dqib_verbs.c1555 struct ib_device_attr *props) in qib_query_device() argument
1560 memset(props, 0, sizeof(*props)); in qib_query_device()
1562 props->device_cap_flags = IB_DEVICE_BAD_PKEY_CNTR | in qib_query_device()
1566 props->page_size_cap = PAGE_SIZE; in qib_query_device()
1567 props->vendor_id = in qib_query_device()
1569 props->vendor_part_id = dd->deviceid; in qib_query_device()
1570 props->hw_ver = dd->minrev; in qib_query_device()
1571 props->sys_image_guid = ib_qib_sys_image_guid; in qib_query_device()
1572 props->max_mr_size = ~0ULL; in qib_query_device()
1573 props->max_qp = ib_qib_max_qps; in qib_query_device()
[all …]
/linux-4.1.27/drivers/gpu/drm/gma500/
Dbacklight.c43 dev_priv->backlight_device->props.brightness = dev_priv->backlight_level; in gma_backlight_enable()
55 dev_priv->backlight_device->props.brightness = 0; in gma_backlight_disable()
67 dev_priv->backlight_device->props.brightness = v; in gma_backlight_set()
89 dev_priv->backlight_device->props.brightness = 0; in gma_backlight_exit()
Dpsb_device.c107 int level = bd->props.brightness; in psb_set_brightness()
127 struct backlight_properties props; in psb_backlight_init() local
129 memset(&props, 0, sizeof(struct backlight_properties)); in psb_backlight_init()
130 props.max_brightness = 100; in psb_backlight_init()
131 props.type = BACKLIGHT_PLATFORM; in psb_backlight_init()
134 NULL, (void *)dev, &psb_ops, &props); in psb_backlight_init()
144 psb_backlight_device->props.brightness = 100; in psb_backlight_init()
145 psb_backlight_device->props.max_brightness = 100; in psb_backlight_init()
Dmdfld_device.c55 int level = bd->props.brightness; in mdfld_set_brightness()
126 struct backlight_properties props; in mdfld_backlight_init() local
129 memset(&props, 0, sizeof(struct backlight_properties)); in mdfld_backlight_init()
130 props.max_brightness = BRIGHTNESS_MAX_LEVEL; in mdfld_backlight_init()
131 props.type = BACKLIGHT_PLATFORM; in mdfld_backlight_init()
133 NULL, (void *)dev, &mdfld_ops, &props); in mdfld_backlight_init()
142 mdfld_backlight_device->props.brightness = BRIGHTNESS_MAX_LEVEL; in mdfld_backlight_init()
143 mdfld_backlight_device->props.max_brightness = BRIGHTNESS_MAX_LEVEL; in mdfld_backlight_init()
Doaktrail_device.c68 int level = bd->props.brightness; in oaktrail_set_brightness()
151 struct backlight_properties props; in oaktrail_backlight_init() local
153 memset(&props, 0, sizeof(struct backlight_properties)); in oaktrail_backlight_init()
154 props.max_brightness = 100; in oaktrail_backlight_init()
155 props.type = BACKLIGHT_PLATFORM; in oaktrail_backlight_init()
158 NULL, (void *)dev, &oaktrail_ops, &props); in oaktrail_backlight_init()
168 oaktrail_backlight_device->props.brightness = 100; in oaktrail_backlight_init()
169 oaktrail_backlight_device->props.max_brightness = 100; in oaktrail_backlight_init()
Dcdv_device.c125 int level = bd->props.brightness; in cdv_set_brightness()
159 struct backlight_properties props; in cdv_backlight_init() local
161 memset(&props, 0, sizeof(struct backlight_properties)); in cdv_backlight_init()
162 props.max_brightness = 100; in cdv_backlight_init()
163 props.type = BACKLIGHT_PLATFORM; in cdv_backlight_init()
166 NULL, (void *)dev, &cdv_ops, &props); in cdv_backlight_init()
170 cdv_backlight_device->props.brightness = in cdv_backlight_init()
Dopregion.c167 int max = bd->props.max_brightness; in asle_set_backlight()
/linux-4.1.27/drivers/infiniband/hw/cxgb3/
Diwch_provider.c1149 struct ib_device_attr *props) in iwch_query_device() argument
1156 memset(props, 0, sizeof *props); in iwch_query_device()
1157 memcpy(&props->sys_image_guid, dev->rdev.t3cdev_p->lldev->dev_addr, 6); in iwch_query_device()
1158 props->hw_ver = dev->rdev.t3cdev_p->type; in iwch_query_device()
1159 props->fw_ver = fw_vers_string_to_u64(dev); in iwch_query_device()
1160 props->device_cap_flags = dev->device_cap_flags; in iwch_query_device()
1161 props->page_size_cap = dev->attr.mem_pgsizes_bitmask; in iwch_query_device()
1162 props->vendor_id = (u32)dev->rdev.rnic_info.pdev->vendor; in iwch_query_device()
1163 props->vendor_part_id = (u32)dev->rdev.rnic_info.pdev->device; in iwch_query_device()
1164 props->max_mr_size = dev->attr.max_mr_size; in iwch_query_device()
[all …]
/linux-4.1.27/drivers/gpu/drm/atmel-hlcdc/
Datmel_hlcdc_plane.c769 struct atmel_hlcdc_plane_properties *props = plane->properties; in atmel_hlcdc_plane_atomic_set_property() local
773 if (property == props->alpha) in atmel_hlcdc_plane_atomic_set_property()
787 struct atmel_hlcdc_plane_properties *props = plane->properties; in atmel_hlcdc_plane_atomic_get_property() local
791 if (property == props->alpha) in atmel_hlcdc_plane_atomic_get_property()
801 struct atmel_hlcdc_plane_properties *props) in atmel_hlcdc_plane_init_properties() argument
808 props->alpha, 255); in atmel_hlcdc_plane_init_properties()
918 struct atmel_hlcdc_plane_properties *props) in atmel_hlcdc_plane_create() argument
950 atmel_hlcdc_plane_init_properties(plane, desc, props); in atmel_hlcdc_plane_create()
958 struct atmel_hlcdc_plane_properties *props; in atmel_hlcdc_plane_create_properties() local
960 props = devm_kzalloc(dev->dev, sizeof(*props), GFP_KERNEL); in atmel_hlcdc_plane_create_properties()
[all …]
/linux-4.1.27/drivers/usb/misc/
Dappledisplay.c150 pdata->msgdata[1] = bd->props.brightness; in appledisplay_bl_update_status()
203 pdata->bd->props.brightness = retval; in appledisplay_work()
213 struct backlight_properties props; in appledisplay_probe() local
292 memset(&props, 0, sizeof(struct backlight_properties)); in appledisplay_probe()
293 props.type = BACKLIGHT_RAW; in appledisplay_probe()
294 props.max_brightness = 0xff; in appledisplay_probe()
296 &appledisplay_bl_data, &props); in appledisplay_probe()
314 pdata->bd->props.brightness = brightness; in appledisplay_probe()
/linux-4.1.27/net/tipc/
Dbearer.c787 struct nlattr *props[TIPC_NLA_PROP_MAX + 1]; in tipc_nl_bearer_enable() local
790 props); in tipc_nl_bearer_enable()
794 if (props[TIPC_NLA_PROP_PRIO]) in tipc_nl_bearer_enable()
795 prio = nla_get_u32(props[TIPC_NLA_PROP_PRIO]); in tipc_nl_bearer_enable()
838 struct nlattr *props[TIPC_NLA_PROP_MAX + 1]; in tipc_nl_bearer_set() local
841 props); in tipc_nl_bearer_set()
847 if (props[TIPC_NLA_PROP_TOL]) in tipc_nl_bearer_set()
848 b->tolerance = nla_get_u32(props[TIPC_NLA_PROP_TOL]); in tipc_nl_bearer_set()
849 if (props[TIPC_NLA_PROP_PRIO]) in tipc_nl_bearer_set()
850 b->priority = nla_get_u32(props[TIPC_NLA_PROP_PRIO]); in tipc_nl_bearer_set()
[all …]
Dlink.c1835 int tipc_nl_parse_link_prop(struct nlattr *prop, struct nlattr *props[]) in tipc_nl_parse_link_prop() argument
1839 err = nla_parse_nested(props, TIPC_NLA_PROP_MAX, prop, in tipc_nl_parse_link_prop()
1844 if (props[TIPC_NLA_PROP_PRIO]) { in tipc_nl_parse_link_prop()
1847 prio = nla_get_u32(props[TIPC_NLA_PROP_PRIO]); in tipc_nl_parse_link_prop()
1852 if (props[TIPC_NLA_PROP_TOL]) { in tipc_nl_parse_link_prop()
1855 tol = nla_get_u32(props[TIPC_NLA_PROP_TOL]); in tipc_nl_parse_link_prop()
1860 if (props[TIPC_NLA_PROP_WIN]) { in tipc_nl_parse_link_prop()
1863 win = nla_get_u32(props[TIPC_NLA_PROP_WIN]); in tipc_nl_parse_link_prop()
1909 struct nlattr *props[TIPC_NLA_PROP_MAX + 1]; in tipc_nl_link_set() local
1912 props); in tipc_nl_link_set()
[all …]
Dlink.h247 int tipc_nl_parse_link_prop(struct nlattr *prop, struct nlattr *props[]);
/linux-4.1.27/drivers/video/fbdev/omap2/displays-new/
Dpanel-sony-acx565akm.c355 if (dev->props.fb_blank == FB_BLANK_UNBLANK && in acx565akm_bl_update_status()
356 dev->props.power == FB_BLANK_UNBLANK) in acx565akm_bl_update_status()
357 level = dev->props.brightness; in acx565akm_bl_update_status()
378 if (dev->props.fb_blank == FB_BLANK_UNBLANK && in acx565akm_bl_get_intensity()
379 dev->props.power == FB_BLANK_UNBLANK) { in acx565akm_bl_get_intensity()
383 return dev->props.brightness; in acx565akm_bl_get_intensity()
755 struct backlight_properties props; in acx565akm_probe() local
813 memset(&props, 0, sizeof(props)); in acx565akm_probe()
814 props.fb_blank = FB_BLANK_UNBLANK; in acx565akm_probe()
815 props.power = FB_BLANK_UNBLANK; in acx565akm_probe()
[all …]
Dpanel-dsi-cm.c342 if (dev->props.fb_blank == FB_BLANK_UNBLANK && in dsicm_bl_update_status()
343 dev->props.power == FB_BLANK_UNBLANK) in dsicm_bl_update_status()
344 level = dev->props.brightness; in dsicm_bl_update_status()
371 if (dev->props.fb_blank == FB_BLANK_UNBLANK && in dsicm_bl_get_intensity()
372 dev->props.power == FB_BLANK_UNBLANK) in dsicm_bl_get_intensity()
373 return dev->props.brightness; in dsicm_bl_get_intensity()
1201 struct backlight_properties props; in dsicm_probe() local
1297 memset(&props, 0, sizeof(struct backlight_properties)); in dsicm_probe()
1298 props.max_brightness = 255; in dsicm_probe()
1300 props.type = BACKLIGHT_RAW; in dsicm_probe()
[all …]
/linux-4.1.27/drivers/misc/mei/
Ddebugfs.c64 me_cl->props.fixed_address, in mei_dbgfs_read_meclients()
65 &me_cl->props.protocol_name, in mei_dbgfs_read_meclients()
66 me_cl->props.max_number_of_connections, in mei_dbgfs_read_meclients()
67 me_cl->props.max_msg_length, in mei_dbgfs_read_meclients()
68 me_cl->props.single_recv_buf, in mei_dbgfs_read_meclients()
Dmain.c306 if (length > me_cl->props.max_msg_length) { in mei_write()
398 if (!me_cl || me_cl->props.fixed_address) { in mei_ioctl_connect_client()
405 cl->cl_uuid = me_cl->props.protocol_name; in mei_ioctl_connect_client()
410 me_cl->props.protocol_version); in mei_ioctl_connect_client()
412 me_cl->props.max_msg_length); in mei_ioctl_connect_client()
431 client->max_msg_length = me_cl->props.max_msg_length; in mei_ioctl_connect_client()
432 client->protocol_version = me_cl->props.protocol_version; in mei_ioctl_connect_client()
440 client->max_msg_length = me_cl->props.max_msg_length; in mei_ioctl_connect_client()
441 client->protocol_version = me_cl->props.protocol_version; in mei_ioctl_connect_client()
Dclient.c136 pn = &me_cl->props.protocol_name; in __mei_me_cl_by_uuid()
216 pn = &me_cl->props.protocol_name; in __mei_me_cl_by_uuid_id()
962 if (WARN_ON(me_cl->props.single_recv_buf == 0)) in mei_cl_flow_ctrl_creds()
996 if (me_cl->props.single_recv_buf) { in mei_cl_flow_ctrl_reduce()
1049 length = max_t(size_t, length, me_cl->props.max_msg_length); in mei_cl_read_start()
Damthif.c82 cl->cl_uuid = me_cl->props.protocol_name; in mei_amthif_host_init()
86 dev->iamthif_mtu = me_cl->props.max_msg_length; in mei_amthif_host_init()
Dnfc.c518 cl_info->cl_uuid = me_cl->props.protocol_name; in mei_nfc_host_init()
541 cl->cl_uuid = me_cl->props.protocol_name; in mei_nfc_host_init()
Dhbm.c337 me_cl->props = res->client_properties; in mei_hbm_me_cl_add()
487 if (WARN_ON(me_cl->props.single_recv_buf == 0)) { in mei_hbm_add_single_flow_creds()
Dwd.c78 cl->cl_uuid = me_cl->props.protocol_name; in mei_wd_host_init()
/linux-4.1.27/include/linux/
Dbacklight.h95 struct backlight_properties props; member
130 const struct backlight_properties *props);
134 const struct backlight_properties *props);
Dlcd.h67 struct lcd_properties props; member
/linux-4.1.27/drivers/gpu/drm/i915/
Dintel_panel.c685 panel->backlight.device->props.brightness = in intel_panel_set_backlight_acpi()
688 panel->backlight.device->props.max_brightness); in intel_panel_set_backlight_acpi()
767 panel->backlight.device->props.power = FB_BLANK_POWERDOWN; in intel_panel_disable_backlight()
977 panel->backlight.device->props.brightness = in intel_panel_enable_backlight()
980 panel->backlight.device->props.max_brightness); in intel_panel_enable_backlight()
986 panel->backlight.device->props.power = FB_BLANK_UNBLANK; in intel_panel_enable_backlight()
1000 bd->props.brightness, bd->props.max_brightness); in intel_backlight_device_update_status()
1001 intel_panel_set_backlight(connector, bd->props.brightness, in intel_backlight_device_update_status()
1002 bd->props.max_brightness); in intel_backlight_device_update_status()
1012 bool enable = bd->props.power == FB_BLANK_UNBLANK && in intel_backlight_device_update_status()
[all …]
/linux-4.1.27/drivers/infiniband/hw/ocrdma/
Docrdma_verbs.h39 int ocrdma_query_device(struct ib_device *, struct ib_device_attr *props);
40 int ocrdma_query_port(struct ib_device *, u8 port, struct ib_port_attr *props);
42 struct ib_port_modify *props);
Docrdma_verbs.c148 u8 port, struct ib_port_attr *props) in ocrdma_query_port() argument
163 props->phys_state = 5; in ocrdma_query_port()
166 props->phys_state = 3; in ocrdma_query_port()
168 props->max_mtu = IB_MTU_4096; in ocrdma_query_port()
169 props->active_mtu = iboe_get_mtu(netdev->mtu); in ocrdma_query_port()
170 props->lid = 0; in ocrdma_query_port()
171 props->lmc = 0; in ocrdma_query_port()
172 props->sm_lid = 0; in ocrdma_query_port()
173 props->sm_sl = 0; in ocrdma_query_port()
174 props->state = port_state; in ocrdma_query_port()
[all …]
/linux-4.1.27/drivers/staging/fbtft/
Dfb_watterott.c242 int brightness = bd->props.brightness; in backlight_chip_update_status()
246 __func__, bd->props.brightness, bd->props.power, in backlight_chip_update_status()
247 bd->props.fb_blank); in backlight_chip_update_status()
249 if (bd->props.power != FB_BLANK_UNBLANK) in backlight_chip_update_status()
252 if (bd->props.fb_blank != FB_BLANK_UNBLANK) in backlight_chip_update_status()
Dfb_ssd1351.c201 __func__, bd->props.power, bd->props.fb_blank); in update_onboard_backlight()
203 on = (bd->props.power == FB_BLANK_UNBLANK) in update_onboard_backlight()
204 && (bd->props.fb_blank == FB_BLANK_UNBLANK); in update_onboard_backlight()
Dfbtft-core.c250 bool polarity = !!(bd->props.state & BL_CORE_DRIVER1); in fbtft_backlight_update_status()
254 __func__, polarity, bd->props.power, bd->props.fb_blank); in fbtft_backlight_update_status()
256 if ((bd->props.power == FB_BLANK_UNBLANK) && (bd->props.fb_blank == FB_BLANK_UNBLANK)) in fbtft_backlight_update_status()
266 return bd->props.brightness; in fbtft_backlight_get_brightness()
276 par->info->bl_dev->props.power = FB_BLANK_POWERDOWN; in fbtft_unregister_backlight()
1007 fb_info->bl_dev->props.power = FB_BLANK_UNBLANK; in fbtft_register_framebuffer()
/linux-4.1.27/drivers/infiniband/hw/nes/
Dnes_verbs.c515 static int nes_query_device(struct ib_device *ibdev, struct ib_device_attr *props) in nes_query_device() argument
521 memset(props, 0, sizeof(*props)); in nes_query_device()
522 memcpy(&props->sys_image_guid, nesvnic->netdev->dev_addr, 6); in nes_query_device()
524 props->fw_ver = nesdev->nesadapter->firmware_version; in nes_query_device()
525 props->device_cap_flags = nesdev->nesadapter->device_cap_flags; in nes_query_device()
526 props->vendor_id = nesdev->nesadapter->vendor_id; in nes_query_device()
527 props->vendor_part_id = nesdev->nesadapter->vendor_part_id; in nes_query_device()
528 props->hw_ver = nesdev->nesadapter->hw_rev; in nes_query_device()
529 props->max_mr_size = 0x80000000; in nes_query_device()
530 props->max_qp = nesibdev->max_qp; in nes_query_device()
[all …]
/linux-4.1.27/drivers/video/fbdev/
Datmel_lcdfb.c196 int brightness = bl->props.brightness; in atmel_bl_update_status()
202 if (bl->props.fb_blank != sinfo->bl_power) in atmel_bl_update_status()
203 power = bl->props.fb_blank; in atmel_bl_update_status()
204 else if (bl->props.power != sinfo->bl_power) in atmel_bl_update_status()
205 power = bl->props.power; in atmel_bl_update_status()
219 bl->props.fb_blank = bl->props.power = sinfo->bl_power = power; in atmel_bl_update_status()
238 struct backlight_properties props; in init_backlight() local
246 memset(&props, 0, sizeof(struct backlight_properties)); in init_backlight()
247 props.type = BACKLIGHT_RAW; in init_backlight()
248 props.max_brightness = 0xff; in init_backlight()
[all …]
Dbfin-t350mcqb-fb.c424 struct backlight_properties props; in bfin_t350mcqb_probe() local
548 memset(&props, 0, sizeof(struct backlight_properties)); in bfin_t350mcqb_probe()
549 props.type = BACKLIGHT_RAW; in bfin_t350mcqb_probe()
550 props.max_brightness = 255; in bfin_t350mcqb_probe()
552 &bfin_lq043fb_bl_ops, &props); in bfin_t350mcqb_probe()
562 lcd_dev->props.max_contrast = 255, printk(KERN_INFO "Done.\n"); in bfin_t350mcqb_probe()
Dbf537-lq035.c691 struct backlight_properties props; in bfin_lq035_probe() local
787 memset(&props, 0, sizeof(props)); in bfin_lq035_probe()
788 props.type = BACKLIGHT_RAW; in bfin_lq035_probe()
789 props.max_brightness = MAX_BRIGHENESS; in bfin_lq035_probe()
791 &bfin_lq035fb_bl_ops, &props); in bfin_lq035_probe()
800 lcd_dev->props.max_contrast = 255, in bfin_lq035_probe()
Dbf54x-lq043fb.c503 struct backlight_properties props; in bfin_bf54x_probe() local
651 memset(&props, 0, sizeof(struct backlight_properties)); in bfin_bf54x_probe()
652 props.type = BACKLIGHT_RAW; in bfin_bf54x_probe()
653 props.max_brightness = 255; in bfin_bf54x_probe()
655 &bfin_lq043fb_bl_ops, &props); in bfin_bf54x_probe()
665 lcd_dev->props.max_contrast = 255, printk(KERN_INFO "Done.\n"); in bfin_bf54x_probe()
Dmx3fb.c289 int brightness = bl->props.brightness; in mx3fb_bl_update_status()
291 if (bl->props.power != FB_BLANK_UNBLANK) in mx3fb_bl_update_status()
293 if (bl->props.fb_blank != FB_BLANK_UNBLANK) in mx3fb_bl_update_status()
310 struct backlight_properties props; in mx3fb_init_backlight() local
316 memset(&props, 0, sizeof(struct backlight_properties)); in mx3fb_init_backlight()
317 props.max_brightness = 0xff; in mx3fb_init_backlight()
318 props.type = BACKLIGHT_RAW; in mx3fb_init_backlight()
322 &mx3fb_lcdc_bl_ops, &props); in mx3fb_init_backlight()
330 bl->props.power = FB_BLANK_UNBLANK; in mx3fb_init_backlight()
331 bl->props.fb_blank = FB_BLANK_UNBLANK; in mx3fb_init_backlight()
[all …]
Dsh_mobile_lcdcfb.c1188 ch->bl->props.power = FB_BLANK_UNBLANK; in sh_mobile_lcdc_start()
1221 ch->bl->props.power = FB_BLANK_POWERDOWN; in sh_mobile_lcdc_stop()
2281 int brightness = bdev->props.brightness; in sh_mobile_lcdc_update_bl()
2283 if (bdev->props.power != FB_BLANK_UNBLANK || in sh_mobile_lcdc_update_bl()
2284 bdev->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK)) in sh_mobile_lcdc_update_bl()
2324 bl->props.max_brightness = ch->cfg->bl_info.max_brightness; in sh_mobile_lcdc_bl_probe()
2325 bl->props.brightness = bl->props.max_brightness; in sh_mobile_lcdc_bl_probe()
/linux-4.1.27/drivers/gpu/drm/bridge/
Dps8622.c296 ps8622->bl->props.brightness); in ps8622_send_config()
342 int ret, brightness = bl->props.brightness; in ps8622_backlight_update()
344 if (bl->props.power != FB_BLANK_UNBLANK || in ps8622_backlight_update()
345 bl->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK)) in ps8622_backlight_update()
633 ps8622->bl->props.max_brightness = PS8622_MAX_BRIGHTNESS; in ps8622_probe()
634 ps8622->bl->props.brightness = PS8622_MAX_BRIGHTNESS; in ps8622_probe()
/linux-4.1.27/net/netfilter/
Dxt_policy.c46 return MATCH_ADDR(saddr, smask, &x->props.saddr) && in match_xfrm_state()
49 MATCH(mode, x->props.mode) && in match_xfrm_state()
51 MATCH(reqid, x->props.reqid); in match_xfrm_state()
/linux-4.1.27/lib/xz/
Dxz_dec_lzma2.c799 static bool lzma_props(struct xz_dec_lzma2 *s, uint8_t props) in lzma_props() argument
801 if (props > (4 * 5 + 4) * 9 + 8) in lzma_props()
805 while (props >= 9 * 5) { in lzma_props()
806 props -= 9 * 5; in lzma_props()
813 while (props >= 9) { in lzma_props()
814 props -= 9; in lzma_props()
818 s->lzma.lc = props; in lzma_props()
1132 XZ_EXTERN enum xz_ret xz_dec_lzma2_reset(struct xz_dec_lzma2 *s, uint8_t props) in xz_dec_lzma2_reset() argument
1135 if (props > 39) in xz_dec_lzma2_reset()
1138 s->dict.size = 2 + (props & 1); in xz_dec_lzma2_reset()
[all …]
Dxz_private.h119 uint8_t props);
/linux-4.1.27/net/key/
Daf_key.c742 sockaddr_size = pfkey_sockaddr_size(x->props.family); in __pfkey_xfrm_state2msg()
762 if (!xfrm_addr_equal(&x->sel.saddr, &x->props.saddr, x->props.family)) in __pfkey_xfrm_state2msg()
800 sa->sadb_sa_replay = x->props.replay_window; in __pfkey_xfrm_state2msg()
834 if (x->props.flags & XFRM_STATE_NOECN) in __pfkey_xfrm_state2msg()
836 if (x->props.flags & XFRM_STATE_DECAP_DSCP) in __pfkey_xfrm_state2msg()
838 if (x->props.flags & XFRM_STATE_NOPMTUDISC) in __pfkey_xfrm_state2msg()
889 pfkey_sockaddr_fill(&x->props.saddr, 0, in __pfkey_xfrm_state2msg()
891 x->props.family); in __pfkey_xfrm_state2msg()
908 x->props.family); in __pfkey_xfrm_state2msg()
912 if (!xfrm_addr_equal(&x->sel.saddr, &x->props.saddr, in __pfkey_xfrm_state2msg()
[all …]
/linux-4.1.27/drivers/video/fbdev/exynos/
Ds6e8ax0.c327 unsigned int gamma = lcd->bd->props.brightness; in s6e8ax0_gamma_cond()
709 int ret = 0, brightness = bd->props.brightness; in s6e8ax0_set_brightness()
713 brightness > bd->props.max_brightness) { in s6e8ax0_set_brightness()
805 lcd->bd->props.max_brightness = MAX_BRIGHTNESS; in s6e8ax0_probe()
806 lcd->bd->props.brightness = MAX_BRIGHTNESS; in s6e8ax0_probe()
/linux-4.1.27/drivers/gpu/drm/radeon/
Dradeon_legacy_encoders.c321 if (bd->props.brightness < 0) in radeon_legacy_lvds_level()
323 else if (bd->props.brightness > RADEON_MAX_BL_LEVEL) in radeon_legacy_lvds_level()
326 level = bd->props.brightness; in radeon_legacy_lvds_level()
370 struct backlight_properties props; in radeon_legacy_backlight_init() local
390 memset(&props, 0, sizeof(props)); in radeon_legacy_backlight_init()
391 props.max_brightness = RADEON_MAX_BL_LEVEL; in radeon_legacy_backlight_init()
392 props.type = BACKLIGHT_RAW; in radeon_legacy_backlight_init()
396 pdata, &radeon_backlight_ops, &props); in radeon_legacy_backlight_init()
439 bd->props.brightness = radeon_legacy_backlight_get_brightness(bd); in radeon_legacy_backlight_init()
440 bd->props.power = FB_BLANK_UNBLANK; in radeon_legacy_backlight_init()
Datombios_encoders.c143 if (bd->props.brightness < 0) in radeon_atom_bl_level()
145 else if (bd->props.brightness > RADEON_MAX_BL_LEVEL) in radeon_atom_bl_level()
148 level = bd->props.brightness; in radeon_atom_bl_level()
184 struct backlight_properties props; in radeon_atom_backlight_init() local
211 memset(&props, 0, sizeof(props)); in radeon_atom_backlight_init()
212 props.max_brightness = RADEON_MAX_BL_LEVEL; in radeon_atom_backlight_init()
213 props.type = BACKLIGHT_RAW; in radeon_atom_backlight_init()
217 pdata, &radeon_atom_backlight_ops, &props); in radeon_atom_backlight_init()
228 bd->props.brightness = radeon_atom_backlight_get_brightness(bd); in radeon_atom_backlight_init()
234 if (bd->props.brightness == 0) in radeon_atom_backlight_init()
[all …]
/linux-4.1.27/drivers/video/fbdev/riva/
Dfbdev.c306 if (bd->props.power != FB_BLANK_UNBLANK || in riva_bl_update_status()
307 bd->props.fb_blank != FB_BLANK_UNBLANK) in riva_bl_update_status()
310 level = bd->props.brightness; in riva_bl_update_status()
331 struct backlight_properties props; in riva_bl_init() local
347 memset(&props, 0, sizeof(struct backlight_properties)); in riva_bl_init()
348 props.type = BACKLIGHT_RAW; in riva_bl_init()
349 props.max_brightness = FB_BACKLIGHT_LEVELS - 1; in riva_bl_init()
351 &props); in riva_bl_init()
363 bd->props.brightness = bd->props.max_brightness; in riva_bl_init()
364 bd->props.power = FB_BLANK_UNBLANK; in riva_bl_init()
/linux-4.1.27/drivers/acpi/
Dvideo.c284 int request_level = bd->props.brightness + 2; in acpi_video_set_brightness()
402 device->backlight->props.brightness = state - 2; in acpi_video_device_lcd_set_level()
1690 struct backlight_properties props; in acpi_video_dev_register_backlight() local
1723 memset(&props, 0, sizeof(struct backlight_properties)); in acpi_video_dev_register_backlight()
1724 props.type = BACKLIGHT_FIRMWARE; in acpi_video_dev_register_backlight()
1725 props.max_brightness = device->brightness->count - 3; in acpi_video_dev_register_backlight()
1730 &props); in acpi_video_dev_register_backlight()
1739 device->backlight->props.brightness = in acpi_video_dev_register_backlight()
1941 if (backlight->props.type != BACKLIGHT_RAW) in acpi_video_backlight_notify()
/linux-4.1.27/include/net/
Dxfrm.h162 } props; member
462 if ((ipproto == IPPROTO_IPIP && x->props.family == AF_INET) || in xfrm_ip2inner_mode()
463 (ipproto == IPPROTO_IPV6 && x->props.family == AF_INET6)) in xfrm_ip2inner_mode()
1037 tmpl->saddr.a4 != x->props.saddr.a4); in __xfrm4_state_addr_cmp()
1044 !ipv6_addr_equal((struct in6_addr *)&tmpl->saddr, (struct in6_addr*)&x->props.saddr)); in __xfrm6_state_addr_cmp()
1252 (saddr->a4 == x->props.saddr.a4 || !saddr->a4 || !x->props.saddr.a4)) in __xfrm4_state_addr_check()
1262 (ipv6_addr_equal((struct in6_addr *)saddr, (struct in6_addr *)&x->props.saddr) || in __xfrm6_state_addr_check()
1264 ipv6_addr_any((struct in6_addr *)&x->props.saddr))) in __xfrm6_state_addr_check()
/linux-4.1.27/fs/btrfs/
DMakefile12 uuid-tree.o props.o hash.o
/linux-4.1.27/drivers/media/common/
Dcx2341x.c1351 u32 props; in cx2341x_s_ctrl() local
1379 props = (hdl->audio_sampling_freq->val << 0) | in cx2341x_s_ctrl()
1384 props |= 3 << 12; in cx2341x_s_ctrl()
1386 props |= hdl->audio_emphasis->val << 12; in cx2341x_s_ctrl()
1389 props |= in cx2341x_s_ctrl()
1398 props |= in cx2341x_s_ctrl()
1403 CX2341X_ENC_SET_AUDIO_PROPERTIES, 1, props); in cx2341x_s_ctrl()
1407 hdl->audio_properties = props; in cx2341x_s_ctrl()
/linux-4.1.27/drivers/media/dvb-frontends/
Drtl2832_sdr.c885 if (d->props->power_ctrl) in rtl2832_sdr_start_streaming()
886 d->props->power_ctrl(d, 1); in rtl2832_sdr_start_streaming()
889 if (d->props->frontend_ctrl) in rtl2832_sdr_start_streaming()
890 d->props->frontend_ctrl(pdata->dvb_frontend, 1); in rtl2832_sdr_start_streaming()
947 if (d->props->frontend_ctrl) in rtl2832_sdr_stop_streaming()
948 d->props->frontend_ctrl(pdata->dvb_frontend, 0); in rtl2832_sdr_stop_streaming()
950 if (d->props->power_ctrl) in rtl2832_sdr_stop_streaming()
951 d->props->power_ctrl(d, 0); in rtl2832_sdr_stop_streaming()
Ddrxk_hard.c1843 state->m_b_mirror_freq_spect = (state->props.inversion == INVERSION_ON); in start()
2461 switch (state->props.modulation) { in get_qam_signal_to_noise()
2694 switch (state->props.modulation) {
3782 switch (state->props.transmission_mode) { in set_dvbt()
3796 switch (state->props.guard_interval) { in set_dvbt()
3816 switch (state->props.hierarchy) { in set_dvbt()
3837 switch (state->props.modulation) { in set_dvbt()
3880 switch (state->props.code_rate_HP) { in set_dvbt()
3915 switch (state->props.bandwidth_hz) { in set_dvbt()
3917 state->props.bandwidth_hz = 8000000; in set_dvbt()
[all …]
Ddrxk_hard.h212 struct dtv_frontend_properties props; member
Dstb0899_drv.c1437 struct dtv_frontend_properties *props = &fe->dtv_property_cache; in stb0899_search() local
1441 i_params->freq = props->frequency; in stb0899_search()
1442 i_params->srate = props->symbol_rate; in stb0899_search()
1443 state->delsys = props->delivery_system; in stb0899_search()
/linux-4.1.27/drivers/infiniband/core/
Duser_mad.c1019 struct ib_port_modify props = { in ib_umad_sm_open() local
1038 ret = ib_modify_port(port->ib_dev, port->port_num, 0, &props); in ib_umad_sm_open()
1053 swap(props.set_port_cap_mask, props.clr_port_cap_mask); in ib_umad_sm_open()
1054 ib_modify_port(port->ib_dev, port->port_num, 0, &props); in ib_umad_sm_open()
1066 struct ib_port_modify props = { in ib_umad_sm_close() local
1073 ret = ib_modify_port(port->ib_dev, port->port_num, 0, &props); in ib_umad_sm_close()
/linux-4.1.27/drivers/scsi/
Dstorvsc_drv.c797 struct vmstorage_channel_properties props; in handle_sc_creation() local
806 memset(&props, 0, sizeof(struct vmstorage_channel_properties)); in handle_sc_creation()
811 (void *)&props, in handle_sc_creation()
1291 struct vmstorage_channel_properties props; in storvsc_connect_to_vsp() local
1294 memset(&props, 0, sizeof(struct vmstorage_channel_properties)); in storvsc_connect_to_vsp()
1299 (void *)&props, in storvsc_connect_to_vsp()
/linux-4.1.27/drivers/staging/olpc_dcon/
Dolpc_dcon.c522 u8 level = dev->props.brightness & 0x0F; in dcon_bl_update()
524 if (dev->props.power != FB_BLANK_UNBLANK) in dcon_bl_update()
532 dcon_sleep(dcon, !!(dev->props.state & BL_CORE_FBBLANK)); in dcon_bl_update()
/linux-4.1.27/drivers/video/fbdev/omap/
Dlcd_ams_delta.c188 lcd_device->props.max_contrast = AMS_DELTA_MAX_CONTRAST; in ams_delta_panel_probe()
/linux-4.1.27/drivers/gpu/drm/panel/
Dpanel-sharp-lq101r1sx01.c100 sharp->backlight->props.power = FB_BLANK_POWERDOWN; in sharp_panel_disable()
267 sharp->backlight->props.power = FB_BLANK_UNBLANK; in sharp_panel_enable()
/linux-4.1.27/arch/powerpc/kernel/
Dtraps.c99 struct backlight_properties *props; in pmac_backlight_unblank() local
101 props = &pmac_backlight->props; in pmac_backlight_unblank()
102 props->brightness = props->max_brightness; in pmac_backlight_unblank()
103 props->power = FB_BLANK_UNBLANK; in pmac_backlight_unblank()
/linux-4.1.27/Documentation/devicetree/bindings/clock/
Dzynq-7000.txt107 # optional props
/linux-4.1.27/include/uapi/linux/dvb/
Dfrontend.h552 struct dtv_property *props; member

12