Home
last modified time | relevance | path

Searched refs:mh (Results 1 – 25 of 29) sorted by relevance

12

/drivers/net/ethernet/mellanox/mlx5/core/en/
Dmod_hdr.c58 struct mlx5e_mod_hdr_handle *mh, *found = NULL; in mod_hdr_get() local
60 hash_for_each_possible(tbl->hlist, mh, mod_hdr_hlist, hash_key) { in mod_hdr_get()
61 if (!cmp_mod_hdr_info(&mh->key, key)) { in mod_hdr_get()
62 refcount_inc(&mh->refcnt); in mod_hdr_get()
63 found = mh; in mod_hdr_get()
78 struct mlx5e_mod_hdr_handle *mh; in mlx5e_mod_hdr_attach() local
91 mh = mod_hdr_get(tbl, &key, hash_key); in mlx5e_mod_hdr_attach()
92 if (mh) { in mlx5e_mod_hdr_attach()
94 wait_for_completion(&mh->res_ready); in mlx5e_mod_hdr_attach()
96 if (mh->compl_result < 0) { in mlx5e_mod_hdr_attach()
[all …]
Dmod_hdr.h43 struct mlx5e_mod_hdr_handle *mh);
44 struct mlx5_modify_hdr *mlx5e_mod_hdr_get(struct mlx5e_mod_hdr_handle *mh);
Dtc_ct.c88 struct mlx5e_mod_hdr_handle *mh; member
167 struct mlx5e_mod_hdr_handle *mh);
520 mlx5_tc_ct_entry_destroy_mod_hdr(ct_priv, zone_rule->attr, zone_rule->mh); in mlx5_tc_ct_entry_del_rule()
707 struct mlx5e_mod_hdr_handle **mh, in mlx5_tc_ct_entry_create_mod_hdr() argument
756 *mh = NULL; in mlx5_tc_ct_entry_create_mod_hdr()
758 *mh = mlx5e_mod_hdr_attach(ct_priv->dev, in mlx5_tc_ct_entry_create_mod_hdr()
762 if (IS_ERR(*mh)) { in mlx5_tc_ct_entry_create_mod_hdr()
763 err = PTR_ERR(*mh); in mlx5_tc_ct_entry_create_mod_hdr()
766 attr->modify_hdr = mlx5e_mod_hdr_get(*mh); in mlx5_tc_ct_entry_create_mod_hdr()
781 struct mlx5e_mod_hdr_handle *mh) in mlx5_tc_ct_entry_destroy_mod_hdr() argument
[all …]
/drivers/scsi/bfa/
Dbfi_ms.h100 struct bfi_mhdr_s mh; member
109 struct bfi_mhdr_s mh; /* Common msg header */ member
120 struct bfi_mhdr_s mh; /* common msg header */ member
132 struct bfi_mhdr_s mh; /* common msg header */ member
144 struct bfi_mhdr_s mh; /* common msg header */ member
154 struct bfi_mhdr_s mh; member
165 struct bfi_mhdr_s mh; member
175 struct bfi_mhdr_s mh; /* common msg header */ member
179 struct bfi_mhdr_s mh; /* common msg header */ member
189 struct bfi_mhdr_s mh; /* common msg header */ member
[all …]
Dbfi.h170 struct bfi_mhdr_s mh; member
257 struct bfi_mhdr_s mh; member
297 struct bfi_mhdr_s mh; /* Common msg header */ member
389 struct bfi_mhdr_s mh; /* common msg header */ member
447 struct bfi_mhdr_s mh; member
459 struct bfi_mhdr_s mh; /* Common msg header */ member
473 struct bfi_mhdr_s mh; member
484 struct bfi_mhdr_s mh; member
591 struct bfi_mhdr_s mh; member
598 struct bfi_mhdr_s mh; member
[all …]
Dbfa_port.c145 bfa_trc(port, m->mh.msg_id); in bfa_port_isr()
147 switch (m->mh.msg_id) { in bfa_port_isr()
258 bfi_h2i_set(m->mh, BFI_MC_PORT, BFI_PORT_H2I_ENABLE_REQ, in bfa_port_enable()
314 bfi_h2i_set(m->mh, BFI_MC_PORT, BFI_PORT_H2I_DISABLE_REQ, in bfa_port_disable()
354 bfi_h2i_set(m->mh, BFI_MC_PORT, BFI_PORT_H2I_GET_STATS_REQ, in bfa_port_get_stats()
391 bfi_h2i_set(m->mh, BFI_MC_PORT, BFI_PORT_H2I_CLEAR_STATS_REQ, in bfa_port_clear_stats()
665 bfi_h2i_set(cmd->mh, BFI_MC_CEE, BFI_CEE_H2I_GET_CFG_REQ, in bfa_cee_get_attr()
705 bfi_h2i_set(cmd->mh, BFI_MC_CEE, BFI_CEE_H2I_GET_STATS_REQ, in bfa_cee_get_stats()
742 bfi_h2i_set(cmd->mh, BFI_MC_CEE, BFI_CEE_H2I_RESET_STATS, in bfa_cee_reset_stats()
767 bfa_trc(cee, msg->mh.msg_id); in bfa_cee_isr()
[all …]
Dbfa_ioc.c1798 bfi_h2i_set(enable_req.mh, BFI_MC_IOC, BFI_IOC_H2I_ENABLE_REQ, in bfa_ioc_send_enable()
1811 bfi_h2i_set(disable_req.mh, BFI_MC_IOC, BFI_IOC_H2I_DISABLE_REQ, in bfa_ioc_send_disable()
1824 bfi_h2i_set(attr_req.mh, BFI_MC_IOC, BFI_IOC_H2I_GETATTR_REQ, in bfa_ioc_send_getattr()
2325 switch (msg->mh.msg_id) { in bfa_ioc_isr()
2345 bfa_trc(ioc, msg->mh.msg_id); in bfa_ioc_isr()
2602 mc = m.mh.msg_class; in bfa_ioc_mbox_isr()
2987 bfi_h2i_set(req->mh, BFI_MC_IOC, BFI_IOC_H2I_DBG_SYNC, in bfa_ioc_send_fwsync()
3285 WARN_ON(msg->mh.msg_class != BFI_MC_ABLK); in bfa_ablk_isr()
3286 bfa_trc(ablk->ioc, msg->mh.msg_id); in bfa_ablk_isr()
3288 switch (msg->mh.msg_id) { in bfa_ablk_isr()
[all …]
Dbfa_svc.c794 bfi_h2i_set(send_req->mh, BFI_MC_FCXP, BFI_FCXP_H2I_SEND_REQ, in bfa_fcxp_queue()
857 bfa_reqq_produce(bfa, BFA_REQQ_FCXP, send_req->mh); in bfa_fcxp_queue()
1670 bfi_h2i_set(m->mh, BFI_MC_LPS, BFI_LPS_H2I_LOGIN_REQ, in bfa_lps_send_login()
1681 bfa_reqq_produce(lps->bfa, lps->reqq, m->mh); in bfa_lps_send_login()
1697 bfi_h2i_set(m->mh, BFI_MC_LPS, BFI_LPS_H2I_LOGOUT_REQ, in bfa_lps_send_logout()
1702 bfa_reqq_produce(lps->bfa, lps->reqq, m->mh); in bfa_lps_send_logout()
1716 bfi_h2i_set(m->mh, BFI_MC_LPS, BFI_LPS_H2I_N2N_PID_REQ, in bfa_lps_send_set_n2n_pid()
1721 bfa_reqq_produce(lps->bfa, lps->reqq, m->mh); in bfa_lps_send_set_n2n_pid()
3163 bfi_h2i_set(m->mh, BFI_MC_FCPORT, BFI_FCPORT_H2I_ENABLE_REQ, in bfa_fcport_send_enable()
3178 bfa_reqq_produce(fcport->bfa, BFA_REQQ_PORT, m->mh); in bfa_fcport_send_enable()
[all …]
Dbfa_fcpim.c1163 bfi_h2i_set(m->mh, BFI_MC_ITN, BFI_ITN_H2I_CREATE_REQ, in bfa_itnim_send_fwcreate()
1174 bfa_reqq_produce(itnim->bfa, itnim->reqq, m->mh); in bfa_itnim_send_fwcreate()
1192 bfi_h2i_set(m->mh, BFI_MC_ITN, BFI_ITN_H2I_DELETE_REQ, in bfa_itnim_send_fwdelete()
1200 bfa_reqq_produce(itnim->bfa, itnim->reqq, m->mh); in bfa_itnim_send_fwdelete()
2563 bfi_h2i_set(m->mh, BFI_MC_IOIM_READ, 0, bfa_fn_lpu(ioim->bfa)); in bfa_ioim_send_ioreq()
2568 bfi_h2i_set(m->mh, BFI_MC_IOIM_WRITE, 0, bfa_fn_lpu(ioim->bfa)); in bfa_ioim_send_ioreq()
2577 bfi_h2i_set(m->mh, BFI_MC_IOIM_IO, 0, bfa_fn_lpu(ioim->bfa)); in bfa_ioim_send_ioreq()
2581 bfi_h2i_set(m->mh, BFI_MC_IOIM_IO, 0, bfa_fn_lpu(ioim->bfa)); in bfa_ioim_send_ioreq()
2586 bfa_reqq_produce(ioim->bfa, ioim->reqq, m->mh); in bfa_ioim_send_ioreq()
2644 bfi_h2i_set(m->mh, BFI_MC_IOIM, msgop, bfa_fn_lpu(ioim->bfa)); in bfa_ioim_send_abort()
[all …]
/drivers/net/ethernet/brocade/bna/
Dbfi_cna.h33 struct bfi_mhdr mh; /*!< msg header */ member
40 struct bfi_mhdr mh; /*!< common msg header */ member
48 struct bfi_mhdr mh; /*!< common msg header */ member
53 struct bfi_mhdr mh; member
61 struct bfi_mhdr mh; member
89 struct bfi_mhdr mh; member
97 struct bfi_mhdr mh; member
105 struct bfi_mhdr mh; member
114 struct bfi_mhdr mh; member
124 struct bfi_mhdr mh; member
[all …]
Dbfi.h87 struct bfi_mhdr mh; member
175 struct bfi_mhdr mh; member
208 struct bfi_mhdr mh; /*!< Common msg header */ member
292 struct bfi_mhdr mh; /*!< common msg header */ member
334 struct bfi_mhdr mh; member
342 struct bfi_mhdr mh; /*!< Common msg header */ member
352 struct bfi_mhdr mh; member
361 struct bfi_mhdr mh; member
419 struct bfi_mhdr mh; member
426 struct bfi_mhdr mh; member
[all …]
Dbfi_enet.h347 struct bfi_msgq_mhdr mh; member
360 struct bfi_msgq_mhdr mh; member
367 struct bfi_msgq_mhdr mh; member
379 struct bfi_msgq_mhdr mh; member
386 struct bfi_msgq_mhdr mh; member
417 struct bfi_msgq_mhdr mh; member
432 struct bfi_msgq_mhdr mh; member
488 struct bfi_msgq_mhdr mh; member
505 struct bfi_msgq_mhdr mh; member
526 struct bfi_msgq_mhdr mh; member
[all …]
Dbna_enet.c104 container_of(msghdr, struct bfi_enet_rsp, mh); in bna_bfi_ethport_admin_rsp()
131 container_of(msghdr, struct bfi_enet_rsp, mh); in bna_bfi_ethport_lpbk_rsp()
160 container_of(msghdr, struct bfi_enet_attr_rsp, mh); in bna_bfi_attr_get_rsp()
410 bfi_msgq_mhdr_set(admin_up_req->mh, BFI_MC_ENET, in bna_bfi_ethport_admin_up()
412 admin_up_req->mh.num_entries = htons( in bna_bfi_ethport_admin_up()
417 sizeof(struct bfi_enet_enable_req), &admin_up_req->mh); in bna_bfi_ethport_admin_up()
427 bfi_msgq_mhdr_set(admin_down_req->mh, BFI_MC_ENET, in bna_bfi_ethport_admin_down()
429 admin_down_req->mh.num_entries = htons( in bna_bfi_ethport_admin_down()
434 sizeof(struct bfi_enet_enable_req), &admin_down_req->mh); in bna_bfi_ethport_admin_down()
444 bfi_msgq_mhdr_set(lpbk_up_req->mh, BFI_MC_ENET, in bna_bfi_ethport_lpbk_up()
[all …]
Dbfa_msgq.c191 bfi_h2i_set(dbell->mh, BFI_MC_MSGQ, BFI_MSGQ_H2I_DOORBELL_PI, 0); in bfa_msgq_cmdq_dbell()
192 dbell->mh.mtag.i2htok = 0; in bfa_msgq_cmdq_dbell()
283 bfi_h2i_set(rsp->mh, BFI_MC_MSGQ, BFI_MSGQ_H2I_CMDQ_COPY_RSP, 0); in bfa_msgq_cmdq_copy_rsp()
284 rsp->mh.mtag.i2htok = htons(cmdq->token); in bfa_msgq_cmdq_copy_rsp()
447 bfi_h2i_set(dbell->mh, BFI_MC_MSGQ, BFI_MSGQ_H2I_DOORBELL_CI, 0); in bfa_msgq_rspq_dbell()
448 dbell->mh.mtag.i2htok = 0; in bfa_msgq_rspq_dbell()
512 bfi_h2i_set(msgq_cfg->mh, BFI_MC_MSGQ, BFI_MSGQ_H2I_INIT_REQ, 0); in bfa_msgq_init()
513 msgq_cfg->mh.mtag.i2htok = 0; in bfa_msgq_init()
528 switch (msg->mh.msg_id) { in bfa_msgq_isr()
Dbna_tx_rx.c184 bfi_msgq_mhdr_set(req->mh, BFI_MC_ENET, req_type, 0, rxf->rx->rid); in bna_bfi_ucast_req()
185 req->mh.num_entries = htons( in bna_bfi_ucast_req()
189 sizeof(struct bfi_enet_ucast_req), &req->mh); in bna_bfi_ucast_req()
199 bfi_msgq_mhdr_set(req->mh, BFI_MC_ENET, BFI_ENET_H2I_MAC_MCAST_ADD_REQ, in bna_bfi_mcast_add_req()
201 req->mh.num_entries = htons( in bna_bfi_mcast_add_req()
205 sizeof(struct bfi_enet_mcast_add_req), &req->mh); in bna_bfi_mcast_add_req()
215 bfi_msgq_mhdr_set(req->mh, BFI_MC_ENET, BFI_ENET_H2I_MAC_MCAST_DEL_REQ, in bna_bfi_mcast_del_req()
217 req->mh.num_entries = htons( in bna_bfi_mcast_del_req()
221 sizeof(struct bfi_enet_mcast_del_req), &req->mh); in bna_bfi_mcast_del_req()
230 bfi_msgq_mhdr_set(req->mh, BFI_MC_ENET, in bna_bfi_mcast_filter_req()
[all …]
Dbfa_cee.c174 bfi_h2i_set(cmd->mh, BFI_MC_CEE, BFI_CEE_H2I_GET_CFG_REQ, in bfa_nw_cee_get_attr()
196 switch (msg->mh.msg_id) { in bfa_cee_isr()
Dbfa_ioc.c1922 bfi_h2i_set(enable_req.mh, BFI_MC_IOC, BFI_IOC_H2I_ENABLE_REQ, in bfa_ioc_send_enable()
1936 bfi_h2i_set(disable_req.mh, BFI_MC_IOC, BFI_IOC_H2I_DISABLE_REQ, in bfa_ioc_send_disable()
1950 bfi_h2i_set(attr_req.mh, BFI_MC_IOC, BFI_IOC_H2I_GETATTR_REQ, in bfa_ioc_send_getattr()
2445 switch (msg->mh.msg_id) { in bfa_ioc_isr()
2696 mc = m.mh.msg_class; in bfa_nw_ioc_mbox_isr()
3079 bfi_h2i_set(msg->mh, BFI_MC_FLASH, BFI_FLASH_H2I_WRITE_REQ, in bfa_flash_write_send()
3108 bfi_h2i_set(msg->mh, BFI_MC_FLASH, BFI_FLASH_H2I_READ_REQ, in bfa_flash_read_send()
3136 if (!flash->op_busy && msg->mh.msg_id != BFI_FLASH_I2H_EVENT) in bfa_flash_intr()
3139 switch (msg->mh.msg_id) { in bfa_flash_intr()
3276 bfi_h2i_set(msg->mh, BFI_MC_FLASH, BFI_FLASH_H2I_QUERY_REQ, in bfa_nw_flash_get_attr()
/drivers/mtd/
Dinftlmount.c37 struct INFTLMediaHeader *mh = &inftl->MediaHdr; in find_boot_record() local
104 memcpy(mh, buf, sizeof(struct INFTLMediaHeader)); in find_boot_record()
115 if (memcmp(mh, buf, sizeof(struct INFTLMediaHeader))) { in find_boot_record()
121 mh->NoOfBootImageBlocks = le32_to_cpu(mh->NoOfBootImageBlocks); in find_boot_record()
122 mh->NoOfBinaryPartitions = le32_to_cpu(mh->NoOfBinaryPartitions); in find_boot_record()
123 mh->NoOfBDTLPartitions = le32_to_cpu(mh->NoOfBDTLPartitions); in find_boot_record()
124 mh->BlockMultiplierBits = le32_to_cpu(mh->BlockMultiplierBits); in find_boot_record()
125 mh->FormatFlags = le32_to_cpu(mh->FormatFlags); in find_boot_record()
126 mh->PercentUsed = le32_to_cpu(mh->PercentUsed); in find_boot_record()
137 mh->bootRecordID, mh->NoOfBootImageBlocks, in find_boot_record()
[all …]
Dnftlmount.c31 struct NFTLMediaHeader *mh = &nftl->MediaHdr; in find_boot_record() local
121 if (memcmp(mh, buf, sizeof(struct NFTLMediaHeader))) { in find_boot_record()
143 memcpy(mh, buf, sizeof(struct NFTLMediaHeader)); in find_boot_record()
150 if (mh->UnitSizeFactor == 0) { in find_boot_record()
152 } else if (mh->UnitSizeFactor < 0xfc) { in find_boot_record()
154 mh->UnitSizeFactor); in find_boot_record()
156 } else if (mh->UnitSizeFactor != 0xff) { in find_boot_record()
158 mh->UnitSizeFactor); in find_boot_record()
159 nftl->EraseSize = nftl->mbd.mtd->erasesize << (0xff - mh->UnitSizeFactor); in find_boot_record()
163 nftl->nb_boot_blocks = le16_to_cpu(mh->FirstPhysicalEUN); in find_boot_record()
[all …]
/drivers/mtd/nand/raw/
Ddiskonchip.c912 struct NFTLMediaHeader *mh; in nftl_partscan() local
926 mh = (struct NFTLMediaHeader *)buf; in nftl_partscan()
928 le16_to_cpus(&mh->NumEraseUnits); in nftl_partscan()
929 le16_to_cpus(&mh->FirstPhysicalEUN); in nftl_partscan()
930 le32_to_cpus(&mh->FormattedSize); in nftl_partscan()
937 mh->DataOrgID, mh->NumEraseUnits, in nftl_partscan()
938 mh->FirstPhysicalEUN, mh->FormattedSize, in nftl_partscan()
939 mh->UnitSizeFactor); in nftl_partscan()
944 if (mh->UnitSizeFactor == 0x00) { in nftl_partscan()
950 mh->UnitSizeFactor = 0xff; in nftl_partscan()
[all …]
/drivers/crypto/bcm/
Dspu.c45 if (spuh->mh.flags & MH_SCTX_PRES) in spum_dump_msg_hdr()
47 if (spuh->mh.flags & MH_BDESC_PRES) in spum_dump_msg_hdr()
49 if (spuh->mh.flags & MH_MFM_PRES) in spum_dump_msg_hdr()
51 if (spuh->mh.flags & MH_BD_PRES) in spum_dump_msg_hdr()
53 if (spuh->mh.flags & MH_HASH_PRES) in spum_dump_msg_hdr()
55 if (spuh->mh.flags & MH_SUPDT_PRES) in spum_dump_msg_hdr()
57 packet_log(" Opcode 0x%02x\n", spuh->mh.op_code); in spum_dump_msg_hdr()
59 ptr += sizeof(spuh->mh) + sizeof(spuh->emh); /* skip emh. unused */ in spum_dump_msg_hdr()
62 if (spuh->mh.flags & MH_SCTX_PRES) { in spum_dump_msg_hdr()
275 if (spuh->mh.flags & MH_BDESC_PRES) { in spum_dump_msg_hdr()
[all …]
Dspum.h158 struct MHEADER mh; member
/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dindir_table.c25 struct mlx5_modify_hdr *mh; member
154 rule->mh = flow_act.modify_hdr; in mlx5_esw_indir_table_rule_get()
185 mlx5_modify_header_dealloc(esw->dev, rule->mh); in mlx5_esw_indir_table_rule_put()
/drivers/cdrom/
Dcdrom.c2753 struct modesel_head mh; in cdrom_switch_blocksize() local
2755 memset(&mh, 0, sizeof(mh)); in cdrom_switch_blocksize()
2756 mh.block_desc_length = 0x08; in cdrom_switch_blocksize()
2757 mh.block_length_med = (size >> 8) & 0xff; in cdrom_switch_blocksize()
2758 mh.block_length_lo = size & 0xff; in cdrom_switch_blocksize()
2764 cgc.buflen = sizeof(mh); in cdrom_switch_blocksize()
2765 cgc.buffer = (char *) &mh; in cdrom_switch_blocksize()
2767 mh.block_desc_length = 0x08; in cdrom_switch_blocksize()
2768 mh.block_length_med = (size >> 8) & 0xff; in cdrom_switch_blocksize()
2769 mh.block_length_lo = size & 0xff; in cdrom_switch_blocksize()
/drivers/net/ethernet/mellanox/mlx5/core/
Den_tc.c662 struct mlx5e_mod_hdr_handle *mh; in mlx5e_tc_attach_mod_hdr() local
664 mh = mlx5e_mod_hdr_attach(priv->mdev, get_mod_hdr_table(priv, flow), in mlx5e_tc_attach_mod_hdr()
667 if (IS_ERR(mh)) in mlx5e_tc_attach_mod_hdr()
668 return PTR_ERR(mh); in mlx5e_tc_attach_mod_hdr()
671 attr->modify_hdr = mlx5e_mod_hdr_get(mh); in mlx5e_tc_attach_mod_hdr()
672 attr->mh = mh; in mlx5e_tc_attach_mod_hdr()
682 if (!attr->mh) in mlx5e_tc_detach_mod_hdr()
686 attr->mh); in mlx5e_tc_detach_mod_hdr()
687 attr->mh = NULL; in mlx5e_tc_detach_mod_hdr()
1501 struct mlx5e_mod_hdr_handle *mh = NULL; in mlx5e_tc_offload_to_slow_path() local
[all …]

12