Searched refs:props (Results 1 - 200 of 241) sorted by relevance

12

/linux-4.1.27/drivers/media/usb/dvb-usb-v2/
H A Dusb_urb.c16 struct usb_data_stream_properties *props);
91 struct usb_data_stream_properties *props) usb_urb_submitv2()
95 if (props) { usb_urb_submitv2()
96 ret = usb_urb_reconfig(stream, props); usb_urb_submitv2()
140 for (i = 0; i < stream->props.count; i++) { usb_urb_alloc_bulk_urbs()
152 stream->props.endpoint), usb_urb_alloc_bulk_urbs()
154 stream->props.u.bulk.buffersize, usb_urb_alloc_bulk_urbs()
169 for (i = 0; i < stream->props.count; i++) { usb_urb_alloc_isoc_urbs()
174 stream->props.u.isoc.framesperurb, GFP_ATOMIC); usb_urb_alloc_isoc_urbs()
188 stream->props.endpoint); usb_urb_alloc_isoc_urbs()
190 urb->interval = stream->props.u.isoc.interval; usb_urb_alloc_isoc_urbs()
191 urb->number_of_packets = stream->props.u.isoc.framesperurb; usb_urb_alloc_isoc_urbs()
192 urb->transfer_buffer_length = stream->props.u.isoc.framesize * usb_urb_alloc_isoc_urbs()
193 stream->props.u.isoc.framesperurb; usb_urb_alloc_isoc_urbs()
197 for (j = 0; j < stream->props.u.isoc.framesperurb; j++) { usb_urb_alloc_isoc_urbs()
200 stream->props.u.isoc.framesize; usb_urb_alloc_isoc_urbs()
201 frame_offset += stream->props.u.isoc.framesize; usb_urb_alloc_isoc_urbs()
260 struct usb_data_stream_properties *props) usb_urb_reconfig()
264 if (!props) usb_urb_reconfig()
268 if (props->type == USB_BULK) { usb_urb_reconfig()
269 buf_size = stream->props.u.bulk.buffersize; usb_urb_reconfig()
270 } else if (props->type == USB_ISOC) { usb_urb_reconfig()
271 buf_size = props->u.isoc.framesize * props->u.isoc.framesperurb; usb_urb_reconfig()
274 KBUILD_MODNAME, props->type); usb_urb_reconfig()
278 if (stream->buf_num < props->count || stream->buf_size < buf_size) { usb_urb_reconfig()
286 if (stream->props.type == props->type && usb_urb_reconfig()
287 stream->props.count == props->count && usb_urb_reconfig()
288 stream->props.endpoint == props->endpoint) { usb_urb_reconfig()
289 if (props->type == USB_BULK && usb_urb_reconfig()
290 props->u.bulk.buffersize == usb_urb_reconfig()
291 stream->props.u.bulk.buffersize) usb_urb_reconfig()
293 else if (props->type == USB_ISOC && usb_urb_reconfig()
294 props->u.isoc.framesperurb == usb_urb_reconfig()
295 stream->props.u.isoc.framesperurb && usb_urb_reconfig()
296 props->u.isoc.framesize == usb_urb_reconfig()
297 stream->props.u.isoc.framesize && usb_urb_reconfig()
298 props->u.isoc.interval == usb_urb_reconfig()
299 stream->props.u.isoc.interval) usb_urb_reconfig()
306 memcpy(&stream->props, props, sizeof(*props)); usb_urb_reconfig()
307 if (props->type == USB_BULK) usb_urb_reconfig()
309 else if (props->type == USB_ISOC) usb_urb_reconfig()
316 const struct usb_data_stream_properties *props) usb_urb_initv2()
320 if (!stream || !props) usb_urb_initv2()
323 memcpy(&stream->props, props, sizeof(*props)); usb_urb_initv2()
332 switch (stream->props.type) { usb_urb_initv2()
334 ret = usb_alloc_stream_buffers(stream, stream->props.count, usb_urb_initv2()
335 stream->props.u.bulk.buffersize); usb_urb_initv2()
341 ret = usb_alloc_stream_buffers(stream, stream->props.count, usb_urb_initv2()
342 stream->props.u.isoc.framesize * usb_urb_initv2()
343 stream->props.u.isoc.framesperurb); usb_urb_initv2()
90 usb_urb_submitv2(struct usb_data_stream *stream, struct usb_data_stream_properties *props) usb_urb_submitv2() argument
259 usb_urb_reconfig(struct usb_data_stream *stream, struct usb_data_stream_properties *props) usb_urb_reconfig() argument
315 usb_urb_initv2(struct usb_data_stream *stream, const struct usb_data_stream_properties *props) usb_urb_initv2() argument
H A Ddvb_usb_urb.c29 if (!wbuf || !wlen || !d->props->generic_bulk_ctrl_endpoint || dvb_usb_v2_generic_io()
30 !d->props->generic_bulk_ctrl_endpoint_response) { dvb_usb_v2_generic_io()
38 d->props->generic_bulk_ctrl_endpoint), wbuf, wlen, dvb_usb_v2_generic_io()
48 if (d->props->generic_bulk_ctrl_delay) dvb_usb_v2_generic_io()
49 usleep_range(d->props->generic_bulk_ctrl_delay, dvb_usb_v2_generic_io()
50 d->props->generic_bulk_ctrl_delay dvb_usb_v2_generic_io()
54 d->props->generic_bulk_ctrl_endpoint_response), dvb_usb_v2_generic_io()
H A Ddvb_usb_core.c41 if (!d->props->download_firmware) { dvb_usbv2_download_firmware()
57 ret = d->props->download_firmware(d, fw); dvb_usbv2_download_firmware()
73 if (!d->props->i2c_algo) dvb_usbv2_i2c_init()
77 d->i2c_adap.algo = d->props->i2c_algo; dvb_usbv2_i2c_init()
139 if (dvb_usbv2_disable_rc_polling || !d->props->get_rc_config) dvb_usbv2_remote_init()
143 ret = d->props->get_rc_config(d, &d->rc); dvb_usbv2_remote_init()
164 dev->driver_name = (char *) d->props->driver_name; dvb_usbv2_remote_init()
245 return usb_urb_initv2(&adap->stream, &adap->props->stream); dvb_usbv2_adapter_stream_init()
282 if (d->props->get_stream_config) { dvb_usb_start_feed()
283 memcpy(&stream_props, &adap->props->stream, dvb_usb_start_feed()
285 ret = d->props->get_stream_config(adap->fe[adap->active_fe], dvb_usb_start_feed()
292 stream_props = adap->props->stream; dvb_usb_start_feed()
312 if (adap->pid_filtering && adap->props->pid_filter_ctrl) { dvb_usb_start_feed()
313 ret = adap->props->pid_filter_ctrl(adap, 1); dvb_usb_start_feed()
321 if (d->props->streaming_ctrl) { dvb_usb_start_feed()
322 ret = d->props->streaming_ctrl(adap->fe[adap->active_fe], 1); dvb_usb_start_feed()
331 if (adap->pid_filtering && adap->props->pid_filter) { dvb_usb_start_feed()
332 ret = adap->props->pid_filter(adap, dvbdmxfeed->index, dvb_usb_start_feed()
359 if (adap->pid_filtering && adap->props->pid_filter) { dvb_usb_stop_feed()
360 ret = adap->props->pid_filter(adap, dvbdmxfeed->index, dvb_usb_stop_feed()
372 if (d->props->streaming_ctrl) { dvb_usb_stop_feed()
373 ret = d->props->streaming_ctrl(adap->fe[adap->active_fe], 0); dvb_usb_stop_feed()
381 if (adap->pid_filtering && adap->props->pid_filter_ctrl) { dvb_usb_stop_feed()
382 ret = adap->props->pid_filter_ctrl(adap, 0); dvb_usb_stop_feed()
460 ret = dvb_register_adapter(&adap->dvb_adap, d->name, d->props->owner, dvb_usbv2_adapter_dvb_init()
461 &d->udev->dev, d->props->adapter_nr); dvb_usbv2_adapter_dvb_init()
472 if (d->props->read_mac_address) { dvb_usbv2_adapter_dvb_init()
473 ret = d->props->read_mac_address(adap, dvb_usbv2_adapter_dvb_init()
556 if (d->props->power_ctrl) { dvb_usbv2_device_power_ctrl()
557 ret = d->props->power_ctrl(d, onoff); dvb_usbv2_device_power_ctrl()
586 if (d->props->frontend_ctrl) { dvb_usb_fe_init()
587 ret = d->props->frontend_ctrl(fe, 1); dvb_usb_fe_init()
628 if (d->props->frontend_ctrl) { dvb_usb_fe_sleep()
629 ret = d->props->frontend_ctrl(fe, 0); dvb_usb_fe_sleep()
658 if (d->props->frontend_attach) { dvb_usbv2_adapter_frontend_init()
659 ret = d->props->frontend_attach(adap); dvb_usbv2_adapter_frontend_init()
692 if (d->props->tuner_attach) { dvb_usbv2_adapter_frontend_init()
693 ret = d->props->tuner_attach(adap); dvb_usbv2_adapter_frontend_init()
736 if (d->props->tuner_detach) { dvb_usbv2_adapter_frontend_exit()
737 ret = d->props->tuner_detach(adap); dvb_usbv2_adapter_frontend_exit()
744 if (d->props->frontend_detach) { dvb_usbv2_adapter_frontend_exit()
745 ret = d->props->frontend_detach(adap); dvb_usbv2_adapter_frontend_exit()
762 adapter_count = d->props->num_adapters; dvb_usbv2_adapter_init()
763 if (d->props->get_adapter_count) { dvb_usbv2_adapter_init()
764 ret = d->props->get_adapter_count(d); dvb_usbv2_adapter_init()
774 adap->props = &d->props->adapter[i]; dvb_usbv2_adapter_init()
778 !(adap->props->caps & DVB_USB_ADAP_HAS_PID_FILTER)) { dvb_usbv2_adapter_init()
785 adap->props->caps & DVB_USB_ADAP_HAS_PID_FILTER) || dvb_usbv2_adapter_init()
786 (adap->props->caps & DVB_USB_ADAP_NEED_PID_FILTERING)) { dvb_usbv2_adapter_init()
790 adap->props->pid_filter_count); dvb_usbv2_adapter_init()
792 adap->max_feed_count = adap->props->pid_filter_count; dvb_usbv2_adapter_init()
802 adap->props->caps & DVB_USB_ADAP_HAS_PID_FILTER) { dvb_usbv2_adapter_init()
807 adap->max_feed_count = adap->props->pid_filter_count; dvb_usbv2_adapter_init()
839 if (d->adapter[i].props) { dvb_usbv2_adapter_exit()
870 if (d->props->read_config) { dvb_usbv2_init()
871 ret = d->props->read_config(d); dvb_usbv2_init()
884 if (d->props->init) { dvb_usbv2_init()
885 ret = d->props->init(d); dvb_usbv2_init()
932 d->props = driver_info->props; dvb_usbv2_probe()
935 d->props->bInterfaceNumber) { dvb_usbv2_probe()
943 if (d->props->size_of_priv) { dvb_usbv2_probe()
944 d->priv = kzalloc(d->props->size_of_priv, GFP_KERNEL); dvb_usbv2_probe()
953 if (d->props->identify_state) { dvb_usbv2_probe()
955 ret = d->props->identify_state(d, &name); dvb_usbv2_probe()
964 name = d->props->firmware; dvb_usbv2_probe()
1019 if (d->props->exit) dvb_usbv2_disconnect()
1020 d->props->exit(d); dvb_usbv2_disconnect()
1046 if (d->props->streaming_ctrl) dvb_usbv2_suspend()
1047 d->props->streaming_ctrl(fe, 0); dvb_usbv2_suspend()
1076 if (d->props->streaming_ctrl) dvb_usbv2_resume_common()
1077 d->props->streaming_ctrl(fe, 1); dvb_usbv2_resume_common()
1108 if (d->props->init) dvb_usbv2_reset_resume()
1109 d->props->init(d); dvb_usbv2_reset_resume()
H A Ddvb_usb_common.h29 const struct usb_data_stream_properties *props);
32 struct usb_data_stream_properties *props);
H A Ddvb_usb.h107 .props = (props_), \
120 * @props: structure containing all device properties
125 const struct dvb_usb_device_properties *props; member in struct:dvb_usb_driver_info
287 struct usb_data_stream_properties props; member in struct:usb_data_stream
309 * @props: pointer to adapter properties
327 const struct dvb_usb_adapter_properties *props; member in struct:dvb_usb_adapter
354 * @props: device properties
371 const struct dvb_usb_device_properties *props; member in struct:dvb_usb_device
H A Dec168.c351 .props = &ec168_props,
/linux-4.1.27/drivers/infiniband/hw/ehca/
H A Dehca_hca.c53 int ehca_query_device(struct ib_device *ibdev, struct ib_device_attr *props) ehca_query_device() argument
86 memset(props, 0, sizeof(struct ib_device_attr)); ehca_query_device()
87 props->page_size_cap = shca->hca_cap_mr_pgsize; ehca_query_device()
88 props->fw_ver = rblock->hw_ver; ehca_query_device()
89 props->max_mr_size = rblock->max_mr_size; ehca_query_device()
90 props->vendor_id = rblock->vendor_id >> 8; ehca_query_device()
91 props->vendor_part_id = rblock->vendor_part_id >> 16; ehca_query_device()
92 props->hw_ver = rblock->hw_ver; ehca_query_device()
93 props->max_qp = limit_uint(rblock->max_qp); ehca_query_device()
94 props->max_qp_wr = limit_uint(rblock->max_wqes_wq); ehca_query_device()
95 props->max_sge = limit_uint(rblock->max_sge); ehca_query_device()
96 props->max_sge_rd = limit_uint(rblock->max_sge_rd); ehca_query_device()
97 props->max_cq = limit_uint(rblock->max_cq); ehca_query_device()
98 props->max_cqe = limit_uint(rblock->max_cqe); ehca_query_device()
99 props->max_mr = limit_uint(rblock->max_mr); ehca_query_device()
100 props->max_mw = limit_uint(rblock->max_mw); ehca_query_device()
101 props->max_pd = limit_uint(rblock->max_pd); ehca_query_device()
102 props->max_ah = limit_uint(rblock->max_ah); ehca_query_device()
103 props->max_ee = limit_uint(rblock->max_rd_ee_context); ehca_query_device()
104 props->max_rdd = limit_uint(rblock->max_rd_domain); ehca_query_device()
105 props->max_fmr = limit_uint(rblock->max_mr); ehca_query_device()
106 props->max_qp_rd_atom = limit_uint(rblock->max_rr_qp); ehca_query_device()
107 props->max_ee_rd_atom = limit_uint(rblock->max_rr_ee_context); ehca_query_device()
108 props->max_res_rd_atom = limit_uint(rblock->max_rr_hca); ehca_query_device()
109 props->max_qp_init_rd_atom = limit_uint(rblock->max_act_wqs_qp); ehca_query_device()
110 props->max_ee_init_rd_atom = limit_uint(rblock->max_act_wqs_ee_context); ehca_query_device()
113 props->max_srq = limit_uint(props->max_qp); ehca_query_device()
114 props->max_srq_wr = limit_uint(props->max_qp_wr); ehca_query_device()
115 props->max_srq_sge = 3; ehca_query_device()
118 props->max_pkeys = 16; ehca_query_device()
120 props->local_ca_ack_delay = rblock->local_ca_ack_delay ? ehca_query_device()
122 props->max_raw_ipv6_qp = limit_uint(rblock->max_raw_ipv6_qp); ehca_query_device()
123 props->max_raw_ethy_qp = limit_uint(rblock->max_raw_ethy_qp); ehca_query_device()
124 props->max_mcast_grp = limit_uint(rblock->max_mcast_grp); ehca_query_device()
125 props->max_mcast_qp_attach = limit_uint(rblock->max_mcast_qp_attach); ehca_query_device()
126 props->max_total_mcast_qp_attach ehca_query_device()
130 props->device_cap_flags = IB_DEVICE_SYS_IMAGE_GUID | ehca_query_device()
134 props->device_cap_flags |= cap_mapping[i]; ehca_query_device()
183 u8 port, struct ib_port_attr *props) ehca_query_port()
204 memset(props, 0, sizeof(struct ib_port_attr)); ehca_query_port()
206 props->active_mtu = props->max_mtu = map_mtu(shca, rblock->max_mtu); ehca_query_port()
207 props->port_cap_flags = rblock->capability_mask; ehca_query_port()
208 props->gid_tbl_len = rblock->gid_tbl_len; ehca_query_port()
210 props->max_msg_sz = rblock->max_msg_sz; ehca_query_port()
212 props->max_msg_sz = 0x1 << 31; ehca_query_port()
213 props->bad_pkey_cntr = rblock->bad_pkey_cntr; ehca_query_port()
214 props->qkey_viol_cntr = rblock->qkey_viol_cntr; ehca_query_port()
215 props->pkey_tbl_len = rblock->pkey_tbl_len; ehca_query_port()
216 props->lid = rblock->lid; ehca_query_port()
217 props->sm_lid = rblock->sm_lid; ehca_query_port()
218 props->lmc = rblock->lmc; ehca_query_port()
219 props->sm_sl = rblock->sm_sl; ehca_query_port()
220 props->subnet_timeout = rblock->subnet_timeout; ehca_query_port()
221 props->init_type_reply = rblock->init_type_reply; ehca_query_port()
222 props->max_vl_num = map_number_of_vls(shca, rblock->vl_cap); ehca_query_port()
225 props->phys_state = rblock->phys_pstate; ehca_query_port()
226 props->state = rblock->phys_state; ehca_query_port()
227 props->active_width = rblock->phys_width; ehca_query_port()
228 props->active_speed = rblock->phys_speed; ehca_query_port()
233 props->phys_state = 5; ehca_query_port()
234 props->state = rblock->state; ehca_query_port()
235 props->active_width = IB_WIDTH_12X; ehca_query_port()
236 props->active_speed = IB_SPEED_SDR; ehca_query_port()
358 struct ib_port_modify *props) ehca_modify_port()
367 if ((props->set_port_cap_mask | props->clr_port_cap_mask) ehca_modify_port()
370 "set=%x clr=%x allowed=%x", props->set_port_cap_mask, ehca_modify_port()
371 props->clr_port_cap_mask, allowed_port_caps); ehca_modify_port()
392 cap = (rblock->capability_mask | props->set_port_cap_mask) ehca_modify_port()
393 & ~props->clr_port_cap_mask; ehca_modify_port()
396 cap, props->init_type, port_modify_mask); ehca_modify_port()
182 ehca_query_port(struct ib_device *ibdev, u8 port, struct ib_port_attr *props) ehca_query_port() argument
356 ehca_modify_port(struct ib_device *ibdev, u8 port, int port_modify_mask, struct ib_port_modify *props) ehca_modify_port() argument
H A 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/
H A Ddvb-usb-init.c34 for (n = 0; n < d->props.num_adapters; n++) { dvb_usb_adapter_init()
39 memcpy(&adap->props, &d->props.adapter[n], sizeof(struct dvb_usb_adapter_properties)); dvb_usb_adapter_init()
41 for (o = 0; o < adap->props.num_frontends; o++) { dvb_usb_adapter_init()
42 struct dvb_usb_adapter_fe_properties *props = &adap->props.fe[o]; dvb_usb_adapter_init() local
44 if (d->udev->speed == USB_SPEED_FULL && !(props->caps & DVB_USB_ADAP_HAS_PID_FILTER)) { dvb_usb_adapter_init()
49 if ((d->udev->speed == USB_SPEED_FULL && props->caps & DVB_USB_ADAP_HAS_PID_FILTER) || dvb_usb_adapter_init()
50 (props->caps & DVB_USB_ADAP_NEED_PID_FILTERING)) { dvb_usb_adapter_init()
51 info("will use the device's hardware PID filter (table count: %d).", props->pid_filter_count); dvb_usb_adapter_init()
53 adap->fe_adap[o].max_feed_count = props->pid_filter_count; dvb_usb_adapter_init()
62 props->caps & DVB_USB_ADAP_HAS_PID_FILTER) { dvb_usb_adapter_init()
65 adap->fe_adap[o].max_feed_count = props->pid_filter_count; dvb_usb_adapter_init()
68 if (props->size_of_priv > 0) { dvb_usb_adapter_init()
69 adap->fe_adap[o].priv = kzalloc(props->size_of_priv, GFP_KERNEL); dvb_usb_adapter_init()
77 if (adap->props.size_of_priv > 0) { dvb_usb_adapter_init()
78 adap->priv = kzalloc(adap->props.size_of_priv, GFP_KERNEL); dvb_usb_adapter_init()
103 if (d->props.generic_bulk_ctrl_endpoint != 0) { dvb_usb_adapter_init()
104 usb_clear_halt(d->udev, usb_sndbulkpipe(d->udev, d->props.generic_bulk_ctrl_endpoint)); dvb_usb_adapter_init()
105 usb_clear_halt(d->udev, usb_rcvbulkpipe(d->udev, d->props.generic_bulk_ctrl_endpoint)); dvb_usb_adapter_init()
150 if (d->props.size_of_priv > 0) { dvb_usb_init()
151 d->priv = kzalloc(d->props.size_of_priv, GFP_KERNEL); dvb_usb_init()
176 static struct dvb_usb_device_description *dvb_usb_find_device(struct usb_device *udev, struct dvb_usb_device_properties *props, int *cold) dvb_usb_find_device() argument
183 for (i = 0; i < props->num_device_descs; i++) { dvb_usb_find_device()
185 for (j = 0; j < DVB_USB_ID_MAX_NUM && props->devices[i].cold_ids[j] != NULL; j++) { dvb_usb_find_device()
186 deb_info("check for cold %x %x\n", props->devices[i].cold_ids[j]->idVendor, props->devices[i].cold_ids[j]->idProduct); dvb_usb_find_device()
187 if (props->devices[i].cold_ids[j]->idVendor == le16_to_cpu(udev->descriptor.idVendor) && dvb_usb_find_device()
188 props->devices[i].cold_ids[j]->idProduct == le16_to_cpu(udev->descriptor.idProduct)) { dvb_usb_find_device()
190 desc = &props->devices[i]; dvb_usb_find_device()
198 for (j = 0; j < DVB_USB_ID_MAX_NUM && props->devices[i].warm_ids[j] != NULL; j++) { dvb_usb_find_device()
199 deb_info("check for warm %x %x\n", props->devices[i].warm_ids[j]->idVendor, props->devices[i].warm_ids[j]->idProduct); dvb_usb_find_device()
200 if (props->devices[i].warm_ids[j]->idVendor == le16_to_cpu(udev->descriptor.idVendor) && dvb_usb_find_device()
201 props->devices[i].warm_ids[j]->idProduct == le16_to_cpu(udev->descriptor.idProduct)) { dvb_usb_find_device()
203 desc = &props->devices[i]; dvb_usb_find_device()
209 if (desc != NULL && props->identify_state != NULL) dvb_usb_find_device()
210 props->identify_state(udev, props, &desc, cold); dvb_usb_find_device()
224 if (d->props.power_ctrl) dvb_usb_device_power_ctrl()
225 return d->props.power_ctrl(d, onoff); dvb_usb_device_power_ctrl()
234 struct dvb_usb_device_properties *props, dvb_usb_device_init()
247 if ((desc = dvb_usb_find_device(udev, props, &cold)) == NULL) { dvb_usb_device_init()
254 ret = dvb_usb_download_firmware(udev, props); dvb_usb_device_init()
255 if (!props->no_reconnect || ret != 0) dvb_usb_device_init()
267 memcpy(&d->props, props, sizeof(struct dvb_usb_device_properties)); dvb_usb_device_init()
233 dvb_usb_device_init(struct usb_interface *intf, struct dvb_usb_device_properties *props, struct module *owner, struct dvb_usb_device **du, short *adapter_nums) dvb_usb_device_init() argument
H A Ddvb-usb-i2c.c14 if (!(d->props.caps & DVB_USB_IS_AN_I2C_ADAPTER)) dvb_usb_i2c_init()
17 if (d->props.i2c_algo == NULL) { dvb_usb_i2c_init()
23 d->i2c_adap.algo = d->props.i2c_algo; dvb_usb_i2c_init()
H A Ddvb-usb-remote.c48 struct rc_map_table *keymap = d->props.rc.legacy.rc_map_table; legacy_dvb_usb_getkeycode()
49 unsigned int keymap_size = d->props.rc.legacy.rc_map_size; legacy_dvb_usb_getkeycode()
71 struct rc_map_table *keymap = d->props.rc.legacy.rc_map_table; legacy_dvb_usb_setkeycode()
72 unsigned int keymap_size = d->props.rc.legacy.rc_map_size; legacy_dvb_usb_setkeycode()
122 if (d->props.rc.legacy.rc_query(d,&event,&state)) { legacy_dvb_usb_read_remote_control()
181 schedule_delayed_work(&d->rc_query_work,msecs_to_jiffies(d->props.rc.legacy.rc_interval)); legacy_dvb_usb_read_remote_control()
205 deb_rc("key map size: %d\n", d->props.rc.legacy.rc_map_size); legacy_dvb_usb_remote_init()
206 for (i = 0; i < d->props.rc.legacy.rc_map_size; i++) { legacy_dvb_usb_remote_init()
208 d->props.rc.legacy.rc_map_table[i].keycode, i); legacy_dvb_usb_remote_init()
209 set_bit(d->props.rc.legacy.rc_map_table[i].keycode, input_dev->keybit); legacy_dvb_usb_remote_init()
213 input_dev->rep[REP_PERIOD] = d->props.rc.legacy.rc_interval; legacy_dvb_usb_remote_init()
214 input_dev->rep[REP_DELAY] = d->props.rc.legacy.rc_interval + 150; legacy_dvb_usb_remote_init()
222 rc_interval = d->props.rc.legacy.rc_interval; legacy_dvb_usb_remote_init()
252 if (dvb_usb_disable_rc_polling || d->props.rc.core.bulk_mode) dvb_usb_read_remote_control()
255 err = d->props.rc.core.rc_query(d); dvb_usb_read_remote_control()
260 msecs_to_jiffies(d->props.rc.core.rc_interval)); dvb_usb_read_remote_control()
272 dev->driver_name = d->props.rc.core.module_name; rc_core_dvb_usb_remote_init()
273 dev->map_name = d->props.rc.core.rc_codes; rc_core_dvb_usb_remote_init()
274 dev->change_protocol = d->props.rc.core.change_protocol; rc_core_dvb_usb_remote_init()
275 dev->allowed_protocols = d->props.rc.core.allowed_protos; rc_core_dvb_usb_remote_init()
276 dev->driver_type = d->props.rc.core.driver_type; rc_core_dvb_usb_remote_init()
292 if (!d->props.rc.core.rc_query || d->props.rc.core.bulk_mode) rc_core_dvb_usb_remote_init()
298 rc_interval = d->props.rc.core.rc_interval; rc_core_dvb_usb_remote_init()
314 if (d->props.rc.legacy.rc_map_table && d->props.rc.legacy.rc_query) dvb_usb_remote_init()
315 d->props.rc.mode = DVB_RC_LEGACY; dvb_usb_remote_init()
316 else if (d->props.rc.core.rc_codes) dvb_usb_remote_init()
317 d->props.rc.mode = DVB_RC_CORE; dvb_usb_remote_init()
325 if (d->props.rc.legacy.rc_interval < 40) dvb_usb_remote_init()
326 d->props.rc.legacy.rc_interval = 100; /* default */ dvb_usb_remote_init()
328 if (d->props.rc.mode == DVB_RC_LEGACY) dvb_usb_remote_init()
344 if (d->props.rc.mode == DVB_RC_LEGACY) dvb_usb_remote_exit()
360 struct rc_map_table *keymap = d->props.rc.legacy.rc_map_table; dvb_usb_nec_rc_key_to_event()
373 for (i = 0; i < d->props.rc.legacy.rc_map_size; i++) dvb_usb_nec_rc_key_to_event()
H A Dusb-urb.c141 if ((i = usb_allocate_stream_buffers(stream,stream->props.count, usb_bulk_urb_init()
142 stream->props.u.bulk.buffersize)) < 0) usb_bulk_urb_init()
146 for (i = 0; i < stream->props.count; i++) { usb_bulk_urb_init()
155 usb_rcvbulkpipe(stream->udev,stream->props.endpoint), usb_bulk_urb_init()
157 stream->props.u.bulk.buffersize, usb_bulk_urb_init()
171 if ((i = usb_allocate_stream_buffers(stream,stream->props.count, usb_isoc_urb_init()
172 stream->props.u.isoc.framesize*stream->props.u.isoc.framesperurb)) < 0) usb_isoc_urb_init()
176 for (i = 0; i < stream->props.count; i++) { usb_isoc_urb_init()
180 stream->urb_list[i] = usb_alloc_urb(stream->props.u.isoc.framesperurb, GFP_ATOMIC); usb_isoc_urb_init()
193 urb->pipe = usb_rcvisocpipe(stream->udev,stream->props.endpoint); usb_isoc_urb_init()
195 urb->interval = stream->props.u.isoc.interval; usb_isoc_urb_init()
196 urb->number_of_packets = stream->props.u.isoc.framesperurb; usb_isoc_urb_init()
201 for (j = 0; j < stream->props.u.isoc.framesperurb; j++) { usb_isoc_urb_init()
203 urb->iso_frame_desc[j].length = stream->props.u.isoc.framesize; usb_isoc_urb_init()
204 frame_offset += stream->props.u.isoc.framesize; usb_isoc_urb_init()
212 int usb_urb_init(struct usb_data_stream *stream, struct usb_data_stream_properties *props) usb_urb_init() argument
214 if (stream == NULL || props == NULL) usb_urb_init()
217 memcpy(&stream->props, props, sizeof(*props)); usb_urb_init()
219 usb_clear_halt(stream->udev,usb_rcvbulkpipe(stream->udev,stream->props.endpoint)); usb_urb_init()
226 switch (stream->props.type) { usb_urb_init()
H A Ddvb-usb-urb.c19 if (d->props.generic_bulk_ctrl_endpoint == 0) { dvb_usb_generic_rw()
31 d->props.generic_bulk_ctrl_endpoint), wbuf,wlen,&actlen, dvb_usb_generic_rw()
45 d->props.generic_bulk_ctrl_endpoint_response ? dvb_usb_generic_rw()
46 d->props.generic_bulk_ctrl_endpoint_response : dvb_usb_generic_rw()
47 d->props.generic_bulk_ctrl_endpoint),rbuf,rlen,&actlen, dvb_usb_generic_rw()
94 for (i = 0; i < adap->props.num_frontends; i++) { dvb_usb_adapter_stream_init()
97 if (adap->props.fe[i].caps & DVB_USB_ADAP_RECEIVES_204_BYTE_TS) dvb_usb_adapter_stream_init()
101 if (adap->props.fe[i].caps & DVB_USB_ADAP_RECEIVES_RAW_PAYLOAD) dvb_usb_adapter_stream_init()
108 &adap->props.fe[i].stream); dvb_usb_adapter_stream_init()
118 for (i = 0; i < adap->props.num_frontends; i++) dvb_usb_adapter_stream_exit()
H A Ddvb-usb-dvb.c32 if (adap->props.fe[adap->active_fe].streaming_ctrl != NULL) { dvb_usb_ctrl_feed()
33 ret = adap->props.fe[adap->active_fe].streaming_ctrl(adap, 0); dvb_usb_ctrl_feed()
48 if (adap->props.fe[adap->active_fe].caps & DVB_USB_ADAP_HAS_PID_FILTER && dvb_usb_ctrl_feed()
50 adap->props.fe[adap->active_fe].pid_filter != NULL) dvb_usb_ctrl_feed()
51 adap->props.fe[adap->active_fe].pid_filter(adap, dvbdmxfeed->index, dvbdmxfeed->pid, onoff); dvb_usb_ctrl_feed()
61 if (adap->props.fe[adap->active_fe].caps & DVB_USB_ADAP_HAS_PID_FILTER && dvb_usb_ctrl_feed()
62 adap->props.fe[adap->active_fe].caps & dvb_usb_ctrl_feed()
64 adap->props.fe[adap->active_fe].pid_filter_ctrl != NULL) { dvb_usb_ctrl_feed()
65 ret = adap->props.fe[adap->active_fe].pid_filter_ctrl(adap, dvb_usb_ctrl_feed()
73 if (adap->props.fe[adap->active_fe].streaming_ctrl != NULL) { dvb_usb_ctrl_feed()
74 ret = adap->props.fe[adap->active_fe].streaming_ctrl(adap, 1); dvb_usb_ctrl_feed()
159 if (adap->dev->props.read_mac_address) { dvb_usb_adapter_dvb_init()
160 if (adap->dev->props.read_mac_address(adap->dev, adap->dvb_adap.proposed_mac) == 0) dvb_usb_adapter_dvb_init()
171 for (i = 0; i < adap->props.num_frontends; i++) { dvb_usb_adapter_dvb_init()
231 int ret = (adap->props.frontend_ctrl) ? dvb_usb_set_active_fe()
232 adap->props.frontend_ctrl(fe, onoff) : 0; dvb_usb_set_active_fe()
275 for (i = 0; i < adap->props.num_frontends; i++) { dvb_usb_adapter_frontend_init()
277 if (adap->props.fe[i].frontend_attach == NULL) { dvb_usb_adapter_frontend_init()
285 ret = adap->props.fe[i].frontend_attach(adap); dvb_usb_adapter_frontend_init()
316 if (adap->props.fe[i].tuner_attach != NULL) dvb_usb_adapter_frontend_init()
317 adap->props.fe[i].tuner_attach(adap); dvb_usb_adapter_frontend_init()
H A Ddvb-usb-firmware.c78 int dvb_usb_download_firmware(struct usb_device *udev, struct dvb_usb_device_properties *props) dvb_usb_download_firmware() argument
83 if ((ret = request_firmware(&fw, props->firmware, &udev->dev)) != 0) { dvb_usb_download_firmware()
86 props->firmware,ret); dvb_usb_download_firmware()
90 info("downloading firmware from file '%s'",props->firmware); dvb_usb_download_firmware()
92 switch (props->usb_ctrl) { dvb_usb_download_firmware()
96 ret = usb_cypress_load_firmware(udev, fw, props->usb_ctrl); dvb_usb_download_firmware()
99 if (props->download_firmware) dvb_usb_download_firmware()
100 ret = props->download_firmware(udev,fw); dvb_usb_download_firmware()
H A Ddigitv.c90 dvb_usb_device_properties *props, struct dvb_usb_device_description **desc, digitv_identify_state()
245 for (i = 0; i < d->props.rc.legacy.rc_map_size; i++) { digitv_rc_query()
246 if (rc5_custom(&d->props.rc.legacy.rc_map_table[i]) == key[1] && digitv_rc_query()
247 rc5_data(&d->props.rc.legacy.rc_map_table[i]) == key[2]) { digitv_rc_query()
248 *event = d->props.rc.legacy.rc_map_table[i].keycode; digitv_rc_query()
89 digitv_identify_state(struct usb_device *udev, struct dvb_usb_device_properties *props, struct dvb_usb_device_description **desc, int *cold) digitv_identify_state() argument
H A Ddvb-usb-common.h32 extern int usb_urb_init(struct usb_data_stream *stream, struct usb_data_stream_properties *props);
H A Ddib0700_core.c342 int dib0700_identify_state(struct usb_device *udev, struct dvb_usb_device_properties *props, dib0700_identify_state() argument
581 if ((adap->fe_adap[0].stream.props.endpoint != 2) dib0700_streaming_ctrl()
582 && (adap->fe_adap[0].stream.props.endpoint != 3)) { dib0700_streaming_ctrl()
583 deb_info("the endpoint number (%i) is not correct, use the adapter id instead", adap->fe_adap[0].stream.props.endpoint); dib0700_streaming_ctrl()
590 st->channel_state |= 1 << (adap->fe_adap[0].stream.props.endpoint-2); dib0700_streaming_ctrl()
592 st->channel_state |= 1 << (3-adap->fe_adap[0].stream.props.endpoint); dib0700_streaming_ctrl()
647 d->props.rc.core.protocol = *rc_type; dib0700_change_protocol()
711 switch (d->props.rc.core.protocol) { dib0700_rc_urb_completion()
862 dev->props.rc.core.bulk_mode = true; dib0700_probe()
864 dev->props.rc.core.bulk_mode = false; dib0700_probe()
H A Dcxusb.c373 int ep = d->props.generic_bulk_ctrl_endpoint; cxusb_d680_dmb_drain_message()
396 struct usb_data_stream_properties *p = &d->props.adapter[0].fe[0].stream; cxusb_d680_dmb_drain_video()
434 struct rc_map_table *keymap = d->props.rc.legacy.rc_map_table; cxusb_rc_query()
443 for (i = 0; i < d->props.rc.legacy.rc_map_size; i++) { cxusb_rc_query()
459 struct rc_map_table *keymap = d->props.rc.legacy.rc_map_table; cxusb_bluebird2_rc_query()
471 for (i = 0; i < d->props.rc.legacy.rc_map_size; i++) { cxusb_bluebird2_rc_query()
487 struct rc_map_table *keymap = d->props.rc.legacy.rc_map_table; cxusb_d680_dmb_rc_query()
497 for (i = 0; i < d->props.rc.legacy.rc_map_size; i++) { cxusb_d680_dmb_rc_query()
982 for (i = 0; adap->dev->props.rc.legacy.rc_map_table != NULL && i < 5; i++) { cxusb_dualdig4_frontend_attach()
990 adap->dev->props.rc.legacy.rc_map_table = NULL; cxusb_dualdig4_frontend_attach()
1221 usb_sndbulkpipe(d->udev, d->props.generic_bulk_ctrl_endpoint)); cxusb_d680_dmb_frontend_attach()
1223 usb_rcvbulkpipe(d->udev, d->props.generic_bulk_ctrl_endpoint)); cxusb_d680_dmb_frontend_attach()
1225 usb_rcvbulkpipe(d->udev, d->props.adapter[0].fe[0].stream.endpoint)); cxusb_d680_dmb_frontend_attach()
1278 usb_sndbulkpipe(d->udev, d->props.generic_bulk_ctrl_endpoint)); cxusb_mygica_d689_frontend_attach()
1280 usb_rcvbulkpipe(d->udev, d->props.generic_bulk_ctrl_endpoint)); cxusb_mygica_d689_frontend_attach()
1282 usb_rcvbulkpipe(d->udev, d->props.adapter[0].fe[0].stream.endpoint)); cxusb_mygica_d689_frontend_attach()
1323 usb_sndbulkpipe(d->udev, d->props.generic_bulk_ctrl_endpoint)); cxusb_mygica_t230_frontend_attach()
1325 usb_rcvbulkpipe(d->udev, d->props.generic_bulk_ctrl_endpoint)); cxusb_mygica_t230_frontend_attach()
1327 usb_rcvbulkpipe(d->udev, d->props.adapter[0].fe[0].stream.endpoint)); cxusb_mygica_t230_frontend_attach()
1383 struct dvb_usb_device_properties *props, bluebird_fx2_identify_state()
1382 bluebird_fx2_identify_state(struct usb_device *udev, struct dvb_usb_device_properties *props, struct dvb_usb_device_description **desc, int *cold) bluebird_fx2_identify_state() argument
H A Ddib0700.h65 extern int dib0700_identify_state(struct usb_device *udev, struct dvb_usb_device_properties *props,
H A Dm920x.c88 if (d->props.rc.legacy.rc_query || d->props.rc.core.rc_query) { m920x_init()
99 for (i = 0; i < d->props.num_adapters; i++) m920x_init()
100 flags |= d->adapter[i].props.fe[0].caps; m920x_init()
104 for (i = 0; i < d->props.num_adapters; i++) { m920x_init()
105 epi = d->adapter[i].props.fe[0].stream.endpoint - 0x81; m920x_init()
207 for (i = 0; i < d->props.rc.legacy.rc_map_size; i++) m920x_rc_query()
208 if (rc5_data(&d->props.rc.legacy.rc_map_table[i]) == rc_state[1]) { m920x_rc_query()
209 *event = d->props.rc.legacy.rc_map_table[i].keycode; m920x_rc_query()
350 int ep = adap->props.fe[0].stream.endpoint; m920x_update_filters()
472 struct dvb_usb_device_properties *props, m920x_identify_state()
471 m920x_identify_state(struct usb_device *udev, struct dvb_usb_device_properties *props, struct dvb_usb_device_description **desc, int *cold) m920x_identify_state() argument
H A Ddvb-usb.h313 struct usb_data_stream_properties props; member in struct:usb_data_stream
374 struct dvb_usb_adapter_properties props; member in struct:dvb_usb_adapter
399 * @props: copy of the struct dvb_usb_properties this device belongs to.
422 struct dvb_usb_device_properties props; member in struct:dvb_usb_device
H A Da800.c33 static int a800_identify_state(struct usb_device *udev, struct dvb_usb_device_properties *props, a800_identify_state() argument
/linux-4.1.27/drivers/video/backlight/
H A Dgeneric_bl.c29 int intensity = bd->props.brightness; genericbl_send_intensity()
31 if (bd->props.power != FB_BLANK_UNBLANK) genericbl_send_intensity()
33 if (bd->props.state & BL_CORE_FBBLANK) genericbl_send_intensity()
35 if (bd->props.state & BL_CORE_SUSPENDED) genericbl_send_intensity()
37 if (bd->props.state & GENERICBL_BATTLOW) genericbl_send_intensity()
63 struct backlight_properties props; genericbl_probe() local
75 memset(&props, 0, sizeof(struct backlight_properties)); genericbl_probe()
76 props.type = BACKLIGHT_RAW; genericbl_probe()
77 props.max_brightness = machinfo->max_intensity; genericbl_probe()
79 NULL, &genericbl_ops, &props); genericbl_probe()
85 bd->props.power = FB_BLANK_UNBLANK; genericbl_probe()
86 bd->props.brightness = machinfo->default_intensity; genericbl_probe()
99 bd->props.power = 0; genericbl_remove()
100 bd->props.brightness = 0; genericbl_remove()
H A Dpandora_bl.c42 int brightness = bl->props.brightness; pandora_backlight_update_status()
45 if (bl->props.power != FB_BLANK_UNBLANK) pandora_backlight_update_status()
47 if (bl->props.state & BL_CORE_FBBLANK) pandora_backlight_update_status()
49 if (bl->props.state & BL_CORE_SUSPENDED) pandora_backlight_update_status()
56 if (bl->props.state & PANDORABL_WAS_OFF) pandora_backlight_update_status()
69 if (bl->props.state & PANDORABL_WAS_OFF) { pandora_backlight_update_status()
96 bl->props.state &= ~PANDORABL_WAS_OFF; pandora_backlight_update_status()
98 bl->props.state |= PANDORABL_WAS_OFF; pandora_backlight_update_status()
110 struct backlight_properties props; pandora_backlight_probe() local
114 memset(&props, 0, sizeof(props)); pandora_backlight_probe()
115 props.max_brightness = MAX_USER_VALUE; pandora_backlight_probe()
116 props.type = BACKLIGHT_RAW; pandora_backlight_probe()
118 NULL, &pandora_backlight_ops, &props); pandora_backlight_probe()
129 bl->props.state |= PANDORABL_WAS_OFF; pandora_backlight_probe()
130 bl->props.brightness = MAX_USER_VALUE; pandora_backlight_probe()
H A Dtosa_bl.c56 struct backlight_properties *props = &dev->props; tosa_bl_update_status() local
58 int power = max(props->power, props->fb_blank); tosa_bl_update_status()
59 int brightness = props->brightness; tosa_bl_update_status()
71 struct backlight_properties *props = &dev->props; tosa_bl_get_brightness() local
73 return props->brightness; tosa_bl_get_brightness()
84 struct backlight_properties props; tosa_bl_probe() local
105 memset(&props, 0, sizeof(struct backlight_properties)); tosa_bl_probe()
106 props.type = BACKLIGHT_RAW; tosa_bl_probe()
107 props.max_brightness = 512 - 1; tosa_bl_probe()
110 &props); tosa_bl_probe()
116 data->bl->props.brightness = 69; tosa_bl_probe()
117 data->bl->props.power = FB_BLANK_UNBLANK; tosa_bl_probe()
H A Daat2870_bl.c48 val /= bd->props.max_brightness; aat2870_brightness()
75 int brightness = bd->props.brightness; aat2870_bl_update_status()
78 if ((brightness < 0) || (bd->props.max_brightness < brightness)) { aat2870_bl_update_status()
84 bd->props.brightness, bd->props.power, bd->props.state); aat2870_bl_update_status()
86 if ((bd->props.power != FB_BLANK_UNBLANK) || aat2870_bl_update_status()
87 (bd->props.state & BL_CORE_FBBLANK) || aat2870_bl_update_status()
88 (bd->props.state & BL_CORE_SUSPENDED)) aat2870_bl_update_status()
127 struct backlight_properties props; aat2870_bl_probe() local
150 memset(&props, 0, sizeof(struct backlight_properties)); aat2870_bl_probe()
152 props.type = BACKLIGHT_RAW; aat2870_bl_probe()
155 &props); aat2870_bl_probe()
179 bd->props.max_brightness = pdata->max_brightness; aat2870_bl_probe()
181 bd->props.max_brightness = 255; aat2870_bl_probe()
184 bd->props.power = FB_BLANK_UNBLANK; aat2870_bl_probe()
185 bd->props.brightness = bd->props.max_brightness; aat2870_bl_probe()
204 bd->props.power = FB_BLANK_POWERDOWN; aat2870_bl_remove()
205 bd->props.brightness = 0; aat2870_bl_remove()
H A Dlv5207lp.c52 int brightness = backlight->props.brightness; lv5207lp_backlight_update_status()
54 if (backlight->props.power != FB_BLANK_UNBLANK || lv5207lp_backlight_update_status()
55 backlight->props.fb_blank != FB_BLANK_UNBLANK || lv5207lp_backlight_update_status()
56 backlight->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK)) lv5207lp_backlight_update_status()
92 struct backlight_properties props; lv5207lp_probe() local
114 memset(&props, 0, sizeof(props)); lv5207lp_probe()
115 props.type = BACKLIGHT_RAW; lv5207lp_probe()
116 props.max_brightness = min_t(unsigned int, pdata->max_value, lv5207lp_probe()
118 props.brightness = clamp_t(unsigned int, pdata->def_value, 0, lv5207lp_probe()
119 props.max_brightness); lv5207lp_probe()
123 lv, &lv5207lp_backlight_ops, &props); lv5207lp_probe()
139 backlight->props.brightness = 0; lv5207lp_remove()
H A Dda903x_bl.c83 int brightness = bl->props.brightness; da903x_backlight_update_status()
85 if (bl->props.power != FB_BLANK_UNBLANK) da903x_backlight_update_status()
88 if (bl->props.fb_blank != FB_BLANK_UNBLANK) da903x_backlight_update_status()
91 if (bl->props.state & BL_CORE_SUSPENDED) da903x_backlight_update_status()
115 struct backlight_properties props; da903x_backlight_probe() local
144 memset(&props, 0, sizeof(props)); da903x_backlight_probe()
145 props.type = BACKLIGHT_RAW; da903x_backlight_probe()
146 props.max_brightness = max_brightness; da903x_backlight_probe()
149 &da903x_backlight_ops, &props); da903x_backlight_probe()
155 bl->props.brightness = max_brightness; da903x_backlight_probe()
H A Dgpio_backlight.c34 int brightness = bl->props.brightness; gpio_backlight_update_status()
36 if (bl->props.power != FB_BLANK_UNBLANK || gpio_backlight_update_status()
37 bl->props.fb_blank != FB_BLANK_UNBLANK || gpio_backlight_update_status()
38 bl->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK)) gpio_backlight_update_status()
88 struct backlight_properties props; gpio_backlight_probe() local
126 memset(&props, 0, sizeof(props)); gpio_backlight_probe()
127 props.type = BACKLIGHT_RAW; gpio_backlight_probe()
128 props.max_brightness = 1; gpio_backlight_probe()
131 &props); gpio_backlight_probe()
137 bl->props.brightness = gbl->def_value; gpio_backlight_probe()
H A Dhp680_bl.c36 int intensity = bd->props.brightness; hp680bl_send_intensity()
38 if (bd->props.power != FB_BLANK_UNBLANK) hp680bl_send_intensity()
40 if (bd->props.fb_blank != FB_BLANK_UNBLANK) hp680bl_send_intensity()
107 struct backlight_properties props; hp680bl_probe() local
110 memset(&props, 0, sizeof(struct backlight_properties)); hp680bl_probe()
111 props.type = BACKLIGHT_RAW; hp680bl_probe()
112 props.max_brightness = HP680_MAX_INTENSITY; hp680bl_probe()
114 NULL, &hp680bl_ops, &props); hp680bl_probe()
120 bd->props.brightness = HP680_DEFAULT_INTENSITY; hp680bl_probe()
130 bd->props.brightness = 0; hp680bl_remove()
131 bd->props.power = 0; hp680bl_remove()
H A Djornada720_bl.c61 if ((bd->props.power != FB_BLANK_UNBLANK) || (bd->props.fb_blank != FB_BLANK_UNBLANK)) { jornada_bl_update_status()
87 if (jornada_ssp_byte(BL_MAX_BRIGHT - bd->props.brightness) jornada_bl_update_status()
111 struct backlight_properties props; jornada_bl_probe() local
115 memset(&props, 0, sizeof(struct backlight_properties)); jornada_bl_probe()
116 props.type = BACKLIGHT_RAW; jornada_bl_probe()
117 props.max_brightness = BL_MAX_BRIGHT; jornada_bl_probe()
121 &props); jornada_bl_probe()
128 bd->props.power = FB_BLANK_UNBLANK; jornada_bl_probe()
129 bd->props.brightness = BL_DEF_BRIGHT; jornada_bl_probe()
H A Dkb3886_bl.c94 int intensity = bd->props.brightness; kb3886bl_send_intensity()
96 if (bd->props.power != FB_BLANK_UNBLANK) kb3886bl_send_intensity()
98 if (bd->props.fb_blank != FB_BLANK_UNBLANK) kb3886bl_send_intensity()
143 struct backlight_properties props; kb3886bl_probe() local
150 memset(&props, 0, sizeof(struct backlight_properties)); kb3886bl_probe()
151 props.type = BACKLIGHT_RAW; kb3886bl_probe()
152 props.max_brightness = machinfo->max_intensity; kb3886bl_probe()
156 &props); kb3886bl_probe()
162 kb3886_backlight_device->props.power = FB_BLANK_UNBLANK; kb3886bl_probe()
163 kb3886_backlight_device->props.brightness = machinfo->default_intensity; kb3886bl_probe()
H A Dbd6107.c87 int brightness = backlight->props.brightness; bd6107_backlight_update_status()
89 if (backlight->props.power != FB_BLANK_UNBLANK || bd6107_backlight_update_status()
90 backlight->props.fb_blank != FB_BLANK_UNBLANK || bd6107_backlight_update_status()
91 backlight->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK)) bd6107_backlight_update_status()
127 struct backlight_properties props; bd6107_probe() local
157 memset(&props, 0, sizeof(props)); bd6107_probe()
158 props.type = BACKLIGHT_RAW; bd6107_probe()
159 props.max_brightness = 128; bd6107_probe()
160 props.brightness = clamp_t(unsigned int, pdata->def_value, 0, bd6107_probe()
161 props.max_brightness); bd6107_probe()
166 &bd6107_backlight_ops, &props); bd6107_probe()
182 backlight->props.brightness = 0; bd6107_remove()
H A Dep93xx_bl.c42 int brightness = bl->props.brightness; ep93xxbl_update_status()
44 if (bl->props.power != FB_BLANK_UNBLANK || ep93xxbl_update_status()
45 bl->props.fb_blank != FB_BLANK_UNBLANK) ep93xxbl_update_status()
67 struct backlight_properties props; ep93xxbl_probe() local
92 memset(&props, 0, sizeof(struct backlight_properties)); ep93xxbl_probe()
93 props.type = BACKLIGHT_RAW; ep93xxbl_probe()
94 props.max_brightness = EP93XX_MAX_BRIGHT; ep93xxbl_probe()
96 ep93xxbl, &ep93xxbl_ops, &props); ep93xxbl_probe()
100 bl->props.brightness = EP93XX_DEF_BRIGHT; ep93xxbl_probe()
H A Dlm3630a_bl.c184 lm3630a_pwm_ctrl(pchip, bl->props.brightness, lm3630a_bank_a_update_status()
185 bl->props.max_brightness); lm3630a_bank_a_update_status()
186 return bl->props.brightness; lm3630a_bank_a_update_status()
195 ret = lm3630a_write(pchip, REG_BRT_A, bl->props.brightness); lm3630a_bank_a_update_status()
196 if (bl->props.brightness < 0x4) lm3630a_bank_a_update_status()
203 return bl->props.brightness; lm3630a_bank_a_update_status()
207 return bl->props.brightness; lm3630a_bank_a_update_status()
239 bl->props.brightness = brightness; lm3630a_bank_a_get_brightness()
240 return bl->props.brightness; lm3630a_bank_a_get_brightness()
261 lm3630a_pwm_ctrl(pchip, bl->props.brightness, lm3630a_bank_b_update_status()
262 bl->props.max_brightness); lm3630a_bank_b_update_status()
263 return bl->props.brightness; lm3630a_bank_b_update_status()
272 ret = lm3630a_write(pchip, REG_BRT_B, bl->props.brightness); lm3630a_bank_b_update_status()
273 if (bl->props.brightness < 0x4) lm3630a_bank_b_update_status()
280 return bl->props.brightness; lm3630a_bank_b_update_status()
284 return bl->props.brightness; lm3630a_bank_b_update_status()
316 bl->props.brightness = brightness; lm3630a_bank_b_get_brightness()
317 return bl->props.brightness; lm3630a_bank_b_get_brightness()
331 struct backlight_properties props; lm3630a_backlight_register() local
334 props.type = BACKLIGHT_RAW; lm3630a_backlight_register()
336 props.brightness = pdata->leda_init_brt; lm3630a_backlight_register()
337 props.max_brightness = pdata->leda_max_brt; lm3630a_backlight_register()
341 &lm3630a_bank_a_ops, &props); lm3630a_backlight_register()
348 props.brightness = pdata->ledb_init_brt; lm3630a_backlight_register()
349 props.max_brightness = pdata->ledb_max_brt; lm3630a_backlight_register()
353 &lm3630a_bank_b_ops, &props); lm3630a_backlight_register()
H A Domap1_bl.c108 if (bl->current_intensity != dev->props.brightness) { omapbl_update_status()
110 omapbl_send_intensity(dev->props.brightness); omapbl_update_status()
111 bl->current_intensity = dev->props.brightness; omapbl_update_status()
114 if (dev->props.fb_blank != bl->powermode) omapbl_update_status()
115 omapbl_set_power(dev, dev->props.fb_blank); omapbl_update_status()
134 struct backlight_properties props; omapbl_probe() local
147 memset(&props, 0, sizeof(struct backlight_properties)); omapbl_probe()
148 props.type = BACKLIGHT_RAW; omapbl_probe()
149 props.max_brightness = OMAPBL_MAX_INTENSITY; omapbl_probe()
151 bl, &omapbl_ops, &props); omapbl_probe()
165 dev->props.fb_blank = FB_BLANK_UNBLANK; omapbl_probe()
166 dev->props.brightness = pdata->default_intensity; omapbl_probe()
H A Dlocomolcd.c114 int intensity = bd->props.brightness; locomolcd_set_intensity()
116 if (bd->props.power != FB_BLANK_UNBLANK) locomolcd_set_intensity()
118 if (bd->props.fb_blank != FB_BLANK_UNBLANK) locomolcd_set_intensity()
180 struct backlight_properties props; locomolcd_probe() local
198 memset(&props, 0, sizeof(struct backlight_properties)); locomolcd_probe()
199 props.type = BACKLIGHT_RAW; locomolcd_probe()
200 props.max_brightness = 4; locomolcd_probe()
203 &locomobl_data, &props); locomolcd_probe()
209 locomolcd_bl_device->props.brightness = 2; locomolcd_probe()
219 locomolcd_bl_device->props.brightness = 0; locomolcd_remove()
220 locomolcd_bl_device->props.power = 0; locomolcd_remove()
H A Dwm831x_bl.c97 int brightness = bl->props.brightness; wm831x_backlight_update_status()
99 if (bl->props.power != FB_BLANK_UNBLANK) wm831x_backlight_update_status()
102 if (bl->props.fb_blank != FB_BLANK_UNBLANK) wm831x_backlight_update_status()
105 if (bl->props.state & BL_CORE_SUSPENDED) wm831x_backlight_update_status()
131 struct backlight_properties props; wm831x_backlight_probe() local
196 memset(&props, 0, sizeof(props)); wm831x_backlight_probe()
197 props.type = BACKLIGHT_RAW; wm831x_backlight_probe()
198 props.max_brightness = max_isel; wm831x_backlight_probe()
200 data, &wm831x_backlight_ops, &props); wm831x_backlight_probe()
206 bl->props.brightness = max_isel; wm831x_backlight_probe()
H A Dbacklight.c62 bd->props.state &= ~BL_CORE_FBBLANK; fb_notifier_callback()
63 bd->props.fb_blank = FB_BLANK_UNBLANK; fb_notifier_callback()
70 bd->props.state |= BL_CORE_FBBLANK; fb_notifier_callback()
71 bd->props.fb_blank = fb_blank; fb_notifier_callback()
129 return sprintf(buf, "%d\n", bd->props.power); bl_power_show()
147 if (bd->props.power != power) { bl_power_store()
148 bd->props.power = power; bl_power_store()
164 return sprintf(buf, "%d\n", bd->props.brightness); brightness_show()
182 if (brightness > bd->props.max_brightness) brightness_store()
186 bd->props.brightness = brightness; brightness_store()
204 return sprintf(buf, "%s\n", backlight_types[bd->props.type]); type_show()
213 return sprintf(buf, "%d\n", bd->props.max_brightness); max_brightness_show()
227 rc = sprintf(buf, "%d\n", bd->props.brightness); actual_brightness_show()
243 bd->props.state |= BL_CORE_SUSPENDED; backlight_suspend()
257 bd->props.state &= ~BL_CORE_SUSPENDED; backlight_resume()
298 bd->props.brightness = bd->ops->get_brightness(bd); backlight_force_update()
319 const struct backlight_properties *props) backlight_device_register()
340 if (props) { backlight_device_register()
341 memcpy(&new_bd->props, props, backlight_device_register()
343 if (props->type <= 0 || props->type >= BACKLIGHT_TYPE_MAX) { backlight_device_register()
345 new_bd->props.type = BACKLIGHT_RAW; backlight_device_register()
348 new_bd->props.type = BACKLIGHT_RAW; backlight_device_register()
390 if (bd->props.type == type) { backlight_device_registered()
487 * @props: the backlight properties
498 const struct backlight_properties *props) devm_backlight_device_register()
508 props); devm_backlight_device_register()
317 backlight_device_register(const char *name, struct device *parent, void *devdata, const struct backlight_ops *ops, const struct backlight_properties *props) backlight_device_register() argument
495 devm_backlight_device_register(struct device *dev, const char *name, struct device *parent, void *devdata, const struct backlight_ops *ops, const struct backlight_properties *props) devm_backlight_device_register() argument
H A Dda9052_bl.c89 int brightness = bl->props.brightness; da9052_backlight_update_status()
113 struct backlight_properties props; da9052_backlight_probe() local
125 props.type = BACKLIGHT_RAW; da9052_backlight_probe()
126 props.max_brightness = DA9052_MAX_BRIGHTNESS; da9052_backlight_probe()
130 &da9052_backlight_ops, &props); da9052_backlight_probe()
136 bl->props.max_brightness = DA9052_MAX_BRIGHTNESS; da9052_backlight_probe()
137 bl->props.brightness = 0; da9052_backlight_probe()
H A Dot200_bl.c47 int brightness = bl->props.brightness; ot200_backlight_update_status()
49 if (bl->props.state & BL_CORE_FBBLANK) ot200_backlight_update_status()
84 struct backlight_properties props; ot200_backlight_probe() local
117 props.max_brightness = 100; ot200_backlight_probe()
118 props.brightness = 100; ot200_backlight_probe()
119 props.type = BACKLIGHT_RAW; ot200_backlight_probe()
123 &props); ot200_backlight_probe()
H A Dmax8925_bl.c70 int brightness = bl->props.brightness; max8925_backlight_update_status()
72 if (bl->props.power != FB_BLANK_UNBLANK) max8925_backlight_update_status()
75 if (bl->props.fb_blank != FB_BLANK_UNBLANK) max8925_backlight_update_status()
78 if (bl->props.state & BL_CORE_SUSPENDED) max8925_backlight_update_status()
137 struct backlight_properties props; max8925_backlight_probe() local
163 memset(&props, 0, sizeof(struct backlight_properties)); max8925_backlight_probe()
164 props.type = BACKLIGHT_RAW; max8925_backlight_probe()
165 props.max_brightness = MAX_BRIGHTNESS; max8925_backlight_probe()
168 &max8925_backlight_ops, &props); max8925_backlight_probe()
173 bl->props.brightness = MAX_BRIGHTNESS; max8925_backlight_probe()
H A Dcr_bllcd.c76 int intensity = bd->props.brightness; cr_backlight_set_intensity()
80 if (bd->props.power == FB_BLANK_UNBLANK) cr_backlight_set_intensity()
82 if (bd->props.fb_blank == FB_BLANK_UNBLANK) cr_backlight_set_intensity()
84 if (bd->props.power == FB_BLANK_POWERDOWN) cr_backlight_set_intensity()
86 if (bd->props.fb_blank == FB_BLANK_POWERDOWN) cr_backlight_set_intensity()
176 struct backlight_properties props; cr_backlight_probe() local
196 memset(&props, 0, sizeof(struct backlight_properties)); cr_backlight_probe()
197 props.type = BACKLIGHT_RAW; cr_backlight_probe()
200 &props); cr_backlight_probe()
225 crp->cr_backlight_device->props.power = FB_BLANK_UNBLANK; cr_backlight_probe()
226 crp->cr_backlight_device->props.brightness = 0; cr_backlight_probe()
239 crp->cr_backlight_device->props.power = FB_BLANK_POWERDOWN; cr_backlight_remove()
240 crp->cr_backlight_device->props.brightness = 0; cr_backlight_remove()
241 crp->cr_backlight_device->props.max_brightness = 0; cr_backlight_remove()
H A Dlm3639_bl.c115 pdata->pwm_set_intensity(bl->props.brightness, lm3639_bled_update_status()
120 return bl->props.brightness; lm3639_bled_update_status()
124 ret = regmap_write(pchip->regmap, REG_BL_CONF_4, bl->props.brightness); lm3639_bled_update_status()
127 ret = regmap_write(pchip->regmap, REG_BL_CONF_3, bl->props.brightness); lm3639_bled_update_status()
131 if (!bl->props.brightness) lm3639_bled_update_status()
138 return bl->props.brightness; lm3639_bled_update_status()
141 return bl->props.brightness; lm3639_bled_update_status()
153 bl->props.brightness = pdata->pwm_get_intensity(); lm3639_bled_get_brightness()
157 return bl->props.brightness; lm3639_bled_get_brightness()
169 bl->props.brightness = reg_val; lm3639_bled_get_brightness()
171 return bl->props.brightness; lm3639_bled_get_brightness()
174 return bl->props.brightness; lm3639_bled_get_brightness()
309 struct backlight_properties props; lm3639_probe() local
346 props.type = BACKLIGHT_RAW; lm3639_probe()
347 props.brightness = pdata->init_brt_led; lm3639_probe()
348 props.max_brightness = pdata->max_brt_led; lm3639_probe()
352 &props); lm3639_probe()
H A Dapple_bl.c61 int intensity = bd->props.brightness; intel_chipset_send_intensity()
106 int intensity = bd->props.brightness; nvidia_chipset_send_intensity()
142 struct backlight_properties props; apple_bl_add() local
181 memset(&props, 0, sizeof(struct backlight_properties)); apple_bl_add()
182 props.type = BACKLIGHT_PLATFORM; apple_bl_add()
183 props.max_brightness = 15; apple_bl_add()
185 NULL, NULL, &hw_data->backlight_ops, &props); apple_bl_add()
192 apple_backlight_device->props.brightness = apple_bl_add()
H A Dipaq_micro_bl.c21 int intensity = bd->props.brightness; micro_bl_update_status()
27 if (bd->props.power != FB_BLANK_UNBLANK) micro_bl_update_status()
29 if (bd->props.state & (BL_CORE_FBBLANK | BL_CORE_SUSPENDED)) micro_bl_update_status()
H A Dlm3533_bl.c46 int brightness = bd->props.brightness; lm3533_bl_update_status()
48 if (bd->props.power != FB_BLANK_UNBLANK) lm3533_bl_update_status()
50 if (bd->props.fb_blank != FB_BLANK_UNBLANK) lm3533_bl_update_status()
278 struct backlight_properties props; lm3533_bl_probe() local
309 memset(&props, 0, sizeof(props)); lm3533_bl_probe()
310 props.type = BACKLIGHT_RAW; lm3533_bl_probe()
311 props.max_brightness = LM3533_BL_MAX_BRIGHTNESS; lm3533_bl_probe()
312 props.brightness = pdata->default_brightness; lm3533_bl_probe()
315 &props); lm3533_bl_probe()
357 bd->props.power = FB_BLANK_POWERDOWN; lm3533_bl_remove()
358 bd->props.brightness = 0; lm3533_bl_remove()
H A Dlp8788_bl.c162 if (bl_dev->props.state & BL_CORE_SUSPENDED) lp8788_bl_update_status()
163 bl_dev->props.brightness = 0; lp8788_bl_update_status()
166 int brt = bl_dev->props.brightness; lp8788_bl_update_status()
167 int max = bl_dev->props.max_brightness; lp8788_bl_update_status()
171 u8 brt = bl_dev->props.brightness; lp8788_bl_update_status()
187 struct backlight_properties props; lp8788_backlight_register() local
192 props.type = BACKLIGHT_PLATFORM; lp8788_backlight_register()
193 props.max_brightness = MAX_BRIGHTNESS; lp8788_backlight_register()
198 props.max_brightness); lp8788_backlight_register()
202 props.brightness = init_brt; lp8788_backlight_register()
211 &lp8788_bl_ops, &props); lp8788_backlight_register()
305 bl_dev->props.brightness = 0; lp8788_backlight_remove()
H A Dpcf50633-backlight.c64 if (bl->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK) || pcf50633_bl_update_status()
65 bl->props.power != FB_BLANK_UNBLANK) pcf50633_bl_update_status()
67 else if (bl->props.brightness < pcf_bl->brightness_limit) pcf50633_bl_update_status()
68 new_brightness = bl->props.brightness; pcf50633_bl_update_status()
145 pcf_bl->brightness = pcf_bl->bl->props.brightness + 1; pcf50633_bl_probe()
H A D88pm860x_bl.c127 int brightness = bl->props.brightness; pm860x_backlight_update_status()
129 if (bl->props.power != FB_BLANK_UNBLANK) pm860x_backlight_update_status()
132 if (bl->props.fb_blank != FB_BLANK_UNBLANK) pm860x_backlight_update_status()
135 if (bl->props.state & BL_CORE_SUSPENDED) pm860x_backlight_update_status()
200 struct backlight_properties props; pm860x_backlight_probe() local
240 memset(&props, 0, sizeof(struct backlight_properties)); pm860x_backlight_probe()
241 props.type = BACKLIGHT_RAW; pm860x_backlight_probe()
242 props.max_brightness = MAX_BRIGHTNESS; pm860x_backlight_probe()
244 &pm860x_backlight_ops, &props); pm860x_backlight_probe()
249 bl->props.brightness = MAX_BRIGHTNESS; pm860x_backlight_probe()
H A Das3711_bl.c112 int brightness = bl->props.brightness; as3711_bl_update_status()
116 __func__, bl->props.brightness, bl->props.power, as3711_bl_update_status()
117 bl->props.fb_blank, bl->props.state); as3711_bl_update_status()
119 if (bl->props.power != FB_BLANK_UNBLANK || as3711_bl_update_status()
120 bl->props.fb_blank != FB_BLANK_UNBLANK || as3711_bl_update_status()
121 bl->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK)) as3711_bl_update_status()
237 struct backlight_properties props = {.type = BACKLIGHT_RAW,}; as3711_bl_register() local
241 props.max_brightness = max_brightness; as3711_bl_register()
247 &as3711_bl_ops, &props); as3711_bl_register()
253 bl->props.brightness = props.max_brightness; as3711_bl_register()
H A Dlp855x_bl.c261 if (bl->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK)) lp855x_bl_update_status()
262 bl->props.brightness = 0; lp855x_bl_update_status()
265 int br = bl->props.brightness; lp855x_bl_update_status()
266 int max_br = bl->props.max_brightness; lp855x_bl_update_status()
271 u8 val = bl->props.brightness; lp855x_bl_update_status()
287 struct backlight_properties props; lp855x_backlight_register() local
291 props.type = BACKLIGHT_PLATFORM; lp855x_backlight_register()
292 props.max_brightness = MAX_BRIGHTNESS; lp855x_backlight_register()
294 if (pdata->initial_brightness > props.max_brightness) lp855x_backlight_register()
295 pdata->initial_brightness = props.max_brightness; lp855x_backlight_register()
297 props.brightness = pdata->initial_brightness; lp855x_backlight_register()
300 &lp855x_bl_ops, &props); lp855x_backlight_register()
471 lp->bl->props.brightness = 0; lp855x_remove()
H A Dadp5520_bl.c69 int brightness = bl->props.brightness; adp5520_bl_update_status()
71 if (bl->props.power != FB_BLANK_UNBLANK) adp5520_bl_update_status()
74 if (bl->props.fb_blank != FB_BLANK_UNBLANK) adp5520_bl_update_status()
291 struct backlight_properties props; adp5520_bl_probe() local
313 memset(&props, 0, sizeof(struct backlight_properties)); adp5520_bl_probe()
314 props.type = BACKLIGHT_RAW; adp5520_bl_probe()
315 props.max_brightness = ADP5020_MAX_BRIGHTNESS; adp5520_bl_probe()
318 &props); adp5520_bl_probe()
324 bl->props.brightness = ADP5020_MAX_BRIGHTNESS; adp5520_bl_probe()
H A Dsky81452-backlight.c62 const unsigned int brightness = (unsigned int)bd->props.brightness; sky81452_bl_update_status()
268 struct backlight_properties props; sky81452_bl_probe() local
293 memset(&props, 0, sizeof(props)); sky81452_bl_probe()
294 props.max_brightness = SKY81452_MAX_BRIGHTNESS, sky81452_bl_probe()
297 &sky81452_bl_ops, &props); sky81452_bl_probe()
322 bd->props.power = FB_BLANK_UNBLANK; sky81452_bl_remove()
323 bd->props.brightness = 0; sky81452_bl_remove()
H A Dams369fg06.c346 ret = ams369fg06_gamma_ctl(lcd, bd->props.brightness); ams369fg06_power_on()
416 int brightness = bd->props.brightness; ams369fg06_set_brightness()
420 brightness > bd->props.max_brightness) { ams369fg06_set_brightness()
426 ret = ams369fg06_gamma_ctl(lcd, bd->props.brightness); ams369fg06_set_brightness()
450 struct backlight_properties props; ams369fg06_probe() local
481 memset(&props, 0, sizeof(struct backlight_properties)); ams369fg06_probe()
482 props.type = BACKLIGHT_RAW; ams369fg06_probe()
483 props.max_brightness = MAX_BRIGHTNESS; ams369fg06_probe()
487 &ams369fg06_backlight_ops, &props); ams369fg06_probe()
491 bd->props.brightness = DEFAULT_BRIGHTNESS; ams369fg06_probe()
H A Dpwm_bl.c95 int brightness = bl->props.brightness; pwm_backlight_update_status()
98 if (bl->props.power != FB_BLANK_UNBLANK || pwm_backlight_update_status()
99 bl->props.fb_blank != FB_BLANK_UNBLANK || pwm_backlight_update_status()
100 bl->props.state & BL_CORE_FBBLANK) pwm_backlight_update_status()
199 struct backlight_properties props; pwm_backlight_probe() local
307 memset(&props, 0, sizeof(struct backlight_properties)); pwm_backlight_probe()
308 props.type = BACKLIGHT_RAW; pwm_backlight_probe()
309 props.max_brightness = data->max_brightness; pwm_backlight_probe()
311 &pwm_backlight_ops, &props); pwm_backlight_probe()
325 bl->props.brightness = data->dft_brightness; pwm_backlight_probe()
H A Dcorgi_lcd.c428 int intensity = bd->props.brightness; corgi_bl_update_status()
430 if (bd->props.power != FB_BLANK_UNBLANK) corgi_bl_update_status()
433 if (bd->props.fb_blank != FB_BLANK_UNBLANK) corgi_bl_update_status()
536 struct backlight_properties props; corgi_lcd_probe() local
560 memset(&props, 0, sizeof(struct backlight_properties)); corgi_lcd_probe()
561 props.type = BACKLIGHT_RAW; corgi_lcd_probe()
562 props.max_brightness = pdata->max_intensity; corgi_lcd_probe()
565 &props); corgi_lcd_probe()
569 lcd->bl_dev->props.brightness = pdata->default_intensity; corgi_lcd_probe()
570 lcd->bl_dev->props.power = FB_BLANK_UNBLANK; corgi_lcd_probe()
591 lcd->bl_dev->props.power = FB_BLANK_UNBLANK; corgi_lcd_remove()
592 lcd->bl_dev->props.brightness = 0; corgi_lcd_remove()
H A Dld9040.c647 int ret = 0, brightness = bd->props.brightness; ld9040_set_brightness()
651 brightness > bd->props.max_brightness) { ld9040_set_brightness()
657 ret = ld9040_gamma_ctl(lcd, bd->props.brightness); ld9040_set_brightness()
681 struct backlight_properties props; ld9040_probe() local
720 memset(&props, 0, sizeof(struct backlight_properties)); ld9040_probe()
721 props.type = BACKLIGHT_RAW; ld9040_probe()
722 props.max_brightness = MAX_BRIGHTNESS; ld9040_probe()
725 lcd, &ld9040_backlight_ops, &props); ld9040_probe()
729 bd->props.brightness = MAX_BRIGHTNESS; ld9040_probe()
H A Dtps65217_bl.c80 int brightness = bl->props.brightness; tps65217_bl_update_status()
82 if (bl->props.state & BL_CORE_SUSPENDED) tps65217_bl_update_status()
85 if ((bl->props.power != FB_BLANK_UNBLANK) || tps65217_bl_update_status()
86 (bl->props.fb_blank != FB_BLANK_UNBLANK)) tps65217_bl_update_status()
316 tps65217_bl->bl->props.brightness = pdata->dft_brightness; tps65217_bl_probe()
H A Ds6e63m0.c536 ret = s6e63m0_gamma_ctl(lcd, bd->props.brightness); s6e63m0_power_on()
602 int ret = 0, brightness = bd->props.brightness; s6e63m0_set_brightness()
606 brightness > bd->props.max_brightness) { s6e63m0_set_brightness()
612 ret = s6e63m0_gamma_ctl(lcd, bd->props.brightness); s6e63m0_set_brightness()
671 brightness = bd->props.brightness; s6e63m0_sysfs_store_gamma_mode()
714 struct backlight_properties props; s6e63m0_probe() local
745 memset(&props, 0, sizeof(struct backlight_properties)); s6e63m0_probe()
746 props.type = BACKLIGHT_RAW; s6e63m0_probe()
747 props.max_brightness = MAX_BRIGHTNESS; s6e63m0_probe()
751 &props); s6e63m0_probe()
755 bd->props.brightness = MAX_BRIGHTNESS; s6e63m0_probe()
H A Dadp8860_bl.c365 int brightness = bl->props.brightness; adp8860_bl_update_status()
367 if (bl->props.power != FB_BLANK_UNBLANK) adp8860_bl_update_status()
370 if (bl->props.fb_blank != FB_BLANK_UNBLANK) adp8860_bl_update_status()
663 struct backlight_properties props; adp8860_probe() local
709 memset(&props, 0, sizeof(props)); adp8860_probe()
710 props.type = BACKLIGHT_RAW; adp8860_probe()
711 props.max_brightness = ADP8860_MAX_BRIGHTNESS; adp8860_probe()
717 &client->dev, data, &adp8860_bl_ops, &props); adp8860_probe()
723 bl->props.brightness = ADP8860_MAX_BRIGHTNESS; adp8860_probe()
H A Dadp8870_bl.c403 int brightness = bl->props.brightness; adp8870_bl_update_status()
405 if (bl->props.power != FB_BLANK_UNBLANK) adp8870_bl_update_status()
408 if (bl->props.fb_blank != FB_BLANK_UNBLANK) adp8870_bl_update_status()
849 struct backlight_properties props; adp8870_probe() local
890 memset(&props, 0, sizeof(props)); adp8870_probe()
891 props.type = BACKLIGHT_RAW; adp8870_probe()
892 props.max_brightness = props.brightness = ADP8870_MAX_BRIGHTNESS; adp8870_probe()
895 &client->dev, data, &adp8870_bl_ops, &props); adp8870_probe()
H A Dlcd.c177 return sprintf(buf, "%d\n", ld->props.max_contrast); max_contrast_show()
/linux-4.1.27/arch/powerpc/platforms/powermac/
H A Dbacklight.c107 struct backlight_properties *props; pmac_backlight_key_worker() local
110 props = &pmac_backlight->props; pmac_backlight_key_worker()
112 brightness = props->brightness + pmac_backlight_key_worker()
114 (props->max_brightness / 15)); pmac_backlight_key_worker()
118 else if (brightness > props->max_brightness) pmac_backlight_key_worker()
119 brightness = props->max_brightness; pmac_backlight_key_worker()
121 props->brightness = brightness; pmac_backlight_key_worker()
146 struct backlight_properties *props; __pmac_backlight_set_legacy_brightness() local
148 props = &pmac_backlight->props; __pmac_backlight_set_legacy_brightness()
149 props->brightness = brightness * __pmac_backlight_set_legacy_brightness()
150 (props->max_brightness + 1) / __pmac_backlight_set_legacy_brightness()
153 if (props->brightness > props->max_brightness) __pmac_backlight_set_legacy_brightness()
154 props->brightness = props->max_brightness; __pmac_backlight_set_legacy_brightness()
155 else if (props->brightness < 0) __pmac_backlight_set_legacy_brightness()
156 props->brightness = 0; __pmac_backlight_set_legacy_brightness()
195 struct backlight_properties *props; pmac_backlight_get_legacy_brightness() local
197 props = &pmac_backlight->props; pmac_backlight_get_legacy_brightness()
199 result = props->brightness * pmac_backlight_get_legacy_brightness()
201 (props->max_brightness + 1); pmac_backlight_get_legacy_brightness()
/linux-4.1.27/net/ipv4/
H A Dxfrm4_state.c20 x->props.flags |= XFRM_STATE_NOPMTUDISC; xfrm4_init_flags()
49 x->props.saddr = tmpl->saddr; xfrm4_init_temprop()
50 if (x->props.saddr.a4 == 0) xfrm4_init_temprop()
51 x->props.saddr.a4 = saddr->a4; xfrm4_init_temprop()
52 x->props.mode = tmpl->mode; xfrm4_init_temprop()
53 x->props.reqid = tmpl->reqid; xfrm4_init_temprop()
54 x->props.family = AF_INET; xfrm4_init_temprop()
H A Dipcomp.c70 t->id.spi = x->props.saddr.a4; ipcomp_tunnel_create()
73 t->props.family = AF_INET; ipcomp_tunnel_create()
74 t->props.mode = x->props.mode; ipcomp_tunnel_create()
75 t->props.saddr.a4 = x->props.saddr.a4; ipcomp_tunnel_create()
76 t->props.flags = x->props.flags; ipcomp_tunnel_create()
77 t->props.extra_flags = x->props.extra_flags; ipcomp_tunnel_create()
106 x->props.saddr.a4, IPPROTO_IPIP, AF_INET); ipcomp_tunnel_attach()
126 x->props.header_len = 0; ipcomp4_init_state()
127 switch (x->props.mode) { ipcomp4_init_state()
131 x->props.header_len += sizeof(struct iphdr); ipcomp4_init_state()
141 if (x->props.mode == XFRM_MODE_TUNNEL) { ipcomp4_init_state()
H A Dxfrm4_mode_tunnel.c36 skb_set_network_header(skb, -x->props.header_len); xfrm4_mode_tunnel_output()
48 if (x->props.extra_flags & XFRM_SA_XFLAG_DONT_ENCAP_DSCP) xfrm4_mode_tunnel_output()
55 flags = x->props.flags; xfrm4_mode_tunnel_output()
64 top_iph->saddr = x->props.saddr.a4; xfrm4_mode_tunnel_output()
85 if (x->props.flags & XFRM_STATE_DECAP_DSCP) xfrm4_mode_tunnel_input()
87 if (!(x->props.flags & XFRM_STATE_NOECN)) xfrm4_mode_tunnel_input()
H A Desp4.c166 if (x->props.flags & XFRM_STATE_ESN) { esp_output()
246 if ((x->props.flags & XFRM_STATE_ESN)) { esp_output()
316 if (iph->saddr != x->props.saddr.a4 || esp_input_done2()
339 if (x->props.mode == XFRM_MODE_TRANSPORT) esp_input_done2()
345 if (x->props.mode == XFRM_MODE_TUNNEL) esp_input_done2()
406 if (x->props.flags & XFRM_STATE_ESN) { esp_input()
434 if ((x->props.flags & XFRM_STATE_ESN)) { esp_input()
463 switch (x->props.mode) { esp4_get_mtu()
475 return ((mtu - x->props.header_len - crypto_aead_authsize(aead) - esp4_get_mtu()
562 if ((x->props.flags & XFRM_STATE_ESN)) { esp_init_authenc()
652 x->props.header_len = sizeof(struct ip_esp_hdr) + esp_init_state()
654 if (x->props.mode == XFRM_MODE_TUNNEL) esp_init_state()
655 x->props.header_len += sizeof(struct iphdr); esp_init_state()
656 else if (x->props.mode == XFRM_MODE_BEET && x->sel.family != AF_INET6) esp_init_state()
657 x->props.header_len += IPV4_BEET_PHMAXLEN; esp_init_state()
665 x->props.header_len += sizeof(struct udphdr); esp_init_state()
668 x->props.header_len += sizeof(struct udphdr) + 2 * sizeof(u32); esp_init_state()
674 x->props.trailer_len = align + 1 + crypto_aead_authsize(aead); esp_init_state()
H A Dah4.c174 if (x->props.flags & XFRM_STATE_ESN) { ah_output()
213 if (x->props.flags & XFRM_STATE_ALIGN4) ah_output()
225 if (x->props.flags & XFRM_STATE_ESN) { ah_output()
287 if (x->props.mode == XFRM_MODE_TUNNEL) ah_input_done()
327 if (x->props.flags & XFRM_STATE_ALIGN4) { ah_input()
356 if (x->props.flags & XFRM_STATE_ESN) { ah_input()
393 if (x->props.flags & XFRM_STATE_ESN) { ah_input()
418 if (x->props.mode == XFRM_MODE_TUNNEL) ah_input()
508 if (x->props.flags & XFRM_STATE_ALIGN4) ah_init_state()
509 x->props.header_len = XFRM_ALIGN4(sizeof(struct ip_auth_hdr) + ah_init_state()
512 x->props.header_len = XFRM_ALIGN8(sizeof(struct ip_auth_hdr) + ah_init_state()
514 if (x->props.mode == XFRM_MODE_TUNNEL) ah_init_state()
515 x->props.header_len += sizeof(struct iphdr); ah_init_state()
H A Dxfrm4_tunnel.c28 if (x->props.mode != XFRM_MODE_TUNNEL) ipip_init_state()
34 x->props.header_len = sizeof(struct iphdr); ipip_init_state()
H A Dxfrm4_mode_beet.c50 skb_set_network_header(skb, -x->props.header_len - xfrm4_beet_output()
78 top_iph->saddr = x->props.saddr.a4; xfrm4_beet_output()
H A Dxfrm4_mode_transport.c26 skb_set_network_header(skb, -x->props.header_len); xfrm4_transport_output()
H A Dip_vti.c139 if (!x || x->props.mode != XFRM_MODE_TUNNEL || vti_state_check()
140 x->props.family != AF_INET) vti_state_check()
144 return xfrm_addr_equal(saddr, &x->props.saddr, AF_INET); vti_state_check()
/linux-4.1.27/drivers/macintosh/
H A Dvia-pmu-backlight.c74 int level = bd->props.brightness; __pmu_backlight_update_status()
77 if (bd->props.power != FB_BLANK_UNBLANK || __pmu_backlight_update_status()
78 bd->props.fb_blank != FB_BLANK_UNBLANK) __pmu_backlight_update_status()
141 struct backlight_properties props; pmu_backlight_init() local
159 memset(&props, 0, sizeof(struct backlight_properties)); pmu_backlight_init()
160 props.type = BACKLIGHT_PLATFORM; pmu_backlight_init()
161 props.max_brightness = FB_BACKLIGHT_LEVELS - 1; pmu_backlight_init()
163 &props); pmu_backlight_init()
171 level = bd->props.max_brightness; pmu_backlight_init()
181 bd->props.max_brightness / 15); pmu_backlight_init()
184 bd->props.brightness = level; pmu_backlight_init()
185 bd->props.power = FB_BLANK_UNBLANK; pmu_backlight_init()
/linux-4.1.27/drivers/hid/
H A Dhid-picolcd_backlight.c42 data->lcd_brightness = bdev->props.brightness & 0x0ff; picolcd_set_brightness()
43 data->lcd_power = bdev->props.power; picolcd_set_brightness()
67 struct backlight_properties props; picolcd_init_backlight() local
76 memset(&props, 0, sizeof(props)); picolcd_init_backlight()
77 props.type = BACKLIGHT_RAW; picolcd_init_backlight()
78 props.max_brightness = 0xff; picolcd_init_backlight()
80 &picolcd_blops, &props); picolcd_init_backlight()
85 bdev->props.brightness = 0xff; picolcd_init_backlight()
115 data->backlight->props.power = FB_BLANK_POWERDOWN; picolcd_suspend_backlight()
117 data->lcd_power = data->backlight->props.power = bl_power; picolcd_suspend_backlight()
H A Dhid-picolcd_lcd.c83 ldev->props.max_contrast = 0x0ff; picolcd_init_lcd()
/linux-4.1.27/drivers/video/fbdev/nvidia/
H A Dnv_backlight.c60 if (bd->props.power != FB_BLANK_UNBLANK || nvidia_bl_update_status()
61 bd->props.fb_blank != FB_BLANK_UNBLANK) nvidia_bl_update_status()
64 level = bd->props.brightness; nvidia_bl_update_status()
91 struct backlight_properties props; nvidia_bl_init() local
107 memset(&props, 0, sizeof(struct backlight_properties)); nvidia_bl_init()
108 props.type = BACKLIGHT_RAW; nvidia_bl_init()
109 props.max_brightness = FB_BACKLIGHT_LEVELS - 1; nvidia_bl_init()
111 &props); nvidia_bl_init()
123 bd->props.brightness = bd->props.max_brightness; nvidia_bl_init()
124 bd->props.power = FB_BLANK_UNBLANK; nvidia_bl_init()
/linux-4.1.27/drivers/infiniband/hw/amso1100/
H A Dc2_rnic.c123 static int c2_rnic_query(struct c2_dev *c2dev, struct ib_device_attr *props) c2_rnic_query() argument
159 props->fw_ver = c2_rnic_query()
163 memcpy(&props->sys_image_guid, c2dev->netdev->dev_addr, 6); c2_rnic_query()
164 props->max_mr_size = 0xFFFFFFFF; c2_rnic_query()
165 props->page_size_cap = ~(C2_MIN_PAGESIZE-1); c2_rnic_query()
166 props->vendor_id = be32_to_cpu(reply->vendor_id); c2_rnic_query()
167 props->vendor_part_id = be32_to_cpu(reply->part_number); c2_rnic_query()
168 props->hw_ver = be32_to_cpu(reply->hw_version); c2_rnic_query()
169 props->max_qp = be32_to_cpu(reply->max_qps); c2_rnic_query()
170 props->max_qp_wr = be32_to_cpu(reply->max_qp_depth); c2_rnic_query()
171 props->device_cap_flags = c2dev->device_cap_flags; c2_rnic_query()
172 props->max_sge = C2_MAX_SGES; c2_rnic_query()
173 props->max_sge_rd = C2_MAX_SGE_RD; c2_rnic_query()
174 props->max_cq = be32_to_cpu(reply->max_cqs); c2_rnic_query()
175 props->max_cqe = be32_to_cpu(reply->max_cq_depth); c2_rnic_query()
176 props->max_mr = be32_to_cpu(reply->max_mrs); c2_rnic_query()
177 props->max_pd = be32_to_cpu(reply->max_pds); c2_rnic_query()
178 props->max_qp_rd_atom = be32_to_cpu(reply->max_qp_ird); c2_rnic_query()
179 props->max_ee_rd_atom = 0; c2_rnic_query()
180 props->max_res_rd_atom = be32_to_cpu(reply->max_global_ird); c2_rnic_query()
181 props->max_qp_init_rd_atom = be32_to_cpu(reply->max_qp_ord); c2_rnic_query()
182 props->max_ee_init_rd_atom = 0; c2_rnic_query()
183 props->atomic_cap = IB_ATOMIC_NONE; c2_rnic_query()
184 props->max_ee = 0; c2_rnic_query()
185 props->max_rdd = 0; c2_rnic_query()
186 props->max_mw = be32_to_cpu(reply->max_mws); c2_rnic_query()
187 props->max_raw_ipv6_qp = 0; c2_rnic_query()
188 props->max_raw_ethy_qp = 0; c2_rnic_query()
189 props->max_mcast_grp = 0; c2_rnic_query()
190 props->max_mcast_qp_attach = 0; c2_rnic_query()
191 props->max_total_mcast_qp_attach = 0; c2_rnic_query()
192 props->max_ah = 0; c2_rnic_query()
193 props->max_fmr = 0; c2_rnic_query()
194 props->max_map_per_fmr = 0; c2_rnic_query()
195 props->max_srq = 0; c2_rnic_query()
196 props->max_srq_wr = 0; c2_rnic_query()
197 props->max_srq_sge = 0; c2_rnic_query()
198 props->max_pkeys = 0; c2_rnic_query()
199 props->local_ca_ack_delay = 0; c2_rnic_query()
579 err = c2_rnic_query(c2dev, &c2dev->props); c2_rnic_init()
H A Dc2_provider.c67 struct ib_device_attr *props) c2_query_device()
73 *props = c2dev->props; c2_query_device()
78 u8 port, struct ib_port_attr *props) c2_query_port()
82 props->max_mtu = IB_MTU_4096; c2_query_port()
83 props->lid = 0; c2_query_port()
84 props->lmc = 0; c2_query_port()
85 props->sm_lid = 0; c2_query_port()
86 props->sm_sl = 0; c2_query_port()
87 props->state = IB_PORT_ACTIVE; c2_query_port()
88 props->phys_state = 0; c2_query_port()
89 props->port_cap_flags = c2_query_port()
93 props->gid_tbl_len = 1; c2_query_port()
94 props->pkey_tbl_len = 1; c2_query_port()
95 props->qkey_viol_cntr = 0; c2_query_port()
96 props->active_width = 1; c2_query_port()
97 props->active_speed = IB_SPEED_SDR; c2_query_port()
518 return sprintf(buf, "%x\n", c2dev->props.hw_ver); show_rev()
527 (int) (c2dev->props.fw_ver >> 32), show_fw_ver()
528 (int) (c2dev->props.fw_ver >> 16) & 0xffff, show_fw_ver()
529 (int) (c2dev->props.fw_ver & 0xffff)); show_fw_ver()
66 c2_query_device(struct ib_device *ibdev, struct ib_device_attr *props) c2_query_device() argument
77 c2_query_port(struct ib_device *ibdev, u8 port, struct ib_port_attr *props) c2_query_port() argument
H A Dc2_pd.c77 c2dev->pd_table.max = c2dev->props.max_pd; c2_init_pd_table()
79 c2dev->pd_table.table = kmalloc(BITS_TO_LONGS(c2dev->props.max_pd) * c2_init_pd_table()
83 bitmap_zero(c2dev->pd_table.table, c2dev->props.max_pd); c2_init_pd_table()
/linux-4.1.27/drivers/infiniband/hw/usnic/
H A Dusnic_ib_verbs.c251 struct ib_device_attr *props) usnic_ib_query_device()
263 memset(props, 0, sizeof(*props)); usnic_ib_query_device()
266 memcpy(&props->sys_image_guid, &gid.global.interface_id, usnic_ib_query_device()
268 usnic_ib_fw_string_to_u64(&info.fw_version[0], &props->fw_ver); usnic_ib_query_device()
269 props->max_mr_size = USNIC_UIOM_MAX_MR_SIZE; usnic_ib_query_device()
270 props->page_size_cap = USNIC_UIOM_PAGE_SIZE; usnic_ib_query_device()
271 props->vendor_id = PCI_VENDOR_ID_CISCO; usnic_ib_query_device()
272 props->vendor_part_id = PCI_DEVICE_ID_CISCO_VIC_USPACE_NIC; usnic_ib_query_device()
273 props->hw_ver = us_ibdev->pdev->subsystem_device; usnic_ib_query_device()
276 props->max_qp = qp_per_vf * usnic_ib_query_device()
278 props->device_cap_flags = IB_DEVICE_PORT_ACTIVE_EVENT | usnic_ib_query_device()
280 props->max_cq = us_ibdev->vf_res_cnt[USNIC_VNIC_RES_TYPE_CQ] * usnic_ib_query_device()
282 props->max_pd = USNIC_UIOM_MAX_PD_CNT; usnic_ib_query_device()
283 props->max_mr = USNIC_UIOM_MAX_MR_CNT; usnic_ib_query_device()
284 props->local_ca_ack_delay = 0; usnic_ib_query_device()
285 props->max_pkeys = 0; usnic_ib_query_device()
286 props->atomic_cap = IB_ATOMIC_NONE; usnic_ib_query_device()
287 props->masked_atomic_cap = props->atomic_cap; usnic_ib_query_device()
288 props->max_qp_rd_atom = 0; usnic_ib_query_device()
289 props->max_qp_init_rd_atom = 0; usnic_ib_query_device()
290 props->max_res_rd_atom = 0; usnic_ib_query_device()
291 props->max_srq = 0; usnic_ib_query_device()
292 props->max_srq_wr = 0; usnic_ib_query_device()
293 props->max_srq_sge = 0; usnic_ib_query_device()
294 props->max_fast_reg_page_list_len = 0; usnic_ib_query_device()
295 props->max_mcast_grp = 0; usnic_ib_query_device()
296 props->max_mcast_qp_attach = 0; usnic_ib_query_device()
297 props->max_total_mcast_qp_attach = 0; usnic_ib_query_device()
298 props->max_map_per_fmr = 0; usnic_ib_query_device()
307 struct ib_port_attr *props) usnic_ib_query_port()
316 memset(props, 0, sizeof(*props)); usnic_ib_query_port()
318 props->lid = 0; usnic_ib_query_port()
319 props->lmc = 1; usnic_ib_query_port()
320 props->sm_lid = 0; usnic_ib_query_port()
321 props->sm_sl = 0; usnic_ib_query_port()
324 props->state = IB_PORT_DOWN; usnic_ib_query_port()
325 props->phys_state = 3; usnic_ib_query_port()
327 props->state = IB_PORT_INIT; usnic_ib_query_port()
328 props->phys_state = 4; usnic_ib_query_port()
330 props->state = IB_PORT_ACTIVE; usnic_ib_query_port()
331 props->phys_state = 5; usnic_ib_query_port()
334 props->port_cap_flags = 0; usnic_ib_query_port()
335 props->gid_tbl_len = 1; usnic_ib_query_port()
336 props->pkey_tbl_len = 1; usnic_ib_query_port()
337 props->bad_pkey_cntr = 0; usnic_ib_query_port()
338 props->qkey_viol_cntr = 0; usnic_ib_query_port()
339 eth_speed_to_ib_speed(cmd.speed, &props->active_speed, usnic_ib_query_port()
340 &props->active_width); usnic_ib_query_port()
341 props->max_mtu = IB_MTU_4096; usnic_ib_query_port()
342 props->active_mtu = iboe_get_mtu(us_ibdev->ufdev->mtu); usnic_ib_query_port()
344 props->max_msg_sz = us_ibdev->ufdev->mtu; usnic_ib_query_port()
345 props->max_vl_num = 1; usnic_ib_query_port()
250 usnic_ib_query_device(struct ib_device *ibdev, struct ib_device_attr *props) usnic_ib_query_device() argument
306 usnic_ib_query_port(struct ib_device *ibdev, u8 port, struct ib_port_attr *props) usnic_ib_query_port() argument
H A Dusnic_ib_verbs.h27 struct ib_device_attr *props);
29 struct ib_port_attr *props);
/linux-4.1.27/drivers/gpu/drm/shmobile/
H A Dshmob_drm_backlight.c25 int brightness = bdev->props.brightness; shmob_drm_backlight_update()
27 if (bdev->props.power != FB_BLANK_UNBLANK || shmob_drm_backlight_update()
28 bdev->props.state & BL_CORE_SUSPENDED) shmob_drm_backlight_update()
54 scon->backlight->props.power = mode == DRM_MODE_DPMS_ON shmob_drm_backlight_dpms()
78 backlight->props.max_brightness = bdata->max_brightness; shmob_drm_backlight_init()
79 backlight->props.brightness = bdata->max_brightness; shmob_drm_backlight_init()
80 backlight->props.power = FB_BLANK_POWERDOWN; shmob_drm_backlight_init()
/linux-4.1.27/drivers/infiniband/hw/mlx5/
H A Dmain.c66 struct ib_device_attr *props) mlx5_ib_query_device()
90 memset(props, 0, sizeof(*props)); mlx5_ib_query_device()
92 props->fw_ver = ((u64)fw_rev_maj(dev->mdev) << 32) | mlx5_ib_query_device()
95 props->device_cap_flags = IB_DEVICE_CHANGE_PHY_PORT | mlx5_ib_query_device()
101 props->device_cap_flags |= IB_DEVICE_BAD_PKEY_CNTR; mlx5_ib_query_device()
103 props->device_cap_flags |= IB_DEVICE_BAD_QKEY_CNTR; mlx5_ib_query_device()
105 props->device_cap_flags |= IB_DEVICE_AUTO_PATH_MIG; mlx5_ib_query_device()
106 props->device_cap_flags |= IB_DEVICE_LOCAL_DMA_LKEY; mlx5_ib_query_device()
108 props->device_cap_flags |= IB_DEVICE_XRC; mlx5_ib_query_device()
109 props->device_cap_flags |= IB_DEVICE_MEM_MGT_EXTENSIONS; mlx5_ib_query_device()
111 props->device_cap_flags |= IB_DEVICE_SIGNATURE_HANDOVER; mlx5_ib_query_device()
113 props->sig_prot_cap = IB_PROT_T10DIF_TYPE_1 | mlx5_ib_query_device()
116 props->sig_guard_cap = IB_GUARD_T10DIF_CRC | mlx5_ib_query_device()
120 props->device_cap_flags |= IB_DEVICE_BLOCK_MULTICAST_LOOPBACK; mlx5_ib_query_device()
122 props->vendor_id = be32_to_cpup((__be32 *)(out_mad->data + 36)) & mlx5_ib_query_device()
124 props->vendor_part_id = be16_to_cpup((__be16 *)(out_mad->data + 30)); mlx5_ib_query_device()
125 props->hw_ver = be32_to_cpup((__be32 *)(out_mad->data + 32)); mlx5_ib_query_device()
126 memcpy(&props->sys_image_guid, out_mad->data + 4, 8); mlx5_ib_query_device()
128 props->max_mr_size = ~0ull; mlx5_ib_query_device()
129 props->page_size_cap = gen->min_page_sz; mlx5_ib_query_device()
130 props->max_qp = 1 << gen->log_max_qp; mlx5_ib_query_device()
131 props->max_qp_wr = gen->max_wqes; mlx5_ib_query_device()
135 props->max_sge = min(max_rq_sg, max_sq_sg); mlx5_ib_query_device()
136 props->max_cq = 1 << gen->log_max_cq; mlx5_ib_query_device()
137 props->max_cqe = gen->max_cqes - 1; mlx5_ib_query_device()
138 props->max_mr = 1 << gen->log_max_mkey; mlx5_ib_query_device()
139 props->max_pd = 1 << gen->log_max_pd; mlx5_ib_query_device()
140 props->max_qp_rd_atom = 1 << gen->log_max_ra_req_qp; mlx5_ib_query_device()
141 props->max_qp_init_rd_atom = 1 << gen->log_max_ra_res_qp; mlx5_ib_query_device()
142 props->max_srq = 1 << gen->log_max_srq; mlx5_ib_query_device()
143 props->max_srq_wr = gen->max_srq_wqes - 1; mlx5_ib_query_device()
144 props->local_ca_ack_delay = gen->local_ca_ack_delay; mlx5_ib_query_device()
145 props->max_res_rd_atom = props->max_qp_rd_atom * props->max_qp; mlx5_ib_query_device()
146 props->max_srq_sge = max_rq_sg - 1; mlx5_ib_query_device()
147 props->max_fast_reg_page_list_len = (unsigned int)-1; mlx5_ib_query_device()
148 props->local_ca_ack_delay = gen->local_ca_ack_delay; mlx5_ib_query_device()
149 props->atomic_cap = IB_ATOMIC_NONE; mlx5_ib_query_device()
150 props->masked_atomic_cap = IB_ATOMIC_NONE; mlx5_ib_query_device()
151 props->max_pkeys = be16_to_cpup((__be16 *)(out_mad->data + 28)); mlx5_ib_query_device()
152 props->max_mcast_grp = 1 << gen->log_max_mcg; mlx5_ib_query_device()
153 props->max_mcast_qp_attach = gen->max_qp_mcg; mlx5_ib_query_device()
154 props->max_total_mcast_qp_attach = props->max_mcast_qp_attach * mlx5_ib_query_device()
155 props->max_mcast_grp; mlx5_ib_query_device()
156 props->max_map_per_fmr = INT_MAX; /* no limit in ConnectIB */ mlx5_ib_query_device()
160 props->device_cap_flags |= IB_DEVICE_ON_DEMAND_PAGING; mlx5_ib_query_device()
161 props->odp_caps = dev->odp_caps; mlx5_ib_query_device()
172 struct ib_port_attr *props) mlx5_ib_query_port()
192 memset(props, 0, sizeof(*props)); mlx5_ib_query_port()
205 props->lid = be16_to_cpup((__be16 *)(out_mad->data + 16)); mlx5_ib_query_port()
206 props->lmc = out_mad->data[34] & 0x7; mlx5_ib_query_port()
207 props->sm_lid = be16_to_cpup((__be16 *)(out_mad->data + 18)); mlx5_ib_query_port()
208 props->sm_sl = out_mad->data[36] & 0xf; mlx5_ib_query_port()
209 props->state = out_mad->data[32] & 0xf; mlx5_ib_query_port()
210 props->phys_state = out_mad->data[33] >> 4; mlx5_ib_query_port()
211 props->port_cap_flags = be32_to_cpup((__be32 *)(out_mad->data + 20)); mlx5_ib_query_port()
212 props->gid_tbl_len = out_mad->data[50]; mlx5_ib_query_port()
213 props->max_msg_sz = 1 << gen->log_max_msg; mlx5_ib_query_port()
214 props->pkey_tbl_len = gen->port[port - 1].pkey_table_len; mlx5_ib_query_port()
215 props->bad_pkey_cntr = be16_to_cpup((__be16 *)(out_mad->data + 46)); mlx5_ib_query_port()
216 props->qkey_viol_cntr = be16_to_cpup((__be16 *)(out_mad->data + 48)); mlx5_ib_query_port()
217 props->active_width = out_mad->data[31] & 0xf; mlx5_ib_query_port()
218 props->active_speed = out_mad->data[35] >> 4; mlx5_ib_query_port()
219 props->max_mtu = out_mad->data[41] & 0xf; mlx5_ib_query_port()
220 props->active_mtu = out_mad->data[36] >> 4; mlx5_ib_query_port()
221 props->subnet_timeout = out_mad->data[51] & 0x1f; mlx5_ib_query_port()
222 props->max_vl_num = out_mad->data[37] >> 4; mlx5_ib_query_port()
223 props->init_type_reply = out_mad->data[41] >> 4; mlx5_ib_query_port()
226 if (props->port_cap_flags & IB_PORT_EXTENDED_SPEEDS_SUP) { mlx5_ib_query_port()
231 props->active_speed = 16; /* FDR */ mlx5_ib_query_port()
234 props->active_speed = 32; /* EDR */ mlx5_ib_query_port()
240 if (props->active_speed == 4) { mlx5_ib_query_port()
254 props->active_speed = 8; mlx5_ib_query_port()
336 struct ib_device_modify *props) mlx5_ib_modify_device()
353 memcpy(&in, props->node_desc, 64); mlx5_ib_modify_device()
359 memcpy(ibdev->node_desc, props->node_desc, 64); mlx5_ib_modify_device()
365 struct ib_port_modify *props) mlx5_ib_modify_port()
378 tmp = (attr.port_cap_flags | props->set_port_cap_mask) & mlx5_ib_modify_port()
379 ~props->clr_port_cap_mask; mlx5_ib_modify_port()
65 mlx5_ib_query_device(struct ib_device *ibdev, struct ib_device_attr *props) mlx5_ib_query_device() argument
171 mlx5_ib_query_port(struct ib_device *ibdev, u8 port, struct ib_port_attr *props) mlx5_ib_query_port() argument
335 mlx5_ib_modify_device(struct ib_device *ibdev, int mask, struct ib_device_modify *props) mlx5_ib_modify_device() argument
364 mlx5_ib_modify_port(struct ib_device *ibdev, u8 port, int mask, struct ib_port_modify *props) mlx5_ib_modify_port() argument
/linux-4.1.27/net/ipv6/
H A Dxfrm6_mode_tunnel.c40 skb_set_network_header(skb, -x->props.header_len); xfrm6_mode_tunnel_output()
52 if (x->props.extra_flags & XFRM_SA_XFLAG_DONT_ENCAP_DSCP) xfrm6_mode_tunnel_output()
57 if (x->props.flags & XFRM_STATE_NOECN) xfrm6_mode_tunnel_output()
61 top_iph->saddr = *(struct in6_addr *)&x->props.saddr; xfrm6_mode_tunnel_output()
85 if (x->props.flags & XFRM_STATE_DECAP_DSCP) xfrm6_mode_tunnel_input()
88 if (!(x->props.flags & XFRM_STATE_NOECN)) xfrm6_mode_tunnel_input()
H A Dipcomp6.c95 t->id.spi = xfrm6_tunnel_alloc_spi(net, (xfrm_address_t *)&x->props.saddr); ipcomp6_tunnel_create()
101 t->props.family = AF_INET6; ipcomp6_tunnel_create()
102 t->props.mode = x->props.mode; ipcomp6_tunnel_create()
103 memcpy(t->props.saddr.a6, x->props.saddr.a6, sizeof(struct in6_addr)); ipcomp6_tunnel_create()
129 spi = xfrm6_tunnel_spi_lookup(net, (xfrm_address_t *)&x->props.saddr); ipcomp6_tunnel_attach()
153 x->props.header_len = 0; ipcomp6_init_state()
154 switch (x->props.mode) { ipcomp6_init_state()
158 x->props.header_len += sizeof(struct ipv6hdr); ipcomp6_init_state()
168 if (x->props.mode == XFRM_MODE_TUNNEL) { ipcomp6_init_state()
H A Dxfrm6_state.c50 memcpy(&x->props.saddr, &tmpl->saddr, sizeof(x->props.saddr)); xfrm6_init_temprop()
51 if (ipv6_addr_any((struct in6_addr *)&x->props.saddr)) xfrm6_init_temprop()
52 memcpy(&x->props.saddr, saddr, sizeof(x->props.saddr)); xfrm6_init_temprop()
53 x->props.mode = tmpl->mode; xfrm6_init_temprop()
54 x->props.reqid = tmpl->reqid; xfrm6_init_temprop()
55 x->props.family = AF_INET6; xfrm6_init_temprop()
98 switch (v->props.mode) { __xfrm6_state_sort_cmp()
H A Dxfrm6_mode_transport.c31 skb_set_mac_header(skb, (prevhdr - x->props.header_len) - skb->data); xfrm6_transport_output()
32 skb_set_network_header(skb, -x->props.header_len); xfrm6_transport_output()
H A Desp6.c193 if (x->props.flags & XFRM_STATE_ESN) { esp6_output()
238 if ((x->props.flags & XFRM_STATE_ESN)) { esp6_output()
299 if (x->props.mode == XFRM_MODE_TUNNEL) esp_input_done2()
361 if (x->props.flags & XFRM_STATE_ESN) { esp6_input()
388 if ((x->props.flags & XFRM_STATE_ESN)) { esp6_input()
417 if (x->props.mode != XFRM_MODE_TUNNEL) esp6_get_mtu()
422 return ((mtu - x->props.header_len - crypto_aead_authsize(aead) - esp6_get_mtu()
504 if ((x->props.flags & XFRM_STATE_ESN)) { esp_init_authenc()
597 x->props.header_len = sizeof(struct ip_esp_hdr) + esp6_init_state()
599 switch (x->props.mode) { esp6_init_state()
602 x->props.header_len += IPV4_BEET_PHMAXLEN + esp6_init_state()
608 x->props.header_len += sizeof(struct ipv6hdr); esp6_init_state()
615 x->props.trailer_len = align + 1 + crypto_aead_authsize(aead); esp6_init_state()
H A Dxfrm6_mode_ro.c50 skb_set_mac_header(skb, (prevhdr - x->props.header_len) - skb->data); xfrm6_ro_output()
51 skb_set_network_header(skb, -x->props.header_len); xfrm6_ro_output()
H A Dmip6.c181 WARN_ON(len != x->props.header_len); mip6_destopt_output()
182 dstopt->hdrlen = (x->props.header_len >> 3) - 1; mip6_destopt_output()
318 if (x->props.mode != XFRM_MODE_ROUTEOPTIMIZATION) { mip6_destopt_init_state()
320 __func__, XFRM_MODE_ROUTEOPTIMIZATION, x->props.mode); mip6_destopt_init_state()
324 x->props.header_len = sizeof(struct ipv6_destopt_hdr) + mip6_destopt_init_state()
327 WARN_ON(x->props.header_len != 24); mip6_destopt_init_state()
385 rt2->rt_hdr.hdrlen = (x->props.header_len >> 3) - 1; mip6_rthdr_output()
453 if (x->props.mode != XFRM_MODE_ROUTEOPTIMIZATION) { mip6_rthdr_init_state()
455 __func__, XFRM_MODE_ROUTEOPTIMIZATION, x->props.mode); mip6_rthdr_init_state()
459 x->props.header_len = sizeof(struct rt2_hdr); mip6_rthdr_init_state()
H A Dxfrm6_mode_beet.c51 skb_set_network_header(skb, -x->props.header_len - hdr_len); xfrm6_beet_output()
75 top_iph->saddr = *(struct in6_addr *)&x->props.saddr; xfrm6_beet_output()
H A Dah6.c366 if (x->props.flags & XFRM_STATE_ESN) { ah6_output()
428 if (x->props.flags & XFRM_STATE_ESN) { ah6_output()
490 if (x->props.mode == XFRM_MODE_TUNNEL) ah6_input_done()
573 if (x->props.flags & XFRM_STATE_ESN) { ah6_input()
606 if (x->props.flags & XFRM_STATE_ESN) { ah6_input()
633 if (x->props.mode == XFRM_MODE_TUNNEL) ah6_input()
716 x->props.header_len = XFRM_ALIGN8(sizeof(struct ip_auth_hdr) + ah6_init_state()
718 switch (x->props.mode) { ah6_init_state()
723 x->props.header_len += sizeof(struct ipv6hdr); ah6_init_state()
H A Dxfrm6_input.c110 if ((!i || (x->props.flags & XFRM_STATE_WILDRECV)) && xfrm6_input_addr()
H A Dxfrm6_tunnel.c285 if (x->props.mode != XFRM_MODE_TUNNEL) xfrm6_tunnel_init_state()
291 x->props.header_len = sizeof(struct ipv6hdr); xfrm6_tunnel_init_state()
300 xfrm6_tunnel_free_spi(net, (xfrm_address_t *)&x->props.saddr); xfrm6_tunnel_destroy()
H A Dxfrm6_output.c160 if (x->props.mode == XFRM_MODE_TUNNEL && __xfrm6_output()
H A Dip6_vti.c410 if (!x || x->props.mode != XFRM_MODE_TUNNEL || vti6_state_check()
411 x->props.family != AF_INET6) vti6_state_check()
415 return xfrm_addr_equal(saddr, &x->props.saddr, AF_INET6); vti6_state_check()
455 if (!ip6_tnl_xmit_ctl(t, (const struct in6_addr *)&x->props.saddr, vti6_xmit()
/linux-4.1.27/drivers/gpu/drm/nouveau/dispnv04/
H A Doverlay.c50 } props; member in struct:nouveau_plane
232 if (property == nv_plane->props.colorkey) nv_set_property()
234 else if (property == nv_plane->props.contrast) nv_set_property()
236 else if (property == nv_plane->props.brightness) nv_set_property()
238 else if (property == nv_plane->props.hue) nv_set_property()
240 else if (property == nv_plane->props.saturation) nv_set_property()
242 else if (property == nv_plane->props.iturbt_709) nv_set_property()
287 plane->props.colorkey = drm_property_create_range( nv10_overlay_init()
289 plane->props.contrast = drm_property_create_range( nv10_overlay_init()
291 plane->props.brightness = drm_property_create_range( nv10_overlay_init()
293 plane->props.hue = drm_property_create_range( nv10_overlay_init()
295 plane->props.saturation = drm_property_create_range( nv10_overlay_init()
297 plane->props.iturbt_709 = drm_property_create_range( nv10_overlay_init()
299 if (!plane->props.colorkey || nv10_overlay_init()
300 !plane->props.contrast || nv10_overlay_init()
301 !plane->props.brightness || nv10_overlay_init()
302 !plane->props.hue || nv10_overlay_init()
303 !plane->props.saturation || nv10_overlay_init()
304 !plane->props.iturbt_709) nv10_overlay_init()
309 plane->props.colorkey, plane->colorkey); nv10_overlay_init()
313 plane->props.contrast, plane->contrast); nv10_overlay_init()
317 plane->props.brightness, plane->brightness); nv10_overlay_init()
321 plane->props.hue, plane->hue); nv10_overlay_init()
325 plane->props.saturation, plane->saturation); nv10_overlay_init()
329 plane->props.iturbt_709, plane->iturbt_709); nv10_overlay_init()
469 plane->props.colorkey = drm_property_create_range( nv04_overlay_init()
471 plane->props.brightness = drm_property_create_range( nv04_overlay_init()
473 if (!plane->props.colorkey || nv04_overlay_init()
474 !plane->props.brightness) nv04_overlay_init()
479 plane->props.colorkey, plane->colorkey); nv04_overlay_init()
483 plane->props.brightness, plane->brightness); nv04_overlay_init()
/linux-4.1.27/drivers/video/fbdev/aty/
H A Dradeon_backlight.c63 if (bd->props.power != FB_BLANK_UNBLANK || radeon_bl_update_status()
64 bd->props.fb_blank != FB_BLANK_UNBLANK) radeon_bl_update_status()
67 level = bd->props.brightness; radeon_bl_update_status()
132 struct backlight_properties props; radeonfb_bl_init() local
154 memset(&props, 0, sizeof(struct backlight_properties)); radeonfb_bl_init()
155 props.type = BACKLIGHT_RAW; radeonfb_bl_init()
156 props.max_brightness = FB_BACKLIGHT_LEVELS - 1; radeonfb_bl_init()
158 &radeon_bl_data, &props); radeonfb_bl_init()
188 bd->props.brightness = bd->props.max_brightness; radeonfb_bl_init()
189 bd->props.power = FB_BLANK_UNBLANK; radeonfb_bl_init()
H A Daty128fb.c1803 if (bd->props.power != FB_BLANK_UNBLANK || aty128_bl_update_status()
1804 bd->props.fb_blank != FB_BLANK_UNBLANK || aty128_bl_update_status()
1808 level = bd->props.brightness; aty128_bl_update_status()
1859 info->bl_dev->props.power = power; aty128_bl_set_power()
1866 struct backlight_properties props; aty128_bl_init() local
1882 memset(&props, 0, sizeof(struct backlight_properties)); aty128_bl_init()
1883 props.type = BACKLIGHT_RAW; aty128_bl_init()
1884 props.max_brightness = FB_BACKLIGHT_LEVELS - 1; aty128_bl_init()
1886 &props); aty128_bl_init()
1898 bd->props.brightness = bd->props.max_brightness; aty128_bl_init()
1899 bd->props.power = FB_BLANK_UNBLANK; aty128_bl_init()
/linux-4.1.27/drivers/infiniband/hw/cxgb4/
H A Dprovider.c305 struct ib_device_attr *props) c4iw_query_device()
312 memset(props, 0, sizeof *props); c4iw_query_device()
313 memcpy(&props->sys_image_guid, dev->rdev.lldi.ports[0]->dev_addr, 6); c4iw_query_device()
314 props->hw_ver = CHELSIO_CHIP_RELEASE(dev->rdev.lldi.adapter_type); c4iw_query_device()
315 props->fw_ver = dev->rdev.lldi.fw_vers; c4iw_query_device()
316 props->device_cap_flags = dev->device_cap_flags; c4iw_query_device()
317 props->page_size_cap = T4_PAGESIZE_MASK; c4iw_query_device()
318 props->vendor_id = (u32)dev->rdev.lldi.pdev->vendor; c4iw_query_device()
319 props->vendor_part_id = (u32)dev->rdev.lldi.pdev->device; c4iw_query_device()
320 props->max_mr_size = T4_MAX_MR_SIZE; c4iw_query_device()
321 props->max_qp = dev->rdev.lldi.vr->qp.size / 2; c4iw_query_device()
322 props->max_qp_wr = dev->rdev.hw_queue.t4_max_qp_depth; c4iw_query_device()
323 props->max_sge = T4_MAX_RECV_SGE; c4iw_query_device()
324 props->max_sge_rd = 1; c4iw_query_device()
325 props->max_res_rd_atom = dev->rdev.lldi.max_ird_adapter; c4iw_query_device()
326 props->max_qp_rd_atom = min(dev->rdev.lldi.max_ordird_qp, c4iw_query_device()
328 props->max_qp_init_rd_atom = props->max_qp_rd_atom; c4iw_query_device()
329 props->max_cq = dev->rdev.lldi.vr->qp.size; c4iw_query_device()
330 props->max_cqe = dev->rdev.hw_queue.t4_max_cq_depth; c4iw_query_device()
331 props->max_mr = c4iw_num_stags(&dev->rdev); c4iw_query_device()
332 props->max_pd = T4_MAX_NUM_PD; c4iw_query_device()
333 props->local_ca_ack_delay = 0; c4iw_query_device()
334 props->max_fast_reg_page_list_len = t4_max_fr_depth(use_dsgl); c4iw_query_device()
340 struct ib_port_attr *props) c4iw_query_port()
351 memset(props, 0, sizeof(struct ib_port_attr)); c4iw_query_port()
352 props->max_mtu = IB_MTU_4096; c4iw_query_port()
354 props->active_mtu = IB_MTU_4096; c4iw_query_port()
356 props->active_mtu = IB_MTU_2048; c4iw_query_port()
358 props->active_mtu = IB_MTU_1024; c4iw_query_port()
360 props->active_mtu = IB_MTU_512; c4iw_query_port()
362 props->active_mtu = IB_MTU_256; c4iw_query_port()
365 props->state = IB_PORT_DOWN; c4iw_query_port()
370 props->state = IB_PORT_ACTIVE; c4iw_query_port()
372 props->state = IB_PORT_INIT; c4iw_query_port()
375 props->state = IB_PORT_INIT; c4iw_query_port()
378 props->port_cap_flags = c4iw_query_port()
384 props->gid_tbl_len = 1; c4iw_query_port()
385 props->pkey_tbl_len = 1; c4iw_query_port()
386 props->active_width = 2; c4iw_query_port()
387 props->active_speed = IB_SPEED_DDR; c4iw_query_port()
388 props->max_msg_sz = -1; c4iw_query_port()
304 c4iw_query_device(struct ib_device *ibdev, struct ib_device_attr *props) c4iw_query_device() argument
339 c4iw_query_port(struct ib_device *ibdev, u8 port, struct ib_port_attr *props) c4iw_query_port() argument
/linux-4.1.27/drivers/infiniband/hw/mthca/
H A Dmthca_provider.c61 struct ib_device_attr *props) mthca_query_device()
73 memset(props, 0, sizeof *props); mthca_query_device()
75 props->fw_ver = mdev->fw_ver; mthca_query_device()
85 props->device_cap_flags = mdev->device_cap_flags; mthca_query_device()
86 props->vendor_id = be32_to_cpup((__be32 *) (out_mad->data + 36)) & mthca_query_device()
88 props->vendor_part_id = be16_to_cpup((__be16 *) (out_mad->data + 30)); mthca_query_device()
89 props->hw_ver = be32_to_cpup((__be32 *) (out_mad->data + 32)); mthca_query_device()
90 memcpy(&props->sys_image_guid, out_mad->data + 4, 8); mthca_query_device()
92 props->max_mr_size = ~0ull; mthca_query_device()
93 props->page_size_cap = mdev->limits.page_size_cap; mthca_query_device()
94 props->max_qp = mdev->limits.num_qps - mdev->limits.reserved_qps; mthca_query_device()
95 props->max_qp_wr = mdev->limits.max_wqes; mthca_query_device()
96 props->max_sge = mdev->limits.max_sg; mthca_query_device()
97 props->max_cq = mdev->limits.num_cqs - mdev->limits.reserved_cqs; mthca_query_device()
98 props->max_cqe = mdev->limits.max_cqes; mthca_query_device()
99 props->max_mr = mdev->limits.num_mpts - mdev->limits.reserved_mrws; mthca_query_device()
100 props->max_pd = mdev->limits.num_pds - mdev->limits.reserved_pds; mthca_query_device()
101 props->max_qp_rd_atom = 1 << mdev->qp_table.rdb_shift; mthca_query_device()
102 props->max_qp_init_rd_atom = mdev->limits.max_qp_init_rdma; mthca_query_device()
103 props->max_res_rd_atom = props->max_qp_rd_atom * props->max_qp; mthca_query_device()
104 props->max_srq = mdev->limits.num_srqs - mdev->limits.reserved_srqs; mthca_query_device()
105 props->max_srq_wr = mdev->limits.max_srq_wqes; mthca_query_device()
106 props->max_srq_sge = mdev->limits.max_srq_sge; mthca_query_device()
107 props->local_ca_ack_delay = mdev->limits.local_ca_ack_delay; mthca_query_device()
108 props->atomic_cap = mdev->limits.flags & DEV_LIM_FLAG_ATOMIC ? mthca_query_device()
110 props->max_pkeys = mdev->limits.pkey_table_len; mthca_query_device()
111 props->max_mcast_grp = mdev->limits.num_mgms + mdev->limits.num_amgms; mthca_query_device()
112 props->max_mcast_qp_attach = MTHCA_QP_PER_MGM; mthca_query_device()
113 props->max_total_mcast_qp_attach = props->max_mcast_qp_attach * mthca_query_device()
114 props->max_mcast_grp; mthca_query_device()
121 props->max_map_per_fmr = 255; mthca_query_device()
123 props->max_map_per_fmr = mthca_query_device()
134 u8 port, struct ib_port_attr *props) mthca_query_port()
145 memset(props, 0, sizeof *props); mthca_query_port()
156 props->lid = be16_to_cpup((__be16 *) (out_mad->data + 16)); mthca_query_port()
157 props->lmc = out_mad->data[34] & 0x7; mthca_query_port()
158 props->sm_lid = be16_to_cpup((__be16 *) (out_mad->data + 18)); mthca_query_port()
159 props->sm_sl = out_mad->data[36] & 0xf; mthca_query_port()
160 props->state = out_mad->data[32] & 0xf; mthca_query_port()
161 props->phys_state = out_mad->data[33] >> 4; mthca_query_port()
162 props->port_cap_flags = be32_to_cpup((__be32 *) (out_mad->data + 20)); mthca_query_port()
163 props->gid_tbl_len = to_mdev(ibdev)->limits.gid_table_len; mthca_query_port()
164 props->max_msg_sz = 0x80000000; mthca_query_port()
165 props->pkey_tbl_len = to_mdev(ibdev)->limits.pkey_table_len; mthca_query_port()
166 props->bad_pkey_cntr = be16_to_cpup((__be16 *) (out_mad->data + 46)); mthca_query_port()
167 props->qkey_viol_cntr = be16_to_cpup((__be16 *) (out_mad->data + 48)); mthca_query_port()
168 props->active_width = out_mad->data[31] & 0xf; mthca_query_port()
169 props->active_speed = out_mad->data[35] >> 4; mthca_query_port()
170 props->max_mtu = out_mad->data[41] & 0xf; mthca_query_port()
171 props->active_mtu = out_mad->data[36] >> 4; mthca_query_port()
172 props->subnet_timeout = out_mad->data[51] & 0x1f; mthca_query_port()
173 props->max_vl_num = out_mad->data[37] >> 4; mthca_query_port()
174 props->init_type_reply = out_mad->data[41] >> 4; mthca_query_port()
184 struct ib_device_modify *props) mthca_modify_device()
192 memcpy(ibdev->node_desc, props->node_desc, 64); mthca_modify_device()
201 struct ib_port_modify *props) mthca_modify_port()
217 set_ib.cap_mask = (attr.port_cap_flags | props->set_port_cap_mask) & mthca_modify_port()
218 ~props->clr_port_cap_mask; mthca_modify_port()
60 mthca_query_device(struct ib_device *ibdev, struct ib_device_attr *props) mthca_query_device() argument
133 mthca_query_port(struct ib_device *ibdev, u8 port, struct ib_port_attr *props) mthca_query_port() argument
182 mthca_modify_device(struct ib_device *ibdev, int mask, struct ib_device_modify *props) mthca_modify_device() argument
199 mthca_modify_port(struct ib_device *ibdev, u8 port, int port_modify_mask, struct ib_port_modify *props) mthca_modify_port() argument
/linux-4.1.27/drivers/media/tuners/
H A Dtuner-i2c.h36 static inline int tuner_i2c_xfer_send(struct tuner_i2c_props *props, char *buf, int len) tuner_i2c_xfer_send() argument
38 struct i2c_msg msg = { .addr = props->addr, .flags = 0, tuner_i2c_xfer_send()
40 int ret = i2c_transfer(props->adap, &msg, 1); tuner_i2c_xfer_send()
45 static inline int tuner_i2c_xfer_recv(struct tuner_i2c_props *props, char *buf, int len) tuner_i2c_xfer_recv() argument
47 struct i2c_msg msg = { .addr = props->addr, .flags = I2C_M_RD, tuner_i2c_xfer_recv()
49 int ret = i2c_transfer(props->adap, &msg, 1); tuner_i2c_xfer_recv()
54 static inline int tuner_i2c_xfer_send_recv(struct tuner_i2c_props *props, tuner_i2c_xfer_send_recv() argument
58 struct i2c_msg msg[2] = { { .addr = props->addr, .flags = 0, tuner_i2c_xfer_send_recv()
60 { .addr = props->addr, .flags = I2C_M_RD, tuner_i2c_xfer_send_recv()
62 int ret = i2c_transfer(props->adap, msg, 2); tuner_i2c_xfer_send_recv()
/linux-4.1.27/drivers/gpu/drm/nouveau/
H A Dnouveau_backlight.c55 int val = bd->props.brightness; nv40_set_intensity()
75 struct backlight_properties props; nv40_backlight_init() local
81 memset(&props, 0, sizeof(struct backlight_properties)); nv40_backlight_init()
82 props.type = BACKLIGHT_RAW; nv40_backlight_init()
83 props.max_brightness = 31; nv40_backlight_init()
85 &nv40_bl_ops, &props); nv40_backlight_init()
89 bd->props.brightness = nv40_get_intensity(bd); nv40_backlight_init()
118 u32 val = (bd->props.brightness * div) / 100; nv50_set_intensity()
159 val = (bd->props.brightness * div) / 100; nva3_set_intensity()
182 struct backlight_properties props; nv50_backlight_init() local
203 memset(&props, 0, sizeof(struct backlight_properties)); nv50_backlight_init()
204 props.type = BACKLIGHT_RAW; nv50_backlight_init()
205 props.max_brightness = 100; nv50_backlight_init()
207 nv_encoder, ops, &props); nv50_backlight_init()
212 bd->props.brightness = bd->ops->get_brightness(bd); nv50_backlight_init()
/linux-4.1.27/drivers/platform/x86/
H A Dsamsung-q10.c40 for (i = 0; i < bd->props.brightness; i++) { samsungq10_bl_set_intensity()
56 struct backlight_properties props; samsungq10_probe() local
59 memset(&props, 0, sizeof(struct backlight_properties)); samsungq10_probe()
60 props.type = BACKLIGHT_PLATFORM; samsungq10_probe()
61 props.max_brightness = SAMSUNGQ10_BL_MAX_INTENSITY; samsungq10_probe()
63 &samsungq10_bl_ops, &props); samsungq10_probe()
H A Dintel_oaktrail.c229 u8 percent = (u8) b->props.brightness; set_backlight_brightness()
247 struct backlight_properties props; oaktrail_backlight_init() local
249 memset(&props, 0, sizeof(struct backlight_properties)); oaktrail_backlight_init()
250 props.type = BACKLIGHT_PLATFORM; oaktrail_backlight_init()
251 props.max_brightness = OT_EC_BL_BRIGHTNESS_MAX; oaktrail_backlight_init()
255 &props); oaktrail_backlight_init()
265 bd->props.brightness = get_backlight_brightness(bd); oaktrail_backlight_init()
266 bd->props.power = FB_BLANK_UNBLANK; oaktrail_backlight_init()
H A Dmsi-wmi.c170 int bright = bd->props.brightness; bl_set_status()
242 struct backlight_properties props; msi_wmi_backlight_setup() local
244 memset(&props, 0, sizeof(struct backlight_properties)); msi_wmi_backlight_setup()
245 props.type = BACKLIGHT_PLATFORM; msi_wmi_backlight_setup()
246 props.max_brightness = ARRAY_SIZE(backlight_map) - 1; msi_wmi_backlight_setup()
249 &props); msi_wmi_backlight_setup()
259 backlight->props.brightness = err; msi_wmi_backlight_setup()
H A Dapple-gmux.c260 u32 brightness = bd->props.brightness; gmux_update_status()
262 if (bd->props.state & BL_CORE_SUSPENDED) gmux_update_status()
441 struct backlight_properties props; gmux_probe() local
523 memset(&props, 0, sizeof(props)); gmux_probe()
524 props.type = BACKLIGHT_PLATFORM; gmux_probe()
525 props.max_brightness = gmux_read32(gmux_data, GMUX_PORT_MAX_BRIGHTNESS); gmux_probe()
533 if (WARN_ON(props.max_brightness > GMUX_MAX_BRIGHTNESS)) gmux_probe()
534 props.max_brightness = GMUX_MAX_BRIGHTNESS; gmux_probe()
537 gmux_data, &gmux_bl_ops, &props); gmux_probe()
544 bdev->props.brightness = gmux_get_brightness(bdev); gmux_probe()
H A Dideapad-laptop.c683 blightdev->props.brightness)) ideapad_backlight_update_status()
686 blightdev->props.power == FB_BLANK_POWERDOWN ? 0 : 1)) ideapad_backlight_update_status()
700 struct backlight_properties props; ideapad_backlight_init() local
710 memset(&props, 0, sizeof(struct backlight_properties)); ideapad_backlight_init()
711 props.max_brightness = max; ideapad_backlight_init()
712 props.type = BACKLIGHT_PLATFORM; ideapad_backlight_init()
717 &props); ideapad_backlight_init()
724 blightdev->props.brightness = now; ideapad_backlight_init()
725 blightdev->props.power = power ? FB_BLANK_UNBLANK : FB_BLANK_POWERDOWN; ideapad_backlight_init()
746 blightdev->props.power = power ? FB_BLANK_UNBLANK : FB_BLANK_POWERDOWN; ideapad_backlight_notify_power()
H A Dasus-wmi.c1200 if ((asus->driver->brightness < bd->props.brightness) || get_scalar_command()
1201 bd->props.brightness == bd->props.max_brightness) get_scalar_command()
1203 else if ((asus->driver->brightness > bd->props.brightness) || get_scalar_command()
1204 bd->props.brightness == 0) get_scalar_command()
1207 asus->driver->brightness = bd->props.brightness; get_scalar_command()
1219 if (power != -ENODEV && bd->props.power != power) { update_bl_status()
1220 ctrl_param = !!(bd->props.power == FB_BLANK_UNBLANK); update_bl_status()
1224 asus->driver->panel_power = bd->props.power; update_bl_status()
1235 ctrl_param = bd->props.brightness; update_bl_status()
1251 int old = bd->props.brightness; asus_wmi_backlight_notify()
1259 bd->props.brightness = new; asus_wmi_backlight_notify()
1269 struct backlight_properties props; asus_wmi_backlight_init() local
1284 memset(&props, 0, sizeof(struct backlight_properties)); asus_wmi_backlight_init()
1285 props.type = BACKLIGHT_PLATFORM; asus_wmi_backlight_init()
1286 props.max_brightness = max; asus_wmi_backlight_init()
1289 &asus_wmi_bl_ops, &props); asus_wmi_backlight_init()
1300 bd->props.brightness = read_brightness(bd); asus_wmi_backlight_init()
1301 bd->props.power = power; asus_wmi_backlight_init()
1304 asus->driver->brightness = bd->props.brightness; asus_wmi_backlight_init()
H A Dcompal-laptop.c334 int ret = set_backlight_level(b->props.brightness); bl_update_status()
338 set_backlight_state((b->props.power == FB_BLANK_UNBLANK) bl_update_status()
339 && !(b->props.state & BL_CORE_SUSPENDED) bl_update_status()
340 && !(b->props.state & BL_CORE_FBBLANK)); bl_update_status()
963 struct backlight_properties props; compal_init() local
964 memset(&props, 0, sizeof(struct backlight_properties)); compal_init()
965 props.type = BACKLIGHT_PLATFORM; compal_init()
966 props.max_brightness = BACKLIGHT_LEVEL_MAX; compal_init()
970 &props); compal_init()
H A Dfujitsu-laptop.c402 if (b->props.power == FB_BLANK_POWERDOWN) bl_update_status()
412 ret = set_lcd_level_alt(b->props.brightness); bl_update_status()
414 ret = set_lcd_level(b->props.brightness); bl_update_status()
1103 struct backlight_properties props; fujitsu_init() local
1105 memset(&props, 0, sizeof(struct backlight_properties)); fujitsu_init()
1107 props.type = BACKLIGHT_PLATFORM; fujitsu_init()
1108 props.max_brightness = max_brightness - 1; fujitsu_init()
1112 &props); fujitsu_init()
1118 fujitsu->bl_device->props.brightness = fujitsu->brightness_level; fujitsu_init()
1143 fujitsu->bl_device->props.power = FB_BLANK_POWERDOWN; fujitsu_init()
1145 fujitsu->bl_device->props.power = FB_BLANK_UNBLANK; fujitsu_init()
H A Dpanasonic-laptop.c336 int bright = bd->props.brightness; bl_set_status()
569 struct backlight_properties props; acpi_pcc_hotkey_add() local
617 memset(&props, 0, sizeof(struct backlight_properties)); acpi_pcc_hotkey_add()
618 props.type = BACKLIGHT_PLATFORM; acpi_pcc_hotkey_add()
619 props.max_brightness = pcc->sinf[SINF_AC_MAX_BRIGHT]; acpi_pcc_hotkey_add()
621 &pcc_backlight_ops, &props); acpi_pcc_hotkey_add()
628 pcc->backlight->props.brightness = pcc->sinf[SINF_AC_CUR_BRIGHT]; acpi_pcc_hotkey_add()
H A Dclassmate-laptop.c855 status = cmpc_set_brightness(handle, bd->props.brightness); cmpc_bl_update_status()
962 struct backlight_properties props; cmpc_ipml_add() local
968 memset(&props, 0, sizeof(struct backlight_properties)); cmpc_ipml_add()
969 props.type = BACKLIGHT_PLATFORM; cmpc_ipml_add()
970 props.max_brightness = 7; cmpc_ipml_add()
973 &props); cmpc_ipml_add()
H A Deeepc-laptop.c1133 return set_brightness(bd, bd->props.brightness); update_bl_status()
1144 int old = bd->props.brightness; eeepc_backlight_notify()
1153 struct backlight_properties props; eeepc_backlight_init() local
1156 memset(&props, 0, sizeof(struct backlight_properties)); eeepc_backlight_init()
1157 props.type = BACKLIGHT_PLATFORM; eeepc_backlight_init()
1158 props.max_brightness = 15; eeepc_backlight_init()
1161 &eeepcbl_ops, &props); eeepc_backlight_init()
1168 bd->props.brightness = read_brightness(bd); eeepc_backlight_init()
1169 bd->props.power = FB_BLANK_UNBLANK; eeepc_backlight_init()
H A Dacer-wmi.c1403 int intensity = bd->props.brightness; update_bl_status()
1405 if (bd->props.power != FB_BLANK_UNBLANK) update_bl_status()
1407 if (bd->props.fb_blank != FB_BLANK_UNBLANK) update_bl_status()
1422 struct backlight_properties props; acer_backlight_init() local
1425 memset(&props, 0, sizeof(struct backlight_properties)); acer_backlight_init()
1426 props.type = BACKLIGHT_PLATFORM; acer_backlight_init()
1427 props.max_brightness = max_brightness; acer_backlight_init()
1429 &props); acer_backlight_init()
1438 bd->props.power = FB_BLANK_UNBLANK; acer_backlight_init()
1439 bd->props.brightness = read_brightness(bd); acer_backlight_init()
H A Dsamsung-laptop.c569 set_brightness(samsung, bd->props.brightness); update_status()
571 if (bd->props.power == FB_BLANK_UNBLANK) update_status()
1190 struct backlight_properties props; samsung_backlight_init() local
1195 memset(&props, 0, sizeof(struct backlight_properties)); samsung_backlight_init()
1196 props.type = BACKLIGHT_PLATFORM; samsung_backlight_init()
1197 props.max_brightness = samsung->config->max_brightness - samsung_backlight_init()
1203 &props); samsung_backlight_init()
1208 samsung->backlight_device->props.brightness = read_brightness(samsung); samsung_backlight_init()
1209 samsung->backlight_device->props.power = FB_BLANK_UNBLANK; samsung_backlight_init()
H A Dmsi-laptop.c307 return set_lcd_level(b->props.brightness); bl_update_status()
1075 struct backlight_properties props; msi_init() local
1076 memset(&props, 0, sizeof(struct backlight_properties)); msi_init()
1077 props.type = BACKLIGHT_PLATFORM; msi_init()
1078 props.max_brightness = MSI_LCD_LEVEL_MAX - 1; msi_init()
1081 &props); msi_init()
H A Ddell-laptop.c766 buffer->input[1] = bd->props.brightness; dell_send_intensity()
1938 struct backlight_properties props; dell_init() local
1939 memset(&props, 0, sizeof(struct backlight_properties)); dell_init()
1940 props.type = BACKLIGHT_PLATFORM; dell_init()
1941 props.max_brightness = max_intensity; dell_init()
1946 &props); dell_init()
1954 dell_backlight_device->props.brightness = dell_init()
H A Dasus-laptop.c795 int value = bd->props.brightness; update_bl_status()
808 int old = bd->props.brightness; asus_backlight_notify()
818 struct backlight_properties props; asus_backlight_init() local
824 memset(&props, 0, sizeof(struct backlight_properties)); asus_backlight_init()
825 props.max_brightness = 15; asus_backlight_init()
826 props.type = BACKLIGHT_PLATFORM; asus_backlight_init()
830 &asusbl_ops, &props); asus_backlight_init()
838 bd->props.brightness = asus_read_brightness(bd); asus_backlight_init()
839 bd->props.power = FB_BLANK_UNBLANK; asus_backlight_init()
H A Dtoshiba_acpi.c1367 levels = dev->backlight_dev->props.max_brightness + 1; lcd_proc_show()
1407 return set_lcd_brightness(dev, bd->props.brightness); set_lcd_status()
1418 int levels = dev->backlight_dev->props.max_brightness + 1; lcd_proc_write()
2611 struct backlight_properties props; toshiba_acpi_setup_backlight() local
2649 memset(&props, 0, sizeof(props)); toshiba_acpi_setup_backlight()
2650 props.type = BACKLIGHT_PLATFORM; toshiba_acpi_setup_backlight()
2651 props.max_brightness = HCI_LCD_BRIGHTNESS_LEVELS - 1; toshiba_acpi_setup_backlight()
2655 props.max_brightness++; toshiba_acpi_setup_backlight()
2661 &props); toshiba_acpi_setup_backlight()
2669 dev->backlight_dev->props.brightness = brightness; toshiba_acpi_setup_backlight()
H A Dsony-laptop.c1039 int arg = bd->props.brightness + 1; sony_backlight_update_status()
1070 value = bd->props.brightness + sdev->offset; sony_nc_update_status_ng()
3027 struct sony_backlight_props *props) sony_nc_backlight_ng_read_limits()
3035 props->handle = handle; sony_nc_backlight_ng_read_limits()
3036 props->offset = 0; sony_nc_backlight_ng_read_limits()
3037 props->maxlvl = 0xff; sony_nc_backlight_ng_read_limits()
3077 props->offset = min; sony_nc_backlight_ng_read_limits()
3078 props->maxlvl = max; sony_nc_backlight_ng_read_limits()
3079 dprintk("Brightness levels: min=%d max=%d\n", props->offset, sony_nc_backlight_ng_read_limits()
3080 props->maxlvl); sony_nc_backlight_ng_read_limits()
3087 struct backlight_properties props; sony_nc_backlight_setup() local
3126 memset(&props, 0, sizeof(struct backlight_properties)); sony_nc_backlight_setup()
3127 props.type = BACKLIGHT_PLATFORM; sony_nc_backlight_setup()
3128 props.max_brightness = max_brightness; sony_nc_backlight_setup()
3131 ops, &props); sony_nc_backlight_setup()
3137 sony_bl_props.dev->props.brightness = sony_nc_backlight_setup()
4159 sony_bl_props.dev->props.brightness = sonypi_misc_ioctl()
3026 sony_nc_backlight_ng_read_limits(int handle, struct sony_backlight_props *props) sony_nc_backlight_ng_read_limits() argument
/linux-4.1.27/net/xfrm/
H A Dxfrm_state.c76 h = __xfrm_dst_hash(&x->id.daddr, &x->props.saddr, hlist_for_each_entry_safe()
77 x->props.reqid, x->props.family, hlist_for_each_entry_safe()
81 h = __xfrm_src_hash(&x->id.daddr, &x->props.saddr, hlist_for_each_entry_safe()
82 x->props.family, hlist_for_each_entry_safe()
88 x->id.proto, x->props.family, hlist_for_each_entry_safe()
663 if (x->props.family != family || __xfrm_state_lookup()
687 if (x->props.family != family || __xfrm_state_lookup_byaddr()
690 !xfrm_addr_equal(&x->props.saddr, saddr, family)) __xfrm_state_lookup_byaddr()
714 &x->props.saddr, __xfrm_state_locate()
785 if (x->props.family == encap_family && xfrm_state_find()
786 x->props.reqid == tmpl->reqid && xfrm_state_find()
788 !(x->props.flags & XFRM_STATE_WILDRECV) && xfrm_state_find()
790 tmpl->mode == x->props.mode && xfrm_state_find()
801 if (x->props.family == encap_family && xfrm_state_find()
802 x->props.reqid == tmpl->reqid && xfrm_state_find()
804 !(x->props.flags & XFRM_STATE_WILDRECV) && xfrm_state_find()
806 tmpl->mode == x->props.mode && xfrm_state_find()
895 if (x->props.family == family && xfrm_stateonly_find()
896 x->props.reqid == reqid && xfrm_stateonly_find()
898 !(x->props.flags & XFRM_STATE_WILDRECV) && xfrm_stateonly_find()
900 mode == x->props.mode && xfrm_stateonly_find()
926 if (x->props.family != family || xfrm_state_lookup_byspi()
946 h = xfrm_dst_hash(net, &x->id.daddr, &x->props.saddr, __xfrm_state_insert()
947 x->props.reqid, x->props.family); __xfrm_state_insert()
950 h = xfrm_src_hash(net, &x->id.daddr, &x->props.saddr, x->props.family); __xfrm_state_insert()
955 x->props.family); __xfrm_state_insert()
973 unsigned short family = xnew->props.family; __xfrm_state_bump_genids()
974 u32 reqid = xnew->props.reqid; __xfrm_state_bump_genids()
979 h = xfrm_dst_hash(net, &xnew->id.daddr, &xnew->props.saddr, reqid, family); __xfrm_state_bump_genids()
981 if (x->props.family == family && __xfrm_state_bump_genids()
982 x->props.reqid == reqid && __xfrm_state_bump_genids()
985 xfrm_addr_equal(&x->props.saddr, &xnew->props.saddr, family)) __xfrm_state_bump_genids()
1015 if (x->props.reqid != reqid || __find_acq_core()
1016 x->props.mode != mode || __find_acq_core()
1017 x->props.family != family || __find_acq_core()
1023 !xfrm_addr_equal(&x->props.saddr, saddr, family)) __find_acq_core()
1041 x->props.saddr.a4 = saddr->a4; __find_acq_core()
1050 x->props.saddr.in6 = saddr->in6; __find_acq_core()
1057 x->props.family = family; __find_acq_core()
1058 x->props.mode = mode; __find_acq_core()
1059 x->props.reqid = reqid; __find_acq_core()
1089 family = x->props.family; xfrm_state_add()
1113 x1 = __find_acq_core(net, &x->mark, family, x->props.mode, xfrm_state_add()
1114 x->props.reqid, x->id.proto, xfrm_state_add()
1115 &x->id.daddr, &x->props.saddr, 0); xfrm_state_add()
1147 x->props.mode = orig->props.mode; xfrm_state_clone()
1148 x->props.replay_window = orig->props.replay_window; xfrm_state_clone()
1149 x->props.reqid = orig->props.reqid; xfrm_state_clone()
1150 x->props.family = orig->props.family; xfrm_state_clone()
1151 x->props.saddr = orig->props.saddr; xfrm_state_clone()
1158 x->props.aalgo = orig->props.aalgo; xfrm_state_clone()
1170 x->props.ealgo = orig->props.ealgo; xfrm_state_clone()
1177 x->props.calgo = orig->props.calgo; xfrm_state_clone()
1202 x->props.flags = orig->props.flags; xfrm_state_clone()
1203 x->props.extra_flags = orig->props.extra_flags; xfrm_state_clone()
1231 if (x->props.mode != m->mode || xfrm_migrate_state_find()
1234 if (m->reqid && x->props.reqid != m->reqid) xfrm_migrate_state_find()
1238 !xfrm_addr_equal(&x->props.saddr, &m->old_saddr, xfrm_migrate_state_find()
1248 if (x->props.mode != m->mode || xfrm_migrate_state_find()
1253 !xfrm_addr_equal(&x->props.saddr, &m->old_saddr, xfrm_migrate_state_find()
1277 memcpy(&xc->props.saddr, &m->new_saddr, sizeof(xc->props.saddr)); xfrm_state_migrate()
1307 x1 = __xfrm_state_locate(x, use_spi, x->props.family); xfrm_state_update()
1563 x0 = xfrm_state_lookup(net, mark, &x->id.daddr, minspi, x->id.proto, x->props.family); xfrm_alloc_spi()
1573 x0 = xfrm_state_lookup(net, mark, &x->id.daddr, htonl(spi), x->id.proto, x->props.family); xfrm_alloc_spi()
1583 h = xfrm_spi_hash(net, &x->id.daddr, x->id.spi, x->id.proto, x->props.family); xfrm_alloc_spi()
1603 x->props.family != filter->family) __xfrm_state_filter_match()
1606 return addr_match(&x->props.saddr, &filter->saddr, __xfrm_state_filter_match()
1980 res = mtu - x->props.header_len; xfrm_state_mtu()
1989 int family = x->props.family; __xfrm_init_state()
2009 inner_mode = xfrm_get_mode(x->props.mode, x->sel.family); __xfrm_init_state()
2024 inner_mode = xfrm_get_mode(x->props.mode, x->props.family); __xfrm_init_state()
2034 if (x->props.family == AF_INET) __xfrm_init_state()
2037 inner_mode_iaf = xfrm_get_mode(x->props.mode, iafamily); __xfrm_init_state()
2054 x->outer_mode = xfrm_get_mode(x->props.mode, family); __xfrm_init_state()
2145 switch (x->props.family) { xfrm_audit_helper_sainfo()
2148 &x->props.saddr.a4, &x->id.daddr.a4); xfrm_audit_helper_sainfo()
2152 x->props.saddr.a6, x->id.daddr.a6); xfrm_audit_helper_sainfo()
2220 xfrm_audit_helper_pktinfo(skb, x->props.family, audit_buf); xfrm_audit_state_replay_overflow()
2238 xfrm_audit_helper_pktinfo(skb, x->props.family, audit_buf); xfrm_audit_state_replay()
2285 xfrm_audit_helper_pktinfo(skb, x->props.family, audit_buf); xfrm_audit_state_icvfail()
H A Dxfrm_user.c266 static int attach_one_algo(struct xfrm_algo **algpp, u8 *props, attach_one_algo() argument
281 *props = algo->desc.sadb_alg_id; attach_one_algo()
292 static int attach_auth(struct xfrm_algo_auth **algpp, u8 *props, attach_auth() argument
307 *props = algo->desc.sadb_alg_id; attach_auth()
322 static int attach_auth_trunc(struct xfrm_algo_auth **algpp, u8 *props, attach_auth_trunc() argument
338 *props = algo->desc.sadb_alg_id; attach_auth_trunc()
352 static int attach_aead(struct xfrm_algo_aead **algpp, u8 *props, attach_aead() argument
366 *props = algo->desc.sadb_alg_id; attach_aead()
444 x->props.mode = p->mode; copy_from_user_state()
445 x->props.replay_window = min_t(unsigned int, p->replay_window, copy_from_user_state()
447 x->props.reqid = p->reqid; copy_from_user_state()
448 x->props.family = p->family; copy_from_user_state()
449 memcpy(&x->props.saddr, &p->saddr, sizeof(x->props.saddr)); copy_from_user_state()
450 x->props.flags = p->flags; copy_from_user_state()
516 x->props.extra_flags = nla_get_u32(attrs[XFRMA_SA_EXTRA_FLAGS]); xfrm_state_construct()
518 if ((err = attach_aead(&x->aead, &x->props.ealgo, xfrm_state_construct()
521 if ((err = attach_auth_trunc(&x->aalg, &x->props.aalgo, xfrm_state_construct()
524 if (!x->props.aalgo) { xfrm_state_construct()
525 if ((err = attach_auth(&x->aalg, &x->props.aalgo, xfrm_state_construct()
529 if ((err = attach_one_algo(&x->ealg, &x->props.ealgo, xfrm_state_construct()
533 if ((err = attach_one_algo(&x->calg, &x->props.calgo, xfrm_state_construct()
710 memcpy(&p->saddr, &x->props.saddr, sizeof(p->saddr)); copy_to_user_state()
711 p->mode = x->props.mode; copy_to_user_state()
712 p->replay_window = x->props.replay_window; copy_to_user_state()
713 p->reqid = x->props.reqid; copy_to_user_state()
714 p->family = x->props.family; copy_to_user_state()
715 p->flags = x->props.flags; copy_to_user_state()
774 if (x->props.extra_flags) { copy_to_user_state_extra()
776 x->props.extra_flags); copy_to_user_state_extra()
1812 id->sa_id.family = x->props.family; build_aevent()
1814 memcpy(&id->saddr, &x->props.saddr, sizeof(x->props.saddr)); build_aevent()
1815 id->reqid = x->props.reqid; build_aevent()
2101 memcpy(&x->props.saddr, &ua->saddr, sizeof(ua->saddr)); xfrm_add_acquire()
2110 x->props.mode = t->mode; xfrm_add_acquire()
2111 x->props.reqid = t->reqid; xfrm_add_acquire()
2112 x->props.family = ut->family; xfrm_add_acquire()
2591 if (x->props.extra_flags) xfrm_sa_len()
2592 l += nla_total_size(sizeof(x->props.extra_flags)); xfrm_sa_len()
2634 id->family = x->props.family; xfrm_notify_sa()
2705 memcpy(&ua->saddr, &x->props.saddr, sizeof(ua->saddr)); build_acquire()
3039 um->id.family = x->props.family; build_mapping()
3042 memcpy(&um->old_saddr, &x->props.saddr, sizeof(um->old_saddr)); build_mapping()
3045 um->reqid = x->props.reqid; build_mapping()
H A Dxfrm_replay.c29 if (!(x->props.flags & XFRM_STATE_ESN)) xfrm_replay_seqhi()
123 if (!x->props.replay_window) xfrm_replay_check()
133 if (diff >= x->props.replay_window) { xfrm_replay_check()
154 if (!x->props.replay_window) xfrm_replay_advance()
159 if (diff < x->props.replay_window) xfrm_replay_advance()
594 if (x->props.flags & XFRM_STATE_ESN) { xfrm_init_replay()
H A Dxfrm_policy.c143 xfrm_address_t *saddr = &x->props.saddr; xfrm_dst_lookup()
1694 if (xfrm[i]->props.mode != XFRM_MODE_TRANSPORT) { xfrm_bundle_create()
1695 family = xfrm[i]->props.family; xfrm_bundle_create()
1717 header_len += xfrm[i]->props.header_len; xfrm_bundle_create()
1719 nfheader_len += xfrm[i]->props.header_len; xfrm_bundle_create()
1720 trailer_len += xfrm[i]->props.trailer_len; xfrm_bundle_create()
1743 header_len -= xdst->u.dst.xfrm->props.header_len; xfrm_bundle_create()
1744 trailer_len -= xdst->u.dst.xfrm->props.trailer_len; xfrm_bundle_create()
2312 dst->xfrm->props.mode == XFRM_MODE_TUNNEL) xfrm_lookup()
2377 (x->props.reqid == tmpl->reqid || !tmpl->reqid) && xfrm_state_ok()
2378 x->props.mode == tmpl->mode && xfrm_state_ok()
2379 (tmpl->allalgs || (tmpl->aalgos & (1<<x->props.aalgo)) || xfrm_state_ok()
2381 !(x->props.mode != XFRM_MODE_TRANSPORT && xfrm_state_ok()
2406 if (sp->xvec[idx]->props.mode != XFRM_MODE_TRANSPORT) { xfrm_policy_ok()
2434 if (sp->xvec[k]->props.mode != XFRM_MODE_TRANSPORT) { secpath_has_nontransport()
/linux-4.1.27/drivers/gpu/drm/gma500/
H A Dbacklight.c43 dev_priv->backlight_device->props.brightness = dev_priv->backlight_level; gma_backlight_enable()
55 dev_priv->backlight_device->props.brightness = 0; gma_backlight_disable()
67 dev_priv->backlight_device->props.brightness = v; gma_backlight_set()
89 dev_priv->backlight_device->props.brightness = 0; gma_backlight_exit()
H A Dpsb_device.c107 int level = bd->props.brightness; psb_set_brightness()
127 struct backlight_properties props; psb_backlight_init() local
129 memset(&props, 0, sizeof(struct backlight_properties)); psb_backlight_init()
130 props.max_brightness = 100; psb_backlight_init()
131 props.type = BACKLIGHT_PLATFORM; psb_backlight_init()
134 NULL, (void *)dev, &psb_ops, &props); psb_backlight_init()
144 psb_backlight_device->props.brightness = 100; psb_backlight_init()
145 psb_backlight_device->props.max_brightness = 100; psb_backlight_init()
H A Dmdfld_device.c55 int level = bd->props.brightness; mdfld_set_brightness()
126 struct backlight_properties props; mdfld_backlight_init() local
129 memset(&props, 0, sizeof(struct backlight_properties)); mdfld_backlight_init()
130 props.max_brightness = BRIGHTNESS_MAX_LEVEL; mdfld_backlight_init()
131 props.type = BACKLIGHT_PLATFORM; mdfld_backlight_init()
133 NULL, (void *)dev, &mdfld_ops, &props); mdfld_backlight_init()
142 mdfld_backlight_device->props.brightness = BRIGHTNESS_MAX_LEVEL; mdfld_backlight_init()
143 mdfld_backlight_device->props.max_brightness = BRIGHTNESS_MAX_LEVEL; mdfld_backlight_init()
H A Doaktrail_device.c68 int level = bd->props.brightness; oaktrail_set_brightness()
151 struct backlight_properties props; oaktrail_backlight_init() local
153 memset(&props, 0, sizeof(struct backlight_properties)); oaktrail_backlight_init()
154 props.max_brightness = 100; oaktrail_backlight_init()
155 props.type = BACKLIGHT_PLATFORM; oaktrail_backlight_init()
158 NULL, (void *)dev, &oaktrail_ops, &props); oaktrail_backlight_init()
168 oaktrail_backlight_device->props.brightness = 100; oaktrail_backlight_init()
169 oaktrail_backlight_device->props.max_brightness = 100; oaktrail_backlight_init()
H A Dcdv_device.c125 int level = bd->props.brightness; cdv_set_brightness()
159 struct backlight_properties props; cdv_backlight_init() local
161 memset(&props, 0, sizeof(struct backlight_properties)); cdv_backlight_init()
162 props.max_brightness = 100; cdv_backlight_init()
163 props.type = BACKLIGHT_PLATFORM; cdv_backlight_init()
166 NULL, (void *)dev, &cdv_ops, &props); cdv_backlight_init()
170 cdv_backlight_device->props.brightness = cdv_backlight_init()
/linux-4.1.27/drivers/infiniband/hw/mlx4/
H A Dmain.c135 struct ib_device_attr *props) mlx4_ib_query_device()
156 memset(props, 0, sizeof *props); mlx4_ib_query_device()
160 props->fw_ver = dev->dev->caps.fw_ver; mlx4_ib_query_device()
161 props->device_cap_flags = IB_DEVICE_CHANGE_PHY_PORT | mlx4_ib_query_device()
167 props->device_cap_flags |= IB_DEVICE_BAD_PKEY_CNTR; mlx4_ib_query_device()
169 props->device_cap_flags |= IB_DEVICE_BAD_QKEY_CNTR; mlx4_ib_query_device()
171 props->device_cap_flags |= IB_DEVICE_AUTO_PATH_MIG; mlx4_ib_query_device()
173 props->device_cap_flags |= IB_DEVICE_UD_AV_PORT_ENFORCE; mlx4_ib_query_device()
175 props->device_cap_flags |= IB_DEVICE_UD_IP_CSUM; mlx4_ib_query_device()
179 props->device_cap_flags |= IB_DEVICE_UD_TSO; mlx4_ib_query_device()
181 props->device_cap_flags |= IB_DEVICE_LOCAL_DMA_LKEY; mlx4_ib_query_device()
185 props->device_cap_flags |= IB_DEVICE_MEM_MGT_EXTENSIONS; mlx4_ib_query_device()
187 props->device_cap_flags |= IB_DEVICE_XRC; mlx4_ib_query_device()
189 props->device_cap_flags |= IB_DEVICE_MEM_WINDOW; mlx4_ib_query_device()
192 props->device_cap_flags |= IB_DEVICE_MEM_WINDOW_TYPE_2B; mlx4_ib_query_device()
194 props->device_cap_flags |= IB_DEVICE_MEM_WINDOW_TYPE_2A; mlx4_ib_query_device()
196 props->device_cap_flags |= IB_DEVICE_MANAGED_FLOW_STEERING; mlx4_ib_query_device()
199 props->vendor_id = be32_to_cpup((__be32 *) (out_mad->data + 36)) & mlx4_ib_query_device()
201 props->vendor_part_id = dev->dev->persist->pdev->device; mlx4_ib_query_device()
202 props->hw_ver = be32_to_cpup((__be32 *) (out_mad->data + 32)); mlx4_ib_query_device()
203 memcpy(&props->sys_image_guid, out_mad->data + 4, 8); mlx4_ib_query_device()
205 props->max_mr_size = ~0ull; mlx4_ib_query_device()
206 props->page_size_cap = dev->dev->caps.page_size_cap; mlx4_ib_query_device()
207 props->max_qp = dev->dev->quotas.qp; mlx4_ib_query_device()
208 props->max_qp_wr = dev->dev->caps.max_wqes - MLX4_IB_SQ_MAX_SPARE; mlx4_ib_query_device()
209 props->max_sge = min(dev->dev->caps.max_sq_sg, mlx4_ib_query_device()
211 props->max_cq = dev->dev->quotas.cq; mlx4_ib_query_device()
212 props->max_cqe = dev->dev->caps.max_cqes; mlx4_ib_query_device()
213 props->max_mr = dev->dev->quotas.mpt; mlx4_ib_query_device()
214 props->max_pd = dev->dev->caps.num_pds - dev->dev->caps.reserved_pds; mlx4_ib_query_device()
215 props->max_qp_rd_atom = dev->dev->caps.max_qp_dest_rdma; mlx4_ib_query_device()
216 props->max_qp_init_rd_atom = dev->dev->caps.max_qp_init_rdma; mlx4_ib_query_device()
217 props->max_res_rd_atom = props->max_qp_rd_atom * props->max_qp; mlx4_ib_query_device()
218 props->max_srq = dev->dev->quotas.srq; mlx4_ib_query_device()
219 props->max_srq_wr = dev->dev->caps.max_srq_wqes - 1; mlx4_ib_query_device()
220 props->max_srq_sge = dev->dev->caps.max_srq_sge; mlx4_ib_query_device()
221 props->max_fast_reg_page_list_len = MLX4_MAX_FAST_REG_PAGES; mlx4_ib_query_device()
222 props->local_ca_ack_delay = dev->dev->caps.local_ca_ack_delay; mlx4_ib_query_device()
223 props->atomic_cap = dev->dev->caps.flags & MLX4_DEV_CAP_FLAG_ATOMIC ? mlx4_ib_query_device()
225 props->masked_atomic_cap = props->atomic_cap; mlx4_ib_query_device()
226 props->max_pkeys = dev->dev->caps.pkey_table_len[1]; mlx4_ib_query_device()
227 props->max_mcast_grp = dev->dev->caps.num_mgms + dev->dev->caps.num_amgms; mlx4_ib_query_device()
228 props->max_mcast_qp_attach = dev->dev->caps.num_qp_per_mgm; mlx4_ib_query_device()
229 props->max_total_mcast_qp_attach = props->max_mcast_qp_attach * mlx4_ib_query_device()
230 props->max_mcast_grp; mlx4_ib_query_device()
231 props->max_map_per_fmr = dev->dev->caps.max_fmr_maps; mlx4_ib_query_device()
250 struct ib_port_attr *props, int netw_view) ib_link_query_port()
276 props->lid = be16_to_cpup((__be16 *) (out_mad->data + 16)); ib_link_query_port()
277 props->lmc = out_mad->data[34] & 0x7; ib_link_query_port()
278 props->sm_lid = be16_to_cpup((__be16 *) (out_mad->data + 18)); ib_link_query_port()
279 props->sm_sl = out_mad->data[36] & 0xf; ib_link_query_port()
280 props->state = out_mad->data[32] & 0xf; ib_link_query_port()
281 props->phys_state = out_mad->data[33] >> 4; ib_link_query_port()
282 props->port_cap_flags = be32_to_cpup((__be32 *) (out_mad->data + 20)); ib_link_query_port()
284 props->gid_tbl_len = out_mad->data[50]; ib_link_query_port()
286 props->gid_tbl_len = to_mdev(ibdev)->dev->caps.gid_table_len[port]; ib_link_query_port()
287 props->max_msg_sz = to_mdev(ibdev)->dev->caps.max_msg_sz; ib_link_query_port()
288 props->pkey_tbl_len = to_mdev(ibdev)->dev->caps.pkey_table_len[port]; ib_link_query_port()
289 props->bad_pkey_cntr = be16_to_cpup((__be16 *) (out_mad->data + 46)); ib_link_query_port()
290 props->qkey_viol_cntr = be16_to_cpup((__be16 *) (out_mad->data + 48)); ib_link_query_port()
291 props->active_width = out_mad->data[31] & 0xf; ib_link_query_port()
292 props->active_speed = out_mad->data[35] >> 4; ib_link_query_port()
293 props->max_mtu = out_mad->data[41] & 0xf; ib_link_query_port()
294 props->active_mtu = out_mad->data[36] >> 4; ib_link_query_port()
295 props->subnet_timeout = out_mad->data[51] & 0x1f; ib_link_query_port()
296 props->max_vl_num = out_mad->data[37] >> 4; ib_link_query_port()
297 props->init_type_reply = out_mad->data[41] >> 4; ib_link_query_port()
300 if (props->port_cap_flags & IB_PORT_EXTENDED_SPEEDS_SUP) { ib_link_query_port()
305 props->active_speed = IB_SPEED_FDR; ib_link_query_port()
308 props->active_speed = IB_SPEED_EDR; ib_link_query_port()
314 if (props->active_speed == IB_SPEED_QDR) { ib_link_query_port()
326 props->active_speed = IB_SPEED_FDR10; ib_link_query_port()
330 if (props->state == IB_PORT_DOWN) ib_link_query_port()
331 props->active_speed = IB_SPEED_SDR; ib_link_query_port()
345 struct ib_port_attr *props, int netw_view) eth_link_query_port()
366 props->active_width = (((u8 *)mailbox->buf)[5] == 0x40) ? eth_link_query_port()
368 props->active_speed = IB_SPEED_QDR; eth_link_query_port()
369 props->port_cap_flags = IB_PORT_CM_SUP | IB_PORT_IP_BASED_GIDS; eth_link_query_port()
370 props->gid_tbl_len = mdev->dev->caps.gid_table_len[port]; eth_link_query_port()
371 props->max_msg_sz = mdev->dev->caps.max_msg_sz; eth_link_query_port()
372 props->pkey_tbl_len = 1; eth_link_query_port()
373 props->max_mtu = IB_MTU_4096; eth_link_query_port()
374 props->max_vl_num = 2; eth_link_query_port()
375 props->state = IB_PORT_DOWN; eth_link_query_port()
376 props->phys_state = state_to_phys_state(props->state); eth_link_query_port()
377 props->active_mtu = IB_MTU_256; eth_link_query_port()
388 props->active_mtu = tmp ? min(props->max_mtu, tmp) : IB_MTU_256; eth_link_query_port()
390 props->state = (netif_running(ndev) && netif_carrier_ok(ndev)) ? eth_link_query_port()
392 props->phys_state = state_to_phys_state(props->state); eth_link_query_port()
403 struct ib_port_attr *props, int netw_view) __mlx4_ib_query_port()
407 memset(props, 0, sizeof *props); __mlx4_ib_query_port()
410 ib_link_query_port(ibdev, port, props, netw_view) : __mlx4_ib_query_port()
411 eth_link_query_port(ibdev, port, props, netw_view); __mlx4_ib_query_port()
417 struct ib_port_attr *props) mlx4_ib_query_port()
420 return __mlx4_ib_query_port(ibdev, port, props, 0); mlx4_ib_query_port()
537 struct ib_device_modify *props) mlx4_ib_modify_device()
552 memcpy(ibdev->node_desc, props->node_desc, 64); mlx4_ib_modify_device()
563 memcpy(mailbox->buf, props->node_desc, 64); mlx4_ib_modify_device()
599 struct ib_port_modify *props) mlx4_ib_modify_port()
620 cap_mask = (attr.port_cap_flags | props->set_port_cap_mask) & mlx4_ib_modify_port()
621 ~props->clr_port_cap_mask; mlx4_ib_modify_port()
134 mlx4_ib_query_device(struct ib_device *ibdev, struct ib_device_attr *props) mlx4_ib_query_device() argument
249 ib_link_query_port(struct ib_device *ibdev, u8 port, struct ib_port_attr *props, int netw_view) ib_link_query_port() argument
344 eth_link_query_port(struct ib_device *ibdev, u8 port, struct ib_port_attr *props, int netw_view) eth_link_query_port() argument
402 __mlx4_ib_query_port(struct ib_device *ibdev, u8 port, struct ib_port_attr *props, int netw_view) __mlx4_ib_query_port() argument
416 mlx4_ib_query_port(struct ib_device *ibdev, u8 port, struct ib_port_attr *props) mlx4_ib_query_port() argument
536 mlx4_ib_modify_device(struct ib_device *ibdev, int mask, struct ib_device_modify *props) mlx4_ib_modify_device() argument
598 mlx4_ib_modify_port(struct ib_device *ibdev, u8 port, int mask, struct ib_port_modify *props) mlx4_ib_modify_port() argument
/linux-4.1.27/drivers/crypto/nx/
H A Dnx.c341 struct nx_of *props) nx_of_update_status()
344 props->status = NX_WAITING; nx_of_update_status()
345 props->flags |= NX_OF_FLAG_STATUS_SET; nx_of_update_status()
354 struct nx_of *props) nx_of_update_sglen()
356 if (p->length != sizeof(props->max_sg_len)) { nx_of_update_sglen()
361 p->length, sizeof(props->max_sg_len)); nx_of_update_sglen()
365 props->max_sg_len = *(u32 *)p->value; nx_of_update_sglen()
366 props->flags |= NX_OF_FLAG_MAXSGLEN_SET; nx_of_update_sglen()
371 struct nx_of *props) nx_of_update_msc()
405 props->ap[msc->fc][msc->mode][0].databytelen = nx_of_update_msc()
407 props->ap[msc->fc][msc->mode][0].sglen = nx_of_update_msc()
411 props->ap[msc->fc][msc->mode][1].databytelen = nx_of_update_msc()
413 props->ap[msc->fc][msc->mode][1].sglen = nx_of_update_msc()
418 props->ap[msc->fc][msc->mode][2]. nx_of_update_msc()
420 props->ap[msc->fc][msc->mode][2].sglen = nx_of_update_msc()
424 props->ap[msc->fc][msc->mode][1]. nx_of_update_msc()
426 props->ap[msc->fc][msc->mode][1].sglen = nx_of_update_msc()
435 props->ap[msc->fc][msc->mode][2].databytelen = nx_of_update_msc()
437 props->ap[msc->fc][msc->mode][2].sglen = nx_of_update_msc()
454 props->flags |= NX_OF_FLAG_MAXSYNCCOP_SET; nx_of_update_msc()
461 * @props: pointer to struct to hold the properties values
465 * acceptable, when we exit this function props->flags will indicate that
468 static void nx_of_init(struct device *dev, struct nx_of *props) nx_of_init() argument
477 nx_of_update_status(dev, p, props); nx_of_init()
484 nx_of_update_sglen(dev, p, props); nx_of_init()
491 nx_of_update_msc(dev, p, props); nx_of_init()
629 memcpy(nx_ctx->props, nx_driver.of.ap[fc][mode], nx_crypto_ctx_init()
339 nx_of_update_status(struct device *dev, struct property *p, struct nx_of *props) nx_of_update_status() argument
352 nx_of_update_sglen(struct device *dev, struct property *p, struct nx_of *props) nx_of_update_sglen() argument
369 nx_of_update_msc(struct device *dev, struct property *p, struct nx_of *props) nx_of_update_msc() argument
H A Dnx-aes-cbc.c45 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_128]; cbc_aes_nx_set_key()
49 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_192]; cbc_aes_nx_set_key()
53 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_256]; cbc_aes_nx_set_key()
H A Dnx-aes-ecb.c45 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_128]; ecb_aes_nx_set_key()
49 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_192]; ecb_aes_nx_set_key()
53 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_256]; ecb_aes_nx_set_key()
H A Dnx-aes-ctr.c46 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_128]; ctr_aes_nx_set_key()
50 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_192]; ctr_aes_nx_set_key()
54 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_256]; ctr_aes_nx_set_key()
H A Dnx.h139 struct alg_props *ap; /* pointer into props based on our key size */
140 struct alg_props props[3];/* openFirmware properties for requests */ member in struct:nx_crypto_ctx
H A Dnx-aes-gcm.c49 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_128]; gcm_aes_nx_set_key()
54 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_192]; gcm_aes_nx_set_key()
59 nx_ctx->ap = &nx_ctx->props[NX_PROPS_AES_256]; gcm_aes_nx_set_key()
H A Dnx-sha256.c43 nx_ctx->ap = &nx_ctx->props[NX_PROPS_SHA256]; nx_crypto_ctx_sha256_init()
H A Dnx-sha512.c42 nx_ctx->ap = &nx_ctx->props[NX_PROPS_SHA512]; nx_crypto_ctx_sha512_init()
/linux-4.1.27/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_topology.c176 struct kfd_mem_properties *props; kfd_parse_subtype_mem() local
186 props = kfd_alloc_struct(props); kfd_parse_subtype_mem()
187 if (props == NULL) kfd_parse_subtype_mem()
191 props->heap_type = HSA_MEM_HEAP_TYPE_FB_PRIVATE; kfd_parse_subtype_mem()
193 props->heap_type = HSA_MEM_HEAP_TYPE_SYSTEM; kfd_parse_subtype_mem()
196 props->flags |= HSA_MEM_FLAGS_HOT_PLUGGABLE; kfd_parse_subtype_mem()
198 props->flags |= HSA_MEM_FLAGS_NON_VOLATILE; kfd_parse_subtype_mem()
200 props->size_in_bytes = kfd_parse_subtype_mem()
203 props->width = mem->width; kfd_parse_subtype_mem()
206 list_add_tail(&props->list, &dev->mem_props); kfd_parse_subtype_mem()
222 struct kfd_cache_properties *props; kfd_parse_subtype_cache() local
234 props = kfd_alloc_struct(props); kfd_parse_subtype_cache()
235 if (props == NULL) kfd_parse_subtype_cache()
238 props->processor_id_low = id; kfd_parse_subtype_cache()
239 props->cache_level = cache->cache_level; kfd_parse_subtype_cache()
240 props->cache_size = cache->cache_size; kfd_parse_subtype_cache()
241 props->cacheline_size = cache->cache_line_size; kfd_parse_subtype_cache()
242 props->cachelines_per_tag = cache->lines_per_tag; kfd_parse_subtype_cache()
243 props->cache_assoc = cache->associativity; kfd_parse_subtype_cache()
244 props->cache_latency = cache->cache_latency; kfd_parse_subtype_cache()
247 props->cache_type |= HSA_CACHE_TYPE_DATA; kfd_parse_subtype_cache()
249 props->cache_type |= HSA_CACHE_TYPE_INSTRUCTION; kfd_parse_subtype_cache()
251 props->cache_type |= HSA_CACHE_TYPE_CPU; kfd_parse_subtype_cache()
253 props->cache_type |= HSA_CACHE_TYPE_HSACU; kfd_parse_subtype_cache()
257 list_add_tail(&props->list, &dev->cache_props); kfd_parse_subtype_cache()
271 struct kfd_iolink_properties *props; kfd_parse_subtype_iolink() local
285 props = kfd_alloc_struct(props); kfd_parse_subtype_iolink()
286 if (props == NULL) kfd_parse_subtype_iolink()
289 props->node_from = id_from; kfd_parse_subtype_iolink()
290 props->node_to = id_to; kfd_parse_subtype_iolink()
291 props->ver_maj = iolink->version_major; kfd_parse_subtype_iolink()
292 props->ver_min = iolink->version_minor; kfd_parse_subtype_iolink()
297 props->weight = 1; kfd_parse_subtype_iolink()
299 props->min_latency = iolink->minimum_latency; kfd_parse_subtype_iolink()
300 props->max_latency = iolink->maximum_latency; kfd_parse_subtype_iolink()
301 props->min_bandwidth = iolink->minimum_bandwidth_mbs; kfd_parse_subtype_iolink()
302 props->max_bandwidth = iolink->maximum_bandwidth_mbs; kfd_parse_subtype_iolink()
303 props->rec_transfer_size = kfd_parse_subtype_iolink()
308 list_add_tail(&props->list, &dev->io_link_props); kfd_parse_subtype_iolink()
/linux-4.1.27/drivers/power/
H A Dz2_battery.c132 static int z2_batt_ps_init(struct z2_charger *charger, int props) z2_batt_ps_init() argument
139 props++; /* POWER_SUPPLY_PROP_STATUS */ z2_batt_ps_init()
141 props++; /* POWER_SUPPLY_PROP_TECHNOLOGY */ z2_batt_ps_init()
143 props++; /* POWER_SUPPLY_PROP_VOLTAGE_NOW */ z2_batt_ps_init()
145 props++; /* POWER_SUPPLY_PROP_VOLTAGE_MAX */ z2_batt_ps_init()
147 props++; /* POWER_SUPPLY_PROP_VOLTAGE_MIN */ z2_batt_ps_init()
149 prop = kzalloc(props * sizeof(*prop), GFP_KERNEL); z2_batt_ps_init()
175 charger->batt_ps_desc.num_properties = props; z2_batt_ps_init()
189 int props = 1; /* POWER_SUPPLY_PROP_PRESENT */ z2_batt_probe() local
231 ret = z2_batt_ps_init(charger, props); z2_batt_probe()
H A Dwm97xx_battery.c169 int props = 1; /* POWER_SUPPLY_PROP_PRESENT */ wm97xx_bat_probe() local
201 props++; /* POWER_SUPPLY_PROP_STATUS */ wm97xx_bat_probe()
205 props++; /* POWER_SUPPLY_PROP_TECHNOLOGY */ wm97xx_bat_probe()
207 props++; /* POWER_SUPPLY_PROP_TEMP */ wm97xx_bat_probe()
209 props++; /* POWER_SUPPLY_PROP_VOLTAGE_NOW */ wm97xx_bat_probe()
211 props++; /* POWER_SUPPLY_PROP_VOLTAGE_MAX */ wm97xx_bat_probe()
213 props++; /* POWER_SUPPLY_PROP_VOLTAGE_MIN */ wm97xx_bat_probe()
215 prop = kzalloc(props * sizeof(*prop), GFP_KERNEL); wm97xx_bat_probe()
246 bat_psy_desc.num_properties = props; wm97xx_bat_probe()
/linux-4.1.27/drivers/infiniband/hw/qib/
H A Dqib_verbs.c1555 struct ib_device_attr *props) qib_query_device()
1560 memset(props, 0, sizeof(*props)); qib_query_device()
1562 props->device_cap_flags = IB_DEVICE_BAD_PKEY_CNTR | qib_query_device()
1566 props->page_size_cap = PAGE_SIZE; qib_query_device()
1567 props->vendor_id = qib_query_device()
1569 props->vendor_part_id = dd->deviceid; qib_query_device()
1570 props->hw_ver = dd->minrev; qib_query_device()
1571 props->sys_image_guid = ib_qib_sys_image_guid; qib_query_device()
1572 props->max_mr_size = ~0ULL; qib_query_device()
1573 props->max_qp = ib_qib_max_qps; qib_query_device()
1574 props->max_qp_wr = ib_qib_max_qp_wrs; qib_query_device()
1575 props->max_sge = ib_qib_max_sges; qib_query_device()
1576 props->max_cq = ib_qib_max_cqs; qib_query_device()
1577 props->max_ah = ib_qib_max_ahs; qib_query_device()
1578 props->max_cqe = ib_qib_max_cqes; qib_query_device()
1579 props->max_mr = dev->lk_table.max; qib_query_device()
1580 props->max_fmr = dev->lk_table.max; qib_query_device()
1581 props->max_map_per_fmr = 32767; qib_query_device()
1582 props->max_pd = ib_qib_max_pds; qib_query_device()
1583 props->max_qp_rd_atom = QIB_MAX_RDMA_ATOMIC; qib_query_device()
1584 props->max_qp_init_rd_atom = 255; qib_query_device()
1585 /* props->max_res_rd_atom */ qib_query_device()
1586 props->max_srq = ib_qib_max_srqs; qib_query_device()
1587 props->max_srq_wr = ib_qib_max_srq_wrs; qib_query_device()
1588 props->max_srq_sge = ib_qib_max_srq_sges; qib_query_device()
1589 /* props->local_ca_ack_delay */ qib_query_device()
1590 props->atomic_cap = IB_ATOMIC_GLOB; qib_query_device()
1591 props->max_pkeys = qib_get_npkeys(dd); qib_query_device()
1592 props->max_mcast_grp = ib_qib_max_mcast_grps; qib_query_device()
1593 props->max_mcast_qp_attach = ib_qib_max_mcast_qp_attached; qib_query_device()
1594 props->max_total_mcast_qp_attach = props->max_mcast_qp_attach * qib_query_device()
1595 props->max_mcast_grp; qib_query_device()
1601 struct ib_port_attr *props) qib_query_port()
1609 memset(props, 0, sizeof(*props)); qib_query_port()
1610 props->lid = lid ? lid : be16_to_cpu(IB_LID_PERMISSIVE); qib_query_port()
1611 props->lmc = ppd->lmc; qib_query_port()
1612 props->sm_lid = ibp->sm_lid; qib_query_port()
1613 props->sm_sl = ibp->sm_sl; qib_query_port()
1614 props->state = dd->f_iblink_state(ppd->lastibcstat); qib_query_port()
1615 props->phys_state = dd->f_ibphys_portstate(ppd->lastibcstat); qib_query_port()
1616 props->port_cap_flags = ibp->port_cap_flags; qib_query_port()
1617 props->gid_tbl_len = QIB_GUIDS_PER_PORT; qib_query_port()
1618 props->max_msg_sz = 0x80000000; qib_query_port()
1619 props->pkey_tbl_len = qib_get_npkeys(dd); qib_query_port()
1620 props->bad_pkey_cntr = ibp->pkey_violations; qib_query_port()
1621 props->qkey_viol_cntr = ibp->qkey_violations; qib_query_port()
1622 props->active_width = ppd->link_width_active; qib_query_port()
1624 props->active_speed = ppd->link_speed_active; qib_query_port()
1625 props->max_vl_num = qib_num_vls(ppd->vls_supported); qib_query_port()
1626 props->init_type_reply = 0; qib_query_port()
1628 props->max_mtu = qib_ibmtu ? qib_ibmtu : IB_MTU_4096; qib_query_port()
1648 props->active_mtu = mtu; qib_query_port()
1649 props->subnet_timeout = ibp->subnet_timeout; qib_query_port()
1694 int port_modify_mask, struct ib_port_modify *props) qib_modify_port()
1699 ibp->port_cap_flags |= props->set_port_cap_mask; qib_modify_port()
1700 ibp->port_cap_flags &= ~props->clr_port_cap_mask; qib_modify_port()
1701 if (props->set_port_cap_mask || props->clr_port_cap_mask) qib_modify_port()
1554 qib_query_device(struct ib_device *ibdev, struct ib_device_attr *props) qib_query_device() argument
1600 qib_query_port(struct ib_device *ibdev, u8 port, struct ib_port_attr *props) qib_query_port() argument
1693 qib_modify_port(struct ib_device *ibdev, u8 port, int port_modify_mask, struct ib_port_modify *props) qib_modify_port() argument
/linux-4.1.27/drivers/infiniband/hw/ipath/
H A Dipath_verbs.c1499 struct ib_device_attr *props) ipath_query_device()
1503 memset(props, 0, sizeof(*props)); ipath_query_device()
1505 props->device_cap_flags = IB_DEVICE_BAD_PKEY_CNTR | ipath_query_device()
1509 props->page_size_cap = PAGE_SIZE; ipath_query_device()
1510 props->vendor_id = ipath_query_device()
1512 props->vendor_part_id = dev->dd->ipath_deviceid; ipath_query_device()
1513 props->hw_ver = dev->dd->ipath_pcirev; ipath_query_device()
1515 props->sys_image_guid = dev->sys_image_guid; ipath_query_device()
1517 props->max_mr_size = ~0ull; ipath_query_device()
1518 props->max_qp = ib_ipath_max_qps; ipath_query_device()
1519 props->max_qp_wr = ib_ipath_max_qp_wrs; ipath_query_device()
1520 props->max_sge = ib_ipath_max_sges; ipath_query_device()
1521 props->max_cq = ib_ipath_max_cqs; ipath_query_device()
1522 props->max_ah = ib_ipath_max_ahs; ipath_query_device()
1523 props->max_cqe = ib_ipath_max_cqes; ipath_query_device()
1524 props->max_mr = dev->lk_table.max; ipath_query_device()
1525 props->max_fmr = dev->lk_table.max; ipath_query_device()
1526 props->max_map_per_fmr = 32767; ipath_query_device()
1527 props->max_pd = ib_ipath_max_pds; ipath_query_device()
1528 props->max_qp_rd_atom = IPATH_MAX_RDMA_ATOMIC; ipath_query_device()
1529 props->max_qp_init_rd_atom = 255; ipath_query_device()
1530 /* props->max_res_rd_atom */ ipath_query_device()
1531 props->max_srq = ib_ipath_max_srqs; ipath_query_device()
1532 props->max_srq_wr = ib_ipath_max_srq_wrs; ipath_query_device()
1533 props->max_srq_sge = ib_ipath_max_srq_sges; ipath_query_device()
1534 /* props->local_ca_ack_delay */ ipath_query_device()
1535 props->atomic_cap = IB_ATOMIC_GLOB; ipath_query_device()
1536 props->max_pkeys = ipath_get_npkeys(dev->dd); ipath_query_device()
1537 props->max_mcast_grp = ib_ipath_max_mcast_grps; ipath_query_device()
1538 props->max_mcast_qp_attach = ib_ipath_max_mcast_qp_attached; ipath_query_device()
1539 props->max_total_mcast_qp_attach = props->max_mcast_qp_attach * ipath_query_device()
1540 props->max_mcast_grp; ipath_query_device()
1581 u8 port, struct ib_port_attr *props) ipath_query_port()
1589 memset(props, 0, sizeof(*props)); ipath_query_port()
1590 props->lid = lid ? lid : be16_to_cpu(IB_LID_PERMISSIVE); ipath_query_port()
1591 props->lmc = dd->ipath_lmc; ipath_query_port()
1592 props->sm_lid = dev->sm_lid; ipath_query_port()
1593 props->sm_sl = dev->sm_sl; ipath_query_port()
1596 props->state = ipath_ib_linkstate(dd, ibcstat) + 1; ipath_query_port()
1599 props->phys_state = /* MEA: assumes shift == 0 */ ipath_query_port()
1602 props->port_cap_flags = dev->port_cap_flags; ipath_query_port()
1603 props->gid_tbl_len = 1; ipath_query_port()
1604 props->max_msg_sz = 0x80000000; ipath_query_port()
1605 props->pkey_tbl_len = ipath_get_npkeys(dd); ipath_query_port()
1606 props->bad_pkey_cntr = ipath_get_cr_errpkey(dd) - ipath_query_port()
1608 props->qkey_viol_cntr = dev->qkey_violations; ipath_query_port()
1609 props->active_width = dd->ipath_link_width_active; ipath_query_port()
1611 props->active_speed = dd->ipath_link_speed_active; ipath_query_port()
1612 props->max_vl_num = 1; /* VLCap = VL0 */ ipath_query_port()
1613 props->init_type_reply = 0; ipath_query_port()
1615 props->max_mtu = ipath_mtu4096 ? IB_MTU_4096 : IB_MTU_2048; ipath_query_port()
1635 props->active_mtu = mtu; ipath_query_port()
1636 props->subnet_timeout = dev->subnet_timeout; ipath_query_port()
1668 struct ib_port_modify *props) ipath_modify_port()
1672 dev->port_cap_flags |= props->set_port_cap_mask; ipath_modify_port()
1673 dev->port_cap_flags &= ~props->clr_port_cap_mask; ipath_modify_port()
1498 ipath_query_device(struct ib_device *ibdev, struct ib_device_attr *props) ipath_query_device() argument
1580 ipath_query_port(struct ib_device *ibdev, u8 port, struct ib_port_attr *props) ipath_query_port() argument
1666 ipath_modify_port(struct ib_device *ibdev, u8 port, int port_modify_mask, struct ib_port_modify *props) ipath_modify_port() argument
/linux-4.1.27/drivers/gpu/drm/atmel-hlcdc/
H A Datmel_hlcdc_plane.c769 struct atmel_hlcdc_plane_properties *props = plane->properties; atmel_hlcdc_plane_atomic_set_property() local
773 if (property == props->alpha) atmel_hlcdc_plane_atomic_set_property()
787 struct atmel_hlcdc_plane_properties *props = plane->properties; atmel_hlcdc_plane_atomic_get_property() local
791 if (property == props->alpha) atmel_hlcdc_plane_atomic_get_property()
801 struct atmel_hlcdc_plane_properties *props) atmel_hlcdc_plane_init_properties()
808 props->alpha, 255); atmel_hlcdc_plane_init_properties()
918 struct atmel_hlcdc_plane_properties *props) atmel_hlcdc_plane_create()
950 atmel_hlcdc_plane_init_properties(plane, desc, props); atmel_hlcdc_plane_create()
958 struct atmel_hlcdc_plane_properties *props; atmel_hlcdc_plane_create_properties() local
960 props = devm_kzalloc(dev->dev, sizeof(*props), GFP_KERNEL); atmel_hlcdc_plane_create_properties()
961 if (!props) atmel_hlcdc_plane_create_properties()
964 props->alpha = drm_property_create_range(dev, 0, "alpha", 0, 255); atmel_hlcdc_plane_create_properties()
965 if (!props->alpha) atmel_hlcdc_plane_create_properties()
977 return props; atmel_hlcdc_plane_create_properties()
984 struct atmel_hlcdc_plane_properties *props; atmel_hlcdc_create_planes() local
1008 props = atmel_hlcdc_plane_create_properties(dev); atmel_hlcdc_create_planes()
1009 if (IS_ERR(props)) atmel_hlcdc_create_planes()
1010 return ERR_CAST(props); atmel_hlcdc_create_planes()
1019 plane = atmel_hlcdc_plane_create(dev, &descs[i], props); atmel_hlcdc_create_planes()
1023 plane->properties = props; atmel_hlcdc_create_planes()
799 atmel_hlcdc_plane_init_properties(struct atmel_hlcdc_plane *plane, const struct atmel_hlcdc_layer_desc *desc, struct atmel_hlcdc_plane_properties *props) atmel_hlcdc_plane_init_properties() argument
916 atmel_hlcdc_plane_create(struct drm_device *dev, const struct atmel_hlcdc_layer_desc *desc, struct atmel_hlcdc_plane_properties *props) atmel_hlcdc_plane_create() argument
/linux-4.1.27/drivers/infiniband/hw/cxgb3/
H A Diwch_provider.c1149 struct ib_device_attr *props) iwch_query_device()
1156 memset(props, 0, sizeof *props); iwch_query_device()
1157 memcpy(&props->sys_image_guid, dev->rdev.t3cdev_p->lldev->dev_addr, 6); iwch_query_device()
1158 props->hw_ver = dev->rdev.t3cdev_p->type; iwch_query_device()
1159 props->fw_ver = fw_vers_string_to_u64(dev); iwch_query_device()
1160 props->device_cap_flags = dev->device_cap_flags; iwch_query_device()
1161 props->page_size_cap = dev->attr.mem_pgsizes_bitmask; iwch_query_device()
1162 props->vendor_id = (u32)dev->rdev.rnic_info.pdev->vendor; iwch_query_device()
1163 props->vendor_part_id = (u32)dev->rdev.rnic_info.pdev->device; iwch_query_device()
1164 props->max_mr_size = dev->attr.max_mr_size; iwch_query_device()
1165 props->max_qp = dev->attr.max_qps; iwch_query_device()
1166 props->max_qp_wr = dev->attr.max_wrs; iwch_query_device()
1167 props->max_sge = dev->attr.max_sge_per_wr; iwch_query_device()
1168 props->max_sge_rd = 1; iwch_query_device()
1169 props->max_qp_rd_atom = dev->attr.max_rdma_reads_per_qp; iwch_query_device()
1170 props->max_qp_init_rd_atom = dev->attr.max_rdma_reads_per_qp; iwch_query_device()
1171 props->max_cq = dev->attr.max_cqs; iwch_query_device()
1172 props->max_cqe = dev->attr.max_cqes_per_cq; iwch_query_device()
1173 props->max_mr = dev->attr.max_mem_regs; iwch_query_device()
1174 props->max_pd = dev->attr.max_pds; iwch_query_device()
1175 props->local_ca_ack_delay = 0; iwch_query_device()
1176 props->max_fast_reg_page_list_len = T3_MAX_FASTREG_DEPTH; iwch_query_device()
1182 u8 port, struct ib_port_attr *props) iwch_query_port()
1193 memset(props, 0, sizeof(struct ib_port_attr)); iwch_query_port()
1194 props->max_mtu = IB_MTU_4096; iwch_query_port()
1196 props->active_mtu = IB_MTU_4096; iwch_query_port()
1198 props->active_mtu = IB_MTU_2048; iwch_query_port()
1200 props->active_mtu = IB_MTU_1024; iwch_query_port()
1202 props->active_mtu = IB_MTU_512; iwch_query_port()
1204 props->active_mtu = IB_MTU_256; iwch_query_port()
1207 props->state = IB_PORT_DOWN; iwch_query_port()
1212 props->state = IB_PORT_ACTIVE; iwch_query_port()
1214 props->state = IB_PORT_INIT; iwch_query_port()
1217 props->state = IB_PORT_INIT; iwch_query_port()
1220 props->port_cap_flags = iwch_query_port()
1226 props->gid_tbl_len = 1; iwch_query_port()
1227 props->pkey_tbl_len = 1; iwch_query_port()
1228 props->active_width = 2; iwch_query_port()
1229 props->active_speed = IB_SPEED_DDR; iwch_query_port()
1230 props->max_msg_sz = -1; iwch_query_port()
1148 iwch_query_device(struct ib_device *ibdev, struct ib_device_attr *props) iwch_query_device() argument
1181 iwch_query_port(struct ib_device *ibdev, u8 port, struct ib_port_attr *props) iwch_query_port() argument
/linux-4.1.27/drivers/misc/mei/
H A Ddebugfs.c64 me_cl->props.fixed_address, mei_dbgfs_read_meclients()
65 &me_cl->props.protocol_name, mei_dbgfs_read_meclients()
66 me_cl->props.max_number_of_connections, mei_dbgfs_read_meclients()
67 me_cl->props.max_msg_length, mei_dbgfs_read_meclients()
68 me_cl->props.single_recv_buf, mei_dbgfs_read_meclients()
H A Dmain.c306 if (length > me_cl->props.max_msg_length) { mei_write()
398 if (!me_cl || me_cl->props.fixed_address) { mei_ioctl_connect_client()
405 cl->cl_uuid = me_cl->props.protocol_name; mei_ioctl_connect_client()
410 me_cl->props.protocol_version); mei_ioctl_connect_client()
412 me_cl->props.max_msg_length); mei_ioctl_connect_client()
431 client->max_msg_length = me_cl->props.max_msg_length; mei_ioctl_connect_client()
432 client->protocol_version = me_cl->props.protocol_version; mei_ioctl_connect_client()
440 client->max_msg_length = me_cl->props.max_msg_length; mei_ioctl_connect_client()
441 client->protocol_version = me_cl->props.protocol_version; mei_ioctl_connect_client()
H A Dclient.c136 pn = &me_cl->props.protocol_name; __mei_me_cl_by_uuid()
216 pn = &me_cl->props.protocol_name; __mei_me_cl_by_uuid_id()
962 if (WARN_ON(me_cl->props.single_recv_buf == 0)) mei_cl_flow_ctrl_creds()
996 if (me_cl->props.single_recv_buf) { mei_cl_flow_ctrl_reduce()
1049 length = max_t(size_t, length, me_cl->props.max_msg_length); mei_cl_read_start()
H A Damthif.c82 cl->cl_uuid = me_cl->props.protocol_name; mei_amthif_host_init()
86 dev->iamthif_mtu = me_cl->props.max_msg_length; mei_amthif_host_init()
H A Dnfc.c518 cl_info->cl_uuid = me_cl->props.protocol_name; mei_nfc_host_init()
541 cl->cl_uuid = me_cl->props.protocol_name; mei_nfc_host_init()
H A Dwd.c78 cl->cl_uuid = me_cl->props.protocol_name; mei_wd_host_init()
H A Dhbm.c337 me_cl->props = res->client_properties; mei_hbm_me_cl_add()
487 if (WARN_ON(me_cl->props.single_recv_buf == 0)) { mei_hbm_add_single_flow_creds()
H A Dmei_dev.h176 * @props: client properties
183 struct mei_client_properties props; member in struct:mei_me_client
/linux-4.1.27/drivers/infiniband/hw/ocrdma/
H A 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);
H A Docrdma_verbs.c148 u8 port, struct ib_port_attr *props) ocrdma_query_port()
163 props->phys_state = 5; ocrdma_query_port()
166 props->phys_state = 3; ocrdma_query_port()
168 props->max_mtu = IB_MTU_4096; ocrdma_query_port()
169 props->active_mtu = iboe_get_mtu(netdev->mtu); ocrdma_query_port()
170 props->lid = 0; ocrdma_query_port()
171 props->lmc = 0; ocrdma_query_port()
172 props->sm_lid = 0; ocrdma_query_port()
173 props->sm_sl = 0; ocrdma_query_port()
174 props->state = port_state; ocrdma_query_port()
175 props->port_cap_flags = ocrdma_query_port()
179 props->gid_tbl_len = OCRDMA_MAX_SGID; ocrdma_query_port()
180 props->pkey_tbl_len = 1; ocrdma_query_port()
181 props->bad_pkey_cntr = 0; ocrdma_query_port()
182 props->qkey_viol_cntr = 0; ocrdma_query_port()
183 get_link_speed_and_width(dev, &props->active_speed, ocrdma_query_port()
184 &props->active_width); ocrdma_query_port()
185 props->max_msg_sz = 0x80000000; ocrdma_query_port()
186 props->max_vl_num = 4; ocrdma_query_port()
191 struct ib_port_modify *props) ocrdma_modify_port()
147 ocrdma_query_port(struct ib_device *ibdev, u8 port, struct ib_port_attr *props) ocrdma_query_port() argument
190 ocrdma_modify_port(struct ib_device *ibdev, u8 port, int mask, struct ib_port_modify *props) ocrdma_modify_port() argument
/linux-4.1.27/drivers/usb/misc/
H A Dappledisplay.c150 pdata->msgdata[1] = bd->props.brightness; appledisplay_bl_update_status()
203 pdata->bd->props.brightness = retval; appledisplay_work()
213 struct backlight_properties props; appledisplay_probe() local
292 memset(&props, 0, sizeof(struct backlight_properties)); appledisplay_probe()
293 props.type = BACKLIGHT_RAW; appledisplay_probe()
294 props.max_brightness = 0xff; appledisplay_probe()
296 &appledisplay_bl_data, &props); appledisplay_probe()
314 pdata->bd->props.brightness = brightness; appledisplay_probe()
/linux-4.1.27/drivers/staging/fbtft/
H A Dfb_watterott.c242 int brightness = bd->props.brightness; backlight_chip_update_status()
246 __func__, bd->props.brightness, bd->props.power, backlight_chip_update_status()
247 bd->props.fb_blank); backlight_chip_update_status()
249 if (bd->props.power != FB_BLANK_UNBLANK) backlight_chip_update_status()
252 if (bd->props.fb_blank != FB_BLANK_UNBLANK) backlight_chip_update_status()
H A Dfb_ssd1351.c201 __func__, bd->props.power, bd->props.fb_blank); update_onboard_backlight()
203 on = (bd->props.power == FB_BLANK_UNBLANK) update_onboard_backlight()
204 && (bd->props.fb_blank == FB_BLANK_UNBLANK); update_onboard_backlight()
H A Dfbtft-core.c250 bool polarity = !!(bd->props.state & BL_CORE_DRIVER1); fbtft_backlight_update_status()
254 __func__, polarity, bd->props.power, bd->props.fb_blank); fbtft_backlight_update_status()
256 if ((bd->props.power == FB_BLANK_UNBLANK) && (bd->props.fb_blank == FB_BLANK_UNBLANK)) fbtft_backlight_update_status()
266 return bd->props.brightness; fbtft_backlight_get_brightness()
276 par->info->bl_dev->props.power = FB_BLANK_POWERDOWN; fbtft_unregister_backlight()
1007 fb_info->bl_dev->props.power = FB_BLANK_UNBLANK; fbtft_register_framebuffer()
/linux-4.1.27/drivers/gpu/drm/i915/
H A Dintel_panel.c685 panel->backlight.device->props.brightness = intel_panel_set_backlight_acpi()
688 panel->backlight.device->props.max_brightness); intel_panel_set_backlight_acpi()
767 panel->backlight.device->props.power = FB_BLANK_POWERDOWN; intel_panel_disable_backlight()
977 panel->backlight.device->props.brightness = intel_panel_enable_backlight()
980 panel->backlight.device->props.max_brightness); intel_panel_enable_backlight()
986 panel->backlight.device->props.power = FB_BLANK_UNBLANK; intel_panel_enable_backlight()
1000 bd->props.brightness, bd->props.max_brightness); intel_backlight_device_update_status()
1001 intel_panel_set_backlight(connector, bd->props.brightness, intel_backlight_device_update_status()
1002 bd->props.max_brightness); intel_backlight_device_update_status()
1012 bool enable = bd->props.power == FB_BLANK_UNBLANK && intel_backlight_device_update_status()
1013 bd->props.brightness != 0; intel_backlight_device_update_status()
1017 bd->props.power = FB_BLANK_POWERDOWN; intel_backlight_device_update_status()
1036 ret = scale_hw_to_user(connector, hw_level, bd->props.max_brightness); intel_backlight_device_get_brightness()
1052 struct backlight_properties props; intel_backlight_device_register() local
1062 memset(&props, 0, sizeof(props)); intel_backlight_device_register()
1063 props.type = BACKLIGHT_RAW; intel_backlight_device_register()
1069 props.max_brightness = panel->backlight.max; intel_backlight_device_register()
1070 props.brightness = scale_hw_to_user(connector, intel_backlight_device_register()
1072 props.max_brightness); intel_backlight_device_register()
1075 props.power = FB_BLANK_UNBLANK; intel_backlight_device_register()
1077 props.power = FB_BLANK_POWERDOWN; intel_backlight_device_register()
1087 &intel_backlight_device_ops, &props); intel_backlight_device_register()
/linux-4.1.27/drivers/video/fbdev/omap2/displays-new/
H A Dpanel-sony-acx565akm.c355 if (dev->props.fb_blank == FB_BLANK_UNBLANK && acx565akm_bl_update_status()
356 dev->props.power == FB_BLANK_UNBLANK) acx565akm_bl_update_status()
357 level = dev->props.brightness; acx565akm_bl_update_status()
378 if (dev->props.fb_blank == FB_BLANK_UNBLANK && acx565akm_bl_get_intensity()
379 dev->props.power == FB_BLANK_UNBLANK) { acx565akm_bl_get_intensity()
383 return dev->props.brightness; acx565akm_bl_get_intensity()
755 struct backlight_properties props; acx565akm_probe() local
813 memset(&props, 0, sizeof(props)); acx565akm_probe()
814 props.fb_blank = FB_BLANK_UNBLANK; acx565akm_probe()
815 props.power = FB_BLANK_UNBLANK; acx565akm_probe()
816 props.type = BACKLIGHT_RAW; acx565akm_probe()
819 ddata, &acx565akm_bl_ops, &props); acx565akm_probe()
842 bldev->props.max_brightness = max_brightness; acx565akm_probe()
843 bldev->props.brightness = brightness; acx565akm_probe()
H A Dpanel-dsi-cm.c342 if (dev->props.fb_blank == FB_BLANK_UNBLANK && dsicm_bl_update_status()
343 dev->props.power == FB_BLANK_UNBLANK) dsicm_bl_update_status()
344 level = dev->props.brightness; dsicm_bl_update_status()
371 if (dev->props.fb_blank == FB_BLANK_UNBLANK && dsicm_bl_get_intensity()
372 dev->props.power == FB_BLANK_UNBLANK) dsicm_bl_get_intensity()
373 return dev->props.brightness; dsicm_bl_get_intensity()
1201 struct backlight_properties props; dsicm_probe() local
1297 memset(&props, 0, sizeof(struct backlight_properties)); dsicm_probe()
1298 props.max_brightness = 255; dsicm_probe()
1300 props.type = BACKLIGHT_RAW; dsicm_probe()
1302 dev, ddata, &dsicm_bl_ops, &props); dsicm_probe()
1310 bldev->props.fb_blank = FB_BLANK_UNBLANK; dsicm_probe()
1311 bldev->props.power = FB_BLANK_UNBLANK; dsicm_probe()
1312 bldev->props.brightness = 255; dsicm_probe()
1351 bldev->props.power = FB_BLANK_POWERDOWN; dsicm_remove()
/linux-4.1.27/net/tipc/
H A Dbearer.c787 struct nlattr *props[TIPC_NLA_PROP_MAX + 1]; tipc_nl_bearer_enable() local
790 props); tipc_nl_bearer_enable()
794 if (props[TIPC_NLA_PROP_PRIO]) tipc_nl_bearer_enable()
795 prio = nla_get_u32(props[TIPC_NLA_PROP_PRIO]); tipc_nl_bearer_enable()
838 struct nlattr *props[TIPC_NLA_PROP_MAX + 1]; tipc_nl_bearer_set() local
841 props); tipc_nl_bearer_set()
847 if (props[TIPC_NLA_PROP_TOL]) tipc_nl_bearer_set()
848 b->tolerance = nla_get_u32(props[TIPC_NLA_PROP_TOL]); tipc_nl_bearer_set()
849 if (props[TIPC_NLA_PROP_PRIO]) tipc_nl_bearer_set()
850 b->priority = nla_get_u32(props[TIPC_NLA_PROP_PRIO]); tipc_nl_bearer_set()
851 if (props[TIPC_NLA_PROP_WIN]) tipc_nl_bearer_set()
852 b->window = nla_get_u32(props[TIPC_NLA_PROP_WIN]); tipc_nl_bearer_set()
1006 struct nlattr *props[TIPC_NLA_PROP_MAX + 1]; tipc_nl_media_set() local
1009 props); tipc_nl_media_set()
1015 if (props[TIPC_NLA_PROP_TOL]) tipc_nl_media_set()
1016 m->tolerance = nla_get_u32(props[TIPC_NLA_PROP_TOL]); tipc_nl_media_set()
1017 if (props[TIPC_NLA_PROP_PRIO]) tipc_nl_media_set()
1018 m->priority = nla_get_u32(props[TIPC_NLA_PROP_PRIO]); tipc_nl_media_set()
1019 if (props[TIPC_NLA_PROP_WIN]) tipc_nl_media_set()
1020 m->window = nla_get_u32(props[TIPC_NLA_PROP_WIN]); tipc_nl_media_set()
H A Dlink.c1835 int tipc_nl_parse_link_prop(struct nlattr *prop, struct nlattr *props[]) tipc_nl_parse_link_prop() argument
1839 err = nla_parse_nested(props, TIPC_NLA_PROP_MAX, prop, tipc_nl_parse_link_prop()
1844 if (props[TIPC_NLA_PROP_PRIO]) { tipc_nl_parse_link_prop()
1847 prio = nla_get_u32(props[TIPC_NLA_PROP_PRIO]); tipc_nl_parse_link_prop()
1852 if (props[TIPC_NLA_PROP_TOL]) { tipc_nl_parse_link_prop()
1855 tol = nla_get_u32(props[TIPC_NLA_PROP_TOL]); tipc_nl_parse_link_prop()
1860 if (props[TIPC_NLA_PROP_WIN]) { tipc_nl_parse_link_prop()
1863 win = nla_get_u32(props[TIPC_NLA_PROP_WIN]); tipc_nl_parse_link_prop()
1909 struct nlattr *props[TIPC_NLA_PROP_MAX + 1]; tipc_nl_link_set() local
1912 props); tipc_nl_link_set()
1918 if (props[TIPC_NLA_PROP_TOL]) { tipc_nl_link_set()
1921 tol = nla_get_u32(props[TIPC_NLA_PROP_TOL]); tipc_nl_link_set()
1925 if (props[TIPC_NLA_PROP_PRIO]) { tipc_nl_link_set()
1928 prio = nla_get_u32(props[TIPC_NLA_PROP_PRIO]); tipc_nl_link_set()
1932 if (props[TIPC_NLA_PROP_WIN]) { tipc_nl_link_set()
1935 win = nla_get_u32(props[TIPC_NLA_PROP_WIN]); tipc_nl_link_set()
/linux-4.1.27/net/netfilter/
H A Dxt_policy.c46 return MATCH_ADDR(saddr, smask, &x->props.saddr) && match_xfrm_state()
49 MATCH(mode, x->props.mode) && match_xfrm_state()
51 MATCH(reqid, x->props.reqid); match_xfrm_state()
/linux-4.1.27/include/linux/
H A Dbacklight.h95 struct backlight_properties props; member in struct:backlight_device
130 const struct backlight_properties *props);
134 const struct backlight_properties *props);
H A Dlcd.h67 struct lcd_properties props; member in struct:lcd_device
/linux-4.1.27/net/key/
H A Daf_key.c742 sockaddr_size = pfkey_sockaddr_size(x->props.family); __pfkey_xfrm_state2msg()
762 if (!xfrm_addr_equal(&x->sel.saddr, &x->props.saddr, x->props.family)) __pfkey_xfrm_state2msg()
800 sa->sadb_sa_replay = x->props.replay_window; __pfkey_xfrm_state2msg()
834 if (x->props.flags & XFRM_STATE_NOECN) __pfkey_xfrm_state2msg()
836 if (x->props.flags & XFRM_STATE_DECAP_DSCP) __pfkey_xfrm_state2msg()
838 if (x->props.flags & XFRM_STATE_NOPMTUDISC) __pfkey_xfrm_state2msg()
889 pfkey_sockaddr_fill(&x->props.saddr, 0, __pfkey_xfrm_state2msg()
891 x->props.family); __pfkey_xfrm_state2msg()
908 x->props.family); __pfkey_xfrm_state2msg()
912 if (!xfrm_addr_equal(&x->sel.saddr, &x->props.saddr, __pfkey_xfrm_state2msg()
913 x->props.family)) { __pfkey_xfrm_state2msg()
927 x->props.family); __pfkey_xfrm_state2msg()
958 if ((mode = pfkey_mode_from_xfrm(x->props.mode)) < 0) { __pfkey_xfrm_state2msg()
966 sa2->sadb_x_sa2_reqid = x->props.reqid; __pfkey_xfrm_state2msg()
1100 x->props.replay_window = min_t(unsigned int, sa->sadb_sa_replay, pfkey_msg2xfrm_state()
1103 x->props.flags |= XFRM_STATE_NOECN; pfkey_msg2xfrm_state()
1105 x->props.flags |= XFRM_STATE_DECAP_DSCP; pfkey_msg2xfrm_state()
1107 x->props.flags |= XFRM_STATE_NOPMTUDISC; pfkey_msg2xfrm_state()
1158 x->props.aalgo = sa->sadb_sa_auth; pfkey_msg2xfrm_state()
1172 x->props.calgo = sa->sadb_sa_encrypt; pfkey_msg2xfrm_state()
1192 x->props.ealgo = sa->sadb_sa_encrypt; pfkey_msg2xfrm_state()
1197 x->props.family = pfkey_sadb_addr2xfrm_addr((struct sadb_address *) ext_hdrs[SADB_EXT_ADDRESS_SRC-1], pfkey_msg2xfrm_state()
1198 &x->props.saddr); pfkey_msg2xfrm_state()
1209 x->props.mode = mode; pfkey_msg2xfrm_state()
1210 x->props.reqid = sa2->sadb_x_sa2_reqid; pfkey_msg2xfrm_state()
1222 x->sel.family = x->props.family; pfkey_msg2xfrm_state()
3090 sockaddr_size = pfkey_sockaddr_size(x->props.family); pfkey_send_acquire()
3133 pfkey_sockaddr_fill(&x->props.saddr, 0, pfkey_send_acquire()
3135 x->props.family); pfkey_send_acquire()
3151 x->props.family); pfkey_send_acquire()
3287 sockaddr_size = pfkey_sockaddr_size(x->props.family); pfkey_send_new_mapping()
3346 pfkey_sockaddr_fill(&x->props.saddr, 0, pfkey_send_new_mapping()
3348 x->props.family); pfkey_send_new_mapping()
3371 x->props.family); pfkey_send_new_mapping()
/linux-4.1.27/drivers/video/fbdev/
H A Dbfin-t350mcqb-fb.c424 struct backlight_properties props; bfin_t350mcqb_probe() local
548 memset(&props, 0, sizeof(struct backlight_properties)); bfin_t350mcqb_probe()
549 props.type = BACKLIGHT_RAW; bfin_t350mcqb_probe()
550 props.max_brightness = 255; bfin_t350mcqb_probe()
552 &bfin_lq043fb_bl_ops, &props); bfin_t350mcqb_probe()
562 lcd_dev->props.max_contrast = 255, printk(KERN_INFO "Done.\n"); bfin_t350mcqb_probe()
H A Datmel_lcdfb.c191 /* some bl->props field just changed */ atmel_bl_update_status()
196 int brightness = bl->props.brightness; atmel_bl_update_status()
202 if (bl->props.fb_blank != sinfo->bl_power) atmel_bl_update_status()
203 power = bl->props.fb_blank; atmel_bl_update_status()
204 else if (bl->props.power != sinfo->bl_power) atmel_bl_update_status()
205 power = bl->props.power; atmel_bl_update_status()
219 bl->props.fb_blank = bl->props.power = sinfo->bl_power = power; atmel_bl_update_status()
238 struct backlight_properties props; init_backlight() local
246 memset(&props, 0, sizeof(struct backlight_properties)); init_backlight()
247 props.type = BACKLIGHT_RAW; init_backlight()
248 props.max_brightness = 0xff; init_backlight()
250 &atmel_lcdc_bl_ops, &props); init_backlight()
258 bl->props.power = FB_BLANK_UNBLANK; init_backlight()
259 bl->props.fb_blank = FB_BLANK_UNBLANK; init_backlight()
260 bl->props.brightness = atmel_bl_get_brightness(bl); init_backlight()
269 sinfo->backlight->props.power = FB_BLANK_POWERDOWN; exit_backlight()
H A Dbf537-lq035.c691 struct backlight_properties props; bfin_lq035_probe() local
787 memset(&props, 0, sizeof(props)); bfin_lq035_probe()
788 props.type = BACKLIGHT_RAW; bfin_lq035_probe()
789 props.max_brightness = MAX_BRIGHENESS; bfin_lq035_probe()
791 &bfin_lq035fb_bl_ops, &props); bfin_lq035_probe()
800 lcd_dev->props.max_contrast = 255, bfin_lq035_probe()
H A Dbf54x-lq043fb.c503 struct backlight_properties props; bfin_bf54x_probe() local
651 memset(&props, 0, sizeof(struct backlight_properties)); bfin_bf54x_probe()
652 props.type = BACKLIGHT_RAW; bfin_bf54x_probe()
653 props.max_brightness = 255; bfin_bf54x_probe()
655 &bfin_lq043fb_bl_ops, &props); bfin_bf54x_probe()
665 lcd_dev->props.max_contrast = 255, printk(KERN_INFO "Done.\n"); bfin_bf54x_probe()
H A Dmx3fb.c289 int brightness = bl->props.brightness; mx3fb_bl_update_status()
291 if (bl->props.power != FB_BLANK_UNBLANK) mx3fb_bl_update_status()
293 if (bl->props.fb_blank != FB_BLANK_UNBLANK) mx3fb_bl_update_status()
310 struct backlight_properties props; mx3fb_init_backlight() local
316 memset(&props, 0, sizeof(struct backlight_properties)); mx3fb_init_backlight()
317 props.max_brightness = 0xff; mx3fb_init_backlight()
318 props.type = BACKLIGHT_RAW; mx3fb_init_backlight()
322 &mx3fb_lcdc_bl_ops, &props); mx3fb_init_backlight()
330 bl->props.power = FB_BLANK_UNBLANK; mx3fb_init_backlight()
331 bl->props.fb_blank = FB_BLANK_UNBLANK; mx3fb_init_backlight()
332 bl->props.brightness = mx3fb_bl_get_brightness(bl); mx3fb_init_backlight()
/linux-4.1.27/drivers/infiniband/hw/nes/
H A Dnes_verbs.c515 static int nes_query_device(struct ib_device *ibdev, struct ib_device_attr *props) nes_query_device() argument
521 memset(props, 0, sizeof(*props)); nes_query_device()
522 memcpy(&props->sys_image_guid, nesvnic->netdev->dev_addr, 6); nes_query_device()
524 props->fw_ver = nesdev->nesadapter->firmware_version; nes_query_device()
525 props->device_cap_flags = nesdev->nesadapter->device_cap_flags; nes_query_device()
526 props->vendor_id = nesdev->nesadapter->vendor_id; nes_query_device()
527 props->vendor_part_id = nesdev->nesadapter->vendor_part_id; nes_query_device()
528 props->hw_ver = nesdev->nesadapter->hw_rev; nes_query_device()
529 props->max_mr_size = 0x80000000; nes_query_device()
530 props->max_qp = nesibdev->max_qp; nes_query_device()
531 props->max_qp_wr = nesdev->nesadapter->max_qp_wr - 2; nes_query_device()
532 props->max_sge = nesdev->nesadapter->max_sge; nes_query_device()
533 props->max_cq = nesibdev->max_cq; nes_query_device()
534 props->max_cqe = nesdev->nesadapter->max_cqe; nes_query_device()
535 props->max_mr = nesibdev->max_mr; nes_query_device()
536 props->max_mw = nesibdev->max_mr; nes_query_device()
537 props->max_pd = nesibdev->max_pd; nes_query_device()
538 props->max_sge_rd = 1; nes_query_device()
541 props->max_qp_rd_atom = 2; nes_query_device()
544 props->max_qp_rd_atom = 8; nes_query_device()
547 props->max_qp_rd_atom = 32; nes_query_device()
550 props->max_qp_rd_atom = 64; nes_query_device()
553 props->max_qp_rd_atom = 0; nes_query_device()
555 props->max_qp_init_rd_atom = props->max_qp_rd_atom; nes_query_device()
556 props->atomic_cap = IB_ATOMIC_NONE; nes_query_device()
557 props->max_map_per_fmr = 1; nes_query_device()
566 static int nes_query_port(struct ib_device *ibdev, u8 port, struct ib_port_attr *props) nes_query_port() argument
571 memset(props, 0, sizeof(*props)); nes_query_port()
573 props->max_mtu = IB_MTU_4096; nes_query_port()
576 props->active_mtu = IB_MTU_4096; nes_query_port()
578 props->active_mtu = IB_MTU_2048; nes_query_port()
580 props->active_mtu = IB_MTU_1024; nes_query_port()
582 props->active_mtu = IB_MTU_512; nes_query_port()
584 props->active_mtu = IB_MTU_256; nes_query_port()
586 props->lid = 1; nes_query_port()
587 props->lmc = 0; nes_query_port()
588 props->sm_lid = 0; nes_query_port()
589 props->sm_sl = 0; nes_query_port()
591 props->state = IB_PORT_DOWN; nes_query_port()
593 props->state = IB_PORT_ACTIVE; nes_query_port()
595 props->state = IB_PORT_DOWN; nes_query_port()
596 props->phys_state = 0; nes_query_port()
597 props->port_cap_flags = IB_PORT_CM_SUP | IB_PORT_REINIT_SUP | nes_query_port()
599 props->gid_tbl_len = 1; nes_query_port()
600 props->pkey_tbl_len = 1; nes_query_port()
601 props->qkey_viol_cntr = 0; nes_query_port()
602 props->active_width = IB_WIDTH_4X; nes_query_port()
603 props->active_speed = IB_SPEED_SDR; nes_query_port()
604 props->max_msg_sz = 0x80000000; nes_query_port()
/linux-4.1.27/lib/xz/
H A Dxz_private.h115 * big enough, and XZ_OPTIONS_ERROR if props indicates something that this
119 uint8_t props);
H A Dxz_dec_lzma2.c799 static bool lzma_props(struct xz_dec_lzma2 *s, uint8_t props) lzma_props() argument
801 if (props > (4 * 5 + 4) * 9 + 8) lzma_props()
805 while (props >= 9 * 5) { lzma_props()
806 props -= 9 * 5; lzma_props()
813 while (props >= 9) { lzma_props()
814 props -= 9; lzma_props()
818 s->lzma.lc = props; lzma_props()
1132 XZ_EXTERN enum xz_ret xz_dec_lzma2_reset(struct xz_dec_lzma2 *s, uint8_t props) xz_dec_lzma2_reset() argument
1135 if (props > 39) xz_dec_lzma2_reset()
1138 s->dict.size = 2 + (props & 1); xz_dec_lzma2_reset()
1139 s->dict.size <<= (props >> 1) + 11; xz_dec_lzma2_reset()
/linux-4.1.27/drivers/gpu/drm/bridge/
H A Dps8622.c296 ps8622->bl->props.brightness); ps8622_send_config()
342 int ret, brightness = bl->props.brightness; ps8622_backlight_update()
344 if (bl->props.power != FB_BLANK_UNBLANK || ps8622_backlight_update()
345 bl->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK)) ps8622_backlight_update()
633 ps8622->bl->props.max_brightness = PS8622_MAX_BRIGHTNESS; ps8622_probe()
634 ps8622->bl->props.brightness = PS8622_MAX_BRIGHTNESS; ps8622_probe()
/linux-4.1.27/drivers/gpu/drm/radeon/
H A Dradeon_legacy_encoders.c321 if (bd->props.brightness < 0) radeon_legacy_lvds_level()
323 else if (bd->props.brightness > RADEON_MAX_BL_LEVEL) radeon_legacy_lvds_level()
326 level = bd->props.brightness; radeon_legacy_lvds_level()
370 struct backlight_properties props; radeon_legacy_backlight_init() local
390 memset(&props, 0, sizeof(props)); radeon_legacy_backlight_init()
391 props.max_brightness = RADEON_MAX_BL_LEVEL; radeon_legacy_backlight_init()
392 props.type = BACKLIGHT_RAW; radeon_legacy_backlight_init()
396 pdata, &radeon_backlight_ops, &props); radeon_legacy_backlight_init()
439 bd->props.brightness = radeon_legacy_backlight_get_brightness(bd); radeon_legacy_backlight_init()
440 bd->props.power = FB_BLANK_UNBLANK; radeon_legacy_backlight_init()
H A Datombios_encoders.c143 if (bd->props.brightness < 0) radeon_atom_bl_level()
145 else if (bd->props.brightness > RADEON_MAX_BL_LEVEL) radeon_atom_bl_level()
148 level = bd->props.brightness; radeon_atom_bl_level()
184 struct backlight_properties props; radeon_atom_backlight_init() local
211 memset(&props, 0, sizeof(props)); radeon_atom_backlight_init()
212 props.max_brightness = RADEON_MAX_BL_LEVEL; radeon_atom_backlight_init()
213 props.type = BACKLIGHT_RAW; radeon_atom_backlight_init()
217 pdata, &radeon_atom_backlight_ops, &props); radeon_atom_backlight_init()
228 bd->props.brightness = radeon_atom_backlight_get_brightness(bd); radeon_atom_backlight_init()
234 if (bd->props.brightness == 0) radeon_atom_backlight_init()
235 bd->props.brightness = RADEON_MAX_BL_LEVEL; radeon_atom_backlight_init()
236 bd->props.power = FB_BLANK_UNBLANK; radeon_atom_backlight_init()
/linux-4.1.27/drivers/media/common/
H A Dcx2341x.c1351 u32 props; cx2341x_s_ctrl() local
1379 props = (hdl->audio_sampling_freq->val << 0) | cx2341x_s_ctrl()
1384 props |= 3 << 12; cx2341x_s_ctrl()
1386 props |= hdl->audio_emphasis->val << 12; cx2341x_s_ctrl()
1389 props |= cx2341x_s_ctrl()
1398 props |= cx2341x_s_ctrl()
1403 CX2341X_ENC_SET_AUDIO_PROPERTIES, 1, props); cx2341x_s_ctrl()
1407 hdl->audio_properties = props; cx2341x_s_ctrl()
/linux-4.1.27/drivers/media/dvb-frontends/
H A Drtl2832_sdr.c885 if (d->props->power_ctrl) rtl2832_sdr_start_streaming()
886 d->props->power_ctrl(d, 1); rtl2832_sdr_start_streaming()
889 if (d->props->frontend_ctrl) rtl2832_sdr_start_streaming()
890 d->props->frontend_ctrl(pdata->dvb_frontend, 1); rtl2832_sdr_start_streaming()
947 if (d->props->frontend_ctrl) rtl2832_sdr_stop_streaming()
948 d->props->frontend_ctrl(pdata->dvb_frontend, 0); rtl2832_sdr_stop_streaming()
950 if (d->props->power_ctrl) rtl2832_sdr_stop_streaming()
951 d->props->power_ctrl(d, 0); rtl2832_sdr_stop_streaming()
H A Ddrxk_hard.c1843 state->m_b_mirror_freq_spect = (state->props.inversion == INVERSION_ON); start()
2461 switch (state->props.modulation) { get_qam_signal_to_noise()
2694 switch (state->props.modulation) {
3782 switch (state->props.transmission_mode) { set_dvbt()
3796 switch (state->props.guard_interval) { set_dvbt()
3816 switch (state->props.hierarchy) { set_dvbt()
3837 switch (state->props.modulation) { set_dvbt()
3880 switch (state->props.code_rate_HP) { set_dvbt()
3915 switch (state->props.bandwidth_hz) { set_dvbt()
3917 state->props.bandwidth_hz = 8000000; set_dvbt()
5289 /* printk(KERN_DEBUG "drxk: SR %d\n", state->props.symbol_rate); */ qam_set_symbolrate()
5290 if (state->props.symbol_rate <= 1188750) qam_set_symbolrate()
5292 else if (state->props.symbol_rate <= 2377500) qam_set_symbolrate()
5294 else if (state->props.symbol_rate <= 4755000) qam_set_symbolrate()
5303 symb_freq = state->props.symbol_rate * (1 << ratesel); qam_set_symbolrate()
5319 symb_freq = state->props.symbol_rate; qam_set_symbolrate()
5480 switch (state->props.modulation) { set_qam()
5556 state->props.symbol_rate); set_qam()
5640 switch (state->props.modulation) { set_qam()
6372 old_delsys = state->props.delivery_system; drxk_set_parameters()
6373 state->props = *p; drxk_set_parameters()
H A Ddrxk_hard.h212 struct dtv_frontend_properties props; member in struct:drxk_state
H A Dstb0899_drv.c1437 struct dtv_frontend_properties *props = &fe->dtv_property_cache; stb0899_search() local
1441 i_params->freq = props->frequency; stb0899_search()
1442 i_params->srate = props->symbol_rate; stb0899_search()
1443 state->delsys = props->delivery_system; stb0899_search()
H A Ddrxd_hard.c119 struct dtv_frontend_properties props; member in struct:drxd_state
1620 switch (state->props.bandwidth_hz) { CorrectSysClockDeviation()
1804 if (state->props.bandwidth_hz == 8000000) { StartDiversity()
1906 struct dtv_frontend_properties *p = &state->props; DRX_Start()
1971 mirrorFreqSpect = (state->props.inversion == INVERSION_ON); DRX_Start()
2894 state->props = *p; drxd_set_frontend()
/linux-4.1.27/drivers/infiniband/core/
H A Duser_mad.c1019 struct ib_port_modify props = { ib_umad_sm_open() local
1038 ret = ib_modify_port(port->ib_dev, port->port_num, 0, &props); ib_umad_sm_open()
1053 swap(props.set_port_cap_mask, props.clr_port_cap_mask); ib_umad_sm_open()
1054 ib_modify_port(port->ib_dev, port->port_num, 0, &props); ib_umad_sm_open()
1066 struct ib_port_modify props = { ib_umad_sm_close() local
1073 ret = ib_modify_port(port->ib_dev, port->port_num, 0, &props); ib_umad_sm_close()
/linux-4.1.27/drivers/video/fbdev/omap/
H A Dlcd_ams_delta.c188 lcd_device->props.max_contrast = AMS_DELTA_MAX_CONTRAST; ams_delta_panel_probe()
/linux-4.1.27/drivers/video/fbdev/riva/
H A Dfbdev.c306 if (bd->props.power != FB_BLANK_UNBLANK || riva_bl_update_status()
307 bd->props.fb_blank != FB_BLANK_UNBLANK) riva_bl_update_status()
310 level = bd->props.brightness; riva_bl_update_status()
331 struct backlight_properties props; riva_bl_init() local
347 memset(&props, 0, sizeof(struct backlight_properties)); riva_bl_init()
348 props.type = BACKLIGHT_RAW; riva_bl_init()
349 props.max_brightness = FB_BACKLIGHT_LEVELS - 1; riva_bl_init()
351 &props); riva_bl_init()
363 bd->props.brightness = bd->props.max_brightness; riva_bl_init()
364 bd->props.power = FB_BLANK_UNBLANK; riva_bl_init()
/linux-4.1.27/drivers/gpu/drm/panel/
H A Dpanel-sharp-lq101r1sx01.c100 sharp->backlight->props.power = FB_BLANK_POWERDOWN; sharp_panel_disable()
267 sharp->backlight->props.power = FB_BLANK_UNBLANK; sharp_panel_enable()
/linux-4.1.27/drivers/acpi/
H A Dvideo.c284 int request_level = bd->props.brightness + 2; acpi_video_set_brightness()
402 device->backlight->props.brightness = state - 2; acpi_video_device_lcd_set_level()
1690 struct backlight_properties props; acpi_video_dev_register_backlight() local
1723 memset(&props, 0, sizeof(struct backlight_properties)); acpi_video_dev_register_backlight()
1724 props.type = BACKLIGHT_FIRMWARE; acpi_video_dev_register_backlight()
1725 props.max_brightness = device->brightness->count - 3; acpi_video_dev_register_backlight()
1730 &props); acpi_video_dev_register_backlight()
1739 device->backlight->props.brightness = acpi_video_dev_register_backlight()
1941 if (backlight->props.type != BACKLIGHT_RAW) acpi_video_backlight_notify()
/linux-4.1.27/include/net/
H A Dxfrm.h162 } props; member in struct:xfrm_state
462 if ((ipproto == IPPROTO_IPIP && x->props.family == AF_INET) || xfrm_ip2inner_mode()
463 (ipproto == IPPROTO_IPV6 && x->props.family == AF_INET6)) xfrm_ip2inner_mode()
1037 tmpl->saddr.a4 != x->props.saddr.a4); __xfrm4_state_addr_cmp()
1044 !ipv6_addr_equal((struct in6_addr *)&tmpl->saddr, (struct in6_addr*)&x->props.saddr)); __xfrm6_state_addr_cmp()
1252 (saddr->a4 == x->props.saddr.a4 || !saddr->a4 || !x->props.saddr.a4)) __xfrm4_state_addr_check()
1262 (ipv6_addr_equal((struct in6_addr *)saddr, (struct in6_addr *)&x->props.saddr) || __xfrm6_state_addr_check()
1264 ipv6_addr_any((struct in6_addr *)&x->props.saddr))) __xfrm6_state_addr_check()
/linux-4.1.27/drivers/video/fbdev/exynos/
H A Ds6e8ax0.c327 unsigned int gamma = lcd->bd->props.brightness; s6e8ax0_gamma_cond()
709 int ret = 0, brightness = bd->props.brightness; s6e8ax0_set_brightness()
713 brightness > bd->props.max_brightness) { s6e8ax0_set_brightness()
805 lcd->bd->props.max_brightness = MAX_BRIGHTNESS; s6e8ax0_probe()
806 lcd->bd->props.brightness = MAX_BRIGHTNESS; s6e8ax0_probe()
/linux-4.1.27/drivers/staging/olpc_dcon/
H A Dolpc_dcon.c522 u8 level = dev->props.brightness & 0x0F; dcon_bl_update()
524 if (dev->props.power != FB_BLANK_UNBLANK) dcon_bl_update()
532 dcon_sleep(dcon, !!(dev->props.state & BL_CORE_FBBLANK)); dcon_bl_update()
/linux-4.1.27/drivers/scsi/
H A Dstorvsc_drv.c797 struct vmstorage_channel_properties props; handle_sc_creation() local
806 memset(&props, 0, sizeof(struct vmstorage_channel_properties)); handle_sc_creation()
811 (void *)&props, handle_sc_creation()
1291 struct vmstorage_channel_properties props; storvsc_connect_to_vsp() local
1294 memset(&props, 0, sizeof(struct vmstorage_channel_properties)); storvsc_connect_to_vsp()
1299 (void *)&props, storvsc_connect_to_vsp()
/linux-4.1.27/fs/btrfs/
H A Dprops.c20 #include "props.h"
/linux-4.1.27/drivers/gpu/drm/
H A Ddrm_crtc.c3702 * @props: enumeration lists with property values
3717 const struct drm_prop_enum_list *props, drm_property_create_enum()
3731 props[i].type, drm_property_create_enum()
3732 props[i].name); drm_property_create_enum()
3748 * @props: enumeration lists with property bitflags
3749 * @num_props: size of the @props array
3764 const struct drm_prop_enum_list *props, drm_property_create_bitmask()
3778 if (!(supported_bits & (1ULL << props[i].type))) drm_property_create_bitmask()
3787 props[i].type, drm_property_create_bitmask()
3788 props[i].name); drm_property_create_bitmask()
4091 * having to deal w/ EDID and similar props in atomic paths: drm_object_property_get_value()
5531 static const struct drm_prop_enum_list props[] = { drm_mode_create_rotation_property() local
5541 props, ARRAY_SIZE(props), drm_mode_create_rotation_property()
3715 drm_property_create_enum(struct drm_device *dev, int flags, const char *name, const struct drm_prop_enum_list *props, int num_values) drm_property_create_enum() argument
3762 drm_property_create_bitmask(struct drm_device *dev, int flags, const char *name, const struct drm_prop_enum_list *props, int num_props, uint64_t supported_bits) drm_property_create_bitmask() argument
/linux-4.1.27/arch/powerpc/kernel/
H A Dtraps.c99 struct backlight_properties *props; pmac_backlight_unblank() local
101 props = &pmac_backlight->props; pmac_backlight_unblank()
102 props->brightness = props->max_brightness; pmac_backlight_unblank()
103 props->power = FB_BLANK_UNBLANK; pmac_backlight_unblank()

Completed in 3385 milliseconds

12