/kernel/linux/linux-5.10/fs/btrfs/ |
H A D | reada.c | 272 zone->device = dev; /* our device always sits at index 0 */ in reada_find_zone() 312 unsigned long index = logical >> PAGE_SHIFT; in reada_find_extent() local 317 re = radix_tree_lookup(&fs_info->reada_tree, index); in reada_find_extent() 389 ret = radix_tree_insert(&fs_info->reada_tree, index, re); in reada_find_extent() 391 re_exist = radix_tree_lookup(&fs_info->reada_tree, index); in reada_find_extent() 436 ret = radix_tree_insert(&dev->reada_extents, index, re); in reada_find_extent() 442 radix_tree_delete(&dev->reada_extents, index); in reada_find_extent() 444 radix_tree_delete(&fs_info->reada_tree, index); in reada_find_extent() 452 radix_tree_delete(&fs_info->reada_tree, index); in reada_find_extent() 492 unsigned long index in reada_extent_put() local 585 unsigned long index = zone->end >> PAGE_SHIFT; reada_peer_zones_set_lock() local 604 unsigned long index = 0; reada_pick_zone() local 847 unsigned long index; dump_devs() local [all...] |
/kernel/linux/linux-6.6/drivers/hwmon/ |
H A D | hwmon.c | 52 int index; member 66 int index; /* sensor index */ member 162 tdata->index, &t); in hwmon_thermal_get_temp() 189 if (info[i]->config[tdata->index] & HWMON_T_MIN) { in hwmon_thermal_set_trips() 191 hwmon_temp_min, tdata->index, low); in hwmon_thermal_set_trips() 196 if (info[i]->config[tdata->index] & HWMON_T_MAX) { in hwmon_thermal_set_trips() 198 hwmon_temp_max, tdata->index, high); in hwmon_thermal_set_trips() 216 static int hwmon_thermal_add_sensor(struct device *dev, int index) in hwmon_thermal_add_sensor() argument 228 tdata->index in hwmon_thermal_add_sensor() 282 hwmon_thermal_notify(struct device *dev, int index) hwmon_thermal_notify() argument 301 hwmon_thermal_notify(struct device *dev, int index) hwmon_thermal_notify() argument 386 hwmon_genattr(const void *drvdata, enum hwmon_sensor_types type, u32 attr, int index, const char *template, const struct hwmon_ops *ops) hwmon_genattr() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/microchip/wilc1000/ |
H A D | hif.c | 83 /* The idx starts from 0 to (NUM_CONCURRENT_IFC - 1), but 0 index used as 84 * special purpose in wilc device, so we add 1 to the index to starts from 1. 85 * As a result, the returned index will be 1 to NUM_CONCURRENT_IFC. 92 /* We need to minus 1 from idx which is from wilc device to get real index 95 * As a result, the index should be between 0 and (NUM_CONCURRENT_IFC - 1). 99 int index = idx - 1; in wilc_get_vif_from_idx() local 102 if (index < 0 || index >= WILC_NUM_CONCURRENT_IFC) in wilc_get_vif_from_idx() 106 if (vif->idx == index) in wilc_get_vif_from_idx() 157 u32 index in wilc_scan() local 1028 wilc_remove_wep_key(struct wilc_vif *vif, u8 index) wilc_remove_wep_key() argument 1045 wilc_set_wep_default_keyid(struct wilc_vif *vif, u8 index) wilc_set_wep_default_keyid() argument 1062 wilc_add_wep_key_bss_sta(struct wilc_vif *vif, const u8 *key, u8 len, u8 index) wilc_add_wep_key_bss_sta() argument 1091 wilc_add_wep_key_bss_ap(struct wilc_vif *vif, const u8 *key, u8 len, u8 index, u8 mode, enum authtype auth_type) wilc_add_wep_key_bss_ap() argument 1130 wilc_add_ptk(struct wilc_vif *vif, const u8 *ptk, u8 ptk_key_len, const u8 *mac_addr, const u8 *rx_mic, const u8 *tx_mic, u8 mode, u8 cipher_mode, u8 index) wilc_add_ptk() argument 1201 wilc_add_rx_gtk(struct wilc_vif *vif, const u8 *rx_gtk, u8 gtk_key_len, u8 index, u32 key_rsc_len, const u8 *key_rsc, const u8 *rx_mic, const u8 *tx_mic, u8 mode, u8 cipher_mode) wilc_add_rx_gtk() argument 1340 wilc_set_operation_mode(struct wilc_vif *vif, int index, u8 mode, u8 ifc_id) wilc_set_operation_mode() argument [all...] |
/kernel/linux/linux-5.10/fs/xfs/libxfs/ |
H A D | xfs_dir2_leaf.c | 484 int index, in xfs_dir3_leaf_find_stale() 489 * Find the first stale entry before our index, if any. in xfs_dir3_leaf_find_stale() 491 for (*lowstale = index - 1; *lowstale >= 0; --*lowstale) { in xfs_dir3_leaf_find_stale() 498 * Find the first stale entry at or after our index, if any. in xfs_dir3_leaf_find_stale() 502 for (*highstale = index; *highstale < leafhdr->count; ++*highstale) { in xfs_dir3_leaf_find_stale() 506 if (*lowstale >= 0 && index - *lowstale <= *highstale - index) in xfs_dir3_leaf_find_stale() 515 int index, /* leaf table position */ in xfs_dir3_leaf_find_entry() 517 int lowstale, /* index of prev stale leaf */ in xfs_dir3_leaf_find_entry() 518 int highstale, /* index o in xfs_dir3_leaf_find_entry() 481 xfs_dir3_leaf_find_stale( struct xfs_dir3_icleaf_hdr *leafhdr, struct xfs_dir2_leaf_entry *ents, int index, int *lowstale, int *highstale) xfs_dir3_leaf_find_stale() argument 512 xfs_dir3_leaf_find_entry( struct xfs_dir3_icleaf_hdr *leafhdr, struct xfs_dir2_leaf_entry *ents, int index, int compact, int lowstale, int highstale, int *lfloglow, int *lfloghigh) xfs_dir3_leaf_find_entry() argument 628 int index; /* leaf table position */ xfs_dir2_leaf_addname() local 976 int index; /* insertion index */ xfs_dir3_leaf_compact_x1() local 1157 int index; /* found entry index */ xfs_dir2_leaf_lookup() local 1217 int index; /* index in leaf block */ xfs_dir2_leaf_lookup_int() local 1348 int index; /* index into leaf entries */ xfs_dir2_leaf_removename() local 1491 int index; /* index of leaf entry */ xfs_dir2_leaf_replace() local [all...] |
H A D | xfs_attr_leaf.c | 73 STATIC int xfs_attr_leaf_entsize(xfs_attr_leafblock_t *leaf, int index); 954 error = xfs_attr3_leaf_lookup_int(bp, &nargs); /* set a->index */ in xfs_attr_shortform_to_leaf() 1332 * modifies the index/blkno/rmtblk/rmtblkcnt fields to show the in xfs_attr3_leaf_split() 1373 ASSERT(args->index >= 0 && args->index <= ichdr.count); in xfs_attr3_leaf_add() 1454 ASSERT(args->index >= 0 && args->index <= ichdr->count); in xfs_attr3_leaf_add_work() 1459 entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; in xfs_attr3_leaf_add_work() 1460 if (args->index < ichdr->count) { in xfs_attr3_leaf_add_work() 1461 tmp = ichdr->count - args->index; in xfs_attr3_leaf_add_work() 1870 int index; xfs_attr3_leaf_figure_balance() local 2681 xfs_attr_leaf_entsize(xfs_attr_leafblock_t *leaf, int index) xfs_attr_leaf_entsize() argument [all...] |
/kernel/linux/linux-6.6/fs/xfs/libxfs/ |
H A D | xfs_dir2_leaf.c | 493 int index, in xfs_dir3_leaf_find_stale() 498 * Find the first stale entry before our index, if any. in xfs_dir3_leaf_find_stale() 500 for (*lowstale = index - 1; *lowstale >= 0; --*lowstale) { in xfs_dir3_leaf_find_stale() 507 * Find the first stale entry at or after our index, if any. in xfs_dir3_leaf_find_stale() 511 for (*highstale = index; *highstale < leafhdr->count; ++*highstale) { in xfs_dir3_leaf_find_stale() 515 if (*lowstale >= 0 && index - *lowstale <= *highstale - index) in xfs_dir3_leaf_find_stale() 524 int index, /* leaf table position */ in xfs_dir3_leaf_find_entry() 526 int lowstale, /* index of prev stale leaf */ in xfs_dir3_leaf_find_entry() 527 int highstale, /* index o in xfs_dir3_leaf_find_entry() 490 xfs_dir3_leaf_find_stale( struct xfs_dir3_icleaf_hdr *leafhdr, struct xfs_dir2_leaf_entry *ents, int index, int *lowstale, int *highstale) xfs_dir3_leaf_find_stale() argument 521 xfs_dir3_leaf_find_entry( struct xfs_dir3_icleaf_hdr *leafhdr, struct xfs_dir2_leaf_entry *ents, int index, int compact, int lowstale, int highstale, int *lfloglow, int *lfloghigh) xfs_dir3_leaf_find_entry() argument 637 int index; /* leaf table position */ xfs_dir2_leaf_addname() local 985 int index; /* insertion index */ xfs_dir3_leaf_compact_x1() local 1166 int index; /* found entry index */ xfs_dir2_leaf_lookup() local 1226 int index; /* index in leaf block */ xfs_dir2_leaf_lookup_int() local 1357 int index; /* index into leaf entries */ xfs_dir2_leaf_removename() local 1500 int index; /* index of leaf entry */ xfs_dir2_leaf_replace() local [all...] |
H A D | xfs_attr_leaf.c | 75 STATIC int xfs_attr_leaf_entsize(xfs_attr_leafblock_t *leaf, int index); 987 error = xfs_attr3_leaf_lookup_int(bp, &nargs); /* set a->index */ in xfs_attr_shortform_to_leaf() 1377 * modifies the index/blkno/rmtblk/rmtblkcnt fields to show the in xfs_attr3_leaf_split() 1418 ASSERT(args->index >= 0 && args->index <= ichdr.count); in xfs_attr3_leaf_add() 1499 ASSERT(args->index >= 0 && args->index <= ichdr->count); in xfs_attr3_leaf_add_work() 1504 entry = &xfs_attr3_leaf_entryp(leaf)[args->index]; in xfs_attr3_leaf_add_work() 1505 if (args->index < ichdr->count) { in xfs_attr3_leaf_add_work() 1506 tmp = ichdr->count - args->index; in xfs_attr3_leaf_add_work() 1916 int index; xfs_attr3_leaf_figure_balance() local 2725 xfs_attr_leaf_entsize(xfs_attr_leafblock_t *leaf, int index) xfs_attr_leaf_entsize() argument [all...] |
/kernel/linux/linux-5.10/net/sched/ |
H A D | sch_qfq.c | 59 QFQ_MAX_INDEX is the maximum index allowed for a group. We need 60 one bit per index. 67 ^.__grp->index = 0 72 The max group index corresponds to Lmax/w_min, where 99 * group with the smallest index that can support the L_i / r_i configured 102 * grp->index is the index of the group; and grp->slot_shift 148 /* group we belong to. In principle we would need the index, 172 unsigned int index; /* Group index member 237 int index = 0; qfq_calc_index() local 740 int index = __ffs(bitmap); qfq_ffs() local 784 qfq_unblock_groups(struct qfq_sched *q, int index, u64 old_F) qfq_unblock_groups() argument [all...] |
/kernel/linux/linux-6.6/drivers/phy/tegra/ |
H A D | xusb.c | 101 tegra_xusb_pad_find_phy_node(struct tegra_xusb_pad *pad, unsigned int index) in tegra_xusb_pad_find_phy_node() argument 109 np = of_get_child_by_name(lanes, pad->soc->lanes[index].name); in tegra_xusb_pad_find_phy_node() 401 unsigned int index) in tegra_xusb_find_lane() 406 name = kasprintf(GFP_KERNEL, "%s-%u", type, index); in tegra_xusb_find_lane() 429 if (port->index != map->port) in tegra_xusb_port_find_lane() 433 map->index); in tegra_xusb_port_find_lane() 442 map->type, map->index, match->soc->name); in tegra_xusb_port_find_lane() 452 unsigned int index) in tegra_xusb_find_port_node() 461 name = kasprintf(GFP_KERNEL, "%s-%u", type, index); in tegra_xusb_find_port_node() 475 unsigned int index) in tegra_xusb_find_port() 399 tegra_xusb_find_lane(struct tegra_xusb_padctl *padctl, const char *type, unsigned int index) tegra_xusb_find_lane() argument 451 tegra_xusb_find_port_node(struct tegra_xusb_padctl *padctl, const char *type, unsigned int index) tegra_xusb_find_port_node() argument 474 tegra_xusb_find_port(struct tegra_xusb_padctl *padctl, const char *type, unsigned int index) tegra_xusb_find_port() argument 497 tegra_xusb_find_usb2_port(struct tegra_xusb_padctl *padctl, unsigned int index) tegra_xusb_find_usb2_port() argument 509 tegra_xusb_find_usb3_port(struct tegra_xusb_padctl *padctl, unsigned int index) tegra_xusb_find_usb3_port() argument 532 tegra_xusb_port_init(struct tegra_xusb_port *port, struct tegra_xusb_padctl *padctl, struct device_node *np, const char *name, unsigned int index) tegra_xusb_port_init() argument 782 tegra_xusb_add_usb2_port(struct tegra_xusb_padctl *padctl, unsigned int index) tegra_xusb_add_usb2_port() argument 853 tegra_xusb_add_ulpi_port(struct tegra_xusb_padctl *padctl, unsigned int index) tegra_xusb_add_ulpi_port() argument 909 tegra_xusb_add_hsic_port(struct tegra_xusb_padctl *padctl, unsigned int index) tegra_xusb_add_hsic_port() argument 989 tegra_xusb_add_usb3_port(struct tegra_xusb_padctl *padctl, unsigned int index) tegra_xusb_add_usb3_port() argument [all...] |
/kernel/linux/linux-6.6/net/sched/ |
H A D | sch_qfq.c | 59 QFQ_MAX_INDEX is the maximum index allowed for a group. We need 60 one bit per index. 67 ^.__grp->index = 0 72 The max group index corresponds to Lmax/w_min, where 99 * group with the smallest index that can support the L_i / r_i configured 102 * grp->index is the index of the group; and grp->slot_shift 146 /* group we belong to. In principle we would need the index, 170 unsigned int index; /* Group index member 235 int index = 0; qfq_calc_index() local 735 int index = __ffs(bitmap); qfq_ffs() local 779 qfq_unblock_groups(struct qfq_sched *q, int index, u64 old_F) qfq_unblock_groups() argument [all...] |
/kernel/linux/linux-5.10/drivers/media/usb/uvc/ |
H A D | uvc_ctrl.c | 41 .index = 0, 50 .index = 1, 59 .index = 2, 69 .index = 3, 78 .index = 4, 87 .index = 5, 96 .index = 6, 106 .index = 7, 116 .index = 8, 125 .index 1151 u32 index = query_menu->index; uvc_query_v4l2_menu() local 2185 u8 index; uvc_ctrl_prune_entity() member [all...] |
/kernel/linux/linux-5.10/drivers/clk/tegra/ |
H A D | clk-tegra20-emc.c | 72 static int emc_set_parent(struct clk_hw *hw, u8 index) in emc_set_parent() argument 79 val |= index << CLK_SOURCE_EMC_2X_CLK_SRC_SHIFT; in emc_set_parent() 83 if (index == EMC_SRC_PLL_M && div == 0 && emc->want_low_jitter) in emc_set_parent() 104 unsigned int index; in emc_set_rate() local 113 index = val >> CLK_SOURCE_EMC_2X_CLK_SRC_SHIFT; in emc_set_rate() 115 if (index == EMC_SRC_PLL_M && div == 0 && emc->want_low_jitter) in emc_set_rate() 135 u8 index) in emc_set_rate_and_parent() 145 val |= index << CLK_SOURCE_EMC_2X_CLK_SRC_SHIFT; in emc_set_rate_and_parent() 150 if (index == EMC_SRC_PLL_M && div == 0 && emc->want_low_jitter) in emc_set_rate_and_parent() 132 emc_set_rate_and_parent(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate, u8 index) emc_set_rate_and_parent() argument
|
/kernel/linux/linux-5.10/arch/arm/mach-omap2/ |
H A D | cm_common.c | 236 .index = TI_CLKM_CM, 241 .index = TI_CLKM_CM2, 248 .index = TI_CLKM_CM, 256 .index = TI_CLKM_CM, 270 .index = TI_CLKM_CM, 278 .index = TI_CLKM_CM, 339 if (data->index == TI_CLKM_CM) in omap2_cm_base_init() 342 if (data->index == TI_CLKM_CM2) in omap2_cm_base_init() 382 ret = omap2_clk_provider_init(np, data->index, NULL, data->mem); in omap_cm_init()
|
H A D | cpuidle34xx.c | 105 * @index: the index of state to be entered 109 int index) in omap3_enter_idle() 111 struct omap3_idle_statedata *cx = &omap3_idle_data[index]; in omap3_enter_idle() 153 return index; in omap3_enter_idle() 160 * @index: Index of currently selected c-state 162 * If the state corresponding to index is valid, index is returned back 164 * still valid (as defined in omap3_power_states[]) and returns its index. 170 struct cpuidle_driver *drv, int index) in next_valid_state() 107 omap3_enter_idle(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index) omap3_enter_idle() argument 169 next_valid_state(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index) next_valid_state() argument 219 omap3_enter_idle_bm(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index) omap3_enter_idle_bm() argument [all...] |
/kernel/linux/linux-5.10/drivers/char/hw_random/ |
H A D | virtio-rng.c | 23 int index; member 131 int err, index; in probe_common() local 138 vi->index = index = ida_simple_get(&rng_index_ida, 0, 0, GFP_KERNEL); in probe_common() 139 if (index < 0) { in probe_common() 140 err = index; in probe_common() 143 sprintf(vi->name, "virtio_rng.%d", index); in probe_common() 168 ida_simple_remove(&rng_index_ida, index); in probe_common() 186 ida_simple_remove(&rng_index_ida, vi->index); in remove_common()
|
/kernel/linux/linux-6.6/arch/arm/mach-omap2/ |
H A D | cm_common.c | 223 .index = TI_CLKM_CM, 228 .index = TI_CLKM_CM2, 235 .index = TI_CLKM_CM, 243 .index = TI_CLKM_CM, 257 .index = TI_CLKM_CM, 265 .index = TI_CLKM_CM, 328 if (data->index == TI_CLKM_CM) in omap2_cm_base_init() 331 if (data->index == TI_CLKM_CM2) in omap2_cm_base_init() 371 ret = omap2_clk_provider_init(np, data->index, NULL, data->mem); in omap_cm_init()
|
H A D | cpuidle34xx.c | 105 * @index: the index of state to be entered 109 int index) in omap3_enter_idle() 111 struct omap3_idle_statedata *cx = &omap3_idle_data[index]; in omap3_enter_idle() 153 return index; in omap3_enter_idle() 160 * @index: Index of currently selected c-state 162 * If the state corresponding to index is valid, index is returned back 164 * still valid (as defined in omap3_power_states[]) and returns its index. 170 struct cpuidle_driver *drv, int index) in next_valid_state() 107 omap3_enter_idle(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index) omap3_enter_idle() argument 169 next_valid_state(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index) next_valid_state() argument 219 omap3_enter_idle_bm(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index) omap3_enter_idle_bm() argument [all...] |
/kernel/linux/linux-5.10/drivers/input/serio/ |
H A D | arc_ps2.c | 126 int index, bool status) in arc_ps2_calc_addr() 130 addr = arc_ps2->addr + 4 + 4 * index; in arc_ps2_calc_addr() 153 int index) in arc_ps2_create_port() 155 struct arc_ps2_port *port = &arc_ps2->port[index]; in arc_ps2_create_port() 166 snprintf(io->name, sizeof(io->name), "ARC PS/2 port%d", index); in arc_ps2_create_port() 167 snprintf(io->phys, sizeof(io->phys), "arc/serio%d", index); in arc_ps2_create_port() 172 port->data_addr = arc_ps2_calc_addr(arc_ps2, index, false); in arc_ps2_create_port() 173 port->status_addr = arc_ps2_calc_addr(arc_ps2, index, true); in arc_ps2_create_port() 176 index, port->data_addr, port->status_addr); in arc_ps2_create_port() 125 arc_ps2_calc_addr(struct arc_ps2_data *arc_ps2, int index, bool status) arc_ps2_calc_addr() argument 151 arc_ps2_create_port(struct platform_device *pdev, struct arc_ps2_data *arc_ps2, int index) arc_ps2_create_port() argument
|
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/enetc/ |
H A D | enetc_cbdr.c | 77 int enetc_clear_mac_flt_entry(struct enetc_si *si, int index) in enetc_clear_mac_flt_entry() argument 85 cbd.index = cpu_to_le16(index); in enetc_clear_mac_flt_entry() 90 int enetc_set_mac_flt_entry(struct enetc_si *si, int index, in enetc_set_mac_flt_entry() argument 102 cbd.index = cpu_to_le16(index); in enetc_set_mac_flt_entry() 118 int index) in enetc_set_fs_entry() 128 cbd.index = cpu_to_le16(index); in enetc_set_fs_entry() 117 enetc_set_fs_entry(struct enetc_si *si, struct enetc_cmd_rfse *rfse, int index) enetc_set_fs_entry() argument
|
/kernel/linux/linux-5.10/drivers/net/ethernet/cisco/enic/ |
H A D | vnic_rq.c | 46 buf->index = i * VNIC_RQ_BUF_BLK_ENTRIES(count) + j; in vnic_rq_alloc_bufs() 48 rq->ring.desc_size * buf->index; in vnic_rq_alloc_bufs() 49 if (buf->index + 1 == count) { in vnic_rq_alloc_bufs() 85 int vnic_rq_alloc(struct vnic_dev *vdev, struct vnic_rq *rq, unsigned int index, in vnic_rq_alloc() argument 90 rq->index = index; in vnic_rq_alloc() 93 rq->ctrl = vnic_dev_get_res(vdev, RES_TYPE_RQ, index); in vnic_rq_alloc() 95 vdev_err(vdev, "Failed to hook RQ[%d] resource\n", index); in vnic_rq_alloc() 175 rq->index); in vnic_rq_disable()
|
/kernel/linux/linux-5.10/drivers/soc/amlogic/ |
H A D | meson-secure-pwrc.c | 22 unsigned int index; member 33 unsigned int index; member 49 pwrc_domain->index, 0, 0, 0, 0) < 0) in pwrc_secure_is_off() 62 pwrc_domain->index, PWRC_OFF, 0, 0, 0) < 0) { in meson_secure_pwrc_off() 77 pwrc_domain->index, PWRC_ON, 0, 0, 0) < 0) { in meson_secure_pwrc_on() 89 .index = PWRC_##__name##_ID, \ 168 if (!match->domains[i].index) in meson_secure_pwrc_probe() 172 dom->index = match->domains[i].index; in meson_secure_pwrc_probe()
|
/kernel/linux/linux-5.10/drivers/scsi/fnic/ |
H A D | vnic_rq.c | 44 buf->index = i * VNIC_RQ_BUF_BLK_ENTRIES + j; in vnic_rq_alloc_bufs() 46 rq->ring.desc_size * buf->index; in vnic_rq_alloc_bufs() 47 if (buf->index + 1 == count) { in vnic_rq_alloc_bufs() 82 int vnic_rq_alloc(struct vnic_dev *vdev, struct vnic_rq *rq, unsigned int index, in vnic_rq_alloc() argument 87 rq->index = index; in vnic_rq_alloc() 90 rq->ctrl = vnic_dev_get_res(vdev, RES_TYPE_RQ, index); in vnic_rq_alloc() 92 printk(KERN_ERR "Failed to hook RQ[%d] resource\n", index); in vnic_rq_alloc() 160 printk(KERN_ERR "Failed to disable RQ[%d]\n", rq->index); in vnic_rq_disable()
|
/kernel/linux/linux-5.10/drivers/scsi/qla4xxx/ |
H A D | ql4_nvram.c | 162 int index = 0; in rd_nvram_byte() local 165 index = (offset - 1) / 2; in rd_nvram_byte() 167 index = offset / 2; in rd_nvram_byte() 169 val = le16_to_cpu(rd_nvram_word(ha, index)); in rd_nvram_byte() 183 uint32_t index; in qla4xxx_is_nvram_configuration_valid() local 187 for (index = 0; index < eeprom_size(ha); index++) in qla4xxx_is_nvram_configuration_valid() 188 checksum += rd_nvram_word(ha, index); in qla4xxx_is_nvram_configuration_valid()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/cisco/enic/ |
H A D | vnic_rq.c | 33 buf->index = i * VNIC_RQ_BUF_BLK_ENTRIES(count) + j; in vnic_rq_alloc_bufs() 35 rq->ring.desc_size * buf->index; in vnic_rq_alloc_bufs() 36 if (buf->index + 1 == count) { in vnic_rq_alloc_bufs() 72 int vnic_rq_alloc(struct vnic_dev *vdev, struct vnic_rq *rq, unsigned int index, in vnic_rq_alloc() argument 77 rq->index = index; in vnic_rq_alloc() 80 rq->ctrl = vnic_dev_get_res(vdev, RES_TYPE_RQ, index); in vnic_rq_alloc() 82 vdev_err(vdev, "Failed to hook RQ[%d] resource\n", index); in vnic_rq_alloc() 162 rq->index); in vnic_rq_disable()
|
/kernel/linux/linux-6.6/drivers/virtio/ |
H A D | virtio_pci_legacy.c | 112 unsigned int index, in setup_vq() 124 num = vp_legacy_get_queue_size(&vp_dev->ldev, index); in setup_vq() 125 if (!num || vp_legacy_get_queue_enable(&vp_dev->ldev, index)) in setup_vq() 131 vq = vring_create_virtqueue(index, num, in setup_vq() 150 vp_legacy_set_queue_address(&vp_dev->ldev, index, q_pfn); in setup_vq() 155 msix_vec = vp_legacy_queue_vector(&vp_dev->ldev, index, msix_vec); in setup_vq() 165 vp_legacy_set_queue_address(&vp_dev->ldev, index, 0); in setup_vq() 177 vp_legacy_queue_vector(&vp_dev->ldev, vq->index, in del_vq() 184 vp_legacy_set_queue_address(&vp_dev->ldev, vq->index, 0); in del_vq() 110 setup_vq(struct virtio_pci_device *vp_dev, struct virtio_pci_vq_info *info, unsigned int index, void (*callback)(struct virtqueue *vq), const char *name, bool ctx, u16 msix_vec) setup_vq() argument
|