/linux/fs/bcachefs/ |
H A D | migrate.c | 22 unsigned dev_idx, int flags, bool metadata) in drop_dev_ptrs() argument 29 bch2_bkey_drop_device(k, dev_idx); in drop_dev_ptrs() 42 unsigned dev_idx, in bch2_dev_usrdata_drop_key() argument 49 if (!bch2_bkey_has_device_c(k, dev_idx)) in bch2_dev_usrdata_drop_key() 57 ret = drop_dev_ptrs(c, bkey_i_to_s(n), dev_idx, flags, false); in bch2_dev_usrdata_drop_key() 92 bch2_dev_usrdata_drop_key(trans, &iter, k, dev_idx, flags)); in bch2_dev_usrdata_drop() 128 if (!bch2_bkey_has_device_c(bkey_i_to_s_c(&b->key), dev_idx)) in bch2_dev_metadata_drop() 134 dev_idx, flags, true); in bch2_dev_metadata_drop() 170 int bch2_dev_data_drop(struct bch_fs *c, unsigned dev_idx, int flags) in bch2_dev_data_drop() argument 172 return bch2_dev_usrdata_drop(c, dev_idx, flags) ?: in bch2_dev_data_drop() [all …]
|
H A D | super.c | 1261 "dev-%u", ca->dev_idx); in bch2_dev_sysfs_online() 1333 unsigned dev_idx) in bch2_dev_attach() argument 1335 ca->dev_idx = dev_idx; in bch2_dev_attach() 1375 sb->sb->dev_idx); in __bch2_dev_attach_bdev() 1618 unsigned dev_idx = ca->dev_idx, data; in bch2_dev_remove() local 1790 for (dev_idx = 0; dev_idx < BCH_SB_MEMBERS_MAX; dev_idx++) { in bch2_dev_add() 1797 best = dev_idx; in bch2_dev_add() 1802 dev_idx = best; in bch2_dev_add() 1831 ca->disk_sb.sb->dev_idx = dev_idx; in bch2_dev_add() 1887 unsigned dev_idx; in bch2_dev_online() local [all …]
|
H A D | sb-members.h | 88 return __bch2_next_dev_idx(c, ca ? ca->dev_idx + 1 : 0, mask); in __bch2_next_dev() 248 …ne struct bch_dev *bch2_dev_iterate_noerror(struct bch_fs *c, struct bch_dev *ca, unsigned dev_idx) in bch2_dev_iterate_noerror() argument 250 if (ca && ca->dev_idx == dev_idx) in bch2_dev_iterate_noerror() 253 return bch2_dev_tryget_noerror(c, dev_idx); in bch2_dev_iterate_noerror() 256 …tic inline struct bch_dev *bch2_dev_iterate(struct bch_fs *c, struct bch_dev *ca, unsigned dev_idx) in bch2_dev_iterate() argument 258 if (ca && ca->dev_idx == dev_idx) in bch2_dev_iterate() 261 return bch2_dev_tryget(c, dev_idx); in bch2_dev_iterate() 289 __set_bit(ca->dev_idx, devs.d); in bch2_online_devs()
|
H A D | alloc_foreground.c | 219 if (bch2_bucket_is_open(c, ca->dev_idx, bucket)) { in __try_alloc_bucket() 225 c->journal.flushed_seq_ondisk, ca->dev_idx, bucket)) { in __try_alloc_bucket() 247 if (bch2_bucket_is_open(c, ca->dev_idx, bucket)) { in __try_alloc_bucket() 259 ob->dev = ca->dev_idx; in __try_alloc_bucket() 302 BTREE_ID_alloc, POS(ca->dev_idx, b), in try_alloc_bucket() 492 POS(ca->dev_idx, alloc_cursor), 0, k, ret) { in bch2_bucket_alloc_freelist() 493 if (k.k->p.inode != ca->dev_idx) in bch2_bucket_alloc_freelist() 725 u64 *v = stripe->next_alloc + ca->dev_idx; in bch2_dev_stripe_increment_inlined() 1128 bool drop = ob->dev == ca->dev_idx; in should_drop_bucket() 1143 drop |= ob2->dev == ca->dev_idx; in should_drop_bucket() [all …]
|
H A D | super-io.c | 391 if (sb->dev_idx >= sb->nr_devices) { in bch2_sb_validate() 393 sb->dev_idx, sb->nr_devices); in bch2_sb_validate() 474 bch2_sb_member_get(sb, sb->dev_idx).seq != sb->seq) { in bch2_sb_validate() 476 le64_to_cpu(bch2_sb_member_get(sb, sb->dev_idx).seq), in bch2_sb_validate() 537 struct bch_member m = bch2_sb_member_get(src, ca->dev_idx); in bch2_sb_update() 956 __bch2_members_v2_get_mut(mi, (*ca)->dev_idx)->seq = c->disk_sb.sb->seq; in bch2_write_super() 1008 __set_bit((*ca)->dev_idx, sb_written.d); in bch2_write_super() 1069 __clear_bit(ca->dev_idx, sb_written.d); in bch2_write_super() 1311 prt_printf(out, "Device index:\t%u\n", sb->dev_idx); in bch2_sb_to_text()
|
H A D | journal_sb.c | 23 struct bch_member m = bch2_sb_member_get(sb, sb->dev_idx); in bch2_sb_journal_validate() 105 struct bch_member m = bch2_sb_member_get(sb, sb->dev_idx); in bch2_sb_journal_v2_validate()
|
/linux/drivers/md/ |
H A D | dm-zoned-reclaim.c | 24 int dev_idx; member 204 dmz_metadata_label(zmd), zrc->dev_idx, in dmz_reclaim_buf() 243 dmz_metadata_label(zmd), zrc->dev_idx, in dmz_reclaim_seq_data() 291 szone = dmz_alloc_zone(zmd, zrc->dev_idx, in dmz_reclaim_rnd_data() 377 dmz_metadata_label(zmd), zrc->dev_idx); in dmz_do_reclaim() 423 dmz_metadata_label(zmd), zrc->dev_idx, in dmz_do_reclaim() 441 dmz_metadata_label(zmd), zrc->dev_idx, in dmz_do_reclaim() 479 if (zrc->dev_idx == 0) in dmz_should_reclaim() 533 dmz_metadata_label(zmd), zrc->dev_idx, in dmz_reclaim_work() 539 dmz_nr_rnd_zones(zmd, zrc->dev_idx)); in dmz_reclaim_work() [all …]
|
H A D | dm-zoned.h | 63 unsigned int dev_idx; member 219 unsigned int dev_idx, unsigned long flags); 248 unsigned int dev_idx, bool idle);
|
/linux/tools/iio/ |
H A D | lsiio.c | 61 int dev_idx; in dump_one_device() local 65 &dev_idx); in dump_one_device() 73 printf("Device %03d: %s\n", dev_idx, name); in dump_one_device() 84 int dev_idx; in dump_one_trigger() local 88 "%i", &dev_idx); in dump_one_trigger() 96 printf("Trigger %03d: %s\n", dev_idx, name); in dump_one_trigger()
|
/linux/drivers/edac/ |
H A D | e7xxx_edac.c | 343 return (dev_idx == E7501) ? ((drc >> 22) & 0x1) : 1; in dual_channel_active() 347 static inline int drb_granularity(u32 drc, int dev_idx) in drb_granularity() argument 350 return (dev_idx == E7501) ? ((drc >> 18) & 0x3) : 1; in drb_granularity() 354 int dev_idx, u32 drc) in e7xxx_init_csrows() argument 366 drc_chan = dual_channel_active(drc, dev_idx); in e7xxx_init_csrows() 367 drc_drbg = drb_granularity(drc, dev_idx); in e7xxx_init_csrows() 420 static int e7xxx_probe1(struct pci_dev *pdev, int dev_idx) in e7xxx_probe1() argument 434 drc_chan = dual_channel_active(drc, dev_idx); in e7xxx_probe1() 462 pvt->dev_info = &e7xxx_devs[dev_idx]; in e7xxx_probe1() 469 PCI_VENDOR_ID_INTEL, e7xxx_devs[dev_idx].err_dev); in e7xxx_probe1() [all …]
|
H A D | edac_device.c | 44 edac_dev, edac_dev->dev_idx); in edac_device_dump_device() 94 dev_ctl->dev_idx = device_index; in edac_device_alloc_ctl_info() 213 if (rover->dev_idx >= edac_dev->dev_idx) { in add_edac_dev_to_global_list() 214 if (unlikely(rover->dev_idx == edac_dev->dev_idx)) in add_edac_dev_to_global_list() 229 rover->mod_name, rover->ctl_name, rover->dev_idx); in add_edac_dev_to_global_list() 235 " duplicate dev_idx %d in %s()\n", rover->dev_idx, in add_edac_dev_to_global_list() 454 edac_dev->dev_idx, in edac_device_del_device()
|
H A D | e752x_edac.c | 1174 static int e752x_get_devs(struct pci_dev *pdev, int dev_idx, in e752x_get_devs() argument 1189 PCI_VENDOR_ID_INTEL, e752x_devs[dev_idx].err_dev); in e752x_get_devs() 1194 e752x_devs[dev_idx].ctl_dev, in e752x_get_devs() 1255 static int e752x_probe1(struct pci_dev *pdev, int dev_idx) in e752x_probe1() argument 1300 mci->edac_ctl_cap = (dev_idx == I3100) ? EDAC_FLAG_SECDED : in e752x_probe1() 1308 pvt->dev_info = &e752x_devs[dev_idx]; in e752x_probe1() 1311 if (e752x_get_devs(pdev, dev_idx, pvt)) { in e752x_probe1() 1334 if (dev_idx == I3100) in e752x_probe1()
|
H A D | amd76x_edac.c | 228 static int amd76x_probe1(struct pci_dev *pdev, int dev_idx) in amd76x_probe1() argument 264 mci->ctl_name = amd76x_devs[dev_idx].ctl_name; in amd76x_probe1()
|
H A D | i82860_edac.c | 184 static int i82860_probe1(struct pci_dev *pdev, int dev_idx) in i82860_probe1() argument 217 mci->ctl_name = i82860_devs[dev_idx].ctl_name; in i82860_probe1()
|
H A D | i5400_edac.c | 718 static int i5400_get_devices(struct mem_ctl_info *mci, int dev_idx) in i5400_get_devices() argument 1253 static int i5400_probe1(struct pci_dev *pdev, int dev_idx) in i5400_probe1() argument 1259 if (dev_idx >= ARRAY_SIZE(i5400_devs)) in i5400_probe1() 1298 if (i5400_get_devices(mci, dev_idx)) in i5400_probe1() 1309 mci->ctl_name = i5400_devs[dev_idx].ctl_name; in i5400_probe1()
|
H A D | edac_device_sysfs.c | 206 edac_dbg(4, "control index=%d\n", edac_dev->dev_idx); in edac_device_ctrl_master_release() 793 edac_dbg(0, "idx=%d\n", edac_dev->dev_idx); in edac_device_create_sysfs() 824 edac_dbg(4, "create-instances done, idx=%d\n", edac_dev->dev_idx); in edac_device_create_sysfs()
|
/linux/tools/testing/selftests/nci/ |
H A D | nci_dev.c | 585 void *nla_start_poll_data[2] = {&dev_idx, &proto}; in start_polling() 605 int stop_polling(int dev_idx, int virtual_fd, int sd, int fid, int pid) in stop_polling() argument 617 NFC_CMD_STOP_POLL, dev_idx); in stop_polling() 638 int get_taginfo(int dev_idx, int sd, int fid, int pid) in get_taginfo() argument 658 tagid_type_data = &dev_idx; in get_taginfo() 695 int connect_socket(int dev_idx, int target_idx) in connect_socket() argument 706 addr.dev_idx = dev_idx; in connect_socket() 719 int connect_tag(int dev_idx, int virtual_fd, int sd, int fid, int pid) in connect_tag() argument 736 if (dev_idx != evt_dev) in connect_tag() 739 target_idx = get_taginfo(dev_idx, sd, fid, pid); in connect_tag() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlxfw/ |
H A D | mlxfw_mfa2.c | 114 u16 dev_idx) in mlxfw_mfa2_file_dev_validate() argument 124 pr_debug("Device %d\n", dev_idx); in mlxfw_mfa2_file_dev_validate() 128 pr_err("Device %d is not a valid TLV error\n", dev_idx); in mlxfw_mfa2_file_dev_validate() 139 pr_err("Device %d does not have PSID\n", dev_idx); in mlxfw_mfa2_file_dev_validate() 145 pr_err("Device %d PSID TLV is not valid\n", dev_idx); in mlxfw_mfa2_file_dev_validate() 160 pr_err("Device %d has no components\n", dev_idx); in mlxfw_mfa2_file_dev_validate() 174 dev_idx); in mlxfw_mfa2_file_dev_validate()
|
/linux/include/sound/ |
H A D | tas2781-dsp.h | 84 unsigned char dev_idx; member 150 unsigned char dev_idx; member
|
/linux/net/phonet/ |
H A D | pn_netlink.c | 125 int dev_idx = 0, dev_start_idx = cb->args[0]; in getaddr_dumpit() local 133 if (dev_idx > dev_start_idx) in getaddr_dumpit() 135 if (dev_idx++ < dev_start_idx) in getaddr_dumpit() 152 cb->args[0] = dev_idx; in getaddr_dumpit()
|
/linux/include/uapi/linux/ |
H A D | nfc.h | 267 __u32 dev_idx; member 275 __u32 dev_idx; member
|
/linux/sound/soc/codecs/ |
H A D | tas2781-fmwlib.c | 85 unsigned char dev_idx; member 226 if (bk_da[i]->dev_idx == 0) in tasdevice_add_config() 231 (bk_da[i]->dev_idx - 1); in tasdevice_add_config() 392 unsigned char dev_idx = 0; in map_dev_idx() local 404 dev_idx = p[i].dev_idx; in map_dev_idx() 409 return dev_idx; in map_dev_idx() 681 int blktyp = dev_idx & 0xC0; in tasdevice_process_block() 682 int idx = dev_idx & 0x3F; in tasdevice_process_block() 839 if (blk_data[j]->dev_idx) { in tasdevice_select_cfg_blk() 841 chnend = blk_data[j]->dev_idx; in tasdevice_select_cfg_blk() [all …]
|
/linux/drivers/misc/ |
H A D | open-dice.c | 116 static unsigned int dev_idx; in open_dice_probe() local 155 snprintf(drvdata->name, sizeof(drvdata->name), DRIVER_NAME"%u", dev_idx++); in open_dice_probe()
|
/linux/net/nfc/ |
H A D | netlink.c | 1463 u32 dev_idx; member 1484 if (nla_put_u32(msg, NFC_ATTR_DEVICE_INDEX, ctx->dev_idx) || in se_io_cb() 1509 u32 dev_idx, se_idx; in nfc_genl_se_io() local 1519 dev_idx = nla_get_u32(info->attrs[NFC_ATTR_DEVICE_INDEX]); in nfc_genl_se_io() 1522 dev = nfc_get_device(dev_idx); in nfc_genl_se_io() 1549 ctx->dev_idx = dev_idx; in nfc_genl_se_io() 1564 u32 dev_idx, vid, subcmd; in nfc_genl_vendor_cmd() local 1574 dev_idx = nla_get_u32(info->attrs[NFC_ATTR_DEVICE_INDEX]); in nfc_genl_vendor_cmd() 1578 dev = nfc_get_device(dev_idx); in nfc_genl_vendor_cmd()
|
/linux/drivers/staging/gdm724x/ |
H A D | gdm_lte.h | 44 int dev_idx, int nic_type);
|