Home
last modified time | relevance | path

Searched refs:block (Results 1 – 25 of 1526) sorted by relevance

12345678910>>...62

/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_flow.c16 static int prestera_flow_block_mall_cb(struct prestera_flow_block *block, in prestera_flow_block_mall_cb() argument
21 return prestera_mall_replace(block, f); in prestera_flow_block_mall_cb()
23 prestera_mall_destroy(block); in prestera_flow_block_mall_cb()
30 static int prestera_flow_block_flower_cb(struct prestera_flow_block *block, in prestera_flow_block_flower_cb() argument
35 return prestera_flower_replace(block, f); in prestera_flow_block_flower_cb()
37 prestera_flower_destroy(block, f); in prestera_flow_block_flower_cb()
40 return prestera_flower_stats(block, f); in prestera_flow_block_flower_cb()
42 return prestera_flower_tmplt_create(block, f); in prestera_flow_block_flower_cb()
44 prestera_flower_tmplt_destroy(block, f); in prestera_flow_block_flower_cb()
54 struct prestera_flow_block *block = cb_priv; in prestera_flow_block_cb() local
[all …]
H A Dprestera_matchall.c14 static int prestera_mall_prio_check(struct prestera_flow_block *block, in prestera_mall_prio_check() argument
21 err = prestera_flower_prio_get(block, f->common.chain_index, in prestera_mall_prio_check()
32 if (f->common.prio <= flower_prio_max && !block->ingress) { in prestera_mall_prio_check()
36 if (f->common.prio >= flower_prio_min && block->ingress) { in prestera_mall_prio_check()
44 int prestera_mall_prio_get(struct prestera_flow_block *block, in prestera_mall_prio_get() argument
47 if (!block->mall.bound) in prestera_mall_prio_get()
50 *prio_min = block->mall.prio_min; in prestera_mall_prio_get()
51 *prio_max = block->mall.prio_max; in prestera_mall_prio_get()
55 static void prestera_mall_prio_update(struct prestera_flow_block *block, in prestera_mall_prio_update() argument
58 block->mall.prio_min = min(block->mall.prio_min, f->common.prio); in prestera_mall_prio_update()
[all …]
/linux/drivers/iio/buffer/
H A Dindustrialio-buffer-dma.c99 struct iio_dma_buffer_block *block = container_of(kref, in iio_buffer_block_release() local
101 struct iio_dma_buffer_queue *queue = block->queue; in iio_buffer_block_release()
103 WARN_ON(block->fileio && block->state != IIO_BLOCK_STATE_DEAD); in iio_buffer_block_release()
105 if (block->fileio) { in iio_buffer_block_release()
106 dma_free_coherent(queue->dev, PAGE_ALIGN(block->size), in iio_buffer_block_release()
107 block->vaddr, block->phys_addr); in iio_buffer_block_release()
113 kfree(block); in iio_buffer_block_release()
116 static void iio_buffer_block_get(struct iio_dma_buffer_block *block) in iio_buffer_block_get() argument
118 kref_get(&block->kref); in iio_buffer_block_get()
121 static void iio_buffer_block_put(struct iio_dma_buffer_block *block) in iio_buffer_block_put() argument
[all …]
/linux/fs/lockd/
H A Dsvclock.c42 static void nlmsvc_release_block(struct nlm_block *block);
43 static void nlmsvc_insert_block(struct nlm_block *block, unsigned long);
44 static void nlmsvc_remove_block(struct nlm_block *block);
89 nlmsvc_insert_block_locked(struct nlm_block *block, unsigned long when) in nlmsvc_insert_block_locked() argument
94 dprintk("lockd: nlmsvc_insert_block(%p, %ld)\n", block, when); in nlmsvc_insert_block_locked()
95 if (list_empty(&block->b_list)) { in nlmsvc_insert_block_locked()
96 kref_get(&block->b_count); in nlmsvc_insert_block_locked()
98 list_del_init(&block->b_list); in nlmsvc_insert_block_locked()
115 list_add_tail(&block->b_list, pos); in nlmsvc_insert_block_locked()
116 block->b_when = when; in nlmsvc_insert_block_locked()
[all …]
H A Dclntlock.c88 void nlmclnt_prepare_block(struct nlm_wait *block, struct nlm_host *host, struct file_lock *fl) in nlmclnt_prepare_block() argument
90 block->b_host = host; in nlmclnt_prepare_block()
91 block->b_lock = fl; in nlmclnt_prepare_block()
92 init_waitqueue_head(&block->b_wait); in nlmclnt_prepare_block()
93 block->b_status = nlm_lck_blocked; in nlmclnt_prepare_block()
105 void nlmclnt_queue_block(struct nlm_wait *block) in nlmclnt_queue_block() argument
108 list_add(&block->b_list, &nlm_blocked); in nlmclnt_queue_block()
115 __be32 nlmclnt_dequeue_block(struct nlm_wait *block) in nlmclnt_dequeue_block() argument
120 list_del(&block->b_list); in nlmclnt_dequeue_block()
121 status = block->b_status; in nlmclnt_dequeue_block()
[all …]
/linux/drivers/gpio/
H A Dgpio-sch311x.c134 struct sch311x_gpio_block *block = gpiochip_get_data(chip); in sch311x_gpio_request() local
136 if (block->config_regs[offset] == 0) /* GPIO is not available */ in sch311x_gpio_request()
139 if (!request_region(block->runtime_reg + block->config_regs[offset], in sch311x_gpio_request()
142 block->runtime_reg + block->config_regs[offset]); in sch311x_gpio_request()
150 struct sch311x_gpio_block *block = gpiochip_get_data(chip); in sch311x_gpio_free() local
152 if (block->config_regs[offset] == 0) /* GPIO is not available */ in sch311x_gpio_free()
155 release_region(block->runtime_reg + block->config_regs[offset], 1); in sch311x_gpio_free()
160 struct sch311x_gpio_block *block = gpiochip_get_data(chip); in sch311x_gpio_get() local
163 spin_lock(&block->lock); in sch311x_gpio_get()
164 data = inb(block->runtime_reg + block->data_reg); in sch311x_gpio_get()
[all …]
/linux/drivers/mtd/
H A Dnftlmount.c28 unsigned int block, boot_record_count = 0; in find_boot_record() local
48 for (block = 0; block < nftl->nb_blocks; block++) { in find_boot_record()
53 ret = mtd_read(mtd, block * nftl->EraseSize, SECTORSIZE, in find_boot_record()
62 block * nftl->EraseSize, nftl->mbd.mtd->index, ret); in find_boot_record()
73 block * nftl->EraseSize, nftl->mbd.mtd->index); in find_boot_record()
79 ret = nftl_read_oob(mtd, block * nftl->EraseSize + in find_boot_record()
84 block * nftl->EraseSize, nftl->mbd.mtd->index, ret); in find_boot_record()
94 block * nftl->EraseSize, nftl->mbd.mtd->index, in find_boot_record()
100 ret = mtd->read(mtd, block * nftl->EraseSize, SECTORSIZE, in find_boot_record()
104 block * nftl->EraseSize, nftl->mbd.mtd->index, ret); in find_boot_record()
[all …]
H A Dinftlmount.c35 unsigned int i, block; in find_boot_record() local
55 for (block = 0; block < inftl->nb_blocks; block++) { in find_boot_record()
62 ret = mtd_read(mtd, block * inftl->EraseSize, SECTORSIZE, in find_boot_record()
72 block * inftl->EraseSize, in find_boot_record()
89 block * inftl->EraseSize + SECTORSIZE + 8, in find_boot_record()
94 "(err %d)\n", block * inftl->EraseSize, in find_boot_record()
107 mtd_read(mtd, block * inftl->EraseSize + 4096, SECTORSIZE, in find_boot_record()
172 block >>= mh->BlockMultiplierBits; in find_boot_record()
280 inftl->PUtable[block] = BLOCK_RESERVED; in find_boot_record()
294 inftl->MediaUnit = block; in find_boot_record()
[all …]
/linux/drivers/w1/
H A Dw1_netlink.c41 struct w1_cb_block *block; member
55 static u16 w1_reply_len(struct w1_cb_block *block) in w1_reply_len() argument
57 if (!block->cn) in w1_reply_len()
59 return (u8 *)block->cn - (u8 *)block->first_cn + block->cn->len; in w1_reply_len()
62 static void w1_unref_block(struct w1_cb_block *block) in w1_unref_block() argument
64 if (atomic_sub_return(1, &block->refcnt) == 0) { in w1_unref_block()
65 u16 len = w1_reply_len(block); in w1_unref_block()
67 cn_netlink_send_mult(block->first_cn, len, in w1_unref_block()
68 block->portid, 0, in w1_unref_block()
71 kfree(block); in w1_unref_block()
[all …]
/linux/drivers/video/fbdev/
H A Dedid.h72 #define PIXEL_CLOCK_LO (unsigned)block[ 0 ]
73 #define PIXEL_CLOCK_HI (unsigned)block[ 1 ]
75 #define H_ACTIVE_LO (unsigned)block[ 2 ]
76 #define H_BLANKING_LO (unsigned)block[ 3 ]
77 #define H_ACTIVE_HI UPPER_NIBBLE( (unsigned)block[ 4 ] )
79 #define H_BLANKING_HI LOWER_NIBBLE( (unsigned)block[ 4 ] )
82 #define V_ACTIVE_LO (unsigned)block[ 5 ]
83 #define V_BLANKING_LO (unsigned)block[ 6 ]
84 #define V_ACTIVE_HI UPPER_NIBBLE( (unsigned)block[ 7 ] )
86 #define V_BLANKING_HI LOWER_NIBBLE( (unsigned)block[ 7 ] )
[all …]
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dcore_acl_flex_actions.c381 void (*destructor)(struct mlxsw_afa_block *block,
385 static void mlxsw_afa_resource_add(struct mlxsw_afa_block *block, in mlxsw_afa_resource_add() argument
388 list_add(&resource->list, &block->resource_list); in mlxsw_afa_resource_add()
396 static void mlxsw_afa_resources_destroy(struct mlxsw_afa_block *block) in mlxsw_afa_resources_destroy() argument
400 list_for_each_entry_safe(resource, tmp, &block->resource_list, list) { in mlxsw_afa_resources_destroy()
401 resource->destructor(block, resource); in mlxsw_afa_resources_destroy()
407 struct mlxsw_afa_block *block; in mlxsw_afa_block_create() local
409 block = kzalloc(sizeof(*block), GFP_KERNEL); in mlxsw_afa_block_create()
410 if (!block) in mlxsw_afa_block_create()
412 INIT_LIST_HEAD(&block->resource_list); in mlxsw_afa_block_create()
[all …]
H A Dspectrum_flow.c15 struct mlxsw_sp_flow_block *block; in mlxsw_sp_flow_block_create() local
17 block = kzalloc(sizeof(*block), GFP_KERNEL); in mlxsw_sp_flow_block_create()
18 if (!block) in mlxsw_sp_flow_block_create()
20 INIT_LIST_HEAD(&block->binding_list); in mlxsw_sp_flow_block_create()
21 INIT_LIST_HEAD(&block->mall.list); in mlxsw_sp_flow_block_create()
22 block->mlxsw_sp = mlxsw_sp; in mlxsw_sp_flow_block_create()
23 block->net = net; in mlxsw_sp_flow_block_create()
24 return block; in mlxsw_sp_flow_block_create()
27 void mlxsw_sp_flow_block_destroy(struct mlxsw_sp_flow_block *block) in mlxsw_sp_flow_block_destroy() argument
29 WARN_ON(!list_empty(&block->binding_list)); in mlxsw_sp_flow_block_destroy()
[all …]
H A Dcore_acl_flex_actions.h47 void mlxsw_afa_block_destroy(struct mlxsw_afa_block *block);
48 int mlxsw_afa_block_commit(struct mlxsw_afa_block *block);
49 char *mlxsw_afa_block_first_set(struct mlxsw_afa_block *block);
50 char *mlxsw_afa_block_cur_set(struct mlxsw_afa_block *block);
51 u32 mlxsw_afa_block_first_kvdl_index(struct mlxsw_afa_block *block);
52 int mlxsw_afa_block_activity_get(struct mlxsw_afa_block *block, bool *activity);
53 int mlxsw_afa_block_continue(struct mlxsw_afa_block *block);
54 int mlxsw_afa_block_jump(struct mlxsw_afa_block *block, u16 group_id);
55 int mlxsw_afa_block_terminate(struct mlxsw_afa_block *block);
58 int mlxsw_afa_block_append_drop(struct mlxsw_afa_block *block, bool ingress,
[all …]
/linux/drivers/md/dm-vdo/
H A Drecovery-journal.c202 struct recovery_journal_block *block; in pop_free_list() local
207 block = list_last_entry(&journal->free_tail_blocks, in pop_free_list()
209 list_del_init(&block->list_node); in pop_free_list()
210 return block; in pop_free_list()
222 static inline bool __must_check is_block_dirty(const struct recovery_journal_block *block) in is_block_dirty() argument
224 return (block->uncommitted_entry_count > 0); in is_block_dirty()
233 static inline bool __must_check is_block_empty(const struct recovery_journal_block *block) in is_block_empty() argument
235 return (block->entry_count == 0); in is_block_empty()
244 static inline bool __must_check is_block_full(const struct recovery_journal_block *block) in is_block_full() argument
246 return ((block == NULL) || (block->journal->entries_per_block == block->entry_count)); in is_block_full()
[all …]
/linux/net/sched/
H A Dcls_api.c181 struct tcf_block *block = chain->block; in tcf_proto_signal_destroying() local
183 mutex_lock(&block->proto_destroy_lock); in tcf_proto_signal_destroying()
184 hash_add_rcu(block->proto_destroy_ht, &tp->destroy_ht_node, in tcf_proto_signal_destroying()
186 mutex_unlock(&block->proto_destroy_lock); in tcf_proto_signal_destroying()
205 hash_for_each_possible_rcu(chain->block->proto_destroy_ht, iter, in tcf_proto_exists_destroying()
220 struct tcf_block *block = chain->block; in tcf_proto_signal_destroyed() local
222 mutex_lock(&block->proto_destroy_lock); in tcf_proto_signal_destroyed()
225 mutex_unlock(&block in tcf_proto_signal_destroyed()
417 struct tcf_block *block = tp->chain->block; tcf_proto_count_usesw() local
489 ASSERT_BLOCK_LOCKED(block) global() argument
498 tcf_chain_create(struct tcf_block * block,u32 chain_index) tcf_chain_create() argument
529 struct tcf_block *block = chain->block; tcf_chain0_head_change() local
544 struct tcf_block *block = chain->block; tcf_chain_detach() local
559 tcf_block_destroy(struct tcf_block * block) tcf_block_destroy() argument
569 struct tcf_block *block = chain->block; tcf_chain_destroy() local
594 tcf_chain_lookup(struct tcf_block * block,u32 chain_index) tcf_chain_lookup() argument
609 tcf_chain_lookup_rcu(const struct tcf_block * block,u32 chain_index) tcf_chain_lookup_rcu() argument
626 __tcf_chain_get(struct tcf_block * block,u32 chain_index,bool create,bool by_act) __tcf_chain_get() argument
666 tcf_chain_get(struct tcf_block * block,u32 chain_index,bool create) tcf_chain_get() argument
672 tcf_chain_get_by_act(struct tcf_block * block,u32 chain_index) tcf_chain_get_by_act() argument
688 struct tcf_block *block = chain->block; __tcf_chain_put() local
799 struct tcf_block *block = block_cb->indr.data; tc_block_indr_cleanup() local
818 tcf_block_offload_in_use(struct tcf_block * block) tcf_block_offload_in_use() argument
823 tcf_block_offload_cmd(struct tcf_block * block,struct net_device * dev,struct Qdisc * sch,struct tcf_block_ext_info * ei,enum flow_block_command command,struct netlink_ext_ack * extack) tcf_block_offload_cmd() argument
855 tcf_block_offload_bind(struct tcf_block * block,struct Qdisc * q,struct tcf_block_ext_info * ei,struct netlink_ext_ack * extack) tcf_block_offload_bind() argument
895 tcf_block_offload_unbind(struct tcf_block * block,struct Qdisc * q,struct tcf_block_ext_info * ei) tcf_block_offload_unbind() argument
914 tcf_chain0_head_change_cb_add(struct tcf_block * block,struct tcf_block_ext_info * ei,struct netlink_ext_ack * extack) tcf_chain0_head_change_cb_add() argument
958 tcf_chain0_head_change_cb_del(struct tcf_block * block,struct tcf_block_ext_info * ei) tcf_chain0_head_change_cb_del() argument
988 tcf_block_insert(struct tcf_block * block,struct net * net,struct netlink_ext_ack * extack) tcf_block_insert() argument
1004 tcf_block_remove(struct tcf_block * block,struct net * net) tcf_block_remove() argument
1017 struct tcf_block *block; tcf_block_create() local
1053 struct tcf_block *block; tcf_block_refcnt_get() local
1065 __tcf_get_next_chain(struct tcf_block * block,struct tcf_chain * chain) __tcf_get_next_chain() argument
1097 tcf_get_next_chain(struct tcf_block * block,struct tcf_chain * chain) tcf_get_next_chain() argument
1161 tcf_block_flush_all_chains(struct tcf_block * block,bool rtnl_held) tcf_block_flush_all_chains() argument
1280 struct tcf_block *block; __tcf_block_find() local
1312 __tcf_block_put(struct tcf_block * block,struct Qdisc * q,struct tcf_block_ext_info * ei,bool rtnl_held) __tcf_block_put() argument
1340 tcf_block_refcnt_put(struct tcf_block * block,bool rtnl_held) tcf_block_refcnt_put() argument
1354 struct tcf_block *block; tcf_block_find() local
1383 tcf_block_release(struct Qdisc * q,struct tcf_block * block,bool rtnl_held) tcf_block_release() argument
1404 tcf_block_owner_netif_keep_dst(struct tcf_block * block,struct Qdisc * q,enum flow_block_binder_type binder_type) tcf_block_owner_netif_keep_dst() argument
1414 tcf_block_netif_keep_dst(struct tcf_block * block) tcf_block_netif_keep_dst() argument
1425 tcf_block_owner_add(struct tcf_block * block,struct Qdisc * q,enum flow_block_binder_type binder_type) tcf_block_owner_add() argument
1440 tcf_block_owner_del(struct tcf_block * block,struct Qdisc * q,enum flow_block_binder_type binder_type) tcf_block_owner_del() argument
1456 tcf_block_tracks_dev(struct tcf_block * block,struct tcf_block_ext_info * ei) tcf_block_tracks_dev() argument
1470 struct tcf_block *block = NULL; tcf_block_get_ext() local
1550 tcf_block_put_ext(struct tcf_block * block,struct Qdisc * q,struct tcf_block_ext_info * ei) tcf_block_put_ext() argument
1566 tcf_block_put(struct tcf_block * block) tcf_block_put() argument
1578 tcf_block_playback_offloads(struct tcf_block * block,flow_setup_cb_t * cb,void * cb_priv,bool add,bool offload_in_use,struct netlink_ext_ack * extack) tcf_block_playback_offloads() argument
1626 tcf_block_bind(struct tcf_block * block,struct flow_block_offload * bo) tcf_block_bind() argument
1668 tcf_block_unbind(struct tcf_block * block,struct flow_block_offload * bo) tcf_block_unbind() argument
1687 tcf_block_setup(struct tcf_block * block,struct flow_block_offload * bo) tcf_block_setup() argument
1806 tcf_classify(struct sk_buff * skb,const struct tcf_block * block,const struct tcf_proto * tp,struct tcf_result * res,bool compat_mode) tcf_classify() argument
2051 tcf_fill_node(struct net * net,struct sk_buff * skb,struct tcf_proto * tp,struct tcf_block * block,struct Qdisc * q,u32 parent,void * fh,u32 portid,u32 seq,u16 flags,int event,bool terse_dump,bool rtnl_held,struct netlink_ext_ack * extack) tcf_fill_node() argument
2117 tfilter_notify_prep(struct net * net,struct sk_buff * oskb,struct nlmsghdr * n,struct tcf_proto * tp,struct tcf_block * block,struct Qdisc * q,u32 parent,void * fh,int event,u32 portid,bool rtnl_held,struct netlink_ext_ack * extack) tfilter_notify_prep() argument
2148 tfilter_notify(struct net * net,struct sk_buff * oskb,struct nlmsghdr * n,struct tcf_proto * tp,struct tcf_block * block,struct Qdisc * q,u32 parent,void * fh,int event,bool unicast,bool rtnl_held,struct netlink_ext_ack * extack) tfilter_notify() argument
2174 tfilter_del_notify(struct net * net,struct sk_buff * oskb,struct nlmsghdr * n,struct tcf_proto * tp,struct tcf_block * block,struct Qdisc * q,u32 parent,void * fh,bool * last,bool rtnl_held,struct netlink_ext_ack * extack) tfilter_del_notify() argument
2207 tfilter_notify_chain(struct net * net,struct sk_buff * oskb,struct tcf_block * block,struct Qdisc * q,u32 parent,struct nlmsghdr * n,struct tcf_chain * chain,int event,struct netlink_ext_ack * extack) tfilter_notify_chain() argument
2246 struct tcf_block *block; tc_new_tfilter() local
2479 struct tcf_block *block = NULL; tc_del_tfilter() local
2638 struct tcf_block *block = NULL; tc_get_tfilter() local
2753 struct tcf_block *block; global() member
2775 struct tcf_block *block = chain->block; tcf_chain_dump() local
2843 struct tcf_block *block; tc_dump_tfilter() local
2944 tc_chain_fill_node(const struct tcf_proto_ops * tmplt_ops,void * tmplt_priv,u32 chain_index,struct net * net,struct sk_buff * skb,struct tcf_block * block,u32 portid,u32 seq,u16 flags,int event,struct netlink_ext_ack * extack) tc_chain_fill_node() argument
3002 struct tcf_block *block = chain->block; tc_chain_notify() local
3032 tc_chain_notify_delete(const struct tcf_proto_ops * tmplt_ops,void * tmplt_priv,u32 chain_index,struct tcf_block * block,struct sk_buff * oskb,u32 seq,u16 flags) tc_chain_notify_delete() argument
3115 struct tcf_block *block; tc_ctl_chain() local
3242 struct tcf_block *block; tc_dump_chain() local
3547 tcf_block_offload_inc(struct tcf_block * block,u32 * flags) tcf_block_offload_inc() argument
3555 tcf_block_offload_dec(struct tcf_block * block,u32 * flags) tcf_block_offload_dec() argument
3563 tc_cls_offload_cnt_update(struct tcf_block * block,struct tcf_proto * tp,u32 * cnt,u32 * flags,u32 diff,bool add) tc_cls_offload_cnt_update() argument
3583 tc_cls_offload_cnt_reset(struct tcf_block * block,struct tcf_proto * tp,u32 * cnt,u32 * flags) tc_cls_offload_cnt_reset() argument
3595 __tc_setup_cb_call(struct tcf_block * block,enum tc_setup_type type,void * type_data,bool err_stop) __tc_setup_cb_call() argument
3614 tc_setup_cb_call(struct tcf_block * block,enum tc_setup_type type,void * type_data,bool err_stop,bool rtnl_held) tc_setup_cb_call() argument
3649 tc_setup_cb_add(struct tcf_block * block,struct tcf_proto * tp,enum tc_setup_type type,void * type_data,bool err_stop,u32 * flags,unsigned int * in_hw_count,bool rtnl_held) tc_setup_cb_add() argument
3699 tc_setup_cb_replace(struct tcf_block * block,struct tcf_proto * tp,enum tc_setup_type type,void * type_data,bool err_stop,u32 * old_flags,unsigned int * old_in_hw_count,u32 * new_flags,unsigned int * new_in_hw_count,bool rtnl_held) tc_setup_cb_replace() argument
3753 tc_setup_cb_destroy(struct tcf_block * block,struct tcf_proto * tp,enum tc_setup_type type,void * type_data,bool err_stop,u32 * flags,unsigned int * in_hw_count,bool rtnl_held) tc_setup_cb_destroy() argument
3787 tc_setup_cb_reoffload(struct tcf_block * block,struct tcf_proto * tp,bool add,flow_setup_cb_t * cb,enum tc_setup_type type,void * type_data,void * cb_priv,u32 * flags,unsigned int * in_hw_count) tc_setup_cb_reoffload() argument
[all...]
/linux/fs/afs/
H A Ddir_edit.c24 static int afs_find_contig_bits(union afs_xdr_dir_block *block, unsigned int nr_slots) in afs_find_contig_bits() argument
30 bitmap = (u64)block->hdr.bitmap[0] << 0 * 8; in afs_find_contig_bits()
31 bitmap |= (u64)block->hdr.bitmap[1] << 1 * 8; in afs_find_contig_bits()
32 bitmap |= (u64)block->hdr.bitmap[2] << 2 * 8; in afs_find_contig_bits()
33 bitmap |= (u64)block->hdr.bitmap[3] << 3 * 8; in afs_find_contig_bits()
34 bitmap |= (u64)block->hdr.bitmap[4] << 4 * 8; in afs_find_contig_bits()
35 bitmap |= (u64)block->hdr.bitmap[5] << 5 * 8; in afs_find_contig_bits()
36 bitmap |= (u64)block->hdr.bitmap[6] << 6 * 8; in afs_find_contig_bits()
37 bitmap |= (u64)block->hdr.bitmap[7] << 7 * 8; in afs_find_contig_bits()
69 static void afs_set_contig_bits(union afs_xdr_dir_block *block, in afs_set_contig_bits() argument
[all …]
/linux/drivers/video/fbdev/core/
H A Dfbmon.c99 static int edid_is_serial_block(unsigned char *block) in edid_is_serial_block() argument
101 if ((block[0] == 0x00) && (block[1] == 0x00) && in edid_is_serial_block()
102 (block[2] == 0x00) && (block[3] == 0xff) && in edid_is_serial_block()
103 (block[4] == 0x00)) in edid_is_serial_block()
109 static int edid_is_ascii_block(unsigned char *block) in edid_is_ascii_block() argument
111 if ((block[0] == 0x00) && (block[1] == 0x00) && in edid_is_ascii_block()
112 (block[2] == 0x00) && (block[3] == 0xfe) && in edid_is_ascii_block()
113 (block[4] == 0x00)) in edid_is_ascii_block()
119 static int edid_is_limits_block(unsigned char *block) in edid_is_limits_block() argument
121 if ((block[0] == 0x00) && (block[1] == 0x00) && in edid_is_limits_block()
[all …]
/linux/drivers/misc/
H A Dsram.c57 static int sram_add_pool(struct sram_dev *sram, struct sram_reserve *block, in sram_add_pool() argument
63 NUMA_NO_NODE, block->label); in sram_add_pool()
68 block->size, NUMA_NO_NODE); in sram_add_pool()
77 static int sram_add_export(struct sram_dev *sram, struct sram_reserve *block, in sram_add_export() argument
90 part->battr.size = block->size; in sram_add_export()
95 static int sram_add_partition(struct sram_dev *sram, struct sram_reserve *block, in sram_add_partition() argument
107 virt_base = devm_ioremap_resource(sram->dev, &block->res); in sram_add_partition()
109 virt_base = devm_ioremap_resource_wc(sram->dev, &block->res); in sram_add_partition()
112 dev_err(sram->dev, "could not map SRAM at %pr\n", &block->res); in sram_add_partition()
118 part->base = sram->virt_base + block->start; in sram_add_partition()
[all …]
/linux/lib/crypto/mips/
H A Dsha512.h43 const u64 *block = (const u64 *)data; in sha512_blocks() local
45 write_octeon_64bit_block_sha512(block[0], 0); in sha512_blocks()
46 write_octeon_64bit_block_sha512(block[1], 1); in sha512_blocks()
47 write_octeon_64bit_block_sha512(block[2], 2); in sha512_blocks()
48 write_octeon_64bit_block_sha512(block[3], 3); in sha512_blocks()
49 write_octeon_64bit_block_sha512(block[4], 4); in sha512_blocks()
50 write_octeon_64bit_block_sha512(block[5], 5); in sha512_blocks()
51 write_octeon_64bit_block_sha512(block[6], 6); in sha512_blocks()
52 write_octeon_64bit_block_sha512(block[7], 7); in sha512_blocks()
53 write_octeon_64bit_block_sha512(block[8], 8); in sha512_blocks()
[all …]
/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-switch-flower.c160 dpaa2_switch_acl_entry_remove(struct dpaa2_switch_filter_block *block, in dpaa2_switch_acl_entry_remove() argument
165 struct ethsw_core *ethsw = block->ethsw; in dpaa2_switch_acl_entry_remove()
186 block->acl_id, acl_entry_cfg); in dpaa2_switch_acl_entry_remove()
202 dpaa2_switch_acl_entry_add_to_list(struct dpaa2_switch_filter_block *block, in dpaa2_switch_acl_entry_add_to_list() argument
209 if (list_empty(&block->acl_entries)) { in dpaa2_switch_acl_entry_add_to_list()
210 list_add(&entry->list, &block->acl_entries); in dpaa2_switch_acl_entry_add_to_list()
214 list_for_each_safe(pos, n, &block->acl_entries) { in dpaa2_switch_acl_entry_add_to_list()
225 dpaa2_switch_acl_entry_get_by_index(struct dpaa2_switch_filter_block *block, in dpaa2_switch_acl_entry_get_by_index() argument
231 list_for_each_entry(tmp, &block->acl_entries, list) { in dpaa2_switch_acl_entry_get_by_index()
241 dpaa2_switch_acl_entry_set_precedence(struct dpaa2_switch_filter_block *block, in dpaa2_switch_acl_entry_set_precedence() argument
[all …]
/linux/drivers/md/
H A Ddm-log-writes.c135 struct pending_block *block; member
199 struct pending_block *block) in free_pending_block() argument
203 for (i = 0; i < block->vec_cnt; i++) { in free_pending_block()
204 if (block->vecs[i].bv_page) in free_pending_block()
205 __free_page(block->vecs[i].bv_page); in free_pending_block()
207 kfree(block->data); in free_pending_block()
208 kfree(block); in free_pending_block()
319 struct pending_block *block, sector_t sector) in log_one_block() argument
326 entry.sector = cpu_to_le64(block->sector); in log_one_block()
327 entry.nr_sectors = cpu_to_le64(block->nr_sectors); in log_one_block()
[all …]
/linux/fs/minix/
H A Ditree_v2.c27 static int block_to_path(struct inode * inode, long block, int offsets[DEPTH]) in block_to_path() argument
32 if (block < 0) { in block_to_path()
34 block, sb->s_bdev); in block_to_path()
37 if ((u64)block * (u64)sb->s_blocksize >= sb->s_maxbytes) in block_to_path()
40 if (block < DIRCOUNT) { in block_to_path()
41 offsets[n++] = block; in block_to_path()
42 } else if ((block -= DIRCOUNT) < INDIRCOUNT(sb)) { in block_to_path()
44 offsets[n++] = block; in block_to_path()
45 } else if ((block -= INDIRCOUNT(sb)) < INDIRCOUNT(sb) * INDIRCOUNT(sb)) { in block_to_path()
47 offsets[n++] = block / INDIRCOUNT(sb); in block_to_path()
[all …]
H A Ditree_v1.c25 static int block_to_path(struct inode * inode, long block, int offsets[DEPTH]) in block_to_path() argument
29 if (block < 0) { in block_to_path()
31 block, inode->i_sb->s_bdev); in block_to_path()
34 if ((u64)block * BLOCK_SIZE >= inode->i_sb->s_maxbytes) in block_to_path()
37 if (block < 7) { in block_to_path()
38 offsets[n++] = block; in block_to_path()
39 } else if ((block -= 7) < 512) { in block_to_path()
41 offsets[n++] = block; in block_to_path()
43 block -= 512; in block_to_path()
45 offsets[n++] = block>>9; in block_to_path()
[all …]
/linux/drivers/net/ethernet/google/gve/
H A Dgve_utils.c13 struct gve_notify_block *block = in gve_tx_was_added_to_block() local
16 return block->tx != NULL; in gve_tx_was_added_to_block()
21 struct gve_notify_block *block = in gve_tx_remove_from_block() local
24 block->tx = NULL; in gve_tx_remove_from_block()
32 struct gve_notify_block *block = &priv->ntfy_blocks[ntfy_idx]; in gve_tx_add_to_block() local
35 block->tx = tx; in gve_tx_add_to_block()
43 struct gve_notify_block *block = in gve_rx_was_added_to_block() local
46 return block->rx != NULL; in gve_rx_was_added_to_block()
51 struct gve_notify_block *block = in gve_rx_remove_from_block() local
54 block->rx = NULL; in gve_rx_remove_from_block()
[all …]
/linux/arch/riscv/boot/dts/sophgo/
H A Dsg2044-cpus.dtsi18 i-cache-block-size = <64>;
21 d-cache-block-size = <64>;
40 riscv,cbom-block-size = <64>;
41 riscv,cbop-block-size = <64>;
42 riscv,cboz-block-size = <64>;
54 i-cache-block-size = <64>;
57 d-cache-block-size = <64>;
76 riscv,cbom-block-size = <64>;
77 riscv,cbop-block-size = <64>;
78 riscv,cboz-block-size = <64>;
[all …]

12345678910>>...62