Home
last modified time | relevance | path

Searched refs:wrb (Results 1 – 9 of 9) sorted by relevance

/linux-6.6.21/drivers/net/ethernet/emulex/benet/
Dbe_cmds.c114 static inline void *embedded_payload(struct be_mcc_wrb *wrb) in embedded_payload() argument
116 return wrb->payload.embedded_payload; in embedded_payload()
606 struct be_mcc_wrb *wrb; in be_mcc_notify_wait() local
612 wrb = queue_index_node(&mcc_obj->q, index); in be_mcc_notify_wait()
614 resp = be_decode_resp_hdr(wrb->tag0, wrb->tag1); in be_mcc_notify_wait()
782 static inline struct be_sge *nonembedded_sgl(struct be_mcc_wrb *wrb) in nonembedded_sgl() argument
784 return &wrb->payload.sgl[0]; in nonembedded_sgl()
787 static inline void fill_wrb_tags(struct be_mcc_wrb *wrb, unsigned long addr) in fill_wrb_tags() argument
789 wrb->tag0 = addr & 0xFFFFFFFF; in fill_wrb_tags()
790 wrb->tag1 = upper_32_bits(addr); in fill_wrb_tags()
[all …]
Dbe.h873 #define be_dws_cpu_to_le(wrb, len) swap_dws(wrb, len) argument
874 #define be_dws_le_to_cpu(wrb, len) swap_dws(wrb, len) argument
875 static inline void swap_dws(void *wrb, int len) in swap_dws() argument
878 u32 *dw = wrb; in swap_dws()
Dbe_main.c767 static inline void wrb_fill(struct be_eth_wrb *wrb, u64 addr, int len) in wrb_fill() argument
769 wrb->frag_pa_hi = cpu_to_le32(upper_32_bits(addr)); in wrb_fill()
770 wrb->frag_pa_lo = cpu_to_le32(lower_32_bits(addr)); in wrb_fill()
771 wrb->frag_len = cpu_to_le32(len & ETH_WRB_FRAG_LEN_MASK); in wrb_fill()
772 wrb->rsvd0 = 0; in wrb_fill()
778 static inline void wrb_fill_dummy(struct be_eth_wrb *wrb) in wrb_fill_dummy() argument
780 wrb->frag_pa_hi = 0; in wrb_fill_dummy()
781 wrb->frag_pa_lo = 0; in wrb_fill_dummy()
782 wrb->frag_len = 0; in wrb_fill_dummy()
783 wrb->rsvd0 = 0; in wrb_fill_dummy()
[all …]
Dbe_cmds.h245 struct be_mcc_wrb wrb; member
/linux-6.6.21/drivers/scsi/be2iscsi/
Dbe_cmds.c92 struct be_mcc_wrb *wrb = NULL; in alloc_mcc_wrb() local
129 wrb = queue_head_node(mccq); in alloc_mcc_wrb()
130 memset(wrb, 0, sizeof(*wrb)); in alloc_mcc_wrb()
131 wrb->tag0 = tag; in alloc_mcc_wrb()
132 wrb->tag0 |= (mccq->head << MCC_Q_WRB_IDX_SHIFT) & MCC_Q_WRB_IDX_MASK; in alloc_mcc_wrb()
138 return wrb; in alloc_mcc_wrb()
170 struct be_mcc_wrb **wrb, in __beiscsi_mcc_compl_status() argument
194 if (wrb) in __beiscsi_mcc_compl_status()
195 *wrb = temp_wrb; in __beiscsi_mcc_compl_status()
236 struct be_mcc_wrb **wrb, in beiscsi_mccq_compl_wait() argument
[all …]
Dbe_mgmt.c38 struct be_mcc_wrb *wrb; in mgmt_vendor_specific_fw_cmd() local
79 wrb = alloc_mcc_wrb(phba, &tag); in mgmt_vendor_specific_fw_cmd()
80 if (!wrb) { in mgmt_vendor_specific_fw_cmd()
85 mcc_sge = nonembedded_sgl(wrb); in mgmt_vendor_specific_fw_cmd()
86 be_wrb_hdr_prepare(wrb, nonemb_cmd->size, false, in mgmt_vendor_specific_fw_cmd()
119 struct be_mcc_wrb *wrb; in mgmt_open_connection() local
149 wrb = alloc_mcc_wrb(phba, &tag); in mgmt_open_connection()
150 if (!wrb) { in mgmt_open_connection()
155 sge = nonembedded_sgl(wrb); in mgmt_open_connection()
159 be_wrb_hdr_prepare(wrb, nonemb_cmd->size, false, 1); in mgmt_open_connection()
[all …]
Dbe.h191 #define be_dws_cpu_to_le(wrb, len) swap_dws(wrb, len) argument
192 #define be_dws_le_to_cpu(wrb, len) swap_dws(wrb, len) argument
193 static inline void swap_dws(void *wrb, int len) in swap_dws() argument
196 u32 *dw = wrb; in swap_dws()
Dbe_cmds.h197 struct be_mcc_wrb wrb; member
691 static inline void *embedded_payload(struct be_mcc_wrb *wrb) in embedded_payload() argument
693 return wrb->payload.embedded_payload; in embedded_payload()
696 static inline struct be_sge *nonembedded_sgl(struct be_mcc_wrb *wrb) in nonembedded_sgl() argument
698 return &wrb->payload.sgl[0]; in nonembedded_sgl()
822 struct be_mcc_wrb **wrb,
826 struct be_mcc_wrb **wrb,
1456 void be_wrb_hdr_prepare(struct be_mcc_wrb *wrb, u32 payload_len,
/linux-6.6.21/drivers/net/ethernet/cirrus/
Dep93xx_eth.c180 #define wrb(ep, off, val) __raw_writeb((val), (ep)->base_addr + (off)) macro
597 wrb(ep, REG_INDAD0, dev->dev_addr[0]); in ep93xx_start_hw()
598 wrb(ep, REG_INDAD1, dev->dev_addr[1]); in ep93xx_start_hw()
599 wrb(ep, REG_INDAD2, dev->dev_addr[2]); in ep93xx_start_hw()
600 wrb(ep, REG_INDAD3, dev->dev_addr[3]); in ep93xx_start_hw()
601 wrb(ep, REG_INDAD4, dev->dev_addr[4]); in ep93xx_start_hw()
602 wrb(ep, REG_INDAD5, dev->dev_addr[5]); in ep93xx_start_hw()