/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | core_acl_flex_keys.c | 169 int block_index) in mlxsw_afk_picker_subtract_hits() argument 175 memcpy(&hits_element, &picker[block_index].element, in mlxsw_afk_picker_subtract_hits() 204 int block_index, in mlxsw_afk_picker_key_info_add() argument 212 for_each_set_bit(element, picker[block_index].element, in mlxsw_afk_picker_key_info_add() 219 &mlxsw_afk->blocks[block_index]; in mlxsw_afk_picker_key_info_add() 253 int block_index; in mlxsw_afk_picker() local 255 block_index = mlxsw_afk_picker_most_hits_get(mlxsw_afk, picker); in mlxsw_afk_picker() 256 if (block_index < 0) { in mlxsw_afk_picker() 257 err = block_index; in mlxsw_afk_picker() 261 block_index, key_info); in mlxsw_afk_picker() [all …]
|
H A D | spectrum_acl_flex_keys.c | 103 static void mlxsw_sp1_afk_encode_block(char *output, int block_index, in mlxsw_sp1_afk_encode_block() argument 106 unsigned int offset = block_index * MLXSW_SP1_AFK_KEY_BLOCK_SIZE; in mlxsw_sp1_afk_encode_block() 112 static void mlxsw_sp1_afk_clear_block(char *output, int block_index) in mlxsw_sp1_afk_clear_block() argument 114 unsigned int offset = block_index * MLXSW_SP1_AFK_KEY_BLOCK_SIZE; in mlxsw_sp1_afk_clear_block() 288 static void __mlxsw_sp2_afk_block_value_set(char *output, int block_index, in __mlxsw_sp2_afk_block_value_set() argument 293 if (WARN_ON(block_index < 0 || in __mlxsw_sp2_afk_block_value_set() 294 block_index >= ARRAY_SIZE(mlxsw_sp2_afk_blocks_layout))) in __mlxsw_sp2_afk_block_value_set() 297 block_layout = &mlxsw_sp2_afk_blocks_layout[block_index]; in __mlxsw_sp2_afk_block_value_set() 302 static void mlxsw_sp2_afk_encode_block(char *output, int block_index, in mlxsw_sp2_afk_encode_block() argument 307 __mlxsw_sp2_afk_block_value_set(output, block_index, block_value); in mlxsw_sp2_afk_encode_block() [all …]
|
H A D | core_acl_flex_keys.h | 190 void (*encode_block)(char *output, int block_index, char *block); 191 void (*clear_block)(char *output, int block_index); 209 int block_index);
|
/openbmc/linux/net/sched/ |
H A D | sch_ingress.c | 63 static void ingress_ingress_block_set(struct Qdisc *sch, u32 block_index) in ingress_ingress_block_set() argument 67 q->block_info.block_index = block_index; in ingress_ingress_block_set() 74 return q->block_info.block_index; in ingress_ingress_block_get() 213 static void clsact_ingress_block_set(struct Qdisc *sch, u32 block_index) in clsact_ingress_block_set() argument 217 q->ingress_block_info.block_index = block_index; in clsact_ingress_block_set() 220 static void clsact_egress_block_set(struct Qdisc *sch, u32 block_index) in clsact_egress_block_set() argument 224 q->egress_block_info.block_index = block_index; in clsact_egress_block_set() 231 return q->ingress_block_info.block_index; in clsact_ingress_block_get() 238 return q->egress_block_info.block_index; in clsact_egress_block_get()
|
H A D | cls_api.c | 985 u32 block_index, in tcf_block_create() argument 1005 block->index = block_index; in tcf_block_create() 1013 static struct tcf_block *tcf_block_lookup(struct net *net, u32 block_index) in tcf_block_lookup() argument 1017 return idr_find(&tn->idr, block_index); in tcf_block_lookup() 1020 static struct tcf_block *tcf_block_refcnt_get(struct net *net, u32 block_index) in tcf_block_refcnt_get() argument 1025 block = tcf_block_lookup(net, block_index); in tcf_block_refcnt_get() 1246 u32 block_index, in __tcf_block_find() argument 1252 block = tcf_block_refcnt_get(net, block_index); in __tcf_block_find() 1320 int ifindex, u32 block_index, in tcf_block_find() argument 1336 block = __tcf_block_find(net, *q, *cl, ifindex, block_index, extack); in tcf_block_find() [all …]
|
H A D | sch_api.c | 922 u32 block_index; in tc_fill_qdisc() local 940 block_index = q->ops->ingress_block_get(q); in tc_fill_qdisc() 941 if (block_index && in tc_fill_qdisc() 942 nla_put_u32(skb, TCA_INGRESS_BLOCK, block_index)) in tc_fill_qdisc() 946 block_index = q->ops->egress_block_get(q); in tc_fill_qdisc() 947 if (block_index && in tc_fill_qdisc() 948 nla_put_u32(skb, TCA_EGRESS_BLOCK, block_index)) in tc_fill_qdisc() 1191 u32 block_index; in qdisc_block_indexes_set() local 1194 block_index = nla_get_u32(tca[TCA_INGRESS_BLOCK]); in qdisc_block_indexes_set() 1196 if (!block_index) { in qdisc_block_indexes_set() [all …]
|
/openbmc/libcper/ |
H A D | base64.c | 98 INT32 block_index; in base64_decode() local 113 block_index = 0; in base64_decode() 125 block[block_index] = tmp; in base64_decode() 126 block_index++; in base64_decode() 127 if (block_index == 4) { in base64_decode() 143 block_index = 0; in base64_decode()
|
/openbmc/linux/drivers/crypto/hisilicon/ |
H A D | sgl.c | 162 u32 block_index, offset; in acc_get_sgl() local 168 block_index = index / pool->sgl_num_per_block; in acc_get_sgl() 171 *hw_sgl_dma = block[block_index].sgl_dma + pool->sgl_size * offset; in acc_get_sgl() 172 return (void *)block[block_index].sgl + pool->sgl_size * offset; in acc_get_sgl()
|
/openbmc/qemu/block/ |
H A D | vdi.c | 557 uint32_t block_index; in vdi_co_preadv() local 568 block_index = offset / s->block_size; in vdi_co_preadv() 577 bmap_entry = le32_to_cpu(s->bmap[block_index]); in vdi_co_preadv() 613 uint32_t block_index; in vdi_co_pwritev() local 628 block_index = offset / s->block_size; in vdi_co_pwritev() 637 bmap_entry = le32_to_cpu(s->bmap[block_index]); in vdi_co_pwritev() 641 bmap_entry = le32_to_cpu(s->bmap[block_index]); in vdi_co_pwritev() 649 s->bmap[block_index] = cpu_to_le32(bmap_entry); in vdi_co_pwritev() 655 bmap_first = block_index; in vdi_co_pwritev() 657 bmap_last = block_index; in vdi_co_pwritev()
|
H A D | qcow2-refcount.c | 251 uint64_t refcount_table_index, block_index; in qcow2_get_refcount() local 281 block_index = cluster_index & (s->refcount_block_size - 1); in qcow2_get_refcount() 282 *refcount = s->get_refcount(refcount_block, block_index); in qcow2_get_refcount() 402 int block_index = (new_block >> s->cluster_bits) & in alloc_refcount_block() local 404 s->set_refcount(*refcount_block, block_index, 1); in alloc_refcount_block() 841 int block_index; in update_refcount() local 868 block_index = cluster_index & (s->refcount_block_size - 1); in update_refcount() 870 refcount = s->get_refcount(refcount_block, block_index); in update_refcount() 886 s->set_refcount(refcount_block, block_index, refcount); in update_refcount() 3576 uint32_t block_index = cluster_index & (s->refcount_block_size - 1); in qcow2_discard_refcount_block() local [all …]
|
/openbmc/u-boot/fs/yaffs2/ |
H A D | yaffs_yaffs2.c | 1355 struct yaffs_block_index *block_index = NULL; in yaffs2_scan_backwards() local 1365 block_index = in yaffs2_scan_backwards() 1368 if (!block_index) { in yaffs2_scan_backwards() 1369 block_index = in yaffs2_scan_backwards() 1374 if (!block_index) { in yaffs2_scan_backwards() 1422 block_index[n_to_scan].seq = seq_number; in yaffs2_scan_backwards() 1423 block_index[n_to_scan].block = blk; in yaffs2_scan_backwards() 1442 sort(block_index, n_to_scan, sizeof(struct yaffs_block_index), in yaffs2_scan_backwards() 1463 blk = block_index[block_iter].block; in yaffs2_scan_backwards() 1507 vfree(block_index); in yaffs2_scan_backwards() [all …]
|
/openbmc/linux/drivers/md/persistent-data/ |
H A D | dm-array.c | 351 unsigned int block_index, uint32_t nr, in insert_new_ablock() argument 363 r = insert_ablock(info, block_index, block, root); in insert_new_ablock() 737 unsigned int block_index, end_block, size_of_block, max_entries; in dm_array_new() local 747 for (block_index = 0; block_index != end_block; block_index++) { in dm_array_new() 753 block_index * max_entries, in dm_array_new() 760 r = insert_ablock(info, block_index, block, root); in dm_array_new()
|
/openbmc/linux/drivers/net/ethernet/broadcom/asp2/ |
H A D | bcmasp.c | 175 u32 block_index, filter_sel; in bcmasp_netfilt_get_reg_offset() local 178 block_index = ASP_RX_FILTER_NET_L2; in bcmasp_netfilt_get_reg_offset() 181 block_index = ASP_RX_FILTER_NET_L2; in bcmasp_netfilt_get_reg_offset() 184 block_index = ASP_RX_FILTER_NET_L3_0; in bcmasp_netfilt_get_reg_offset() 187 block_index = ASP_RX_FILTER_NET_L3_0; in bcmasp_netfilt_get_reg_offset() 190 block_index = ASP_RX_FILTER_NET_L3_1; in bcmasp_netfilt_get_reg_offset() 193 block_index = ASP_RX_FILTER_NET_L3_1; in bcmasp_netfilt_get_reg_offset() 196 block_index = ASP_RX_FILTER_NET_L4; in bcmasp_netfilt_get_reg_offset() 199 block_index = ASP_RX_FILTER_NET_L4; in bcmasp_netfilt_get_reg_offset() 207 return ASP_RX_FILTER_NET_PAT(filter_sel, block_index, in bcmasp_netfilt_get_reg_offset() [all …]
|
/openbmc/linux/drivers/net/ethernet/neterion/ |
H A D | s2io.h | 634 u32 block_index; member 640 u32 block_index; member
|
H A D | s2io.c | 721 ring->rx_curr_get_info.block_index = 0; in init_shared_mem() 724 ring->rx_curr_put_info.block_index = 0; in init_shared_mem() 2471 block_no1 = ring->rx_curr_get_info.block_index; in fill_rx_buffers() 2473 block_no = ring->rx_curr_put_info.block_index; in fill_rx_buffers() 2487 ring->rx_curr_put_info.block_index++; in fill_rx_buffers() 2488 if (ring->rx_curr_put_info.block_index == in fill_rx_buffers() 2490 ring->rx_curr_put_info.block_index = 0; in fill_rx_buffers() 2491 block_no = ring->rx_curr_put_info.block_index; in fill_rx_buffers() 2728 ring->rx_curr_put_info.block_index = 0; in free_rx_buffers() 2729 ring->rx_curr_get_info.block_index = 0; in free_rx_buffers() [all …]
|
/openbmc/linux/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_int.c | 79 enum block_id block_index; member 941 if (p_aeu->block_index != MAX_BLOCK_ID) in qed_int_deassertion_aeu_bit() 942 qed_int_attn_print(p_hwfn, p_aeu->block_index, in qed_int_deassertion_aeu_bit() 982 u32 block_id = p_aeu->block_index, mask, val; in qed_int_deassertion_parity()
|
/openbmc/linux/include/net/ |
H A D | sch_generic.h | 319 u32 block_index); 321 u32 block_index);
|
H A D | pkt_cls.h | 32 u32 block_index; member
|
/openbmc/linux/drivers/usb/atm/ |
H A D | ueagle-atm.c | 331 struct block_index { struct 352 struct block_index page_header[E4_NO_SWAPPAGE_HEADERS]; argument 787 struct block_index *blockidx; in check_dsp_e4() 978 struct block_index *blockidx; in __uea_load_page_e4()
|
/openbmc/qemu/migration/ |
H A D | rdma.c | 1239 uint64_t *block_index, in qemu_rdma_search_ram_block() argument 1249 *block_index = block->index; in qemu_rdma_search_ram_block()
|