IIRC earlier versions of bitlocker would rely upon SSD firmware implementations for drive encryption. They stopped doing that when it was revealed many of these hardware encryption systems in common drives didn't actually work.
void encryptSector(struct context *c, long sector_no, unsigned char *data, size_t data_len) {
// TODO
}