Home
last modified time | relevance | path

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

/linux-6.1.9/arch/alpha/kernel/
Dpci-sysfs.c175 int retval, nlen1, nlen2 = 0, res_count = 1; in pci_create_attr() local
202 res_count = 2; in pci_create_attr()
206 attr = kzalloc(sizeof(*attr) * res_count + nlen1 + nlen2, GFP_ATOMIC); in pci_create_attr()
211 attr_name = (char *)(attr + res_count); in pci_create_attr()
215 if (retval || res_count == 1) in pci_create_attr()
/linux-6.1.9/arch/arm/mach-omap1/
Dmcbsp.c362 static void omap_mcbsp_register_board_cfg(struct resource *res, int res_count, in omap_mcbsp_register_board_cfg() argument
381 platform_device_add_resources(new_mcbsp, &res[i * res_count], in omap_mcbsp_register_board_cfg()
382 res_count); in omap_mcbsp_register_board_cfg()
/linux-6.1.9/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.c1704 int err, i, res_count; in pc87360_device_add() local
1714 res_count = 0; in pc87360_device_add()
1718 res[res_count].start = extra_isa[i]; in pc87360_device_add()
1719 res[res_count].end = extra_isa[i] + PC87360_EXTENT - 1; in pc87360_device_add()
1720 res[res_count].name = "pc87360"; in pc87360_device_add()
1721 res[res_count].flags = IORESOURCE_IO; in pc87360_device_add()
1723 err = acpi_check_resource_conflict(&res[res_count]); in pc87360_device_add()
1727 res_count++; in pc87360_device_add()
1730 err = platform_device_add_resources(pdev, res, res_count); in pc87360_device_add()
/linux-6.1.9/drivers/firewire/
Dohci.c69 __le16 res_count; member
663 d->res_count = cpu_to_le16(PAGE_SIZE); in ar_context_link_page()
720 __le16 res_count, next_res_count; in ar_search_last_active_buffer() local
723 res_count = READ_ONCE(ctx->descriptors[i].res_count); in ar_search_last_active_buffer()
726 while (i != last && res_count == 0) { in ar_search_last_active_buffer()
731 next_res_count = READ_ONCE(ctx->descriptors[next_i].res_count); in ar_search_last_active_buffer()
747 next_res_count = READ_ONCE(ctx->descriptors[next_i].res_count); in ar_search_last_active_buffer()
757 res_count = next_res_count; in ar_search_last_active_buffer()
762 *buffer_offset = PAGE_SIZE - le16_to_cpu(res_count); in ar_search_last_active_buffer()
1301 d[0].res_count = cpu_to_le16(packet->timestamp); in at_context_queue_packet()
[all …]
/linux-6.1.9/fs/nfs/
Dnfstrace.h1138 __field(u32, res_count)
1152 __entry->res_count = hdr->res.count;
1166 __entry->res_count, __entry->eof ? " eof" : ""
1184 __field(u32, res_count)
1198 __entry->res_count = hdr->res.count;
1212 __entry->res_count, __entry->eof ? " eof" : ""
1322 __field(u32, res_count)
1336 __entry->res_count = hdr->res.count;
1346 (long long)__entry->offset, __entry->arg_count, __entry->res_count,
1406 __field(u32, res_count)
[all …]
Dnfs4trace.h1487 __field(u32, res_count)
1509 __entry->res_count = hdr->res.count;
1530 __entry->arg_count, __entry->res_count,
1561 __field(u32, res_count)
1583 __entry->res_count = hdr->res.count;
1604 __entry->arg_count, __entry->res_count,
2260 __field(loff_t, res_count)
2293 __entry->res_count = 0;
2302 __entry->res_count = res->write_res.count;
2333 __entry->res_count
/linux-6.1.9/arch/powerpc/include/asm/
Ddbdma.h50 __le16 res_count; /* residual count after completion */ member
/linux-6.1.9/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()
/linux-6.1.9/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()
/linux-6.1.9/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()
/linux-6.1.9/sound/ppc/
Dpmac.c301 count = in_le16(&cp->res_count); in snd_pmac_pcm_pointer()
406 res = le16_to_cpu(cp->res_count); in snd_pmac_pcm_dead_xfer()
410 cp->res_count = cpu_to_le16(0); in snd_pmac_pcm_dead_xfer()
/linux-6.1.9/drivers/firmware/
Dti_sci.c3094 int res_count = desc->num + desc->num_sec; in ti_sci_get_free_resource() local
3096 free_bit = find_first_zero_bit(desc->res_map, res_count); in ti_sci_get_free_resource()
3097 if (free_bit != res_count) { in ti_sci_get_free_resource()
3173 int i, ret, res_count; in devm_ti_sci_get_resource_sets() local
3202 res_count = res->desc[i].num + res->desc[i].num_sec; in devm_ti_sci_get_resource_sets()
3204 devm_kzalloc(dev, BITS_TO_LONGS(res_count) * in devm_ti_sci_get_resource_sets()
/linux-6.1.9/drivers/scsi/qla2xxx/
Dqla_mr.h444 int32_t res_count; member
Dqla_mr.c2217 fstatus.res_count = pkt->residuallen; in qlafx00_ioctl_iosb_entry()
/linux-6.1.9/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()
/linux-6.1.9/drivers/ata/
Dpata_macio.c551 table->res_count = 0; in pata_macio_qc_prep()
/linux-6.1.9/drivers/block/
Dswim3.c755 resid = le16_to_cpu(cp->res_count); in swim3_interrupt()