Home
last modified time | relevance | path

Searched refs:dev_idx (Results 1 – 25 of 61) sorted by relevance

123

/linux/tools/iio/
H A Dlsiio.c61 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 De7xxx_edac.c341 static inline int dual_channel_active(u32 drc, int dev_idx) in dual_channel_active() argument
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()
[all …]
H A Dedac_device.c44 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 De752x_edac.c1174 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 Damd76x_edac.c228 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 Di82860_edac.c184 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 Di5400_edac.c718 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 Dedac_device_sysfs.c206 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()
H A Dedac_device.h147 int dev_idx; member
/linux/fs/bcachefs/
H A Dsb-members.h88 return __bch2_next_dev_idx(c, ca ? ca->dev_idx + 1 : 0, mask); in __bch2_next_dev()
256 …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
258 if (ca && ca->dev_idx == dev_idx) in bch2_dev_iterate_noerror()
261 return bch2_dev_tryget_noerror(c, dev_idx); in bch2_dev_iterate_noerror()
264 …tic inline struct bch_dev *bch2_dev_iterate(struct bch_fs *c, struct bch_dev *ca, unsigned dev_idx) in bch2_dev_iterate() argument
266 if (ca && ca->dev_idx == dev_idx) in bch2_dev_iterate()
269 return bch2_dev_tryget(c, dev_idx); in bch2_dev_iterate()
297 __set_bit(ca->dev_idx, devs.d); in bch2_online_devs()
H A Dsb-members.c355 struct bch_member *m = __bch2_members_v2_get_mut(mi, ca->dev_idx); in bch2_sb_members_from_cpu()
369 m = bch2_sb_member_get(c->disk_sb.sb, ca->dev_idx); in bch2_dev_io_errors_to_text()
400 m = bch2_members_v2_get_mut(c->disk_sb.sb, ca->dev_idx); in bch2_dev_errors_reset()
488 unsigned dev_idx = c->sb.nr_devices; in bch2_sb_member_alloc() local
495 if (dev_idx < BCH_SB_MEMBERS_MAX) in bch2_sb_member_alloc()
498 for (dev_idx = 0; dev_idx < BCH_SB_MEMBERS_MAX; dev_idx++) { in bch2_sb_member_alloc()
500 if (dev_idx == BCH_SB_MEMBER_INVALID) in bch2_sb_member_alloc()
503 struct bch_member m = bch2_sb_member_get(c->disk_sb.sb, dev_idx); in bch2_sb_member_alloc()
509 best = dev_idx; in bch2_sb_member_alloc()
514 dev_idx = best; in bch2_sb_member_alloc()
[all …]
H A Dsuper.c1020 bch2_members_v2_get_mut(c->disk_sb.sb, ca->dev_idx)->last_mount = cpu_to_le64(now); in bch2_fs_start()
1076 struct bch_member m = bch2_sb_member_get(sb, sb->dev_idx); in bch2_dev_may_add()
1098 if (!bch2_member_exists(fs->sb, sb->sb->dev_idx)) in bch2_dev_in_fs()
1141 struct bch_member m = bch2_sb_member_get(fs->sb, sb->sb->dev_idx); in bch2_dev_in_fs()
1278 "dev-%u", ca->dev_idx); in bch2_dev_sysfs_online()
1352 unsigned dev_idx) in bch2_dev_attach() argument
1354 ca->dev_idx = dev_idx; in bch2_dev_attach()
1355 __set_bit(ca->dev_idx, ca->self.d); in bch2_dev_attach()
1356 scnprintf(ca->name, sizeof(ca->name), "dev-%u", dev_idx); in bch2_dev_attach()
1359 rcu_assign_pointer(c->devs[ca->dev_idx], ca); in bch2_dev_attach()
[all …]
H A Dalloc_foreground.c223 if (bch2_bucket_is_open(c, ca->dev_idx, bucket)) { in __try_alloc_bucket()
229 c->journal.flushed_seq_ondisk, ca->dev_idx, bucket)) { in __try_alloc_bucket()
234 if (bch2_bucket_nocow_is_locked(&c->nocow_locks, POS(ca->dev_idx, bucket))) { in __try_alloc_bucket()
251 if (bch2_bucket_is_open(c, ca->dev_idx, bucket)) { in __try_alloc_bucket()
263 ob->dev = ca->dev_idx; in __try_alloc_bucket()
306 BTREE_ID_alloc, POS(ca->dev_idx, b), in try_alloc_bucket()
349 ret = bch2_get_next_backpointer(trans, ca, POS(ca->dev_idx, b), -1, in try_alloc_bucket()
411 for_each_btree_key_norestart(trans, iter, BTREE_ID_alloc, POS(ca->dev_idx, alloc_cursor), in bch2_bucket_alloc_early()
415 if (bkey_ge(k.k->p, POS(ca->dev_idx, ca->mi.nbuckets))) in bch2_bucket_alloc_early()
432 bch2_btree_iter_set_pos(&iter, POS(ca->dev_idx, bucket)); in bch2_bucket_alloc_early()
[all …]
H A Dopts.c665 void __bch2_opt_set_sb(struct bch_sb *sb, int dev_idx, in __bch2_opt_set_sb() argument
684 if ((opt->flags & OPT_DEVICE) && dev_idx >= 0) { in __bch2_opt_set_sb()
685 if (WARN(!bch2_member_exists(sb, dev_idx), in __bch2_opt_set_sb()
687 opt->attr.name, dev_idx)) in __bch2_opt_set_sb()
690 struct bch_member *m = bch2_members_v2_get_mut(sb, dev_idx); in __bch2_opt_set_sb()
704 __bch2_opt_set_sb(c->disk_sb.sb, ca ? ca->dev_idx : -1, opt, v); in bch2_opt_set_sb()
H A Dalloc_background.c782 .dev_data_type.dev = ca->dev_idx, in bch2_dev_data_type_accounting_mod()
918 ret = bch2_mod_dev_cached_sectors(trans, ca->dev_idx, in bch2_trigger_alloc()
1083 *bucket = POS((*ca)->dev_idx, (*ca)->mi.first_bucket); in next_bucket()
1891 POS(ca->dev_idx, 0), in bch2_do_discards_work()
1892 POS(ca->dev_idx, U64_MAX), 0, k, in bch2_do_discards_work()
1909 if (!bch2_dev_get_ioref(c, ca->dev_idx, WRITE)) in bch2_dev_do_discards()
1983 bch2_clear_bucket_needs_discard(trans, POS(ca->dev_idx, bucket))); in bch2_do_discards_fast_work()
2006 if (!bch2_dev_get_ioref(c, ca->dev_idx, WRITE)) in bch2_discard_one_bucket_fast()
2104 k = bch2_btree_iter_peek_upto(iter, lru_pos(ca->dev_idx, U64_MAX, LRU_TIME_MAX)); in next_lru_key()
2106 bch2_btree_iter_set_pos(iter, lru_pos(ca->dev_idx, 0, 0)); in next_lru_key()
[all …]
H A Dsuper-io.c396 if (sb->dev_idx >= sb->nr_devices) { in bch2_sb_validate()
398 sb->dev_idx, sb->nr_devices); in bch2_sb_validate()
486 bch2_sb_member_get(sb, sb->dev_idx).seq != sb->seq) { in bch2_sb_validate()
488 le64_to_cpu(bch2_sb_member_get(sb, sb->dev_idx).seq), in bch2_sb_validate()
549 struct bch_member m = bch2_sb_member_get(src, ca->dev_idx); in bch2_sb_update()
971 __bch2_members_v2_get_mut(mi, (*ca)->dev_idx)->seq = c->disk_sb.sb->seq; in bch2_write_super()
1023 __set_bit((*ca)->dev_idx, sb_written.d); in bch2_write_super()
1084 __clear_bit(ca->dev_idx, sb_written.d); in bch2_write_super()
1321 prt_printf(out, "Device index:\t%u\n", sb->dev_idx); in bch2_sb_to_text()
H A Djournal_sb.c23 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/tools/testing/selftests/nci/
H A Dnci_dev.c581 int start_polling(int dev_idx, int proto, int virtual_fd, int sd, int fid, int pid) in start_polling() argument
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()
[all …]
/linux/drivers/net/ethernet/mellanox/mlxfw/
H A Dmlxfw_mfa2.c114 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 Dtas2781-dsp.h84 unsigned char dev_idx; member
157 unsigned char dev_idx; member
/linux/net/phonet/
H A Dpn_netlink.c131 int dev_idx = 0, dev_start_idx = cb->args[0]; in getaddr_dumpit() local
143 if (dev_idx > dev_start_idx) in getaddr_dumpit()
145 if (dev_idx++ < dev_start_idx) in getaddr_dumpit()
165 cb->args[0] = dev_idx; in getaddr_dumpit()
/linux/sound/soc/codecs/
H A Dtas2781-fmwlib.c84 unsigned char dev_idx; member
217 bk_da[i]->dev_idx = config_data[config_offset]; in tasdevice_add_config()
224 if (bk_da[i]->dev_idx == 0) in tasdevice_add_config()
229 (bk_da[i]->dev_idx - 1); in tasdevice_add_config()
390 unsigned char dev_idx = 0; in map_dev_idx() local
402 dev_idx = p[i].dev_idx; in map_dev_idx()
407 return dev_idx; in map_dev_idx()
451 block->dev_idx = map_dev_idx(tas_fmw, block); in fw_parse_block_data_kernel()
674 unsigned char dev_idx, int sublocksize) in tasdevice_process_block() argument
679 int blktyp = dev_idx & 0xC0; in tasdevice_process_block()
[all …]
H A Dpcm6240.c1288 bk_da[i]->dev_idx = config_data[config_offset]; in pcmdevice_add_config()
1295 if (bk_da[i]->dev_idx == 0) in pcmdevice_add_config()
1300 1 << (bk_da[i]->dev_idx - 1); in pcmdevice_add_config()
1794 unsigned char dev_idx, int sublocksize) in pcmdevice_process_block() argument
1800 if (dev_idx) { in pcmdevice_process_block()
1801 devn = dev_idx - 1; in pcmdevice_process_block()
1802 dev_end = dev_idx; in pcmdevice_process_block()
1868 blk_data[j]->dev_idx, in pcmdevice_select_cfg_blk()
/linux/drivers/misc/
H A Dopen-dice.c116 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 Dllcp_sock.c89 dev = nfc_get_device(llcp_addr.dev_idx); in llcp_sock_bind()
176 dev = nfc_get_device(llcp_addr.dev_idx); in llcp_raw_sock_bind()
524 llcp_addr->dev_idx = llcp_sock->dev->idx; in llcp_sock_getname()
669 pr_debug("addr dev_idx=%u target_idx=%u protocol=%u\n", addr->dev_idx, in llcp_sock_connect()
683 dev = nfc_get_device(addr->dev_idx); in llcp_sock_connect()

123