Home
last modified time | relevance | path

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

1234567

/linux-2.6.39/drivers/infiniband/hw/ehca/
Dehca_hca.c53 int ehca_query_device(struct ib_device *ibdev, struct ib_device_attr *props) in ehca_query_device() argument
86 memset(props, 0, sizeof(struct ib_device_attr)); in ehca_query_device()
87 props->page_size_cap = shca->hca_cap_mr_pgsize; in ehca_query_device()
88 props->fw_ver = rblock->hw_ver; in ehca_query_device()
89 props->max_mr_size = rblock->max_mr_size; in ehca_query_device()
90 props->vendor_id = rblock->vendor_id >> 8; in ehca_query_device()
91 props->vendor_part_id = rblock->vendor_part_id >> 16; in ehca_query_device()
92 props->hw_ver = rblock->hw_ver; in ehca_query_device()
93 props->max_qp = limit_uint(rblock->max_qp); in ehca_query_device()
94 props->max_qp_wr = limit_uint(rblock->max_wqes_wq); in ehca_query_device()
[all …]
/linux-2.6.39/arch/powerpc/platforms/powermac/
Dbacklight.c106 struct backlight_properties *props; in pmac_backlight_key_worker() local
109 props = &pmac_backlight->props; in pmac_backlight_key_worker()
111 brightness = props->brightness + in pmac_backlight_key_worker()
113 (props->max_brightness / 15)); in pmac_backlight_key_worker()
117 else if (brightness > props->max_brightness) in pmac_backlight_key_worker()
118 brightness = props->max_brightness; in pmac_backlight_key_worker()
120 props->brightness = brightness; in pmac_backlight_key_worker()
145 struct backlight_properties *props; in __pmac_backlight_set_legacy_brightness() local
147 props = &pmac_backlight->props; in __pmac_backlight_set_legacy_brightness()
148 props->brightness = brightness * in __pmac_backlight_set_legacy_brightness()
[all …]
/linux-2.6.39/drivers/media/dvb/dvb-usb/
Ddvb-usb-init.c34 for (n = 0; n < d->props.num_adapters; n++) { in dvb_usb_adapter_init()
39 memcpy(&adap->props, &d->props.adapter[n], sizeof(struct dvb_usb_adapter_properties)); in dvb_usb_adapter_init()
42 if (d->udev->speed == USB_SPEED_FULL && !(adap->props.caps & DVB_USB_ADAP_HAS_PID_FILTER)) { in dvb_usb_adapter_init()
47 if ((d->udev->speed == USB_SPEED_FULL && adap->props.caps & DVB_USB_ADAP_HAS_PID_FILTER) || in dvb_usb_adapter_init()
48 (adap->props.caps & DVB_USB_ADAP_NEED_PID_FILTERING)) { in dvb_usb_adapter_init()
49 …info("will use the device's hardware PID filter (table count: %d).", adap->props.pid_filter_count); in dvb_usb_adapter_init()
51 adap->max_feed_count = adap->props.pid_filter_count; in dvb_usb_adapter_init()
60 adap->props.caps & DVB_USB_ADAP_HAS_PID_FILTER) { in dvb_usb_adapter_init()
63 adap->max_feed_count = adap->props.pid_filter_count; in dvb_usb_adapter_init()
66 if (adap->props.size_of_priv > 0) { in dvb_usb_adapter_init()
[all …]
Ddvb-usb-remote.c48 struct rc_map_table *keymap = d->props.rc.legacy.rc_map_table; in legacy_dvb_usb_getkeycode()
49 unsigned int keymap_size = d->props.rc.legacy.rc_map_size; in legacy_dvb_usb_getkeycode()
71 struct rc_map_table *keymap = d->props.rc.legacy.rc_map_table; in legacy_dvb_usb_setkeycode()
72 unsigned int keymap_size = d->props.rc.legacy.rc_map_size; in legacy_dvb_usb_setkeycode()
122 if (d->props.rc.legacy.rc_query(d,&event,&state)) { in legacy_dvb_usb_read_remote_control()
181 schedule_delayed_work(&d->rc_query_work,msecs_to_jiffies(d->props.rc.legacy.rc_interval)); in legacy_dvb_usb_read_remote_control()
205 deb_rc("key map size: %d\n", d->props.rc.legacy.rc_map_size); in legacy_dvb_usb_remote_init()
206 for (i = 0; i < d->props.rc.legacy.rc_map_size; i++) { in legacy_dvb_usb_remote_init()
208 d->props.rc.legacy.rc_map_table[i].keycode, i); in legacy_dvb_usb_remote_init()
209 set_bit(d->props.rc.legacy.rc_map_table[i].keycode, input_dev->keybit); in legacy_dvb_usb_remote_init()
[all …]
Dusb-urb.c141 if ((i = usb_allocate_stream_buffers(stream,stream->props.count, in usb_bulk_urb_init()
142 stream->props.u.bulk.buffersize)) < 0) in usb_bulk_urb_init()
146 for (i = 0; i < stream->props.count; i++) { in usb_bulk_urb_init()
155 usb_rcvbulkpipe(stream->udev,stream->props.endpoint), in usb_bulk_urb_init()
157 stream->props.u.bulk.buffersize, in usb_bulk_urb_init()
171 if ((i = usb_allocate_stream_buffers(stream,stream->props.count, in usb_isoc_urb_init()
172 stream->props.u.isoc.framesize*stream->props.u.isoc.framesperurb)) < 0) in usb_isoc_urb_init()
176 for (i = 0; i < stream->props.count; i++) { in usb_isoc_urb_init()
180 stream->urb_list[i] = usb_alloc_urb(stream->props.u.isoc.framesperurb, GFP_ATOMIC); in usb_isoc_urb_init()
193 urb->pipe = usb_rcvisocpipe(stream->udev,stream->props.endpoint); in usb_isoc_urb_init()
[all …]
Ddvb-usb-dvb.c27 if (adap->props.streaming_ctrl != NULL) in dvb_usb_ctrl_feed()
28 if ((ret = adap->props.streaming_ctrl(adap,0))) in dvb_usb_ctrl_feed()
38 if (adap->props.caps & DVB_USB_ADAP_HAS_PID_FILTER && in dvb_usb_ctrl_feed()
40 adap->props.pid_filter != NULL) in dvb_usb_ctrl_feed()
41 adap->props.pid_filter(adap, dvbdmxfeed->index, dvbdmxfeed->pid,onoff); in dvb_usb_ctrl_feed()
51 if (adap->props.caps & DVB_USB_ADAP_HAS_PID_FILTER && in dvb_usb_ctrl_feed()
52 adap->props.caps & DVB_USB_ADAP_PID_FILTER_CAN_BE_TURNED_OFF && in dvb_usb_ctrl_feed()
53 adap->props.pid_filter_ctrl != NULL) in dvb_usb_ctrl_feed()
54 if (adap->props.pid_filter_ctrl(adap,adap->pid_filtering) < 0) in dvb_usb_ctrl_feed()
58 if (adap->props.streaming_ctrl != NULL) in dvb_usb_ctrl_feed()
[all …]
/linux-2.6.39/drivers/video/backlight/
Dgeneric_bl.c29 int intensity = bd->props.brightness; in genericbl_send_intensity()
31 if (bd->props.power != FB_BLANK_UNBLANK) in genericbl_send_intensity()
33 if (bd->props.state & BL_CORE_FBBLANK) in genericbl_send_intensity()
35 if (bd->props.state & BL_CORE_SUSPENDED) in genericbl_send_intensity()
37 if (bd->props.state & GENERICBL_BATTLOW) in genericbl_send_intensity()
65 bd->props.state |= GENERICBL_BATTLOW; in corgibl_limit_intensity()
67 bd->props.state &= ~GENERICBL_BATTLOW; in corgibl_limit_intensity()
81 struct backlight_properties props; in genericbl_probe() local
93 memset(&props, 0, sizeof(struct backlight_properties)); in genericbl_probe()
94 props.type = BACKLIGHT_RAW; in genericbl_probe()
[all …]
Dtosa_bl.c56 struct backlight_properties *props = &dev->props; in tosa_bl_update_status() local
58 int power = max(props->power, props->fb_blank); in tosa_bl_update_status()
59 int brightness = props->brightness; in tosa_bl_update_status()
71 struct backlight_properties *props = &dev->props; in tosa_bl_get_brightness() local
73 return props->brightness; in tosa_bl_get_brightness()
84 struct backlight_properties props; in tosa_bl_probe() local
104 memset(&props, 0, sizeof(struct backlight_properties)); in tosa_bl_probe()
105 props.type = BACKLIGHT_RAW; in tosa_bl_probe()
106 props.max_brightness = 512 - 1; in tosa_bl_probe()
108 &bl_ops, &props); in tosa_bl_probe()
[all …]
Dbacklight.c49 bd->props.fb_blank = *(int *)evdata->data; in fb_notifier_callback()
50 if (bd->props.fb_blank == FB_BLANK_UNBLANK) in fb_notifier_callback()
51 bd->props.state &= ~BL_CORE_FBBLANK; in fb_notifier_callback()
53 bd->props.state |= BL_CORE_FBBLANK; in fb_notifier_callback()
109 return sprintf(buf, "%d\n", bd->props.power); in backlight_show_power()
127 if (bd->props.power != power) { in backlight_store_power()
128 bd->props.power = power; in backlight_store_power()
143 return sprintf(buf, "%d\n", bd->props.brightness); in backlight_show_brightness()
161 if (brightness > bd->props.max_brightness) in backlight_store_brightness()
166 bd->props.brightness = brightness; in backlight_store_brightness()
[all …]
Djornada720_bl.c59 if ((bd->props.power != FB_BLANK_UNBLANK) || (bd->props.fb_blank != FB_BLANK_UNBLANK)) { in jornada_bl_update_status()
83 if (jornada_ssp_byte(BL_MAX_BRIGHT - bd->props.brightness) != TXDUMMY) { in jornada_bl_update_status()
104 struct backlight_properties props; in jornada_bl_probe() local
108 memset(&props, 0, sizeof(struct backlight_properties)); in jornada_bl_probe()
109 props.type = BACKLIGHT_RAW; in jornada_bl_probe()
110 props.max_brightness = BL_MAX_BRIGHT; in jornada_bl_probe()
112 &jornada_bl_ops, &props); in jornada_bl_probe()
120 bd->props.power = FB_BLANK_UNBLANK; in jornada_bl_probe()
121 bd->props.brightness = BL_DEF_BRIGHT; in jornada_bl_probe()
Dhp680_bl.c36 int intensity = bd->props.brightness; in hp680bl_send_intensity()
38 if (bd->props.power != FB_BLANK_UNBLANK) in hp680bl_send_intensity()
40 if (bd->props.fb_blank != FB_BLANK_UNBLANK) in hp680bl_send_intensity()
108 struct backlight_properties props; in hp680bl_probe() local
111 memset(&props, 0, sizeof(struct backlight_properties)); in hp680bl_probe()
112 props.type = BACKLIGHT_RAW; in hp680bl_probe()
113 props.max_brightness = HP680_MAX_INTENSITY; in hp680bl_probe()
115 &hp680bl_ops, &props); in hp680bl_probe()
121 bd->props.brightness = HP680_DEFAULT_INTENSITY; in hp680bl_probe()
131 bd->props.brightness = 0; in hp680bl_remove()
[all …]
Dprogear_bl.c37 int intensity = bd->props.brightness; in progearbl_set_intensity()
39 if (bd->props.power != FB_BLANK_UNBLANK) in progearbl_set_intensity()
41 if (bd->props.fb_blank != FB_BLANK_UNBLANK) in progearbl_set_intensity()
64 struct backlight_properties props; in progearbl_probe() local
86 memset(&props, 0, sizeof(struct backlight_properties)); in progearbl_probe()
87 props.type = BACKLIGHT_RAW; in progearbl_probe()
88 props.max_brightness = HW_LEVEL_MAX - HW_LEVEL_MIN; in progearbl_probe()
92 &props); in progearbl_probe()
100 progear_backlight_device->props.power = FB_BLANK_UNBLANK; in progearbl_probe()
101 progear_backlight_device->props.brightness = HW_LEVEL_MAX - HW_LEVEL_MIN; in progearbl_probe()
Domap1_bl.c111 if (bl->current_intensity != dev->props.brightness) { in omapbl_update_status()
113 omapbl_send_intensity(dev->props.brightness); in omapbl_update_status()
114 bl->current_intensity = dev->props.brightness; in omapbl_update_status()
117 if (dev->props.fb_blank != bl->powermode) in omapbl_update_status()
118 omapbl_set_power(dev, dev->props.fb_blank); in omapbl_update_status()
136 struct backlight_properties props; in omapbl_probe() local
148 memset(&props, 0, sizeof(struct backlight_properties)); in omapbl_probe()
149 props.type = BACKLIGHT_RAW; in omapbl_probe()
150 props.max_brightness = OMAPBL_MAX_INTENSITY; in omapbl_probe()
152 &props); in omapbl_probe()
[all …]
Dcr_bllcd.c74 int intensity = bd->props.brightness; in cr_backlight_set_intensity()
78 if (bd->props.power == FB_BLANK_UNBLANK) in cr_backlight_set_intensity()
80 if (bd->props.fb_blank == FB_BLANK_UNBLANK) in cr_backlight_set_intensity()
82 if (bd->props.power == FB_BLANK_POWERDOWN) in cr_backlight_set_intensity()
84 if (bd->props.fb_blank == FB_BLANK_POWERDOWN) in cr_backlight_set_intensity()
174 struct backlight_properties props; in cr_backlight_probe() local
195 memset(&props, 0, sizeof(struct backlight_properties)); in cr_backlight_probe()
196 props.type = BACKLIGHT_RAW; in cr_backlight_probe()
198 &cr_backlight_ops, &props); in cr_backlight_probe()
225 crp->cr_backlight_device->props.power = FB_BLANK_UNBLANK; in cr_backlight_probe()
[all …]
Dadx_bl.c36 value = bldev->props.brightness; in adx_backlight_update_status()
41 if (bldev->props.state & BL_CORE_FBBLANK) in adx_backlight_update_status()
74 struct backlight_properties props; in adx_backlight_probe() local
106 memset(&props, 0, sizeof(struct backlight_properties)); in adx_backlight_probe()
107 props.type = BACKLIGHT_RAW; in adx_backlight_probe()
108 props.max_brightness = 0xff; in adx_backlight_probe()
110 bl, &adx_backlight_ops, &props); in adx_backlight_probe()
116 bldev->props.brightness = 0xff; in adx_backlight_probe()
117 bldev->props.power = FB_BLANK_UNBLANK; in adx_backlight_probe()
131 bldev->props.power = FB_BLANK_UNBLANK; in adx_backlight_remove()
[all …]
Dep93xx_bl.c47 int brightness = bl->props.brightness; in ep93xxbl_update_status()
49 if (bl->props.power != FB_BLANK_UNBLANK || in ep93xxbl_update_status()
50 bl->props.fb_blank != FB_BLANK_UNBLANK) in ep93xxbl_update_status()
72 struct backlight_properties props; in ep93xxbl_probe() local
89 memset(&props, 0, sizeof(struct backlight_properties)); in ep93xxbl_probe()
90 props.type = BACKLIGHT_RAW; in ep93xxbl_probe()
91 props.max_brightness = EP93XX_MAX_BRIGHT; in ep93xxbl_probe()
93 &ep93xxbl_ops, &props); in ep93xxbl_probe()
97 bl->props.brightness = EP93XX_DEF_BRIGHT; in ep93xxbl_probe()
/linux-2.6.39/drivers/infiniband/hw/mlx4/
Dmain.c86 struct ib_device_attr *props) in mlx4_ib_query_device() argument
105 memset(props, 0, sizeof *props); in mlx4_ib_query_device()
107 props->fw_ver = dev->dev->caps.fw_ver; in mlx4_ib_query_device()
108 props->device_cap_flags = IB_DEVICE_CHANGE_PHY_PORT | in mlx4_ib_query_device()
114 props->device_cap_flags |= IB_DEVICE_BAD_PKEY_CNTR; in mlx4_ib_query_device()
116 props->device_cap_flags |= IB_DEVICE_BAD_QKEY_CNTR; in mlx4_ib_query_device()
118 props->device_cap_flags |= IB_DEVICE_AUTO_PATH_MIG; in mlx4_ib_query_device()
120 props->device_cap_flags |= IB_DEVICE_UD_AV_PORT_ENFORCE; in mlx4_ib_query_device()
122 props->device_cap_flags |= IB_DEVICE_UD_IP_CSUM; in mlx4_ib_query_device()
124 props->device_cap_flags |= IB_DEVICE_UD_TSO; in mlx4_ib_query_device()
[all …]
/linux-2.6.39/drivers/gpu/drm/nouveau/
Dnouveau_backlight.c53 int val = bd->props.brightness; in nv40_set_intensity()
78 int val = bd->props.brightness; in nv50_set_intensity()
95 struct backlight_properties props; in nouveau_nv40_backlight_init() local
101 memset(&props, 0, sizeof(struct backlight_properties)); in nouveau_nv40_backlight_init()
102 props.type = BACKLIGHT_RAW; in nouveau_nv40_backlight_init()
103 props.max_brightness = 31; in nouveau_nv40_backlight_init()
105 &nv40_bl_ops, &props); in nouveau_nv40_backlight_init()
110 bd->props.brightness = nv40_get_intensity(bd); in nouveau_nv40_backlight_init()
120 struct backlight_properties props; in nouveau_nv50_backlight_init() local
126 memset(&props, 0, sizeof(struct backlight_properties)); in nouveau_nv50_backlight_init()
[all …]
/linux-2.6.39/drivers/infiniband/hw/cxgb4/
Dprovider.c63 struct ib_port_modify *props) in c4iw_modify_port() argument
259 struct ib_device_attr *props) in c4iw_query_device() argument
266 memset(props, 0, sizeof *props); in c4iw_query_device()
267 memcpy(&props->sys_image_guid, dev->rdev.lldi.ports[0]->dev_addr, 6); in c4iw_query_device()
268 props->hw_ver = dev->rdev.lldi.adapter_type; in c4iw_query_device()
269 props->fw_ver = dev->rdev.lldi.fw_vers; in c4iw_query_device()
270 props->device_cap_flags = dev->device_cap_flags; in c4iw_query_device()
271 props->page_size_cap = T4_PAGESIZE_MASK; in c4iw_query_device()
272 props->vendor_id = (u32)dev->rdev.lldi.pdev->vendor; in c4iw_query_device()
273 props->vendor_part_id = (u32)dev->rdev.lldi.pdev->device; in c4iw_query_device()
[all …]
/linux-2.6.39/drivers/video/omap2/displays/
Dpanel-sharp-ls037v7dw01.c57 if (bl->props.fb_blank == FB_BLANK_UNBLANK && in sharp_ls_bl_update_status()
58 bl->props.power == FB_BLANK_UNBLANK) in sharp_ls_bl_update_status()
59 level = bl->props.brightness; in sharp_ls_bl_update_status()
68 if (bl->props.fb_blank == FB_BLANK_UNBLANK && in sharp_ls_bl_get_brightness()
69 bl->props.power == FB_BLANK_UNBLANK) in sharp_ls_bl_get_brightness()
70 return bl->props.brightness; in sharp_ls_bl_get_brightness()
84 struct backlight_properties props; in sharp_ls_panel_probe() local
100 memset(&props, 0, sizeof(struct backlight_properties)); in sharp_ls_panel_probe()
101 props.max_brightness = dssdev->max_backlight_level; in sharp_ls_panel_probe()
102 props.type = BACKLIGHT_RAW; in sharp_ls_panel_probe()
[all …]
Dpanel-nec-nl8048hl11-01b.c89 if (bl->props.fb_blank == FB_BLANK_UNBLANK && in nec_8048_bl_update_status()
90 bl->props.power == FB_BLANK_UNBLANK) in nec_8048_bl_update_status()
91 level = bl->props.brightness; in nec_8048_bl_update_status()
100 if (bl->props.fb_blank == FB_BLANK_UNBLANK && in nec_8048_bl_get_brightness()
101 bl->props.power == FB_BLANK_UNBLANK) in nec_8048_bl_get_brightness()
102 return bl->props.brightness; in nec_8048_bl_get_brightness()
116 struct backlight_properties props; in nec_8048_panel_probe() local
130 memset(&props, 0, sizeof(struct backlight_properties)); in nec_8048_panel_probe()
131 props.max_brightness = 255; in nec_8048_panel_probe()
134 &nec_8048_bl_ops, &props); in nec_8048_panel_probe()
[all …]
/linux-2.6.39/drivers/infiniband/hw/amso1100/
Dc2_rnic.c123 static int c2_rnic_query(struct c2_dev *c2dev, struct ib_device_attr *props) in c2_rnic_query() argument
159 props->fw_ver = in c2_rnic_query()
163 memcpy(&props->sys_image_guid, c2dev->netdev->dev_addr, 6); in c2_rnic_query()
164 props->max_mr_size = 0xFFFFFFFF; in c2_rnic_query()
165 props->page_size_cap = ~(C2_MIN_PAGESIZE-1); in c2_rnic_query()
166 props->vendor_id = be32_to_cpu(reply->vendor_id); in c2_rnic_query()
167 props->vendor_part_id = be32_to_cpu(reply->part_number); in c2_rnic_query()
168 props->hw_ver = be32_to_cpu(reply->hw_version); in c2_rnic_query()
169 props->max_qp = be32_to_cpu(reply->max_qps); in c2_rnic_query()
170 props->max_qp_wr = be32_to_cpu(reply->max_qp_depth); in c2_rnic_query()
[all …]
/linux-2.6.39/drivers/video/nvidia/
Dnv_backlight.c60 if (bd->props.power != FB_BLANK_UNBLANK || in nvidia_bl_update_status()
61 bd->props.fb_blank != FB_BLANK_UNBLANK) in nvidia_bl_update_status()
64 level = bd->props.brightness; in nvidia_bl_update_status()
87 return bd->props.brightness; in nvidia_bl_get_brightness()
97 struct backlight_properties props; in nvidia_bl_init() local
113 memset(&props, 0, sizeof(struct backlight_properties)); in nvidia_bl_init()
114 props.type = BACKLIGHT_RAW; in nvidia_bl_init()
115 props.max_brightness = FB_BACKLIGHT_LEVELS - 1; in nvidia_bl_init()
117 &props); in nvidia_bl_init()
129 bd->props.brightness = bd->props.max_brightness; in nvidia_bl_init()
[all …]
/linux-2.6.39/drivers/macintosh/
Dvia-pmu-backlight.c74 int level = bd->props.brightness; in __pmu_backlight_update_status()
77 if (bd->props.power != FB_BLANK_UNBLANK || in __pmu_backlight_update_status()
78 bd->props.fb_blank != FB_BLANK_UNBLANK) in __pmu_backlight_update_status()
115 return bd->props.brightness; in pmu_backlight_get_brightness()
147 struct backlight_properties props; in pmu_backlight_init() local
165 memset(&props, 0, sizeof(struct backlight_properties)); in pmu_backlight_init()
166 props.type = BACKLIGHT_PLATFORM; in pmu_backlight_init()
167 props.max_brightness = FB_BACKLIGHT_LEVELS - 1; in pmu_backlight_init()
169 &props); in pmu_backlight_init()
177 level = bd->props.max_brightness; in pmu_backlight_init()
[all …]
/linux-2.6.39/net/ipv4/
Dipcomp.c59 t->id.spi = x->props.saddr.a4; in ipcomp_tunnel_create()
62 t->props.family = AF_INET; in ipcomp_tunnel_create()
63 t->props.mode = x->props.mode; in ipcomp_tunnel_create()
64 t->props.saddr.a4 = x->props.saddr.a4; in ipcomp_tunnel_create()
65 t->props.flags = x->props.flags; in ipcomp_tunnel_create()
94 x->props.saddr.a4, IPPROTO_IPIP, AF_INET); in ipcomp_tunnel_attach()
114 x->props.header_len = 0; in ipcomp4_init_state()
115 switch (x->props.mode) { in ipcomp4_init_state()
119 x->props.header_len += sizeof(struct iphdr); in ipcomp4_init_state()
129 if (x->props.mode == XFRM_MODE_TUNNEL) { in ipcomp4_init_state()

1234567