Lines Matching refs:val
332 cfi_word val = 0; in cfi_build_cmd() local
336 val = cmd; in cfi_build_cmd()
340 val = cpu_to_cfi16(cmd); in cfi_build_cmd()
343 val = cpu_to_cfi16((cmd << 8) | cmd); in cfi_build_cmd()
348 val = cpu_to_cfi32(cmd); in cfi_build_cmd()
351 val = cpu_to_cfi32((cmd << 16) | cmd); in cfi_build_cmd()
354 val = (cmd << 16) | cmd; in cfi_build_cmd()
355 val = cpu_to_cfi32((val << 8) | val); in cfi_build_cmd()
361 val = cpu_to_cfi64(cmd); in cfi_build_cmd()
364 val = cmd; in cfi_build_cmd()
365 val = cpu_to_cfi64((val << 32) | val); in cfi_build_cmd()
368 val = (cmd << 16) | cmd; in cfi_build_cmd()
369 val = cpu_to_cfi64((val << 32) | val); in cfi_build_cmd()
372 val = (cmd << 8) | cmd; in cfi_build_cmd()
373 val = (val << 16) | val; in cfi_build_cmd()
374 val = (val << 32) | val; in cfi_build_cmd()
375 val = cpu_to_cfi64(val); in cfi_build_cmd()
379 return val; in cfi_build_cmd()
406 static inline void cfi_write(struct map_info *map, cfi_word val, __u32 addr) in cfi_write() argument
409 map->write8(map, val, addr); in cfi_write()
411 map->write16(map, val, addr); in cfi_write()
413 map->write32(map, val, addr); in cfi_write()
415 map->write64(map, val, addr); in cfi_write()
430 cfi_word val; in cfi_send_gen_cmd() local
433 val = cfi_build_cmd(cmd, map, cfi); in cfi_send_gen_cmd()
438 cfi_write(map, val, addr); in cfi_send_gen_cmd()