Searched refs:attrs (Results 1 - 25 of 412) sorted by relevance

1234567891011>>

/drivers/hwmon/
H A Ds3c-hwmon.c58 struct s3c_hwmon_attr attrs[8]; member in struct:s3c_hwmon
136 .attrs = s3c_hwmon_attrs,
225 struct s3c_hwmon_attr *attrs,
231 snprintf(attrs->in_name, sizeof(attrs->in_name), "in%d_input", channel);
233 attr = &attrs->in;
236 attr->dev_attr.attr.name = attrs->in_name;
248 snprintf(attrs->label_name, sizeof(attrs->label_name),
251 attr = &attrs
223 s3c_hwmon_create_attr(struct device *dev, struct s3c_hwmon_chcfg *cfg, struct s3c_hwmon_attr *attrs, int channel) argument
268 s3c_hwmon_remove_attr(struct device *dev, struct s3c_hwmon_attr *attrs) argument
[all...]
H A Dad7418.c48 struct attribute_group attrs; member in struct:ad7418_data
249 data->attrs.attrs = ad7416_attributes;
254 data->attrs.attrs = ad7417_attributes;
259 data->attrs.attrs = ad7418_attributes;
269 err = sysfs_create_group(&client->dev.kobj, &data->attrs);
282 sysfs_remove_group(&client->dev.kobj, &data->attrs);
293 sysfs_remove_group(&client->dev.kobj, &data->attrs);
[all...]
H A Di5k_amb.c115 struct i5k_device_attribute *attrs; member in struct:i5k_amb_data
279 data->attrs = kzalloc(sizeof(*data->attrs) * num_ambs * KNOBS_PER_AMB,
281 if (!data->attrs)
296 iattr = data->attrs + data->num_attrs;
311 iattr = data->attrs + data->num_attrs;
326 iattr = data->attrs + data->num_attrs;
342 iattr = data->attrs + data->num_attrs;
358 iattr = data->attrs + data->num_attrs;
374 iattr = data->attrs
[all...]
/drivers/base/
H A Dattribute_container.c319 struct device_attribute **attrs = cont->attrs; local
322 BUG_ON(attrs && cont->grp);
324 if (!attrs && !cont->grp)
330 for (i = 0; attrs[i]; i++) {
331 sysfs_attr_init(&attrs[i]->attr);
332 error = device_create_file(classdev, attrs[i]);
383 struct device_attribute **attrs = cont->attrs; local
386 if (!attrs
[all...]
/drivers/staging/iio/
H A Diio_hwmon.c26 * @attrs: null terminated array of attribute pointers.
33 struct attribute **attrs; member in struct:iio_hwmon_state
86 if (st->attrs[i]) {
88 container_of(st->attrs[i],
119 st->attrs = kzalloc(sizeof(st->attrs) * (st->num_channels + 1),
121 if (st->attrs == NULL) {
167 st->attrs[i] = &a->dev_attr.attr;
170 st->attr_group.attrs = st->attrs;
[all...]
H A Dindustrialio-event.c401 attr = indio_dev->info->event_attrs->attrs;
414 indio_dev->event_interface->group.attrs = kcalloc(attrcount + 1,
415 sizeof(indio_dev->event_interface->group.attrs[0]),
417 if (indio_dev->event_interface->group.attrs == NULL) {
422 memcpy(indio_dev->event_interface->group.attrs,
423 indio_dev->info->event_attrs->attrs,
424 sizeof(indio_dev->event_interface->group.attrs[0])
431 indio_dev->event_interface->group.attrs[attrn++] =
451 kfree(indio_dev->event_interface->group.attrs);
H A Dindustrialio-buffer.c269 if (buffer->attrs)
270 indio_dev->groups[indio_dev->groupcounter++] = buffer->attrs;
273 attr = buffer->scan_el_attrs->attrs;
310 buffer->scan_el_group.attrs = kcalloc(attrcount + 1,
311 sizeof(buffer->scan_el_group.attrs[0]),
313 if (buffer->scan_el_group.attrs == NULL) {
318 memcpy(buffer->scan_el_group.attrs, buffer->scan_el_attrs,
319 sizeof(buffer->scan_el_group.attrs[0])*attrcount_orig);
323 buffer->scan_el_group.attrs[attrn++] = &p->dev_attr.attr;
340 kfree(indio_dev->buffer->scan_el_group.attrs);
[all...]
/drivers/staging/tidspbridge/pmgr/
H A Ddbll.c54 struct dbll_attrs attrs; member in struct:dbll_tar_obj
244 pzl_target->attrs = *pattrs;
302 *pattrs = zl_target->attrs;
354 (*(zl_lib->target_obj->attrs.fseek)) (zl_lib->fp,
401 struct dbll_attrs *attrs, u32 *entry)
415 dbzl->attrs = *attrs;
470 zl_lib->pos = (*(zl_lib->target_obj->attrs.ftell))
473 (*(zl_lib->target_obj->attrs.fseek)) (zl_lib->fp,
492 dbll_unload(zl_lib, (struct dbll_attrs *)attrs);
400 dbll_load(struct dbll_library_obj *lib, dbll_flags flags, struct dbll_attrs *attrs, u32 *entry) argument
716 dbll_unload(struct dbll_library_obj *lib, struct dbll_attrs *attrs) argument
[all...]
/drivers/staging/tidspbridge/include/dspbridge/
H A Ddblldefs.h209 struct dbll_attrs *attrs);
270 struct dbll_attrs *attrs);
336 * attrs - May contain alloc, free, and write function.
350 struct dbll_attrs *attrs, u32 *entry);
406 * attrs - Contains free() function and handle to pass to it.
414 struct dbll_attrs *attrs);
H A Ddbll.h44 struct dbll_attrs *attrs, u32 * entry);
50 extern void dbll_unload(struct dbll_library_obj *lib, struct dbll_attrs *attrs);
/drivers/gpu/drm/i915/
H A Dintel_overlay.c1286 static int check_gamma(struct drm_intel_overlay_attrs *attrs) argument
1288 if (!check_gamma_bounds(0, attrs->gamma0) ||
1289 !check_gamma_bounds(attrs->gamma0, attrs->gamma1) ||
1290 !check_gamma_bounds(attrs->gamma1, attrs->gamma2) ||
1291 !check_gamma_bounds(attrs->gamma2, attrs->gamma3) ||
1292 !check_gamma_bounds(attrs->gamma3, attrs
1306 struct drm_intel_overlay_attrs *attrs = data; local
[all...]
/drivers/misc/altera-stapl/
H A Daltera.c129 u8 attrs; member in struct:altera_procinfo
242 char *attrs = NULL; local
320 attrs = kzalloc(sym_count, GFP_KERNEL);
322 if (attrs == NULL)
343 attrs[i] = p[offset];
350 attrs[i] &= 0x7f;
365 if ((attrs[i] & 0x0c) == 0x04)
368 else if ((attrs[i] & 0x1e) == 0x0e) {
378 attrs[i] |= 0x80;
392 } else if ((attrs[
[all...]
/drivers/net/wimax/i2400m/
H A Dsysfs.c79 .attrs = i2400m_dev_attrs,
/drivers/scsi/
H A Draid_class.c30 struct device_attribute *attrs[RAID_NUM_ATTRS + 1]; member in struct:raid_internal
275 i->r.raid_attrs.ac.attrs = &i->attrs[0];
279 i->attrs[count++] = &dev_attr_level;
280 i->attrs[count++] = &dev_attr_resync;
281 i->attrs[count++] = &dev_attr_state;
283 i->attrs[count] = NULL;
/drivers/infiniband/hw/cxgb4/
H A Dev.c44 struct c4iw_qp_attributes attrs; local
62 attrs.next_state = C4IW_QP_STATE_TERMINATE;
64 &attrs, 0);
H A Dqp.c1133 struct c4iw_qp_attributes *attrs,
1146 (mask & C4IW_QP_ATTR_NEXT_STATE) ? attrs->next_state : -1);
1157 newattr.enable_rdma_read = attrs->enable_rdma_read;
1159 newattr.enable_rdma_write = attrs->enable_rdma_write;
1161 newattr.enable_bind = attrs->enable_bind;
1163 if (attrs->max_ord > c4iw_max_read_depth) {
1167 newattr.max_ord = attrs->max_ord;
1170 if (attrs->max_ird > c4iw_max_read_depth) {
1174 newattr.max_ird = attrs->max_ird;
1181 if (qhp->attr.state == attrs
1131 c4iw_modify_qp(struct c4iw_dev *rhp, struct c4iw_qp *qhp, enum c4iw_qp_attr_mask mask, struct c4iw_qp_attributes *attrs, int internal) argument
1359 struct c4iw_qp_attributes attrs; local
1386 c4iw_create_qp(struct ib_pd *pd, struct ib_qp_init_attr *attrs, struct ib_udata *udata) argument
1586 struct c4iw_qp_attributes attrs; local
[all...]
/drivers/staging/iio/dds/
H A Dad9850.c72 .attrs = ad9850_attributes,
76 .attrs = &ad9850_attribute_group,
/drivers/infiniband/hw/cxgb3/
H A Diwch_provider.c863 struct iwch_qp_attributes attrs; local
869 attrs.next_state = IWCH_QP_STATE_ERROR;
870 iwch_modify_qp(rhp, qhp, IWCH_QP_ATTR_NEXT_STATE, &attrs, 0);
890 struct ib_qp_init_attr *attrs,
903 if (attrs->qp_type != IB_QPT_RC)
907 schp = get_chp(rhp, ((struct iwch_cq *) attrs->send_cq)->cq.cqid);
908 rchp = get_chp(rhp, ((struct iwch_cq *) attrs->recv_cq)->cq.cqid);
913 rqsize = roundup_pow_of_two(attrs->cap.max_recv_wr);
914 if (rqsize == attrs->cap.max_recv_wr)
915 rqsize = roundup_pow_of_two(attrs
889 iwch_create_qp(struct ib_pd *pd, struct ib_qp_init_attr *attrs, struct ib_udata *udata) argument
1053 struct iwch_qp_attributes attrs; local
[all...]
/drivers/infiniband/core/
H A Dumem.c40 #include <linux/dma-attrs.h>
92 DEFINE_DMA_ATTRS(attrs);
95 dma_set_attr(DMA_ATTR_WRITE_BARRIER, &attrs);
187 &attrs);
H A Dsysfs.c423 .attrs = pma_attrs
432 for (i = 0; (a = p->gid_group.attrs[i]); ++i)
435 kfree(p->gid_group.attrs);
437 for (i = 0; (a = p->pkey_group.attrs[i]); ++i)
440 kfree(p->pkey_group.attrs);
547 p->gid_group.attrs = alloc_group_attrs(show_port_gid, attr.gid_tbl_len);
548 if (!p->gid_group.attrs)
556 p->pkey_group.attrs = alloc_group_attrs(show_port_pkey,
558 if (!p->pkey_group.attrs)
581 kfree(p->pkey_group.attrs[
[all...]
/drivers/misc/
H A Dti_dac7512.c54 .attrs = dac7512_attributes,
/drivers/staging/iio/dac/
H A Dmax517.c165 .attrs = max517_attributes,
179 .attrs = max518_attributes,
204 .attrs = &max517_attribute_group,
209 .attrs = &max518_attribute_group,
H A Dad5504.c226 .attrs = ad5504_attributes,
237 .attrs = ad5501_attributes,
250 .attrs = ad5504_ev_attributes,
269 .attrs = &ad5504_attribute_group,
277 .attrs = &ad5501_attribute_group,
/drivers/xen/
H A Dswiotlb-xen.c208 struct dma_attrs *attrs)
257 dma_addr_t dev_addr, struct dma_attrs *attrs)
290 struct dma_attrs *attrs)
361 struct dma_attrs *attrs)
434 struct dma_attrs *attrs)
456 attrs);
484 struct dma_attrs *attrs)
206 xen_swiotlb_alloc_coherent(struct device *hwdev, size_t size, dma_addr_t *dma_handle, gfp_t flags, struct dma_attrs *attrs) argument
256 xen_swiotlb_free_coherent(struct device *hwdev, size_t size, void *vaddr, dma_addr_t dev_addr, struct dma_attrs *attrs) argument
287 xen_swiotlb_map_page(struct device *dev, struct page *page, unsigned long offset, size_t size, enum dma_data_direction dir, struct dma_attrs *attrs) argument
359 xen_swiotlb_unmap_page(struct device *hwdev, dma_addr_t dev_addr, size_t size, enum dma_data_direction dir, struct dma_attrs *attrs) argument
432 xen_swiotlb_map_sg_attrs(struct device *hwdev, struct scatterlist *sgl, int nelems, enum dma_data_direction dir, struct dma_attrs *attrs) argument
482 xen_swiotlb_unmap_sg_attrs(struct device *hwdev, struct scatterlist *sgl, int nelems, enum dma_data_direction dir, struct dma_attrs *attrs) argument
/drivers/staging/tidspbridge/core/
H A Dtiomap3430.c123 u32 size, struct hw_mmu_map_attrs_t *attrs);
1135 u32 attrs; local
1158 attrs = ul_map_attr;
1161 attrs = ul_map_attr | (DSP_MAPVIRTUALADDR | DSP_MAPELEMSIZE16);
1164 if (attrs & DSP_MAPBIGENDIAN)
1170 ((attrs & DSP_MAPMIXEDELEMSIZE) >> 2);
1173 if (attrs & DSP_MAPELEMSIZE8) {
1176 } else if (attrs & DSP_MAPELEMSIZE16) {
1179 } else if (attrs & DSP_MAPELEMSIZE32) {
1182 } else if (attrs
1620 pte_set(struct pg_table_attrs *pt, u32 pa, u32 va, u32 size, struct hw_mmu_map_attrs_t *attrs) argument
[all...]

Completed in 3907 milliseconds

1234567891011>>