Home
last modified time | relevance | path

Searched refs:res_count (Results 1 – 23 of 23) sorted by relevance

/drivers/cdx/controller/
Dmcdi_functions.c76 dev_params->res_count = 0; in cdx_mcdi_get_dev_config()
78 res[dev_params->res_count].start = in cdx_mcdi_get_dev_config()
80 res[dev_params->res_count].end = in cdx_mcdi_get_dev_config()
84 res[dev_params->res_count].flags = IORESOURCE_MEM; in cdx_mcdi_get_dev_config()
85 dev_params->res_count++; in cdx_mcdi_get_dev_config()
89 res[dev_params->res_count].start = in cdx_mcdi_get_dev_config()
91 res[dev_params->res_count].end = in cdx_mcdi_get_dev_config()
95 res[dev_params->res_count].flags = IORESOURCE_MEM; in cdx_mcdi_get_dev_config()
96 dev_params->res_count++; in cdx_mcdi_get_dev_config()
100 res[dev_params->res_count].start = in cdx_mcdi_get_dev_config()
[all …]
/drivers/vfio/cdx/
Dmain.c16 int count = cdx_dev->res_count; in vfio_cdx_open_device()
71 info.num_regions = cdx_dev->res_count; in vfio_cdx_ioctl_get_info()
90 if (info.index >= cdx_dev->res_count) in vfio_cdx_ioctl_get_region_info()
150 if (index >= cdx_dev->res_count) in vfio_cdx_mmap()
/drivers/hwmon/
Dpc87427.c1055 int i, err, res_count; in pc87427_probe() local
1064 res_count = (data->address[0] != 0) + (data->address[1] != 0); in pc87427_probe()
1066 err = pc87427_request_regions(pdev, res_count); in pc87427_probe()
1143 int err, i, res_count; in pc87427_device_add() local
1145 res_count = 0; in pc87427_device_add()
1149 res[res_count].start = sio_data->address[i]; in pc87427_device_add()
1150 res[res_count].end = sio_data->address[i] + REGION_LENGTH - 1; in pc87427_device_add()
1151 res[res_count].name = logdev_str[i]; in pc87427_device_add()
1153 err = acpi_check_resource_conflict(&res[res_count]); in pc87427_device_add()
1157 res_count++; in pc87427_device_add()
[all …]
Dpc87360.c1708 int err, i, res_count; in pc87360_device_add() local
1718 res_count = 0; in pc87360_device_add()
1722 res[res_count].start = extra_isa[i]; in pc87360_device_add()
1723 res[res_count].end = extra_isa[i] + PC87360_EXTENT - 1; in pc87360_device_add()
1724 res[res_count].name = "pc87360"; in pc87360_device_add()
1725 res[res_count].flags = IORESOURCE_IO; in pc87360_device_add()
1727 err = acpi_check_resource_conflict(&res[res_count]); in pc87360_device_add()
1731 res_count++; in pc87360_device_add()
1734 err = platform_device_add_resources(pdev, res, res_count); in pc87360_device_add()
/drivers/staging/media/atomisp/pci/
Datomisp_csi2_bridge.c324 data->res_count++; in atomisp_csi2_handle_acpi_gpio_res()
368 data->map->params[i].crs_entry_index = data->res_count - 1; in atomisp_csi2_handle_acpi_gpio_res()
377 data->res_count - 1, agpio->resource_source.string_ptr, in atomisp_csi2_handle_acpi_gpio_res()
490 data.res_count != data.settings_count) in atomisp_csi2_add_gpio_mappings()
493 data.res_count, data.map_count); in atomisp_csi2_add_gpio_mappings()
Datomisp_csi2.h51 unsigned int res_count; member
/drivers/firewire/
Dohci.c69 __le16 res_count; member
708 d->res_count = cpu_to_le16(PAGE_SIZE); in ar_context_link_page()
768 __le16 res_count, next_res_count; in ar_search_last_active_buffer() local
771 res_count = READ_ONCE(ctx->descriptors[i].res_count); in ar_search_last_active_buffer()
774 while (i != last && res_count == 0) { in ar_search_last_active_buffer()
779 next_res_count = READ_ONCE(ctx->descriptors[next_i].res_count); in ar_search_last_active_buffer()
795 next_res_count = READ_ONCE(ctx->descriptors[next_i].res_count); in ar_search_last_active_buffer()
805 res_count = next_res_count; in ar_search_last_active_buffer()
810 *buffer_offset = PAGE_SIZE - le16_to_cpu(res_count); in ar_search_last_active_buffer()
1348 d[0].res_count = cpu_to_le16(packet->timestamp); in at_context_queue_packet()
[all …]
/drivers/cdx/
Dcdx.c476 dev_params->res_count); in cdx_device_add()
477 cdx_dev->res_count = dev_params->res_count; in cdx_device_add()
Dcdx.h32 u8 res_count; member
/drivers/net/ethernet/broadcom/asp2/
Dbcmasp.c846 int res_count; in bcmasp_disable_all_filters() local
848 res_count = bcmasp_total_res_mda_cnt(intf->parent); in bcmasp_disable_all_filters()
851 for (i = res_count; i < NUM_MDA_FILTERS; i++) { in bcmasp_disable_all_filters()
890 int ret, res_count; in bcmasp_set_en_mda_filter() local
893 res_count = bcmasp_total_res_mda_cnt(intf->parent); in bcmasp_set_en_mda_filter()
895 for (i = res_count; i < NUM_MDA_FILTERS; i++) { in bcmasp_set_en_mda_filter()
910 for (i = res_count; i < NUM_MDA_FILTERS; i++) { in bcmasp_set_en_mda_filter()
/drivers/staging/vt6655/
Ddesc.h162 volatile __le16 res_count; member
Ddpc.c130 - le16_to_cpu(curr_rd->rd0.res_count); in vnt_receive_frame()
Dcard.c444 pDesc->rd0.res_count = cpu_to_le16(priv->rx_buf_sz); in CARDvSafeResetRx()
452 pDesc->rd0.res_count = cpu_to_le16(priv->rx_buf_sz); in CARDvSafeResetRx()
Ddevice_main.c871 rd->rd0.res_count = cpu_to_le16(priv->rx_buf_sz); in device_alloc_rx_buf()
/drivers/mfd/
Dsm501.c701 unsigned int res_count, unsigned int platform_data_size) in sm501_create_subdev() argument
706 (sizeof(struct resource) * res_count) + in sm501_create_subdev()
718 if (res_count) { in sm501_create_subdev()
720 smdev->pdev.num_resources = res_count; in sm501_create_subdev()
/drivers/scsi/
Dlibiscsi.c938 int res_count = be32_to_cpu(rhdr->residual_count); in iscsi_scsi_cmd_rsp() local
940 if (res_count > 0 && in iscsi_scsi_cmd_rsp()
942 res_count <= scsi_bufflen(sc))) in iscsi_scsi_cmd_rsp()
944 scsi_set_resid(sc, res_count); in iscsi_scsi_cmd_rsp()
979 int res_count = be32_to_cpu(rhdr->residual_count); in iscsi_data_in_rsp() local
981 if (res_count > 0 && in iscsi_data_in_rsp()
983 res_count <= sc->sdb.length)) in iscsi_data_in_rsp()
984 scsi_set_resid(sc, res_count); in iscsi_data_in_rsp()
/drivers/firmware/
Dti_sci.c3080 int res_count = desc->num + desc->num_sec; in ti_sci_get_free_resource() local
3082 free_bit = find_first_zero_bit(desc->res_map, res_count); in ti_sci_get_free_resource()
3083 if (free_bit != res_count) { in ti_sci_get_free_resource()
3159 int i, ret, res_count; in devm_ti_sci_get_resource_sets() local
3188 res_count = res->desc[i].num + res->desc[i].num_sec; in devm_ti_sci_get_resource_sets()
3189 res->desc[i].res_map = devm_bitmap_zalloc(dev, res_count, in devm_ti_sci_get_resource_sets()
/drivers/scsi/qla2xxx/
Dqla_mr.h444 int32_t res_count; member
Dqla_mr.c2217 fstatus.res_count = pkt->residuallen; in qlafx00_ioctl_iosb_entry()
/drivers/net/ethernet/apple/
Dbmac.c205 out_le16(&cp->res_count, 0); in dbdma_setcmd()
694 residual = le16_to_cpu(cp->res_count); in bmac_rxdma_intr()
722 cp->res_count = cpu_to_le16(0); in bmac_rxdma_intr()
Dmace.c908 nb = le16_to_cpu(cp->req_count) - le16_to_cpu(cp->res_count); in mace_rxdma_intr()
/drivers/ata/
Dpata_macio.c552 table->res_count = 0; in pata_macio_qc_prep()
/drivers/block/
Dswim3.c754 resid = le16_to_cpu(cp->res_count); in swim3_interrupt()