/drivers/hwmon/ |
H A D | s3c-hwmon.c | 58 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 D | ad7418.c | 48 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 D | i5k_amb.c | 115 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 D | attribute_container.c | 319 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 D | iio_hwmon.c | 26 * @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 D | industrialio-event.c | 401 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 D | industrialio-buffer.c | 269 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 D | dbll.c | 54 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 D | dblldefs.h | 209 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 D | dbll.h | 44 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 D | intel_overlay.c | 1286 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 D | altera.c | 129 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 D | sysfs.c | 79 .attrs = i2400m_dev_attrs,
|
/drivers/scsi/ |
H A D | raid_class.c | 30 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 D | ev.c | 44 struct c4iw_qp_attributes attrs; local 62 attrs.next_state = C4IW_QP_STATE_TERMINATE; 64 &attrs, 0);
|
H A D | qp.c | 1133 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 D | ad9850.c | 72 .attrs = ad9850_attributes, 76 .attrs = &ad9850_attribute_group,
|
/drivers/infiniband/hw/cxgb3/ |
H A D | iwch_provider.c | 863 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 D | umem.c | 40 #include <linux/dma-attrs.h> 92 DEFINE_DMA_ATTRS(attrs); 95 dma_set_attr(DMA_ATTR_WRITE_BARRIER, &attrs); 187 &attrs);
|
H A D | sysfs.c | 423 .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 D | ti_dac7512.c | 54 .attrs = dac7512_attributes,
|
/drivers/staging/iio/dac/ |
H A D | max517.c | 165 .attrs = max517_attributes, 179 .attrs = max518_attributes, 204 .attrs = &max517_attribute_group, 209 .attrs = &max518_attribute_group,
|
H A D | ad5504.c | 226 .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 D | swiotlb-xen.c | 208 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 D | tiomap3430.c | 123 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...] |