/drivers/staging/iio/resolver/ |
H A D | ad2s1210.h | 15 unsigned res[2]; member in struct:ad2s1210_platform_data
|
/drivers/pnp/ |
H A D | manager.c | 23 struct resource *res, local_res; local 25 res = pnp_get_resource(dev, IORESOURCE_IO, idx); 26 if (res) { 28 "flags %#lx\n", idx, (unsigned long long) res->start, 29 (unsigned long long) res->end, res->flags); 33 res = &local_res; 34 res->flags = rule->flags | IORESOURCE_AUTO; 35 res->start = 0; 36 res 66 struct resource *res, local_res; local 118 struct resource *res, local_res; local 177 struct resource *res, local_res; local [all...] |
H A D | system.c | 30 struct resource *res; local 38 res = request_region(start, end - start + 1, regionid); 40 res = request_mem_region(start, end - start + 1, regionid); 41 if (res) 42 res->flags &= ~IORESOURCE_BUSY; 52 res ? "has been" : "could not be"); 57 struct resource *res; local 60 for (i = 0; (res = pnp_get_resource(dev, IORESOURCE_IO, i)); i++) { 61 if (res->flags & IORESOURCE_DISABLED) 63 if (res [all...] |
H A D | resource.c | 165 int pnp_check_port(struct pnp_dev *dev, struct resource *res) argument 172 port = &res->start; 173 end = &res->end; 176 if (cannot_compare(res->flags)) 196 if (tres != res && tres->flags & IORESOURCE_IO) { 227 int pnp_check_mem(struct pnp_dev *dev, struct resource *res) argument 234 addr = &res->start; 235 end = &res->end; 238 if (cannot_compare(res->flags)) 258 if (tres != res 349 pnp_check_irq(struct pnp_dev *dev, struct resource *res) argument 413 pnp_check_dma(struct pnp_dev *dev, struct resource *res) argument 472 pnp_resource_type(struct resource *res) argument 483 struct resource *res; local 510 struct resource *res; local 531 struct resource *res; local 553 struct resource *res; local 577 struct resource *res; local 601 struct resource *res; local [all...] |
/drivers/pcmcia/ |
H A D | rsrc_iodyn.c | 30 const struct resource *res, 36 start = (res->start & ~data->mask) + data->offset; 37 if (start < res->start) 41 if (res->flags & IORESOURCE_IO) { 48 if (res->flags & IORESOURCE_IO) { 49 if ((res->start + size - 1) >= 1024) 50 start = res->end; 62 struct resource *res = pcmcia_make_resource(0, num, IORESOURCE_IO, local 73 ret = pci_bus_alloc_resource(s->cb_dev->bus, res, num, 1, 77 ret = allocate_resource(&ioport_resource, res, nu 29 pcmcia_align(void *align_data, const struct resource *res, resource_size_t size, resource_size_t align) argument 109 struct resource *res = s->io[i].res; local [all...] |
H A D | rsrc_mgr.c | 36 struct resource *res = kzalloc(sizeof(*res), GFP_KERNEL); local 38 if (res) { 39 res->name = name; 40 res->start = start; 41 res->end = start + end - 1; 42 res->flags = flags; 44 return res;
|
/drivers/pci/hotplug/ |
H A D | shpchp_sysfs.c | 43 struct resource *res; local 50 pci_bus_for_each_resource(bus, res, index) { 51 if (res && (res->flags & IORESOURCE_MEM) && 52 !(res->flags & IORESOURCE_PREFETCH)) { 54 (unsigned long long)res->start, 55 (unsigned long long)resource_size(res)); 59 pci_bus_for_each_resource(bus, res, index) { 60 if (res && (res [all...] |
H A D | cpqphp_sysfs.c | 46 struct pci_resource *res; local 50 res = ctrl->mem_head; 51 while (res && index--) { 52 out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length); 53 res = res->next; 57 res = ctrl->p_mem_head; 58 while (res && index--) { 59 out += sprintf(out, "start = %8.8x, length = %8.8x\n", res 84 struct pci_resource *res; local [all...] |
H A D | ibmphp_res.c | 464 struct resource_node *res = NULL; local 470 res = bus_cur->firstMem; 474 res = bus_cur->firstPFMem; 478 res = bus_cur->firstIO; 482 if (res) { 483 while (res) { 484 if (res->rangeno == rangeno) 486 if (res->next) 487 res = res 506 fix_me(struct resource_node *res, struct bus_node *bus_cur, struct range_node *range) argument 564 struct resource_node *res; local 594 ibmphp_add_resource(struct resource_node *res) argument 776 ibmphp_remove_resource(struct resource_node *res) argument 937 find_range(struct bus_node *bus_cur, struct resource_node * res) argument 972 ibmphp_check_resource(struct resource_node *res, u8 bridge) argument 1437 struct resource_node *res = NULL; local 1488 ibmphp_find_resource(struct bus_node *bus, u32 start_address, struct resource_node **res, int flag) argument 1777 struct resource_node *res; local [all...] |
/drivers/media/video/omap3isp/ |
H A D | ispresizer.c | 123 * @res : pointer to resizer private structure 130 __resizer_get_format(struct isp_res_device *res, struct v4l2_subdev_fh *fh, argument 136 return &res->formats[pad]; 141 * @res : pointer to resizer private structure 146 __resizer_get_crop(struct isp_res_device *res, struct v4l2_subdev_fh *fh, argument 152 return &res->crop.request; 157 * @res: Device context. 162 static void resizer_set_filters(struct isp_res_device *res, const u16 *h_coeff, argument 165 struct isp_device *isp = to_isp_device(res); 186 * @res 193 resizer_set_bilinear(struct isp_res_device *res, enum resizer_chroma_algo type) argument 211 resizer_set_ycpos(struct isp_res_device *res, enum v4l2_mbus_pixelcode pixelcode) argument 238 resizer_set_phase(struct isp_res_device *res, u32 h_phase, u32 v_phase) argument 274 resizer_set_luma(struct isp_res_device *res, struct resizer_luma_yenh *luma) argument 300 resizer_set_source(struct isp_res_device *res, enum resizer_input_entity source) argument 320 resizer_set_ratio(struct isp_res_device *res, const struct resizer_ratio *ratio) argument 364 resizer_set_output_size(struct isp_res_device *res, u32 width, u32 height) argument 387 resizer_set_output_offset(struct isp_res_device *res, u32 offset) argument 409 resizer_set_start(struct isp_res_device *res, u32 left, u32 top) argument 428 resizer_set_input_size(struct isp_res_device *res, u32 width, u32 height) argument 453 resizer_set_input_offset(struct isp_res_device *res, u32 offset) argument 465 resizer_set_intype(struct isp_res_device *res, enum resizer_colors_type type) argument 484 __resizer_set_inaddr(struct isp_res_device *res, u32 addr) argument 514 omap3isp_resizer_max_rate(struct isp_res_device *res, unsigned int *max_rate) argument 556 resizer_adjust_bandwidth(struct isp_res_device *res) argument 624 omap3isp_resizer_busy(struct isp_res_device *res) argument 636 resizer_set_inaddr(struct isp_res_device *res, u32 addr) argument 653 resizer_set_outaddr(struct isp_res_device *res, u32 addr) argument 672 resizer_print_status(struct isp_res_device *res) argument 794 resizer_calc_ratios(struct isp_res_device *res, struct v4l2_rect *input, struct v4l2_mbus_framefmt *output, struct resizer_ratio *ratio) argument 925 resizer_set_crop_params(struct isp_res_device *res, const struct v4l2_mbus_framefmt *input, const struct v4l2_mbus_framefmt *output) argument 973 resizer_configure(struct isp_res_device *res) argument 1006 resizer_enable_oneshot(struct isp_res_device *res) argument 1014 omap3isp_resizer_isr_frame_sync(struct isp_res_device *res) argument 1029 resizer_isr_buffer(struct isp_res_device *res) argument 1075 omap3isp_resizer_isr(struct isp_res_device *res) argument 1101 struct isp_res_device *res = &video->isp->isp_res; local 1144 struct isp_res_device *res = v4l2_get_subdevdata(sd); local 1201 struct isp_res_device *res = v4l2_get_subdevdata(sd); local 1261 struct isp_res_device *res = v4l2_get_subdevdata(sd); local 1309 resizer_max_in_width(struct isp_res_device *res) argument 1331 resizer_try_format(struct isp_res_device *res, struct v4l2_subdev_fh *fh, unsigned int pad, struct v4l2_mbus_framefmt *fmt, enum v4l2_subdev_format_whence which) argument 1376 struct isp_res_device *res = v4l2_get_subdevdata(sd); local 1400 struct isp_res_device *res = v4l2_get_subdevdata(sd); local 1436 struct isp_res_device *res = v4l2_get_subdevdata(sd); local 1457 struct isp_res_device *res = v4l2_get_subdevdata(sd); local 1565 struct isp_res_device *res = v4l2_get_subdevdata(sd); local 1608 omap3isp_resizer_unregister_entities(struct isp_res_device *res) argument 1615 omap3isp_resizer_register_entities(struct isp_res_device *res, struct v4l2_device *vdev) argument 1649 resizer_init_entities(struct isp_res_device *res) argument 1723 struct isp_res_device *res = &isp->isp_res; local 1732 struct isp_res_device *res = &isp->isp_res; local [all...] |
/drivers/pci/ |
H A D | rom.c | 27 struct resource *res = pdev->resource + PCI_ROM_RESOURCE; local 31 if (!res->flags) 34 pcibios_resource_to_bus(pdev, ®ion, res); 116 struct resource *res = &pdev->resource[PCI_ROM_RESOURCE]; local 125 if (res->flags & IORESOURCE_ROM_SHADOW) { 130 if (res->flags & 137 if (res->parent == NULL && 154 if (!(res->flags & (IORESOURCE_ROM_ENABLE | 184 struct resource *res = &pdev->resource[PCI_ROM_RESOURCE]; 191 if (res 217 struct resource *res = &pdev->resource[PCI_ROM_RESOURCE]; local 258 struct resource *res = &pdev->resource[PCI_ROM_RESOURCE]; local [all...] |
H A D | setup-res.c | 2 * drivers/pci/setup-res.c 36 struct resource *res = dev->resource + resno; local 42 if (!res->flags) 50 if (res->flags & IORESOURCE_PCI_FIXED) 53 pcibios_resource_to_bus(dev, ®ion, res); 55 new = region.start | (res->flags & PCI_REGION_FLAG_MASK); 56 if (res->flags & IORESOURCE_IO) 65 if (!(res->flags & IORESOURCE_ROM_ENABLE)) 78 if (res->flags & IORESOURCE_MEM_64) { 87 res 95 struct resource *res = &dev->resource[resource]; local 137 struct resource *res = dev->resource + resno; local 161 pci_revert_fw_address(struct resource *res, struct pci_dev *dev, int resno, resource_size_t size) argument 193 struct resource *res = dev->resource + resno; local 226 struct resource *res = dev->resource + resno; local 249 struct resource *res = dev->resource + resno; local [all...] |
/drivers/staging/tidspbridge/include/dspbridge/ |
H A D | sync.h | 90 int res; local 92 res = wait_for_completion_interruptible_timeout(&event->comp, 94 if (!res) 95 res = -ETIME; 96 else if (res > 0) 97 res = 0; 99 return res;
|
/drivers/ssb/ |
H A D | embedded.c | 38 u32 res = 0; local 42 res = ssb_chipco_gpio_in(&bus->chipco, mask); 44 res = ssb_extif_gpio_in(&bus->extif, mask); 49 return res; 56 u32 res = 0; local 60 res = ssb_chipco_gpio_out(&bus->chipco, mask, value); 62 res = ssb_extif_gpio_out(&bus->extif, mask, value); 67 return res; 74 u32 res = 0; local 78 res 92 u32 res = 0; local 106 u32 res = 0; local 124 u32 res = 0; local 145 int res; local 187 int res; local 208 int res; local [all...] |
/drivers/media/video/s5p-tv/ |
H A D | mixer_drv.c | 66 struct mxr_resources *res = &mdev->res; local 70 clk_set_parent(res->sclk_mixer, res->sclk_dac); 72 clk_set_parent(res->sclk_mixer, res->sclk_hdmi); 157 struct resource *res; local 160 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "mxr"); 161 if (res == NULL) { 167 mdev->res 223 struct mxr_resources *res = &mdev->res; local 239 struct mxr_resources *res = &mdev->res; local 337 struct mxr_resources *res = &mdev->res; local 356 struct mxr_resources *res = &mdev->res; local [all...] |
/drivers/gpu/drm/exynos/ |
H A D | exynos_mixer.c | 73 static inline u32 vp_reg_read(struct mixer_resources *res, u32 reg_id) argument 75 return readl(res->vp_regs + reg_id); 78 static inline void vp_reg_write(struct mixer_resources *res, u32 reg_id, argument 81 writel(val, res->vp_regs + reg_id); 84 static inline void vp_reg_writemask(struct mixer_resources *res, u32 reg_id, argument 87 u32 old = vp_reg_read(res, reg_id); 90 writel(val, res->vp_regs + reg_id); 93 static inline u32 mixer_reg_read(struct mixer_resources *res, u32 reg_id) argument 95 return readl(res->mixer_regs + reg_id); 98 static inline void mixer_reg_write(struct mixer_resources *res, u3 argument 104 mixer_reg_writemask(struct mixer_resources *res, u32 reg_id, u32 val, u32 mask) argument 180 vp_filter_set(struct mixer_resources *res, int reg_id, const u8 *data, unsigned int size) argument 192 vp_default_filter(struct mixer_resources *res) argument 204 struct mixer_resources *res = &ctx->mixer_res; local 216 struct mixer_resources *res = &ctx->mixer_res; local 240 struct mixer_resources *res = &ctx->mixer_res; local 281 struct mixer_resources *res = &ctx->mixer_res; local 300 struct mixer_resources *res = &ctx->mixer_res; local 309 struct mixer_resources *res = &ctx->mixer_res; local 441 struct mixer_resources *res = &ctx->mixer_res; local 538 struct mixer_resources *res = &ctx->mixer_res; local 554 struct mixer_resources *res = &mixer_ctx->mixer_res; local 570 struct mixer_resources *res = &mixer_ctx->mixer_res; local 656 struct mixer_resources *res = &mixer_ctx->mixer_res; local 730 struct mixer_resources *res = &ctx->mixer_res; local 771 struct mixer_resources *res = &ctx->mixer_res; local 831 struct mixer_resources *res = &ctx->mixer_res; local 844 struct mixer_resources *res = &ctx->mixer_res; local 887 struct resource *res; local 992 struct mixer_resources *res = &ctx->mixer_res; local [all...] |
/drivers/ps3/ |
H A D | ps3av_cmd.c | 157 int res; local 165 res = ps3av_do_pkt(PS3AV_CID_VIDEO_INIT, sizeof(video_init.send_hdr), 167 if (res < 0) 168 return res; 170 res = get_status(&video_init); 171 if (res) { 172 printk(KERN_ERR "PS3AV_CID_VIDEO_INIT: failed %x\n", res); 173 return res; 179 res = ps3av_do_pkt(PS3AV_CID_AUDIO_INIT, sizeof(audio_init.send_hdr), 181 if (res < 208 int res; local 227 int i, send_len, res; local 255 int res; local 278 int res; local 300 int res; local 321 int res; local 423 int res; local 450 int i, res; local 797 int res; local 813 int i, res; local 842 int res; local 866 int res; local 888 int res; local 907 int res; local [all...] |
/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_resource.c | 36 struct vmw_resource res; member in struct:vmw_user_context 56 struct vmw_resource res; member in struct:vmw_stream 89 struct vmw_resource *vmw_resource_reference(struct vmw_resource *res) argument 91 kref_get(&res->kref); 92 return res; 99 * @res: Pointer to the resource. 103 static void vmw_resource_release_id(struct vmw_resource *res) argument 105 struct vmw_private *dev_priv = res->dev_priv; 108 if (res->id != -1) 109 idr_remove(res 116 struct vmw_resource *res = local 143 struct vmw_resource *res = *p_res; local 162 vmw_resource_alloc_id(struct vmw_private *dev_priv, struct vmw_resource *res) argument 183 vmw_resource_init(struct vmw_private *dev_priv, struct vmw_resource *res, struct idr *idr, enum ttm_object_type obj_type, bool delay_id, void (*res_free) (struct vmw_resource *res), void (*remove_from_lists) (struct vmw_resource *res)) argument 222 vmw_resource_activate(struct vmw_resource *res, void (*hw_destroy) (struct vmw_resource *)) argument 236 struct vmw_resource *res; local 256 vmw_hw_context_destroy(struct vmw_resource *res) argument 283 vmw_context_init(struct vmw_private *dev_priv, struct vmw_resource *res, void (*res_free) (struct vmw_resource *res)) argument 334 struct vmw_resource *res = kmalloc(sizeof(*res), GFP_KERNEL); local 348 vmw_user_context_free(struct vmw_resource *res) argument 369 struct vmw_resource *res = &ctx->res; local 379 struct vmw_resource *res; local 411 struct vmw_resource *res; local 484 struct vmw_resource *res; local 751 vmw_hw_surface_destroy(struct vmw_resource *res) argument 785 vmw_surface_res_free(struct vmw_resource *res) argument 815 struct vmw_resource *res = &srf->res; local 939 struct vmw_resource *res = &srf->res; local 1104 vmw_surface_remove_from_lists(struct vmw_resource *res) argument 1111 vmw_surface_init(struct vmw_private *dev_priv, struct vmw_surface *srf, void (*res_free) (struct vmw_resource *res)) argument 1116 struct vmw_resource *res = &srf->res; local 1137 vmw_user_surface_free(struct vmw_resource *res) argument 1169 struct vmw_resource *res; local 1221 struct vmw_resource *res; local 1262 struct vmw_resource *res = &user_srf->srf.res; local 1283 struct vmw_resource *res; local 1713 vmw_stream_destroy(struct vmw_resource *res) argument 1726 vmw_stream_init(struct vmw_private *dev_priv, struct vmw_stream *stream, void (*res_free) (struct vmw_resource *res)) argument 1730 struct vmw_resource *res = &stream->res; local 1760 vmw_user_stream_free(struct vmw_resource *res) argument 1781 struct vmw_resource *res = &stream->stream.res; local 1791 struct vmw_resource *res; local 1823 struct vmw_resource *res; local 1895 struct vmw_resource *res; local [all...] |
/drivers/scsi/aic94xx/ |
H A D | aic94xx_tmf.c | 40 int res; local 51 res = asd_post_ascb_list(ascb->ha, ascb, 1); 52 if (unlikely(res)) 54 return res; 103 int res; \ 108 res = 1; \ 109 ascb = asd_ascb_alloc_list(asd_ha, &res, GFP_KERNEL); \ 120 res = asd_enqueue_internal(ascb, asd_clear_nexus_tasklet_complete, \ 122 if (res) \ 126 res 183 int res, tmp_res, i; local 287 int res = TMF_RESP_FUNC_FAILED; local 342 int res = TMF_RESP_FUNC_FAILED; local 406 int res = 1; local 577 int res = 1; local 656 int res = asd_initiate_ssp_tmf(dev, lun, TMF_ABORT_TASK_SET, 0); local 665 int res = asd_initiate_ssp_tmf(dev, lun, TMF_CLEAR_ACA, 0); local 674 int res = asd_initiate_ssp_tmf(dev, lun, TMF_CLEAR_TASK_SET, 0); local 683 int res = asd_initiate_ssp_tmf(dev, lun, TMF_LU_RESET, 0); local [all...] |
/drivers/scsi/libsas/ |
H A D | sas_expander.c | 69 int res, retry; local 91 res = i->dft->lldd_execute_task(task, 1, GFP_KERNEL); 93 if (res) { 95 SAS_DPRINTK("executing SMP task failed:%d\n", res); 100 res = -ECOMM; 111 res = 0; 117 res = task->task_status.residual; 121 res = -EMSGSIZE; 138 return res; 235 int i, res; local 270 int res = 0; local 307 int res = -ENOMEM; local 347 int res; local 419 int res; local 460 int res; local 531 int res; local 576 int res; local 655 int res; local 802 int res; local 873 int res = 0; local 1055 int res = 0; local 1163 int res = 0; local 1210 int res = 0; local 1281 int i, res = 0; local 1355 int res; local 1397 int res; local 1419 int res = 0; local 1477 int res; local 1509 int res = 0; local 1531 int res; local 1545 int res; local 1572 int res; local 1598 int res; local 1616 int res; local 1639 int res = 0; local 1662 int res; local 1714 int res; local 1798 int res = 0; local 1818 int res; local 1839 int res, i; local 1882 int res; local 1930 int res = 0; local 1968 int res; local [all...] |
/drivers/usb/dwc3/ |
H A D | dwc3-pci.c | 59 struct resource res[2]; local 92 memset(res, 0x00, sizeof(struct resource) * ARRAY_SIZE(res)); 94 res[0].start = pci_resource_start(pci, 0); 95 res[0].end = pci_resource_end(pci, 0); 96 res[0].name = "dwc_usb3"; 97 res[0].flags = IORESOURCE_MEM; 99 res[1].start = pci->irq; 100 res[1].name = "dwc_usb3"; 101 res[ [all...] |
/drivers/acpi/apei/ |
H A D | apei-base.c | 310 struct apei_res *res, *resn, *res_ins = NULL; local 316 list_for_each_entry_safe(res, resn, res_list, list) { 317 if (res->start > end || res->end < start) 319 else if (end <= res->end && start >= res->start) { 323 list_del(&res->list); 324 res->start = start = min(res->start, start); 325 res 348 struct apei_res *res1, *resn1, *res2, *res; local 387 struct apei_res *res, *resn; local 406 struct apei_res *res; local 471 struct apei_res *res, *res_bak = NULL; local 548 struct apei_res *res; local [all...] |
/drivers/usb/host/ |
H A D | ehci-pmcmsp.c | 118 struct resource *res; local 124 res = platform_get_resource(pdev, IORESOURCE_MEM, 1); 125 if (res == NULL) 127 res_len = resource_size(res); 128 if (!request_mem_region(res->start, res_len, "mab regs")) 131 dev->mab_regs = ioremap_nocache(res->start, res_len); 138 res = platform_get_resource(pdev, IORESOURCE_MEM, 2); 139 if (res == NULL) { 143 res_len = resource_size(res); 144 if (!request_mem_region(res 183 struct resource *res; local [all...] |
/drivers/gpio/ |
H A D | devres.c | 22 static void devm_gpio_release(struct device *dev, void *res) argument 24 unsigned *gpio = res; 29 static int devm_gpio_match(struct device *dev, void *res, void *data) argument 31 unsigned *this = res, *gpio = data;
|
/drivers/scsi/ |
H A D | a4000t.c | 36 struct resource *res; local 41 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 42 if (!res) 45 if (!request_mem_region(res->start, resource_size(res), 56 scsi_addr = res->start + A4000T_SCSI_OFFSET; 93 release_mem_region(res->start, resource_size(res)); 101 struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0); local 107 release_mem_region(res [all...] |