/linux-2.6.39/drivers/net/benet/ |
D | be_cmds.c | 397 static inline void *embedded_payload(struct be_mcc_wrb *wrb) in embedded_payload() argument 399 return wrb->payload.embedded_payload; in embedded_payload() 402 static inline struct be_sge *nonembedded_sgl(struct be_mcc_wrb *wrb) in nonembedded_sgl() argument 404 return &wrb->payload.sgl[0]; in nonembedded_sgl() 408 static void be_wrb_hdr_prepare(struct be_mcc_wrb *wrb, int payload_len, in be_wrb_hdr_prepare() argument 412 wrb->embedded |= MCC_WRB_EMBEDDED_MASK; in be_wrb_hdr_prepare() 414 wrb->embedded |= (sge_cnt & MCC_WRB_SGE_CNT_MASK) << in be_wrb_hdr_prepare() 416 wrb->payload_length = payload_len; in be_wrb_hdr_prepare() 417 wrb->tag0 = opcode; in be_wrb_hdr_prepare() 418 be_dws_cpu_to_le(wrb, 8); in be_wrb_hdr_prepare() [all …]
|
D | be.h | 417 #define be_dws_cpu_to_le(wrb, len) swap_dws(wrb, len) argument 418 #define be_dws_le_to_cpu(wrb, len) swap_dws(wrb, len) argument 419 static inline void swap_dws(void *wrb, int len) in swap_dws() argument 422 u32 *dw = wrb; in swap_dws()
|
D | be_main.c | 432 static inline void wrb_fill(struct be_eth_wrb *wrb, u64 addr, int len) in wrb_fill() argument 434 wrb->frag_pa_hi = upper_32_bits(addr); in wrb_fill() 435 wrb->frag_pa_lo = addr & 0xFFFFFFFF; in wrb_fill() 436 wrb->frag_len = len & ETH_WRB_FRAG_LEN_MASK; in wrb_fill() 489 static void unmap_tx_frag(struct device *dev, struct be_eth_wrb *wrb, in unmap_tx_frag() argument 494 be_dws_le_to_cpu(wrb, sizeof(*wrb)); in unmap_tx_frag() 496 dma = (u64)wrb->frag_pa_hi << 32 | (u64)wrb->frag_pa_lo; in unmap_tx_frag() 497 if (wrb->frag_len) { in unmap_tx_frag() 499 dma_unmap_single(dev, dma, wrb->frag_len, in unmap_tx_frag() 502 dma_unmap_page(dev, dma, wrb->frag_len, DMA_TO_DEVICE); in unmap_tx_frag() [all …]
|
D | be_cmds.h | 151 struct be_mcc_wrb wrb; member
|
/linux-2.6.39/drivers/scsi/be2iscsi/ |
D | be_mgmt.c | 28 struct be_mcc_wrb *wrb; in beiscsi_get_boot_target() local 40 wrb = wrb_from_mccq(phba); in beiscsi_get_boot_target() 41 req = embedded_payload(wrb); in beiscsi_get_boot_target() 42 wrb->tag0 |= tag; in beiscsi_get_boot_target() 43 be_wrb_hdr_prepare(wrb, sizeof(*req), true, 0); in beiscsi_get_boot_target() 58 struct be_mcc_wrb *wrb; in beiscsi_get_session_info() local 75 wrb = wrb_from_mccq(phba); in beiscsi_get_session_info() 76 sge = nonembedded_sgl(wrb); in beiscsi_get_session_info() 77 wrb->tag0 |= tag; in beiscsi_get_session_info() 80 wrb->tag0 |= tag; in beiscsi_get_session_info() [all …]
|
D | be_cmds.c | 443 void be_wrb_hdr_prepare(struct be_mcc_wrb *wrb, int payload_len, in be_wrb_hdr_prepare() argument 447 wrb->embedded |= MCC_WRB_EMBEDDED_MASK; in be_wrb_hdr_prepare() 449 wrb->embedded |= (sge_cnt & MCC_WRB_SGE_CNT_MASK) << in be_wrb_hdr_prepare() 451 wrb->payload_length = payload_len; in be_wrb_hdr_prepare() 452 be_dws_cpu_to_le(wrb, 8); in be_wrb_hdr_prepare() 501 return &((struct be_mcc_mailbox *)(mbox_mem->va))->wrb; in wrb_from_mbox() 507 struct be_mcc_wrb *wrb; in wrb_from_mccq() local 510 wrb = queue_head_node(mccq); in wrb_from_mccq() 511 memset(wrb, 0, sizeof(*wrb)); in wrb_from_mccq() 512 wrb->tag0 = (mccq->head & 0x000000FF) << 16; in wrb_from_mccq() [all …]
|
D | be.h | 176 #define be_dws_cpu_to_le(wrb, len) swap_dws(wrb, len) argument 177 #define be_dws_le_to_cpu(wrb, len) swap_dws(wrb, len) argument 178 static inline void swap_dws(void *wrb, int len) in swap_dws() argument 181 u32 *dw = wrb; in swap_dws()
|
D | be_cmds.h | 129 struct be_mcc_wrb wrb; member 467 static inline void *embedded_payload(struct be_mcc_wrb *wrb) in embedded_payload() argument 469 return wrb->payload.embedded_payload; in embedded_payload() 472 static inline struct be_sge *nonembedded_sgl(struct be_mcc_wrb *wrb) in nonembedded_sgl() argument 474 return &wrb->payload.sgl[0]; in nonembedded_sgl() 737 struct MCC_WRB *wrb; member 1020 void be_wrb_hdr_prepare(struct be_mcc_wrb *wrb, int payload_len,
|
D | be_iscsi.c | 315 struct be_mcc_wrb *wrb; in beiscsi_get_macaddr() local 343 wrb = queue_get_wrb(mccq, wrb_num); in beiscsi_get_macaddr() 345 resp = embedded_payload(wrb); in beiscsi_get_macaddr() 497 struct be_mcc_wrb *wrb; in beiscsi_open_conn() local 558 wrb = queue_get_wrb(mccq, wrb_num); in beiscsi_open_conn() 561 ptcpcnct_out = embedded_payload(wrb); in beiscsi_open_conn()
|
D | be_main.c | 3508 struct be_mcc_wrb *wrb; in beiscsi_get_boot_info() local 3532 wrb = queue_get_wrb(mccq, wrb_num); in beiscsi_get_boot_info() 3534 boot_resp = embedded_payload(wrb); in beiscsi_get_boot_info() 3573 wrb = queue_get_wrb(mccq, wrb_num); in beiscsi_get_boot_info()
|
/linux-2.6.39/arch/xtensa/variants/s6000/include/variant/ |
D | tie.h | 167 XCHAL_SA_REG(s,0,0,2,0, wrb0,16,16,16,0x1020, wrb,0 ,128,0,0,0) \ 168 XCHAL_SA_REG(s,0,0,2,0, wrb1,16,16,16,0x1021, wrb,1 ,128,0,0,0) \ 169 XCHAL_SA_REG(s,0,0,2,0, wrb2,16,16,16,0x1022, wrb,2 ,128,0,0,0) \ 170 XCHAL_SA_REG(s,0,0,2,0, wrb3,16,16,16,0x1023, wrb,3 ,128,0,0,0) \ 171 XCHAL_SA_REG(s,0,0,2,0, wrb4,16,16,16,0x1024, wrb,4 ,128,0,0,0) \ 172 XCHAL_SA_REG(s,0,0,2,0, wrb5,16,16,16,0x1025, wrb,5 ,128,0,0,0) \ 173 XCHAL_SA_REG(s,0,0,2,0, wrb6,16,16,16,0x1026, wrb,6 ,128,0,0,0) \ 174 XCHAL_SA_REG(s,0,0,2,0, wrb7,16,16,16,0x1027, wrb,7 ,128,0,0,0) \ 175 XCHAL_SA_REG(s,0,0,2,0, wrb8,16,16,16,0x1028, wrb,8 ,128,0,0,0) \ 176 XCHAL_SA_REG(s,0,0,2,0, wrb9,16,16,16,0x1029, wrb,9 ,128,0,0,0) \ [all …]
|
/linux-2.6.39/arch/mips/sgi-ip27/ |
D | ip27-berr.c | 32 int wrb = errst1 & PI_ERR_ST1_WRBRRB_MASK; in dump_hub_information() local 52 printk("Error type is %s\n", err_type[wrb] in dump_hub_information()
|
/linux-2.6.39/drivers/net/arm/ |
D | ep93xx_eth.c | 185 #define wrb(ep, off, val) __raw_writeb((val), (ep)->base_addr + (off)) macro 618 wrb(ep, REG_INDAD0, dev->dev_addr[0]); in ep93xx_start_hw() 619 wrb(ep, REG_INDAD1, dev->dev_addr[1]); in ep93xx_start_hw() 620 wrb(ep, REG_INDAD2, dev->dev_addr[2]); in ep93xx_start_hw() 621 wrb(ep, REG_INDAD3, dev->dev_addr[3]); in ep93xx_start_hw() 622 wrb(ep, REG_INDAD4, dev->dev_addr[4]); in ep93xx_start_hw() 623 wrb(ep, REG_INDAD5, dev->dev_addr[5]); in ep93xx_start_hw()
|