Lines Matching refs:bap
387 int (*read_ltv)(struct hermes *hw, int bap, u16 rid, unsigned buflen,
389 int (*read_ltv_pr)(struct hermes *hw, int bap, u16 rid,
391 int (*write_ltv)(struct hermes *hw, int bap, u16 rid,
393 int (*bap_pread)(struct hermes *hw, int bap, void *buf, int len,
395 int (*bap_pwrite)(struct hermes *hw, int bap, const void *buf,
497 #define HERMES_READ_RECORD(hw, bap, rid, buf) \ argument
498 (hw->ops->read_ltv((hw), (bap), (rid), sizeof(*buf), NULL, (buf)))
499 #define HERMES_READ_RECORD_PR(hw, bap, rid, buf) \ argument
500 (hw->ops->read_ltv_pr((hw), (bap), (rid), sizeof(*buf), NULL, (buf)))
501 #define HERMES_WRITE_RECORD(hw, bap, rid, buf) \ argument
502 (hw->ops->write_ltv((hw), (bap), (rid), \
505 static inline int hermes_read_wordrec(struct hermes *hw, int bap, u16 rid, in hermes_read_wordrec() argument
511 err = HERMES_READ_RECORD(hw, bap, rid, &rec); in hermes_read_wordrec()
516 static inline int hermes_read_wordrec_pr(struct hermes *hw, int bap, u16 rid, in hermes_read_wordrec_pr() argument
522 err = HERMES_READ_RECORD_PR(hw, bap, rid, &rec); in hermes_read_wordrec_pr()
527 static inline int hermes_write_wordrec(struct hermes *hw, int bap, u16 rid, in hermes_write_wordrec() argument
531 return HERMES_WRITE_RECORD(hw, bap, rid, &rec); in hermes_write_wordrec()